: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 {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.page-header-title {
    flex: 1;
    min-width: 0;
}

.page-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.page-header-cta {
    white-space: nowrap;
}

.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(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.quick-links .btn {
    justify-content: center;
    margin: 0;
}

.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);
}

/* Landing nav links */
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.landing-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

/* Landing mobile menu toggle */
.landing-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background 0.2s;
}

.landing-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Landing mobile side drawer */
.landing-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 1100;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    box-shadow: 0 0 40px rgba(6, 30, 71, 0.4);
    overflow-y: auto;
}

.landing-sidebar.open {
    transform: translateX(0);
}

.landing-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 30, 71, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease;
    z-index: 1099;
}

.landing-sidebar-overlay.show {
    display: block;
    opacity: 1;
    visibility: visible;
}

.landing-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-sidebar-head .landing-logo {
    font-size: 1.25rem;
    min-width: 0;
}

.landing-menu-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.landing-menu-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.landing-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.landing-sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.landing-sidebar-links a i {
    width: 22px;
    text-align: center;
    color: #7db3ff;
    font-size: 1.05rem;
}

.landing-sidebar-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.landing-sidebar-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.landing-sidebar-actions .btn-ghost,
.landing-sidebar-actions .btn-glow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    text-align: center;
}

.landing-sidebar-actions .btn-glow {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: none;
}

.landing-sidebar-actions .btn-glow:hover {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: none;
}

/* 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;
}

/* ===== Announcements marquee ===== */
.marquee-bar {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1;
    position: relative;
}

.marquee-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1.1rem;
    background: rgba(0, 0, 0, 0.22);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.marquee-label i {
    font-size: 0.9rem;
}

.marquee-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.marquee-msg {
    padding: 0.55rem 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.marquee-sep {
    padding: 0 1.2rem;
    opacity: 0.6;
    font-size: 0.6rem;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
    .marquee-label span {
        display: none;
    }

    .marquee-label {
        padding: 0.55rem 0.8rem;
    }
}

.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;
    }

    .landing-nav-links {
        display: none;
    }

    .landing-menu-toggle {
        display: inline-flex;
    }

    .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;
        align-items: stretch;
        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;
    }
}

/* --- Password visibility toggle --- */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 2.75rem;
}

.eye-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: 6px;
    line-height: 1;
    transition: color 0.2s;
}

.eye-toggle:hover {
    color: var(--brand);
}

.eye-toggle:focus {
    outline: none;
    color: var(--brand);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* --- Site logo --- */
.site-logo-img {
    max-height: 44px;
    max-width: 200px;
    height: auto;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
    border-radius: 4px;
}

.landing-logo .site-logo-img {
    max-height: 40px;
}

.landing-footer .site-logo-img {
    max-height: 34px;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--brand);
    font-size: 1.4rem;
    font-weight: 700;
}

.auth-logo img {
    max-height: 52px;
    max-width: 220px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.logo-preview {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-input);
}

.logo-preview img {
    max-height: 60px;
    max-width: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* --- Important notice banner --- */
.notice-banner {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.12));
    border-bottom: 1px solid rgba(217, 119, 6, 0.25);
    padding: 0.7rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
}

.notice-banner i {
    color: #d97706;
    margin-top: 0.15rem;
}

/* --- About section (landing) --- */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(11, 61, 145, 0.16);
}

.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.about-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* --- Contact section (landing) --- */
.contact-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
}

a.contact-card {
    text-decoration: none;
    display: block;
}

a.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(11, 61, 145, 0.16);
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: rgba(11, 61, 145, 0.12);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.contact-icon.wa {
    background: rgba(37, 211, 102, 0.14);
    color: #128c7e;
}

.contact-icon.loc {
    background: rgba(255, 159, 67, 0.16);
    color: #e07b1f;
}

.contact-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    word-break: break-word;
}

.contact-note {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
}

