/* ── Deep Space Theme — Habit Tracker Mini App ─────────────────────────────── */
:root {
    --bg: #1a1d23;
    --surface: #2f3640;
    --surface-2: #3d4451;
    --surface-3: #4a5260;
    --text: #f5f6fa;
    --text-secondary: #9ca3b0;
    --text-muted: #6b7280;
    --accent: #8c7ae6;
    --accent-light: #a29bfe;
    --accent-soft: rgba(140, 122, 230, 0.15);
    --accent-glow: rgba(140, 122, 230, 0.3);
    --success: #00d2d3;
    --success-soft: rgba(0, 210, 211, 0.12);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, 0.12);
    --warning: #feca57;
    --warning-soft: rgba(254, 202, 87, 0.12);
    --border: rgba(255, 255, 255, 0.06);
    --gradient-1: linear-gradient(135deg, #8c7ae6 0%, #a29bfe 100%);
    --gradient-2: linear-gradient(135deg, #2f3640 0%, #3d4451 100%);
    --gradient-card: linear-gradient(145deg, rgba(140, 122, 230, 0.08), rgba(162, 155, 254, 0.03));
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 4px 24px rgba(140, 122, 230, 0.15);

    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --nav-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, 'SF Pro Display', BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 34px) + 20px);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Bottom Navigation ────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 29, 35, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    padding: 0 12px;
    padding-bottom: env(safe-area-inset-bottom, 34px);
    border-top: 1px solid var(--border);
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 18px;
    transition: all 0.25s ease;
    position: relative;
}
.nav-btn:active { transform: scale(0.88); }
.nav-btn.active { color: var(--accent-light); }
.nav-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
}

.nav-svg { width: 22px; height: 22px; }
.nav-label { letter-spacing: 0.3px; text-transform: uppercase; font-size: 9px; }

.nav-profile-btn {
    padding: 10px 14px;
    margin-left: 4px;
}
.nav-profile-btn::before { display: none !important; }

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 2px 12px rgba(140, 122, 230, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-btn.active .nav-avatar {
    box-shadow: 0 2px 18px rgba(140, 122, 230, 0.55);
    transform: scale(1.08);
}

/* ── Screens ──────────────────────────────────────────────────────────────── */
.screen {
    display: none;
    padding: 8px 16px 16px;
    animation: fadeIn 0.3s ease;
}
.screen.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.screen-header { margin-bottom: 20px; }
.screen-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* ── Progress Card ────────────────────────────────────────────────────────── */
.progress-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}
.progress-info .done-count {
    font-weight: 800;
    color: var(--text);
}
.progress-bar {
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.complete {
    background: linear-gradient(135deg, var(--success), #55efc4);
}

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}
.card:active {
    transform: scale(0.98);
    background: var(--surface-2);
}
.card.done { opacity: 0.45; }

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.card-icon.pending { background: var(--accent-soft); }
.card-icon.done { background: var(--success-soft); }
.card-icon.missed { background: var(--danger-soft); }

.card-body { flex: 1; min-width: 0; }
.card-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.check-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--surface-3);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.check-btn:active { transform: scale(0.8); }
.check-btn.checked {
    border-color: var(--success);
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 210, 211, 0.3);
}
.check-btn.missed-btn {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text);
}
.btn:active { transform: scale(0.96); }

.btn-accent {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: var(--shadow-glow);
}
.btn-accent:active {
    box-shadow: 0 2px 8px rgba(140, 122, 230, 0.2);
}

.btn-danger-fill {
    background: var(--danger-soft);
    color: var(--danger);
}
.btn-ghost {
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.btn-full {
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
}

.btn-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-option {
    flex: 1;
    min-width: 0;
    padding: 11px 8px;
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    border: 2px solid transparent;
    transition: all 0.2s;
}
.btn-option.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-light);
}

/* ── Modal ────────────────────────────────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalBgIn 0.2s ease;
}
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 20px calc(36px + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    animation: slideUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 1;
}
.modal-sm { max-height: 50vh; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal-handle {
    width: 36px;
    height: 4px;
    background: var(--surface-3);
    border-radius: 2px;
    margin: 0 auto 16px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-close {
    background: var(--surface-2);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}
.input-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    display: block;
}

/* ── Weekdays ─────────────────────────────────────────────────────────────── */
.weekdays { display: flex; gap: 6px; }
.weekday-btn {
    flex: 1;
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.weekday-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(140, 122, 230, 0.3);
}

/* ── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
}

/* ── Section Title & Divider ──────────────────────────────────────────────── */
.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0 16px;
}

.diary-inline {
    margin-top: 16px;
}

.diary-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.diary-chip {
    flex: 1;
    padding: 14px 8px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}
