/**
 * Sky Otc - Light Theme Stylesheet
 * Responsive design with modern UI
 */

 :root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #C7AB59;
    --text-primary: #302718;
    --text-secondary: #5a4a3a;
    --accent-primary: #699E3C;
    --accent-success: #699E3C;
    --accent-danger: #d32f2f;
    --accent-warning: #C7AB59;
    --border-color: rgba(199, 171, 89, 0.3);
    --shadow: 0 2px 4px rgba(48, 39, 24, 0.15);
    --shadow-lg: 0 4px 12px rgba(48, 39, 24, 0.2);
    --bg-gradient-start: #FFFFFF;
    --bg-gradient-end: #FFFFFF;
    --landing-bg: #FFFFFF;
    --landing-text: #302718;
    --hero-bg-start: #FFFFFF;
    --hero-bg-mid: #FFFFFF;
    --hero-bg-end: #FFFFFF;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text-primary: #DED2A8;
    --text-secondary: #C7AB59;
    --accent-primary: #C7AB59;
    --accent-success: #699E3C;
    --accent-danger: #ef4444;
    --accent-warning: #C7AB59;
    --border-color: rgba(199, 171, 89, 0.3);
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
    --bg-gradient-start: #000000;
    --bg-gradient-end: #1a1a1a;
    --landing-bg: #000000;
    --landing-text: #DED2A8;
    --hero-bg-start: #000000;
    --hero-bg-mid: #1a1a1a;
    --hero-bg-end: #000000;
}

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

html {
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    word-wrap: break-word;
    font-size: 11px;
    transition: background-color 0.3s ease, color 0.3s ease;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
}

/* Responsive font sizes based on screen width */
@media (min-width: 375px) {
    body {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    body {
        font-size: 15px;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0.75rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Header removed - no longer needed */

/* ============================================================
   LANDING PAGE STYLES
   ============================================================ */

.landing-page {
    min-height: 100vh;
    background: var(--landing-bg);
    color: var(--landing-text);
    overflow-x: hidden;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.landing-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* New Hero Section */
.landing-hero-section {
    min-height: 90vh;
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-mid) 50%, var(--hero-bg-end) 100%);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem 0;
    transition: background 0.3s ease;
}

.landing-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(105, 158, 60, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.landing-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(199, 171, 89, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* New Header */
.landing-header-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-new {
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(105, 158, 60, 0.2));
}

.logo-text-new h1 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 50%, #699E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-header-login,
a.btn-header-login {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
    height: auto;
    line-height: 1.5;
}

.btn-header-login:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    background: var(--bg-hover);
}

.btn-header-register,
a.btn-header-register {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.3);
    font-family: inherit;
    box-sizing: border-box;
    height: auto;
    line-height: 1.5;
}

.btn-header-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 158, 60, 0.4);
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

/* Hero Wrapper */
.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content-new {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(105, 158, 60, 0.1);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    border: 1px solid rgba(105, 158, 60, 0.2);
}

.hero-badge svg {
    flex-shrink: 0;
}

.hero-title-new {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 50%, #699E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-new {
    font-size: 1.25rem;
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
    max-width: 550px;
}

.hero-buttons-new {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-hero-primary,
a.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    cursor: pointer;
    font-weight: 600;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(105, 158, 60, 0.4);
    font-family: inherit;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(105, 158, 60, 0.5);
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.btn-hero-primary svg {
    transition: transform 0.3s ease;
}

.btn-hero-primary:hover svg {
    transform: translateX(4px);
}

.btn-hero-secondary,
a.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    cursor: pointer;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-hero-secondary:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.1);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

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

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Hero Visual Cards */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
}

.hero-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #699E3C 0%, #C7AB59 100%);
    transition: width 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.hero-card:hover::before {
    width: 4px;
}

.card-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    border: 1px solid #e5e7eb;
}

.card-1 .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.08) 0%, rgba(105, 158, 60, 0.12) 100%);
    border-color: rgba(105, 158, 60, 0.2);
}

.card-1 .card-icon-wrapper svg {
    color: #7c3aed;
}

.card-2 .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(199, 171, 89, 0.08) 0%, rgba(199, 171, 89, 0.12) 100%);
    border-color: rgba(199, 171, 89, 0.2);
}

.card-2 .card-icon-wrapper svg {
    color: #10b981;
}

.card-3 .card-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.12) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.card-3 .card-icon-wrapper svg {
    color: #3b82f6;
}

.card-content {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.card-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.card-change-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.card-change-wrapper svg {
    flex-shrink: 0;
    color: #10b981;
}

.card-change {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.card-change.positive {
    color: #10b981;
}

.live-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(199, 171, 89, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(199, 171, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(199, 171, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(199, 171, 89, 0);
    }
}

.card-1 {
    animation: slideInRight 0.6s ease-out;
}

.card-2 {
    animation: slideInRight 0.8s ease-out;
}

.card-3 {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-visual {
        order: -1;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .hero-card {
        min-width: 280px;
        padding: 1.5rem;
    }
    
    .card-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .hero-title-new {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .landing-hero-section {
        padding: 5rem 0 3rem 0;
        min-height: auto;
    }
    
    .landing-header-new {
        padding: 0.5rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .btn-header-login,
    .btn-header-register {
        padding: 0.4rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .logo-text-new h1 {
        font-size: 1.125rem;
    }
    
    .hero-wrapper {
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .hero-title-new {
        font-size: 2.25rem;
    }
    
    .hero-subtitle-new {
        font-size: 1.0625rem;
    }
    
    .hero-buttons-new {
        flex-direction: column;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .hero-visual {
        flex-direction: column;
    }
    
    .hero-card {
        min-width: 100%;
        padding: 1.5rem;
    }
    
    .card-icon-wrapper {
        width: 48px;
        height: 48px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
}

.landing-header {
    text-align: center;
    padding: 2rem 0 4rem 0;
}

.landing-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    text-align: left;
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
    letter-spacing: -0.5px;
}

.logo-text p {
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
    color: #6b7280;
    font-weight: 400;
}

.landing-hero {
    text-align: center;
    padding: 2rem 0 4rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: #6b7280;
    line-height: 1.5;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-login, .btn-register {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
    font-family: inherit;
}

.btn-login {
    background: #7c3aed;
    color: #ffffff;
}

.btn-login:hover {
    background: #6d28d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.4);
}

.btn-register {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid #7c3aed;
}

.btn-register:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.2);
}

.landing-features, .landing-trading, .landing-cta {
    padding: 4rem 0;
    text-align: center;
}

/* About Section */
.landing-about {
    padding: 5rem 0;
    background: var(--bg-card);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    margin-top: 3rem;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #6b7280;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-stat {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.about-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.about-stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 500;
}

/* Support Section */
.landing-support {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-card) 100%);
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.support-content {
    margin-top: 3rem;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.support-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.support-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.1) 0%, rgba(199, 171, 89, 0.1) 100%);
    border-radius: 16px;
    color: #7c3aed;
}

.support-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.support-card p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.support-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.support-link:hover {
    color: #6d28d9;
    gap: 0.5rem;
}

/* Contact Section */
.landing-contact {
    padding: 5rem 0;
    background: var(--bg-card);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.1) 0%, rgba(199, 171, 89, 0.1) 100%);
    border-radius: 12px;
    color: #7c3aed;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.contact-details p {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.contact-form-wrapper {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
}

.contact-form input,
.contact-form textarea {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(105, 158, 60, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact-submit {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(105, 158, 60, 0.4);
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.contact-message-display {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .landing-about,
    .landing-support,
    .landing-contact {
        padding: 3rem 0;
    }
    
    .about-container,
    .support-container,
    .contact-container {
        padding: 0 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-stat {
        padding: 1.5rem;
    }
    
    .support-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trading-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trading-option {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.trading-option:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.trading-option h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trading-option p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.landing-cta {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.landing-cta h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.landing-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
a.btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: #7c3aed;
    color: #ffffff;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(105, 158, 60, 0.4);
}

.btn-outline,
a.btn-outline {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid #7c3aed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: transparent;
    color: #7c3aed;
}

.btn-outline:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(105, 158, 60, 0.2);
}

/* Bottom Bar */
.landing-bottom-bar {
    background: #302718;
    color: #ffffff;
    margin-top: 4rem;
    padding: 3rem 0 2rem 0;
}

[data-theme="dark"] .landing-bottom-bar {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] .landing-bottom-bar * {
    color: #ffffff;
}

.bottom-bar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bottom-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bottom-bar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bottom-logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(105, 158, 60, 0.3));
}

.bottom-bar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 50%, #699E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.bottom-bar-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bottom-bar-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-bar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    transition: width 0.3s ease;
}

.bottom-bar-link:hover {
    color: #ffffff;
}

.bottom-bar-link:hover::after {
    width: 100%;
}

.bottom-bar-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.3);
}

.bottom-bar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    margin: 2rem 0;
}

.bottom-bar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
}

.bottom-bar-footer p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.bottom-bar-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #ffffff;
}

