/* ==========================================================================
   HITHER MANN COPY TRADING - MAIN LUXURY FINTECH DESIGN SYSTEM
   London Mayfair & City of London Financial Prestige Aesthetic
   Fully Responsive for Desktop, Tablet, and Mobile (320px+)
   ========================================================================== */

:root {
    --bg-primary: #07090e;
    --bg-secondary: #0c101c;
    --bg-card: rgba(16, 22, 36, 0.85);
    --bg-card-hover: rgba(22, 30, 48, 0.95);
    --bg-glass: rgba(15, 23, 42, 0.65);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --gold-primary: #f59e0b;
    --gold-light: #fbbf24;
    --gold-dark: #b45309;
    --gold-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fde68a 100%);
    
    --emerald-primary: #10b981;
    --emerald-light: #34d399;
    --emerald-dark: #047857;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    
    --cyan-accent: #06b6d4;
    --red-danger: #ef4444;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.28);
    --border-emerald: rgba(16, 185, 129, 0.25);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 12px 35px -5px rgba(245, 158, 11, 0.22);
    --shadow-emerald: 0 12px 35px -5px rgba(16, 185, 129, 0.22);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 35%, rgba(16, 185, 129, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    word-break: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img, svg {
    max-width: 100%;
    height: auto;
}

.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-emerald { color: var(--emerald-light); }
.text-danger { color: var(--red-danger); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }

/* ========== Container ========== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== Responsive Grid Utility Classes ========== */
/* These are always applied via class; media queries override columns at breakpoints */

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.grid-about {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.grid-calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========== Inline Grid Helper Classes (replaces inline style grids) ========== */
/* Terminal body row */
.terminal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* Trade row styling in data-table */
tr.trade-row {
    display: table-row;
}

/* Form grids for admin settings - responsive */
.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr;
    gap: 16px;
}
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.form-grid-3b {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #000;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.35);
}

.btn-emerald {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    box-shadow: var(--shadow-emerald);
}

.btn-emerald:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.35);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

/* ========== Glass Cards ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ========== Badges ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-gold {
    background: rgba(245, 158, 11, 0.14);
    color: var(--gold-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.14);
    color: var(--emerald-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.14);
    color: var(--cyan-accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

/* ========== Top FX Ticker Bar ========== */
.ticker-bar {
    background: #05070a;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 0;
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.ticker-track {
    display: inline-flex;
    gap: 32px;
    animation: tickerScroll 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.ticker-symbol {
    font-weight: 700;
    color: var(--text-main);
}

.ticker-up { color: var(--emerald-light); }
.ticker-down { color: var(--red-danger); }

/* ========== Header & Navbar ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 9, 14, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gold-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: #000;
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1.15;
}

.brand-title span {
    font-size: 10px;
    display: block;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--gold-light);
}

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

.nav-mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    width: 38px;
    height: 38px;
    cursor: pointer;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

/* ========== Mobile Nav Drawer Overlay ========== */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 14, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    padding: 24px;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-drawer.active {
    display: flex;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.mobile-nav-list a {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    display: block;
    padding: 8px 0;
}

.mobile-nav-list a:hover {
    color: var(--gold-light);
}

/* ========== Hero Section ========== */
.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}

.hero-description {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hero-stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ========== Terminal Card ========== */
.terminal-card {
    background: rgba(12, 16, 28, 0.95);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), var(--shadow-gold);
    overflow: hidden;
    width: 100%;
}

.terminal-header {
    background: #090d16;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-status {
    font-size: 11px;
    font-weight: 700;
    color: var(--emerald-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-light);
    box-shadow: 0 0 10px var(--emerald-light);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.terminal-body {
    padding: 22px;
}

/* Terminal position entry row */
.terminal-position {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
}
.terminal-position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.terminal-position-meta {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 4px;
}
.terminal-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== Sections ========== */
.section-padding {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 12px 0 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* ========== About Section ========== */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.about-card {
    padding: 40px;
    border-color: var(--border-gold);
    background: radial-gradient(circle at top, rgba(245, 158, 11, 0.15), transparent 70%), #0c101c;
}

.about-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 24px;
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}

.about-trader-name {
    font-size: 28px;
    margin-bottom: 8px;
}

.about-trader-title {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 16px;
}

.about-bio {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Philosophy mini-grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}

.philosophy-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    border-radius: 12px;
}

.philosophy-icon {
    font-size: 22px;
    margin-bottom: 8px;
}

.philosophy-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.philosophy-card p {
    font-size: 13px;
    color: var(--text-dim);
}

/* ========== ROI Calculator ========== */
.calculator-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
}

.calc-range-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.calc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 4px;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 30px;
}

.calc-result-item {
    text-align: center;
    padding: 8px;
}

