/* ═══════════════════════════════════════════════════════
   CAMERA APP (iOS-style in-phone camera)
   ═══════════════════════════════════════════════════════ */

.cam-app-screen {
    background: #000 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-top: 0;
    z-index: 50 !important;
}

/* Override the gradient background from .screen */
.cam-app-screen.active {
    background: #000 !important;
}

.cam-app-screen.active::before {
    display: none !important;
}

/* Ensure status bar is readable over camera preview */
.cam-app-screen.active ~ #status-bar,
#phone-frame:has(.cam-app-screen.active) #status-bar {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Top bar — sits below status bar + dynamic island */
.cam-app-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 54px 16px 8px;
    background: transparent;
    z-index: 2;
    flex-shrink: 0;
}

.cam-app-top-left,
.cam-app-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cam-app-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.cam-app-icon-btn:active {
    background: rgba(0, 0, 0, 0.55);
}

.cam-app-icon-btn.is-on {
    background: #ffd60a;
    color: #1c1c1e;
}

/* Viewfinder — shows live preview canvas from game center */
.cam-app-viewfinder {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: #0a0a0a;
    min-height: 0;
    padding-bottom: 18px;
    overflow: hidden;
}

/* Live preview canvas — fills the viewfinder, shows center of game screen */
.cam-app-preview-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 0;
}

/* Loading spinner overlay */
.cam-app-spinner-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.cam-app-spinner-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    animation: camSpinnerRotate 0.8s linear infinite;
}

@keyframes camSpinnerRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Zoom row */
.cam-app-zoom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 24px;
    z-index: 2;
}

.cam-app-zoom-pill {
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    border: none;
    background: rgba(60, 60, 60, 0.7);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    font-family: Inter, -apple-system, sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cam-app-zoom-pill.active {
    background: rgba(255, 204, 0, 0.22);
    color: #ffd60a;
    font-weight: 700;
}

.cam-app-zoom-pill:active {
    transform: scale(0.92);
}

/* Bottom bar — includes home indicator clearance */
.cam-app-bottom-bar {
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 0 calc(var(--home-indicator-clearance, 58px) + 8px);
    flex-shrink: 0;
    z-index: 2;
}

/* Shutter row */
.cam-app-shutter-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 24px;
}

.cam-app-thumb-slot {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cam-app-thumb-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cam-app-shutter-btn {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 3.5px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

.cam-app-shutter-ring {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    display: block;
    transition: transform 0.08s;
}

.cam-app-shutter-btn:active .cam-app-shutter-ring {
    transform: scale(0.88);
}

.cam-app-shutter-btn.capturing .cam-app-shutter-ring {
    transform: scale(0.75);
    opacity: 0.6;
}

.cam-app-shutter-btn.capturing::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.14);
    border-top-color: #ffd60a;
    border-right-color: rgba(255, 214, 10, 0.55);
    animation: camAppUploadSpin 0.9s linear infinite;
    pointer-events: none;
}

@keyframes camAppUploadSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cam-app-flip-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.cam-app-flip-btn:active {
    transform: rotate(180deg);
}

/* Capture flash overlay */
.cam-app-capture-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    animation: camAppFlash 0.25s ease-out;
}

@keyframes camAppFlash {
    0% { opacity: 0.85; }
    100% { opacity: 0; }
}


/* ═══════════════════════════════════════════════════════
   CLOCK APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

.clock-app-content {
    padding: 0 !important;
    background: #000 !important;
    overflow: hidden;
}

.clock-app-root {
    height: 100%;
}

.clock-screen-header {
    background: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.clock-shell {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px calc(var(--app-content-bottom-clearance, 34px) + 18px);
    background: #000;
    color: #fff;
}

.clock-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.clock-top-row .clock-ghost-slot {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.clock-pill-control,
.clock-circle-control {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(28, 28, 30, 0.92);
    color: #fff;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    font-family: Inter, sans-serif;
}

.clock-pill-control {
    min-height: 68px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
}

.clock-circle-control {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    font-size: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.clock-pill-control.is-hidden,
.clock-circle-control.is-hidden,
.clock-ghost-slot.is-hidden {
    visibility: hidden;
    pointer-events: none;
}

.clock-page-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clock-page-title {
    font-size: 74px;
    line-height: 0.92;
    letter-spacing: -0.08em;
    font-weight: 800;
    color: #fff;
}

.clock-stage {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 4px;
}

.clock-stage::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.clock-world-screen,
.clock-alarm-screen,
.clock-stopwatch-screen,
.clock-timer-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.clock-world-hero,
.clock-focus-card,
.clock-list-card,
.clock-settings-card,
.clock-timer-wheel-card,
.clock-stopwatch-laps,
.clock-empty-card {
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 27, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.clock-world-hero,
.clock-focus-card {
    padding: 22px 22px 24px;
}

.clock-world-hero-meta,
.clock-card-kicker,
.clock-section-label,
.clock-wheel-unit-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.02em;
}

.clock-world-hero-city,
.clock-focus-card-title {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #fff;
}

.clock-world-hero-time,
.clock-focus-main {
    margin-top: 14px;
    font-size: 92px;
    line-height: 0.92;
    font-weight: 200;
    letter-spacing: -0.1em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-focus-sub,
.clock-timer-helper,
.clock-empty-copy {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.44);
}

.clock-inline-action {
    margin-top: 16px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 149, 0, 0.22);
    background: rgba(255, 149, 0, 0.12);
    color: #ffb14d;
    font-size: 20px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    align-self: flex-start;
    cursor: pointer;
}

.clock-list-card {
    padding: 6px 0;
    overflow: hidden;
}

.clock-world-row,
.clock-alarm-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clock-world-row:first-child,
.clock-alarm-row:first-child {
    border-top: 0;
}

.clock-world-row-copy,
.clock-alarm-row-copy {
    min-width: 0;
    flex: 1;
}

.clock-world-row-meta,
.clock-alarm-row-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.42);
}

.clock-world-row-city {
    margin-top: 4px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
}

.clock-world-row-time {
    min-width: 108px;
    text-align: right;
    font-size: 36px;
    font-weight: 200;
    letter-spacing: -0.07em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-row-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #ff5d5d;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.clock-alarm-row {
    gap: 18px;
}

.clock-alarm-time {
    font-size: 72px;
    line-height: 0.9;
    letter-spacing: -0.09em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.72);
    font-variant-numeric: tabular-nums;
}

.clock-alarm-time.enabled {
    color: #fff;
}

.clock-alarm-row-sub {
    margin-top: 10px;
}

.alarm-toggle {
    width: 62px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0;
}

.alarm-toggle.active {
    background: #34c759;
}

.alarm-toggle::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.alarm-toggle.active::after {
    transform: translateX(26px);
}

.clock-empty-card {
    padding: 28px 22px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.clock-empty-title {
    font-size: 58px;
    line-height: 0.95;
    letter-spacing: -0.08em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.46);
}

.clock-stopwatch-screen,
.clock-timer-screen {
    min-height: 100%;
    justify-content: space-between;
}

.clock-stopwatch-display,
.clock-timer-countdown-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
}

.clock-stopwatch-time,
.clock-timer-countdown {
    font-size: 112px;
    line-height: 0.9;
    letter-spacing: -0.12em;
    font-weight: 200;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-stopwatch-dots {
    display: flex;
    gap: 12px;
}

.clock-stopwatch-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}

.clock-stopwatch-dots span.active {
    background: rgba(255, 255, 255, 0.92);
}

.clock-circle-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.clock-action-orb {
    width: 144px;
    height: 144px;
    border-radius: 50%;
    border: 0;
    background: rgba(39, 39, 43, 0.96);
    color: rgba(255, 255, 255, 0.46);
    font-size: 28px;
    font-weight: 500;
    font-family: Inter, sans-serif;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.clock-action-orb.is-start {
    background: rgba(28, 77, 30, 0.82);
    color: #76e279;
}

.clock-action-orb.is-stop {
    background: rgba(92, 37, 18, 0.84);
    color: #ff9a66;
}

.clock-action-orb.is-muted[disabled] {
    cursor: default;
    opacity: 0.62;
}

.clock-action-orb:active:not([disabled]) {
    transform: scale(0.98);
}

.clock-stopwatch-laps {
    padding: 8px 0;
    overflow: hidden;
}

.clock-lap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
}

.clock-lap-row:first-child {
    border-top: 0;
}

.clock-lap-row strong {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.clock-timer-wheel-card {
    position: relative;
    padding: 18px 14px 14px;
    overflow: hidden;
}

.clock-timer-wheel-card::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    top: 50%;
    height: 70px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.clock-wheel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.clock-wheel-col {
    min-width: 0;
}

.clock-wheel {
    height: 280px;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.clock-wheel::-webkit-scrollbar {
    display: none;
}

.clock-wheel-spacer {
    height: 112px;
}

.clock-wheel-item {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.28);
    font-variant-numeric: tabular-nums;
    transition: color 0.16s ease, transform 0.16s ease;
    user-select: none;
}

.clock-wheel-item.is-active {
    color: #fff;
    transform: scale(1.04);
}

.clock-wheel-unit-label {
    margin-top: 10px;
    text-align: center;
}

.clock-settings-card {
    padding: 12px 18px;
    overflow: hidden;
}

.clock-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.clock-setting-row:first-child {
    border-top: 0;
}

.clock-setting-label {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.clock-setting-input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    text-align: right;
    outline: none;
    font-family: Inter, sans-serif;
}

.clock-setting-value {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.58);
}

.clock-setting-chevron {
    color: rgba(255, 255, 255, 0.28);
}

.clock-recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clock-recent-chip {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.clock-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 28, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.clock-nav-btn {
    min-height: 88px;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    font-family: Inter, sans-serif;
}

.clock-nav-btn span {
    font-size: 15px;
    font-weight: 600;
}

.clock-nav-btn.active {
    background: rgba(255, 184, 92, 0.18);
    color: #ffb95c;
}

.clock-nav-btn:active {
    transform: scale(0.99);
}

/* ═══════════════════════════════════════════════════════
   CALCULATOR APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

#app-calculator {
    background:
        radial-gradient(120% 85% at 18% 8%, rgba(90, 200, 250, 0.18), transparent 48%),
        radial-gradient(130% 90% at 86% 100%, rgba(175, 82, 222, 0.14), transparent 55%),
        linear-gradient(165deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

#app-calculator .app-header {
    background: transparent;
    border-bottom: 0;
}

.calc-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    margin: -2px 10px 20px;
    padding: 14px 16px 22px;
    border-radius: 32px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(36px) saturate(170%);
    -webkit-backdrop-filter: blur(36px) saturate(170%);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.calc-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(95% 70% at 12% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
        radial-gradient(120% 90% at 88% 100%, rgba(175, 82, 222, 0.12), transparent 60%);
    pointer-events: none;
}

.calc-display {
    flex: 0 0 auto;
    min-height: 120px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 18px 16px 12px;
    border-radius: 22px;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: clamp(40px, 8vw, 62px);
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -1.8px;
    font-variant-numeric: tabular-nums;
    line-height: 0.9;
    overflow: hidden;
    text-align: right;
    word-wrap: break-word;
}

.calc-pad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    grid-auto-rows: minmax(78px, 1fr);
    justify-items: center;
    padding: 14px 0 0;
    flex: 1;
    min-height: 0;
}

.calc-btn {
    width: 100%;
    max-width: 84px;
    border-radius: 999px;
    border: 0.5px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 5px 12px rgba(0, 0, 0, 0.18);
    color: var(--text-primary);
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.2s ease, background 0.2s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    justify-self: center;
    align-self: center;
}

.calc-btn:active {
    transform: scale(0.95);
    filter: brightness(1.06);
}

.calc-btn.func {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
    color: rgba(14, 14, 16, 0.9);
    font-weight: 400;
}

.calc-btn.op {
    background: linear-gradient(145deg, rgba(255, 149, 10, 0.95), rgba(255, 115, 0, 0.75));
    border-color: rgba(255, 185, 93, 0.55);
    color: #fff;
    font-size: 34px;
    font-weight: 500;
}

.calc-btn.zero {
    grid-column: auto;
    justify-content: center;
    padding-left: 0;
}

#phone-frame.dark-mode #app-calculator .calc-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.18);
}

#phone-frame.dark-mode #app-calculator .calc-display {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

#phone-frame.dark-mode #app-calculator .calc-btn.func {
    color: rgba(255, 255, 255, 0.95);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.radio-app {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 14px;
}

.radio-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--card-bg);
    border: 0.5px solid var(--separator);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.radio-card-copy {
    min-width: 0;
    flex: 1;
}

.radio-freq-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.radio-freq-input {
    width: 128px;
    margin-top: 6px;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    appearance: textfield;
    -moz-appearance: textfield;
    font-size: 40px;
    font-weight: 250;
    letter-spacing: -1.4px;
    color: var(--text-primary);
    font-family: inherit;
}

.radio-freq-input::-webkit-outer-spin-button,
.radio-freq-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.radio-status {
    align-self: center;
    font-size: 13px;
    font-weight: 700;
}

.radio-status.disconnected {
    color: #ff453a;
}

.radio-status.connected {
    color: #34c759;
}

.radio-status.transmitting {
    color: #ff9f0a;
}

.radio-controls {
    display: flex;
    gap: 10px;
}

.radio-btn {
    flex: 1;
    padding: 14px 12px;
    border-radius: 16px;
    border: 0.5px solid var(--separator);
    background: var(--fill-secondary);
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.14s ease, filter 0.2s ease, background 0.2s ease;
}

.radio-btn:active {
    transform: scale(0.97);
}

.radio-connect-btn {
    flex: 2;
    font-size: 15px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.92), rgba(0, 99, 224, 0.76));
    border-color: rgba(10, 132, 255, 0.35);
    color: #fff;
}

.radio-connect-btn.connected {
    background: linear-gradient(135deg, rgba(255, 69, 58, 0.92), rgba(215, 50, 40, 0.78));
    border-color: rgba(255, 69, 58, 0.34);
}

.radio-hint {
    padding-top: 4px;
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════
   NOTES APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

#app-notes,
#app-notes-editor {
    --notes-bg: linear-gradient(180deg, #f7f5fb 0%, #efedf5 100%);
    --notes-card-bg: rgba(255, 255, 255, 0.82);
    --notes-card-bg-strong: rgba(255, 255, 255, 0.94);
    --notes-card-border: rgba(255, 255, 255, 0.58);
    --notes-shadow: 0 20px 44px rgba(53, 57, 74, 0.1);
    --notes-text: #111114;
    --notes-muted: rgba(72, 76, 88, 0.58);
    --notes-subtle: rgba(72, 76, 88, 0.38);
    --notes-accent: #f0c533;
    --notes-accent-strong: #d8af28;
    background: var(--notes-bg) !important;
}

#phone-frame.dark-mode #app-notes,
#phone-frame.dark-mode #app-notes-editor {
    --notes-bg: linear-gradient(180deg, #14161d 0%, #0f1118 100%);
    --notes-card-bg: rgba(31, 34, 44, 0.82);
    --notes-card-bg-strong: rgba(38, 42, 55, 0.92);
    --notes-card-border: rgba(255, 255, 255, 0.08);
    --notes-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
    --notes-text: #f5f7fc;
    --notes-muted: rgba(226, 229, 238, 0.58);
    --notes-subtle: rgba(226, 229, 238, 0.36);
    --notes-accent: #f3d352;
    --notes-accent-strong: #f0c533;
}

#app-notes .app-header,
#app-notes-editor .app-header {
    display: none;
}

.notes-app-content,
.notes-editor-content {
    height: 100%;
    padding: 0 !important;
    background: transparent !important;
}

.notes-app-shell,
.notes-editor-shell {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.notes-app-shell {
    padding: 58px 24px 24px;
}

.notes-topbar,
.notes-editor-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.notes-round-btn,
.notes-pill-btn,
.notes-done-btn,
.notes-compose-btn,
.notes-toolbar-btn,
.notes-search-utility,
.notes-draw-clear,
.notes-draw-color {
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    font-family: inherit;
}

.notes-round-btn:active,
.notes-pill-btn:active,
.notes-done-btn:active,
.notes-compose-btn:active,
.notes-toolbar-btn:active,
.notes-search-utility:active,
.notes-draw-clear:active,
.notes-draw-color:active {
    transform: scale(0.96);
}

.notes-round-btn,
.notes-compose-btn,
.notes-done-btn {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--notes-card-bg-strong);
    color: var(--notes-text);
    box-shadow: var(--notes-shadow);
}

.notes-round-btn i,
.notes-compose-btn i,
.notes-done-btn i {
    font-size: 26px;
}

.notes-done-btn {
    background: linear-gradient(135deg, var(--notes-accent), var(--notes-accent-strong));
    color: #fff8de;
}

.notes-pill-btn {
    min-width: 68px;
    height: 60px;
    padding: 0 24px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--notes-card-bg-strong);
    color: var(--notes-text);
    box-shadow: var(--notes-shadow);
}

.notes-pill-btn i {
    font-size: 24px;
}

.notes-hero {
    margin-top: 34px;
    margin-bottom: 26px;
}

.notes-hero-title {
    font-size: 60px;
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.08em;
    color: var(--notes-text);
}

.notes-hero-sub {
    margin-top: 8px;
    font-size: 18px;
    color: var(--notes-muted);
}

.notes-ai-card {
    display: none !important;
}

.notes-list-view {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 30px;
}

.notes-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notes-group-label {
    padding: 0 4px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--notes-text);
}

.notes-group-card {
    border-radius: 30px;
    background: var(--notes-card-bg);
    border: 1px solid var(--notes-card-border);
    box-shadow: var(--notes-shadow);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    overflow: hidden;
}

.notes-entry {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 18px 20px;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.notes-entry + .notes-entry {
    border-top: 1px solid rgba(17, 17, 20, 0.08);
}

#phone-frame.dark-mode .notes-entry + .notes-entry {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.notes-entry-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.note-title {
    font-size: 18px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--notes-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.note-preview {
    font-size: 14px;
    line-height: 1.35;
    color: var(--notes-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notes-entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.note-date,
.notes-entry-badge {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
}

.note-date {
    padding-left: 0;
    color: var(--notes-subtle);
}

.notes-entry-badge {
    background: rgba(17, 17, 20, 0.06);
    color: var(--notes-muted);
}

#phone-frame.dark-mode .notes-entry-badge {
    background: rgba(255, 255, 255, 0.08);
}

.notes-entry-thumb {
    width: 66px;
    min-width: 66px;
    height: 66px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(240, 197, 51, 0.2), rgba(17, 17, 20, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--notes-text);
    font-size: 14px;
    font-weight: 800;
}

.notes-entry-thumb.notes-entry-thumb-link {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(255, 255, 255, 0.92));
}

.notes-entry-thumb.notes-entry-thumb-drawing {
    background-size: cover;
    background-position: center;
}

.notes-empty-state {
    min-height: 300px;
    border-radius: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--notes-card-bg);
    border: 1px solid var(--notes-card-border);
    box-shadow: var(--notes-shadow);
    text-align: center;
    color: var(--notes-muted);
    padding: 28px;
}

.notes-empty-state i {
    font-size: 28px;
    color: var(--notes-accent);
}

.notes-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--notes-text);
}

.notes-empty-sub {
    font-size: 14px;
    line-height: 1.45;
    max-width: 260px;
}

.notes-bottom-bar {
    position: sticky;
    bottom: 20px;
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

.notes-search-shell {
    flex: 1;
    min-width: 0;
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px 0 20px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--notes-shadow);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

#phone-frame.dark-mode .notes-search-shell {
    background: rgba(30, 34, 44, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
}

.notes-search-shell > i,
.notes-search-utility {
    color: var(--notes-text);
    opacity: 0.68;
}

.notes-search-shell input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--notes-text);
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
}

.notes-search-shell input::placeholder {
    color: var(--notes-muted);
}

.notes-search-utility {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: transparent;
}

.notes-editor-shell {
    padding: 58px 24px 24px;
}

.notes-editor-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notes-editor-stage {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 26px;
    gap: 18px;
}

.notes-editor-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.notes-editor-surface {
    min-height: 100%;
    border-radius: 34px;
    padding: 26px 24px 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: var(--notes-shadow);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    display: flex;
    flex-direction: column;
}

#phone-frame.dark-mode .notes-editor-surface {
    background: rgba(28, 32, 43, 0.82);
    border-color: rgba(255, 255, 255, 0.08);
}

#note-editor-title,
#note-editor-content {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--notes-text) !important;
    outline: none;
    font-family: inherit;
}

#note-editor-title {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.08em;
}

#note-editor-title::placeholder,
#note-editor-content::placeholder {
    color: var(--notes-muted) !important;
}

.notes-editor-meta {
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--notes-subtle);
}

#note-editor-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 420px;
    padding: 12px 14px 16px;
    resize: none;
    font-size: 18px;
    line-height: 1.65;
}

.notes-editor-paper {
    position: relative;
    flex: 1;
    min-height: 420px;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16)),
        repeating-linear-gradient(180deg, transparent, transparent 35px, rgba(var(--device-accent-rgb), 0.06) 35px, rgba(var(--device-accent-rgb), 0.06) 36px);
    border: 1px solid rgba(var(--device-accent-rgb), 0.12);
}

#phone-frame.dark-mode .notes-editor-paper {
    background:
        linear-gradient(180deg, rgba(28, 32, 43, 0.44), rgba(28, 32, 43, 0.18)),
        repeating-linear-gradient(180deg, transparent, transparent 35px, rgba(var(--device-accent-rgb), 0.08) 35px, rgba(var(--device-accent-rgb), 0.08) 36px);
    border-color: rgba(var(--device-accent-rgb), 0.18);
}

.notes-editor-toolbar {
    margin-top: 18px;
    min-height: 70px;
    padding: 10px 14px;
    border-radius: 35px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--notes-shadow);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 10px;
}

#phone-frame.dark-mode .notes-editor-toolbar {
    background: rgba(30, 34, 44, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

.notes-toolbar-btn {
    width: 100%;
    height: 50px;
    border-radius: 18px;
    background: transparent;
    color: var(--notes-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   KEYCHAIN / PASSWORDS APP
   ═══════════════════════════════════════════════════════ */

