/* ═══════════════════════════════════════════
   Green Exchange — Crypto Exchange Platform
   Dark theme with green/emerald accents
   ═══════════════════════════════════════════ */

:root {
    --bg-primary: #080c0a;
    --bg-secondary: #0e1512;
    --bg-card: #121a16;
    --bg-card-hover: #182420;
    --bg-input: #151d18;
    --border-color: #1f3028;
    --border-hover: #2d4a38;

    --text-primary: #eaf5ef;
    --text-secondary: #94b3a0;
    --text-muted: #5e7d6b;

    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-light: rgba(34, 197, 94, 0.15);
    --accent-glow: rgba(34, 197, 94, 0.3);

    --gradient: linear-gradient(135deg, #22c55e, #10b981);
    --gradient-text: linear-gradient(135deg, #4ade80, #34d399);
    --gradient-hero: linear-gradient(180deg, rgba(34,197,94,0.08) 0%, transparent 60%);

    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --orange: #f97316;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset & Base ─────────────────────────── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img { max-width: 100%; }

::selection {
    background: var(--accent);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 16px;
}

/* ─── Text Utilities ──────────────────────── */

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.req { color: var(--red); }

/* ─── Buttons ─────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn i { font-size: 0.9em; }

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.3);
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-danger:hover { opacity: 0.9; }

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-xs { padding: 4px 10px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Header ──────────────────────────────── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 12, 10, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.nav-admin {
    color: var(--yellow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ─── Hero ────────────────────────────────── */

.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34,197,94,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(34,197,94,0.25);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ─── Background Decorations (floating $, BTC) ── */

.bg-decorations {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.deco {
    position: absolute;
    color: rgba(34, 197, 94, 0.06);
    animation: decoFloat 20s ease-in-out infinite;
}

.deco-1  { font-size: 5rem;   top: 8%;   left: 5%;   animation-delay: 0s;    animation-duration: 22s; }
.deco-2  { font-size: 3.5rem; top: 15%;  right: 8%;  animation-delay: -3s;   animation-duration: 18s; }
.deco-3  { font-size: 7rem;   top: 55%;  left: 2%;   animation-delay: -7s;   animation-duration: 25s; color: rgba(34, 197, 94, 0.04); }
.deco-4  { font-size: 4rem;   top: 70%;  right: 5%;  animation-delay: -2s;   animation-duration: 20s; }
.deco-5  { font-size: 4.5rem; top: 30%;  left: 12%;  animation-delay: -10s;  animation-duration: 24s; color: rgba(34, 197, 94, 0.05); }
.deco-6  { font-size: 6rem;   top: 40%;  right: 3%;  animation-delay: -5s;   animation-duration: 19s; color: rgba(34, 197, 94, 0.04); }
.deco-7  { font-size: 3rem;   top: 85%;  left: 15%;  animation-delay: -8s;   animation-duration: 21s; }
.deco-8  { font-size: 5.5rem; top: 5%;   right: 20%; animation-delay: -12s;  animation-duration: 26s; color: rgba(34, 197, 94, 0.04); }
.deco-9  { font-size: 4rem;   top: 60%;  left: 25%;  animation-delay: -15s;  animation-duration: 23s; color: rgba(34, 197, 94, 0.03); }
.deco-10 { font-size: 3.5rem; top: 20%;  left: 40%;  animation-delay: -6s;   animation-duration: 17s; color: rgba(34, 197, 94, 0.04); }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 1; }
    25%      { transform: translateY(-15px) rotate(5deg); opacity: 0.7; }
    50%      { transform: translateY(-8px) rotate(-3deg); opacity: 1; }
    75%      { transform: translateY(-20px) rotate(3deg); opacity: 0.6; }
}

/* ─── Features ────────────────────────────── */

.features-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ─── Exchange CTA ────────────────────────── */

.exchange-cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.exchange-cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
}

.exchange-cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.exchange-cta-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.exchange-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cta-info-item i {
    color: var(--green);
    font-size: 1.1rem;
}

/* ─── Rates Table ─────────────────────────── */

.rates-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rates-table thead {
    background: var(--bg-secondary);
}

.rates-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.rates-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.rates-table tbody tr {
    transition: background var(--transition);
}

.rates-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.rates-table tbody tr:last-child td {
    border-bottom: none;
}

.rate-pair {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.crypto-badge {
    background: var(--accent-light);
    color: var(--accent);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.fiat-badge {
    background: rgba(34,197,94,0.1);
    color: var(--green);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
}

.rate-buy { color: var(--green); font-weight: 600; }
.rate-sell { color: var(--accent); font-weight: 600; }
.rate-date { color: var(--text-muted); font-size: 0.85rem; }

/* ─── About ───────────────────────────────── */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.about-lead {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-feature i {
    color: var(--accent);
    font-size: 1.1rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #22c55e, #10b981);
}

.about-card-inner {
    padding: 40px 32px;
    text-align: center;
}

.about-card-inner h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.about-card-inner h3 i {
    color: #2AABEE;
}

.about-card-inner p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ─── How It Works ────────────────────────── */

.howto-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.step-num {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ─── FAQ ─────────────────────────────────── */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ─── Modal ───────────────────────────────── */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.exchange-modal {
    max-width: 640px;
}

.exchange-modal h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.agreement-modal {
    text-align: center;
    max-width: 520px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent);
}

.agreement-modal h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.agreement-text {
    text-align: left;
    margin-bottom: 24px;
}

.agreement-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.agreement-text ul {
    list-style: none;
    padding: 0;
}

.agreement-text ul li {
    padding: 8px 0 8px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
}

.agreement-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* ─── Exchange Tabs ───────────────────────── */

.exchange-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tab-btn:hover { color: var(--text-primary); }

.tab-btn.active {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ─── Forms ───────────────────────────────── */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239b9db3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.input-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

/* ─── Calc Result ─────────────────────────── */

.calc-result {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 20px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.95rem;
}

.calc-row span { color: var(--text-secondary); }
.calc-row strong { font-size: 1.1rem; }

.calc-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}

.calc-note i {
    color: var(--yellow);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ─── Auth ────────────────────────────────── */

.auth-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ─── Cabinet ─────────────────────────────── */

.cabinet-section {
    padding-top: 100px;
    min-height: calc(100vh - 64px);
}

.cabinet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.cabinet-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.cabinet-actions {
    display: flex;
    gap: 12px;
}

.cabinet-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

/* ─── Status & Badges ─────────────────────── */

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-sell {
    background: rgba(239,68,68,0.1);
    color: var(--red);
}

.badge-buy {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-new {
    background: rgba(34,197,94,0.1);
    color: var(--accent);
}

.status-processing {
    background: rgba(234,179,8,0.1);
    color: var(--yellow);
}

.status-completed {
    background: rgba(34,197,94,0.1);
    color: var(--green);
}

.status-cancelled {
    background: rgba(239,68,68,0.1);
    color: var(--red);
}

/* ─── Admin ───────────────────────────────── */

.admin-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
}

.admin-block h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-block h2 i { color: var(--accent); }

.status-form select {
    padding: 6px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.8rem;
    cursor: pointer;
}

.td-wallet {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Flash Messages ──────────────────────── */

.flash-container {
    position: fixed;
    top: 72px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.flash {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    animation: flashIn 0.3s ease;
    border: 1px solid;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.flash-success {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: var(--green);
}

.flash-danger {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: var(--red);
}

.flash-warning {
    background: rgba(234,179,8,0.1);
    border-color: rgba(234,179,8,0.3);
    color: var(--yellow);
}

.flash-info {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: var(--accent);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}

.flash-close:hover { opacity: 1; }

/* ─── Empty State ─────────────────────────── */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    margin-bottom: 16px;
    font-size: 1rem;
}

/* ─── Error Page ──────────────────────────── */

.error-page {
    padding: 80px 0;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-page h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ─── Legal Pages ─────────────────────────── */

.legal-section {
    padding-top: 100px;
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-card h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal-card h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--accent);
}

.legal-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.7;
}

/* ─── Footer ──────────────────────────────── */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--text-primary); }

.footer-licenses {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

.footer-licenses h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.license-text {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 12px;
}

.license-text::-webkit-scrollbar { width: 4px; }
.license-text::-webkit-scrollbar-track { background: var(--bg-primary); }
.license-text::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.license-text p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    margin-bottom: 10px;
}

.license-text a { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ─── Floating Telegram Button ────────────── */

.floating-tg-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2AABEE, #229ED9);
    color: #fff;
    padding: 14px 24px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4);
    transition: all var(--transition);
    animation: floatPulse 3s ease-in-out infinite;
}

.floating-tg-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 28px rgba(42, 171, 238, 0.55);
    color: #fff;
}

.floating-tg-btn i {
    font-size: 1.4rem;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(42, 171, 238, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(42, 171, 238, 0.6); }
}

/* ─── About Office ───────────────────────── */

.about-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.about-address {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--accent-light);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    margin: 20px 0;
}

.about-address > i {
    color: var(--accent);
    font-size: 1.3rem;
    margin-top: 2px;
}

.about-address strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.about-address span {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.office-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

.office-photo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s, transform 0.3s;
}

.office-photo:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.office-photo-main {
    grid-column: 1 / -1;
}

.office-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.office-photo-main img {
    max-height: 420px;
}

.office-photo:not(.office-photo-main) img {
    height: 260px;
}

.office-photo-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 500;
}