/* --- Safety tips section (landing) --- */
.safety-tips-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.safety-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.safety-tip-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.safety-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(11, 61, 145, 0.16);
}

.safety-tip-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 145, 0.12);
    color: var(--brand);
    font-size: 1.2rem;
}

.safety-tip-card h3 {
    font-size: 1.02rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.safety-tip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.safety-tip-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* --- Safety tips (admin) --- */
.safety-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.safety-tip-item .tip-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 145, 0.12);
    color: var(--brand);
    font-size: 1.05rem;
}

.safety-tip-info {
    flex: 1;
    min-width: 0;
}

.safety-tip-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.safety-tip-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.tip-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.edit-tip-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: none;
}

.icon-select {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 0.5rem;
}

.icon-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.2s;
}

.icon-option:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.icon-option.selected {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.icon-option input {
    display: none;
}

@media (max-width: 768px) {
    .notice-banner,
    .disclaimer-banner {
        padding: 0.65rem 1rem;
    }
    .safety-tip-item {
        flex-direction: column;
    }
    .tip-actions {
        width: 100%;
    }
}

/* --- Shared admin section card --- */
.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.settings-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- Sidebar badges (unread messages / open tickets) --- */
.sidebar-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--accent-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* --- PWA install prompt --- */
.pwa-install-prompt {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translate(-50%, 120%);
    width: calc(100% - 2rem);
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(6, 22, 50, 0.35);
    padding: 0.85rem 1rem;
    z-index: 1200;
    transition: transform 0.35s ease;
}

.pwa-install-prompt.show {
    transform: translate(-50%, 0);
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
}

.pwa-install-text strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.pwa-install-text span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.1rem;
}

.pwa-install-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-ok {
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.pwa-install-ok:hover {
    filter: brightness(1.1);
}

.pwa-install-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.2rem;
}

.pwa-install-close:hover {
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .pwa-install-prompt {
        bottom: 10px;
    }
}

/* --- Impersonation banner --- */
.impersonate-banner {
    background: linear-gradient(90deg, #7c2d12, #9a3412);
    color: #fff;
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    position: relative;
    z-index: 200;
}

.impersonate-banner i {
    color: #fdba74;
}

.impersonate-exit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.impersonate-exit:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

@media (max-width: 640px) {
    .impersonate-banner {
        flex-wrap: wrap;
        text-align: center;
        padding: 0.6rem 1rem;
    }
}

/* ===== Promo video section ===== */
.promo-video-section {
    padding: 5rem 2rem;
    background: var(--bg-primary);
}

.promo-video-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.promo-video-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    background: #000;
    display: block;
}

