/* =========================================================
   ROOT VARIABLES
   ========================================================= */
:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --text-dark: #202124;
    --text-gray: #5f6368;
    --text-light: #9aa0a6;

    --primary: #4285f4;
    --primary-dark: #1a73e8;
    --primary-light: #e8f0fe;

    --success: #34a853;
    --success-light: #e6f4ea;
    --warning: #fbbc04;
    --warning-light: #fef7e0;
    --danger: #ea4335;
    --danger-light: #fce8e6;

    --telegram: #229ED9;
    --telegram-dark: #1a7fa8;

    --border: #e0e0e0;
    --border-light: #f1f3f4;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    --app-max-width: 430px;

    --transition-theme: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* =========================================================
   DARK MODE
   ========================================================= */
body.dark-mode {
    --bg-white: #1e1e2e;
    --bg-light: #181825;
    --bg-card: #252537;
    --text-dark: #e4e4e7;
    --text-gray: #a1a1aa;
    --text-light: #71717a;

    --primary: #6ba2ff;
    --primary-dark: #4285f4;
    --primary-light: #1e2a4a;

    --success: #4ade80;
    --success-light: #1a3a26;
    --warning: #fbbf24;
    --warning-light: #3a2f1a;
    --danger: #f87171;
    --danger-light: #3a1a1a;

    --border: #3f3f52;
    --border-light: #2a2a3d;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition-theme);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Google Sans', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html, body { height: 100%; }

body {
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    min-height: 100vh;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

/* Amharic font override */
html[lang="am"] body {
    font-family: 'Noto Sans Ethiopic', 'Inter', sans-serif;
}

html[lang="am"] .hero h1,
html[lang="am"] .featured-product h2,
html[lang="am"] .section-title {
    letter-spacing: 0;
}

/* =========================================================
   APP CONTAINER
   ========================================================= */
.app {
    width: 100%;
    max-width: var(--app-max-width);
    min-height: 100vh;
    background: var(--bg-white);
    position: relative;
    padding-bottom: 80px;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    margin: 0 auto;
    transition: var(--transition-theme);
}

/* =========================================================
   PAGES
   ========================================================= */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-out;
}
.page.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   TOP HEADER
   ========================================================= */
.top-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
    transition: var(--transition-theme);
    gap: 8px;
}

body.dark-mode .top-header {
    background: rgba(30, 30, 46, 0.95);
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4285f4, #ea4335, #fbbc04, #34a853, #4285f4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}
.brand-logo::after {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--bg-white);
    border-radius: 50%;
    position: absolute;
    transition: var(--transition-theme);
}
.brand-logo i {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    color: #4285f4;
    font-weight: 700;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    transition: var(--transition-theme);
    white-space: nowrap;
}

.brand-name span {
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc04, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.header-actions { display: flex; gap: 8px; align-items: center; }

.icon-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--border-light); }

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.language-switcher {
    display: flex;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--border);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

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

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 6px rgba(66, 133, 244, 0.3);
}

.language-switcher-login {
    margin-top: 24px;
    justify-content: center;
    background: var(--bg-light);
    padding: 5px;
}

.language-switcher-login .lang-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
}

/* =========================================================
   AUTH
   ========================================================= */
.auth-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px 30px;
    transition: var(--transition-theme);
}

body.dark-mode .auth-wrapper {
    background: linear-gradient(180deg, #1e1e2e 0%, #181825 100%);
}

.auth-brand { text-align: center; margin-bottom: 30px; }

.auth-brand-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4285f4, #ea4335, #fbbc04, #34a853, #4285f4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.25);
}
.auth-brand-logo::after {
    content: '';
    width: 54px;
    height: 54px;
    background: var(--bg-white);
    border-radius: 50%;
    position: absolute;
    transition: var(--transition-theme);
}
.auth-brand-logo i { position: relative; z-index: 1; font-size: 1.4rem; color: #4285f4; }

.auth-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: var(--transition-theme);
}