.diary-chip:active { transform: scale(0.95); }
.diary-chip .chip-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}
.diary-chip.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent-light);
    box-shadow: 0 2px 12px rgba(140, 122, 230, 0.15);
}

.diary-note-input {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    resize: none;
    min-height: 60px;
    transition: all 0.2s;
}
.diary-note-input::placeholder { color: var(--text-muted); }
.diary-note-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.diary-saved-msg {
    text-align: center;
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}
.diary-saved-msg.show { opacity: 1; }

/* ── Stats ────────────────────────────────────────────────────────────────── */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 8px;
    box-shadow: var(--shadow-card);
}
.stat-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
.stat-row + .stat-row { border-top: 1px solid var(--border); }
.stat-label { font-size: 14px; color: var(--text-secondary); }
.stat-value { font-size: 20px; font-weight: 800; }
.stat-value.streak { color: var(--warning); }
.stat-value.rate { color: var(--accent-light); }

/* ── Profile ──────────────────────────────────────────────────────────────── */
.profile-header-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
.profile-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    pointer-events: none;
}

.profile-avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
}
.profile-info { position: relative; z-index: 1; }
.profile-name {
    font-size: 20px;
    font-weight: 800;
}
.profile-username {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.profile-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 10px;
    background: var(--accent-soft);
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.profile-stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.profile-stat-value {
    font-size: 26px;
    font-weight: 800;
}
.profile-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
}

.profile-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.profile-menu-item:active { background: var(--surface-2); }
.profile-menu-item + .profile-menu-item { border-top: 1px solid var(--border); }
.profile-menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.profile-menu-text {
    font-size: 15px;
    font-weight: 600;
}
.profile-menu-arrow {
    color: var(--text-muted);
    font-size: 18px;
    font-weight: 300;
}

/* ── Habit Actions ────────────────────────────────────────────────────────── */
.habit-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.card-inactive { opacity: 0.35; }

/* ── Toast ────────────────────────────────────────────────────────────────── */
.toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--surface-2);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 300;
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Accordion ────────────────────────────────────────────────────────────── */
.accordion {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.accordion-header:active { background: var(--surface-2); }
.accordion-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.accordion-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.accordion-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.accordion-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.accordion-chevron {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    max-width: 20px;
    min-height: 20px;
    max-height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.accordion-chevron.open { transform: rotate(180deg); }
.accordion-body {
    padding: 0 16px 16px;
    animation: accordionIn 0.25s ease;
}
@keyframes accordionIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 2000px; }
}

/* ── Catalog ─────────────────────────────────────────────────────────────── */
.catalog-category {
    margin-bottom: 14px;
}
.catalog-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 8px;
    cursor: pointer;
}
.catalog-category-icon {
    font-size: 22px;
}
.catalog-category-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.catalog-category-desc {
    font-size: 11px;
    color: var(--text-muted);
}
.catalog-category-chevron {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    max-width: 16px;
    color: var(--text-muted);
    margin-left: auto;
    transition: transform 0.3s;
    flex-shrink: 0;
}
.catalog-category-chevron.open { transform: rotate(180deg); }

.catalog-habit {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s;
}
.catalog-habit-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.catalog-habit-body { flex: 1; min-width: 0; }
.catalog-habit-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.catalog-habit-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.catalog-habit-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.catalog-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--accent-soft);
    color: var(--accent-light);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 2px;
}
.catalog-add-btn:active {
    transform: scale(0.85);
    background: var(--accent);
    color: #fff;
}
.catalog-add-btn.added {
    background: var(--success-soft);
    color: var(--success);
    pointer-events: none;
}

/* ── Counter Card ─────────────────────────────────────────────────────────── */
.counter-card {
    flex-wrap: nowrap;
}
.counter-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.counter-bar-bg {
    flex: 1;
    height: 6px;
    background: var(--surface-3);
    border-radius: 3px;
    overflow: hidden;
}
.counter-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.counter-bar-fill.complete {
    background: linear-gradient(135deg, var(--success), #55efc4);
}
.counter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-light);
    white-space: nowrap;
    min-width: 48px;
    text-align: right;
}
.counter-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.counter-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    transition: all 0.2s ease;
}
.counter-btn:active {
    transform: scale(0.85);
}
.counter-plus {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 15px;
    box-shadow: var(--shadow-glow);
}
.counter-plus:active {
    box-shadow: 0 1px 6px rgba(140, 122, 230, 0.2);
}
.counter-minus {
    width: 30px;
    height: 30px;
    background: var(--surface-3);
    color: var(--text-secondary);
    font-size: 16px;
}
.counter-bump {
    animation: counterBump 0.3s ease;
}
@keyframes counterBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--success); }
    100% { transform: scale(1); }
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 0; }