/* ─── Info Banner ────────────────────────── */

.info-banner-section { padding: 0 0 20px; }

.info-banner {
    display: flex;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 36px;
    position: relative;
    overflow: hidden;
}

.info-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    border-radius: 16px 0 0 16px;
}

.info-banner-icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light);
    border-radius: 12px;
    font-size: 1.4rem;
    color: var(--accent);
}

.info-banner-content h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.info-banner-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.info-banner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.info-banner-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
}

.info-banner-tags span i { font-size: 0.7rem; }

/* ─── Reviews Page ──────────────────────── */

.reviews-page .section-header { margin-bottom: 32px; }

.review-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
}

.review-form-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.review-form-card h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.review-form-card textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.review-form-card textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.review-notice {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 0.92rem;
}

.review-notice i { color: var(--accent); margin-right: 8px; }
.review-notice a { color: var(--accent); text-decoration: underline; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.review-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    text-transform: uppercase;
}

.review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.review-author {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.review-stars {
    color: #eab308;
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ─── Reserves Page ─────────────────────── */

.reserves-page .section-header { margin-bottom: 32px; }

.reserves-category-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 28px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reserves-category-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.reserves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.reserve-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    transition: border-color 0.3s;
}

.reserve-card:hover { border-color: var(--border-hover); }

.reserve-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reserve-name {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
}

.reserve-amount {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}

.reserve-ticker {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.82rem;
}

.fiat-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ─── Admin extra ───────────────────────── */

.admin-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
}

