:root {
    --bg:        #121212; /* Clean Charcoal Black */
    --surface:   #1e1e1e; /* Material-style dark grey surfaces */
    --surface2:  #2d2d2d;
    --border:    #333333;
    --accent:    #1282a2; /* Brand Blue */
    --accent-2:  #f8e42f; /* Brand Yellow */
    --text:      #ffffff;
    --muted:     #a0a0a0;
    --success:   #2ecc71;
    --error:     #e74c3c;
    --radius:    12px;
    --shadow:    0 10px 40px rgba(0,0,0,0.5);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    line-height: 1.6;
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Brand / Header */
.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.75rem;
}
.brand-icon {
    width: 64px; height: 64px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.brand-icon img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: .35rem; }
.subtitle { color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; line-height: 1.5; }

/* Form Elements */
label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .45rem;
}

input[type="tel"],
input[type="text"] {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    padding: .8rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    letter-spacing: .05em;
}
input[type="tel"]:focus,
input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(108,99,255,.2);
}

.input-group { margin-bottom: 1.25rem; }

/* OTP Input */
.otp-input {
    font-size: 1.6rem !important;
    text-align: center;
    letter-spacing: .5em !important;
    font-weight: 700;
}

/* Submit Button */
.btn {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: .5rem;
    transition: opacity .2s, transform .15s, background .2s;
    letter-spacing: .02em;
}
.btn:hover  { opacity: .9; transform: translateY(-1px); background: #1a92b5; }
.btn:active { transform: translateY(0); }

/* Alerts */
.alert {
    padding: .8rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.alert-error   { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; }

/* Links */
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; opacity: 0.8; }

.footnote { font-size: .8rem; color: var(--muted); margin-top: 1.2rem; text-align: center; }

/* Divider */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

/* Dashboard Specifics */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem;
    text-align: center;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: var(--accent-2); }
.stat-card .stat-label { font-size: .78rem; color: var(--muted); margin-top: .25rem; }

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.badge {
    background: rgba(248, 228, 47, 0.15);
    color: var(--accent-2);
    border-radius: 50px;
    padding: .2rem .75rem;
    font-size: .78rem;
    font-weight: 600;
}

/* Phone display */
.phone-display {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .65rem 1rem;
    font-size: .9rem;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
