/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --oversold: #16a34a;
    --overbought: #dc2626;
    --normal: #f59e0b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --sidebar-width: 260px;
    --mobile-nav-height: 60px;
    --header-height: 56px;
    
    color-scheme: light;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color-scheme: light;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.5;
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.modal-content h2 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.modal-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 20px !important;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 12px;
    font-size: 0.85rem;
}

.mock-login-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mock-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 20px;
}

.pricing-card h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pricing-card h3 span {
    font-size: 1rem;
    opacity: 0.8;
}

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 8px 0;
    font-size: 0.95rem;
}

.pricing-card button {
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.pricing-card button:hover {
    transform: scale(1.02);
}

/* ===== App Layout ===== */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-menu {
    flex: 1;
    padding: 16px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

.nav-icon {
    font-size: 1.2rem;
}

.user-section {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-light);
}

.upgrade-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
}

.sign-out-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ===== Mobile Header ===== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

.menu-toggle, .chat-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-logo {
    font-weight: 700;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px;
    min-height: 100vh;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    margin-bottom: 24px;
}

.section-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-gray);
}

.last-updated {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== Controls Card ===== */
.controls-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.control-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.control-group {
    flex: 1;
    min-width: 150px;
}

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

.control-group input,
.control-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.analyze-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.analyze-btn:hover {
    background: var(--primary-dark);
}

/* ===== Chart Card ===== */
.chart-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    height: 450px;
    position: relative;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== Usage Counter ===== */
.usage-counter {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.usage-counter.hidden {
    display: none;
}

.usage-counter a {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Zones Grid ===== */
.zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.zone-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.zone-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.zone-card.oversold .zone-header {
    background: rgba(22, 163, 74, 0.1);
}

.zone-card.normal .zone-header {
    background: rgba(245, 158, 11, 0.1);
}

.zone-card.overbought .zone-header {
    background: rgba(220, 38, 38, 0.1);
}

.zone-icon {
    font-size: 1.5rem;
}

.zone-header h3 {
    flex: 1;
    font-size: 1rem;
}

.zone-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.zone-card.oversold .zone-badge {
    background: var(--oversold);
    color: white;
}

.zone-card.normal .zone-badge {
    background: var(--normal);
    color: white;
}

.zone-card.overbought .zone-badge {
    background: var(--overbought);
    color: white;
}

.zone-stocks {
    padding: 12px 20px;
    max-height: 300px;
    overflow-y: auto;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

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

.stock-item:hover {
    background: var(--bg-light);
    margin: 0 -20px;
    padding: 10px 20px;
}

.stock-name {
    font-size: 0.9rem;
}

.stock-rsi {
    font-weight: 600;
    font-size: 0.9rem;
}

.zone-card.oversold .stock-rsi { color: var(--oversold); }
.zone-card.normal .stock-rsi { color: var(--normal); }
.zone-card.overbought .stock-rsi { color: var(--overbought); }

.zone-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

.refresh-btn {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

/* ===== Chat Section ===== */
.chat-container {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.chat-header h2 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.chat-header p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 16px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.bot .message-content {
    background: var(--bg-light);
    color: var(--text-dark);
}

.chat-message.user .message-content {
    background: var(--primary);
    color: white;
}

.chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input-container button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* ===== Floating Chat (Mobile) ===== */
.floating-chat {
    position: fixed;
    bottom: calc(var(--mobile-nav-height) + 16px);
    right: 16px;
    width: calc(100% - 32px);
    max-width: 360px;
    height: 400px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 200;
}

.floating-chat.hidden {
    display: none;
}

.floating-chat-header {
    padding: 12px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius) var(--radius) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.floating-chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.floating-chat-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
}

.floating-chat-input {
    padding: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
}

.floating-chat-input input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.floating-chat-input button {
    padding: 10px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ===== Mobile Bottom Nav ===== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--mobile-nav-height);
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.75rem;
}

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item .nav-icon {
    font-size: 1.25rem;
}

/* ===== Hidden Utility ===== */
.hidden {
    display: none !important;
}

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .main-content {
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: calc(var(--mobile-nav-height) + 16px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }
    
    .main-content {
        padding: 16px;
        padding-top: calc(var(--header-height) + 16px);
        padding-bottom: calc(var(--mobile-nav-height) + 16px);
    }
    
    .section-header h1 {
        font-size: 1.35rem;
    }
    
    .controls-card {
        padding: 16px;
    }
    
    .control-row {
        flex-direction: column;
    }
    
    .control-group {
        width: 100%;
    }
    
    .analyze-btn {
        width: 100%;
        justify-content: center;
    }
    
    .chart-card {
        height: 350px;
        padding: 16px;
    }
    
    .zones-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-container {
        height: calc(100vh - var(--header-height) - var(--mobile-nav-height) - 32px);
    }
    
    .modal-content {
        padding: 24px;
    }
    
    .pricing-card {
        padding: 20px;
    }
    
    .pricing-card h3 {
        font-size: 2rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    :root {
        --header-height: 52px;
        --mobile-nav-height: 56px;
    }
    
    .main-content {
        padding: 12px;
        padding-top: calc(var(--header-height) + 12px);
        padding-bottom: calc(var(--mobile-nav-height) + 12px);
    }
    
    .section-header h1 {
        font-size: 1.2rem;
    }
    
    .section-header p {
        font-size: 0.85rem;
    }
    
    .chart-card {
        height: 300px;
        padding: 12px;
    }
    
    .zone-stocks {
        max-height: 200px;
    }
    
    .usage-counter {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .chart-card {
        height: 250px;
    }
    
    .floating-chat {
        height: 280px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #0f172a;
        --bg-white: #1e293b;
        --text-dark: #f1f5f9;
        --text-gray: #94a3b8;
        --text-light: #64748b;
        --border: #334155;
    }
    
    .control-group input,
    .control-group select {
        background: var(--bg-light);
        color: var(--text-dark);
    }
    
    .chat-input-container input,
    .floating-chat-input input {
        background: var(--bg-light);
        color: var(--text-dark);
    }
}

/* ===== FAQ Section ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.faq-answer ul {
    margin: 16px 0;
    padding-left: 0;
    list-style: none;
}

.faq-answer li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.faq-answer li:last-child {
    border-bottom: none;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.comparison-item {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
}

.comparison-item:first-child {
    border-color: var(--oversold);
    background: rgba(22, 163, 74, 0.05);
}

.comparison-item:last-child {
    border-color: var(--overbought);
    background: rgba(220, 38, 38, 0.05);
}

.comparison-item h4 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.comparison-item ul {
    list-style: none;
    padding: 0;
}

.comparison-item li {
    padding: 6px 0;
    font-size: 0.9rem;
}

/* ===== Earnings Section ===== */
.earnings-container {
    max-width: 1000px;
    margin: 0 auto;
}

.earnings-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.earnings-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.earnings-card.highlight {
    background: linear-gradient(135deg, var(--oversold) 0%, #059669 100%);
    color: white;
}

.earnings-card h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.big-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 16px 0;
    color: var(--oversold);
}

.earnings-card.highlight .big-number {
    color: white;
}

.earnings-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.earnings-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.performance-table {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.performance-table h3 {
    margin-bottom: 20px;
    text-align: center;
}

.table-container {
    overflow-x: auto;
}

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

.performance-table th,
.performance-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.performance-table th {
    background: var(--bg-light);
    font-weight: 600;
    font-size: 0.85rem;
}

.performance-table tbody tr:hover {
    background: var(--bg-light);
}

.performance-table .return.positive {
    color: var(--oversold);
    font-weight: 600;
}

.performance-table .return.negative {
    color: var(--overbought);
    font-weight: 600;
}

.performance-table .profit {
    color: var(--oversold);
    font-weight: 600;
}

.performance-table .loss {
    color: var(--overbought);
    font-weight: 600;
}

.performance-table tfoot tr {
    background: var(--primary);
    color: white;
}

.performance-table tfoot .return,
.performance-table tfoot .profit {
    color: white;
}

.earnings-disclaimer {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.earnings-disclaimer h4 {
    color: #92400e;
    margin-bottom: 12px;
}

.earnings-disclaimer p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.risk-factors {
    margin: 20px 0;
}

.risk-factors h5 {
    margin-bottom: 12px;
    color: #92400e;
}

.risk-factors ul {
    list-style: disc;
    padding-left: 20px;
}

.risk-factors li {
    margin-bottom: 8px;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
}

.cta-section h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.cta-section p {
    margin-bottom: 24px;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: scale(1.05);
}

.cta-note {
    margin-top: 16px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .earnings-summary {
        grid-template-columns: 1fr;
    }
    
    .big-number {
        font-size: 2rem;
    }
    
    .performance-table {
        padding: 16px;
    }
    
    .performance-table th,
    .performance-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
    
    .cta-section {
        padding: 24px 20px;
    }
    
    .cta-section h3 {
        font-size: 1.25rem;
    }
    
    .mobile-nav {
        justify-content: space-between;
        padding: 0 8px;
    }
    
    .mobile-nav-item {
        padding: 8px 4px;
        font-size: 0.7rem;
    }
    
    .mobile-nav-item .nav-icon {
        font-size: 1.1rem;
    }
}
/* ===== About Us Section ===== */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.company-intro {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    text-align: center;
}

.company-logo h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.company-logo h3 {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    font-weight: 500;
}

.company-description p {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.company-description p:first-child {
    font-size: 1.2rem;
    color: var(--primary);
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.our-story,
.our-values,
.technology-stack,
.team-section,
.contact-section {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
}

.our-story h3,
.our-values h3,
.technology-stack h3,
.team-section h3,
.contact-section h3 {
    margin-bottom: 24px;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.story-content p {
    margin-bottom: 20px;
    line-height: 1.7;
}

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

.value-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.value-item h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.tech-content ul {
    list-style: none;
    padding: 0;
}

.tech-content li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
}

.tech-content li:last-child {
    border-bottom: none;
}

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

.team-member {
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.team-member:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 16px;
}

.team-member h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.member-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.member-bio {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

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

.contact-item h4 {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.contact-item a {
    color: var(--primary);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

.mission-statement {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 32px;
    text-align: center;
}

.mission-content h3 {
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.mission-statement blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 20px 0;
    padding: 0;
    border: none;
}

.mission-signature {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.cta-about {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
}

.cta-about h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.cta-about p {
    margin-bottom: 24px;
    color: var(--text-gray);
}

/* Mobile Responsive for About Section */
@media (max-width: 768px) {
    .company-intro {
        padding: 24px 20px;
    }
    
    .company-logo h2 {
        font-size: 1.4rem;
    }
    
    .company-logo h3 {
        font-size: 1rem;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .our-story,
    .our-values,
    .technology-stack,
    .team-section,
    .contact-section {
        padding: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-statement {
        padding: 24px 20px;
    }
    
    .mission-statement blockquote {
        font-size: 1.1rem;
    }
    
    .cta-about {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .company-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .member-avatar {
        font-size: 3rem;
    }
}

/* ===== Strategy Explanation Section ===== */
.strategy-explanation {
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.strategy-explanation h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    font-size: 1.4rem;
}

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

.strategy-card {
    padding: 24px;
    border-radius: 12px;
    border: 2px solid;
}

.strategy-card.buy-zone {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: var(--oversold);
}

.strategy-card.sell-zone {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: var(--overbought);
}

.strategy-card h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.strategy-card.buy-zone h4 {
    color: var(--oversold);
}

.strategy-card.sell-zone h4 {
    color: var(--overbought);
}

.strategy-card p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.strategy-card ul {
    list-style: none;
    padding: 0;
}

.strategy-card ul li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.strategy-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.strategy-card.buy-zone ul li::before {
    color: var(--oversold);
}

.strategy-card.sell-zone ul li::before {
    color: var(--overbought);
}
/* ===== Mobile User Status in Header ===== */
.mobile-user-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0; /* Prevent shrinking */
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0; /* Prevent shrinking */
}

.mobile-user-plan {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap; /* Prevent text wrapping */
}

.mobile-user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking */
}

.mobile-upgrade-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent shrinking */
}

.mobile-upgrade-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.mobile-sign-out-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0; /* Prevent shrinking */
    min-width: 36px; /* Ensure minimum width */
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sign-out-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* ===== Free App Styles ===== */
.free-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-badge-mobile {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
    text-transform: uppercase;
}

.free-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 12px 20px;
    margin-top: 16px;
    font-weight: 600;
    color: #065f46;
}

.free-icon {
    font-size: 1.2rem;
}

/* ===== Coffee Button Styles ===== */
.coffee-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.coffee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.coffee-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: auto;
}

.mobile-coffee-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mobile-coffee-btn:hover {
    transform: scale(1.05);
}

/* ===== Free Info Card ===== */
.free-info {
    margin-top: auto;
    padding: 16px 0;
}

.free-card {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.free-card h3 {
    color: #065f46;
    margin-bottom: 8px;
    font-size: 1rem;
}

.free-card p {
    color: #047857;
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.coffee-text {
    font-weight: 600;
    color: #d97706 !important;
}

/* ===== Coffee Support Card ===== */
.coffee-support-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.coffee-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.coffee-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.coffee-text h3 {
    color: #92400e;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.coffee-text p {
    color: #b45309;
    margin-bottom: 0;
    line-height: 1.5;
}

.coffee-support-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

.coffee-support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* ===== Mobile Coffee Navigation ===== */
.mobile-nav-item.coffee-mobile {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-radius: 12px;
    margin: 0 4px;
}

.mobile-nav-item.coffee-mobile:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

/* ===== Coffee Modal ===== */
.coffee-close-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s ease;
}

.coffee-close-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .coffee-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .coffee-icon {
        font-size: 2.5rem;
    }
    
    .coffee-support-btn {
        width: 100%;
        text-align: center;
    }
    
    .free-highlight {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
    padding: 12px 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white !important;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.free-trial-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.free-trial-btn:hover::before {
    left: 100%;
}

.free-trial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
}

.free-trial-btn .nav-icon {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* ===== Enhanced Mobile Styles ===== */
@media (max-width: 768px) {
    /* Force consistent backgrounds on mobile */
    body, html {
        background-color: #f8fafc !important;
        color: #1e293b !important;
    }
    
    .section {
        background-color: #f8fafc !important;
        color: #1e293b !important;
    }
    
    .earnings-card {
        background-color: #ffffff !important;
        color: #1e293b !important;
    }
    
    .earnings-card.highlight {
        background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
        color: white !important;
    }
    
    .earnings-card.highlight * {
        color: white !important;
    }
    
    .strategy-card {
        background-color: #ffffff !important;
        color: #1e293b !important;
    }
    
    .strategy-card.buy-zone {
        background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
        color: #1e293b !important;
    }
    
    .strategy-card.sell-zone {
        background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%) !important;
        color: #1e293b !important;
    }
    
    /* Mobile header adjustments */
    .mobile-header {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
    }
    
    .mobile-logo {
        color: var(--text-dark) !important;
        font-weight: 600;
    }
    
    .menu-toggle {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: var(--text-dark) !important;
        cursor: pointer;
    }
}

/* ===== iOS Safari Specific Fixes ===== */
@supports (-webkit-touch-callout: none) {
    .earnings-section,
    .section,
    .earnings-container,
    .earnings-card {
        background-color: #f8fafc !important;
        color: #1e293b !important;
    }
    
    .earnings-card {
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
    }
    
    .earnings-card.highlight {
        background: linear-gradient(135deg, #16a34a 0%, #059669 100%) !important;
        color: white !important;
    }
    
    .earnings-card.highlight * {
        color: white !important;
    }
}
/* ===== Mobile Free Trial Button ===== */
.mobile-nav-item.free-trial-mobile {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white !important;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item.free-trial-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.mobile-nav-item.free-trial-mobile:hover::before {
    left: 100%;
}

.mobile-nav-item.free-trial-mobile .nav-icon {
    animation: bounce 2s infinite;
}

.mobile-nav-item.free-trial-mobile span {
    color: white !important;
    font-weight: 600;
}

/* Adjust mobile nav layout for 6 items */
@media (max-width: 768px) {
    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
    }
    
    .mobile-nav-item {
        font-size: 0.7rem;
        padding: 8px 4px;
    }
    
    .mobile-nav-item .nav-icon {
        font-size: 1rem;
        margin-bottom: 2px;
    }
}
/* ===== CLEAN MOBILE DARK MODE PREVENTION ===== */
html {
    color-scheme: light;
    background-color: #f8fafc;
}

body {
    color-scheme: light;
    background-color: #f8fafc !important;
    color: #1e293b !important;
}

/* Simple dark mode override */
@media (prefers-color-scheme: dark) {
    html, body {
        color-scheme: light !important;
        background-color: #f8fafc !important;
        color: #1e293b !important;
    }
    
    .section, .earnings-container, .earnings-card:not(.highlight) {
        background-color: #ffffff !important;
        color: #1e293b !important;
    }
}

/* Remove aggressive overrides that cause white highlights */
@media (max-width: 768px) {
    /* Clean mobile styles without aggressive overrides */
    body {
        background-color: #f8fafc;
        color: #1e293b;
    }
    
    .section {
        background-color: #f8fafc;
    }
    
    .earnings-card:not(.highlight) {
        background-color: #ffffff;
        color: #1e293b;
        border: 1px solid #e2e8f0;
    }
    
    .earnings-card.highlight {
        background: linear-gradient(135deg, #16a34a 0%, #059669 100%);
        color: white;
    }
    
    /* Remove text selection highlights that cause white text */
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection for inputs and content */
    input, textarea, .section-content, p, span {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
}