#app-keychain .app-content {
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(88, 166, 255, 0.16), transparent 34%),
        radial-gradient(circle at top right, rgba(124, 92, 255, 0.12), transparent 32%),
        linear-gradient(180deg, #07090d 0%, #0b0d12 48%, #090b10 100%);
}

.keychain-ui {
    min-height: 100%;
    color: #fff;
}

.keychain-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.keychain-ui-phone {
    padding: 18px 16px calc(var(--app-content-bottom-clearance, 34px) + 18px);
}

.keychain-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 20px;
    border-radius: 30px;
    background:
        linear-gradient(160deg, rgba(22, 26, 38, 0.98), rgba(13, 16, 24, 0.96)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 26px 52px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.keychain-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 16%, rgba(98, 208, 255, 0.18), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(124, 92, 255, 0.18), transparent 26%);
    pointer-events: none;
}

.keychain-kicker {
    position: relative;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.keychain-title {
    position: relative;
    margin: 8px 0 0;
    font-size: 38px;
    line-height: 0.94;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.keychain-copy {
    position: relative;
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.58;
    color: rgba(255, 255, 255, 0.66);
}

.keychain-hero-actions {
    position: relative;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.keychain-link-btn {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid rgba(98, 208, 255, 0.18);
    border-radius: 999px;
    background: rgba(98, 208, 255, 0.1);
    color: #a7e4ff;
    font-size: 13px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.keychain-link-btn:active {
    transform: scale(0.97);
}

.keychain-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.keychain-metric {
    min-height: 94px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.keychain-metric:hover,
.keychain-metric.active {
    border-color: rgba(88, 166, 255, 0.32);
    background: linear-gradient(145deg, rgba(88, 166, 255, 0.14), rgba(124, 92, 255, 0.1));
}

.keychain-metric:active {
    transform: scale(0.98);
}

.keychain-metric-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.keychain-metric-value {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.keychain-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keychain-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.keychain-filter {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.keychain-filter.active {
    border-color: rgba(88, 166, 255, 0.38);
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.22), rgba(124, 92, 255, 0.18));
    color: #fff;
}

.keychain-search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.05);
}

.keychain-search i {
    color: rgba(255, 255, 255, 0.42);
    font-size: 14px;
}

.keychain-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: Inter, sans-serif;
}

.keychain-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.keychain-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.keychain-group-title {
    padding: 0 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

.keychain-group-card {
    padding: 16px 18px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.keychain-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.keychain-entry:first-child {
    padding-top: 0;
    border-top: 0;
}

.keychain-entry:last-child {
    padding-bottom: 0;
}

.keychain-entry-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.keychain-entry-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background:
        linear-gradient(145deg, var(--kc-accent, #58a6ff), rgba(255, 255, 255, 0.14)),
        rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 21px;
    flex-shrink: 0;
}

.keychain-entry-copy {
    min-width: 0;
    flex: 1;
}

.keychain-entry-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.keychain-entry-title {
    min-width: 0;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.keychain-entry-subtitle {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.74);
}

.keychain-entry-email {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    word-break: break-word;
}

.keychain-pills,
.keychain-device-pills,
.keychain-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keychain-device-pills {
    margin-top: 10px;
}

.keychain-pill {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
}

.keychain-pill.is-accent {
    background: rgba(98, 208, 255, 0.12);
    color: #a7e4ff;
}

.keychain-pill.is-success {
    background: rgba(52, 199, 89, 0.16);
    color: #88f5ad;
}

.keychain-entry-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.keychain-password-card {
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

.keychain-field-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.keychain-password-value {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    word-break: break-word;
}

.keychain-action {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.keychain-action:active {
    transform: scale(0.98);
}

.keychain-action-primary {
    border-color: rgba(88, 166, 255, 0.28);
    background: rgba(88, 166, 255, 0.1);
    color: #8fc3ff;
}

.keychain-action-success {
    border-color: rgba(52, 199, 89, 0.3);
    background: rgba(52, 199, 89, 0.12);
    color: #88f5ad;
}

.keychain-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    padding: 28px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.58);
    text-align: center;
}

.keychain-empty i {
    font-size: 26px;
    color: rgba(255, 255, 255, 0.28);
}

.keychain-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.keychain-empty-copy {
    font-size: 14px;
    line-height: 1.55;
    max-width: 320px;
}

.notes-toolbar-btn i {
    font-size: 22px;
}

.notes-toolbar-btn.active {
    background: rgba(240, 197, 51, 0.18);
    color: var(--notes-accent-strong);
}

.notes-draw-panel {
    display: none;
}

.notes-ink-layer,
.notes-draw-controls {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   WEATHER APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

.weather-current {
    text-align: center;
    padding: 60px 20px;
}

.weather-icon {
    font-size: 80px;
    color: #ffcc00;
    margin-bottom: 20px;
}

.weather-temp {
    font-size: 72px;
    font-weight: 200;
    color: var(--text-primary, #fff);
    letter-spacing: -3px;
    margin-bottom: 8px;
}

.weather-desc {
    font-size: 20px;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    margin-bottom: 4px;
}

.weather-location {
    font-size: 15px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
}

/* ═══════════════════════════════════════════════════════
   APP STORE ANIMATIONS
   ═══════════════════════════════════════════════════════ */

@keyframes storeCardFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pad-store-feature-card,
.pad-store-inline-card,
.pad-store-category-card {
    animation: storeCardFadeIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) backwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pad-store-feature-card { animation-delay: 0.05s; }
.pad-store-feature-card + .pad-store-feature-card { animation-delay: 0.12s; }

.pad-store-feature-card:active,
.pad-store-inline-card:active,
.pad-store-category-card:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   APP STORE DETAIL (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

.store-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 30px;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.store-detail-icon {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #fff;
    box-shadow:
        0 8px 24px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.15),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    border: 0.5px solid rgba(255,255,255,0.1);
}

.store-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.store-detail-dev {
    font-size: 14px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
}

.store-detail-actions {
    position: sticky;
    bottom: 138px;
    z-index: 6;
    padding: 10px 20px 42px;
    margin-top: -2px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.62) 24%, rgba(0, 0, 0, 0.88) 100%);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.store-detail-btn {
    width: 100%;
    min-height: 56px;
    padding: 14px;
    border: 0.5px solid rgba(0,122,255,0.4);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,122,255,0.7), rgba(0,100,220,0.5));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(0,122,255,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}

.store-detail-btn:active {
    transform: scale(0.98);
}

.store-detail-btn.installed {
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border: 0.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    box-shadow: none;
}

.store-detail-section {
    padding: 20px;
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}

.store-detail-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 12px;
}

.store-detail-desc {
    font-size: 14px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    line-height: 1.6;
}

.store-detail-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-detail-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    line-height: 1.5;
}

.store-detail-feature i {
    color: #007aff;
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE (Universal)
   ═══════════════════════════════════════════════════════ */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    font-size: 14px;
    gap: 12px;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════
   CRYPTO APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

.crypto-balance {
    background: linear-gradient(135deg, rgba(247,147,26,0.2), rgba(247,147,26,0.05));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 32px 20px;
    text-align: center;
}

.crypto-balance-label {
    font-size: 13px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.crypto-balance-amount {
    font-size: 40px;
    font-weight: 200;
    color: #f7931a;
    letter-spacing: -1px;
}

#crypto-list {
    display: flex;
    flex-direction: column;
}

.crypto-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
    cursor: pointer;
    transition: background 0.15s;
}

.crypto-item:active {
    background: rgba(255,255,255,0.03);
}

.crypto-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.crypto-info {
    flex: 1;
    min-width: 0;
}

.crypto-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    display: flex;
    align-items: center;
    gap: 6px;
}

.crypto-symbol {
    font-size: 14px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 2px;
}

.crypto-price-info {
    text-align: right;
}

.crypto-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.crypto-change {
    font-size: 13px;
    margin-top: 2px;
}

.crypto-change.positive {
    color: #34c759;
}

.crypto-change.negative {
    color: #ff3b30;
}

/* Crypto Detail */
.crypto-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 30px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.crypto-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 12px;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.crypto-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.crypto-detail-symbol {
    font-size: 15px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    text-transform: uppercase;
}

.crypto-detail-price {
    font-size: 36px;
    font-weight: 200;
    color: var(--text-primary, #fff);
    margin-top: 8px;
    letter-spacing: -1px;
}

.crypto-detail-change {
    font-size: 16px;
    font-weight: 500;
    margin-top: 4px;
}

.crypto-detail-change.positive {
    color: #34c759;
}

.crypto-detail-change.negative {
    color: #ff3b30;
}

.crypto-holdings {
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(255,255,255,0.06);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    text-align: center;
}

.crypto-holdings-label {
    font-size: 13px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin-bottom: 8px;
}

.crypto-holdings-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.crypto-holdings-value {
    font-size: 14px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
}

.crypto-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.crypto-action-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.crypto-action-btn.buy {
    background: linear-gradient(135deg, rgba(52,199,89,0.7), rgba(48,209,88,0.5));
    border: 0.5px solid rgba(52,199,89,0.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(52,199,89,0.15);
}

.crypto-action-btn.sell {
    background: linear-gradient(135deg, rgba(255,59,48,0.7), rgba(215,50,40,0.5));
    border: 0.5px solid rgba(255,59,48,0.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,59,48,0.15);
}

.crypto-action-btn:active {
    transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════
   STOCKS TRADING APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

.stocks-balance {
    background: linear-gradient(135deg, rgba(0,122,255,0.2), rgba(88,86,214,0.05));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 32px 20px;
    text-align: center;
}

.stocks-balance-label {
    font-size: 13px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stocks-balance-amount {
    font-size: 40px;
    font-weight: 200;
    color: #007aff;
    letter-spacing: -1px;
}

#stocks-list {
    display: flex;
    flex-direction: column;
}

.stock-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: background 0.15s;
}

.stock-item:active {
    background: rgba(255,255,255,0.03);
}

.stock-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: #fff;
}

.stock-info {
    flex: 1;
    min-width: 0;
}

.stock-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.stock-symbol {
    font-size: 14px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 2px;
}

.stock-price-info {
    text-align: right;
}

.stock-price {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary, #fff);
}

.stock-change {
    font-size: 13px;
    margin-top: 2px;
}

.stock-change.positive {
    color: #34c759;
}

.stock-change.negative {
    color: #ff3b30;
}

.stock-detail-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 30px;
    gap: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.stock-detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #fff;
}

.stock-detail-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.stock-detail-symbol {
    font-size: 15px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    text-transform: uppercase;
}

.stock-detail-price {
    font-size: 36px;
    font-weight: 200;
    color: var(--text-primary, #fff);
    margin-top: 8px;
    letter-spacing: -1px;
}

.stock-detail-change {
    font-size: 16px;
    font-weight: 500;
    margin-top: 4px;
}

.stock-detail-change.positive {
    color: #34c759;
}

.stock-detail-change.negative {
    color: #ff3b30;
}

.stock-holdings {
    padding: 24px 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(255,255,255,0.06);
    border-bottom: 0.5px solid rgba(255,255,255,0.06);
    text-align: center;
}

.stock-holdings-label {
    font-size: 13px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin-bottom: 8px;
}

.stock-holdings-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.stock-holdings-value {
    font-size: 14px;
    color: var(--text-secondary, rgba(255,255,255,0.6));
}

.stock-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
}

.stock-action-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stock-action-btn.buy {
    background: linear-gradient(135deg, rgba(52,199,89,0.7), rgba(48,209,88,0.5));
    border: 0.5px solid rgba(52,199,89,0.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(52,199,89,0.15);
}

.stock-action-btn.sell {
    background: linear-gradient(135deg, rgba(255,59,48,0.7), rgba(215,50,40,0.5));
    border: 0.5px solid rgba(255,59,48,0.4);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,59,48,0.15);
}

.stock-action-btn:active {
    transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════
   WEATHER APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

#app-weather.screen {
    background: var(--weather-bg, linear-gradient(180deg, #1a8fe3 0%, #47b8e0 35%, #87ceeb 65%, #f7d794 100%)) !important;
}

#app-weather > .app-header {
    background: transparent !important;
    border-bottom: none !important;
}

#app-weather > .app-header .app-title,
#app-weather > .app-header .header-action {
    color: var(--weather-text, #fff);
}

#app-weather > .app-content {
    background: transparent !important;
}

.weather-current {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 12px;
}

.weather-icon {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.2));
}

