:root {
    --primary: #0a1628;
    --primary-light: #1a2d4a;
    --primary-dark: #060d18;
    --accent: #c9a961;
    --accent-light: #ddc07a;
    --accent-dark: #b8923e;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-muted: #718096;
    --text-light: #a0aec0;
    --border: #e2e8f0;
    --shadow: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--accent-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
    background: var(--primary-dark);
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-light);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: var(--text-light); }
.header-top a:hover { color: #fff; }
.header-top-right { display: flex; align-items: center; gap: 14px; }
.header-top-right .welcome-label { color: var(--text-light); opacity: 0.75; font-size: 13px; }
.header-top-right .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; padding: 4px 14px; font-size: 12px; }
.header-top-right .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.header-top-right .btn-primary { padding: 4px 14px; font-size: 12px; }

.header-main { padding: 14px 0; }
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.header-nav a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header-nav a.active { color: #fff; background: rgba(255,255,255,0.14); }
.header-nav .btn-nav {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary) !important;
    font-weight: 600;
    padding: 9px 20px;
    margin-left: 10px;
}
.header-nav .btn-nav:hover { background: var(--accent-light); color: var(--primary) !important; }
.header-nav .nav-auth { display: flex; align-items: center; gap: 2px; margin-left: 8px; position: relative; }
.nav-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    padding: 0 5px;
    margin-left: 4px;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    vertical-align: middle;
}

.nav-dropdown { position: relative; }
.nav-dropdown.active > a { color: #fff; background: rgba(255,255,255,0.14); }
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    z-index: 1001;
    margin-top: 5px;
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.nav-dropdown-content a {
    color: var(--text) !important;
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    border-radius: 0;
}
.nav-dropdown-content a:hover { background: var(--bg); color: var(--primary) !important; }
.nav-dropdown > a::after {
    content: ' \25BE';
    font-size: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a5c 50%, var(--primary-light) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201,169,97,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,169,97,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
}
.hero h1 span { color: var(--accent); }
.hero p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin-bottom: 35px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.tabs-container {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 6px;
    display: inline-flex;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}
.tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius);
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--accent);
    color: var(--primary);
}
.tab-btn:hover:not(.active) { color: #fff; }

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: var(--primary);
}
.btn-primary:hover { background: var(--accent-light); color: var(--primary); transform: translateY(-1px); }
.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: #fff; color: #fff; }
.btn-dark {
    background: var(--primary);
    color: #fff;
}
.btn-dark:hover { background: var(--primary-light); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a38; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c82333; color: #fff; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: block; width: 100%; }

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.card-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    transition: var(--transition);
    background: #fff;
    color: var(--text);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,97,0.15);
}
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
}
.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.stat-card .stat-change {
    font-size: 13px;
    margin-top: 8px;
}

.section { padding: 60px 0; }
.section-alt { background: #eef2f7; }

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    counter-reset: step;
}
.process-step {
    text-align: center;
    padding: 20px;
    position: relative;
}
.process-step::before {
    counter-increment: step;
    content: counter(step);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin: 0 auto 16px;
}
.process-step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary);
}
.process-step p {
    font-size: 13px;
    color: var(--text-muted);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.category-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
}
.category-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.trust-bar {
    background: var(--primary);
    color: #fff;
    padding: 40px 0;
}
.trust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.trust-stat .number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 6px;
}
.trust-stat .label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
th {
    background: var(--bg);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}
tr:hover td { background: #f8f9fb; }

.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}
.footer a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer a:hover { color: var(--accent); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--border);
}
.auth-card h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}
.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}
.auth-card .divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.auth-card .divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border);
}
.auth-card .divider span {
    background: #fff;
    padding: 0 16px;
    position: relative;
    color: var(--text-muted);
    font-size: 14px;
}

.transaction-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px 0;
}
.transaction-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}
.transaction-header p { color: rgba(255,255,255,0.7); }

.breadcrumb {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb .sep { color: var(--text-light); }

.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .time { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.timeline-item .action { font-weight: 600; font-size: 14px; }
.timeline-item .details { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
}

.fee-calculator {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.fee-result {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}
.fee-result .amount {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
}
.fee-result .label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .process-steps { grid-template-columns: 1fr; }
    .trust-stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .mobile-toggle { display: block; }
    .header-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 20px;
        box-shadow: var(--shadow-lg);
    }
    .header-nav.open .nav-auth {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        margin-top: 4px;
    }
    .header-nav.open .nav-auth a { text-align: center; }
    .header-nav.open .btn-nav { margin-left: 0; margin-top: 8px; }
    .nav-dropdown-content { position: static; box-shadow: none; }
}
