:root {
    --bg-primary: #f8f6f0;      /* Fildişi / Krem Arka Plan */
    --bg-secondary: #ffffff;    /* Beyaz Kartlar */
    --bg-tertiary: #f1ede4;     /* Yumuşak Koyu Krem */
    --text-primary: #2d3748;    /* Koyu Füme Metin */
    --text-muted: #718096;      /* İkinci Derece Metin */
    --accent: #4a6b57;          /* Yaprak Yeşili (Primary) */
    --accent-hover: #3a5746;    /* Koyu Yeşil */
    --success: #10b981;         /* Yeşil Rozet */
    --warning: #f59e0b;         /* Favori Sarı Yıldız */
    --border: #e2e8f0;          /* İnce Çizgi */
    --bottom-nav-height: 70px;
    --header-height: 65px;

    --font-heading: 'Merriweather', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Sayfanın tamamının değil, SADECE iç kısmın kaymasını sağlar */
}

/* Üst Header */
header {
    height: var(--header-height);
    background-color: var(--bg-secondary);
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: env(safe-area-inset-bottom, 0);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

/* --- TOKEN BADGE STYLES --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.token-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.token-badge.premium {
    background: rgba(251, 191, 36, 0.15); /* amber tint */
    border-color: rgba(251, 191, 36, 0.4);
    color: #fcd34d;
}
.token-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

/* --- HEADER BRAND STYLES 🌿 --- */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.header-brand:hover {
    transform: translateY(-1px);
}

.brand-logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d5a43 0%, #4a6b57 100%);
    box-shadow: 0 4px 14px rgba(45, 90, 67, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-family: var(--font-heading, 'Merriweather', serif);
    font-size: 1.22rem;
    font-weight: 800;
    color: #23352d;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 0.62rem;
    font-weight: 800;
    color: #7a8c80;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Yüzen Sağ Alt Butonlar (FAB) */
.fab-container {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 15px);
    right: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(74, 107, 87, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.fab-btn:active {
    transform: scale(0.92);
}

#app-content {
    flex: 1;
    overflow-y: auto; /* Dikey kaydırmayı aktif eder */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* iOS ve mobil cihazlarda pürüzsüz, yumuşak (smooth) kaydırma sağlar */
    padding: 16px; /* Ekran kenarlarından ferah boşluk */
}