:root {
    --bg-dark: #0a0e17;
    --card-bg: #131b2e;
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --danger: #ef4444;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 70px;
}

.gold-text {
    font-family: 'Cinzel', serif;
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 30px 20px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    text-align: center;
}

.logo { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); margin-bottom: 12px; }
.subtitle { font-size: 11px; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 24px; }

.form-group { margin-bottom: 16px; text-align: left; }
label { display: block; font-size: 11px; font-weight: 700; color: var(--gold-light); margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }

.password-wrap { position: relative; }
.eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; }

.btn-gold {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
}

.app-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(19, 27, 46, 0.95);
    backdrop-filter: blur(8px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #000; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.user-name { font-size: 14px; font-weight: 700; }
.user-id { font-size: 11px; color: var(--text-muted); }
.header-actions { display: flex; gap: 8px; }
.lang-btn, .logout-btn { background: #1e293b; border: 1px solid var(--border); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #0f172a; border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; padding: 8px 0; z-index: 100;
}
.nav-item { background: none; border: none; color: var(--text-muted); font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.nav-item.active { color: var(--gold); font-weight: 700; }

.content-container { padding: 16px; max-width: 600px; margin: 0 auto; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.readonly-card { border-left: 4px solid var(--gold); }
.info-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.card-title { font-size: 14px; color: var(--gold-light); margin-bottom: 12px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.sticky-btn { position: sticky; bottom: 65px; box-shadow: 0 4px 15px rgba(191, 149, 63, 0.4); }

.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #1e293b; border: 1px solid var(--gold); color: #fff;
    padding: 10px 20px; border-radius: 8px; font-size: 13px; display: none; z-index: 1000;
}