:root {
    --primary: #10b981;
    --primary-dark: #0d9668;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --danger: #ef4444;
    --pending: #f59e0b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
}

.wrapper {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    padding-bottom: 90px;
    position: relative;
}

.topbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar .brand {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header {
    padding: 20px;
}
.page-header h1 { margin: 0 0 4px; font-size: 24px; }
.page-header p { margin: 0; color: var(--text-muted); }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin: 0 20px 16px;
}

.auth-shell {
    max-width: 430px;
    margin: 40px auto;
    padding: 0 20px;
}
.auth-logo {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 22px; margin: 0 auto 16px;
}
.auth-shell h2 { text-align: center; margin: 0; }
.auth-shell .sub { text-align: center; color: var(--text-muted); margin: 4px 0 24px; }

label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type=text], input[type=tel], input[type=password], input[type=number] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 16px;
    background: #fff;
}
input:focus { outline: 2px solid var(--primary); border-color: transparent; }

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.btn:hover { background: var(--primary-dark); }
.btn.secondary {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
}
.btn.danger { background: var(--danger); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}
.alert.error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.link-row { text-align: center; margin-top: 16px; font-size: 14px; }
.link-row a { color: var(--primary); text-decoration: none; font-weight: 600; }

.bottom-nav {
    position: fixed;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 430px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}
.bottom-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.bottom-nav a.active { color: var(--primary); font-weight: 600; }

.status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.status-pending { background: #fef3c7; color: var(--pending); }
.status-success { background: #d1fae5; color: var(--primary-dark); }
.status-rejected { background: #fee2e2; color: var(--danger); }
