:root {
    --brand: #0b3d91;
    --brand-dark: #072a66;
    --brand-deep: #061e47;
    --brand-light: #eaf1fc;
    --bg-primary: #f7f9fd;
    --bg-secondary: #eef3fb;
    --bg-card: #ffffff;
    --bg-input: #f2f6fc;
    --text-primary: #0d2448;
    --text-secondary: #5a6e8c;
    --text-muted: #9aa9bf;
    --accent-green: #0f9d63;
    --accent-red: #e2434f;
    --accent-blue: #0b3d91;
    --accent-purple: #2a62b8;
    --accent-orange: #e8890c;
    --accent-yellow: #b7791f;
    --border-color: #d9e3f1;
    --shadow: 0 10px 30px rgba(11, 61, 145, 0.08);
    --radius: 14px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 14px rgba(6, 30, 71, 0.35);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: #7db3ff;
    font-size: 1.8rem;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-balance {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.username {
    font-weight: 500;
    color: #ffffff;
}

.logout-btn {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.logout-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.disclaimer-banner {
    background: linear-gradient(90deg, rgba(11, 61, 145, 0.06), rgba(42, 98, 184, 0.06));
    border-bottom: 1px solid rgba(11, 61, 145, 0.15);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--brand-dark);
}

.disclaimer-banner i {
    color: var(--brand);
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.main-footer {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.footer-disclaimer {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue { background: rgba(11, 61, 145, 0.12); color: var(--accent-blue); }
.stat-icon.purple { background: rgba(42, 98, 184, 0.12); color: var(--accent-purple); }
.stat-icon.green { background: rgba(15, 157, 99, 0.12); color: var(--accent-green); }
.stat-icon.orange { background: rgba(232, 137, 12, 0.14); color: var(--accent-orange); }
.stat-icon.cyan { background: rgba(20, 160, 190, 0.14); color: #14a0be; }

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    grid-column: span 2;
    box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}

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

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.card-header h3 i {
    color: var(--brand);
}

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

.chart-container.large {
    height: 400px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 6px 18px rgba(11, 61, 145, 0.35);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-secondary:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    color: var(--brand);
}

.btn-danger {
    background: rgba(226, 67, 79, 0.1);
    color: var(--accent-red);
}

.btn-danger:hover {
    background: rgba(226, 67, 79, 0.18);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 61, 145, 0.12);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(226, 67, 79, 0.08);
    border: 1px solid rgba(226, 67, 79, 0.25);
    color: var(--accent-red);
}

.alert-success {
    background: rgba(15, 157, 99, 0.08);
    border: 1px solid rgba(15, 157, 99, 0.25);
    color: var(--accent-green);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active, .status-completed { background: rgba(15, 157, 99, 0.12); color: var(--accent-green); }
.status-pending { background: rgba(183, 121, 31, 0.14); color: var(--accent-yellow); }
.status-cancelled, .status-rejected { background: rgba(226, 67, 79, 0.1); color: var(--accent-red); }
.status-open { background: rgba(11, 61, 145, 0.1); color: var(--accent-blue); }
.status-inactive { background: rgba(154, 169, 191, 0.18); color: var(--text-secondary); }

.risk-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-low { background: rgba(15, 157, 99, 0.12); color: var(--accent-green); }
.risk-medium { background: rgba(183, 121, 31, 0.14); color: var(--accent-yellow); }
.risk-high { background: rgba(226, 67, 79, 0.1); color: var(--accent-red); }

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

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 1rem;
}

.empty-table {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.investments-list,
.trades-list,
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.investment-item,
.trade-item,
.transaction-item {
    background: var(--bg-input);
    padding: 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.investment-item:hover,
.trade-item:hover,
.transaction-item:hover {
    border-color: rgba(11, 61, 145, 0.15);
}

.investment-details,
.trade-details,
.trade-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.plan-name,
.trade-symbol {
    font-weight: 600;
    min-width: 100px;
}

.plan-amount,
.trade-amount,
.plan-profit,
.trade-profit {
    font-weight: 600;
}

.investment-dates {
    text-align: right;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tr:hover {
    background: rgba(11, 61, 145, 0.03);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(11, 61, 145, 0.12), transparent),
        radial-gradient(800px 500px at 110% 110%, rgba(42, 98, 184, 0.12), transparent),
        linear-gradient(160deg, #ffffff 0%, var(--bg-secondary) 100%);
}

.auth-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.auth-form .form-group {
    margin-bottom: 1.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--brand);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-features p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-features i {
    color: var(--brand);
}

.plans-page,
.trading-page,
.history-page,
.admin-page {
    max-width: 1200px;
    margin: 0 auto;
}

.balance-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.balance-info strong {
    color: var(--brand);
    font-size: 1.25rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

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

.plan-header h3 {
    font-size: 1.4rem;
}

.plan-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.plan-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.plan-detail {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 600;
}

.trading-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-section {
    grid-column: span 2;
}

.symbol-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
}

.stats-row {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
}

.stats-row strong {
    color: var(--text-primary);
}

.trade-panel {
    height: fit-content;
}

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

.type-buttons input[type="radio"] {
    display: none;
}

.type-btn {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.type-btn.buy {
    color: var(--accent-green);
}

.type-btn.sell {
    color: var(--accent-red);
}

#buyBtn:checked + .type-btn.buy {
    background: rgba(15, 157, 99, 0.12);
    border-color: var(--accent-green);
}

#sellBtn:checked + .type-btn.sell {
    background: rgba(226, 67, 79, 0.1);
    border-color: var(--accent-red);
}

.balance-display {
    background: var(--bg-input);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.balance-display strong {
    color: var(--brand);
}

.type-buy { color: var(--accent-green); }
.type-sell { color: var(--accent-red); }

.btn-close-trade {
    background: rgba(226, 67, 79, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(226, 67, 79, 0.25);
}

.btn-close-trade:hover {
    background: rgba(226, 67, 79, 0.18);
}

.open-trades,
.trade-history {
    max-height: 500px;
    overflow-y: auto;
}

.disclaimer-box {
    background: rgba(11, 61, 145, 0.05);
    border: 1px solid rgba(11, 61, 145, 0.2);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    color: var(--brand-dark);
}

.disclaimer-box i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    color: var(--brand);
}

.plans-actions {
    display: flex;
    gap: 1rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(11, 61, 145, 0.04);
}

.plans-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.plan-admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.plan-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.create-plan-form {
    margin-bottom: 2rem;
}

.txn-type,
.trade-type {
    font-weight: 600;
    font-size: 0.85rem;
}

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

.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #c4d2e6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand);
}

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

.landing-page {
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Landing Navigation */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 14px rgba(6, 30, 71, 0.35);
}

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

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
}

.landing-logo i {
    color: #7db3ff;
    font-size: 1.8rem;
}

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

.btn-ghost {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.btn-glow {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(11, 61, 145, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 8px 26px rgba(11, 61, 145, 0.4);
    transform: translateY(-2px);
}

.btn-glow:active {
    transform: translateY(0) scale(0.98);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    gap: 4rem;
}

.hero-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(11, 61, 145, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 61, 145, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: #3b82f6;
    top: -100px;
    left: -100px;
    opacity: 0.12;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: var(--brand);
    bottom: 100px;
    right: 20%;
    opacity: 0.1;
}

.hero-glow-3 {
    width: 300px;
    height: 300px;
    background: #60a5fa;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-light);
    border: 1px solid rgba(11, 61, 145, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--brand);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(11, 61, 145, 0.15); }
    50% { box-shadow: 0 0 20px 5px rgba(11, 61, 145, 0.1); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand) 0%, #1d4ed8 45%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 8px 30px rgba(11, 61, 145, 0.3);
}

.btn-hero-primary:hover {
    box-shadow: 0 12px 40px rgba(11, 61, 145, 0.42);
    transform: translateY(-3px);
}

.btn-hero-primary:active {
    transform: translateY(0) scale(0.97);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    color: var(--brand);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid rgba(11, 61, 145, 0.25);
    transition: all 0.3s;
}

.btn-hero-secondary:hover {
    background: var(--brand-light);
    border-color: var(--brand);
    transform: translateY(-3px);
}

.btn-hero-secondary:active {
    transform: translateY(0) scale(0.97);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Visual - 3D */
.hero-visual {
    flex: 1;
    position: relative;
    z-index: 1;
    min-height: 500px;
    perspective: 1200px;
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out;
    will-change: transform;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 20px 50px rgba(11, 61, 145, 0.12);
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    backface-visibility: hidden;
}

@keyframes float {
    0%, 100% { transform: translateZ(0) translateY(0); }
    50% { transform: translateZ(45px) translateY(-16px); }
}

.card-1 {
    top: 50px;
    right: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 150px;
    animation-delay: 1s;
}

.card-3 {
    bottom: 100px;
    right: 80px;
    animation-delay: 2s;
}

.mini-chart {
    width: 120px;
    height: 50px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
}

.chart-up {
    background: linear-gradient(to top, rgba(15, 157, 99, 0.25), transparent);
    clip-path: polygon(0 80%, 20% 60%, 40% 70%, 60% 40%, 80% 50%, 100% 20%, 100% 100%, 0 100%);
}

.chart-down {
    background: linear-gradient(to top, rgba(226, 67, 79, 0.25), transparent);
    clip-path: polygon(0 30%, 20% 50%, 40% 40%, 60% 60%, 80% 55%, 100% 80%, 100% 100%, 0 100%);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.card-info .symbol {
    font-weight: 700;
    font-size: 1rem;
}

.card-info .price {
    font-size: 1.1rem;
    font-weight: 600;
}

.card-info .change {
    font-size: 0.85rem;
    font-weight: 600;
}

.change.positive { color: var(--accent-green); }
.change.negative { color: var(--accent-red); }

.portfolio-preview {
    text-align: center;
}

.portfolio-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.portfolio-header i {
    color: var(--brand);
}

.portfolio-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.portfolio-change {
    color: var(--accent-green);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Ticker Section */
.ticker-section {
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.ticker-wrapper {
    overflow: hidden;
    width: 100%;
}

.ticker-track {
    display: flex;
    gap: 2.5rem;
    animation: tickerScroll 35s linear infinite;
    width: max-content;
    will-change: transform;
}

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

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

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    padding: 0.4rem 0;
}

.ticker-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: contain;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ticker-icon-fallback {
    font-size: 0.6rem;
    color: #fff;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.6rem;
    flex-shrink: 0;
}

.ticker-symbol {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.9rem;
}

.ticker-price {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.ticker-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.ticker-change.up {
    color: #8df5be;
    background: rgba(255, 255, 255, 0.12);
}

.ticker-change.down {
    color: #ff9ea5;
    background: rgba(255, 255, 255, 0.12);
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--brand-light);
    border: 1px solid rgba(11, 61, 145, 0.2);
    color: var(--brand);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s, border-color 0.35s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), #3b82f6);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-6px) scale(1.01);
    box-shadow: 0 16px 45px rgba(11, 61, 145, 0.14);
    border-color: rgba(11, 61, 145, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transform: translateZ(20px);
}

.feature-icon i {
    margin: 0 2px;
}

.icon-green {
    background: rgba(15, 157, 99, 0.12);
    color: var(--accent-green);
}

.icon-blue {
    background: rgba(11, 61, 145, 0.12);
    color: var(--accent-blue);
}

.icon-purple {
    background: rgba(42, 98, 184, 0.12);
    color: var(--accent-purple);
}

.icon-orange {
    background: rgba(232, 137, 12, 0.14);
    color: var(--accent-orange);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 2rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    flex: 1;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s;
}

.step-card:hover {
    transform: perspective(900px) rotateX(3deg) translateY(-6px);
    box-shadow: 0 14px 40px rgba(11, 61, 145, 0.13);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), #1d4ed8);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--brand-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--brand);
}

.step-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand), #3b82f6);
    opacity: 0.4;
}

/* Plans Preview Section */
.plans-preview-section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    content-visibility: auto;
    contain-intrinsic-size: 900px;
}

.plans-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.plan-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s;
    transform-style: preserve-3d;
}

.plan-preview-card:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(3deg) translateY(-6px);
    box-shadow: 0 16px 45px rgba(11, 61, 145, 0.14);
}

.featured-plan {
    border-color: var(--brand);
    box-shadow: 0 0 30px rgba(11, 61, 145, 0.12);
}

.featured-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand), #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.plan-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.plan-icon {
    width: 50px;
    height: 50px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand);
}