.legal-separator {
    color: #475569;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .landing-bottom-bar {
        padding: 2rem 0 1.5rem 0;
        margin-top: 3rem;
    }
    
    .bottom-bar-container {
        padding: 0 1rem;
    }
    
    .bottom-bar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .bottom-bar-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .bottom-bar-social {
        width: 100%;
        justify-content: flex-start;
    }
    
    .bottom-bar-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .bottom-bar-legal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .legal-separator {
        display: none;
    }
}

/* Download APK Section */
.landing-download {
    padding: 5rem 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.landing-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(105, 158, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(199, 171, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.download-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.download-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.3);
}

.download-badge svg {
    flex-shrink: 0;
}

.download-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 50%, #699E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.download-subtitle {
    font-size: 1.125rem;
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.download-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.5rem 0;
}

.download-feature-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.download-feature-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.1);
    transform: translateX(4px);
}

.feature-icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    border-radius: 10px;
    color: #ffffff;
    flex-shrink: 0;
}

.download-feature-item span {
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 500;
}

.btn-download-apk {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(105, 158, 60, 0.4);
    width: fit-content;
    margin-top: 0.5rem;
}

.btn-download-apk:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(105, 158, 60, 0.5);
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

.btn-download-apk:active {
    transform: translateY(0);
}

.btn-download-apk svg {
    flex-shrink: 0;
}

