:root {
    --primary: #FFC107;
    --primary-dark: #FFA000;
    --bg: #fafafa;
    --surface: #fff;
    --text: #1a1a1a;
    --muted: #6b6b6b;
    --border: #e2e2e2;
    --danger: #d32f2f;
    --success: #2e7d32;
    --shadow: 0 1px 3px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Segoe UI", "Tahoma", system-ui, sans-serif; }

#app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--surface); }

header {
    padding: 12px 16px;
    background: #242f36;
    color: #fff;
    font-weight: 700;
    font-size: 1.1em;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
header .brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
header .brand-logo { height: 36px; width: auto; display: block; flex-shrink: 0; }
header .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--primary); }
header .lang select { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); padding: 4px 8px; border-radius: 4px; font-size: .9em; }
header .lang select option { color: #1a1a1a; }

main { padding: 16px; }

h1 { margin: 0 0 12px; font-size: 1.4em; }
h2 { margin: 16px 0 8px; font-size: 1.1em; }
p { line-height: 1.5; margin: 8px 0; }
.muted { color: var(--muted); font-size: .9em; }

label { display: block; margin: 12px 0 4px; font-weight: 600; font-size: .9em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1em;
    background: var(--surface);
    color: var(--text);
}
textarea { min-height: 60px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }

button, .btn {
    display: inline-block;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1em;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    margin-top: 12px;
}
button:hover, .btn:hover { background: var(--primary-dark); }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
button.danger { background: var(--danger); color: #fff; }
button:disabled { opacity: .5; cursor: not-allowed; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
    box-shadow: var(--shadow);
}
.card-row { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--border); display: inline-block; flex-shrink: 0;
    object-fit: cover;
}
.driver-meta { flex: 1; }
.driver-meta strong { display: block; }
.driver-meta .meta-line { font-size: .85em; color: var(--muted); margin-top: 2px; }
.driver-meta .meta-line.plate {
    font-size: 1em; color: var(--fg); font-weight: 600;
    letter-spacing: .04em; margin-top: 6px;
}
.tag { display: inline-block; padding: 2px 6px; background: var(--border); border-radius: 4px; font-size: .75em; margin-right: 4px; }
[dir="rtl"] .tag { margin-right: 0; margin-left: 4px; }

.lang-match { background: #fff3cd; border-color: #ffe39d; }

#map { height: 300px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--border); }

.disclaimer {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 6px;
    padding: 12px;
    font-size: .85em;
    line-height: 1.5;
    margin: 12px 0;
}

.error { color: var(--danger); margin: 8px 0; font-size: .9em; }
.success { color: var(--success); margin: 8px 0; font-size: .9em; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { display: inline; margin: 0; font-weight: 400; font-size: .9em; }
.consent-note { color: var(--muted); font-size: .9em; }

.notifications { display: grid; gap: 8px; margin: 0 0 12px; }
.notification {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid #ffe082;
    border-radius: 6px;
    background: #fff8e1;
}
.notification-body strong { display: block; font-size: .95em; }
.notification-body p { margin: 4px 0 0; font-size: .9em; }
.notification button { margin-top: 0; }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); }

.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tabs button {
    flex: 1; background: transparent; color: var(--muted); border: none;
    border-bottom: 3px solid transparent; padding: 12px; margin: 0; border-radius: 0; font-weight: 600;
}
.tabs button.active { color: var(--text); border-bottom-color: var(--primary); }

.row-actions { display: flex; gap: 8px; margin-top: 8px; }
.row-actions button { flex: 1; margin: 0; }

.stars { color: #f59e0b; }

@media (max-width: 480px) {
    main { padding: 12px; }
}