.weather-temp {
    font-size: 72px;
    font-weight: 200;
    color: var(--text-primary, #fff);
    letter-spacing: -3px;
}

.weather-desc {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary, rgba(255,255,255,0.8));
}

.weather-location {
    font-size: 14px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════
   WALLET APP (AgencyOS26.4 Style)
   ═══════════════════════════════════════════════════════ */

#wallet-balance-card {
    background: linear-gradient(135deg, rgba(52,199,89,0.2), rgba(48,209,88,0.05));
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 40px 20px;
    text-align: center;
}

.wallet-balance-label {
    font-size: 13px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

#wallet-amount {
    font-size: 44px;
    font-weight: 200;
    color: #34c759;
    letter-spacing: -1px;
}

#wallet-transfer {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#wallet-transfer input {
    background: var(--input-bg, rgba(255,255,255,0.06));
    border: 0.5px solid var(--separator, rgba(255,255,255,0.1));
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    color: var(--text-primary, #fff);
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

#wallet-transfer input:focus {
    border-color: rgba(52,199,89,0.5);
}

#wallet-transfer input::placeholder {
    color: var(--text-tertiary, rgba(255,255,255,0.3));
}

#transfer-btn {
    background: linear-gradient(135deg, rgba(52,199,89,0.7), rgba(48,209,88,0.5));
    border: 0.5px solid rgba(52,199,89,0.4);
    border-radius: 14px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

#transfer-btn:active {
    transform: scale(0.97);
}

/* ═══════════════════════════════════════════════════════
   THEME OVERRIDES FOR APPS
   ═══════════════════════════════════════════════════════ */

/* Weather */
.weather-temp { color: var(--text-primary, #fff); }
.weather-desc { color: var(--text-secondary, rgba(255,255,255,0.7)); }
.weather-location { color: var(--text-tertiary, rgba(255,255,255,0.4)); }

/* Crypto */
.crypto-item { border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06)); }
.crypto-item:active { background: var(--fill-secondary, rgba(255,255,255,0.03)); }
.crypto-name { color: var(--text-primary, #fff); }
.crypto-symbol { color: var(--text-tertiary, rgba(255,255,255,0.4)); }
.crypto-price { color: var(--text-primary, #fff); }
.crypto-detail-name { color: var(--text-primary, #fff); }
.crypto-detail-symbol { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.crypto-detail-price { color: var(--text-primary, #fff); }
.crypto-holdings {
    background: var(--fill-secondary, rgba(255,255,255,0.04));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.06));
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}
.crypto-holdings-label { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.crypto-holdings-amount { color: var(--text-primary, #fff); }
.crypto-holdings-value { color: var(--text-secondary, rgba(255,255,255,0.6)); }

/* Stocks */
.stock-item { border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06)); }
.stock-item:active { background: var(--fill-secondary, rgba(255,255,255,0.03)); }
.stock-name { color: var(--text-primary, #fff); }
.stock-symbol { color: var(--text-tertiary, rgba(255,255,255,0.4)); }
.stock-price { color: var(--text-primary, #fff); }
.stock-detail-name { color: var(--text-primary, #fff); }
.stock-detail-symbol { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.stock-detail-price { color: var(--text-primary, #fff); }
.stock-holdings {
    background: var(--fill-secondary, rgba(255,255,255,0.04));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.06));
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}
.stock-holdings-label { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.stock-holdings-amount { color: var(--text-primary, #fff); }
.stock-holdings-value { color: var(--text-secondary, rgba(255,255,255,0.6)); }

/* Store Detail */
.store-detail-name { color: var(--text-primary, #fff); }
.store-detail-dev { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
.store-detail-section { border-top: 0.5px solid var(--separator, rgba(255,255,255,0.06)); }
.store-detail-section-title { color: var(--text-primary, #fff); }
.store-detail-desc { color: var(--text-secondary, rgba(255,255,255,0.6)); }
.store-detail-feature { color: var(--text-secondary, rgba(255,255,255,0.6)); }

/* Wallet */
.wallet-balance-label { color: var(--text-tertiary, rgba(255,255,255,0.5)); }
#wallet-transfer input {
    background: var(--input-bg, rgba(255,255,255,0.06));
    border: 0.5px solid var(--separator, rgba(255,255,255,0.1));
    color: var(--text-primary, #fff);
}
#wallet-transfer input::placeholder { color: var(--text-tertiary, rgba(255,255,255,0.3)); }

/* Clock */
.clock-display { color: var(--text-primary, #fff); }
.alarm-item {
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}
.alarm-time { color: var(--text-primary, #fff); }
.alarm-label { color: var(--text-tertiary, rgba(255,255,255,0.4)); }
.stopwatch-time, .timer-time { color: var(--text-primary, #fff); }

/* Empty State override for apps */
.empty-state { color: var(--empty-state-color, rgba(255,255,255,0.4)); }

/* ═══════════════════════════════════════════════════════════
   VIDFLOW (Video App)
   ═══════════════════════════════════════════════════════════ */

.vf-search-bar {
    display: flex;
    padding: 10px 14px;
    gap: 8px;
    background: var(--bg-secondary, rgba(28,28,30,0.95));
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
    position: relative;
    z-index: 2;
}

.vf-search-bar input {
    flex: 1;
    background: var(--input-bg, var(--fill-tertiary, rgba(118,118,128,0.24)));
    border: none;
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--text-primary, #fff);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.vf-search-bar input::placeholder {
    color: var(--text-tertiary, rgba(255,255,255,0.4));
}

.vf-search-bar button {
    background: #ff2d55;
    border: none;
    border-radius: 10px;
    width: 38px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.vf-player-wrap {
    background: #000;
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}

.vf-player-wrap.hidden { display: none; }

.vf-player-wrap iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    display: block;
}

/* Simulated fullscreen for VidFlow */
.vf-player-wrap.vf-fullscreen {
    position: absolute;
    inset: 0;
    z-index: 2050;
    display: flex;
    flex-direction: column;
    background: #000;
    border-bottom: none;
    border-radius: 0;
}

.vf-player-wrap.vf-fullscreen #vf-player {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.vf-player-wrap.vf-fullscreen iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}

.vf-player-wrap.vf-fullscreen .vf-now-playing {
    display: none;
}

/* Expand button (visible outside fullscreen) */
.vf-expand-btn {
    position: absolute;
    bottom: 58px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.vf-expand-btn:hover {
    background: rgba(0,0,0,0.75);
    transform: scale(1.1);
}

.vf-player-wrap.hidden .vf-expand-btn {
    display: none;
}

/* Exit fullscreen button */
.vf-fullscreen-exit-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2060;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease;
}

.vf-fullscreen-exit-btn:hover {
    transform: scale(1.1);
}

.vf-player-wrap.vf-fullscreen .vf-fullscreen-exit-btn {
    display: flex;
}

/* Hide old fullscreen btn class */
.vf-fullscreen-btn {
    display: none !important;
}

.vf-now-playing {
    padding: 10px 14px;
    background: var(--bg-secondary, rgba(28,28,30,0.95));
}

.vf-np-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-np-channel {
    font-size: 12px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 2px;
}

.vf-results {
    padding: 6px 0;
    overflow-y: auto;
}

.vf-video-item {
    display: flex;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.vf-video-item:active { background: var(--fill-tertiary, rgba(118,118,128,0.12)); }

.vf-video-thumb {
    width: 120px;
    min-width: 120px;
    height: 68px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fill-secondary, rgba(118,118,128,0.24));
}

.vf-video-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.vf-video-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.vf-video-channel {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
}

.vf-video-views {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
}

/* ═══════════════════════════════════════════════════════════
   MUSIC APP (Agency Music style)
   ═══════════════════════════════════════════════════════════ */

.mu-tabs {
    display: flex;
    gap: 8px;
    padding: 10px 12px 8px;
    margin: 8px 12px 0;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.mu-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    background: transparent;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mu-tab.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 82, 100, 0.94), rgba(175, 82, 222, 0.84));
    box-shadow: 0 12px 24px rgba(252, 60, 68, 0.26);
}

.mu-tab:active {
    transform: scale(0.97);
}

.mu-tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
}

.mu-tab-content.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mu-search-bar,
.mu-url-bar {
    display: flex;
    padding: 10px 14px 4px;
    gap: 8px;
}

#app-appstore-detail .app-content {
    padding-bottom: 278px !important;
}

#phone-frame:not(.dark-mode) .store-detail-actions {
    background: linear-gradient(180deg, rgba(242, 242, 247, 0) 0%, rgba(242, 242, 247, 0.8) 24%, rgba(242, 242, 247, 0.98) 100%);
}

#phone-frame:not(.dark-mode) .store-detail-btn.installed {
    background: linear-gradient(135deg, rgba(20, 20, 24, 0.06), rgba(20, 20, 24, 0.03));
    border-color: rgba(20, 20, 24, 0.08);
    color: var(--text-secondary);
}

#phone-frame:not(.dark-mode) .store-detail-name,
#phone-frame:not(.dark-mode) .store-detail-section-title {
    color: var(--text-primary);
}

#phone-frame:not(.dark-mode) .store-detail-dev,
#phone-frame:not(.dark-mode) .store-detail-desc,
#phone-frame:not(.dark-mode) .store-detail-feature {
    color: var(--text-secondary);
}

.mu-url-bar {
    padding-top: 4px;
    padding-bottom: 10px;
}

.mu-search-bar input,
.mu-url-bar input {
    flex: 1;
    background: var(--fill-tertiary, rgba(118,118,128,0.24));
    border: none;
    border-radius: 14px;
    padding: 11px 14px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.mu-search-bar button,
.mu-url-bar button {
    background: linear-gradient(135deg, #ff5469, #ff7a45);
    border: none;
    border-radius: 14px;
    width: 42px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(255, 84, 105, 0.24);
}

.mu-song-list {
    padding: 4px 0 24px;
}

.mu-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
}

.mu-song-item:active {
    background: var(--fill-tertiary, rgba(118,118,128,0.12));
}

.mu-song-item + .mu-song-item {
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.04));
}

.mu-song-thumb {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--fill-secondary, rgba(118,118,128,0.24));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.mu-song-info {
    flex: 1;
    min-width: 0;
}

.mu-song-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mu-song-artist {
    font-size: 12px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mu-song-actions {
    display: flex;
    gap: 6px;
}

.mu-song-play-btn,
.mu-song-fav-btn {
    background: none;
    border: none;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.mu-song-play-btn:hover {
    color: #fc3c44;
}

.mu-song-fav-btn.active {
    color: #fc3c44;
}

.mu-song-item.now-playing .mu-song-title {
    color: #fc3c44;
}

.mu-song-item.now-playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    background: linear-gradient(180deg, #ff5a6d, #af52de);
    border-radius: 0 2px 2px 0;
}

.mu-now-playing {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 0;
    padding: 10px 14px calc(var(--home-indicator-clearance, 34px) - 20px);
    overflow: visible;
    isolation: isolate;
}

#mu-tab-playing {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 0;
}

#app-music > .app-content {
    height: auto !important;
    min-height: 0;
    padding-bottom: max(6px, calc(var(--home-indicator-clearance, 34px) - 32px)) !important;
    scroll-padding-bottom: max(6px, calc(var(--home-indicator-clearance, 34px) - 32px));
}

#app-music > .app-content::after {
    display: none !important;
    content: none;
}

.mu-now-backdrop {
    position: absolute;
    inset: -20% -20%;
    background-position: center;
    background-size: cover;
    filter: blur(60px) saturate(160%);
    opacity: 0.32;
    z-index: -3;
    transition: background-image 0.4s ease, opacity 0.4s ease;
}

.mu-now-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 11, 16, 0.05) 0%, rgba(9, 11, 16, 0.4) 50%, rgba(9, 11, 16, 0.75) 100%);
}

.mu-now-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(16px);
    z-index: -2;
    opacity: 0.7;
}

.mu-now-orb-a {
    width: 170px;
    height: 170px;
    top: 60px;
    right: -42px;
    background: rgba(255, 84, 105, 0.28);
}

.mu-now-orb-b {
    width: 200px;
    height: 200px;
    left: -70px;
    bottom: 70px;
    background: rgba(104, 92, 255, 0.22);
}

.mu-now-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.mu-glass-chip,
.mu-top-icon-btn,
.mu-now-card,
.mu-playback-card,
.mu-volume-wrap {
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 16px 40px rgba(0,0,0,0.18);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.mu-glass-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--text-primary, #fff);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mu-top-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mu-now-card {
    border-radius: 26px;
    padding: 12px 12px 10px;
}

.mu-artwork-wrap {
    width: 100%;
    max-width: 188px;
    margin: 0 auto;
    position: relative;
}

.mu-artwork {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(22, 24, 30, 0.96), rgba(42, 45, 54, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.15);
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}

.mu-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mu-video-container {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

.mu-track-info {
    text-align: center;
    width: 100%;
    padding: 8px 4px 0;
}

.mu-track-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary, #fff);
    line-height: 1.05;
    letter-spacing: -0.6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mu-track-artist {
    font-size: 12px;
    color: #ff6678;
    margin-top: 4px;
    font-weight: 700;
}

.mu-playback-card {
    border-radius: 26px;
    padding: 10px 12px 8px;
}

#app-music.music-now-playing-mode .mu-tabs {
    display: none;
}

#app-music.music-now-playing-mode #mu-tab-playing {
    flex: 1;
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 0;
}

#app-music.music-now-playing-mode .mu-now-playing {
    padding-top: 0;
    gap: 8px;
    padding-bottom: max(4px, calc(var(--home-indicator-clearance, 34px) - 30px));
}

#app-music.music-now-playing-mode .app-content {
    padding-bottom: max(4px, calc(var(--home-indicator-clearance, 34px) - 30px)) !important;
    scroll-padding-bottom: max(4px, calc(var(--home-indicator-clearance, 34px) - 30px));
}

#app-music.music-now-playing-mode .mu-add-to-playlist-row {
    display: flex;
}

.mu-time-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.mu-time-current,
.mu-time-total {
    font-size: 11px;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    min-width: 32px;
    font-variant-numeric: tabular-nums;
}

.mu-time-total {
    text-align: right;
}

.mu-progress-shell {
    flex: 1;
}

.mu-progress-bar {
    position: relative;
    width: 100%;
    height: 24px;
    cursor: pointer;
}

.mu-progress-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
}

.mu-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 6px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, #ff5a6d, #ff9a44);
    border-radius: 999px;
    width: 0%;
    transition: width 0.45s linear;
    box-shadow: 0 0 18px rgba(255, 90, 109, 0.28);
}

.mu-progress-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255, 90, 109, 0.9);
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    pointer-events: none;
    transition: left 0.12s linear;
}

.mu-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.mu-ctrl-btn {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: none;
    background: transparent;
    color: var(--text-primary, #fff);
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.mu-ctrl-btn:active {
    transform: scale(0.92);
}

.mu-play-btn {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, #ff5469, #ff8a3d);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 18px 30px rgba(255, 84, 105, 0.3);
}

.mu-extra-controls {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.mu-icon-btn {
    background: none;
    border: none;
    color: var(--text-tertiary, rgba(255,255,255,0.55));
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s, transform 0.2s;
}

.mu-icon-btn.active {
    color: #ff5a6d;
}

.mu-icon-btn:active {
    transform: scale(0.94);
}

.mu-top-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid rgba(255,255,255,0.12);
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
}

.mu-glass-chip.active,
.mu-top-icon-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 90, 109, 0.94), rgba(175, 82, 222, 0.84));
    box-shadow: 0 14px 26px rgba(255, 90, 109, 0.22);
}

.mu-volume-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    color: var(--text-secondary, rgba(255,255,255,0.74));
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 20px;
}

.mu-volume-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
}

.mu-volume-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mu-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: linear-gradient(90deg,
        #ff5a6d 0%,
        #ff5a6d var(--mu-volume-progress, 70%),
        rgba(255,255,255,0.16) var(--mu-volume-progress, 70%),
        rgba(255,255,255,0.16) 100%);
    border-radius: 999px;
    outline: none;
}

.mu-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.mu-ctrl-shuffle,
.mu-ctrl-repeat {
    font-size: 16px !important;
    color: var(--text-tertiary, rgba(255,255,255,0.46));
    padding: 6px !important;
}

.mu-ctrl-shuffle.active,
.mu-ctrl-repeat.active {
    color: #ff5a6d;
}

.mu-add-to-playlist-row {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4px;
    padding-bottom: 0;
}

.mu-add-to-playlist-row .mu-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
    border: 0.5px solid rgba(255,255,255,0.12);
    color: var(--text-primary, #fff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

#phone-frame:not(.dark-mode) .mu-tabs,
#phone-frame:not(.dark-mode) .mu-glass-chip,
#phone-frame:not(.dark-mode) .mu-top-icon-btn,
#phone-frame:not(.dark-mode) .mu-now-card,
#phone-frame:not(.dark-mode) .mu-playback-card,
#phone-frame:not(.dark-mode) .mu-volume-wrap,
#phone-frame:not(.dark-mode) .mu-add-to-playlist-row .mu-icon-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
    border-color: rgba(16, 24, 40, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 18px 40px rgba(24, 39, 75, 0.1);
}

#phone-frame:not(.dark-mode) .mu-tab {
    color: rgba(29, 31, 40, 0.54);
}

#phone-frame:not(.dark-mode) .mu-tab.active {
    color: #fff;
}

#phone-frame:not(.dark-mode) .mu-top-icon-btn {
    background: linear-gradient(145deg, rgba(255,255,255,0.78), rgba(255,255,255,0.55));
    border-color: rgba(16, 24, 40, 0.08);
}

#phone-frame:not(.dark-mode) .mu-now-backdrop::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(243,244,248,0.35) 50%, rgba(243,244,248,0.7) 100%);
}

