@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

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

:root {
    --accent: #2563EB;
    --accent-faint: #EFF6FF;
    --success: #10B981;
    --success-faint: #ECFDF5;
    --error: #EF4444;
    --error-faint: #FEF2F2;
    --warning: #F59E0B;
    --warning-faint: #FFFBEB;

    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;

    --bg: #F3F4F6;
    --card: #FFFFFF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    --gap: 8px;
    --radius-card: 0px;
    --radius-inner: 10px;
    --radius-pill: 999px;

    --font: 'Poppins', sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── OFFLINE BANNER ───────────────────────────────── */
.offline-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--text-primary);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    z-index: 300;
}
.offline-banner.visible { display: block; }

/* ─── AUTH ─────────────────────────────────────────── */
.auth-page {
    min-height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
}

/* Logo mark */
.auth-mark {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.auth-mark svg,
.auth-mark i {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* Heading block */
.auth-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    line-height: 1.15;
    margin-bottom: 6px;
}

.auth-sub {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 36px;
    line-height: 1.5;
}

.auth-brand {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    margin-bottom: 4px;
}

.auth-brand-by {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 16px;
}

.auth-footer {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 32px;
    letter-spacing: 0.3px;
}

/* Form fields */
.auth-body {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* ─── FORM ──────────────────────────────────────────── */
.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
    -webkit-appearance: none;
}

.form-field input:focus {
    border-color: var(--accent);
}

.form-field input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.form-field input[type="number"]::-webkit-inner-spin-button,
.form-field input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* old form-section - kept for dashboard compat */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.error-msg {
    font-size: 13px;
    color: var(--error);
    font-weight: 500;
    display: none;
    padding: 12px 16px;
    background: var(--error-faint);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--error);
}
.error-msg.visible { display: block; }

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: var(--radius-inner);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
    letter-spacing: 0.1px;
}

.btn:active { opacity: 0.75; }

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { opacity: 0.9; }

.btn-primary:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 1;
}

.btn-primary:disabled i { color: var(--text-muted); }

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 1;
}

.btn-success:disabled i { color: var(--text-muted); }

.btn-refresh {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
    height: 36px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-inner);
    width: auto;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.18s;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.btn-refresh i {
    font-size: 13px;
    transition: transform 0.3s ease;
}

.btn-refresh:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-faint);
}

.btn-refresh:active {
    opacity: 0.7;
    transform: scale(0.97);
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 20px;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.reg-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.15s;
}

.reg-back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reg-back:hover { color: var(--accent); }

/* ─── LOADER ────────────────────────────────────────── */
.loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── DASHBOARD ─────────────────────────────────────── */

/* Fixed app bar — sits above everything */
.app-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: var(--card);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    z-index: 200;
    box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,0.04);
}

@media (max-width: 480px) {
    .app-bar { left: 0; transform: none; max-width: 100%; }
}

/* Scrollable page body — padded top for fixed header, bottom for nav */
.page {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 80px;
    background: var(--bg);
    min-height: 100dvh;
}

.app-bar-left {
    display: flex;
    flex-direction: column;
}

.app-bar-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-bar-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.app-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-badge {
    background: var(--accent-faint);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

/* ─── CARD SECTION SYSTEM (Zomato-style) ────────────── */
/* Each "section" is a white card. Sections separated by bg gap */
.section {
    background: var(--card);
    margin-bottom: var(--gap);
}

.section-inner {
    padding: 20px;
}

.section-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0 20px;
}

/* ─── STATUS CARD ───────────────────────────────────── */
.status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.status-left {}

.status-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.status-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.status-main.green { color: var(--success); }
.status-main.blue  { color: var(--accent); }

.status-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.live-time-wrap {
    margin-top: 10px;
    display: none;
}

.live-time-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

.live-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.status-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge i { font-size: 22px; }

.status-badge.neutral { background: var(--border-light); color: var(--text-muted); }
.status-badge.green   { background: var(--success-faint); color: var(--success); }
.status-badge.blue    { background: var(--accent-faint); color: var(--accent); }
.status-badge.blue svg { fill: var(--accent); }