.auth-brand p {
    font-size: 0.85rem;
    color: var(--text-gray);
    transition: var(--transition-theme);
}

.auth-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition-theme);
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 2;
    position: relative;
    transition: color 0.3s;
}
.auth-tab.active { color: white; }

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    border-radius: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.35);
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: var(--transition-theme);
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.input-wrapper i {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-right: 12px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 0;
}
.input-wrapper input::placeholder { color: var(--text-light); }

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    padding: 15px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(135deg, #4285f4 0%, #8e44ad 100%);
    padding: 32px 24px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2), transparent 70%);
    border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.3);
}

.hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 0.9rem;
    opacity: 0.95;
    line-height: 1.5;
    margin-bottom: 20px;
}

.hero-greeting {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 4px;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.main-content {
    padding: 24px 20px;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: var(--transition-theme);
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    transition: var(--transition-theme);
}

/* =========================================================
   FEATURED PRODUCT
   ========================================================= */
.featured-product {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.12);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--primary-light);
    transition: var(--transition-theme);
}

.featured-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc04, #34a853);
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ea4335, #d93025);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(234, 67, 53, 0.3);
}

.product-icon-large {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: conic-gradient(from 0deg, #4285f4, #ea4335, #fbbc04, #34a853, #4285f4);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
}

.product-icon-large::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--bg-card);
    border-radius: 14px;
    transition: var(--transition-theme);
}

.product-icon-large i {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #4285f4, #8e44ad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-product h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
    transition: var(--transition-theme);
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 16px;
    transition: var(--transition-theme);
}

.duration-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
    transition: var(--transition-theme);
}

.price-row .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -1px;
    transition: var(--transition-theme);
}

.price-row .currency {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-left: 2px;
    transition: var(--transition-theme);
}

.price-row .per {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-left: auto;
    transition: var(--transition-theme);
}

.product-features { list-style: none; margin-bottom: 20px; }

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-dark);
    padding: 7px 0;
    line-height: 1.4;
    transition: var(--transition-theme);
}

.product-features li i {
    color: var(--success);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.btn-buy-large {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}
.btn-buy-large:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(66, 133, 244, 0.45); }
.btn-buy-large:active { transform: translateY(0); }

/* =========================================================
   TRUST BADGES
   ========================================================= */
.trust-row { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }

.trust-item {
    flex: 1;
    min-width: 100px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-theme);
}

