/* ============== GLOBAL STYLES ============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d4af37;
    --primary-light: #f4d03f;
    --primary-dark: #b8960c;
    --secondary: #0d1b2a;
    --secondary-light: #1b3a4b;
    --accent: #27ae60;
    --accent-light: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --border: #1f2937;
    --gradient-primary: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    --gradient-dark: linear-gradient(135deg, #0d1b2a 0%, #1b3a4b 100%);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-gold: 0 4px 20px rgba(212,175,55,0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

/* ============== BUTTONS ============== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--secondary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212,175,55,0.4);
    color: var(--secondary);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
    color: #fff;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 17px;
}

/* ============== NAVBAR ============== */
.navbar {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 5%;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo img {
    height: 70px;
    width: auto;
    max-width: 200px;
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 55px;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
}

/* ============== HERO SECTION ============== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 75px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13,27,42,0.92) 0%, rgba(11,16,38,0.95) 100%), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============== SECTIONS ============== */
.section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 .highlight {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.section-bg-alt {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f1623 50%, var(--bg-dark) 100%);
}

/* ============== CARDS ============== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: rgba(212,175,55,0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* ============== PRICING/PLANS ============== */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.plan-card.featured .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--secondary);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.plan-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.plan-return {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.plan-return span {
    font-size: 16px;
    display: block;
    color: var(--text-muted);
    margin-top: 5px;
    -webkit-text-fill-color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.plan-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-features li i {
    color: var(--accent);
}

.plan-range {
    color: var(--primary);
    font-weight: 600;
    margin: 15px 0;
}

/* ============== FORM STYLES ============== */
.form-container {
    max-width: 500px;
    margin: 100px auto 50px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-container-wide {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-logo {
    text-align: center;
    margin-bottom: 30px;
}

.form-logo img {
    height: 80px;
    margin-bottom: 15px;
}

.form-logo h2 {
    color: var(--primary);
    font-size: 28px;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
    background: rgba(255,255,255,0.08);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.3);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* ============== OTP INPUTS ============== */
.otp-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.otp-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(212,175,55,0.3);
}

/* ============== ALERTS ============== */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert-success {
    background: rgba(39,174,96,0.15);
    color: #2ecc71;
    border: 1px solid rgba(39,174,96,0.3);
}

.alert-error {
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
}

.alert-warning {
    background: rgba(243,156,18,0.15);
    color: #f39c12;
    border: 1px solid rgba(243,156,18,0.3);
}

.alert-info {
    background: rgba(52,152,219,0.15);
    color: #3498db;
    border: 1px solid rgba(52,152,219,0.3);
}

/* ============== DASHBOARD ============== */
.dashboard {
    padding-top: 90px;
    min-height: 100vh;
}

.dashboard-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border);
    padding: 30px 5%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 75px);
}

.sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 30px 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 25px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(212,175,55,0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.sidebar-menu li a i {
    width: 20px;
    text-align: center;
}

.main-content {
    padding: 30px;
    overflow-y: auto;
}

/* Balance Cards */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.balance-card.primary {
    background: var(--gradient-dark);
    border-color: var(--primary);
}

.balance-card.primary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
}

.balance-card h4 {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.balance-card .amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-light);
}

.balance-card.primary .amount {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============== TABLES ============== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.data-table th {
    background: rgba(212,175,55,0.1);
    color: var(--primary);
    font-weight: 600;
    text-align: left;
    padding: 14px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
}

.data-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.status-badge {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background: rgba(39,174,96,0.2);
    color: #2ecc71;
}

.status-pending {
    background: rgba(243,156,18,0.2);
    color: #f39c12;
}

.status-rejected {
    background: rgba(231,76,60,0.2);
    color: #e74c3c;
}

.status-approved {
    background: rgba(39,174,96,0.2);
    color: #2ecc71;
}

/* ============== HOW IT WORKS ============== */
.steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 30px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-gold);
}

.step h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.step p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ============== FOOTER ============== */
.footer {
    background: var(--secondary);
    border-top: 1px solid var(--border);
    padding: 60px 5% 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-about img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(212,175,55,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ============== ANIMATIONS ============== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 16px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .section { padding: 60px 5%; }
    .section-header h2 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .plan-card.featured { transform: scale(1); }
    .plan-card.featured:hover { transform: scale(1) translateY(-10px); }
    .steps { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
    .form-container,
    .form-container-wide {
        margin: 80px 15px 30px;
        padding: 25px;
    }
    .hero h1 { font-size: 28px; }
    .btn-lg { padding: 14px 32px; font-size: 15px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
}

/* ============== UTILITY ============== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.w-full { width: 100%; }
.hidden { display: none; }

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212,175,55,0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* KYC Upload */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-zone:hover {
    border-color: var(--primary);
    background: rgba(212,175,55,0.05);
}

.upload-zone i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Progress bar */
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Nav dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 100;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(212,175,55,0.1);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 5px 0;
}