#phone-frame:not(.dark-mode) .mu-now-backdrop {
    opacity: 0.38;
    filter: blur(60px) saturate(180%);
}

#phone-frame:not(.dark-mode) .mu-progress-track {
    background: rgba(17, 24, 39, 0.12);
}

#phone-frame:not(.dark-mode) .mu-volume-slider {
    background: linear-gradient(90deg,
        #ff5a6d 0%,
        #ff5a6d var(--mu-volume-progress, 70%),
        rgba(17,24,39,0.14) var(--mu-volume-progress, 70%),
        rgba(17,24,39,0.14) 100%);
}

/* ── For You Tab ── */
.mu-foryou-section {
    padding: 16px 14px calc(110px + env(safe-area-inset-bottom, 0px));
}

.mu-ai-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(252,60,68,0.15), rgba(175,82,222,0.15));
    margin-bottom: 20px;
}
.mu-ai-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fc3c44, #af52de);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}
.mu-ai-banner-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}
.mu-ai-banner-sub {
    font-size: 12px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin-top: 2px;
}

.mu-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mu-ai-badge {
    font-size: 10px;
    font-weight: 600;
    color: #af52de;
    background: rgba(175,82,222,0.12);
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.mu-ai-badge i { font-size: 9px; }

/* Horizontal scroll for recent tracks */
.mu-horizontal-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: none;
}
.mu-horizontal-scroll::-webkit-scrollbar { display: none; }

.mu-recent-card {
    flex-shrink: 0;
    width: 110px;
    cursor: pointer;
    transition: transform 0.15s;
}
.mu-recent-card:active { transform: scale(0.95); }
.mu-recent-card img {
    width: 110px;
    height: 110px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--fill-secondary, rgba(118,118,128,0.24));
    display: block;
}
.mu-recent-card .mu-recent-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mu-recent-card .mu-recent-artist {
    font-size: 10px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Music History — swipe-to-delete vertical list */
.mu-history-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}
.mu-history-row {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2px;
}
.mu-history-swipe-delete {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: width 0.25s ease;
    z-index: 2;
    border-radius: 0 10px 10px 0;
}
.mu-history-swipe-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    position: relative;
    background: var(--card-bg, rgba(255,255,255,0.06));
    transition: transform 0.25s ease;
    z-index: 3;
    cursor: pointer;
    border-radius: 10px;
}
.mu-history-swipe-content:active {
    background: var(--fill-tertiary, rgba(255,255,255,0.1));
}
.mu-history-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--fill-secondary, rgba(118,118,128,0.24));
    flex-shrink: 0;
}
.mu-history-info {
    min-width: 0;
    flex: 1;
}
.mu-history-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mu-history-artist {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

/* Quick Mix buttons */
.mu-quickmix-row {
    display: flex;
    gap: 10px;
    margin-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}
.mu-quickmix-btn {
    flex: 1;
    padding: 14px 12px;
    border: none;
    border-radius: 14px;
    background: var(--fill-tertiary, rgba(118,118,128,0.24));
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.mu-quickmix-btn:active { transform: scale(0.96); opacity: 0.7; }
.mu-quickmix-btn i { color: #fc3c44; }

/* ── Playlists Tab ── */
.mu-playlists-header {
    padding: 12px 14px;
    display: flex;
    justify-content: flex-end;
}
.mu-create-playlist-btn {
    background: #fc3c44;
    border: none;
    border-radius: 20px;
    color: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.15s;
}
.mu-create-playlist-btn:active { transform: scale(0.95); }

.mu-playlists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 14px 14px;
}

.mu-playlist-card {
    background: var(--card-bg, #1c1c1e);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.15s;
    position: relative;
    overflow: hidden;
}
.mu-playlist-card:active { transform: scale(0.96); }
.mu-playlist-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fc3c44, #af52de);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}
.mu-playlist-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mu-playlist-card-count {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 2px;
}
.mu-playlist-card-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,59,48,0.15);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: #ff3b30;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Playlist Detail */
.mu-playlist-detail { padding: 0; }
.mu-playlist-detail.hidden { display: none !important; }
.mu-playlist-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 0.5px solid var(--separator, rgba(255,255,255,0.06));
}
.mu-playlist-back-btn {
    background: none;
    border: none;
    color: #fc3c44;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}
.mu-playlist-detail-name {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}
.mu-playlist-play-all {
    background: #fc3c44;
    border: none;
    border-radius: 16px;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mu-share-active { color: #34c759 !important; }

.mu-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    font-size: 14px;
}

.mu-empty i {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    color: var(--fill-primary, rgba(255,255,255,0.12));
}

/* ═══════════════════════════════════════════════════════
   AGENCYAI INSIGHT CARDS (shared across apps)
   ═══════════════════════════════════════════════════════ */

.ai-insight-card {
    margin: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(175,82,222,0.1), rgba(90,200,250,0.08));
    border: 0.5px solid rgba(175,82,222,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.ai-insight-header {
    font-size: 11px;
    font-weight: 700;
    color: #af52de;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ai-insight-header i { font-size: 12px; }
.ai-insight-text {
    font-size: 13px;
    color: var(--text-primary, #fff);
    line-height: 1.5;
}
.ai-insight-sub {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════
   PICTOGRAM (Social Feed App)
   ═══════════════════════════════════════════════════════ */

#pictogram-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
        radial-gradient(120% 90% at 10% 0%, rgba(255, 55, 95, 0.08), transparent 45%),
        radial-gradient(140% 100% at 100% 0%, rgba(88, 86, 214, 0.1), transparent 50%),
        linear-gradient(180deg, var(--bg-primary, #000) 0%, var(--bg-secondary, #0f1014) 100%);
}

.pg-container {
    flex: 1;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.pg-container::-webkit-scrollbar { display: none; }

/* During livestream: all .screen elements are hidden via pad-base.css.
   The #pg-live-full-overlay (child of #phone-frame, z-index 120000)
   renders above everything.  #call-screen and #modal-overlay are
   kept visible via pad-base.css overrides so calls still work. */

.pg-tab-bar {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    background: var(--card-bg, rgba(255,255,255,0.06));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-shrink: 0;
    margin: 0 16px 8px;
    border-radius: 30px;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.pg-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    padding: 4px 16px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
    transition: color 0.2s;
    font-size: 10px;
    font-weight: 600;
    flex: 1;
    letter-spacing: 0.2px;
}
.pg-tab.active { color: #007aff; }
.pg-tab i { font-size: 22px; }

.pg-feed { padding-bottom: 8px; }

.pg-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pg-section-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary, #fff);
}

.pg-topbar {
    position: sticky;
    top: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin: 16px 16px 0;
    background: var(--card-bg, rgba(255,255,255,0.06));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 22px;
    border: 0.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.pg-topbar-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pg-topbar-wordmark {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-primary, #fff);
}

.pg-topbar-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary, rgba(255,255,255,0.48));
}

.pg-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pg-topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 19px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    background: var(--fill-secondary, rgba(255, 255, 255, 0.08));
    color: var(--text-primary, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
}

.pg-stories-wrap {
    margin-top: 8px;
}

.pg-stories-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 4px;
}

.pg-story-card {
    position: relative;
    min-width: 72px;
    max-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.pg-story-card .pg-story-name {
    width: 100%;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    color: var(--text-secondary, rgba(255, 255, 255, 0.82));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-story-time {
    width: 100%;
    margin-top: -4px;
    font-size: 10px;
    line-height: 1.1;
    text-align: center;
    color: var(--text-tertiary, rgba(255, 255, 255, 0.58));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-story-ring {
    width: 70px;
    height: 70px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd776, #ff3672 45%, #9340ff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.pg-story-card.viewed .pg-story-ring {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.12));
}

.pg-story-card.own .pg-story-ring {
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.9), rgba(90, 200, 250, 0.8));
}

.pg-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(10, 11, 16, 0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-transform: uppercase;
}

.pg-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.pg-story-add {
    position: absolute;
    right: 4px;
    top: 46px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a84ff;
    border: 2px solid rgba(10, 11, 16, 0.92);
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-post {
    margin: 0 14px 16px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

@media (hover: hover) {
    .pg-story-card:hover {
        transform: translateY(-2px);
        filter: brightness(1.03);
    }

    .pg-story-card:hover .pg-story-ring {
        transform: scale(1.03);
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
        filter: saturate(1.06);
    }

    .pg-story-card:hover .pg-story-avatar img {
        transform: scale(1.04);
    }

    .pg-post:hover {
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.14);
        box-shadow: 0 22px 42px rgba(0, 0, 0, 0.2);
    }
}

.pg-post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.pg-follow-toggle.compact {
    flex-shrink: 0;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1;
}

.pg-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e1306c, #c13584);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.pg-username {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    flex: 1;
}

.pg-time {
    font-size: 11px;
    color: var(--text-tertiary, rgba(255,255,255,0.4));
}

.pg-post-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--fill-secondary, rgba(255,255,255,0.06));
    overflow: hidden;
}
.pg-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-post-actions {
    display: flex;
    gap: 12px;
    padding: 10px 14px 4px;
}

.pg-action-btn {
    background: none;
    border: none;
    color: var(--text-primary, #fff);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s;
}
.pg-action-btn:active { transform: scale(1.2); }

.pg-post-likes {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    padding: 0 14px 4px;
}

.pg-post-caption {
    font-size: 13px;
    color: var(--text-primary, #fff);
    padding: 0 14px 10px;
    line-height: 1.4;
}
.pg-post-caption strong {
    font-weight: 600;
    margin-right: 4px;
}

/* Post comments */
.pg-post-comments {
    padding: 0 14px 4px;
}
.pg-comment-item {
    font-size: 13px;
    color: var(--text-primary, #fff);
    line-height: 1.4;
    margin-bottom: 3px;
}
.pg-comment-item strong {
    font-weight: 600;
    margin-right: 4px;
}
.pg-comment-more {
    font-size: 12px;
    color: var(--text-tertiary, rgba(255,255,255,0.5));
    margin-top: 2px;
    cursor: pointer;
}
.pg-comment-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 10px;
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.08));
    margin-top: 4px;
}
.pg-comment-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    padding: 6px 0;
}
.pg-comment-input::placeholder {
    color: var(--text-quaternary, rgba(255,255,255,0.35));
}
.pg-comment-send {
    background: transparent;
    border: none;
    color: #007aff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.15s;
}
.pg-comment-send:active {
    opacity: 0.5;
}

.pg-live-rail {
    display: grid;
    gap: 12px;
}

.pg-live-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pg-live-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.42), rgba(255, 55, 95, 0.38));
}

.pg-live-thumb img,
.pg-live-launcher-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-live-fallback,
.pg-live-preview-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 42%),
        linear-gradient(135deg, rgba(88, 86, 214, 0.9), rgba(255, 55, 95, 0.72));
}

