:root {
    /* White Theme Colors */
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.95);
    /* More opaque for mobile */

    --primary: #00c853;
    --primary-glow: rgba(0, 200, 83, 0.2);

    --accent: #2962ff;

    --text-main: #111111;
    --text-muted: #666666;

    --border: #e0e0e0;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-bottom: 20px;
}

/* Background Glow Effect */
.bg-glow {
    position: fixed;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 98, 255, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navbar */
.navbar {
    height: 70px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

/* === SIMPLE AUTH PAGE (Image Replication) === */
.simple-auth-body {
    background-color: #f5f6fa;
    /* Light grey background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.simple-auth-container {
    width: 100%;
    max-width: 450px;
}

.simple-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    text-align: center;
}

.simple-title {
    font-family: var(--font-head);
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
}

.simple-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.simple-group {
    margin-bottom: 20px;
    text-align: left;
}

.simple-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    outline: none;
    transition: 0.3s;
    background: white;
}

.simple-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
}

.simple-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.simple-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
}

.simple-link-blue {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.simple-link-blue:hover {
    text-decoration: underline;
}

.simple-btn {
    width: 100%;
    background-color: #3b82f6;
    /* Bright Blue */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.simple-btn:hover {
    background-color: #2563eb;
}

.simple-footer-text {
    margin-top: 24px;
    font-size: 0.9rem;
    color: #666;
}

/* Override Dark Mode for this specific page if body has class */
.simple-auth-body .input-wrapper i {
    display: none;
    /* remove icons if copied from old */
}

/* === MULTI-STEP FORM === */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.step-dot {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #999;
    font-weight: 600;
    transition: 0.3s;
    border: 2px solid transparent;
}

.step-dot.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.step-dot.completed {
    background: #10b981;
    /* Green */
    color: white;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #e0e0e0;
    margin: 0 8px;
    transition: 0.3s;
}

.step-line.active {
    background: #10b981;
}

.step-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.secondary-btn {
    background-color: #e5e7eb;
    color: #4b5563;
}

.secondary-btn:hover {
    background-color: #d1d5db;
}

.input-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    text-align: left;
}

.readonly-input {
    background-color: #f3f4f6;
    color: #666;
    cursor: not-allowed;
    border-color: #e5e5e5;
    font-family: monospace;
    letter-spacing: 1px;
    font-weight: 700;
}

/* === AUTHENTICATION PAGES === */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: radial-gradient(circle at 50% 50%, rgba(41, 182, 246, 0.05) 0%, transparent 70%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.glass-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.auth-title {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.5);
}

.input-wrapper input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.1);
    background: white;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    accent-color: var(--accent);
}

.forgot-pass {
    color: var(--accent);
    font-weight: 600;
}

.full-width {
    width: 100%;
    margin-bottom: 24px;
    font-size: 1rem;
    padding: 14px;
}