/* ===== Earn clip (built-in 30s animated explainer) ===== */
.earn-clip {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(120% 140% at 50% 0%, #12307a 0%, #0b3d91 45%, #061e47 100%);
    box-shadow: 0 22px 60px rgba(6, 30, 71, 0.45);
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.earn-clip-scenes {
    position: absolute;
    inset: 0;
}

.clip-scene {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem 2rem 3rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.clip-scene.active {
    opacity: 1;
    visibility: visible;
}

.clip-logo {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    background: linear-gradient(135deg, #22d387, #0f9d63);
    box-shadow: 0 14px 34px rgba(34, 211, 135, 0.4);
    margin-bottom: 1.1rem;
}

.scene-title .clip-logo {
    animation: clipPop 0.7s ease both;
}

.scene-title h3 {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
    animation: clipSlideUp 0.7s 0.15s ease both;
}

.scene-title h4 {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 500;
    color: #a9c4f5;
    margin-bottom: 0.6rem;
    animation: clipSlideUp 0.7s 0.3s ease both;
}

.scene-title p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    animation: clipSlideUp 0.7s 0.45s ease both;
}

.clip-step-badge {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #061e47;
    background: linear-gradient(135deg, #ffd27a, #e8890c);
    box-shadow: 0 8px 20px rgba(232, 137, 12, 0.45);
    animation: clipPop 0.6s ease both;
}

.clip-step-icon {
    width: 96px;
    height: 96px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 1rem;
    animation: clipPop 0.7s ease both;
}

.scene-step1 .clip-step-icon {
    background: linear-gradient(135deg, rgba(34, 211, 135, 0.35), rgba(15, 157, 99, 0.5));
}

.clip-step-copy {
    max-width: 460px;
}

.clip-step-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #22d387;
    background: rgba(34, 211, 135, 0.14);
    padding: 0.25rem 0.7rem;
    border-radius: 30px;
    margin-bottom: 0.55rem;
    animation: clipSlideUp 0.7s 0.1s ease both;
}

.clip-step-copy h4 {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 0.4rem;
    animation: clipSlideUp 0.7s 0.2s ease both;
}

.clip-step-copy p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    animation: clipSlideUp 0.7s 0.32s ease both;
}

/* Step 2 -- money card */
.clip-money-card {
    width: min(300px, 70%);
    background: rgba(255, 255, 255, 0.96);
    color: #0d2448;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 16px 40px rgba(6, 30, 71, 0.35);
    text-align: left;
    animation: clipPop 0.7s ease both;
}

.clip-money-row,
.clip-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
}

.clip-balance-row {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #d9e3f1;
    color: #5a6e8c;
}

.clip-plus {
    color: #0f9d63;
    font-size: 1.1rem;
}

.clip-balance-row b {
    color: #0d2448;
}

/* Step 3 -- candlesticks */
.clip-chart {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 9px;
    height: 120px;
    margin-bottom: 1rem;
    padding: 0 0.5rem 0.5rem;
}

.cstick {
    position: relative;
    width: 16px;
    height: 100%;
    opacity: 0;
    transform: scaleY(0.4);
    transform-origin: bottom;
}

.scene-step3.active .cstick {
    animation: cstickIn 0.55s ease forwards;
}

.scene-step3.active .cstick:nth-child(1) { animation-delay: 0.15s; }
.scene-step3.active .cstick:nth-child(2) { animation-delay: 0.3s; }
.scene-step3.active .cstick:nth-child(3) { animation-delay: 0.45s; }
.scene-step3.active .cstick:nth-child(4) { animation-delay: 0.6s; }
.scene-step3.active .cstick:nth-child(5) { animation-delay: 0.75s; }
.scene-step3.active .cstick:nth-child(6) { animation-delay: 0.9s; }

.cstick .wick {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: currentColor;
}

.cstick .body {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    border-radius: 3px;
}

.cstick.up {
    color: #22d387;
}

.cstick.up .body {
    background: #22d387;
}

.cstick.up .wick {
    top: 0;
    bottom: 45%;
}

.cstick.up .body {
    bottom: 45%;
    height: 46%;
}

.cstick.down {
    color: #ff5f6d;
}

.cstick.down .body {
    background: #ff5f6d;
}

.cstick.down .wick {
    top: 45%;
    bottom: 0;
}

.cstick.down .body {
    top: 45%;
    height: 46%;
}

.cstick:nth-child(1) { height: 55%; }
.cstick:nth-child(2) { height: 70%; }
.cstick:nth-child(3) { height: 62%; }
.cstick:nth-child(4) { height: 82%; }
.cstick:nth-child(5) { height: 48%; }
.cstick:nth-child(6) { height: 92%; }

.clip-chip {
    position: absolute;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 30px;
    opacity: 0;
}

.scene-step3.active .clip-chip {
    animation: clipPulse 1.2s ease forwards;
}

.clip-chip.chip-buy {
    top: 6%;
    left: 12%;
    color: #061e47;
    background: #22d387;
}

.scene-step3.active .chip-buy { animation-delay: 0.55s; }

.clip-chip.chip-sell {
    bottom: 8%;
    right: 12%;
    color: #fff;
    background: #ff5f6d;
}

.scene-step3.active .chip-sell { animation-delay: 0.8s; }

/* Step 4 -- earn counters + bars */
.clip-earn-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    background: linear-gradient(135deg, #ffd27a, #e8890c);
    box-shadow: 0 12px 28px rgba(232, 137, 12, 0.45);
    margin-bottom: 0.6rem;
    animation: clipPop 0.6s ease both;
}

.clip-counter {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #22d387;
    margin-bottom: 0.8rem;
    text-shadow: 0 6px 24px rgba(34, 211, 135, 0.35);
}

.clip-counter .clip-currency {
    font-size: 0.7em;
    vertical-align: top;
    margin-right: 0.1rem;
    color: #a9c4f5;
}

.clip-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 56px;
    margin-bottom: 1rem;
}

