:root {
    color-scheme: light;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f4f6fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --tint-success: #dcfce7;
    --tint-danger: #fee2e2;
    --tint-warning: #fef3c7;
    --overlay: rgba(17, 24, 39, 0.45);
    --header-bg: var(--primary);
    --header-fg: #ffffff;
    --bottomnav-bg: var(--card);
    --bottomnav-fg: var(--muted);
    --booking-day-color: var(--danger);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --primary: #4f8dff;
        --primary-dark: #7dabff;
        --bg: #0f1520;
        --card: #1a2233;
        --text: #e7eaf0;
        --muted: #97a1b3;
        --border: #2c3547;
        --success: #4ade80;
        --danger: #f87171;
        --warning: #fbbf24;
        --tint-success: #133823;
        --tint-danger: #3a1c1c;
        --tint-warning: #3a2c10;
        --overlay: rgba(0, 0, 0, 0.6);
        --header-bg: var(--primary);
        --header-fg: #ffffff;
        --bottomnav-bg: var(--card);
        --bottomnav-fg: var(--muted);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --primary: #4f8dff;
    --primary-dark: #7dabff;
    --bg: #0f1520;
    --card: #1a2233;
    --text: #e7eaf0;
    --muted: #97a1b3;
    --border: #2c3547;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #fbbf24;
    --tint-success: #133823;
    --tint-danger: #3a1c1c;
    --tint-warning: #3a2c10;
    --overlay: rgba(0, 0, 0, 0.6);
    --header-bg: var(--primary);
    --header-fg: #ffffff;
    --bottomnav-bg: var(--card);
    --bottomnav-fg: var(--muted);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    padding-bottom: 72px;
    min-height: 100vh;
}

/* Pages with .chat-input-bar stack a second fixed bar on top of .bottom-nav
   — the default 72px (sized for .bottom-nav alone) isn't enough to keep the
   last message(s) from sitting underneath it, and no amount of scrolling can
   reveal content hidden behind a fixed element. */
body.has-chat-input {
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

a { color: var(--primary); text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    color: var(--header-fg);
    padding: 16px 20px;
    /* iOS standalone PWAs draw the status bar (clock/battery/signal) directly
       over the page with no reserved space of their own (unlike Android,
       which reserves it automatically) — env(safe-area-inset-top) is 0 on
       Android/desktop, so this only pushes content down on iOS. */
    padding-top: calc(16px + env(safe-area-inset-top));
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar a { color: var(--header-fg); }

.topbar-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-toggle-btn {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: color-mix(in srgb, var(--header-fg) 16%, transparent);
    color: var(--header-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 12px;
    padding: 0;
}

.theme-toggle-btn svg { width: 17px; height: 17px; }
.theme-toggle-btn .icon-moon { display: none; }
.theme-toggle-btn.is-dark .icon-sun { display: none; }
.theme-toggle-btn.is-dark .icon-moon { display: block; }

.business-topbar {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    border: none;
    background: color-mix(in srgb, var(--header-fg) 14%, transparent);
    color: inherit;
    padding: 6px 12px 6px 8px;
    margin: -6px 0;
    border-radius: 999px;
    cursor: pointer;
    justify-content: flex-start;
    gap: 8px;
    font: inherit;
}

.business-topbar-chevron {
    flex: none;
    width: 14px;
    height: 14px;
    opacity: 0.75;
}

.business-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    flex: none;
}

.business-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.business-topbar-name {
    font-size: 17px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 30;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
}

.sheet-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.sheet {
    background: var(--card);
    width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 10px 20px 24px;
    transform: translateY(16px);
    transition: transform 0.2s ease;
}

.sheet-overlay.open .sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: var(--border);
    margin: 6px auto 14px;
}

.sheet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 14.5px;
}

