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

:root {
    --bg-dark: #07090F;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --gold-primary: #D4AF37;
    --gold-gradient: linear-gradient(135deg, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
    --gold-text: #E5C058;
    --text-primary: #FFFFFF;
    --text-secondary: #9BA3AF;
    --blur-strength: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for bottom nav */
    background-image: radial-gradient(circle at 50% -20%, #172440 0%, var(--bg-dark) 60%);
    background-attachment: fixed;
}

h1, h2, h3, .serif-text {
    font-family: 'Playfair Display', serif;
}

/* Layout */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    padding: calc(24px + env(safe-area-inset-top)) 20px 24px 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.header-greeting p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.header-greeting h2 {
    font-size: 1.4rem;
    font-weight: 600;
}
.header-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

/* Wallet Card */
.wallet-card {
    background: var(--gold-gradient);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
    margin-bottom: 24px;
}
.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0.5;
    pointer-events: none;
}
.wallet-tier {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wallet-balance-label {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 4px;
}
.wallet-balance {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}
.wallet-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.wallet-card-number {
    font-family: monospace;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
}
.qr-btn-card {
    background: #111;
    color: var(--gold-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(var(--blur-strength));
    border-radius: 16px;
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}
.action-btn:active {
    background: rgba(255, 255, 255, 0.08);
}
.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    font-size: 1.2rem;
}
.action-btn span {
    font-size: 0.8rem;
    font-weight: 400;
}

/* Section Titles */
.section-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-title a {
    color: var(--gold-text);
    font-size: 0.85rem;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
}

/* AI Assistant Card */
.ai-assistant-card {
    background: linear-gradient(145deg, rgba(20, 25, 45, 0.8), rgba(10, 15, 30, 0.8));
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.ai-assistant-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('img/campaign-1.png') center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 0;
}
.ai-content {
    position: relative;
    z-index: 1;
}
.ai-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-text);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}
.ai-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.ai-title strong {
    color: var(--gold-text);
}
.ai-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--text-primary);
    color: var(--bg-dark);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

/* Campaign Banner */
.campaign-banner {
    height: 180px;
    border-radius: 20px;
    background: url('img/campaign-1.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.campaign-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.campaign-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.campaign-overlay p {
    font-size: 0.85rem;
    color: #CCC;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-around;
    padding: 12px 10px 25px 10px; /* Extra padding for iPhone home bar */
    z-index: 100;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    flex: 1;
}
.nav-item.active {
    color: var(--gold-text);
}
.nav-item i {
    font-size: 1.4rem;
}
.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.shimmer-effect::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 3s infinite;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