.btn-download-apk svg:last-child {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.btn-download-apk:hover svg:last-child {
    transform: translateX(4px);
}

.download-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.download-note svg {
    flex-shrink: 0;
    color: #9ca3af;
}

/* Phone Mockup */
.download-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    perspective: 1000px;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                0 0 0 4px rgba(255, 255, 255, 0.1),
                inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.phone-mockup:hover .phone-frame {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111827;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 50%, #699E3C 100%);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.phone-content {
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.phone-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.phone-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.phone-app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .download-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .download-right {
        order: -1;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
}

@media (max-width: 768px) {
    .landing-download {
        padding: 3rem 0;
    }
    
    .download-container {
        padding: 0 1rem;
    }
    
    .download-wrapper {
        gap: 2rem;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .download-subtitle {
        font-size: 1rem;
    }
    
    .download-features {
        gap: 0.75rem;
    }
    
    .download-feature-item {
        padding: 0.625rem;
    }
    
    .btn-download-apk {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .phone-frame {
        width: 200px;
        height: 400px;
        transform: none;
    }
    
    .phone-mockup:hover .phone-frame {
        transform: none;
    }
}

@media (max-width: 768px) {
    .landing-logo {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logo-text {
        text-align: center;
    }
    
    .logo-text h1 {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trading-options {
        grid-template-columns: 1fr;
    }
    
    .landing-cta h3 {
        font-size: 2rem;
    }
    
    .btn-login, .btn-register {
        width: 100%;
        max-width: 200px;
    }
}

/* ============================================================
   AUTH PAGE STYLES
   ============================================================ */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #e9ecef 100%);
    padding: 2rem 1rem;
}

.auth-page-container {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .auth-page-container {
        grid-template-columns: 1fr 1fr;
        padding: 3rem;
    }
}

.auth-brand {
    text-align: center;
}

@media (min-width: 768px) {
    .auth-brand {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.auth-brand h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.auth-brand p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.auth-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.tab-btn.active {
    color: #699E3C;
    border-bottom-color: #699E3C;
}

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

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-form.active {
    display: flex;
}

.auth-form input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-form button[type="submit"]:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.error-message {
    color: var(--accent-danger);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Register Multi-Step Form */
.register-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.register-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.step-indicator.active .step-number {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.step-indicator.active .step-label {
    color: var(--accent-primary);
}

.register-step {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.register-step.active {
    display: flex;
}

.file-upload-group {
    margin-bottom: 0;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-label:hover {
    border-color: var(--accent-primary);
    background: rgba(79, 70, 229, 0.05);
}

.file-upload-label svg {
    color: var(--text-secondary);
}

.file-upload-label:hover svg {
    color: var(--accent-primary);
}

.file-preview {
    margin-top: 0.5rem;
    min-height: 40px;
}

.file-preview img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

@media (max-width: 768px) {
    .register-steps {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.8125rem;
    }
    
    .step-label {
        font-size: 0.6875rem;
    }
    
    .file-upload-label {
        padding: 1rem;
    }
}

/* Main Container */
.main-container {
    padding: 0.75rem 0;
}

@media (min-width: 768px) {
    .main-container {
        padding: 1rem 0;
    }
}

/* Dashboard */
.dashboard {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.dashboard.show {
    opacity: 1;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    box-shadow: none;
    border: 2px solid var(--border-color);
}

@media (min-width: 768px) {
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

.card h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

@media (min-width: 768px) {
    .card h2 {
        font-size: 1.0625rem;
        margin-bottom: 1rem;
    }
}

/* Modal (Login/Register) */
.modal {
    display: none; /* Hide by default to prevent flash */
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    opacity: 0;
    transition: opacity 0.2s ease-in;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Ensure modal is visible when display: flex is set */
.modal[style*="display: flex"] {
    display: flex !important;
    opacity: 1 !important;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.tab-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.auth-form {
    display: none;
}

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

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: var(--bg-secondary);
}

.auth-form button {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-form button:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.error-message {
    color: var(--accent-danger);
    margin-top: 0.5rem;
    font-size: 0.875rem;
    min-height: 1.25rem;
}

/* Forms */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.form-row label {
    min-width: 120px;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8125rem;
    transition: all 0.3s;
}

.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
    background: var(--bg-secondary);
}

.price-display {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-success);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn:active {
    transform: translateY(0);
}

.btn-buy {
    background: var(--accent-success);
    color: white;
    flex: 1;
}

.btn-buy:hover {
    background: #059669;
}

.btn-sell {
    background: var(--accent-danger);
    color: white;
    flex: 1;
}

.btn-sell:hover {
    background: #dc2626;
}

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

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-close {
    background: var(--accent-danger);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.trade-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Message Boxes */
.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.message.success {
    background: rgba(199, 171, 89, 0.2);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: var(--bg-card);
}

thead {
    background: var(--bg-secondary);
}

th {
    padding: 0.75rem;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-card);
}

tbody tr:hover {
    background: var(--bg-hover);
}

tbody tr:nth-child(even) {
    background: var(--bg-secondary);
}

tbody tr:nth-child(even):hover {
    background: var(--bg-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem !important;
}

/* Status Badges */
.status-open {
    color: var(--accent-success);
    font-weight: 600;
}

.status-closed {
    color: var(--text-secondary);
}

.pnl-positive {
    color: var(--accent-success);
    font-weight: 600;
}

.pnl-negative {
    color: var(--accent-danger);
    font-weight: 600;
}

.pnl-zero {
    color: var(--text-secondary);
}

/* Side Labels */
.side-buy {
    color: var(--accent-success);
    font-weight: 600;
}

.side-sell {
    color: var(--accent-danger);
    font-weight: 600;
}

/* Admin Link */
.admin-link {
    text-align: center;
    margin-top: 2rem;
}

.admin-link a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-link a:hover {
    color: #4338ca;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-container {
        padding: 1rem 0;
    }

    .card {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
        margin: 1rem;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        min-width: auto;
        margin-bottom: 0.5rem;
    }

    .form-row input,
    .form-row select {
        width: 100%;
    }

    .trade-buttons {
        flex-direction: column;
    }

    table {
        font-size: 0.875rem;
    }

    th, td {
        padding: 0.5rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Bottom Navigation Menu */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.75rem 0 calc(0.75rem + 8px);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 20px 20px 0 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    min-width: 60px;
    border-radius: 8px;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
}

.nav-item.active {
    color: #699E3C;
}

.nav-item.active .nav-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(78%) saturate(1234%) hue-rotate(67deg) brightness(95%) contrast(85%);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 50%;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: block;
}

/* For SVG icons loaded as images */
img.nav-icon {
    object-fit: contain;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: lowercase;
}

/* Page Views */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

/* Watchlist Page Styles */
.watchlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    padding-top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.watchlist-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

@media (min-width: 768px) {
    .watchlist-title {
        font-size: 1.5rem;
    }
}

.watchlist-dropdown {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.watchlist-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.watchlist-dropdown-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
}

.watchlist-dropdown-menu button:hover {
    background: var(--bg-hover);
}

.watchlist-tabs-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.watchlist-tabs {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
}

.add-watchlist-btn {
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    flex-shrink: 0;
    transition: all 0.2s;
}

.add-watchlist-btn:hover {
    background: #4338ca;
    transform: scale(1.05);
}

.watchlist-tab {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    flex-shrink: 0;
}

.watchlist-tab.active {
    color: #699E3C;
    border-bottom-color: #699E3C;
    font-weight: 600;
}

.tab-name {
    display: inline-block;
}

.tab-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.watchlist-tab:hover .tab-actions {
    opacity: 1;
}

.tab-edit-btn,
.tab-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.tab-edit-btn:hover {
    color: var(--accent-primary);
}

.tab-delete-btn:hover {
    color: var(--accent-danger);
}

.watchlist-search-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.watchlist-search-bar {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.watchlist-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.25rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: var(--shadow-lg);
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--bg-hover);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.watchlist-search-input {
    width: 100%;
    padding: 0.625rem 0.625rem 0.625rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.watchlist-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.watchlist-counter {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.watchlist-filter-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.watchlist-container {
    padding: 1rem 0;
    background: var(--bg-primary);
}

.watchlist-items {
    display: flex;
    flex-direction: column;
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: background 0.2s;
}

.watchlist-item:hover {
    background: var(--bg-hover);
}

.watchlist-item-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.watchlist-symbol {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.watchlist-exchange {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.watchlist-exchange-tag {
    color: var(--accent-primary);
    font-weight: 500;
}

.watchlist-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    position: relative;
}

.remove-symbol-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--accent-danger);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    padding: 0;
}

.watchlist-item:hover .remove-symbol-btn {
    opacity: 1;
}

.remove-symbol-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.watchlist-price {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.watchlist-price.positive {
    color: var(--accent-success);
}

.watchlist-price.negative {
    color: var(--accent-danger);
}

.watchlist-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.watchlist-change.positive {
    color: var(--accent-success);
}

.watchlist-change.negative {
    color: var(--accent-danger);
}

.empty-watchlist {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Portfolio Section Styles - New Design */
.portfolio-container {
    padding: 0;
    background: var(--bg-primary);
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    padding-top: 0;
    background: var(--bg-secondary);
    border-bottom: none;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.portfolio-dropdown {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

.portfolio-tabs {
    display: flex;
    gap: 0;
    padding: 0 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    transition: all 0.3s;
}

.portfolio-tab:hover {
    color: var(--accent-primary);
}

.portfolio-tab.active {
    color: #699E3C;
    border-bottom-color: #699E3C;
}

.portfolio-badge {
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.portfolio-pnl-card {
    background: var(--bg-secondary);
    padding: 1rem;
    margin: 0.75rem 1rem;
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
}

.pnl-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    text-align: center;
}

.pnl-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    letter-spacing: -0.02em;
}

.pnl-value.positive {
    color: var(--accent-success);
}

.pnl-value.negative {
    color: var(--accent-danger);
}

.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.portfolio-action-btn:hover {
    color: var(--accent-primary);
}

.portfolio-analytics-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
}

.portfolio-analytics-btn:hover {
    background: var(--bg-hover);
}

.portfolio-search-container {
    padding: 0 1.5rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.portfolio-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    background: var(--bg-card);
    color: var(--text-primary);
}

.portfolio-search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.portfolio-content {
    padding: 1rem 0;
    background: var(--bg-secondary);
    min-height: 300px;
}

.portfolio-positions-list,
.portfolio-holdings-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.portfolio-position-item {
    background: var(--bg-card);
    border-radius: 0;
    padding: 0.6rem 1.5rem;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.portfolio-position-item:hover {
    background: var(--bg-hover);
}

.portfolio-position-item:last-child {
    border-bottom: none;
}

.position-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}

.position-left {
    flex: 1;
}

.position-qty {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.15rem;
}

.position-qty strong,
.position-qty .qty-number {
    color: #4f46e5;
    font-weight: 600;
}

.position-symbol {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.position-exchange {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.position-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.position-type-buttons {
    display: flex;
    gap: 0.5rem;
}

.position-type-btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-color: var(--border-color);
    pointer-events: none;
}

.position-type-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    font-weight: 600;
}

.position-pnl {
    font-size: 1rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    text-align: right;
    letter-spacing: -0.01em;
}

.position-pnl.positive {
    color: var(--accent-success);
}

.position-pnl.negative {
    color: var(--accent-danger);
}

.position-ltp {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-align: right;
}

.position-ltp .ltp-label {
    color: var(--text-secondary);
}

.position-ltp .ltp-price {
    color: var(--text-primary);
    font-weight: 500;
}

/* Open Trades Section - Same Style as Portfolio Positions */
.open-trades-container {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
}

.open-trades-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.open-trade-item {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.open-trade-item.status-open {
    border-left: 4px solid #10b981;
}

.open-trade-item.status-closed {
    border-left: 4px solid #ef4444;
}

.close-trade-btn {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: var(--accent-danger);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    padding: 0;
    box-shadow: var(--shadow);
    transition: all 0.2s;
    opacity: 0;
}

.open-trade-item:hover .close-trade-btn,
.portfolio-position-item:hover .close-trade-btn {
    opacity: 1;
}

.close-trade-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .portfolio-header,
    .portfolio-tabs,
    .portfolio-actions {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .portfolio-pnl-card {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .portfolio-content {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Open Trades Mobile Styles */
    .open-trades-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    .open-trade-item {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .open-trade-item:last-child {
        margin-bottom: 0;
    }
    
    .position-row {
        flex-direction: row;
        gap: 0.5rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .position-left {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .position-right {
        align-items: flex-end;
        flex-shrink: 0;
        min-width: 110px;
        max-width: 140px;
    }
    
    .position-qty {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        white-space: nowrap;
    }
    
    .position-symbol {
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .position-exchange {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .position-type-buttons {
        gap: 0.25rem;
        margin-bottom: 0.3rem;
    }
    
    .position-type-btn {
        padding: 0.2rem 0.45rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .position-pnl {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.2rem;
        white-space: nowrap;
    }
    
    .position-ltp {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .close-trade-btn {
        position: absolute;
        top: -0.5rem;
        right: -0.5rem;
        width: 22px;
        height: 22px;
        opacity: 1;
        z-index: 10;
    }
    
    .close-trade-btn svg {
        width: 14px;
        height: 14px;
    }
    
    /* Portfolio positions same mobile styles */
    .portfolio-position-item {
        padding: 0.5rem 0.75rem;
    }
    
    .portfolio-position-item .position-row {
        flex-direction: row;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .portfolio-position-item .position-left {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .portfolio-position-item .position-right {
        align-items: flex-end;
        flex-shrink: 0;
        min-width: 110px;
        max-width: 140px;
        gap: 0.25rem;
    }
    
    .portfolio-position-item .position-qty {
        margin-bottom: 0.1rem;
    }
    
    .portfolio-position-item .position-symbol {
        margin-bottom: 0.1rem;
    }
}

/* Funds Page Styles - New Design */
.funds-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.funds-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 1rem;
    padding-top: 0;
    background: var(--bg-secondary);
}

.funds-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.funds-profile-icon {
    color: var(--text-secondary);
    cursor: pointer;
}

/* Balance Display Styles */
.balance-display-section {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    padding: 1rem;
    margin: 0.75rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.balance-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
}

.balance-amount {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.view-statement-link {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s;
}

.view-statement-link:hover {
    gap: 0.75rem;
}

.view-statement-link svg {
    transition: transform 0.2s;
}

.view-statement-link:hover svg {
    transform: rotate(90deg);
}

/* Action Buttons */
.funds-action-buttons {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
}

.btn-fund-action {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 0.375rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.3s;
}

.btn-fund-action svg {
    width: 18px;
    height: 18px;
}

.btn-add {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    color: white;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-withdraw {
    background: var(--accent-danger);
    color: white;
}

.btn-withdraw:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-charges {
    background: var(--accent-warning);
    color: white;
}

.btn-charges:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Fund Breakdown Section */
.fund-breakdown-section {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fund-breakdown-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fund-breakdown-label {
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fund-breakdown-value {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Unlock More Margin Section */
.fund-unlock-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0 0.75rem;
}

.fund-unlock-label {
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.fund-unlock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fund-unlock-label-secondary {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.fund-unlock-value {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.funds-footer {
    margin-top: 1.5rem;
    padding: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
    text-align: center;
    background: var(--bg-secondary);
}

.btn-logout {
    background: var(--accent-danger);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
}

.btn-logout:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Fund Modal Buttons */
.fund-modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.fund-modal-buttons .btn {
    flex: 1;
}

/* Transactions Page */
.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    padding-top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.transactions-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

@media (min-width: 768px) {
    .transactions-title {
        font-size: 1.125rem;
    }
}

.transactions-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.transaction-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.transaction-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.transaction-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.625rem;
    border-radius: 16px;
    text-transform: uppercase;
}

.transaction-type.deposit {
    background: rgba(199, 171, 89, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.transaction-type.withdraw {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.transaction-type.pending {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
    border: 1px solid #d97706;
}

.transaction-type.approved {
    background: rgba(199, 171, 89, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.transaction-type.declined {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.transaction-amount {
    font-size: 1rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.transaction-amount.deposit {
    color: var(--accent-success);
}

.transaction-amount.withdraw {
    color: var(--accent-danger);
}

.transaction-details {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.transaction-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.transaction-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.transaction-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .funds-header {
        padding: 1rem;
    }
    
    .balance-display-section {
        margin: 1rem;
        padding: 1.25rem;
    }
    
    .funds-action-buttons {
        padding: 1rem;
    }
    
    .fund-breakdown-section {
        padding: 1rem;
    }
    
    .fund-unlock-section {
        margin: 0 1rem;
    }
    
    .funds-footer {
        padding: 1rem;
    }
}

/* Add padding to main container to prevent content from being hidden behind bottom nav */
.main-container {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .bottom-nav {
        padding: 0.625rem 0 calc(0.625rem + 8px);
    }
    
    .nav-item {
        padding: 0.375rem 0.5rem;
        min-width: 50px;
    }
    
    .nav-icon {
        width: 20px;
        height: 20px;
    }
    
    .nav-label {
        font-size: 0.7rem;
    }
    
    .dashboard {
        padding-bottom: 70px;
    }
    
    .nav-item.active::before {
        top: -6px;
        width: 10px;
        height: 10px;
    }
}

/* Close Trade Modal Styles - New Design */
.close-trade-modal-content {
    background: var(--bg-card);
    border-radius: 0;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: none;
    border: none;
}

.close-modal-header {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4338ca 100%);
    padding: 1rem 1.25rem;
    color: white;
}

.close-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.close-modal-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.close-modal-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal-exchange-options {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.exchange-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.exchange-radio input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: white;
}

.exchange-radio input[type="radio"]:checked + span {
    font-weight: 600;
    color: white;
}

.close-modal-order-type {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.order-type-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.order-type-radio input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.close-modal-form {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
}

.close-modal-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.close-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.close-modal-field label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.close-modal-field input[type="number"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.875rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.close-modal-field input[type="number"]:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.price-input-group input {
    flex: 1;
}

.price-arrows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.price-arrow-btn {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    width: 20px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.6rem;
    padding: 0;
    color: var(--text-primary);
    line-height: 1;
}

.price-arrow-btn:first-child {
    border-radius: 2px 2px 0 0;
    border-bottom: none;
}

.price-arrow-btn:last-child {
    border-radius: 0 0 2px 2px;
}

.price-arrow-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.close-modal-limit-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.limit-toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-card);
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.close-modal-sl-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.btn-set-sl-target {
    width: 100%;
    padding: 0.6rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.btn-set-sl-target:hover {
    background: #4338ca;
}

.sl-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.sl-radio input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: var(--accent-primary);
}

.close-modal-footer {
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-modal-margin-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.close-modal-margin-info svg {
    color: var(--accent-primary);
    cursor: pointer;
}

.close-modal-margin-info span:first-child {
    color: var(--text-secondary);
}

.close-modal-margin-info span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.refresh-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accent-primary);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.close-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-close-trade {
    background: var(--accent-danger);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-trade:hover {
    background: #dc2626;
}

.btn-cancel-trade {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-trade:hover {
    background: var(--bg-hover);
}

@media (max-width: 768px) {
    .close-trade-modal-content {
        max-width: 100%;
        max-height: 100vh;
    }
    
    .close-modal-field-group {
        grid-template-columns: 1fr;
    }
    
    .close-modal-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .close-modal-actions {
        width: 100%;
    }
    
    .btn-close-trade,
    .btn-cancel-trade {
        flex: 1;
    }
}

/* Stock Details Page Styles */
.stock-details-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.stock-details-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    padding-top: 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.stock-back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.stock-back-btn:hover {
    background: var(--bg-hover);
}

.stock-header-info {
    flex: 1;
    margin-left: 1rem;
}

.stock-header-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.stock-header-top h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stock-exchange-badge-small {
    padding: 0.25rem 0.75rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-full-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stock-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: var(--accent-success);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stock-price-card {
    margin: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: var(--accent-success);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stock-price-card.negative {
    background: var(--accent-danger);
}

.stock-price-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.price-label {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 500;
}

.price-change-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stock-price-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.stock-price-change-today {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.stock-action-buttons {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.btn-stock-action {
    flex: 1;
    padding: 0.875rem;
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    color: white;
}

.btn-buy-action {
    background: var(--accent-success);
}

.btn-buy-action:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 171, 89, 0.3);
}

.btn-sell-action {
    background: var(--accent-danger);
}

.btn-sell-action:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.market-data-section {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.market-data-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.market-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.market-data-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.market-data-card.card-open {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.market-data-card.card-high {
    background: linear-gradient(135deg, #699E3C 0%, #5a8a32 100%);
    color: white;
}

.market-data-card.card-low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.market-data-card.card-volume {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.market-data-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.market-data-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.9;
}

.market-data-value {
    font-size: 1rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.stock-chart-section {
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    margin-top: 2rem;
}

.chart-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.chart-time-frames {
    display: flex;
    gap: 0.5rem;
}

.time-frame-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.time-frame-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.time-frame-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.chart-container-wrapper {
    height: 400px;
    position: relative;
}

.stock-chart-container {
    padding: 0;
    height: 400px;
}


.watchlist-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.watchlist-item:hover {
    background: var(--bg-hover);
}

@media (max-width: 768px) {
    .stock-price-card {
        margin: 1rem;
        padding: 1.25rem;
    }
    
    .stock-price-value {
        font-size: 2rem;
    }
    
    .market-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .market-data-card {
        padding: 1rem;
    }
    
    .market-data-icon {
        width: 32px;
        height: 32px;
    }
    
    .market-data-label {
        font-size: 0.75rem;
    }
    
    .market-data-value {
        font-size: 1rem;
    }
    
    .chart-container-wrapper {
        height: 300px;
    }
    
    .stock-details-page-header {
        padding: 1rem;
        padding-top: 1.5rem;
    }
    
    .stock-header-top h1 {
        font-size: 1.5rem;
    }
    
}

/* Additional Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Market Indices */
    .market-indices {
        gap: 0.5rem;
    }
    
    .index-card {
        padding: 0.875rem;
    }
    
    .index-value {
        font-size: 1.25rem;
    }
    
    /* Trending Tabs */
    .trending-tabs {
        gap: 0.5rem;
    }
    
    .trending-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    /* Stock Actions */
    .stock-action-buttons {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .btn-stock-action {
        padding: 0.75rem;
        font-size: 0.8125rem;
    }
    
    /* Market Data Section */
    .market-data-section {
        padding: 0 1rem;
    }
    
    /* History Info Row */
    .history-info-row {
        gap: 1rem;
    }
    
    /* Transactions */
    .transaction-item {
        padding: 0.625rem;
    }
    
    .transactions-header {
        padding: 0.5rem 0.75rem;
    }
    
    .transactions-content {
        gap: 0.375rem;
        padding: 0.375rem;
    }
    
    .transaction-item-header {
        margin-bottom: 0.375rem;
        padding-bottom: 0.375rem;
    }
    
    .transaction-details {
        gap: 0.25rem;
    }
}

/* ============================================================
   CHARGES PAGE STYLES
   ============================================================ */

.charges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    padding-top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.charges-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.charges-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.charge-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.charge-item:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.charge-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.charge-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.charge-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .charges-title {
        font-size: 1.125rem;
    }
    
    .charges-content {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .charge-item {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .charges-header {
        padding: 0.5rem 0.75rem;
    }
    
    .charges-content {
        gap: 0.375rem;
        padding: 0.375rem;
    }
    
    .charge-item-header {
        margin-bottom: 0.375rem;
        padding-bottom: 0.375rem;
    }
    
    .charge-name,
    .charge-amount {
        font-size: 0.75rem;
    }
}

/* ============================================================
   MARKET PAGE STYLES
   ============================================================ */

/* Market Indices Cards */
.market-indices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.index-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.index-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.index-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: -0.5px;
}

.index-change {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-success);
}

/* Discover Stocks Section */
.market-discover-section {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.discover-header {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    text-align: center !important;
    width: 100%;
    display: block;
    align-self: center;
}

/* Trending Section */
.trending-section {
    margin-top: 0.75rem;
}

.trending-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trending-header svg {
    color: var(--accent-primary);
}

/* Trending Tabs */
.trending-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.trending-tab {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trending-tab:hover {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
}

.trending-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Trending Stocks List */
.trending-stocks-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.trending-stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.trending-stock-item:hover {
    background: var(--bg-hover);
}

.trending-stock-left {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.trending-stock-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.trending-stock-exchange {
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.trending-stock-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.trending-stock-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.trending-stock-change {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
}

.trending-stock-change.positive {
    color: var(--accent-success);
}

.trending-stock-change.negative {
    color: var(--accent-danger);
}

/* Options Section Styles */
.options-section {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    background: var(--bg-card) !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    /* display controlled by JavaScript based on market status - no default display */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide options section by default */
.options-section[style*="display: none"] {
    display: none !important;
}

.options-index-selector {
    margin-bottom: 1.25rem;
}

.options-index-selector select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    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='%231a1a1a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.options-index-selector select:hover {
    border-color: var(--accent-primary);
}

.options-index-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.options-display-container {
    margin-top: 1rem;
}

.options-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .options-grid {
        gap: 0.5rem !important;
    }
}

.options-column {
    display: flex !important;
    flex-direction: column !important;
    background: var(--bg-primary) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    border: 1px solid var(--border-color) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.options-column-header {
    background: rgba(199, 171, 89, 0.1);
    color: var(--accent-success);
    padding: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.options-column:last-child .options-column-header {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
}

.options-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    max-height: 600px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-right: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: opacity 0.2s ease-in-out !important;
}

/* Custom Scrollbar for Options List */
.options-list::-webkit-scrollbar {
    width: 6px;
}

.options-list::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 10px;
}

.options-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.options-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.option-item {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: visible !important;
    margin-bottom: 0.75rem !important;
    display: block !important;
    min-height: 120px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.option-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--border-color);
    transition: all 0.3s ease;
}

.option-item:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-item:hover::before {
    background: var(--accent-primary);
    width: 4px;
}

.option-item:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.option-item-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.option-strike {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.5px !important;
    display: inline-block !important;
}

.option-ltp {
    font-size: 1rem !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.3px !important;
    display: inline-block !important;
}

.option-ltp.positive {
    color: var(--accent-success);
}

.option-ltp.negative {
    color: var(--accent-danger);
}

.option-item-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 0.5rem !important;
}

.option-detail {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 0.8125rem !important;
    padding: 0.25rem 0 !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 1.5rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.option-label {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.option-value {
    color: var(--text-primary) !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 0.8125rem !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.option-value.positive {
    color: var(--accent-success) !important;
}

.option-value.negative {
    color: var(--accent-danger) !important;
}

.option-ltp.positive {
    color: var(--accent-success) !important;
}

.option-ltp.negative {
    color: var(--accent-danger) !important;
}

@media (max-width: 768px) {
    .options-section {
        padding: 0.75rem !important;
        margin-top: 1rem !important;
        border-radius: 12px !important;
    }
    
    .options-index-selector {
        margin-bottom: 0.75rem !important;
    }
    
    .options-index-selector select {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.8125rem !important;
        border-radius: 10px !important;
    }
    
    .options-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    
    .options-column {
        padding: 0.5rem !important;
        border-radius: 10px !important;
    }
    
    .options-column-header {
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    .options-list {
        max-height: 500px !important;
        gap: 0.5rem !important;
    }
    
    .option-item {
        padding: 0.625rem !important;
        border-radius: 8px !important;
        min-height: auto !important;
        margin-bottom: 0.5rem !important;
    }
    
    .option-item-header {
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        border-bottom-width: 1px !important;
    }
    
    .option-strike {
        font-size: 0.875rem !important;
        font-weight: 700 !important;
    }
    
    .option-ltp {
        font-size: 0.8125rem !important;
        font-weight: 700 !important;
    }
    
    .option-item-details {
        gap: 0.375rem !important;
        margin-top: 0.375rem !important;
    }
    
    .option-detail {
        font-size: 0.6875rem !important;
        padding: 0.125rem 0 !important;
        min-height: 1.25rem !important;
        flex-wrap: wrap !important;
    }
    
    .option-label {
        font-size: 0.625rem !important;
        letter-spacing: 0.2px !important;
    }
    
    .option-value {
        font-size: 0.6875rem !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .options-section {
        padding: 0.5rem !important;
    }
    
    .options-grid {
        gap: 0.375rem !important;
    }
    
    .options-column {
        padding: 0.375rem !important;
    }
    
    .options-column-header {
        padding: 0.375rem !important;
        font-size: 0.6875rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    .options-list {
        gap: 0.375rem !important;
        max-height: 400px !important;
    }
    
    .option-item {
        padding: 0.5rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    .option-item-header {
        margin-bottom: 0.375rem !important;
        padding-bottom: 0.375rem !important;
    }
    
    .option-strike {
        font-size: 0.8125rem !important;
    }
    
    .option-ltp {
        font-size: 0.75rem !important;
    }
    
    .option-item-details {
        gap: 0.25rem !important;
        margin-top: 0.25rem !important;
    }
    
    .option-detail {
        font-size: 0.625rem !important;
        padding: 0.1rem 0 !important;
        min-height: 1.1rem !important;
    }
    
    .option-label {
        font-size: 0.5625rem !important;
    }
    
    .option-value {
        font-size: 0.625rem !important;
    }
}

.trending-stock-change svg {
    width: 14px;
    height: 14px;
}

/* View All Link */
.view-all-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.view-all-link a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-link a:hover {
    color: var(--text-primary);
    gap: 0.75rem;
}

.view-all-link a svg {
    transition: transform 0.2s ease;
}

.view-all-link a:hover svg {
    transform: translateX(4px);
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Top Market Movers */
.movers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.movers-subheader {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid var(--border-color);
}

.movers-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.movers-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.movers-item:hover {
    background: var(--bg-hover);
}

.movers-item-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.movers-item-value {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.movers-item-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.movers-item-change {
    font-size: 0.8125rem;
    font-weight: 600;
}

.movers-item-change.positive {
    color: var(--accent-success);
}

.movers-item-change.negative {
    color: var(--accent-danger);
}

.movers-item-change svg {
    width: 14px;
    height: 14px;
}

/* Market Analysis Cards */
.market-analysis-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.analysis-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.analysis-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.analysis-card svg {
    flex-shrink: 0;
}

.analysis-card-content {
    flex: 1;
}

.analysis-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.analysis-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Mobile Responsive for Market Page */
@media (max-width: 768px) {
    .movers-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .market-analysis-section {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
}

/* ============================================================
   HISTORY PAGE STYLES
   ============================================================ */

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    padding-top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.history-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
}

.history-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.history-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow);
}

.history-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.history-card-symbol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-symbol-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
}

.history-side-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.625rem;
    border-radius: 16px;
    text-transform: uppercase;
}

.history-side-badge.side-buy {
    background: rgba(199, 171, 89, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.history-side-badge.side-sell {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.history-pnl {
    font-size: 1.0625rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.history-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-info-row {
    display: flex;
    gap: 1rem;
}

.history-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.history-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
}

.history-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.history-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.history-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.history-status {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================================
   USER PROFILE PAGE STYLES
   ============================================================ */

.profile-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.profile-back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.profile-back-btn:hover {
    background: var(--bg-hover);
}

.profile-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-picture-section {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
}

.profile-picture-wrapper {
    position: relative;
}

.profile-picture-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #4338ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-edit-picture-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 3px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.profile-edit-picture-btn:hover {
    background: #4338ca;
    transform: scale(1.05);
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.profile-tab {
    background: none;
    border: none;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.profile-tab.active {
    color: #699E3C;
    border-bottom-color: #699E3C;
}

.profile-content {
    padding: 1rem;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
}

.profile-info-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-info-item {
    margin-bottom: 1.5rem;
}

.profile-info-item:last-child {
    margin-bottom: 0;
}

.profile-info-item label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Verification Badge Styles */
.verification-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verification-badge.verification-verified {
    background: rgba(199, 171, 89, 0.1);
    color: var(--accent-success);
    border: 1px solid var(--accent-success);
}

.verification-badge.verification-pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border: 1px solid var(--accent-warning);
}

.verification-badge.verification-failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-danger);
    border: 1px solid var(--accent-danger);
}

.profile-verification-action {
    margin-top: 1rem;
}

#verification-status-text {
    flex: 1;
}

.profile-info-item input,
.profile-info-item textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.profile-info-item input:focus,
.profile-info-item textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.profile-info-item textarea {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .profile-header {
        padding: 0.5rem 0.75rem;
    }
    
    .profile-title {
        font-size: 1rem;
    }
    
    .profile-picture-section {
        padding: 1.5rem 1rem;
    }
    
    .profile-picture-circle {
        width: 100px;
        height: 100px;
    }
    
    .profile-edit-picture-btn {
        width: 36px;
        height: 36px;
    }
    
    .profile-tabs {
        padding: 0.75rem;
        gap: 0.25rem;
    }
    
    .profile-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .profile-content {
        padding: 0.75rem;
    }
    
    .profile-info-card {
        padding: 1rem;
    }
    
    .profile-info-item {
        margin-bottom: 1rem;
    }
    
    .profile-info-item label {
        font-size: 0.8125rem;
    }
    
    .profile-info-value,
    .profile-info-item input,
    .profile-info-item textarea {
        font-size: 0.9375rem;
        padding: 0.625rem;
    }
}

/* ============================================================
   WITHDRAWAL PAGE STYLES
   ============================================================ */

.withdrawal-container {
    background: var(--bg-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.withdrawal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.back-button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.back-button:hover {
    background: var(--bg-primary);
}

.withdrawal-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.withdrawal-balance-section {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 1rem;
    margin: 0.75rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.withdrawal-balance-section .balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.withdrawal-balance-section .balance-amount {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.03em;
}

.withdrawal-bank-section,
.withdrawal-form-section {
    padding: 0.75rem;
}

.section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.bank-details-card,
.withdrawal-form-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.bank-detail-item {
    margin-bottom: 1rem;
}

.bank-detail-item:last-of-type {
    margin-bottom: 0;
}

.bank-detail-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.bank-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.625rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.bank-detail-action {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.update-bank-link {
    color: var(--accent-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s;
}

.update-bank-link:hover {
    gap: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    font-size: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.withdrawal-info {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.withdrawal-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.375rem 0;
    line-height: 1.4;
}

.withdrawal-info p:first-child {
    margin-top: 0;
}

.withdrawal-info p:last-child {
    margin-bottom: 0;
}

.btn-withdraw-submit {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    background: var(--accent-danger);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-withdraw-submit:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-withdraw-submit:active {
    transform: translateY(0);
}

/* ============================================================
   ADMIN PANEL - REDUCED SIZES
   ============================================================ */

/* Admin Panel Input Fields */
#admin-dashboard input[type="text"],
#admin-dashboard input[type="email"],
#admin-dashboard input[type="tel"],
#admin-dashboard input[type="number"],
#admin-dashboard textarea,
#admin-dashboard select {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px;
}

/* Admin Panel Labels */
#admin-dashboard label,
.filter-item label {
    font-size: 0.6875rem !important;
    margin-bottom: 0.25rem !important;
}

/* Admin Panel Buttons */
#admin-dashboard .btn {
    padding: 0.4375rem 0.875rem !important;
    font-size: 0.75rem !important;
}

/* Admin Panel Card Headings */
#admin-dashboard .card h2,
#admin-dashboard h2 {
    font-size: 0.8125rem !important;
    margin-bottom: 0.5rem !important;
}

/* Admin Panel Text */
#admin-dashboard .filter-item,
#admin-dashboard .message,
#admin-dashboard p {
    font-size: 0.75rem !important;
}

/* Admin Panel Table Text */
#admin-dashboard table {
    font-size: 0.75rem !important;
}

#admin-dashboard th,
#admin-dashboard td {
    padding: 0.375rem !important;
    font-size: 0.75rem !important;
}

/* Admin Panel Transaction Items */
#admin-dashboard .transaction-item {
    padding: 0.625rem !important;
}

#admin-dashboard .transaction-label,
#admin-dashboard .transaction-value {
    font-size: 0.6875rem !important;
}

/* Admin Panel Modal Content */
#admin-dashboard .modal-content {
    padding: 0.875rem !important;
}

#admin-dashboard .modal-content input,
#admin-dashboard .modal-content textarea,
#admin-dashboard .modal-content select {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
}

/* Admin Panel Sidebar */
#admin-dashboard .admin-sidebar {
    font-size: 0.75rem !important;
}

#admin-dashboard .sidebar-menu-item {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
}

/* Admin Panel Stats */
#admin-dashboard .stat-value,
.stat-value {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
}

#admin-dashboard .stat-label,
.stat-label {
    font-size: 0.6875rem !important;
    color: var(--text-secondary) !important;
}

/* Admin Panel Layout Fixes */
#admin-dashboard,
.admin-main-layout {
    width: 100%;
    max-width: 100%;
}

.admin-main-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-sidebar {
    min-width: 220px;
    max-width: 220px;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

/* Admin Panel Table Improvements */
#admin-dashboard table,
.admin-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#admin-dashboard thead,
.admin-content thead {
    background: var(--bg-secondary) !important;
}

#admin-dashboard th,
.admin-content th {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-align: left;
    border-bottom: 2px solid var(--border-color) !important;
}

#admin-dashboard td,
.admin-content td {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-bottom: 1px solid var(--border-color) !important;
}

#admin-dashboard tbody tr:hover,
.admin-content tbody tr:hover {
    background: var(--bg-hover) !important;
}

/* Admin Panel Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 1rem !important;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Admin Panel Buttons */
#admin-dashboard .btn,
.admin-content .btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
}

#admin-dashboard .btn:hover,
.admin-content .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Admin Panel Search */
#admin-dashboard input[type="search"],
.admin-content input[type="search"],
.filter-item input[type="text"] {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 6px !important;
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

#admin-dashboard input[type="search"]:focus,
.admin-content input[type="search"]:focus,
.filter-item input[type="text"]:focus {
    outline: none !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1) !important;
}

/* ============================================================
   CUSTOM NOTIFICATION SYSTEM
   ============================================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 40px);
}

.notification {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.notification.success {
    border-left-color: #10b981;
    background: var(--bg-card);
}

.notification.error {
    border-left-color: #ef4444;
    background: var(--bg-card);
}

.notification.warning {
    border-left-color: #f59e0b;
    background: var(--bg-card);
}

.notification.info {
    border-left-color: #3b82f6;
    background: var(--bg-card);
}

.notification-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification.success .notification-icon {
    color: #10b981;
}

.notification.error .notification-icon {
    color: #ef4444;
}

.notification.warning .notification-icon {
    color: #f59e0b;
}

.notification.info .notification-icon {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.5;
}

.notification-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 4px;
    transition: all 0.2s;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #111827;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */

.theme-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
}

.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(22px);
}

.theme-toggle-icon {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

.theme-toggle-icon.sun {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0;
}

.theme-toggle-icon.moon {
    opacity: 0;
    position: absolute;
}

[data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
}

/* Alternative: Simple icon button style */
.theme-toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.theme-toggle-btn:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    display: block;
    stroke-width: 2;
}

.theme-toggle-btn:hover svg {
    transform: rotate(20deg);
}

.theme-toggle-btn .theme-icon-sun,
.theme-toggle-btn .theme-icon-moon {
    width: 20px;
    height: 20px;
    display: block;
}

/* Update cards and common elements for dark mode */
.card,
.panel,
.modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Update input fields for dark mode */
input,
textarea,
select {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--accent-primary);
    outline: none;
}

/* Update buttons for dark mode */
.btn {
    transition: all 0.3s ease;
}

/* Update tables for dark mode */
table {
    background: var(--bg-card);
    color: var(--text-primary);
}

th {
    background: var(--bg-hover);
    color: var(--text-primary);
}

td {
    border-color: var(--border-color);
}

/* Update links for dark mode */
a {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-primary);
    opacity: 0.8;
}

/* Additional dark theme text fixes */
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] label {
    color: var(--text-primary);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-primary);
}

/* Fix text in cards for dark theme */
[data-theme="dark"] .card,
[data-theme="dark"] .card-content,
[data-theme="dark"] .card-body {
    color: var(--text-primary);
}

/* Fix modal text for dark theme */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-body {
    color: var(--text-primary);
}

/* Fix form labels and text for dark theme */
[data-theme="dark"] label,
[data-theme="dark"] .form-label,
[data-theme="dark"] .label {
    color: var(--text-primary);
}

/* Fix list items for dark theme */
[data-theme="dark"] li,
[data-theme="dark"] .list-item {
    color: var(--text-primary);
}

/* Fix balance label and amount text to white in dark mode */
[data-theme="dark"] .balance-label {
    color: #ffffff !important;
}

[data-theme="dark"] .balance-amount {
    color: #ffffff !important;
}

/* ============================================================
   MODERN LANDING PAGE REDESIGN
   ============================================================ */

/* Modern Hero Section */
.landing-hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFFFFF 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .landing-hero-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

.landing-hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(199, 171, 89, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.landing-hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(105, 158, 60, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Modern Header */
.landing-header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

[data-theme="dark"] .landing-header-modern {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(222, 210, 168, 0.1);
}

.header-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon-modern {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    border-radius: 12px;
    padding: 8px;
}

.logo-icon-modern img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text-modern h1 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.header-actions-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-modern {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle-modern:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

.theme-toggle-modern svg {
    width: 20px;
    height: 20px;
}

.theme-toggle-modern .theme-icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle-modern .theme-icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle-modern .theme-icon-moon {
    display: block;
}

.btn-header-login-modern {
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-header-login-modern:hover {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-header-register-modern {
    padding: 0.625rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(105, 158, 60, 0.3);
}

.btn-header-register-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 158, 60, 0.4);
}

/* Hero Wrapper */
.hero-wrapper-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(199, 171, 89, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    width: fit-content;
    border: 1px solid rgba(199, 171, 89, 0.3);
}

[data-theme="dark"] .hero-badge-modern {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.hero-title-modern {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .hero-title-modern {
    color: var(--text-primary);
}

.gradient-text-modern {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-modern {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

[data-theme="dark"] .hero-subtitle-modern {
    color: var(--text-secondary);
}

.hero-buttons-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary-modern {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(105, 158, 60, 0.4);
}

.btn-hero-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(105, 158, 60, 0.5);
}

.btn-hero-secondary-modern {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(199, 171, 89, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(199, 171, 89, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hero-secondary-modern:hover {
    background: rgba(199, 171, 89, 0.2);
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-hero-secondary-modern {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .btn-hero-secondary-modern:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero-stats-modern {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

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

.stat-value-modern {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

[data-theme="dark"] .stat-value-modern {
    color: var(--text-primary);
}

.stat-label-modern {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

[data-theme="dark"] .stat-label-modern {
    color: var(--text-secondary);
}

/* Hero Visual Cards */
.hero-visual-modern {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.hero-card-modern {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: slideIn 0.6s ease-out;
}

[data-theme="dark"] .hero-card-modern {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-1-modern {
    animation-delay: 0.1s;
}

.card-2-modern {
    animation-delay: 0.2s;
}

.card-3-modern {
    animation-delay: 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-icon-modern {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.card-content-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title-modern {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value-modern {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.card-change-modern {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.card-change-text {
    font-weight: 600;
}

.card-change-text.positive {
    color: #10b981;
}

.live-indicator-modern {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Features Section */
.landing-features-modern {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.features-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header-modern {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge-modern {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.1) 0%, rgba(199, 171, 89, 0.1) 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-title-modern {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.section-subtitle-modern {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card-modern {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.feature-card-modern:hover::before {
    transform: scaleX(1);
}

.feature-icon-wrapper-modern {
    margin-bottom: 1.5rem;
}

.feature-icon-modern {
    font-size: 3rem;
    line-height: 1;
}

.feature-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.feature-description-modern {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Trading Options Section */
.landing-trading-modern {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.trading-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trading-options-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.trading-option-modern {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.trading-option-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(105, 158, 60, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trading-option-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.trading-option-modern:hover::after {
    opacity: 1;
}

.trading-icon-modern {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.trading-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    position: relative;
    z-index: 1;
}

.trading-description-modern {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Download Section */
.landing-download-modern {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.05) 0%, rgba(199, 171, 89, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.landing-download-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(105, 158, 60, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(199, 171, 89, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.download-container-modern {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.download-content-modern {
    text-align: center;
}

.download-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(105, 158, 60, 0.1) 0%, rgba(199, 171, 89, 0.1) 100%);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7c3aed;
    margin-bottom: 1.5rem;
}

.download-title-modern {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.download-subtitle-modern {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 2rem 0;
}

.btn-download-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(105, 158, 60, 0.4);
    transition: all 0.3s ease;
}

.btn-download-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(105, 158, 60, 0.5);
}

.download-info-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* CTA Section */
.landing-cta-modern {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.cta-container-modern {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.cta-title-modern {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.cta-subtitle-modern {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 2.5rem 0;
    line-height: 1.6;
}

.cta-buttons-modern {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary-modern {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #699E3C 0%, #C7AB59 100%);
    border: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(105, 158, 60, 0.4);
}

.btn-cta-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(105, 158, 60, 0.5);
}

.btn-cta-secondary-modern {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-cta-secondary-modern:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Bottom Bar */
.landing-bottom-bar-modern {
    background: #302718;
    color: #ffffff;
    margin-top: 4rem;
    padding: 4rem 0 2rem 0;
}

[data-theme="dark"] .landing-bottom-bar-modern {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] .landing-bottom-bar-modern * {
    color: #ffffff;
}

.bottom-bar-container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bottom-bar-content-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.bottom-bar-logo-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bottom-logo-icon-modern {
    width: 40px;
    height: 40px;
}

.bottom-bar-brand-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.bottom-bar-links-modern {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.bottom-bar-link-modern {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.bottom-bar-link-modern:hover {
    color: white;
}

.bottom-bar-social-modern {
    display: flex;
    gap: 1rem;
}

.social-link-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-modern:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.bottom-bar-divider-modern {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.bottom-bar-footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.bottom-bar-footer-modern p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.bottom-bar-legal-modern {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.legal-link-modern {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.legal-link-modern:hover {
    color: white;
}

.legal-separator-modern {
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-wrapper-modern {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 6rem 2rem 3rem;
    }
    
    .hero-title-modern {
        font-size: 3rem;
    }
    
    .section-title-modern,
    .download-title-modern,
    .cta-title-modern {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .header-container-modern {
        padding: 0 1rem;
    }
    
    .header-actions-modern {
        gap: 0.5rem;
    }
    
    .btn-header-login-modern,
    .btn-header-register-modern {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .hero-wrapper-modern {
        padding: 5rem 1rem 2rem;
    }
    
    .hero-title-modern {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-modern {
        font-size: 1.125rem;
    }
    
    .hero-stats-modern {
        gap: 1.5rem;
    }
    
    .stat-value-modern {
        font-size: 1.5rem;
    }
    
    .features-container-modern,
    .trading-container-modern,
    .download-container-modern,
    .cta-container-modern {
        padding: 0 1rem;
    }
    
    .section-title-modern,
    .download-title-modern,
    .cta-title-modern {
        font-size: 2rem;
    }
    
    .features-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .trading-options-modern {
        grid-template-columns: 1fr;
    }
    
    .bottom-bar-content-modern {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bottom-bar-links-modern {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bottom-bar-footer-modern {
        flex-direction: column;
        align-items: flex-start;
    }
}

