/* 
  BlessingCardAI - Master Design System & Styling
  Warm Beige & Elegant Brown Theme with Premium Glassmorphism & Micro-animations
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #FDFBF7;
    --bg-secondary: #F5EFEB;
    --text-main: #3D2E26;
    --text-muted: #7A665A;
    --primary: #8B5A2B;
    --primary-hover: #734A22;
    --secondary: #5C4033;
    --accent-gold: #D4AF37;
    --accent-gold-soft: #F4E8C1;
    --success: #6E8B3D;
    --success-bg: #F0F4E8;
    --error: #CD5C5C;
    --error-bg: #FCEBEB;
    --pending: #D9822B;
    --pending-bg: #FEF3E8;
    
    /* Layout Tokens */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --glass-bg: rgba(245, 239, 235, 0.75);
    --glass-border: rgba(92, 64, 51, 0.12);
    --shadow-soft: 0 8px 30px rgba(92, 64, 51, 0.05);
    --shadow-hover: 0 16px 40px rgba(92, 64, 51, 0.12);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom mobile nav */
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--primary-hover);
}

button {
    font-family: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Header / Navigation Bar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
    color: var(--primary);
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--secondary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background-color: rgba(139, 90, 43, 0.06);
}

.nav-btn {
    background-color: var(--primary);
    color: #FFF !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.15);
}

.nav-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.25);
}

/* User points badge in nav */
.points-badge {
    background: linear-gradient(135deg, var(--accent-gold), #B5932A);
    color: #FFF;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

/* Elegant Floating Bottom Nav Bar for Mobile */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 99;
    padding: 8px 0;
    box-shadow: 0 -4px 30px rgba(92, 64, 51, 0.06);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin: 40px 0 80px 0;
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-gold-soft);
    padding: 6px 12px;
    border-radius: 50px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: var(--secondary);
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFF;
    box-shadow: 0 8px 25px rgba(139, 90, 43, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(139, 90, 43, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: rgba(92, 64, 51, 0.05);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #CD5C5C, #b22222);
    color: #FFF !important;
    box-shadow: 0 8px 25px rgba(205, 92, 92, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(205, 92, 92, 0.3);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Beautiful Interactive Card Wall Showcase */
.card-showcase-container {
    perspective: 1000px;
    width: 100%;
    max-width: 450px;
    height: 450px;
    position: relative;
}

.card-showcase {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 6px solid #FFF;
}

.card-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-showcase:hover img {
    scale: 1.05;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 90, 43, 0.25);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(139, 90, 43, 0.08);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--text-muted);
}

/* Stunning Glassmorphism Forms (Glass Card) */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 40px;
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
}

.card-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--secondary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 12px;
}

/* Forms styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 15px;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #FFF;
    box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
}

/* File Upload Box */
.upload-box {
    border: 2px dashed var(--primary);
    background-color: rgba(139, 90, 43, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    background-color: rgba(139, 90, 43, 0.06);
    border-color: var(--secondary);
}

.upload-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-text {
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-muted);
}

.upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFF;
    display: none;
    align-items: center;
    justify-content: center;
}

.upload-preview img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.upload-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(92, 64, 51, 0.8);
    color: #FFF;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 5;
}

.upload-remove:hover {
    background-color: var(--error);
    transform: scale(1.1);
}

/* Grid Selector Cards (For Festival, Style, etc.) */
.grid-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.selector-item {
    background-color: #FFF;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
    color: var(--text-muted);
    user-select: none;
}

.selector-item:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.selector-item.selected {
    background-color: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(139, 90, 43, 0.08);
}

/* Style Type Selector Tabs */
.style-tabs {
    display: flex;
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 24px;
    gap: 8px;
}

.style-tab {
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.style-tab:hover, .style-tab.active {
    color: var(--primary);
}

.style-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary);
    border-radius: 5px;
}

/* Detailed Style Grid with Illustrations */
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.style-item {
    background-color: #FFF;
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.style-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--primary);
}

.style-item.selected {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.12);
}

.style-preview-icon {
    height: 100px;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary);
    border-bottom: 1.5px solid var(--glass-border);
}

.style-item.selected .style-preview-icon {
    background-color: var(--accent-gold-soft);
}

.style-name {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorations multiselect tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background-color: #FFF;
    border: 1.5px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.tag-item:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tag-item.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #FFF;
}