.sheet-row:last-of-type { border-bottom: none; }
.sheet-row-icon { font-size: 18px; flex: none; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 4px;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.social-icon-btn svg { width: 18px; height: 18px; }

.sheet-hours summary { list-style: none; }
.sheet-hours summary::-webkit-details-marker { display: none; }
.sheet-hours summary::after { content: '▾'; margin-left: auto; color: var(--muted); }
.sheet-hours[open] summary::after { content: '▴'; }

.container {
    padding: 16px;
    max-width: 560px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.search-box { position: relative; }
.search-box .input { padding-right: 44px; }

.search-box-btn {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    border: none;
    background: none;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.search-box-btn svg { width: 19px; height: 19px; }

.account-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--primary);
}

.account-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-link-icon svg { width: 22px; height: 22px; }

.account-link-label {
    font-size: 11.5px;
    font-weight: 600;
}

.discount-badge {
    text-align: center;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #818cf8, #6366f1);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.signup-cta {
    display: block;
    text-align: center;
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    color: #fff;
    text-decoration: none;
}

.signup-cta-title { font-size: 16px; font-weight: 700; }
.signup-cta-sub { font-size: 12.5px; opacity: 0.92; margin-top: 3px; }

.signup-cta-btn {
    display: inline-block;
    margin-top: 12px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 22px;
    border-radius: 999px;
}

.reward-badge {
    text-align: center;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.review-cta {
    display: block;
    text-align: center;
    border-radius: 14px;
    padding: 20px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    color: #fff;
    text-decoration: none;
}

.review-cta-stars {
    font-size: 20px;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}

.review-cta-title {
    font-size: 16px;
    font-weight: 700;
}

.review-cta-sub {
    font-size: 12.5px;
    opacity: 0.92;
    margin-top: 3px;
}

.review-cta-btn {
    display: inline-block;
    margin-top: 12px;
    background: #fff;
    color: #b45309;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 22px;
    border-radius: 999px;
}

/* Gift card — fixed dark/gold colors on purpose (like .review-cta above),
   so it reads the same regardless of the app's light/dark theme setting. */
.gift-card {
    position: relative;
    border-radius: 18px;
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, #1a1730 0%, #241d3d 55%, #171326 100%);
    box-shadow: 0 14px 30px -14px rgba(20, 10, 40, 0.65);
    border: 1px solid rgba(229, 196, 110, 0.25);
}
.gift-card::before {
    content: "";
    position: absolute;
    inset: -40% -20% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(229, 196, 110, 0.22), transparent 70%);
}
.gift-card-eyebrow {
    position: relative;
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #e8c66e;
    opacity: 0.9;
    margin-bottom: 10px;
}
.gift-card-message {
    position: relative;
    font-size: 13px;
    line-height: 1.5;
    color: #e9e4f2;
    margin-bottom: 16px;
    max-width: 92%;
}
.gift-card-amount {
    position: relative;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 14px;
    background: linear-gradient(100deg, #f4e2a1, #d9ae53 45%, #f6e6ad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.gift-card-bar {
    position: relative;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.25);
    margin-bottom: 12px;
    overflow: hidden;
}
.gift-card-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #d9ae53, #f6e6ad);
}
.gift-card-foot {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.gift-card-remaining .label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 3px; }
.gift-card-remaining .value { font-weight: 800; font-size: 18px; color: #f6e6ad; }
.gift-card-expiry { font-size: 11px; opacity: 0.85; text-align: right; }

.progress-track {
    background: var(--border);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.3s ease;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bottomnav-bg);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 10px 4px 8px;
    font-size: 11px;
    color: var(--bottomnav-fg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bottom-nav a.active { color: var(--primary); font-weight: 600; }
.bottom-nav svg { width: 22px; height: 22px; }

.nav-icon-wrap { position: relative; display: inline-flex; }
.nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn:active { background: var(--primary-dark); }
.btn.secondary { background: var(--border); color: var(--text); }
.btn.secondary.active { background: var(--primary); color: #fff; }
.btn.danger { background: var(--danger); }
.btn.block { display: block; width: 100%; }

.input, select.input, textarea.input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
    margin-bottom: 12px;
}

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

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 40px 20px;
}

.feed-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.feed-item:last-child { border-bottom: none; }
.feed-time { color: var(--muted); font-size: 12px; white-space: nowrap; }

.scroll-box { max-height: 320px; overflow-y: auto; }

.service-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.service-item:last-child { border-bottom: none; }
.service-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--border); }
.service-item .name { font-weight: 600; }
.service-item .meta { color: var(--muted); font-size: 13px; }