.pg-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.94), rgba(255, 55, 95, 0.88));
    box-shadow: 0 8px 18px rgba(255, 59, 48, 0.22);
}

.pg-live-pill i {
    font-size: 9px;
}

.pg-live-thumb .pg-live-pill {
    position: absolute;
    top: 10px;
    left: 10px;
}

.pg-live-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pg-live-actions {
    display: flex;
    gap: 8px;
}

.pg-live-actions .pg-live-join-btn {
    flex: 1;
}

.pg-search-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.pg-search-profile-card + .pg-search-profile-card {
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.pg-search-profile-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.pg-search-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-search-profile-meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pg-search-profile-meta strong {
    font-size: 14px;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-search-profile-meta span {
    font-size: 12px;
    color: var(--text-tertiary, rgba(255,255,255,0.48));
}

.pg-live-title,
.pg-live-panel-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary, #fff);
}

.pg-live-sub,
.pg-live-panel-sub {
    font-size: 12px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.72));
    line-height: 1.45;
}

.pg-live-join-btn {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    background: linear-gradient(135deg, #ff375f, #af52de);
}

.pg-live-panel {
    padding: 16px;
}

.pg-live-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.pg-live-panel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.pg-live-panel-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, rgba(255,255,255,0.74));
    font-size: 12px;
    line-height: 1.4;
}

.pg-live-panel-chip i {
    color: #ff5d7c;
    flex-shrink: 0;
}

.pg-live-panel-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 55, 95, 0.14), rgba(88, 86, 214, 0.16));
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary, #fff);
    font-size: 12px;
    line-height: 1.5;
}

.pg-live-comments-wrap {
    margin-top: 14px;
}

.pg-live-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: auto;
    padding: 12px 0 0;
}

.pg-live-comment {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.pg-live-comment strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary, #fff);
}

.pg-live-comment span {
    font-size: 13px;
    color: var(--text-secondary, rgba(255, 255, 255, 0.74));
    line-height: 1.45;
    word-break: break-word;
}

.pg-live-comment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 14px;
}

.pg-live-comment-row .social-btn {
    padding-left: 18px;
    padding-right: 18px;
}

.pg-live-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 34px 20px;
}

.pg-live-loading i {
    font-size: 24px;
    color: #ff4d73;
}

.pg-story-compose-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pg-composer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.pg-composer-pill {
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-radius: 18px;
    min-height: 54px;
    color: var(--text-primary, #fff);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.pg-live-launcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.pg-live-launcher-preview {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    overflow: hidden;
    flex-shrink: 0;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 55, 95, 0.22), rgba(88, 86, 214, 0.24));
}

.pg-live-launcher-preview .pg-live-preview-fallback {
    font-size: 22px;
}

.pg-story-compose-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.pg-story-compose-thumb {
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.pg-story-compose-thumb.active {
    border-color: #ff4d73;
    box-shadow: 0 0 0 1px rgba(255, 77, 115, 0.4);
}

.pg-story-compose-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-story-compose-empty {
    min-height: 180px;
    border-radius: 18px;
    border: 0.5px dashed rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, rgba(255, 255, 255, 0.72));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 18px;
}

.pg-story-compose-empty.small {
    min-height: 86px;
    border-radius: 14px;
}

.pg-profile-hero {
    overflow: hidden;
}

.pg-profile-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.pg-profile-story-btn {
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-primary, #fff);
    cursor: pointer;
}

.pg-profile-story-btn span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, rgba(255,255,255,0.72));
}

.pg-profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e1306c, #c13584);
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    border: 3px solid rgba(10, 11, 16, 0.82);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.pg-profile-story-btn.has-story .pg-profile-avatar {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 0 7px rgba(255, 55, 95, 0.62);
}

.pg-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-profile-meta {
    flex: 1;
    min-width: 0;
}

.pg-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.pg-profile-stats div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

.pg-profile-stats strong {
    font-size: 16px;
    color: var(--text-primary, #fff);
}

.pg-profile-stats span {
    font-size: 11px;
    color: var(--text-secondary, rgba(255,255,255,0.72));
}

.pg-profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pg-search-hero {
    padding-top: 16px;
    padding-bottom: 16px;
}

.pg-story-mini-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.pg-story-mini {
    min-width: 78px;
    max-width: 78px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.pg-story-mini img,
.pg-story-mini span {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 55, 95, 0.22), rgba(88, 86, 214, 0.24));
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    border: 2px solid rgba(255, 55, 95, 0.72);
}

.pg-story-mini.viewed img,
.pg-story-mini.viewed span {
    border-color: rgba(255,255,255,0.16);
}

.pg-story-mini strong {
    width: 100%;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary, rgba(255,255,255,0.72));
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-story-mini em {
    width: 100%;
    font-size: 10px;
    font-style: normal;
    color: var(--text-tertiary, rgba(255,255,255,0.56));
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-explore-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.pg-explore-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.05);
}

.pg-explore-tile.large {
    grid-column: span 2;
    grid-row: span 2;
}

.pg-explore-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-explore-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.pg-explore-overlay strong {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}

.pg-explore-overlay span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#pg-story-viewer-overlay {
    position: absolute;
    inset: 0;
    z-index: 960;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease, backdrop-filter 0.24s ease;
}

#pg-story-viewer-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#pg-story-viewer-overlay.closing {
    opacity: 0;
    visibility: hidden;
}

.pg-story-viewer-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: calc(var(--liquid-screen-top-clearance, 82px) - 6px) 12px calc(var(--home-indicator-clearance, 34px) + 18px);
    box-sizing: border-box;
    transform: scale(1.012) translateY(16px);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.22, 0.9, 0.2, 1), opacity 0.2s ease;
}

#pg-story-viewer-overlay.visible .pg-story-viewer-shell {
    transform: scale(1) translateY(0);
    opacity: 1;
}

#pg-story-viewer-overlay.closing .pg-story-viewer-shell {
    transform: scale(0.985) translateY(12px);
    opacity: 0;
}

.pg-story-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
    gap: 6px;
    margin-bottom: 14px;
    padding: 0 6px;
}

.pg-story-progress span {
    position: relative;
    display: block;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pg-story-progress span i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 1));
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.pg-story-progress span.filled i {
    width: 100%;
}

.pg-story-progress span.active i {
    animation: pgStoryProgressFill 5000ms linear forwards;
}

.pg-story-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 6px;
    opacity: 0;
    transform: translateY(-10px);
}

#pg-story-viewer-overlay.visible .pg-story-head {
    animation: pgStoryHeadIn 0.24s ease forwards;
}

.pg-story-head-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3672, #9340ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.pg-story-head-meta {
    flex: 1;
    min-width: 0;
}

.pg-story-head-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pg-story-head-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.74);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pg-story-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pg-story-body {
    position: relative;
    flex: 1;
    min-height: 0;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    opacity: 0;
    transform: translateY(10px) scale(0.992);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

#pg-story-viewer-overlay.visible .pg-story-body {
    animation: pgStoryBodyIn 0.28s cubic-bezier(0.22, 0.9, 0.2, 1) forwards;
}

.pg-story-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.03);
    opacity: 0.94;
    transition: transform 5s linear, opacity 0.2s ease;
}

#pg-story-viewer-overlay.visible .pg-story-body img {
    transform: scale(1);
    opacity: 1;
}

.pg-story-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28%;
    background: transparent;
    border: none;
    cursor: pointer;
}

.pg-story-nav.prev {
    left: 0;
}

.pg-story-nav.next {
    right: 0;
}

@keyframes pgStoryProgressFill {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes pgStoryHeadIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pgStoryBodyIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.992);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#pg-live-full-overlay {
    position: absolute;
    inset: 0;
    z-index: 120000;
    display: none;
    pointer-events: none;
    border-radius: var(--phone-radius, 44px);
    overflow: hidden;
    background: transparent;
    contain: layout paint style;
}

#pg-live-page-mask {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: none;
    pointer-events: none;
}

#pg-live-page-mask.visible {
    display: block;
}

.pg-live-page-panel {
    position: absolute;
    background: rgba(4, 6, 11, 0.96);
}

#pg-live-full-overlay.visible {
    display: block;
    pointer-events: auto;
}

.pg-live-full-cutout {
    position: absolute;
    top: calc(var(--liquid-screen-top-clearance, 82px) - 12px);
    left: 50%;
    width: min(calc(100% - 2px), 358px);
    height: min(calc(100% - (var(--liquid-screen-top-clearance, 82px) + var(--home-indicator-clearance, 34px) + 4px)), 744px);
    transform: translateX(-50%);
    border-radius: 40px;
    background: transparent;
    box-shadow: 0 0 0 2000px rgba(4, 6, 11, 0.97);
    pointer-events: none;
}

.pg-live-full-stage-window {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
    pointer-events: none;
}

.pg-live-full-stage-window.has-frame {
    background: #000;
}

.pg-live-full-stage-window.live-feed {
    background: transparent;
}

.pg-live-full-stage-image,
.pg-live-full-stage-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: saturate(1.14) contrast(1.08) brightness(1.08);
}

.pg-live-full-stage-window::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.015), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.025));
    pointer-events: none;
}

.pg-live-full-stage-window.live-feed::after,
.pg-live-full-stage-window.live-feed .pg-live-full-stage-grid {
    display: none;
}

.pg-live-full-stage-window.waiting {
    background:
        radial-gradient(120% 100% at 20% 10%, rgba(255, 59, 48, 0.08), transparent 42%),
        radial-gradient(120% 100% at 80% 10%, rgba(88, 86, 214, 0.10), transparent 42%),
        transparent;
}

.pg-live-full-stage-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.55));
}

.pg-live-full-stage-window.has-frame .pg-live-full-stage-grid {
    display: none;
}

/* pg-live-full-stage-copy removed — info shown once in pg-live-full-top */

.pg-live-full-shell {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 4px calc(var(--home-indicator-clearance, 34px) + 2px);
    background: transparent;
}

.pg-live-full-shell::before,
.pg-live-full-shell::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
}

.pg-live-full-shell::before {
    top: 0;
    height: 132px;
    background:
        radial-gradient(120% 80% at 50% -8%, rgba(255, 66, 110, 0.04), transparent 36%),
        linear-gradient(180deg, rgba(4, 6, 11, 0.20) 0%, rgba(7, 10, 17, 0.06) 55%, rgba(7, 10, 17, 0) 100%);
}

.pg-live-full-shell::after {
    bottom: 0;
    height: 96px;
    background:
        linear-gradient(180deg, rgba(7, 10, 17, 0) 0%, rgba(7, 10, 17, 0.02) 18%, rgba(4, 6, 11, 0.14) 100%);
}

.pg-live-full-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.pg-live-full-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.95), rgba(255, 55, 95, 0.9));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.pg-live-full-meta {
    flex: 1;
    min-width: 0;
}

.pg-live-full-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-live-full-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-live-full-mode {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pg-live-full-comments {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    max-width: min(420px, calc(100% - 36px));
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 8px;
}

.pg-live-full-comment,
.pg-live-full-empty {
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(10, 10, 14, 0.26);
    color: #fff;
    font-size: 13px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pg-live-full-comment strong {
    margin-right: 6px;
}

.pg-live-full-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.pg-live-full-bottom-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pg-live-full-comment-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.pg-live-full-comment-input {
    flex: 1;
    min-width: 0;
    border: 0.5px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 10, 14, 0.38);
    color: #fff;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pg-live-full-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.pg-live-full-comment-send {
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.95), rgba(94, 92, 255, 0.9));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 14px 26px rgba(94, 92, 255, 0.22);
}

.pg-live-full-comment-send:disabled {
    opacity: 0.58;
    cursor: default;
}

.pg-live-full-end-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.92), rgba(220, 30, 60, 0.95));
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 18px rgba(255, 59, 48, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    pointer-events: auto;
}

.pg-live-full-end-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(255, 59, 48, 0.25);
}

.pg-live-full-hint {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(10, 10, 14, 0.32);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    text-align: center;
}

.pg-live-full-viewfinder {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    overflow: hidden;
    pointer-events: none;
}

.pg-live-full-viewfinder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(88, 86, 214, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 70%, rgba(255, 59, 48, 0.04) 0%, transparent 40%);
    animation: pgLiveViewfinderPulse 4s ease-in-out infinite;
}

@keyframes pgLiveViewfinderPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.pg-live-full-viewfinder-grid {
    position: absolute;
    inset: 60px 10px 60px 10px;
    pointer-events: none;
}

.pg-live-full-viewfinder-grid::before,
.pg-live-full-viewfinder-grid::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
}

.pg-live-full-viewfinder-grid::before {
    top: 33.33%;
    left: 0;
    right: 0;
    height: 1px;
    box-shadow: 0 calc(33.33% + 1px) 0 0 rgba(255, 255, 255, 0.06);
}

.pg-live-full-viewfinder-grid::after {
    left: 33.33%;
    top: 0;
    bottom: 0;
    width: 1px;
    box-shadow: calc(33.33% + 1px) 0 0 0 rgba(255, 255, 255, 0.06);
}

.pg-live-full-rec-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    animation: pgLiveRecPulse 1.5s ease-in-out infinite;
    margin-right: 2px;
}

@keyframes pgLiveRecPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ═══════════════════════════════════════════════════════
   AGENCYCLOUD
   ═══════════════════════════════════════════════════════ */

#app-agencycloud,
#settings-page-cloud {
    --cloud-bg: radial-gradient(circle at top, rgba(76, 198, 255, 0.24), transparent 42%),
        linear-gradient(180deg, #eef8ff 0%, #dfeffc 100%);
    --cloud-card: rgba(255, 255, 255, 0.78);
    --cloud-card-strong: rgba(255, 255, 255, 0.92);
    --cloud-border: rgba(255, 255, 255, 0.62);
    --cloud-shadow: 0 22px 48px rgba(31, 69, 108, 0.12);
    --cloud-text: #0f1d2d;
    --cloud-muted: rgba(55, 76, 96, 0.62);
    --cloud-subtle: rgba(55, 76, 96, 0.38);
    --cloud-accent: #2f7cff;
    background: var(--cloud-bg) !important;
}

#phone-frame.dark-mode #app-agencycloud,
#phone-frame.dark-mode #settings-page-cloud {
    --cloud-bg: radial-gradient(circle at top, rgba(76, 198, 255, 0.16), transparent 42%),
        linear-gradient(180deg, #101522 0%, #0b0f18 100%);
    --cloud-card: rgba(20, 27, 40, 0.82);
    --cloud-card-strong: rgba(26, 34, 49, 0.94);
    --cloud-border: rgba(255, 255, 255, 0.08);
    --cloud-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
    --cloud-text: #eff6ff;
    --cloud-muted: rgba(220, 232, 247, 0.62);
    --cloud-subtle: rgba(220, 232, 247, 0.36);
    --cloud-accent: #4cc6ff;
}

#app-agencycloud .app-header {
    background: linear-gradient(135deg, rgba(76, 198, 255, 0.95), rgba(47, 124, 255, 0.9));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#app-agencycloud .app-title,
#app-agencycloud .back-btn,
#app-agencycloud .back-btn i,
#app-agencycloud .back-btn span {
    color: #fff;
}