.trust-item i {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.trust-item span {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.3;
    display: block;
    transition: var(--transition-theme);
}

/* =========================================================
   INFO BOX
   ========================================================= */
.info-box {
    background: var(--primary-light);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    transition: var(--transition-theme);
    position: relative;
    z-index: 1;
}

.info-box i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box p {
    font-size: 0.75rem;
    color: var(--primary);
    line-height: 1.5;
    font-weight: 500;
    transition: var(--transition-theme);
    margin: 0;
}

body.dark-mode .info-box p { color: #a9c7ff; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-cta {
    width: 100%;
    background: linear-gradient(135deg, #4285f4, #1a73e8);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(66, 133, 244, 0.45); }

.btn-secondary {
    width: 100%;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1.5px solid var(--border);
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    margin-bottom: 20px;
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9, #1a7fa8);
    box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
    margin-bottom: 12px;
}
.btn-telegram:hover { box-shadow: 0 6px 18px rgba(34, 158, 217, 0.5); }

/* =========================================================
   PAYMENT
   ========================================================= */
.payment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.payment-method:hover { border-color: var(--primary-light); }
.payment-method.selected { border-color: var(--primary); background: var(--primary-light); }

.payment-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    font-size: 0.75rem;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.logo-telebirr { background: linear-gradient(135deg, #fbbf24, #d97706); }
.logo-cbe { background: linear-gradient(135deg, #7c3aed, #4c1d95); }

.payment-info { flex: 1; min-width: 0; }
.payment-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    transition: var(--transition-theme);
}
.payment-info p {
    font-size: 0.7rem;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-theme);
}

.payment-check {
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.payment-method.selected .payment-check { opacity: 1; }

.badge-recommended {
    position: absolute;
    top: -9px;
    right: 16px;
    background: var(--success);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =========================================================
   PROFESSIONAL PAYMENT GUIDE
   ========================================================= */
.guide-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-theme);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    transition: background 0.3s;
}

.guide-card[data-method="cbe"]::before {
    background: linear-gradient(90deg, #7c3aed, #4c1d95);
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.guide-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.guide-brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
    transition: background 0.3s, box-shadow 0.3s;
}

.guide-card[data-method="cbe"] .guide-brand-logo {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.guide-brand-text { display: flex; flex-direction: column; min-width: 0; }

.guide-brand-label {
    font-size: 0.65rem;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-theme);
}

.guide-brand-text h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    transition: var(--transition-theme);
}

.guide-meta { display: flex; gap: 8px; flex-shrink: 0; }

.guide-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    transition: var(--transition-theme);
}

.guide-meta-item i { color: var(--primary); font-size: 0.7rem; }

.guide-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.guide-progress-bar {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    transition: var(--transition-theme);
}

.guide-progress-fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.guide-card[data-method="cbe"] .guide-progress-fill {
    background: linear-gradient(90deg, #7c3aed, #4c1d95);
}

.guide-progress-text {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-gray);
    white-space: nowrap;
    transition: var(--transition-theme);
}

.guide-steps {
    position: relative;
    padding-left: 4px;
    margin-bottom: 18px;
}

.guide-steps::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background: var(--border-light);
    z-index: 0;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.15s;
}

.guide-step:active { transform: scale(0.98); }
.guide-step:hover .guide-step-number { transform: scale(1.08); }

.guide-step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
}

.guide-card[data-method="telebirr"] .guide-step-number {
    border-color: #fbbf24;
    color: #b45309;
}

.guide-card[data-method="cbe"] .guide-step-number {
    border-color: #7c3aed;
    color: #6d28d9;
}

.guide-step-content { flex: 1; padding-top: 4px; min-width: 0; }

.guide-step-text {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-dark);
    transition: var(--transition-theme);
    font-weight: 500;
}

.guide-step-text strong { color: var(--text-dark); font-weight: 700; }

.guide-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fef7e0, #fde68a);
    color: #78350f;
    padding: 6px 12px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin: 6px 0;
    border: 1px dashed #d97706;
    max-width: 100%;
    transition: var(--transition-theme);
}

.guide-card[data-method="cbe"] .guide-account-chip {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #4c1d95;
    border-color: #7c3aed;
}

body.dark-mode .guide-account-chip {
    background: linear-gradient(135deg, #3a2f1a, #4a3a1f);
    color: #fcd34d;
    border-color: #b45309;
}

body.dark-mode .guide-card[data-method="cbe"] .guide-account-chip {
    background: linear-gradient(135deg, #2d1b4e, #3f2b6b);
    color: #c4b5fd;
    border-color: #8b5cf6;
}

.guide-account-chip .chip-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.guide-account-chip .chip-copy {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.75rem;
    opacity: 0.75;
    transition: opacity 0.2s, background 0.2s;
}

.guide-account-chip .chip-copy:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
}

.guide-amount {
    background: linear-gradient(135deg, #e8f0fe, #f5f7fb);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border: 1.5px solid var(--primary-light);
    transition: var(--transition-theme);
}

body.dark-mode .guide-amount {
    background: linear-gradient(135deg, #1e2a4a, #181825);
    border-color: var(--primary);
}

.guide-amount-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    transition: var(--transition-theme);
}

.guide-amount-label i { color: var(--primary); font-size: 0.85rem; }

.guide-amount-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    transition: var(--transition-theme);
}

.guide-amount-value span {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-left: 2px;
}

.guide-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    transition: var(--transition-theme);
}

.guide-security i { font-size: 0.8rem; }

/* =========================================================
   SUMMARY
   ========================================================= */
.summary-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