/* Quick Blessing Presets */
.preset-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preset-item {
    font-size: 12px;
    background-color: rgba(92, 64, 51, 0.04);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.preset-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
}

/* Point replenishment packages Cards */
.pkg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin: 30px 0;
}

.pkg-card {
    background: #FFF;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.pkg-card.popular {
    border-color: var(--accent-gold);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.pkg-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, var(--accent-gold), #B5932A);
    color: #FFF;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 30px;
    transform: rotate(45deg);
    text-transform: uppercase;
}

.pkg-points {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pkg-points i {
    color: var(--accent-gold);
}

.pkg-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

.pkg-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
}

/* History Card Items Grid */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-item-img {
    height: 280px;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card-item:hover .card-item-img img {
    transform: scale(1.03);
}

.card-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.status-completed {
    background-color: var(--success-bg);
    color: var(--success);
}

.status-pending {
    background-color: var(--pending-bg);
    color: var(--pending);
}

.status-failed {
    background-color: var(--error-bg);
    color: var(--error);
}

.delete-card-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(252, 235, 235, 0.95);
    border: 1.5px solid #CD5C5C;
    color: #CD5C5C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    z-index: 10;
}

.delete-card-btn:hover {
    background-color: #CD5C5C;
    color: white;
    transform: scale(1.1);
}

.card-item-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-item-festival {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
}

.card-item-style {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 12px;
}

.card-item-blessing {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.card-item-actions {
    display: flex;
    gap: 10px;
}

.card-item-btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-download {
    background-color: var(--primary);
    color: #FFF;
}

.btn-download:hover {
    background-color: var(--primary-hover);
}

.btn-share {
    background-color: rgba(92, 64, 51, 0.06);
    color: var(--secondary);
}

.btn-share:hover {
    background-color: rgba(92, 64, 51, 0.12);
}

/* Generation Loader Modal (Progressive Tracker) */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(61, 46, 38, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loader-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.loader-spinner {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 24px;
    animation: rotate 2s linear infinite;
    display: inline-block;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.loader-title {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.loader-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 16px;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    border-radius: 50px;
    transition: width 0.4s ease;
}

.progress-percentage {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 20px;
}

.loader-tips {
    font-size: 13px;
    color: var(--text-muted);
    background-color: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-style: italic;
}

/* Modal Window for Developer Setup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(61, 46, 38, 0.5);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    background-color: var(--success-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--success);
    animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Alert Notification Panel */
.alert-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    color: var(--text-main);
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* PWA Float Install Prompt Widget */
.pwa-prompt {
    position: fixed;
    bottom: 90px; /* Elevated to stay above the floating bottom navigation bar */
    left: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    padding: 16px 20px;
    z-index: 98;
    display: none;
    justify-content: space-between;
    align-items: center;
    max-width: 450px;
    margin: 0 auto;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.pwa-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-prompt-icon {
    font-size: 28px;
    color: var(--primary);
}

.pwa-prompt-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary);
}

.pwa-prompt-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.pwa-prompt-btn {
    background-color: var(--primary);
    color: #FFF;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pwa-prompt-btn:hover {
    background-color: var(--primary-hover);
}

.pwa-prompt-close {
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 10px;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background-color: var(--bg-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }
    
    .navbar {
        display: none; /* Hide top nav on mobile, use bottom nav */
    }
    
    .bottom-nav {
        display: block; /* Show bottom nav on mobile */
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        margin-top: 20px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .container {
        margin: 20px auto;
    }
    
    .glass-card {
        padding: 24px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .pwa-prompt {
        bottom: 80px;
    }
}

/* Points Ledger Hover & Badges */
.points-badge {
    cursor: pointer;
    transition: all 0.2s ease;
}
.points-badge:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.35);
    filter: brightness(1.05);
}

.tx-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}
.tx-type-cost {
    background-color: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}
.tx-type-refund {
    background-color: rgba(56, 161, 105, 0.1);
    color: #38a169;
}
.tx-type-purchase {
    background-color: rgba(212, 175, 55, 0.15);
    color: #b5932a;
}

.tx-status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}
.tx-status-completed {
    background-color: rgba(56, 161, 105, 0.15);
    color: #38a169;
}
.tx-status-pending {
    background-color: rgba(229, 193, 88, 0.15);
    color: #b5932a;
}
.tx-status-failed {
    background-color: rgba(229, 62, 62, 0.15);
    color: #e53e3e;
}