.auth-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-main);
    font-weight: 700;
    margin-left: 4px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-links {
    display: flex;
    gap: 32px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn-glass {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-family: var(--font-body);
}

.btn-neon {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-neon:hover {
    transform: translateY(-2px);
    background: var(--accent);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-xl {
    padding: 16px 40px;
    font-size: 1.2rem;
}

/* Hero */
.hero {
    padding: 120px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e3fcf0;
    border: 1px solid #b9f6ca;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #007029;
    margin-bottom: 20px;
    font-weight: 600;
}

.dot {
    width: 6px;
    height: 6px;
    background: #00c853;
    border-radius: 50%;
    box-shadow: 0 0 5px #00c853;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), #1565c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fix: Define standard property */
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 32px;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.market-ticker-box {
    display: flex;
    gap: 20px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    /* Allow horizontal scroll on mobile */
    scrollbar-width: none;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    min-width: 100px;
    flex-shrink: 0;
}

.ticker-item span {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.ticker-item b {
    font-size: 1rem;
    color: var(--text-main);
}

.up {
    color: #00c853;
}

.down {
    color: #ff3d00;
}

/* Visual */
.hero-visual {
    position: relative;
}

.phone-mockup {
    width: 100%;
    max-width: 320px;
    height: 600px;
    background: #ffffff;
    border-radius: 40px;
    border: 8px solid #f0f0f0;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.screen-content {
    padding: 24px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.chart-header span {
    color: var(--text-muted);
    display: block;
    font-size: 0.9rem;
}

.chart-header b {
    font-size: 1.5rem;
    color: var(--text-main);
}

.label-positive {
    color: #007029;
    background: #e3fcf0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chart-area {
    margin-bottom: 100px;
    height: 200px;
}

.line-chart {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.buy-sell-actions {
    display: flex;
    gap: 16px;
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
}

.buy-sell-actions button {
    flex: 1;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-buy {
    background: var(--primary);
    color: white;
}

.btn-sell {
    background: #ff3d00;
    color: white;
}

.float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}

.card-1 {
    top: 80px;
    left: -10px;
    animation: float 5s ease-in-out infinite;
}

.card-2 {
    bottom: 80px;
    right: -10px;
    animation: float 6s ease-in-out infinite 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Features */
.features {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.section-badge {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.features h2 {
    text-align: center;
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-main);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-box {
    background: white;
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.icon-glow {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.icon-glow.blue {
    background: #e3f2fd;
    color: #1565c0;
}

.icon-glow.green {
    background: #e8f5e9;
    color: #2e7d32;
}

.icon-glow.purple {
    background: #f3e5f5;
    color: #7b1fa2;
}

.feature-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: var(--font-head);
    color: var(--text-main);
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats */
.stats-banner {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-block span {
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-block h3 {
    font-size: 2rem;
    font-family: var(--font-head);
    color: var(--text-main);
}

/* Reviews (Marquee) */
.reviews-section {
    padding: 80px 0;
    background: #fafafa;
    overflow: hidden;
}

.reviews-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fafafa, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fafafa, transparent);
}

.marquee-content {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollLeft 30s linear infinite;
}

@keyframes scrollLeft {
    to {
        transform: translateX(-50%);
    }
}

.review-card {
    width: 300px;
    background: white;
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    flex-shrink: 0;
}

.stars {
    color: #feac00;
    margin-bottom: 12px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-card p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* CTA */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: var(--text-main);
    color: white;
    border-radius: 24px;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-family: var(--font-head);
    color: white;
}

.cta-box p {
    color: #cccccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-box .btn-neon {
    background: white;
    color: black;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: #f9f9f9;
    border-top: 1px solid var(--border);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand h3 {
    margin-bottom: 14px;
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer-links {
    min-width: 140px;
}

.footer-links h4 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-copy {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: flex-end;
    /* Mobile: Bottom sheet style */
    justify-content: center;
}

.glass-modal {
    background: white;
    padding: 32px 24px;
    border-radius: 24px 24px 0 0;
    /* Bottom sheet radius */
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #999;
    font-size: 1.5rem;
    cursor: pointer;
}

.input-contain {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.input-contain input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-main);
    outline: none;
    font-size: 1rem;
}

.full-width {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* Learn Page Styles */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 60px 0;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.blog-img {
    height: 200px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

.blog-content {
    padding: 24px;
}

.blog-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content h3 {
    margin: 12px 0;
    font-size: 1.25rem;
}

.read-more {
    color: var(--accent);
    font-weight: 600;
    margin-top: 16px;
    display: inline-block;
}


/* === MOBILE OPTIMIZATION === */
@media (min-width: 769px) {
    .modal-backdrop {
        align-items: center;
    }

    .glass-modal {
        border-radius: 24px;
    }

    @keyframes slideUp {
        from {
            transform: translateY(20px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%;
        /* Scale down text for mobile */
    }

    .navbar {
        height: 70px;
        position: sticky;
        top: 0;
        bottom: auto;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 20px;
    }

    .logo {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 32px;
        padding: 40px;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), visibility 0.3s step-end;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), visibility 0s step-start;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1.25rem;
        flex-direction: row;
        /* Keeping icon and text inline */
        width: auto;
        padding: 0;
    }

    .nav-links a::before {
        display: none;
        /* remove css content icons if any were forced */
    }

    .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 16px;
        margin-top: 20px;
    }

    .nav-actions button {
        width: 100%;
        padding: 12px;
        font-size: 1.1rem;
    }

    /* Hero Adjustments */
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    /* Stats */
    .stat-block {
        width: 45%;
        margin-bottom: 20px;
    }

    /* Features */
    .features h2 {
        font-size: 2rem;
    }

    /* Trade Page Mobile - Stack Layout */
    .trade-layout {
        flex-direction: column;
        height: auto;
        margin-top: 0;
        margin-bottom: 70px;
        /* Space for bottom nav */
    }

    .sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-chart {
        height: 400px;
        padding: 10px;
    }

    .order-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border);
    }

    /* Analysis Page Mobile */
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .widget-card {
        height: 400px;
    }

    /* Learn Page Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Generic Paddings */
    .container {
        padding: 0 16px;
    }
}



/* Trade Dashboard Panel */
.dashboard-panel {
    background: white;
    border-top: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    overflow: hidden;
}

.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
}

.panel-tabs button {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    border-right: 1px solid var(--border);
    transition: 0.2s;
}

.panel-tabs button.active {
    background: white;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: #f8f9fa;
    padding: 10px 16px;
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: var(--text-main);
}

.inst-name {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-buy {
    background: #e3fcf0;
    color: #00c853;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-sell {
    background: #ffebee;
    color: #ff3d00;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fafafa;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.stat-item b {
    color: var(--text-main);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .dashboard-panel {
        min-height: auto;
    }

    /* Let it fit content on mobile stack */
    .data-table th,
    .data-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
}
/* =========================================
   DASHBOARD LAYOUT
   ========================================= */
.dashboard-body {
    background-color: #f7f9fc;
    display: flex;
    overflow: hidden; /* Prevent body scroll if sidebar/content scroll independently */
    height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: 0.3s;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-menu {
    flex: 1;
    padding: 24px 16px;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: 0.2s;
}

.menu-item:hover, .menu-item.active {
    background-color: #e3fcf0; /* Light green tint matching primary */
    color: var(--primary);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.user-profile-mini {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-info h4 {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.profile-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    margin-left: 260px; /* Sidebar width */
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
    background-color: #f7f9fc;
}

.top-bar {
    height: 70px;
    background-color: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.page-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.balance-card {
    background: #e3fcf0;
    padding: 6px 16px;
    border-radius: 50px;
    color: #007029;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-wrapper {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
}

/* CARDS & WIDGETS */
.dash-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

/* TABLES */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.custom-table td {
    padding: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.custom-table tr:last-child td {
    border-bottom: none;
}

/* RESPONSIVE DASHBOARD */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
}

/* =========================================
   MOBILE RESPONSIVENESS (ADDED)
   ========================================= */

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    margin-right: 16px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    display: none;
    opacity: 0;
    transition: 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile Changes */
@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }

    .main-content {
        margin-left: 0;
    }

    .top-bar {
        padding: 0 16px;
    }

    .content-wrapper {
        padding: 16px;
    }

    .dash-grid-3, .dash-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .dash-card {
        padding: 16px;
    }
}