.summary-box h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
    transition: var(--transition-theme);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-gray);
    padding: 6px 0;
    gap: 10px;
    transition: var(--transition-theme);
}

.summary-row.total {
    border-top: 1px dashed var(--border);
    margin-top: 10px;
    padding-top: 14px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.summary-row.total .amount { color: var(--primary); }

/* =========================================================
   PROCESSING & SUCCESS
   ========================================================= */
.processing-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
    min-height: 60vh;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-state h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: var(--transition-theme);
}
.processing-state p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    transition: var(--transition-theme);
}

.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    text-align: center;
}

.pending-icon {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
    animation: pulse-warn 2s infinite;
}

@keyframes pulse-warn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-state h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
    transition: var(--transition-theme);
}
.success-state > p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 340px;
    transition: var(--transition-theme);
}

.receipt {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    text-align: left;
    transition: var(--transition-theme);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.8rem;
    color: var(--text-gray);
    gap: 10px;
    transition: var(--transition-theme);
}
.receipt-row strong { color: var(--text-dark); }

/* =========================================================
   PAYMENT APPROVAL FORM
   ========================================================= */
.approval-form {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    text-align: left;
    transition: var(--transition-theme);
}

.approval-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
    transition: var(--transition-theme);
}

.approval-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #34a853, #1e8e3e);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.approval-form-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
    transition: var(--transition-theme);
}

.approval-form-header p {
    font-size: 0.7rem;
    color: var(--text-gray);
    transition: var(--transition-theme);
}

.approval-form .form-group { margin-bottom: 14px; }
.approval-form .form-group:last-child { margin-bottom: 0; }

.approval-form .form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: var(--transition-theme);
}

.approval-form .form-group label::after {
    content: ' *';
    color: var(--danger);
    font-weight: 700;
}

.approval-form .input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
}

.approval-form .input-wrapper:focus-within {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
}

.approval-form .input-wrapper i {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-right: 10px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.approval-form .input-wrapper input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-dark);
    min-width: 0;
}

.approval-form .input-wrapper input::placeholder { color: var(--text-light); }

.field-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.68rem;
    color: var(--text-gray);
    line-height: 1.5;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-theme);
}

body.dark-mode .field-hint {
    color: #a9c7ff;
}

.field-hint i {
    color: var(--primary);
    font-size: 0.75rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* =========================================================
   TELEGRAM NOTICE
   ========================================================= */
.telegram-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: linear-gradient(135deg, #e7f5ff 0%, #f0f9ff 100%);
    border: 2px solid #b3e0f5;
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    text-align: left;
    transition: var(--transition-theme);
}

body.dark-mode .telegram-notice {
    background: linear-gradient(135deg, #0d2a3a 0%, #103244 100%);
    border-color: #1a7fa8;
}

.telegram-notice i.fa-telegram {
    color: var(--telegram);
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.telegram-notice h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: var(--transition-theme);
}

.telegram-notice p {
    font-size: 0.72rem;
    color: var(--text-gray);
    line-height: 1.5;
    transition: var(--transition-theme);
}

/* =========================================================
   ACCOUNT
   ========================================================= */
.account-header {
    background: linear-gradient(135deg, #4285f4 0%, #8e44ad 100%);
    padding: 30px 24px 50px;
    color: white;
    text-align: center;
    position: relative;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.account-avatar {
    width: 84px;
    height: 84px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    position: relative;
}

.account-avatar .crown-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fbbc04, #f59e0b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    border: 2px solid #8e44ad;
    color: white;
}

.account-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.account-header p {
    font-size: 0.8rem;
    opacity: 0.85;
    word-break: break-word;
}

.account-body { padding: 0 20px 20px; margin-top: -30px; }

.premium-cta {
    background: linear-gradient(135deg, #4285f4, #1a73e8, #174ea6);
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.4);
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.premium-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 70%);
    border-radius: 50%;
}
.premium-cta:hover { transform: translateY(-2px); }

.premium-cta-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.25);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.premium-cta-text {
    flex: 1;
    color: white;
    position: relative;
    z-index: 1;
    min-width: 0;
}
.premium-cta-text h4 {
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 3px;
}
.premium-cta-text p {
    font-size: 0.72rem;
    opacity: 0.95;
}

.premium-cta.is-premium {
    background: linear-gradient(135deg, #34a853, #1e8e3e, #137333);
    box-shadow: 0 8px 24px rgba(52, 168, 83, 0.4);
}

.settings-group {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: var(--bg-light); }

.settings-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.settings-text { flex: 1; min-width: 0; }
.settings-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition-theme);
}
.settings-text p {
    font-size: 0.7rem;
    color: var(--text-gray);
    margin-top: 2px;
    transition: var(--transition-theme);
}

.switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 24px;
    transition: 0.3s;
    cursor: pointer;
}
.switch .track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::before { transform: translateX(18px); }

.btn-logout {
    width: 100%;
    background: var(--danger-light);
    color: var(--danger);
    border: none;
    padding: 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-bottom: 20px;
}
.btn-logout:hover { filter: brightness(0.95); }

/* =========================================================
   ORDERS
   ========================================================= */
.orders-tabs {
    display: flex;
    background: var(--bg-light);
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 20px;
    position: relative;
    transition: var(--transition-theme);
    overflow-x: auto;
    scrollbar-width: none;
}
.orders-tabs::-webkit-scrollbar { display: none; }

.orders-tab {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 2;
    border-radius: 25px;
    transition: color 0.3s, background 0.2s;
    white-space: nowrap;
}

.orders-tab.active {
    color: white;
    background: var(--primary);
}

.order-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 14px;
    transition: var(--transition-theme);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    gap: 10px;
}

.order-id {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 3px;
    transition: var(--transition-theme);
}

.order-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: var(--transition-theme);
}

.order-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.status-active { background: var(--success-light); color: var(--success); }
.status-pending { background: var(--warning-light); color: #b45309; font-weight: 800; }
.status-expired { background: var(--danger-light); color: var(--danger); }

.order-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-gray);
    padding: 3px 0;
    gap: 10px;
    transition: var(--transition-theme);
}
.order-details strong { color: var(--text-dark); text-align: right; }

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}
.order-total .label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
}
.order-total .value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}

.empty-orders {
    text-align: center;
    padding: 60px 20px;
}
.empty-orders i {
    font-size: 3rem;
    color: var(--border);
    margin-bottom: 16px;
}
.empty-orders h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    transition: var(--transition-theme);
}
.empty-orders p {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    transition: var(--transition-theme);
}

/* =========================================================
   TELEGRAM FLOATING BUTTON
   ========================================================= */
.telegram-fab {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom));
    right: max(20px, calc(50vw - var(--app-max-width)/2 + 20px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #229ED9, #1a7fa8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(34, 158, 217, 0.5);
    z-index: 90;
    transition: all 0.3s;
    animation: tgPulse 2s infinite;
}

.telegram-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(34, 158, 217, 0.65);
}

.telegram-fab:active { transform: scale(0.95); }

.telegram-fab::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(34, 158, 217, 0.5);
    animation: tgRing 2s infinite;
}