/* ─── LOCATION ROW ──────────────────────────────────── */
.location-row {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.location-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.location-note {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    display: none;
}

.location-note.warn  { color: var(--warning); display: block; }
.location-note.ok    { color: var(--success); display: block; }

.location-coords {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 3px;
    display: none;
    letter-spacing: 0.2px;
}

/* ─── DISTANCE ROW ──────────────────────────────────── */
.distance-row {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.distance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.distance-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.distance-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.zone-pill {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    display: none;
}

.zone-pill.inside {
    background: var(--success-faint);
    color: var(--success);
    display: inline-block;
}

.zone-pill.outside {
    background: var(--error-faint);
    color: var(--error);
    display: inline-block;
}

/* ─── ACTION BUTTON ROW ─────────────────────────────── */
.action-row {
    padding: 16px 20px;
}

.action-btn {
    border-radius: var(--radius-inner);
    height: 56px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ─── MAP ───────────────────────────────────────────── */
.map-wrap {
    background: var(--card);
    margin-bottom: var(--gap);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

#map {
    height: 240px;
    width: 100%;
    display: block;
}

.map-meta {
    padding: 12px 20px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid var(--border-light);
}

.map-meta svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
    flex-shrink: 0;
}

.map-meta strong {
    color: var(--accent);
    font-weight: 600;
}

/* ─── NAV BAR ───────────────────────────────────────── */
.nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 64px;
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 1000;
    box-shadow: 0 -1px 0 var(--border), 0 -4px 20px rgba(0,0,0,0.04);
}

/* Full-width bottom bar for mobile */
@media (max-width: 480px) {
    .nav-bar {
        left: 0;
        transform: none;
        max-width: 100%;
    }
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.15s;
    padding: 8px 0;
}

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

.nav-item:hover { color: var(--text-secondary); }

.nav-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ─── HISTORY PAGE ──────────────────────────────────── */

/* Fixed history header */
.history-top {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 60px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 200;
    box-shadow: 0 1px 0 var(--border), 0 2px 12px rgba(0,0,0,0.04);
}

@media (max-width: 480px) {
    .history-top { left: 0; transform: none; max-width: 100%; }
}

/* Scrollable history body */
.history-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 80px;
    background: var(--bg);
    min-height: 100dvh;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.15s;
}

.back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.history-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.history-heading span { color: var(--accent); }

/* Month selector */
.month-bar {
    background: var(--card);
    margin-bottom: var(--gap);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.month-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.month-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.month-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-secondary);
    font-family: var(--font);
    transition: all 0.15s;
}

.month-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* History list */
.history-list {
    background: var(--card);
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.history-item:last-child { border-bottom: none; }

.history-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.history-times {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.hist-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.hist-badge.completed { background: var(--success-faint); color: var(--success); }
.hist-badge.partial   { background: var(--warning-faint); color: var(--warning); }
.hist-badge.incomplete { background: var(--error-faint);  color: var(--error); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.empty-state svg {
    width: 40px;
    height: 40px;
    fill: var(--border);
}

/* ─── TOAST ─────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--text-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100vw - 40px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.error   { background: var(--error); }
.toast.success { background: var(--success); }

/* ─── FOOTER ────────────────────────────────────────── */
.page-footer {
    text-align: center;
    padding: 16px 20px 8px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ─── LEAFLET OVERRIDES ─────────────────────────────── */
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none !important; }

/* ─── RESPONSIVE: full width mobile ─────────────────── */
@media (max-width: 480px) {
    .page,
    .history-wrap {
        max-width: 100%;
    }

    .section,
    .map-wrap {
        border-radius: 0;
    }

    .history-list {
        border-radius: 0;
    }
}

@media (min-width: 481px) {
    .page,
    .history-wrap {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
    }

    .section {
        border-radius: 0;
    }

    body {
        background: #EAECEF;
    }
}
/* ─── FA ICON SIZES IN NAV ───────────────────────────── */
.nav-icon i {
    font-size: 19px;
    line-height: 1;
}

/* ─── LOGOUT TOP BUTTON ──────────────────────────────── */
.logout-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
}

.logout-top-btn i {
    font-size: 13px;
}

.logout-top-btn:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-faint);
}


/* ─── MONTH BAR: centered layout ─────────────────────── */
.month-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px !important;
    gap: 0;
}

.month-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    flex: 1;
    text-align: center;
}

.month-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: var(--font);
    transition: all 0.15s;
    flex-shrink: 0;
}

.month-btn i { font-size: 13px; }

.month-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-faint);
}

/* ─── HISTORY ITEM REFINEMENTS ───────────────────────── */
.history-item-left {}

.history-times {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 3px;
}

.history-times i {
    font-size: 11px;
    opacity: 0.7;
}

.hist-sep { color: var(--border); }

.hist-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.hist-badge i { font-size: 11px; }


/* ─── BOTTOM NAV PREMIUM ─────────────────────────────── */

.nav-item {
    padding: 10px 0 8px;
    gap: 4px;
    position: relative;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 3px 3px;
}

/* ─── REFRESH BUTTON SPIN ───────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── LOCATION PERMISSION MODAL ─────────────────────── */
.permission-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.permission-modal {
    background: var(--card);
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    padding: 32px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.permission-icon {
    width: 64px;
    height: 64px;
    background: var(--error-faint);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.permission-icon i {
    font-size: 28px;
    color: var(--error);
}

.permission-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.4px;
    text-align: center;
}

.permission-body {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    font-weight: 400;
    max-width: 300px;
}

.permission-steps {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px;
    width: 100%;
    margin: 4px 0;
}

.permission-steps-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.permission-steps ol {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

    .confirm-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-top: 4px;
    }
    .confirm-actions .btn {
        height: 50px;
        border-radius: var(--radius-inner);
        font-size: 15px;
    }
    .permission-steps li {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.permission-steps strong {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-text-muted {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    margin-top: -4px;
    text-underline-offset: 3px;
}