.service-share-btn {
    flex: none;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
}
.service-share-btn svg { width: 20px; height: 20px; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge.pending { background: var(--tint-warning); color: var(--warning); }
.badge.confirmed { background: var(--tint-success); color: var(--success); }
.badge.cancelled { background: var(--tint-danger); color: var(--danger); }

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.slot {
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    background: var(--card);
    cursor: pointer;
}

.slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.slot.day { grid-template-columns: none; }

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-nav {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.cal-nav:disabled { opacity: 0.35; cursor: default; }

.cal-weekdays, .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.cal-weekdays { font-size: 11px; color: var(--muted); margin-bottom: 6px; }

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    background: transparent;
}

.cal-day.available { background: var(--card); border: 1px solid var(--border); cursor: pointer; }
.cal-day.available:hover { border-color: var(--primary); }
.cal-day.disabled { color: var(--muted); opacity: 0.4; }
.cal-day.disabled.blocked { cursor: pointer; text-decoration: line-through; }

/* Admin bookings calendar: every day is clickable (to review that day),
   regardless of the customer-facing "available slots" concept above. */
.cal-day.admin-day { position: relative; background: var(--card); border: 1px solid var(--border); cursor: pointer; }
.cal-day.admin-day:hover { border-color: var(--primary); }
.cal-day.admin-day.has-booking::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--booking-day-color);
}
.cal-day.admin-day.selected.has-booking::after { background: #fff; }

.day-booking-list { max-height: 340px; overflow-y: auto; margin-top: 10px; }

.day-booking-row {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.day-booking-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
}

.day-booking-row-detail { display: none; padding: 0 12px 12px; border-top: 1px solid var(--border); }
.day-booking-row.expanded .day-booking-row-detail { display: block; padding-top: 10px; }

.fulfillment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.fulfillment-option .icon { font-size: 20px; flex: none; }
.fulfillment-option.selected { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }

.fulfillment-suboptions { display: flex; gap: 8px; margin: 10px 0; }

.fulfillment-suboption {
    flex: 1;
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    background: var(--card);
    cursor: pointer;
}

.fulfillment-suboption.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 12px;
}

.bubble {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.35;
}

.bubble.customer { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.bubble.admin { align-self: flex-start; background: var(--border); color: var(--text); border-bottom-left-radius: 4px; }

.typing-dots { display: flex; align-items: center; gap: 4px; padding: 4px 2px; }
.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .5;
    animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .typing-dots span { animation: none; opacity: .8; }
}

.chat-img { max-width: 200px; max-height: 220px; border-radius: 10px; display: block; cursor: pointer; }
.chat-file {
    display: flex;
    align-items: center;
    gap: 6px;
    background: color-mix(in srgb, currentColor 12%, transparent);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 13.5px;
    font-weight: 600;
}

.chat-attach-btn {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chat-attach-btn svg { width: 19px; height: 19px; }
.chat-attach-btn.recording { background: var(--danger); color: #fff; }

.post-card { padding: 0; overflow: hidden; }
.post-image { width: 100%; max-height: 340px; object-fit: cover; display: block; background: var(--border); }
.post-title { font-weight: 700; font-size: 16px; padding: 14px 16px 0; margin: 0; }
.post-body { font-size: 14.5px; line-height: 1.5; margin: 8px 0 0; padding: 0 16px; white-space: pre-wrap; }

.post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 16px 16px;
    margin-top: 10px;
}

.post-like-btn, .post-share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.post-like-btn svg, .post-share-btn svg { width: 21px; height: 21px; }
.post-like-btn.liked { color: var(--danger); }

.chat-input-bar {
    position: fixed;
    /* .bottom-nav gets taller on iOS (padding-bottom: env(safe-area-inset-bottom)
       for the home indicator) — this must clear that same extra height, or it
       sinks partway under the nav. env() is 0 on Android/desktop, so this is
       still exactly 62px there. */
    bottom: calc(62px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 8px 10px;
    display: flex;
    gap: 8px;
}

.chat-input-bar input {
    flex: 1;
    margin-bottom: 0;
}

.qr-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
}

.section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 700;
    margin: 4px 0 10px;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-row:last-child { border-bottom: none; }
.list-row .name { font-weight: 600; }
.list-row .sub { color: var(--muted); font-size: 13px; }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 8px;
    padding: 6px 2px;
}

.settings-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--text);
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

.settings-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.settings-tile-label {
    font-size: 11.5px;
    text-align: center;
    line-height: 1.25;
    font-weight: 500;
}

.punch-picker {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.punch-picker button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

#qr-reader { width: 100%; border-radius: 12px; overflow: hidden; }

.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.toast.show { opacity: 1; }

.notif-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notif-modal {
    background: var(--card);
    border-radius: 16px;
    padding: 24px 20px;
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.notif-modal-icon { font-size: 38px; margin-bottom: 8px; }
.notif-modal h3 { margin: 0 0 8px; font-size: 17px; }
.notif-modal p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