@keyframes tgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes tgRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* =========================================================
   BOTTOM NAV
   ========================================================= */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--app-max-width);
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
    transition: var(--transition-theme);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
    flex: 1;
    min-width: 0;
}
.nav-item i { font-size: 1.15rem; }
.nav-item.active { color: var(--primary); }
.nav-item.active i {
    background: var(--primary-light);
    padding: 6px;
    border-radius: 50%;
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
    position: fixed;
    bottom: calc(100px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 2000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    max-width: calc(100vw - 40px);
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.toast i { color: var(--success); }
.toast span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hidden { display: none !important; }

/* =========================================================
   HOME LAYOUT
   ========================================================= */
.home-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.home-main { width: 100%; }
.home-side { width: 100%; }

/* =========================================================
   SAFE AREA FOR BOTTOM NAV
   ========================================================= */
.page .main-content > *:last-child { margin-bottom: 20px; }

.page > .main-content:last-child {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

#page-home .main-content,
#page-products .main-content {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
    .language-switcher {
        padding: 2px;
    }
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}

@media (max-width: 360px) {
    .hero h1 { font-size: 1.35rem; }
    .featured-product { padding: 18px; }
    .price-row .amount { font-size: 1.7rem; }
    .account-header { padding: 24px 18px 44px; }
    .account-avatar { width: 72px; height: 72px; font-size: 1.7rem; }
    .auth-wrapper { padding: 30px 18px 24px; }
    .main-content { padding: 20px 16px; }
    .settings-row { padding: 13px 14px; gap: 12px; }
    .nav-item { font-size: 0.6rem; padding: 6px 8px; }
    .nav-item i { font-size: 1.05rem; }
    .telegram-fab { width: 50px; height: 50px; font-size: 1.4rem; }
    .payment-logo { width: 38px; height: 38px; font-size: 0.68rem; }
    .guide-card { padding: 16px; }
    .guide-brand-logo { width: 38px; height: 38px; font-size: 0.7rem; }
    .guide-amount-value { font-size: 1.1rem; }
    .guide-account-chip { font-size: 0.72rem; padding: 5px 10px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .auth-wrapper { padding: 20px 24px; }
    .auth-brand { margin-bottom: 16px; }
    .auth-brand-logo { width: 56px; height: 56px; }
    .auth-brand-logo::after { width: 40px; height: 40px; }
    .auth-brand-logo i { font-size: 1.1rem; }
    .auth-brand h1 { font-size: 1.2rem; }
    .hero { padding: 20px 24px 28px; }
    .hero h1 { font-size: 1.25rem; }
    .processing-state { padding: 40px 20px; min-height: auto; }
}

@media (min-width: 481px) and (max-width: 1024px) {
    :root { --app-max-width: 520px; }
    body { background: #eef1f6; padding: 24px 0; }
    body.dark-mode { background: #0f0f1a; }
    .app {
        min-height: calc(100vh - 48px);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    }
    .hero h1 { font-size: 1.8rem; }
    .featured-product h2 { font-size: 1.4rem; }
    .bottom-nav { max-width: var(--app-max-width); border-radius: 0 0 24px 24px; }
    .telegram-fab { right: calc(50vw - var(--app-max-width)/2 + 20px); }
}

@media (min-width: 1025px) {
    :root { --app-max-width: 1100px; }

    body {
        background: linear-gradient(135deg, #eef1f6 0%, #e0e7ff 100%);
        align-items: flex-start;
        padding: 40px 20px;
    }
    body.dark-mode { background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%); }

    .app {
        max-width: var(--app-max-width);
        min-height: auto;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0,0,0,0.15);
        padding-bottom: 0;
        background: var(--bg-light);
    }

    .bottom-nav {
        position: sticky;
        top: 0;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-top: none;
        border-bottom: 1px solid var(--border-light);
        border-radius: 24px 24px 0 0;
        padding: 12px 24px;
        justify-content: flex-start;
        gap: 8px;
        backdrop-filter: blur(12px);
        box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    }

    .nav-item {
        flex-direction: row;
        gap: 8px;
        padding: 10px 18px;
        font-size: 0.8rem;
        width: auto;
        flex: 0 0 auto;
        border-radius: 24px;
    }
    .nav-item i { font-size: 1rem; }
    .nav-item.active { background: var(--primary-light); color: var(--primary); }
    .nav-item.active i { background: transparent; padding: 0; }

    .home-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    .home-main { flex: 1; min-width: 0; }
    .home-side { width: 320px; flex-shrink: 0; position: sticky; top: 90px; }

    .main-content { padding: 32px 40px; }
    .hero {
        padding: 48px 40px 56px;
        border-radius: 0;
    }
    .hero h1 { font-size: 2rem; max-width: 700px; }
    .hero p { font-size: 1rem; max-width: 600px; }
    .hero-content { max-width: 800px; }

    .featured-product { padding: 32px; }
    .featured-product h2 { font-size: 1.6rem; }
    .product-desc { font-size: 0.95rem; }
    .price-row .amount { font-size: 2.4rem; }
    .product-features li { font-size: 0.9rem; padding: 9px 0; }
    .btn-buy-large { padding: 18px; font-size: 1rem; }

    .trust-row { flex-direction: column; gap: 12px; }
    .trust-item { padding: 18px 12px; }
    .trust-item i { font-size: 1.4rem; margin-bottom: 8px; }
    .trust-item span { font-size: 0.75rem; }

    .info-box { padding: 18px 20px; }
    .info-box p { font-size: 0.85rem; }

    .section-title { font-size: 1.2rem; }
    .section-subtitle { font-size: 0.9rem; }

    .account-header {
        padding: 48px 40px 70px;
        border-radius: 0 0 32px 32px;
    }
    .account-header h2 { font-size: 1.6rem; }
    .account-avatar { width: 110px; height: 110px; font-size: 2.6rem; }
    .account-body { padding: 0 40px 40px; margin-top: -50px; }

    .premium-cta { padding: 24px; }
    .premium-cta-text h4 { font-size: 1.05rem; }
    .premium-cta-text p { font-size: 0.85rem; }
    .premium-cta-icon { width: 64px; height: 64px; font-size: 1.8rem; }

    .settings-group { max-width: 700px; margin-left: auto; margin-right: auto; }
    .settings-row { padding: 18px 20px; }
    .settings-text h4 { font-size: 0.95rem; }
    .settings-text p { font-size: 0.78rem; }
    .settings-icon { width: 40px; height: 40px; font-size: 1.05rem; }

    .btn-logout { max-width: 700px; margin-left: auto; margin-right: auto; padding: 16px; }

    .auth-wrapper { min-height: 100vh; padding: 40px; align-items: center; }
    .auth-wrapper > * { width: 100%; max-width: 460px; }

    .main-content > * { max-width: 900px; margin-left: auto; margin-right: auto; }
    .payment-list { display: grid; grid-template-columns: repeat(2, 1fr); }
    .payment-method { padding: 18px; }
    .payment-info h4 { font-size: 0.95rem; }
    .payment-info p { font-size: 0.78rem; }
    .payment-logo { width: 48px; height: 48px; font-size: 0.85rem; }

    .summary-box { padding: 24px; }
    .summary-row { font-size: 0.9rem; padding: 8px 0; }
    .summary-row.total { font-size: 1.15rem; }

    .telegram-fab { right: calc(50vw - var(--app-max-width)/2 + 24px); bottom: 32px; }
    .toast { bottom: 40px; }

    .main-content,
    #page-home .main-content,
    #page-products .main-content { padding-bottom: 32px; }

    .page .main-content > *:last-child { margin-bottom: 0; }
}

@media (min-width: 1440px) {
    .hero h1 { font-size: 2.2rem; }
    .featured-product h2 { font-size: 1.7rem; }
    .price-row .amount { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .bottom-nav, .telegram-fab, .toast, .icon-btn { display: none !important; }
    .app { box-shadow: none; max-width: 100%; }
}
/* =========================================================
   AUTH LOADING OVERLAY
   ========================================================= */
.auth-loading-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #4285f4 0%, #8e44ad 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.auth-loading-content {
    text-align: center;
    color: white;
}

.auth-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spinAuth 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spinAuth {
    to { transform: rotate(360deg); }
}

.auth-loading-content p {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* =========================================================
   AMHARIC FONT SUPPORT
   ========================================================= */
html[lang="am"] body {
    font-family: 'Noto Sans Ethiopic', 'Inter', sans-serif;
}

html[lang="am"] .hero h1,
html[lang="am"] .featured-product h2,
html[lang="am"] .section-title {
    letter-spacing: 0;
}