.admin-block h2 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-block h2 i { color: var(--accent); }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.status-new {
    background: var(--accent-light);
    color: var(--accent);
}

.status-processing {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
}

.td-wallet {
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-form select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.5;
}

/* ─── Offices Block ───────────────────────── */

.offices-block {
    margin-top: 48px;
}

.offices-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.offices-title i {
    color: var(--accent);
    font-size: 1.3rem;
}

.offices-country {
    margin-bottom: 28px;
}

.offices-country-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.offices-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.offices-country-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.office-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.3s;
}

.office-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}

.office-card-city {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-hq {
    display: inline-block;
    padding: 1px 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.office-card-addr {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.office-card-intl {
    border-left: 3px solid var(--accent);
}

/* ─── Responsive ──────────────────────────── */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .cabinet-info { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .exchange-cta-card { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: repeat(2, 1fr); }
    .offices-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: 16px;
        gap: 4px;
    }
    .mobile-toggle { display: block; }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .hero-stat-num { font-size: 1.4rem; }
    .hero-actions { flex-direction: column; align-items: center; }

    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .cabinet-info { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .form-row { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: 1fr; }

    .section { padding: 48px 0; }
    .modal-box { padding: 24px; }
    .legal-card { padding: 24px; }
    .auth-card { padding: 24px; }

    .exchange-cta-card { padding: 28px; }
    .exchange-cta-buttons { flex-direction: column; }

    .cabinet-header { flex-direction: column; align-items: flex-start; }

    .info-banner { flex-direction: column; }
    .office-gallery { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .office-photo:not(.office-photo-main) img { height: 200px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .reserves-grid { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .floating-tg-btn span { display: none; }
    .floating-tg-btn {
        padding: 16px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }
    .floating-tg-btn i { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .container { padding: 0 16px; }
}