.agencycloud-app-content {
    padding: 14px;
    overflow-y: auto;
    box-sizing: border-box;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.agencycloud-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    color: var(--cloud-text);
}

.agencycloud-shell--settings {
    padding: 0;
}

.agencycloud-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(76, 198, 255, 0.18), transparent 34%),
        linear-gradient(145deg, var(--cloud-card-strong), var(--cloud-card));
    border: 1px solid var(--cloud-border);
    box-shadow: var(--cloud-shadow);
    backdrop-filter: blur(22px) saturate(160%);
}

.agencycloud-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.agencycloud-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cloud-muted);
}

.agencycloud-title {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--cloud-text);
}

.agencycloud-subtitle,
.agencycloud-summary,
.agencycloud-usage-copy {
    font-size: 13px;
    line-height: 1.45;
    color: var(--cloud-muted);
}

.agencycloud-summary {
    font-weight: 700;
    color: var(--cloud-text);
}

.agencycloud-tier-badge {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4cc6ff, #2f7cff);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 28px rgba(47, 124, 255, 0.28);
}

.agencycloud-layout {
    display: grid;
    gap: 14px;
}

.agencycloud-stack {
    display: grid;
    gap: 14px;
}

.agencycloud-panel {
    padding: 16px;
    border-radius: 24px;
    background: var(--cloud-card);
    border: 1px solid var(--cloud-border);
    box-shadow: var(--cloud-shadow);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.agencycloud-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.agencycloud-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--cloud-text);
}

.agencycloud-panel-sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--cloud-muted);
}

.agencycloud-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.agencycloud-stat-card,
.agencycloud-side-stat {
    padding: 12px;
    border-radius: 18px;
    background: var(--cloud-card-strong);
    border: 1px solid var(--cloud-border);
}

.agencycloud-stat-card span,
.agencycloud-side-stat span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cloud-muted);
}

.agencycloud-stat-card strong,
.agencycloud-side-stat strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 900;
    color: var(--cloud-text);
}

.agencycloud-progress {
    margin-top: 12px;
    height: 11px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(47, 124, 255, 0.11);
}

.agencycloud-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4cc6ff, #2f7cff);
    transition: width 0.35s ease;
}

.agencycloud-progress-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--cloud-muted);
}

.agencycloud-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.agencycloud-category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid var(--cloud-border);
    border-radius: 20px;
    background: linear-gradient(160deg, var(--cloud-card-strong), var(--cloud-card));
    color: var(--cloud-text);
    box-shadow: 0 16px 34px rgba(31, 69, 108, 0.08);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.agencycloud-category-card:active {
    transform: translateY(1px) scale(0.99);
}

.agencycloud-category-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.agencycloud-category-copy {
    min-width: 0;
}

.agencycloud-category-label {
    font-size: 15px;
    font-weight: 800;
}

.agencycloud-category-meta {
    margin-top: 3px;
    font-size: 12px;
    color: var(--cloud-muted);
}

.agencycloud-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 20px rgba(47, 124, 255, 0.2);
}

.agencycloud-category-value {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.agencycloud-category-action-copy {
    font-size: 12px;
    font-weight: 700;
    color: var(--cloud-accent);
}

.agencycloud-asset-list {
    display: grid;
    gap: 10px;
}

.agencycloud-asset-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--cloud-card-strong);
    border: 1px solid var(--cloud-border);
}

.agencycloud-asset-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 10px 22px rgba(47, 124, 255, 0.2);
}

.agencycloud-asset-copy {
    min-width: 0;
}

.agencycloud-asset-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--cloud-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agencycloud-asset-meta {
    margin-top: 4px;
    font-size: 12px;
    color: var(--cloud-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agencycloud-asset-side {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.agencycloud-asset-badge {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(47, 124, 255, 0.12);
    color: var(--cloud-accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agencycloud-asset-size {
    font-size: 12px;
    font-weight: 800;
    color: var(--cloud-text);
}

.agencycloud-empty {
    padding: 18px;
    border-radius: 18px;
    background: var(--cloud-card-strong);
    border: 1px dashed var(--cloud-border);
    text-align: center;
    color: var(--cloud-muted);
    font-size: 13px;
    line-height: 1.5;
}

.agencycloud-side-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.agencycloud-side-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.agencycloud-side-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cloud-muted);
}

.agencycloud-side-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
}

.agencycloud-side-sub {
    font-size: 13px;
    line-height: 1.45;
    color: var(--cloud-muted);
}

.agencycloud-side-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.agencycloud-actions {
    display: grid;
    gap: 10px;
}

.agencycloud-action-stack {
    display: grid;
    gap: 12px;
}

.agencycloud-sync-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 20px;
    border: 1px solid var(--cloud-border);
    background: linear-gradient(160deg, var(--cloud-card-strong), var(--cloud-card));
    color: var(--cloud-text);
    cursor: pointer;
}

.agencycloud-sync-card.is-active {
    box-shadow: 0 16px 30px rgba(47, 124, 255, 0.16);
}

.agencycloud-sync-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.agencycloud-sync-copy strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--cloud-text);
}

.agencycloud-sync-copy span {
    font-size: 12px;
    line-height: 1.45;
    color: var(--cloud-muted);
}

.agencycloud-sync-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(47, 124, 255, 0.14);
    color: var(--cloud-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.agencycloud-sync-secondary {
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--cloud-border);
    border-radius: 18px;
    background: var(--cloud-card-strong);
    color: var(--cloud-text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.agencycloud-sync-secondary:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.agencycloud-tier-block {
    display: grid;
    gap: 10px;
}

.agencycloud-tier-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agencycloud-tier-block-head strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--cloud-text);
}

.agencycloud-tier-block-head span {
    font-size: 12px;
    color: var(--cloud-muted);
}

.agencycloud-tier-list {
    display: grid;
    gap: 10px;
}

.agencycloud-tier-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--cloud-border);
    background: linear-gradient(165deg, var(--cloud-card-strong), var(--cloud-card));
}

.agencycloud-tier-card.is-disabled {
    opacity: 0.58;
}

.agencycloud-tier-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agencycloud-tier-line strong {
    font-size: 15px;
    font-weight: 800;
    color: var(--cloud-text);
}

.agencycloud-tier-line span {
    font-size: 13px;
    font-weight: 800;
    color: var(--cloud-accent);
}

.agencycloud-tier-meta {
    font-size: 12px;
    line-height: 1.45;
    color: var(--cloud-muted);
}

.agencycloud-tier-btn {
    min-height: 42px;
    padding: 0 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #4cc6ff, #2f7cff);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.agencycloud-tier-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.agencycloud-empty-state {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: var(--cloud-card-strong);
    border: 1px solid var(--cloud-border);
    color: var(--cloud-muted);
    font-size: 13px;
    line-height: 1.45;
}

.agencycloud-empty-state i {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(47, 124, 255, 0.12);
    color: var(--cloud-accent);
}

.agencycloud-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 16px;
    border: none;
    border-radius: 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.agencycloud-action-btn:active {
    transform: translateY(1px) scale(0.99);
}

.agencycloud-action-btn.primary {
    background: linear-gradient(135deg, #4cc6ff, #2f7cff);
    color: #fff;
    box-shadow: 0 16px 30px rgba(47, 124, 255, 0.28);
}

.agencycloud-action-btn.secondary {
    background: var(--cloud-card-strong);
    color: var(--cloud-text);
    border: 1px solid var(--cloud-border);
}

.agencycloud-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

#app-settings #settings-page-cloud .settings-group {
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

body.agency-pad-ui #app-agencycloud .agencycloud-layout,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
    align-items: start;
}

body.agency-pad-ui #app-agencycloud .agencycloud-stack,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.agency-pad-ui #app-agencycloud .agencycloud-category-grid,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.agency-pad-ui #app-agencycloud .agencycloud-title,
body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-title {
    font-size: 30px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-shell--settings {
    gap: 18px;
    padding-right: 4px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-hero {
    padding: 22px 22px 20px;
    min-height: 156px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-summary {
    margin-top: 2px;
    font-size: 15px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-usage-copy {
    font-size: 12px;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-panel {
    overflow: hidden;
}

body.agency-pad-ui #app-settings #settings-page-cloud .agencycloud-side-panel {
    position: sticky;
    top: 0;
}

#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-hero {
    background:
        radial-gradient(circle at top right, rgba(76, 198, 255, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(24, 31, 44, 0.96), rgba(17, 23, 34, 0.94));
}

#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-category-card,
#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-asset-row,
#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-stat-card,
#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-side-stat,
#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-action-btn.secondary {
    background: rgba(22, 28, 40, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
}

#phone-frame.dark-mode #app-settings #settings-page-cloud .agencycloud-tier-badge {
    box-shadow: 0 12px 24px rgba(76, 198, 255, 0.18);
}

@media (max-width: 420px) {
    .agencycloud-hero {
        flex-direction: column;
    }

    .agencycloud-stat-grid,
    .agencycloud-side-stats,
    .agencycloud-category-grid {
        grid-template-columns: 1fr;
    }

    .agencycloud-title {
        font-size: 24px;
    }

    .agencycloud-asset-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .agencycloud-asset-side {
        justify-items: start;
        text-align: left;
    }
}

/* =========================
   Maps App
   ========================= */
.maps-hidden-header {
    display: none !important;
}

.maps-app-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 46px);
    box-sizing: border-box;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 46%),
        linear-gradient(180deg, #eef4f7 0%, #d7e2e9 100%);
}

.maps-stage {
    position: relative;
    flex: 1;
    overflow: hidden;
    background: linear-gradient(180deg, #dce8ef 0%, #cddce6 100%);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.maps-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.45), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 1;
}

.maps-stage.sheet-open .maps-bottom-toolbar {
    opacity: 0;
    transform: translateY(140%);
    pointer-events: none;
}

.maps-world {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.maps-terrain,
.maps-road-overlay,
.maps-blips-layer,
.maps-player-marker,
.maps-waypoint-marker {
    position: absolute;
    inset: 0;
}

.maps-terrain {
    background:
        url('../img/GTAV_ATLUS_2048x2048-1024x1024.png') center center / cover no-repeat,
        linear-gradient(180deg, #d4e2ea 0%, #b9d0df 100%);
    filter: saturate(1.03) contrast(1.02);
}

.maps-road-overlay {
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.24), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    opacity: 0.6;
    pointer-events: none;
}

.maps-topglass {
    position: absolute;
    top: 50px;
    left: 16px;
    right: 92px;
    z-index: 20;
    pointer-events: none;
}

.maps-topglass-inner {
    padding: 14px 16px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.44));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 18px 40px rgba(21, 34, 49, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(26px) saturate(185%);
    -webkit-backdrop-filter: blur(26px) saturate(185%);
}

.maps-street {
    font-size: 18px;
    font-weight: 800;
    color: #11161b;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maps-meta {
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(17, 22, 27, 0.64);
}

.maps-side-rail {
    position: absolute;
    top: 138px;
    right: 14px;
    z-index: 21;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow:
        0 18px 34px rgba(23, 34, 44, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.maps-rail-btn {
    width: 54px;
    height: 63px;
    border: none;
    border-bottom: 1px solid rgba(16, 16, 18, 0.1);
    background: transparent;
    color: #20242b;
    font-size: 21px;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.maps-rail-btn:last-child {
    border-bottom: none;
}

.maps-rail-btn:active,
.maps-rail-btn.active {
    background: rgba(255, 255, 255, 0.52);
    color: #000;
    transform: scale(0.98);
}

.maps-center-reticle {
    opacity: 0;
    pointer-events: none;
}

.maps-blips-layer {
    z-index: 4;
}

.maps-blip {
    position: absolute;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%);
    border: none;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 10px 22px rgba(16, 22, 28, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.maps-blip i {
    font-size: 10px;
}

.maps-blip.poi {
    background: linear-gradient(135deg, rgba(12, 122, 255, 0.96), rgba(78, 194, 255, 0.9));
}

.maps-blip.vehicle {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.96), rgba(48, 209, 88, 0.9));
}

.maps-blip.emergency {
    background: linear-gradient(135deg, rgba(255, 88, 66, 0.98), rgba(255, 59, 48, 0.92));
}

.maps-waypoint-marker {
    z-index: 6;
    pointer-events: none;
}

.maps-waypoint-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -100%);
    display: none;
    color: #7444ff;
    font-size: 15px;
    text-shadow: 0 12px 28px rgba(72, 56, 160, 0.28);
}

.maps-waypoint-dot.active {
    display: block;
    animation: mapsWaypointPulse 1.2s ease-in-out infinite;
}

@keyframes mapsWaypointPulse {
    0%, 100% { transform: translate(-50%, -100%) scale(1); }
    50% { transform: translate(-50%, -100%) scale(1.08); }
}

.maps-player-marker {
    z-index: 7;
    pointer-events: none;
}

.maps-player-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #0a84ff, #5ac8fa);
    box-shadow:
        0 16px 28px rgba(10, 132, 255, 0.24),
        0 0 0 4px rgba(255, 255, 255, 0.92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maps-player-dot i {
    font-size: 10px;
    transform-origin: center;
}

.maps-bottom-toolbar {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        0 18px 36px rgba(21, 34, 49, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(26px) saturate(185%);
    -webkit-backdrop-filter: blur(26px) saturate(185%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.maps-nav-tab {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 10px 8px;
    border-radius: 22px;
    color: rgba(17, 22, 27, 0.68);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.maps-nav-tab i {
    font-size: 18px;
}

.maps-nav-tab.active {
    background: rgba(255, 255, 255, 0.72);
    color: #11161b;
    box-shadow:
        0 10px 20px rgba(26, 39, 56, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.maps-nav-tab:active {
    transform: scale(0.98);
}

.maps-sheet {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 24;
    padding: 10px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    border-radius: 34px 34px 30px 30px;
    background: linear-gradient(180deg, rgba(252, 252, 253, 0.84), rgba(244, 245, 247, 0.78));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow:
        0 24px 44px rgba(17, 28, 41, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(32px) saturate(185%);
    -webkit-backdrop-filter: blur(32px) saturate(185%);
    transform: translateY(calc(100% + 34px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
}

.maps-sheet.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.maps-sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: rgba(17, 22, 27, 0.16);
    margin: 0 auto 10px;
}

.maps-sheet-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px 10px 16px;
}

.maps-sheet-title {
    font-size: 17px;
    font-weight: 800;
    color: #101419;
}

.maps-sheet-subtitle {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(16, 20, 25, 0.58);
}

.maps-sheet-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(17, 22, 27, 0.1);
    color: rgba(17, 22, 27, 0.54);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.maps-sheet-content {
    max-height: min(380px, 52vh);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    padding: 2px 14px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.maps-sheet-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.maps-sheet-row .maps-sheet-item {
    flex: 1;
}

.maps-sheet-card,
.maps-sheet-item,
.maps-share-button {
    border-radius: 24px;
}

.maps-sheet-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.maps-route-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.maps-route-copy {
    min-width: 0;
}

.maps-route-title {
    font-size: 14px;
    font-weight: 800;
    color: #101419;
}

.maps-route-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(16, 20, 25, 0.58);
}

.maps-route-clear {
    border: none;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(116, 68, 255, 0.12);
    color: #5b3eff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.maps-sheet-item {
    width: 100%;
    border: none;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
}

.maps-sheet-delete {
    width: 48px;
    min-width: 48px;
    border: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    color: rgba(17, 22, 27, 0.62);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.maps-sheet-delete:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.74);
    color: #101419;
}

.maps-sheet-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--maps-accent, #0a84ff), rgba(255, 255, 255, 0.42));
    box-shadow: 0 12px 24px rgba(18, 29, 40, 0.16);
}

.maps-sheet-item-copy {
    flex: 1;
    min-width: 0;
}

.maps-sheet-item-title {
    font-size: 15px;
    font-weight: 800;
    color: #11161b;
}

.maps-sheet-item-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(17, 22, 27, 0.56);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.maps-sheet-item-action {
    flex-shrink: 0;
    color: rgba(17, 22, 27, 0.42);
    font-size: 17px;
}

.maps-sheet-item-action.route {
    color: #0a84ff;
}

.maps-empty-state {
    padding: 18px 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.maps-empty-bubbles {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
}

.maps-empty-bubble {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #ffb16a, #ff6a88);
    box-shadow: 0 12px 24px rgba(24, 34, 47, 0.18);
}

.maps-empty-bubble.center {
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #5c8dff, #9b7cff);
}

.maps-empty-text {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(17, 22, 27, 0.54);
    max-width: 240px;
}

.maps-share-button {
    width: 100%;
    border: none;
    height: 52px;
    background: linear-gradient(135deg, #0a84ff, #4f8dff);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(10, 132, 255, 0.22);
}

/* ═══════════════════════════════════════════════════════
   BUSINESS MANAGEMENT APP
   ═══════════════════════════════════════════════════════ */

.biz-app-content {
    padding: 0 !important;
    overflow: hidden;
}

.biz-root {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ── Shell (like mail-liquid-shell) ── */
.biz-shell {
    position: relative;
    min-height: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: var(--liquid-screen-top-clearance, 78px) 14px calc(var(--home-indicator-clearance, 34px) + 16px);
    overflow-y: auto;
    overflow-x: hidden;
}

.biz-shell::-webkit-scrollbar { display: none; }

.biz-shell::before,
.biz-shell::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(56px);
    pointer-events: none;
}

.biz-shell::before {
    width: 180px;
    height: 180px;
    top: 34px;
    right: -58px;
    background: rgba(48, 209, 88, 0.14);
}

.biz-shell::after {
    width: 170px;
    height: 170px;
    bottom: 84px;
    left: -84px;
    background: rgba(10, 132, 255, 0.08);
}

/* ── Topbar ── */
.biz-topbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-height: 44px;
    position: relative;
    z-index: 1;
}

.biz-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ── Liquid buttons (shared glass style) ── */
.biz-round,
.biz-pill,
.biz-fab {
    border: 0.5px solid rgba(48, 209, 88, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 62%),
        linear-gradient(135deg, rgba(48, 209, 88, 0.18), rgba(18, 18, 24, 0.86) 74%);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 0 0 1px rgba(48, 209, 88, 0.05);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    font-family: Inter, sans-serif;
}

.biz-round:active,
.biz-pill:active,
.biz-fab:active {
    transform: scale(0.96);
}

.biz-round {
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
}

.biz-pill {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

/* ── Hero ── */
.biz-hero {
    position: relative;
    z-index: 1;
    padding: 6px 0 2px;
}

.biz-hero h1 {
    font-size: 34px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0;
}

.biz-hero p {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.44);
}

/* ── Stats chips row ── */
.biz-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.biz-stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    font-family: Inter, sans-serif;
}

.biz-stat-chip i {
    font-size: 12px;
    color: #30d158;
}

/* ── Business list (hub) ── */
.biz-board {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.biz-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 22px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease;
}

.biz-row:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.08);
}

.biz-row-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.24), rgba(48, 209, 88, 0.08));
    border: 0.5px solid rgba(48, 209, 88, 0.18);
    overflow: hidden;
}

.biz-row-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.biz-row-copy {
    min-width: 0;
}

.biz-row-copy strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biz-row-meta {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.44);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biz-row-side {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 14px;
}

.biz-row-badge {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #30d158;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── Empty state ── */
.biz-empty {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 240px;
    text-align: center;
    color: rgba(255, 255, 255, 0.42);
    font-size: 15px;
}

.biz-empty i {
    font-size: 38px;
    color: rgba(255, 255, 255, 0.18);
}

/* ── Detail view: business dashboard ── */
.biz-detail-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.biz-detail-logo {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, rgba(48, 209, 88, 0.28), rgba(48, 209, 88, 0.08));
    border: 0.5px solid rgba(48, 209, 88, 0.2);
    overflow: hidden;
    flex-shrink: 0;
}

.biz-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.biz-detail-info h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.biz-detail-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.44);
}

/* ── Tab navigation ── */
.biz-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.biz-tab {
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: rgba(255, 255, 255, 0.54);
    font-size: 13px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.18s ease, color 0.18s ease;
}

.biz-tab i { font-size: 16px; }

.biz-tab.active {
    background: rgba(48, 209, 88, 0.16);
    color: #30d158;
}

/* ── Finance card ── */
.biz-finance-card {
    position: relative;
    z-index: 1;
    padding: 22px;
    border-radius: 22px;
    border: 0.5px solid rgba(48, 209, 88, 0.14);
    background:
        radial-gradient(circle at top right, rgba(48, 209, 88, 0.12), transparent 40%),
        linear-gradient(180deg, rgba(32, 36, 42, 0.92), rgba(18, 19, 24, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.biz-finance-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.44);
    margin: 0 0 6px;
}

.biz-finance-amount {
    font-size: 42px;
    font-weight: 200;
    letter-spacing: -0.04em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.biz-finance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.biz-finance-stat {
    text-align: center;
}

.biz-finance-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.biz-finance-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 2px;
}

/* ── Section panels ── */
.biz-section {
    position: relative;
    z-index: 1;
    margin-top: 4px;
}

.biz-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.biz-card {
    border-radius: 22px;
    border: 0.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.biz-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.14s ease;
}

.biz-card-row:first-child {
    border-top: 0;
}

.biz-card-row:active {
    background: rgba(255, 255, 255, 0.06);
}

.biz-card-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.biz-card-row-left i {
    width: 28px;
    text-align: center;
    font-size: 16px;
    color: #30d158;
}

.biz-card-row-right {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 14px;
}

.biz-card-row-right .value {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
}

/* ── Employee list ── */
.biz-emp-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.biz-emp-row:first-child { border-top: 0; }

.biz-emp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.62);
}