.plan-conservative .plan-icon {
    color: var(--brand);
    background: var(--brand-light);
}

.plan-aggressive .plan-icon {
    color: var(--accent-red);
    background: rgba(226, 67, 79, 0.1);
}

.plan-risk-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-preview-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.plan-preview-returns {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.return-range {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
}

.return-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.plan-preview-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.plan-detail-row strong {
    color: var(--text-primary);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.05), rgba(59, 130, 246, 0.05));
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(11, 61, 145, 0.12), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(100px);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--brand);
}

/* Landing Footer */
.landing-footer {
    background: var(--brand-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 1;
}

.landing-footer .landing-logo {
    color: #fff;
}

.landing-footer .landing-logo i {
    color: #7db3ff;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .landing-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #aebcd4;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column a {
    display: block;
    color: #aebcd4;
    text-decoration: none;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #7db3ff;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #8fa1bd;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-disclaimer-text {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* ========================================
   HERO SLIDER
   ======================================== */

.hero-slider-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 450px;
    max-height: 800px;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-slide.active {
    opacity: 1;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(6, 30, 71, 0.72) 0%,
        rgba(6, 30, 71, 0.5) 50%,
        rgba(6, 30, 71, 0.95) 100%
    );
}

.slider-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.slider-caption p {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(6, 30, 71, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-width: 90vw;
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 3;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(6, 30, 71, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    font-size: 1.1rem;
}

.slider-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: scale(1.08);
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 3;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--brand);
    box-shadow: 0 0 10px rgba(11, 61, 145, 0.6);
    transform: scale(1.2);
}

/* Slider as hero background (behind hero text) */
.hero-section.has-slider {
    min-height: 100vh;
    padding: 8rem 2rem 5rem;
    overflow: hidden;
}

.hero-section.has-slider .hero-grid,
.hero-section.has-slider .hero-glow {
    opacity: 0;
}

.hero-section.has-slider .hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-section.has-slider .slider-slide {
    background: var(--brand-dark);
}

.hero-section.has-slider .slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-section.has-slider .slider-slide.active img {
    animation: heroZoom 8s ease-in-out forwards;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-section.has-slider .slider-overlay {
    background: linear-gradient(
        to right,
        rgba(6, 30, 71, 0.88) 0%,
        rgba(6, 30, 71, 0.6) 40%,
        rgba(6, 30, 71, 0.38) 60%,
        rgba(6, 30, 71, 0.72) 100%
    );
}

.hero-section.has-slider .slider-caption {
    display: none;
}

/* Light-on-image text overrides */
.hero-section.has-slider .hero-title {
    color: #fff;
}

.hero-section.has-slider .gradient-text {
    background: linear-gradient(135deg, #7db3ff 0%, #a5d0ff 55%, #e3f0ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section.has-slider .hero-badge {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    backdrop-filter: blur(8px);
}

.hero-section.has-slider .hero-badge i {
    color: #7db3ff;
}

.hero-section.has-slider .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.hero-section.has-slider .stat-number {
    color: #fff;
}

.hero-section.has-slider .stat-label {
    color: rgba(255, 255, 255, 0.75);
}

.hero-section.has-slider .hero-stat-divider {
    background: rgba(255, 255, 255, 0.25);
}

.hero-section.has-slider .btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.hero-section.has-slider .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   ADMIN HOMEPAGE MANAGEMENT
   ======================================== */

.admin-nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
    flex-wrap: wrap;
}

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

.admin-tab-btn:hover {
    color: var(--brand);
}

.admin-tab-btn.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

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

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

.content-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.content-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.content-section-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-section-header h2 i {
    color: var(--brand);
}

.content-fields {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.content-fields .form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    resize: vertical;
}

.content-fields .form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
}

/* Slider Images List */
.slider-images-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.add-slider-form,
.edit-slider-form {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.slider-image-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.slider-image-item:hover {
    border-color: rgba(11, 61, 145, 0.3);
}

.slider-image-preview {
    width: 100px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-card);
}

.slider-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image-info {
    flex: 1;
    min-width: 150px;
}

.slider-image-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.slider-image-info .slider-caption {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slider-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.slider-image-order {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-order {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
}

.btn-order:hover:not(:disabled) {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-order:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.order-number {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.slider-image-actions {
    display: flex;
    gap: 0.5rem;
}

/* ========================================
   3D + SCROLL REVEAL ANIMATIONS
   ======================================== */

html.js .reveal {
    opacity: 0;
    transform: translateY(28px) translateZ(0);
    transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
    will-change: opacity, transform;
}

html.js .reveal.revealed {
    opacity: 1;
    transform: none;
}

.landing-logo, .btn-glow, .btn-ghost {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ========================================
   RESPONSIVE FIXES
   ======================================== */

@media (max-width: 1024px) {
    .hero-section.has-slider {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero-section.has-slider .slider-overlay {
        background: linear-gradient(
            to right,
            rgba(6, 30, 71, 0.85) 0%,
            rgba(6, 30, 71, 0.55) 50%,
            rgba(6, 30, 71, 0.75) 100%
        );
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .plans-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-container {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 40px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 768px) {
    .hero-section.has-slider {
        padding: 5.5rem 1.25rem 7rem;
        min-height: 100vh;
    }

    .hero-section.has-slider .slider-overlay {
        background: linear-gradient(
            to bottom,
            rgba(6, 30, 71, 0.82) 0%,
            rgba(6, 30, 71, 0.55) 38%,
            rgba(6, 30, 71, 0.55) 62%,
            rgba(6, 30, 71, 0.88) 100%
        );
    }

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

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .plans-preview-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .landing-logo {
        font-size: 1.25rem;
    }

    .landing-logo i {
        font-size: 1.4rem;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .btn-glow {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-section {
        padding: 4rem 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .features-section,
    .how-it-works-section,
    .plans-preview-section {
        padding: 4rem 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 0.75rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .slider-caption p {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .slider-dots {
        bottom: 1rem;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 1rem;
    }

    .step-card {
        padding: 2rem 1.5rem;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Admin responsive */
    .content-section {
        padding: 1.25rem;
    }

    .content-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-image-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .slider-image-preview {
        width: 100%;
        height: 120px;
    }

    .slider-image-order {
        width: 100%;
        justify-content: center;
    }

    .slider-image-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .ticker-section {
        padding: 0.7rem 0;
    }

    .ticker-track {
        gap: 2rem;
    }

    .ticker-item {
        padding: 0.3rem 0;
        gap: 0.5rem;
    }

    .ticker-symbol {
        font-size: 0.85rem;
    }

    .ticker-price {
        font-size: 0.8rem;
    }

    .ticker-change {
        font-size: 0.7rem;
    }

    .ticker-separator {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .hero-section.has-slider {
        padding: 5rem 1rem 7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 4rem 1rem 2rem;
    }

    .features-section,
    .how-it-works-section,
    .plans-preview-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .return-range {
        font-size: 1.5rem;
    }

    .plan-preview-card {
        padding: 1.5rem;
    }

    .nav-container {
        padding: 0.6rem 0.75rem;
    }

    .landing-logo {
        font-size: 1.1rem;
    }

    .landing-logo i {
        font-size: 1.2rem;
    }

    .btn-glow {
        padding: 0.45rem 0.85rem;
        font-size: 0.8rem;
    }

    .landing-footer {
        padding: 3rem 1rem 1.5rem;
    }

    .slider-caption {
        bottom: 2.5rem;
    }

    .slider-caption p {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .ticker-track {
        gap: 1.5rem;
    }

    .ticker-item {
        padding: 0.3rem 0;
        gap: 0.4rem;
    }

    .ticker-symbol {
        font-size: 0.8rem;
    }

    .ticker-price {
        font-size: 0.75rem;
    }

    .ticker-change {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }

    .ticker-separator {
        font-size: 0.5rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }
}

/* ========================================
   DASHBOARD SIDEBAR LAYOUT (user area)
   ======================================== */

.dashboard-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sidebar {
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: 1rem;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    border: none;
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    z-index: 40;
    box-shadow: 0 12px 32px rgba(6, 30, 71, 0.35);
}

.sidebar-overlay {
    display: none;
}

.sidebar-account {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.sidebar-account-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.sidebar-account-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
}

.account-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
}

.toggle-btn:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.toggle-demo.active {
    background: linear-gradient(135deg, var(--accent-green), #0b7a4d);
    border-color: transparent;
    color: #fff;
}

.toggle-live.active {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    color: #fff;
}

.sidebar-balances {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sb-balance {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    border-left: 3px solid var(--accent-green);
}

.sb-balance.sb-live {
    border-left-color: #f59e0b;
}

.sb-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.65);
}

.sb-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.15rem;
}

.sb-sub {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-account-note {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.sidebar-account-note i {
    color: #fff;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-profile-info strong {
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-info span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-link:hover i {
    color: #fff;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 600;
}

.sidebar-link.active i {
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-link.logout-link {
    color: #ffb4b9;
}

.sidebar-link.logout-link:hover {
    background: rgba(226, 67, 79, 0.25);
    color: #fff;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
}

.sidebar-toggle {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    color: var(--brand);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

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

.account-status-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    background: linear-gradient(90deg, rgba(11, 61, 145, 0.08), rgba(11, 61, 145, 0.03));
    border: 1px solid rgba(11, 61, 145, 0.18);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.account-status-bar i {
    color: var(--brand);
}

.account-status-bar strong {
    color: var(--brand);
}

.btn-xs {
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
}

/* Mobile off-canvas sidebar */
@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
        gap: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        max-width: 85vw;
        max-height: 100vh;
        border-radius: 0;
        border: none;
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        box-shadow: 0 0 40px rgba(6, 30, 71, 0.25);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(6, 30, 71, 0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease;
        z-index: 39;
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* --- WhatsApp live chat floating button --- */
.wa-chat-btn {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(18, 140, 126, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(18, 140, 126, 0.6);
}

.wa-chat-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.55);
    animation: wa-pulse 1.8s ease-out infinite;
}

@keyframes wa-pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.45); opacity: 0; }
}

.wa-chat-tip {
    position: absolute;
    right: 72px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    box-shadow: var(--shadow);
}

.wa-chat-btn:hover .wa-chat-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 480px) {
    .wa-chat-tip {
        display: none;
    }
}