.calc-result-label {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 4px;
}

/* ========== MT Steps Grid ========== */
.mt-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mt-step-card {
    text-align: center;
    padding: 36px 24px;
}

.mt-step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
}

/* ========== Package Grid ========== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.pkg-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 32px 26px;
    position: relative;
}

.pkg-card.featured {
    border-color: var(--gold-primary);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, rgba(16, 22, 36, 0.95) 100%);
    box-shadow: var(--shadow-gold);
}

.pkg-header { margin-bottom: 20px; }
.pkg-name { font-size: 22px; font-weight: 800; margin-top: 10px; }

.pkg-roi-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.pkg-roi-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--emerald-light);
}

.pkg-features {
    list-style: none;
    margin: 20px 0 28px;
    flex-grow: 1;
}

.pkg-features li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-features li svg {
    color: var(--emerald-light);
    flex-shrink: 0;
}

/* Pkg row items */
.pkg-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

/* ========== FAQ ========== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-card {
    padding: 24px;
}

.faq-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #fff;
}

.faq-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ========== Footer ========== */
.footer {
    background: #04060a;
    border-top: 1px solid var(--border-subtle);
    padding: 70px 0 30px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-dim);
    gap: 16px;
    flex-wrap: wrap;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 14.5px;
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* ========== Alert Boxes ========== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ========== Page auth/form wrappers ========== */
.auth-page-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.auth-card {
    max-width: 480px;
    width: 100%;
    padding: 40px;
    border-color: var(--border-gold);
}

/* Login portal quick fill */
.login-portal-fill {
    background: rgba(245, 158, 11, 0.06);
    border: 1px dashed var(--border-gold);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 24px;
}

.login-portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

/* ========================================================
   COMPREHENSIVE RESPONSIVE MEDIA QUERIES
   ======================================================== */

/* ---- 1. Large Tablets & Small Laptops (≤ 1100px) ---- */
@media (max-width: 1100px) {
    .hero-title {
        font-size: 44px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .grid-about {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---- 2. Tablets & Landscape Phones (≤ 992px) ---- */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .nav-mobile-toggle {
        display: inline-flex;
    }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero {
        padding: 50px 0 40px;
    }
    .hero-title {
        font-size: 38px;
    }
    .section-title {
        font-size: 30px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .mt-steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .form-grid-3b {
        grid-template-columns: 1fr 1fr;
    }
    .calculator-card {
        padding: 28px 20px;
    }
    .about-card {
        padding: 28px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* ---- 3. Portrait Tablets & Large Phones (≤ 768px) ---- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .hero-title {
        font-size: 32px;
        letter-spacing: -0.8px;
    }
    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .hero-stat-value {
        font-size: 22px;
    }
    .hero-stat-label {
        font-size: 10px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .hero-btns .btn {
        width: 100%;
    }
    .terminal-body {
        padding: 16px;
    }
    .card {
        padding: 20px 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .calc-results {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .calc-result-item {
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 14px;
    }
    .calc-result-item:last-child {
        border-bottom: none;
    }
    .grid-4-col {
        grid-template-columns: 1fr;
    }
    .grid-3-col {
        grid-template-columns: 1fr;
    }
    .mt-steps-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .form-grid-2 {
        grid-template-columns: 1fr;
    }
    .form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    .form-grid-3b {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 26px;
    }
    .section-padding {
        padding: 50px 0;
    }
    .brand-title {
        font-size: 15px;
    }
    .nav-actions .btn-lg {
        padding: 10px 18px;
        font-size: 13px;
    }
    .terminal-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .auth-card {
        padding: 28px 20px;
    }
    .login-portal-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- 4. Small Mobile Phones (≤ 480px) ---- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
        letter-spacing: -0.5px;
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }
    .section-title {
        font-size: 22px;
    }
    .brand-title {
        font-size: 14px;
    }
    .brand-icon {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }
    .nav-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .pkg-card {
        padding: 24px 18px;
    }
    .calc-range-labels {
        flex-direction: column;
        gap: 2px;
    }
    .form-grid-4 {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 40px 0 20px;
    }
    .card {
        padding: 16px 14px;
    }
    .terminal-body {
        padding: 12px;
    }
    .terminal-position {
        padding: 12px;
    }
    .hero-btns .btn {
        padding: 13px 20px;
        font-size: 14px;
    }
    .about-avatar {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
    .about-trader-name {
        font-size: 22px;
    }
    .calculator-card {
        padding: 20px 14px;
    }
    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ---- 5. Very Small Phones (≤ 360px) ---- */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-stat-value {
        font-size: 18px;
    }
    .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    .hero-subtitle {
        gap: 6px;
    }
    .navbar {
        padding: 10px 0;
    }
}