.hbar {
    width: 26px;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #22d387, #0f9d63);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
}

.hbar.h1 { height: 35%; }
.hbar.h2 { height: 55%; }
.hbar.h3 { height: 72%; }
.hbar.h4 { height: 90%; }
.hbar.h5 { height: 60%; }
.hbar.h6 { height: 78%; }

.scene-earn.active .hbar {
    animation: barUp 0.6s ease forwards;
}

.scene-earn.active .hbar:nth-child(1) { animation-delay: 0.15s; }
.scene-earn.active .hbar:nth-child(2) { animation-delay: 0.3s; }
.scene-earn.active .hbar:nth-child(3) { animation-delay: 0.45s; }
.scene-earn.active .hbar:nth-child(4) { animation-delay: 0.6s; }

/* CTA scene */
.scene-cta .clip-logo {
    margin-bottom: 0.9rem;
}

.scene-cta h4 {
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 1rem;
    animation: clipSlideUp 0.7s 0.1s ease both;
}

.clip-cta-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #22d387, #0f9d63);
    box-shadow: 0 14px 34px rgba(34, 211, 135, 0.45);
    text-decoration: none;
    animation: clipPop 0.6s 0.2s ease both;
}

.clip-small {
    margin-top: 0.9rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    animation: clipSlideUp 0.7s 0.35s ease both;
}

/* Controls */
.earn-clip-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    background: linear-gradient(transparent, rgba(6, 30, 71, 0.85));
    z-index: 5;
}

.clip-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.clip-btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

.clip-btn:active {
    transform: scale(0.92);
}

.clip-progress {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.clip-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22d387, #0f9d63);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.clip-dots {
    display: flex;
    align-items: center;
    gap: 5px;
}

.clip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s, transform 0.2s;
}

.clip-dot.active {
    background: #22d387;
    transform: scale(1.25);
}

/* Play overlay */
.earn-clip-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    background: rgba(6, 30, 71, 0.55);
    z-index: 4;
    transition: opacity 0.35s ease;
}