.biz-emp-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.biz-emp-role {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 1px;
}

.biz-emp-actions {
    display: flex;
    gap: 6px;
}

.biz-emp-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}

.biz-emp-btn.danger { color: #ff453a; }

/* ── Product list ── */
.biz-product-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.biz-product-row:first-child { border-top: 0; }

.biz-product-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.52);
}

.biz-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.biz-product-price {
    font-size: 13px;
    color: #30d158;
    font-weight: 600;
    margin-top: 1px;
}

.biz-product-stock {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Overlay / Sheet ── */
.biz-overlay {
    position: absolute;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.biz-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.biz-sheet {
    width: 100%;
    max-height: 88%;
    border-radius: 28px 28px 0 0;
    background: rgba(28, 28, 30, 0.98);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    padding: 24px 20px calc(var(--home-indicator-clearance, 34px) + 20px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transform: translateY(20px);
    transition: transform 0.28s ease;
}

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

.biz-sheet::-webkit-scrollbar { display: none; }

.biz-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.biz-sheet-head h2 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.biz-sheet-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.52);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.biz-sheet-copy {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.45;
}

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

.biz-field label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.52);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.biz-field input,
.biz-field select,
.biz-field textarea {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 16px;
    font-family: Inter, sans-serif;
    outline: none;
    transition: border-color 0.18s ease;
}

.biz-field textarea {
    min-height: 88px;
    padding: 14px 16px;
    resize: none;
}

.biz-field input:focus,
.biz-field select:focus,
.biz-field textarea:focus {
    border-color: rgba(48, 209, 88, 0.42);
}

.biz-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='rgba(255,255,255,0.4)' d='M4.5 6l3.5 4 3.5-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 38px;
}

.biz-field select option {
    background: #1c1c1e;
    color: #fff;
}

/* Logo upload */
.biz-logo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.biz-logo-preview {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: rgba(255, 255, 255, 0.24);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
}

.biz-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.biz-logo-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.4;
}

/* Sheet buttons */
.biz-sheet-actions {
    display: flex;
    gap: 10px;
}

.biz-sheet-btn {
    flex: 1;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    transition: transform 0.16s ease;
}

.biz-sheet-btn:active { transform: scale(0.97); }

.biz-sheet-btn.primary {
    background: #30d158;
    color: #fff;
}

.biz-sheet-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
}

.biz-sheet-btn.danger {
    background: rgba(255, 69, 58, 0.16);
    color: #ff453a;
}

/* ── Status message ── */
.biz-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
    min-height: 20px;
}

.biz-status.error { color: #ff453a; }
.biz-status.success { color: #30d158; }

/* ── Category selector (create business) ── */
.biz-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.biz-cat-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 16px;
    border: 1.5px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.biz-cat-option.active {
    border-color: #30d158;
    background: rgba(48, 209, 88, 0.08);
}

.biz-cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.biz-cat-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
    text-align: center;
    line-height: 1.2;
}

/* ── Light mode overrides ── */
#phone-frame:not(.dark-mode) .biz-shell::before {
    background: rgba(48, 209, 88, 0.1);
}

#phone-frame:not(.dark-mode) .biz-shell::after {
    background: rgba(10, 132, 255, 0.06);
}

#phone-frame:not(.dark-mode) .biz-round,
#phone-frame:not(.dark-mode) .biz-pill,
#phone-frame:not(.dark-mode) .biz-fab {
    border-color: rgba(48, 209, 88, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.5) 62%),
        linear-gradient(135deg, rgba(48, 209, 88, 0.12), rgba(242, 242, 247, 0.92) 74%);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-hero h1 {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-hero p {
    color: rgba(0, 0, 0, 0.44);
}

#phone-frame:not(.dark-mode) .biz-stat-chip {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.62);
}

#phone-frame:not(.dark-mode) .biz-row {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
}

#phone-frame:not(.dark-mode) .biz-row:active {
    background: rgba(255, 255, 255, 0.8);
}

#phone-frame:not(.dark-mode) .biz-row-copy strong {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-row-meta {
    color: rgba(0, 0, 0, 0.44);
}

#phone-frame:not(.dark-mode) .biz-row-side {
    color: rgba(0, 0, 0, 0.28);
}

#phone-frame:not(.dark-mode) .biz-empty {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-empty i {
    color: rgba(0, 0, 0, 0.14);
}

#phone-frame:not(.dark-mode) .biz-detail-info h2 {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-detail-info p {
    color: rgba(0, 0, 0, 0.44);
}

#phone-frame:not(.dark-mode) .biz-tabs {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
}

#phone-frame:not(.dark-mode) .biz-tab {
    color: rgba(0, 0, 0, 0.46);
}

#phone-frame:not(.dark-mode) .biz-tab.active {
    background: rgba(48, 209, 88, 0.12);
    color: #248a3d;
}

#phone-frame:not(.dark-mode) .biz-finance-card {
    background:
        radial-gradient(circle at top right, rgba(48, 209, 88, 0.08), transparent 40%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 242, 247, 0.98));
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#phone-frame:not(.dark-mode) .biz-finance-label {
    color: rgba(0, 0, 0, 0.44);
}

#phone-frame:not(.dark-mode) .biz-finance-amount {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-finance-row {
    border-top-color: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .biz-finance-stat-val {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-finance-stat-label {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-section-title {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-card {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
}

#phone-frame:not(.dark-mode) .biz-card-row {
    color: #000;
    border-top-color: rgba(0, 0, 0, 0.04);
}

#phone-frame:not(.dark-mode) .biz-card-row:active {
    background: rgba(0, 0, 0, 0.03);
}

#phone-frame:not(.dark-mode) .biz-card-row-right {
    color: rgba(0, 0, 0, 0.28);
}

#phone-frame:not(.dark-mode) .biz-card-row-right .value {
    color: rgba(0, 0, 0, 0.54);
}

#phone-frame:not(.dark-mode) .biz-emp-avatar {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.52);
}

#phone-frame:not(.dark-mode) .biz-emp-name {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-emp-role {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-emp-btn {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-product-name {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-product-icon {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-product-stock {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-overlay {
    background: rgba(242, 242, 247, 0.72);
}

#phone-frame:not(.dark-mode) .biz-sheet {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .biz-sheet-head h2 {
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-sheet-close {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-sheet-copy {
    color: rgba(0, 0, 0, 0.52);
}

#phone-frame:not(.dark-mode) .biz-field label {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .biz-field input,
#phone-frame:not(.dark-mode) .biz-field select,
#phone-frame:not(.dark-mode) .biz-field textarea {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-field select option {
    background: #fff;
    color: #000;
}

#phone-frame:not(.dark-mode) .biz-logo-preview {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.2);
}

#phone-frame:not(.dark-mode) .biz-logo-hint {
    color: rgba(0, 0, 0, 0.38);
}

#phone-frame:not(.dark-mode) .biz-sheet-btn.secondary {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.54);
}

#phone-frame:not(.dark-mode) .biz-cat-option {
    background: rgba(0, 0, 0, 0.03);
}

#phone-frame:not(.dark-mode) .biz-cat-label {
    color: rgba(0, 0, 0, 0.54);
}

/* Clock App final surface */
.clock-app-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 16px calc(var(--app-content-bottom-clearance, 34px) + 16px);
    background: #000;
    color: #fff;
}

.clock-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
}

.clock-toolbar-btn,
.clock-toolbar-icon {
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    background: #1b1b1d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.clock-toolbar-btn {
    min-width: 144px;
    padding: 0 22px;
    font-size: 24px;
    font-weight: 500;
}

.clock-toolbar-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.clock-toolbar-btn.hidden,
.clock-toolbar-icon.hidden {
    visibility: hidden;
    pointer-events: none;
}

.clock-content {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    padding: 0;
}

.clock-tab-content {
    display: none;
    height: 100%;
}

.clock-tab-content.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.clock-page {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    overflow: hidden;
}

.clock-world-page,
.clock-alarm-page {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.clock-page-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.clock-page-title {
    font-size: 64px;
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 800;
    color: #fff;
}

.clock-page-subtitle {
    min-height: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.44);
}

.clock-world-list,
.clock-alarm-list,
.clock-stopwatch-laps {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.clock-world-list::-webkit-scrollbar,
.clock-alarm-list::-webkit-scrollbar,
.clock-stopwatch-laps::-webkit-scrollbar,
.clock-timer-wheel::-webkit-scrollbar {
    display: none;
}

.clock-world-row,
.clock-alarm-row,
.clock-lap-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.clock-world-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
}

.clock-row-gutter {
    width: 28px;
    height: 28px;
}

.clock-row-delete {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #ff453a;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.clock-world-copy {
    min-width: 0;
}

.clock-world-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.46);
}

.clock-world-city {
    margin-top: 6px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 600;
    color: #fff;
}

.clock-world-time {
    font-size: 74px;
    line-height: 0.92;
    font-weight: 200;
    letter-spacing: -0.06em;
    color: #fff;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.clock-alarm-hero {
    padding: 20px 0 8px;
}

.clock-alarm-hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.clock-alarm-hero-time {
    margin-top: 18px;
    font-size: 92px;
    line-height: 0.88;
    letter-spacing: -0.08em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.88);
    font-variant-numeric: tabular-nums;
}

.clock-alarm-hero-copy {
    margin-top: 10px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.42);
}

.clock-alarm-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
}

.clock-alarm-main {
    min-width: 0;
    cursor: pointer;
}

.clock-alarm-time {
    font-size: 82px;
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.82);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.clock-alarm-label-inline {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0;
}

.clock-alarm-label {
    margin-top: 8px;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.42);
}

