:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --highlight: #e94560;
    --text-light: #ffffff;
    --text-muted: rgba(255,255,255,0.6);
    --input-bg: rgba(255,255,255,0.05);
    --input-border: rgba(255,255,255,0.1);
    --card-bg: #16213e;
}

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

body {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
}

/* Navbar */
.navbar-brand span {
    color: var(--highlight);
}

.nw-navbar {
    background-color: var(--secondary);
    border-bottom: 1px solid var(--input-border);
    padding: 16px 0;
}

/* Auth Card */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.auth-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--input-border);
}

.auth-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

.auth-logo span {
    color: var(--highlight);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

/* Steps indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--input-border);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s;
}

.step.active .step-circle {
    background-color: var(--highlight);
    border-color: var(--highlight);
    color: white;
}

.step.done .step-circle {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.step-label {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.step.active .step-label {
    color: var(--highlight);
}

.step-line {
    flex: 1;
    height: 2px;
    background-color: var(--input-border);
    margin: 0 8px;
    margin-bottom: 20px;
    max-width: 60px;
}

/* Form */
.form-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-light);
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s;
}

.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--highlight);
    color: var(--text-light);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
    outline: none;
}

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

/* Button */
.btn-primary {
    background-color: var(--highlight);
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    transition: all 0.2s;
    color: white;
}

.btn-primary:hover {
    background-color: #c73652;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* OTP input */
.otp-input {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 12px;
    font-family: 'Courier New', monospace;
}

/* Alert */
.alert-custom {
    border-radius: 8px;
    font-size: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: none;
}

.alert-error {
    background-color: rgba(233,69,96,0.15);
    border: 1px solid rgba(233,69,96,0.3);
    color: #ff6b84;
}

.alert-success {
    background-color: rgba(40,167,69,0.15);
    border: 1px solid rgba(40,167,69,0.3);
    color: #5cb85c;
}

/* Links */
.auth-link {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: #c73652;
    text-decoration: underline;
}

/* Spinner */
.spinner-border-sm {
    width: 16px;
    height: 16px;
}

/* Password toggle */
.input-group .form-control {
    border-right: none;
}

.input-group .btn-outline-secondary {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-left: none;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

.input-group .btn-outline-secondary:hover {
    background: var(--input-border);
    color: white;
}

.resend-link {
    background: none;
    border: none;
    color: var(--highlight);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.resend-link:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Mobile Bottom Nav */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--secondary);
    border-top: 1px solid var(--input-border);
    padding: 8px 0;
    z-index: 200;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-item i { font-size: 20px; }

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

.mobile-nav-item:hover { color: white; }

@media (max-width: 768px) {
    .sidebar     { display: none !important; }
    .mobile-nav  { display: block; }
    .main-content {
        margin-left: 0 !important;
        padding: 16px 16px 80px !important;
    }
    .wallet-balance  { font-size: 30px !important; }
    .quick-actions   { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-row       { grid-template-columns: 1fr !important; }
    .auth-card       { padding: 32px 20px !important; }
    .hero-title      { font-size: 36px !important; }
    .hero-title { font-size: 36px !important; }
    .hero-sub   { font-size: 15px !important; }
    .hero-btns  { flex-direction: column; }
    .btn-hero-primary,
    .btn-hero-secondary { text-align: center; }
}