.earn-clip-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.earn-clip-overlay span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.clip-big-play {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #061e47;
    background: linear-gradient(135deg, #22d387, #0f9d63);
    box-shadow: 0 0 0 10px rgba(34, 211, 135, 0.2), 0 16px 40px rgba(34, 211, 135, 0.5);
    cursor: pointer;
    transition: transform 0.15s;
    padding-left: 0.2rem;
}

.clip-big-play:hover {
    transform: scale(1.08);
}

/* Clip animations */
@keyframes clipPop {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes clipSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cstickIn {
    from { opacity: 0; transform: scaleY(0.4); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes barUp {
    from { opacity: 0; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes clipPulse {
    0% { opacity: 0; transform: scale(0.6); }
    60% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* ===== Platform screenshot section ===== */
.platform-shot-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.platform-shot-frame {
    max-width: 860px;
    margin: 0 auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.platform-shot-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Built-in mock when no screenshot uploaded */
.platform-mock {
    background: radial-gradient(130% 150% at 50% 0%, #12307a 0%, #0b3d91 50%, #061e47 100%);
    padding: 1rem;
}

.platform-mock-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.9rem;
}

.mock-window-dots {
    display: flex;
    gap: 6px;
}

.mock-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f6d;
}

.mock-window-dots span:nth-child(2) { background: #ffd27a; }
.mock-window-dots span:nth-child(3) { background: #22d387; }

.mock-site-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.mock-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d387;
    box-shadow: 0 0 0 0 rgba(34, 211, 135, 0.6);
    animation: liveDotPulse 1.6s infinite;
}

@keyframes liveDotPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 211, 135, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(34, 211, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 135, 0); }
}

.platform-mock-body {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0.9rem;
    align-items: stretch;
}

.mock-chart {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 1.2rem;
    min-height: 150px;
}

.mock-chart .cstick {
    animation: cstickIn 0.7s ease forwards;
    opacity: 0;
}

.mock-chart .cstick:nth-child(1) { animation-delay: 0.1s; height: 50%; }
.mock-chart .cstick:nth-child(2) { animation-delay: 0.25s; height: 68%; }
.mock-chart .cstick:nth-child(3) { animation-delay: 0.4s; height: 58%; }
.mock-chart .cstick:nth-child(4) { animation-delay: 0.55s; height: 80%; }
.mock-chart .cstick:nth-child(5) { animation-delay: 0.7s; height: 44%; }
.mock-chart .cstick:nth-child(6) { animation-delay: 0.85s; height: 88%; }
.mock-chart .cstick:nth-child(7) { animation-delay: 1s; height: 62%; }
.mock-chart .cstick:nth-child(8) { animation-delay: 1.15s; height: 74%; }

.mock-side {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mock-price-card {
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.mock-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

.mock-price-card b {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}

.mock-change {
    font-size: 0.72rem;
    font-weight: 700;
}

.mock-change.up { color: #22d387; }
.mock-change.down { color: #ff5f6d; }

.platform-mock-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-top: 0.9rem;
    height: 84px;
}

.platform-mock-bars .hbar {
    animation: barUp 0.6s ease forwards;
}

.platform-mock-bars .hbar:nth-child(1) { animation-delay: 0.15s; }
.platform-mock-bars .hbar:nth-child(2) { animation-delay: 0.3s; }
.platform-mock-bars .hbar:nth-child(3) { animation-delay: 0.45s; }
.platform-mock-bars .hbar:nth-child(4) { animation-delay: 0.6s; }
.platform-mock-bars .hbar:nth-child(5) { animation-delay: 0.75s; }
.platform-mock-bars .hbar:nth-child(6) { animation-delay: 0.9s; }

.platform-mock-bars .hbar.h4,
.platform-mock-bars .hbar.h6 {
    background: linear-gradient(180deg, #ffd27a, #e8890c);
}

@media (max-width: 560px) {
    .platform-mock-body {
        grid-template-columns: 1fr;
    }

    .mock-chart {
        min-height: 120px;
        padding: 0.9rem;
    }

    .clip-scene {
        padding: 1rem 1rem 2.6rem;
    }

    .clip-step-icon {
        width: 72px;
        height: 72px;
        font-size: 1.8rem;
    }

    .clip-earn-icon {
        width: 54px;
        height: 54px;
        font-size: 1.4rem;
    }

    .clip-money-card {
        width: 80%;
    }

    .earn-clip-controls {
        padding: 0.45rem 0.7rem;
    }
}

/* ===== Trading bots ===== */
.bot-card .plan-header {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem 1rem;
}

.bot-card .risk-badge {
    margin-left: auto;
}

.bot-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #22d387, #0f9d63);
    box-shadow: 0 10px 24px rgba(34, 211, 135, 0.3);
    flex-shrink: 0;
}

.bot-icon.small {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 11px;
}

.my-bots-section {
    margin-top: 2rem;
}

.my-bots-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.my-bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.my-bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.my-bot-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.my-bot-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.my-bot-info h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.my-bot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.my-bot-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.my-bot-stat span {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.my-bot-stat strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.text-profit {
    color: var(--accent-green);
}

.bot-progress {
    width: 100%;
}

.bot-progress-bar {
    height: 8px;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.bot-progress-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #22d387, #0f9d63);
    transition: width 0.4s ease;
}

.bot-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ========================================
   MOBILE & RESPONSIVE ENHANCEMENTS
   ======================================== */

html,
body {
    overflow-x: hidden;
}

.top-sb-toggle {
    display: none;
}

.table-scroll,
.investments-list,
.trades-list,
.transactions-list,
.modal {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1200px) {
    .main-header {
        padding: 0.85rem 1.25rem;
    }

    .header-left {
        gap: 1.25rem;
    }

    .header-right {
        gap: 1rem;
    }

    .dashboard-layout {
        gap: 1.25rem;
    }

    .main-content {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 1024px) {
    .main-header {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .main-nav .nav-link {
        padding: 0.45rem 0.8rem;
    }

    .user-balance {
        padding: 0.45rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile off-canvas sidebar: show top hamburger, hide duplicate in-page ones */
@media (max-width: 900px) {
    .top-sb-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .dashboard-main .page-header > .sidebar-toggle {
        display: none;
    }

    .main-content {
        padding: 1.25rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
    }

    .header-left {
        gap: 0.5rem;
        min-width: 0;
    }

    .logo {
        gap: 0.4rem;
        font-size: 1.05rem;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .site-logo-img {
        max-height: 34px;
    }

    .main-nav {
        flex: 1 1 auto;
        min-width: 0;
        gap: 0.1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: 0.5rem 0.55rem;
        font-size: 0.92rem;
    }

    .nav-link .nav-label {
        display: none;
    }

    .header-right {
        gap: 0.5rem;
    }

    .user-balance {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
    }

    .user-balance .balance-mode {
        display: none;
    }

    .username {
        display: none;
    }

    .user-menu {
        gap: 0.25rem;
    }

    .page-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .dashboard-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid > *,
    .admin-grid > * {
        min-width: 0;
    }

    .chart-card {
        grid-column: span 1;
    }

    .chart-container canvas {
        max-width: 100%;
    }

    .card {
        padding: 1.1rem;
    }

    .chart-container {
        height: 240px;
    }

    .chart-container.large {
        height: 280px;
    }

    .settings-section,
    .content-section {
        padding: 1.1rem;
    }

    .modal-body {
        padding: 1.15rem;
    }

    .modal-header {
        padding: 1rem 1.15rem;
    }

    .notice-banner,
    .disclaimer-banner {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 640px) {
    .auth-page {
        min-height: auto;
        padding: 1.25rem 1rem 3rem;
    }

    .auth-container {
        padding: 1.75rem 1.25rem;
    }

    .admin-tab-btn {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 1.25rem;
    }

    .stats-grid {
        gap: 1rem;
    }

    .stat-card {
        padding: 1.1rem;
        gap: 1rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .card:has(.data-table) {
        overflow-x: auto;
    }

    .data-table {
        min-width: 640px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-sb-toggle {
        width: 36px;
        height: 36px;
    }

    .logo span {
        display: none;
    }

    .site-logo-img {
        max-height: 30px;
        max-width: 150px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .user-balance {
        display: none;
    }

    .nav-link {
        padding: 0.45rem 0.5rem;
        font-size: 0.9rem;
    }

    .balance-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .plans-admin-grid {
        grid-template-columns: 1fr;
    }

    .plans-grid,
    .my-bots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .plan-card,
    .bot-card,
    .my-bot-card,
    .plan-admin-card {
        padding: 1.1rem;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .wa-chat-btn {
        width: 50px;
        height: 50px;
        right: 0.9rem;
        bottom: 0.9rem;
    }

    .impersonate-banner span {
        font-size: 0.78rem;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .header-left {
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.4rem 0.42rem;
    }

    .modal-overlay {
        padding: 0.6rem;
    }
}