.clock-alarm-toggle {
    width: 64px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(120, 120, 128, 0.42);
    padding: 4px;
    cursor: pointer;
    transition: background 0.22s ease;
}

.clock-alarm-toggle span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.24);
    transition: transform 0.22s ease;
}

.clock-alarm-toggle.active {
    background: #7b7b84;
}

.clock-alarm-toggle.active span {
    transform: translateX(26px);
}

.clock-stopwatch-page,
.clock-timer-page {
    justify-content: center;
}

.clock-stopwatch-time,
.clock-timer-time {
    text-align: center;
    font-size: 112px;
    line-height: 0.92;
    letter-spacing: -0.08em;
    font-weight: 200;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-stopwatch-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.clock-stopwatch-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.clock-stopwatch-dots span.active {
    background: rgba(255, 255, 255, 0.92);
}

.clock-stopwatch-laps {
    min-height: 0;
    flex: 1;
    padding-top: 4px;
    overflow: hidden;
    overflow-y: auto;
}

.clock-lap-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.clock-lap-row strong {
    font-size: 22px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.clock-lap-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.48);
}

.clock-action-pair {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    margin-top: auto;
}

.clock-circle-btn {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    border: 0;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.16s ease;
}

.clock-circle-btn:active {
    transform: scale(0.97);
}

.clock-circle-btn.secondary {
    background: #1c1c1e;
    color: rgba(255, 255, 255, 0.54);
}

.clock-circle-btn.primary {
    background: rgba(40, 90, 34, 0.96);
    color: #73df6b;
}

.clock-timer-picker-shell {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
}

.clock-timer-picker-highlight {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 58px;
    transform: translateY(-50%);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    pointer-events: none;
}

.clock-timer-wheel-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.clock-timer-wheel-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.42);
}

.clock-timer-wheel {
    height: 286px;
    width: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.clock-wheel-spacer {
    height: 117px;
}

.clock-wheel-item {
    width: 100%;
    height: 52px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.18);
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.clock-wheel-item.active {
    color: #fff;
    font-size: 48px;
    font-weight: 500;
}

.clock-timer-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.clock-preset-chip {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c1c1e;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.clock-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 15px;
    text-align: center;
}

.clock-empty-state i {
    font-size: 26px;
}

.clock-tabs-bottom {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(28, 28, 30, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.clock-tab {
    min-height: 92px;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.clock-tab i {
    font-size: 30px;
}

.clock-tab span {
    line-height: 1;
}

.clock-tab.active {
    background: #3a3a3c;
    color: #f6b35b;
}

.clock-world-page {
    gap: 20px;
}

.clock-world-hero-card {
    padding: 26px 26px 24px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(91, 188, 255, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(31, 35, 44, 0.96), rgba(18, 19, 24, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.clock-world-hero-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.46);
}

.clock-world-hero-city {
    margin-top: 8px;
    font-size: 30px;
    line-height: 1.02;
    font-weight: 700;
    color: #fff;
}

.clock-world-hero-time {
    margin-top: 14px;
    font-size: 108px;
    line-height: 0.9;
    letter-spacing: -0.1em;
    font-weight: 200;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-empty-state.compact {
    min-height: 120px;
    justify-content: center;
    padding: 12px 0 4px;
}

.clock-world-copy[data-clock-promote-city] {
    cursor: pointer;
}

.clock-alarm-hero {
    position: relative;
    padding: 22px 0 10px;
}

.clock-alarm-hero-action {
    margin-top: 18px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 171, 88, 0.16);
    color: #ffb35d;
    font-size: 18px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
}

.clock-timer-settings {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(28, 28, 30, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.clock-timer-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 74px;
    padding: 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    font-family: Inter, sans-serif;
}

.clock-timer-settings-row:first-child {
    border-top: 0;
}

.clock-timer-settings-row.button {
    width: 100%;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
}

.clock-timer-settings-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.52);
    font-size: 18px;
    text-align: right;
    font-family: Inter, sans-serif;
}

.clock-timer-settings-row strong {
    color: rgba(255, 255, 255, 0.68);
    font-size: 18px;
    font-weight: 500;
}

.clock-timer-recent-title {
    margin-top: 2px;
}

.clock-alarm-overlay {
    position: absolute;
    inset: 0;
    z-index: 4500;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px 18px 28px;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.clock-alarm-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.clock-alarm-overlay-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
}

.clock-alarm-overlay-capsule {
    width: min(74%, 260px);
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 18px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.03);
}

.clock-alarm-overlay-kicker {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.68);
}

.clock-alarm-overlay-time {
    font-size: 122px;
    line-height: 0.9;
    letter-spacing: -0.08em;
    font-weight: 200;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.clock-alarm-overlay-snooze {
    width: 100%;
    min-height: 96px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffa649, #f89a42);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    font-family: Inter, sans-serif;
    cursor: pointer;
    box-shadow: 0 18px 44px rgba(248, 154, 66, 0.28);
}

.clock-alarm-slide {
    position: relative;
    width: 100%;
    min-height: 110px;
    border-radius: 34px;
    background: rgba(28, 28, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}

.clock-alarm-slide-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: radial-gradient(circle at left center, rgba(255, 183, 92, 0.24), transparent 68%);
    pointer-events: none;
}

.clock-alarm-slide-copy {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.38);
    pointer-events: none;
}

.clock-alarm-slide-handle {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 86px;
    height: 86px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 28px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 26px rgba(0,0,0,0.24);
    cursor: pointer;
    touch-action: none;
}

/* ═══════════════════════════════════════════════════════
   CLOCK APP – Light / White Mode overrides
   ═══════════════════════════════════════════════════════ */

#phone-frame:not(.dark-mode) .clock-app-content {
    background: #f2f2f7 !important;
}

#phone-frame:not(.dark-mode) .clock-app-root {
    background: #f2f2f7;
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-shell {
    background: #f2f2f7;
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-screen-header {
    background: rgba(242, 242, 247, 0.92);
}

#phone-frame:not(.dark-mode) .clock-toolbar-btn,
#phone-frame:not(.dark-mode) .clock-toolbar-icon {
    background: #fff;
    color: #000;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .clock-page-title {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-page-subtitle {
    color: rgba(0, 0, 0, 0.44);
}

#phone-frame:not(.dark-mode) .clock-world-row,
#phone-frame:not(.dark-mode) .clock-alarm-row,
#phone-frame:not(.dark-mode) .clock-lap-row {
    border-top-color: rgba(0, 0, 0, 0.1);
}

#phone-frame:not(.dark-mode) .clock-world-meta {
    color: rgba(0, 0, 0, 0.46);
}

#phone-frame:not(.dark-mode) .clock-world-city {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-world-time {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-alarm-hero-kicker {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-alarm-hero-time {
    color: rgba(0, 0, 0, 0.88);
}

#phone-frame:not(.dark-mode) .clock-alarm-hero-copy {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .clock-alarm-time {
    color: rgba(0, 0, 0, 0.82);
}

#phone-frame:not(.dark-mode) .clock-alarm-label,
#phone-frame:not(.dark-mode) .clock-alarm-label-inline {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .clock-alarm-toggle {
    background: rgba(120, 120, 128, 0.22);
}

#phone-frame:not(.dark-mode) .clock-alarm-toggle span {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}

#phone-frame:not(.dark-mode) .clock-stopwatch-time,
#phone-frame:not(.dark-mode) .clock-timer-time {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-stopwatch-dots span {
    background: rgba(0, 0, 0, 0.18);
}

#phone-frame:not(.dark-mode) .clock-stopwatch-dots span.active {
    background: rgba(0, 0, 0, 0.82);
}

#phone-frame:not(.dark-mode) .clock-lap-label {
    color: rgba(0, 0, 0, 0.48);
}

#phone-frame:not(.dark-mode) .clock-lap-row strong {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-circle-btn.secondary {
    background: #e5e5ea;
    color: rgba(0, 0, 0, 0.54);
}

#phone-frame:not(.dark-mode) .clock-circle-btn.primary {
    background: rgba(52, 199, 89, 0.18);
    color: #248a3d;
}

#phone-frame:not(.dark-mode) .clock-timer-picker-highlight {
    background: rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .clock-timer-wheel-label {
    color: rgba(0, 0, 0, 0.42);
}

#phone-frame:not(.dark-mode) .clock-wheel-item {
    color: rgba(0, 0, 0, 0.18);
}

#phone-frame:not(.dark-mode) .clock-wheel-item.active {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-preset-chip {
    background: #fff;
    color: rgba(0, 0, 0, 0.82);
    border-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .clock-stopwatch-laps,
#phone-frame:not(.dark-mode) .clock-list-card,
#phone-frame:not(.dark-mode) .clock-empty-card,
#phone-frame:not(.dark-mode) .clock-focus-card,
#phone-frame:not(.dark-mode) .clock-timer-wheel-card,
#phone-frame:not(.dark-mode) .clock-settings-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.04);
}

#phone-frame:not(.dark-mode) .clock-empty-state {
    color: rgba(0, 0, 0, 0.46);
}

#phone-frame:not(.dark-mode) .clock-tabs-bottom {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.06);
}

#phone-frame:not(.dark-mode) .clock-tab {
    color: rgba(0, 0, 0, 0.62);
}

#phone-frame:not(.dark-mode) .clock-tab.active {
    background: #e5e5ea;
    color: #d4871e;
}

#phone-frame:not(.dark-mode) .clock-world-hero-card {
    background:
        radial-gradient(circle at top right, rgba(91, 188, 255, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 242, 247, 0.98));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(0, 0, 0, 0.04);
}

#phone-frame:not(.dark-mode) .clock-world-hero-meta {
    color: rgba(0, 0, 0, 0.46);
}

#phone-frame:not(.dark-mode) .clock-world-hero-city {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-world-hero-time {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-timer-settings {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 4px rgba(0, 0, 0, 0.04);
}

#phone-frame:not(.dark-mode) .clock-timer-settings-row {
    color: #000;
    border-top-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .clock-timer-settings-row.button {
    border-top-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .clock-timer-settings-row input {
    color: rgba(0, 0, 0, 0.52);
}

#phone-frame:not(.dark-mode) .clock-timer-settings-row strong {
    color: rgba(0, 0, 0, 0.68);
}

#phone-frame:not(.dark-mode) .clock-alarm-overlay {
    background: rgba(242, 242, 247, 0.92);
}

#phone-frame:not(.dark-mode) .clock-alarm-overlay-capsule {
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.03);
}

#phone-frame:not(.dark-mode) .clock-alarm-overlay-kicker {
    color: rgba(0, 0, 0, 0.68);
}

#phone-frame:not(.dark-mode) .clock-alarm-overlay-time {
    color: #000;
}

#phone-frame:not(.dark-mode) .clock-alarm-slide {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.08);
}

#phone-frame:not(.dark-mode) .clock-alarm-slide-copy {
    color: rgba(0, 0, 0, 0.38);
}

#phone-frame:not(.dark-mode) .clock-alarm-slide-handle {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Cross-Promotion Card */
.settings-cross-promo {
    margin: 16px 0;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(76, 198, 255, 0.08) 0%, rgba(125, 103, 255, 0.08) 100%);
    border: 1px solid rgba(76, 198, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}
.settings-cross-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #4cc6ff, #7d67ff);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.settings-cross-promo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4cc6ff, #7d67ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.settings-cross-promo-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.settings-cross-promo-sub {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin-top: 2px;
}
.settings-cross-promo-offer {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(76, 198, 255, 0.06);
    border: 1px solid rgba(76, 198, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.settings-cross-promo-discount {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #4cc6ff, #7d67ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.settings-cross-promo-code {
    font-size: 13px;
    font-weight: 700;
    font-family: 'SF Mono', 'Menlo', monospace;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}
.settings-cross-promo-exclusive {
    font-size: 10px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   ICON STYLE SELECTOR (Settings > Appearance)
   ═══════════════════════════════════════════════════════ */
.icon-style-selector {
    display: flex;
    gap: 12px;
    padding: 8px 0;
}
.icon-style-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 10px 6px;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}
.icon-style-option.active {
    border-color: var(--tint, #007aff);
    background: rgba(0, 122, 255, 0.06);
}
.icon-style-preview {
    display: flex;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 12px;
    background: var(--fill-tertiary, rgba(120,120,128,0.12));
}
.icon-style-mini {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.icon-style-preview-liquidglass .icon-style-mini {
    background: linear-gradient(165deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.15) 100%);
    backdrop-filter: blur(10px) saturate(2);
    -webkit-backdrop-filter: blur(10px) saturate(2);
    border: 0.5px solid rgba(255,255,255,0.6);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.8), inset 0 -0.5px 1px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.06);
}
.icon-style-preview-liquidglass .icon-style-mini::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, var(--icon-color-dark, transparent) 0%, transparent 70%),
        linear-gradient(145deg, var(--icon-color, transparent), var(--icon-color-dark, transparent));
    opacity: 0.35;
    border-radius: inherit;
}
.icon-style-preview-liquidglass .icon-style-mini::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 120% 50% at 50% -10%, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.3) 30%, transparent 55%);
    border-radius: inherit;
}
.icon-style-preview-liquidglass .icon-style-mini i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.4)) drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}
#phone-frame.dark-mode .icon-style-preview-liquidglass .icon-style-mini {
    background: linear-gradient(165deg, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0.03) 60%, rgba(255,255,255,0.05) 100%);
    border-color: rgba(255,255,255,0.16);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,0.12), inset 0 -0.5px 1px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.15);
}
#phone-frame.dark-mode .icon-style-preview-liquidglass .icon-style-mini::after {
    background: radial-gradient(ellipse 120% 50% at 50% -10%, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.04) 30%, transparent 50%);
}
.icon-style-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #fff);
}
.icon-style-check {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tint, #007aff);
    color: #fff;
    font-size: 9px;
    align-items: center;
    justify-content: center;
}
.icon-style-option.active .icon-style-check {
    display: flex;
}

/* ═══════════════════════════════════════════════════════════════
   RINGTONE PICKER
   ═══════════════════════════════════════════════════════════════ */
.ringtone-current-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
    background: var(--card-bg, rgba(255,255,255,0.08));
    border: 0.5px solid var(--card-border, rgba(255,255,255,0.1));
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    transition: background 0.2s;
}
.ringtone-current-display:active {
    background: var(--fill-secondary, rgba(255,255,255,0.14));
}
.ringtone-picker {
    margin-top: 8px;
    border-radius: 14px;
    background: var(--card-bg, rgba(255,255,255,0.06));
    border: 0.5px solid var(--card-border, rgba(255,255,255,0.08));
    padding: 6px;
    max-height: 260px;
    overflow-y: auto;
}
.ringtone-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ringtone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary, #fff);
    transition: background 0.15s;
}
.ringtone-item:active,
.ringtone-item.active {
    background: var(--fill-tertiary, rgba(255,255,255,0.1));
}
.ringtone-music-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    margin-top: 2px;
    background: var(--fill-tertiary, rgba(255,255,255,0.06));
}
.ringtone-music-info {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;
}
.ringtone-music-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ringtone-music-artist {
    font-size: 11px;
    color: var(--text-secondary, rgba(255,255,255,0.5));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ringtone-select-btn {
    background: #34c759;
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}
.ringtone-custom-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 0.5px solid var(--separator, rgba(255,255,255,0.08));
}
.mu-set-ringtone-btn {
    color: #ff2d55 !important;
}
.mu-set-ringtone-btn i {
    color: #ff2d55;
}
.ringtone-confirm-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 12px 22px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 600;
    z-index: 99999;
    pointer-events: auto;
    animation: ringtoneToastIn 0.3s ease;
}
@keyframes ringtoneToastIn { from { opacity:0; transform: translateX(-50%) translateY(10px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
