/**
 * Mobile Phone System Styles - DEADAIRTEL THEMED
 * Styling for the in-game mobile phone with theme system
 */

/* fonts: css/fonts.css (shipped with the game) */

/* ===== THEME SYSTEM ===== */
:root, [data-phone-theme="sepia"] {
  --phone-body-bg: #1a1510;
  --phone-bg1: #3d3128;
  --phone-bg2: #2a2118;
  --phone-bg3: #1f1812;
  --phone-border: #4a3d32;
  --screen-bg1: #2a2320;
  --screen-bg2: #231e1a;
  --screen-border: #3a3028;
  --text-gold: #c4a87a;
  --text-dim: rgba(196,168,122,0.4);
  --accent-red: #8B0000;
  --accent-red-hover: #cc0000;
  --paper-bg: #f4e4bc;
  --paper-stain: rgba(101,67,33,0.15);
  --paper-text: #1a1a1a;
  --paper-line: rgba(0,0,0,0.015);
  --home-bg1: #4a3d32;
  --home-bg2: #3d3128;
  --home-border: #5a4d42;
  --icon-filter: none;
  --badge-bg: #8B0000;
  --badge-border: #2a2320;
  --overlay-bg: rgba(26,21,16,0.97);
  --paper-heading: #2A1810;
  --paper-border-line: #c4b48c;
  --redacted-bg: #1a1a1a;
  --handwritten-color: #8B0000;
}

[data-phone-theme="midnight"] {
  --phone-body-bg: #0a0c14;
  --phone-bg1: #1a1e2e;
  --phone-bg2: #10131f;
  --phone-bg3: #0a0c14;
  --phone-border: #2a2e3e;
  --screen-bg1: #12151f;
  --screen-bg2: #0d1018;
  --screen-border: #222640;
  --text-gold: #a0b4d4;
  --text-dim: rgba(160,180,212,0.4);
  --accent-red: #c4a000;
  --accent-red-hover: #e8c800;
  --paper-bg: #d8dce8;
  --paper-stain: rgba(40,50,80,0.15);
  --paper-text: #0a0c14;
  --paper-line: rgba(0,0,40,0.02);
  --home-bg1: #2a2e3e;
  --home-bg2: #1a1e2e;
  --home-border: #3a3e4e;
  --icon-filter: saturate(0.3) brightness(0.9) hue-rotate(200deg);
  --badge-bg: #c4a000;
  --badge-border: #12151f;
  --overlay-bg: rgba(10,12,20,0.97);
  --paper-heading: #1a1e30;
  --paper-border-line: #8090b0;
  --redacted-bg: #0a0c14;
  --handwritten-color: #c4a000;
}

[data-phone-theme="precinct"] {
  --phone-body-bg: #0c1418;
  --phone-bg1: #1e2a30;
  --phone-bg2: #141e24;
  --phone-bg3: #0c1418;
  --phone-border: #2e3a40;
  --screen-bg1: #162028;
  --screen-bg2: #101a20;
  --screen-border: #243038;
  --text-gold: #7ab4c4;
  --text-dim: rgba(122,180,196,0.4);
  --accent-red: #8B0000;
  --accent-red-hover: #cc0000;
  --paper-bg: #c8dce0;
  --paper-stain: rgba(33,67,80,0.15);
  --paper-text: #0c1418;
  --paper-line: rgba(0,20,40,0.02);
  --home-bg1: #2e3a40;
  --home-bg2: #1e2a30;
  --home-border: #3e4a50;
  --icon-filter: saturate(0.2) brightness(0.85) hue-rotate(170deg);
  --badge-bg: #8B0000;
  --badge-border: #162028;
  --overlay-bg: rgba(12,20,24,0.97);
  --paper-heading: #0c1a20;
  --paper-border-line: #6090a0;
  --redacted-bg: #0c1418;
  --handwritten-color: #8B0000;
}

[data-phone-theme="blood"] {
  --phone-body-bg: #1a0c0c;
  --phone-bg1: #3a1e1e;
  --phone-bg2: #281414;
  --phone-bg3: #1a0c0c;
  --phone-border: #4a2828;
  --screen-bg1: #2a1818;
  --screen-bg2: #201010;
  --screen-border: #3a2020;
  --text-gold: #c49a7a;
  --text-dim: rgba(196,154,122,0.4);
  --accent-red: #cc0000;
  --accent-red-hover: #ff2222;
  --paper-bg: #e8d4c4;
  --paper-stain: rgba(101,33,33,0.18);
  --paper-text: #1a0808;
  --paper-line: rgba(40,0,0,0.02);
  --home-bg1: #4a2828;
  --home-bg2: #3a1e1e;
  --home-border: #5a3232;
  --icon-filter: saturate(0.6) brightness(0.9) hue-rotate(-15deg);
  --badge-bg: #cc0000;
  --badge-border: #2a1818;
  --overlay-bg: rgba(26,12,12,0.97);
  --paper-heading: #2a0808;
  --paper-border-line: #a07060;
  --redacted-bg: #1a0808;
  --handwritten-color: #ff2222;
}

/* Phone Device */
.phone-device {
    position: relative;
    width: 380px;
    height: 700px;
    background: linear-gradient(145deg, var(--phone-bg1) 0%, var(--phone-bg2) 50%, var(--phone-bg3) 100%);
    border-radius: 32px;
    border: 3px solid var(--phone-border);
    box-shadow:
        0 0 60px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05),
        0 20px 40px rgba(0,0,0,0.6);
    padding: 12px;
    overflow: hidden;
    transition: background 0.6s ease, border-color 0.6s ease;
    font-family: 'Special Elite', monospace;
}

/* Film grain overlay */
.phone-device::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10;
    border-radius: 32px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--screen-bg1) 0%, var(--screen-bg2) 100%);
    border-radius: 22px;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--screen-border);
    position: relative;
    transition: background 0.6s ease;
}

/* Status Bar */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px 8px;
    color: var(--text-gold);
    font-size: 13px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.phone-status-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.phone-operator {
    color: var(--text-gold);
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 2px;
}

.phone-18-logo {
    background: var(--accent-red);
    color: var(--paper-bg);
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #aa2222;
    font-weight: bold;
}

.phone-time {
    font-size: 11px;
    color: var(--text-gold);
    font-weight: bold;
    flex: 0 0 auto;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.phone-status-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

/* Signal Bars */
.phone-signal {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-bar {
    width: 3px;
    background: var(--text-gold);
    border-radius: 1px;
}

.signal-bar:nth-child(1) {
    height: 4px;
}

.signal-bar:nth-child(2) {
    height: 7px;
}

.signal-bar:nth-child(3) {
    height: 10px;
}

.signal-bar:nth-child(4) {
    height: 13px;
    opacity: 0.3;
}

/* Battery */
.phone-battery {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 14px;
}

.battery-level {
    width: 18px;
    height: 10px;
    border: 2px solid var(--text-gold);
    border-radius: 2px;
    position: relative;
    background: rgba(196, 168, 122, 0.2);
}

.battery-level::after {
    content: '';
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 70%;
    background: var(--text-gold);
    border-radius: 1px;
}

.battery-tip {
    width: 2px;
    height: 5px;
    background: var(--text-gold);
    border-radius: 0 1px 1px 0;
}

/* Phone Content */
.phone-content {
    flex: 1;
    background: var(--screen-bg2);
    overflow-y: auto;
    min-height: 0;
}

/* A call owns the whole glass — never a scrollbar under it. The
   transient scrollbar during the render swap narrowed the content
   box, and the fullscreen caller photo (background cover) visibly
   re-stretched for a beat. */
.phone-content:has(.phone-call-screen) {
    overflow: hidden;
}

/* Boot Screen */
.phone-boot-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
}

.phone-boot-screen.warming {
    background: #0a0806;
    transition: background 0.4s ease;
}

/* CRT scanlines */
.phone-boot-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.008) 2px,
        rgba(255, 255, 255, 0.008) 4px
    );
    pointer-events: none;
    z-index: 2;
}

.phone-boot-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 3;
}

.boot-content {
    position: relative;
    width: 260px;
    height: 220px;
    z-index: 1;
    opacity: 0;
}

.boot-content.crt-on {
    animation: crtOn 0.6s ease-out forwards;
}

@keyframes crtOn {
    0% {
        opacity: 0;
        transform: scaleY(0.005);
    }
    40% {
        opacity: 0.5;
        transform: scaleY(0.005);
    }
    45% {
        transform: scaleY(1.1);
    }
    50% {
        transform: scaleY(0.005);
    }
    55% {
        transform: scaleY(1);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Signal Bars */
.boot-bar {
    position: absolute;
    bottom: 64px;
    width: 12px;
    background: #c8c8c8;
    border-radius: 1px;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0;
}

.boot-bar-1 {
    left: 52px;
    height: 24px;
    animation: barGrow 0.3s ease-out 1.2s forwards, barDim 0.6s ease 2.6s forwards;
}

.boot-bar-2 {
    left: 72px;
    height: 40px;
    animation: barGrow 0.3s ease-out 1.5s forwards, barDim 0.6s ease 2.7s forwards;
}

.boot-bar-3 {
    left: 92px;
    height: 58px;
    animation: barGrow 0.3s ease-out 1.8s forwards, barDim 0.6s ease 2.8s forwards;
}

.boot-bar-4 {
    left: 112px;
    height: 78px;
    animation: barGrow 0.3s ease-out 2.1s forwards, barDim 0.6s ease 2.9s forwards;
}

@keyframes barGrow {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    60% {
        transform: scaleY(1.08);
        opacity: 1;
    }
    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes barDim {
    0% {
        background: #c8c8c8;
    }
    100% {
        background: #666666;
    }
}

/* The Cross */
.boot-cross-vertical {
    position: absolute;
    left: 132px;
    bottom: 64px;
    width: 12px;
    height: 94px;
    background: #8b0000;
    border-radius: 1px;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0;
    animation: crossGrow 0.5s ease-out 2.5s forwards;
}

.boot-cross-horizontal {
    position: absolute;
    left: 123px;
    bottom: 128px;
    width: 30px;
    height: 12px;
    background: #8b0000;
    border-radius: 1px;
    transform: scale(0);
    opacity: 0;
    animation: crossGrow 0.5s ease-out 2.5s forwards;
}

@keyframes crossGrow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Brand Text */
.boot-brand {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bebas Neue', 'Special Elite', sans-serif;
    font-size: 32px;
    color: #c8c8c8;
    letter-spacing: 10px;
    opacity: 0;
    animation: textReveal 0.8s ease-out 4.0s forwards;
    white-space: nowrap;
}

.boot-motto {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 11px;
    color: #555;
    letter-spacing: 4px;
    opacity: 0;
    animation: textReveal 0.8s ease-out 4.4s forwards;
    white-space: nowrap;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Progress Bar */
.boot-progress-wrap {
    position: relative;
    width: 240px;
    opacity: 0;
    z-index: 1;
    margin-top: 8px;
    transition: opacity 0.5s ease;
}

.boot-progress-wrap.show {
    opacity: 1;
}

.boot-progress-label {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 12px;
    letter-spacing: 3px;
    color: #555;
    margin-bottom: 6px;
    text-align: center;
    min-height: 16px;
}

.boot-progress {
    width: 100%;
    height: 3px;
    background: #1a1a1f;
    border: 1px solid #2a2a2f;
    position: relative;
    overflow: hidden;
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #8B0000, #c8c8c8);
    transition: width 0.3s ease;
}

.boot-carrier {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 4px;
    color: #888;
    margin-top: 12px;
    opacity: 0;
    text-shadow: 0 0 10px rgba(200, 200, 200, 0.1);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.boot-cursor {
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Home Button */
.phone-home-button {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0 20px;
    margin-top: auto;
    flex-shrink: 0;
}

.phone-home-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: conic-gradient(
        #c4a87a 0deg 90deg,
        #a0b4d4 90deg 180deg,
        #cc0000 180deg 270deg,
        #7ab4c4 270deg 360deg
    );
    border: 2px solid var(--home-border);
    cursor: pointer;
    box-shadow:
        0 2px 6px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transition: transform 0.5s ease, filter 0.2s;
    position: relative;
    overflow: hidden;
}

.phone-home-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--screen-bg1);
    border: 1.5px solid var(--home-border);
    transition: background 0.5s ease, border-color 0.5s ease;
}

/* Rotate to point active theme sector UP */
[data-phone-theme="sepia"] .phone-home-circle,
:root .phone-home-circle {
    transform: rotate(0deg);
}

[data-phone-theme="midnight"] .phone-home-circle {
    transform: rotate(-90deg);
}

[data-phone-theme="precinct"] .phone-home-circle {
    transform: rotate(-270deg);
}

[data-phone-theme="blood"] .phone-home-circle {
    transform: rotate(-180deg);
}

.phone-home-circle:hover {
    filter: brightness(1.2);
}

.phone-home-circle:active {
    filter: brightness(0.8);
}

/* Close Button */
.phone-close-btn {
    width: 24px;
    height: 24px;
    color: var(--text-gold);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--phone-border);
    border-radius: 50%;
    font-family: 'Special Elite', monospace;
    transition: all 0.3s;
    padding: 0;
    flex-shrink: 0;
    opacity: 0.7;
}

.phone-close-btn:hover {
    opacity: 1;
    background: var(--accent-red);
    border-color: var(--accent-red-hover);
    color: var(--paper-bg);
    transform: rotate(90deg) scale(1.1);
}

/* Home Screen */
.phone-home {
    position: relative;
    height: 100%;
    padding: 20px 15px;
}

.phone-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--phone-bg1) 0%, var(--screen-bg2) 50%, var(--screen-bg1) 100%);
    opacity: 0.5;
}

.phone-apps-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* rows keep their own height — with four or five apps the grid's
       min-height used to stretch two rows across the whole screen
       (the author, 2026-10-03) */
    grid-auto-rows: max-content;
    align-content: start;
    gap: 20px;
    padding: 10px;
    min-height: 340px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Slide out animations */
.phone-apps-grid.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.phone-apps-grid.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Slide in: start position (no transition yet) */
.phone-apps-grid.slide-in-right {
    transition: none;
    transform: translateX(100%);
    opacity: 0;
}

.phone-apps-grid.slide-in-left {
    transition: none;
    transform: translateX(-100%);
    opacity: 0;
}

/* Slide in: animate to center */
.phone-apps-grid.slide-in-active {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform: translateX(0);
    opacity: 1;
}

/* Page dots for home screen pagination */
.phone-page-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    position: relative;
}

.phone-page-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-dim, #8E7F7F);
    opacity: 0.4;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

.phone-page-dot.active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--phone-accent, #c4a87a);
}

.phone-page-dot:hover {
    opacity: 0.8;
}

.phone-app {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.phone-app:hover {
    transform: scale(1.08);
}

.phone-app:active {
    transform: scale(0.95);
}

.phone-app-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.phone-app-icon .icon {
    width: 100px;
    height: 100px;
    border-radius: 0;
    object-fit: cover;
    filter: var(--icon-filter);
    transition: filter 0.6s ease;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.phone-app-name {
    font-size: 10px;
    color: var(--text-gold);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}

.phone-app-badge {
    position: absolute;
    top: -5px;
    right: 8px;
    background: var(--badge-bg);
    color: var(--paper-bg);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--badge-border);
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* App Screen */
.phone-app-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
}

.phone-back-btn {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 14px;
    font-family: 'Special Elite', 'Courier New', monospace;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

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

.phone-app-title {
    flex: 1;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    text-align: center;
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 1px;
}

.phone-app-content {
    flex: 1;
    overflow-y: auto;
    background: var(--screen-bg2);
    min-height: 0;
}

/* A call owns the whole glass — never a scrollbar under it. The
   transient scrollbar during the render swap narrowed the content
   box, which made the fullscreen caller photo (background cover)
   visibly re-stretch for a beat. */
.phone-app-content:has(.phone-call-screen) {
    overflow: hidden;
}

/* Call Log */
.phone-call-log {
    padding: 10px;
}

.phone-call-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.phone-call-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.phone-call-icon {
    font-size: 20px;
    width: 30px;
    text-align: center;
    color: var(--text-gold);
}

.phone-call-icon.incoming {
    color: #4a9d5f;
}

.phone-call-icon.outgoing {
    color: var(--text-gold);
}

.phone-call-icon.missed {
    color: var(--accent-red);
}

.phone-call-info {
    flex: 1;
}

.phone-call-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    margin-bottom: 4px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.phone-call-details {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.phone-call-btn {
    background: var(--phone-bg1);
    border: 2px solid #4a9d5f;
    color: #4a9d5f;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.phone-call-btn:hover {
    background: #4a9d5f;
    color: var(--paper-bg);
    transform: scale(1.1);
}

/* Call Screen */
.phone-call-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-bg2);
}

/* ── Notification Stack — holds Quickie/Repolute/etc banners ── */
.phone-msg-banner-stack {
    position: absolute;
    top: 38px;
    left: 8px;
    right: 8px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

/* ── Banner (Quickie/Repolute two-tier layout) ── */
.phone-msg-banner {
    position: relative;
    pointer-events: auto;
    background: linear-gradient(180deg, #2c241c 0%, #221c16 100%);
    border: 1px solid rgba(120, 90, 60, 0.35);
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55),
                0 0 8px rgba(196, 168, 122, 0.18);
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.phone-msg-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.phone-msg-banner:hover {
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.65),
                0 0 14px rgba(196, 168, 122, 0.35);
    border-color: rgba(196, 168, 122, 0.55);
}

.phone-msg-banner:active {
    transform: translateY(0) scale(0.98);
}

/* Header row: app icon + label + timestamp */
.phone-msg-banner-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.phone-msg-banner-app {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-msg-banner-app-icon {
    font-size: 13px;
    line-height: 1;
    opacity: 0.75;
    filter: sepia(0.4) saturate(1.2);
}

.phone-msg-banner-app-label {
    font-size: 10px;
    color: rgba(196, 168, 122, 0.78);
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 2px;
    font-weight: bold;
}

.phone-msg-banner-time {
    font-size: 10px;
    color: rgba(196, 168, 122, 0.55);
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 1px;
    text-transform: lowercase;
}

/* Body row: avatar + name + message */
.phone-msg-banner-body {
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-msg-banner-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(180deg, #8b7355 0%, #6b5d44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.phone-msg-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-msg-banner-initial {
    font-size: 18px;
    color: #ffffff;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1;
}

.phone-msg-banner-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.phone-msg-banner-name {
    font-size: 13px;
    color: #f0e6d6;
    font-weight: bold;
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 0.3px;
}

.phone-msg-banner-text {
    font-size: 12px;
    color: rgba(232, 220, 200, 0.78);
    font-family: 'Special Elite', 'Courier New', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* +N more messages — appears under the first message when
   additional bubbles arrive from the same contact before the
   player opens the thread. Reads as an iOS-style "+3 more". */
.phone-msg-banner-more {
    font-size: 10.5px;
    letter-spacing: 0.5px;
    color: rgba(232, 220, 200, 0.55);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-top: 3px;
    line-height: 1.2;
}

/* Pulse when a new message collapses into an existing banner —
   subtle nudge that says "there's more" without a full re-stack. */
.phone-msg-banner-pulse {
    animation: phoneMsgBannerPulse 420ms ease-out;
}
@keyframes phoneMsgBannerPulse {
    0%   { transform: translateY(0)    scale(1); }
    35%  { transform: translateY(-2px) scale(1.015); }
    100% { transform: translateY(0)    scale(1); }
}

/* Repolute banner — uses standard Quickie style; only the avatar tint
   conveys direction (green for incoming, red for outgoing). */
.phone-repolute-banner.repo-get .phone-repolute-avatar {
    background: linear-gradient(180deg, #6b8e3d 0%, #4a6b29 100%);
}
.phone-repolute-banner.repo-send .phone-repolute-avatar {
    background: linear-gradient(180deg, #a04848 0%, #6b2d2d 100%);
}
.phone-repolute-avatar .phone-msg-banner-initial {
    font-size: 22px;
    font-weight: bold;
}

/* ── App icon glow + badge bump on new message ── */
.phone-app.phone-app-notified .phone-app-icon {
    animation: phone-app-glow 1.2s ease-out;
}

@keyframes phone-app-glow {
    0%   { box-shadow: 0 0 0 0 rgba(196, 168, 122, 0); }
    25%  { box-shadow: 0 0 14px 3px rgba(196, 168, 122, 0.65),
                       0 0 22px 8px rgba(196, 168, 122, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(196, 168, 122, 0); }
}

.phone-app.phone-app-notified .phone-app-badge {
    animation: phone-badge-bump 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes phone-badge-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.55); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

/* ── Incoming — Fullscreen photo variant ── */
.phone-call-screen.phone-incoming.phone-incoming-fullscreen {
    padding: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
    /* Subtle shake to mimic ring vibration */
    animation: phone-incoming-screen-shake 0.5s ease-in-out infinite;
}

@keyframes phone-incoming-screen-shake {
    0%, 100% { transform: translate(0, 0); }
    25%      { transform: translate(-0.6px, 0.4px); }
    50%      { transform: translate(0.5px, -0.5px); }
    75%      { transform: translate(-0.4px, -0.5px); }
}

/* Dark gradient overlay for text legibility */
.phone-incoming-fs-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 30%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 1;
}

.phone-incoming-fs-top {
    position: relative;
    z-index: 2;
    padding: 32px 18px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-incoming-name-fs {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    margin-top: 12px;
}

.phone-incoming-fullscreen .phone-incoming-status {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.phone-incoming-fullscreen .phone-incoming-number {
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.phone-incoming-actions-fs {
    position: relative;
    z-index: 2;
    padding: 0 12px 28px;
}

.phone-incoming-fullscreen .phone-incoming-btn-label {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* ── Incoming Call Screen (emoji fallback) ── */
.phone-call-screen.phone-incoming {
    align-items: center;
    justify-content: space-between;
    padding: 30px 18px 26px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg2) 60%, var(--screen-bg2) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.phone-incoming-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.phone-incoming-status {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    animation: phone-incoming-blink 1.4s ease-in-out infinite;
}

.phone-incoming-subtitle {
    font-size: 10px;
    color: var(--text-dim);
    opacity: 0.6;
    font-family: 'Special Elite', 'Courier New', monospace;
}

@keyframes phone-incoming-blink {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}

.phone-incoming-photo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 12px 0 4px;
    z-index: 2;
}

/* Photo with subtle vibration */
.phone-incoming-photo {
    font-size: 70px;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--screen-bg1);
    border: 3px solid var(--phone-border);
    border-radius: 50%;
    color: var(--text-gold);
    z-index: 3;
    position: relative;
    box-shadow: 0 0 18px rgba(196,168,122,0.25);
    animation: phone-incoming-vibrate 0.4s ease-in-out infinite;
}

@keyframes phone-incoming-vibrate {
    0%   { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(-1px, 1px) rotate(-1deg); }
    40%  { transform: translate(1px, -1px) rotate(1deg); }
    60%  { transform: translate(-1px, -1px) rotate(-0.5deg); }
    80%  { transform: translate(1px, 1px) rotate(0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Expanding ring pulses behind photo */
.phone-incoming-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    border-radius: 50%;
    border: 2px solid var(--text-gold);
    opacity: 0;
    z-index: 2;
    animation: phone-incoming-pulse 1.6s ease-out infinite;
}

.phone-incoming-pulse.delay {
    animation-delay: 0.8s;
}

@keyframes phone-incoming-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { opacity: 0.1; }
    100% { transform: scale(1.7); opacity: 0; }
}

.phone-incoming-name {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-top: 6px;
    z-index: 2;
}

.phone-incoming-number {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    opacity: 0.7;
    margin-top: 2px;
    z-index: 2;
}

/* Accept / Decline buttons */
.phone-incoming-actions {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 12px;
    z-index: 2;
}

.phone-incoming-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.phone-incoming-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
}

.phone-incoming-btn-icon {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
}

.phone-incoming-btn.decline {
    background: linear-gradient(180deg, #c84040 0%, #8b1010 100%);
    box-shadow: 0 0 14px rgba(200, 64, 64, 0.45),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.phone-incoming-btn.decline .phone-incoming-btn-icon {
    transform: rotate(135deg);
    color: #fff;
}

.phone-incoming-btn.accept {
    background: linear-gradient(180deg, #4ea84e 0%, #1f6a1f 100%);
    box-shadow: 0 0 14px rgba(78, 168, 78, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: phone-incoming-accept-pulse 1.4s ease-in-out infinite;
}

.phone-incoming-btn.accept .phone-incoming-btn-icon {
    color: #fff;
}

@keyframes phone-incoming-accept-pulse {
    0%, 100% {
        box-shadow: 0 0 14px rgba(78, 168, 78, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 22px rgba(78, 168, 78, 0.85),
                    0 0 36px rgba(78, 168, 78, 0.35),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

.phone-incoming-btn:hover {
    transform: scale(1.06);
}

.phone-incoming-btn:active {
    transform: scale(0.94);
}

.phone-incoming-btn-label {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    letter-spacing: 1px;
}

.phone-call-header {
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-call-header.minimized {
    padding: 15px 20px;
}

.phone-call-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-call-photo {
    font-size: 60px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--screen-bg1);
    border: 3px solid var(--phone-border);
    border-radius: 50%;
    margin-bottom: 10px;
    overflow: hidden;
}

.phone-call-header.minimized .phone-call-photo {
    font-size: 30px;
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.phone-call-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.phone-call-status {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.phone-call-timer {
    font-size: 14px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-top: 5px;
}

/* Audio Visualizer - Voice Message Style */
.phone-audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    height: 60px;
    margin-top: 15px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 8px;
    padding: 8px 15px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.phone-call-header.minimized .phone-audio-visualizer {
    height: 35px;
    margin-top: 8px;
    padding: 5px 10px;
}

/* Playback progress indicator */
.phone-audio-visualizer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.1), transparent);
    pointer-events: none;
    transition: width 0.1s linear;
}

.phone-audio-visualizer.active::before {
    animation: audioProgress 3s linear infinite;
}

.phone-audio-visualizer.intense::before {
    animation: audioProgress 5s linear infinite;
}

@keyframes audioProgress {
    0% { width: 0%; opacity: 0.5; }
    100% { width: 100%; opacity: 0; }
}

.audio-bar {
    flex: 1;
    background: var(--text-dim);
    border-radius: 2px;
    opacity: 0.2;
    height: 3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 2px;
    max-width: 8px;
    position: relative;
}

.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.03s; }
.audio-bar:nth-child(3) { animation-delay: 0.06s; }
.audio-bar:nth-child(4) { animation-delay: 0.09s; }
.audio-bar:nth-child(5) { animation-delay: 0.12s; }
.audio-bar:nth-child(6) { animation-delay: 0.15s; }
.audio-bar:nth-child(7) { animation-delay: 0.18s; }
.audio-bar:nth-child(8) { animation-delay: 0.21s; }
.audio-bar:nth-child(9) { animation-delay: 0.24s; }
.audio-bar:nth-child(10) { animation-delay: 0.27s; }
.audio-bar:nth-child(11) { animation-delay: 0.3s; }
.audio-bar:nth-child(12) { animation-delay: 0.33s; }
.audio-bar:nth-child(13) { animation-delay: 0.36s; }
.audio-bar:nth-child(14) { animation-delay: 0.39s; }
.audio-bar:nth-child(15) { animation-delay: 0.42s; }
.audio-bar:nth-child(16) { animation-delay: 0.45s; }
.audio-bar:nth-child(17) { animation-delay: 0.48s; }
.audio-bar:nth-child(18) { animation-delay: 0.51s; }
.audio-bar:nth-child(19) { animation-delay: 0.54s; }
.audio-bar:nth-child(20) { animation-delay: 0.57s; }

/* Active state - short sentence (quick, punchy) */
.phone-audio-visualizer.active .audio-bar {
    background: linear-gradient(180deg, var(--accent-red), #cc0000);
    opacity: 0.9;
    box-shadow: 0 0 4px rgba(139, 0, 0, 0.3);
    animation: voiceWaveShort 0.5s ease-in-out infinite;
}

/* Varied heights for natural waveform - short sentence */
.phone-audio-visualizer.active .audio-bar:nth-child(1) { height: 8px; }
.phone-audio-visualizer.active .audio-bar:nth-child(2) { height: 15px; }
.phone-audio-visualizer.active .audio-bar:nth-child(3) { height: 6px; }
.phone-audio-visualizer.active .audio-bar:nth-child(4) { height: 12px; }
.phone-audio-visualizer.active .audio-bar:nth-child(5) { height: 20px; }
.phone-audio-visualizer.active .audio-bar:nth-child(6) { height: 9px; }
.phone-audio-visualizer.active .audio-bar:nth-child(7) { height: 14px; }
.phone-audio-visualizer.active .audio-bar:nth-child(8) { height: 5px; }
.phone-audio-visualizer.active .audio-bar:nth-child(9) { height: 11px; }
.phone-audio-visualizer.active .audio-bar:nth-child(10) { height: 18px; }
.phone-audio-visualizer.active .audio-bar:nth-child(11) { height: 7px; }
.phone-audio-visualizer.active .audio-bar:nth-child(12) { height: 16px; }
.phone-audio-visualizer.active .audio-bar:nth-child(13) { height: 10px; }
.phone-audio-visualizer.active .audio-bar:nth-child(14) { height: 13px; }
.phone-audio-visualizer.active .audio-bar:nth-child(15) { height: 8px; }
.phone-audio-visualizer.active .audio-bar:nth-child(16) { height: 17px; }
.phone-audio-visualizer.active .audio-bar:nth-child(17) { height: 6px; }
.phone-audio-visualizer.active .audio-bar:nth-child(18) { height: 12px; }
.phone-audio-visualizer.active .audio-bar:nth-child(19) { height: 5px; }
.phone-audio-visualizer.active .audio-bar:nth-child(20) { height: 9px; }

/* Intense state - long sentence (sustained, expressive) */
.phone-audio-visualizer.intense .audio-bar {
    background: linear-gradient(180deg, var(--text-gold), #d4a87a);
    opacity: 1;
    box-shadow: 0 0 6px rgba(196, 168, 122, 0.4);
    animation: voiceWaveLong 0.7s ease-in-out infinite;
}

/* More dramatic heights for long dialogue */
.phone-audio-visualizer.intense .audio-bar:nth-child(1) { height: 12px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(2) { height: 28px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(3) { height: 18px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(4) { height: 35px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(5) { height: 38px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(6) { height: 22px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(7) { height: 32px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(8) { height: 15px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(9) { height: 25px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(10) { height: 36px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(11) { height: 20px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(12) { height: 40px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(13) { height: 30px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(14) { height: 34px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(15) { height: 24px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(16) { height: 37px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(17) { height: 19px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(18) { height: 31px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(19) { height: 16px; }
.phone-audio-visualizer.intense .audio-bar:nth-child(20) { height: 26px; }

/* Short sentence animation - quick bursts */
@keyframes voiceWaveShort {
    0% { transform: scaleY(0.5); opacity: 0.7; }
    25% { transform: scaleY(1.2); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.8; }
    75% { transform: scaleY(1.1); opacity: 1; }
    100% { transform: scaleY(0.5); opacity: 0.7; }
}

/* Long sentence animation - sustained waves with pauses */
@keyframes voiceWaveLong {
    0% { transform: scaleY(0.7); opacity: 0.8; }
    15% { transform: scaleY(1.3); opacity: 1; }
    30% { transform: scaleY(0.9); opacity: 0.9; }
    45% { transform: scaleY(1.5); opacity: 1; }
    60% { transform: scaleY(0.5); opacity: 0.7; } /* pause */
    75% { transform: scaleY(1.4); opacity: 1; }
    90% { transform: scaleY(0.8); opacity: 0.85; }
    100% { transform: scaleY(0.7); opacity: 0.8; }
}

/* Call Dialogue */
.phone-call-dialogue {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.phone-call-line {
    display: flex;
    margin-bottom: 8px;
}

.phone-call-line.them {
    justify-content: flex-start;
}

.phone-call-line.you {
    justify-content: flex-end;
}

.phone-call-text {
    max-width: 70%;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    font-family: 'Special Elite', 'Courier New', monospace;
    animation: fadeIn 0.3s ease;
}

.phone-call-line.them .phone-call-text {
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    color: var(--text-gold);
    border-radius: 12px 12px 12px 2px;
}

.phone-call-line.you .phone-call-text {
    background: var(--accent-red);
    color: var(--paper-bg);
    border: 2px solid var(--accent-red-hover);
    border-radius: 12px 12px 2px 12px;
}

/* Call Choices */
.phone-call-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: var(--screen-bg1);
    border-top: 2px solid var(--phone-border);
    max-height: 200px;
    overflow-y: auto;
}

.phone-call-choice {
    padding: 12px 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    color: var(--text-gold);
    font-size: 13px;
    font-family: 'Special Elite', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.phone-call-choice:hover {
    background: var(--screen-bg2);
    border-color: var(--accent-red);
    transform: translateX(5px);
}

.phone-call-choice:active {
    transform: translateX(5px) scale(0.98);
}

/* Call Controls */
.phone-call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: var(--screen-bg1);
    border-top: 2px solid var(--phone-border);
}

.phone-call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    border: 3px solid;
}

.phone-call-control-btn.end {
    background: var(--accent-red);
    border-color: var(--accent-red-hover);
    color: var(--paper-bg);
}

.phone-call-control-btn.end:hover {
    background: var(--accent-red-hover);
    transform: scale(1.1) rotate(135deg);
}

.phone-call-control-btn.end:active {
    transform: scale(0.95) rotate(135deg);
}

/* Conversations List */
.phone-conversations-list {
    padding: 10px;
}

.phone-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.phone-conversation-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.phone-conversation-item.unread {
    border-color: var(--accent-red);
    background: var(--screen-bg2);
}

.phone-conversation-photo {
    font-size: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 50%;
}

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

.phone-conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.phone-conversation-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
}

.phone-conversation-time {
    font-size: 11px;
    color: var(--text-dim);
}

.phone-conversation-preview {
    font-size: 12px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-conversation-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--badge-bg);
    color: var(--paper-bg);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid var(--badge-border);
    min-width: 18px;
    text-align: center;
}

/* Shop/Wallust App */
.shop-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-bg2);
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
}

.shop-back-btn {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

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

.shop-logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-btn {
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    color: var(--text-gold);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-btn:hover {
    background: var(--screen-bg1);
    border-color: var(--accent-red);
}

.shop-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-red);
    color: var(--paper-bg);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.shop-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.shop-tagline {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    font-style: italic;
    margin-bottom: 15px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--phone-border);
}

.shop-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    transition: all 0.2s;
}

.shop-tab.active {
    background: var(--phone-bg1);
    border-bottom-color: var(--accent-red);
    color: var(--text-gold);
}

.shop-tab:hover {
    color: var(--text-gold);
}

.shop-products {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-product-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.shop-product-card:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.shop-product-info {
    flex: 1;
}

.shop-product-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    margin-bottom: 4px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-product-desc {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-product-price {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-add-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-add-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.05);
}

.shop-add-btn:active {
    transform: scale(0.95);
}

.shop-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shop-category-card {
    padding: 15px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.shop-category-card:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateY(-3px);
}

.shop-category-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.shop-category-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* Hot Deals Tab */
.shop-hot-deals {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-featured-deal {
    background: linear-gradient(135deg, var(--screen-bg1) 0%, var(--phone-bg1) 100%);
    border: 2px solid var(--accent-red);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.shop-featured-deal:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(139, 0, 0, 0.4);
    border-color: var(--accent-red-hover);
}

.shop-featured-badge {
    background: var(--accent-red);
    color: var(--paper-bg);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-featured-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-featured-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-featured-desc {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.4;
}

.shop-featured-discount {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-featured-prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-featured-old-price {
    font-size: 14px;
    color: var(--text-dim);
    text-decoration: line-through;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-featured-new-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-small-deals {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shop-small-deal {
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shop-small-deal:hover {
    background: var(--phone-bg1);
    border-color: var(--accent-red);
    transform: translateY(-2px);
}

.shop-small-discount {
    background: var(--accent-red);
    color: var(--paper-bg);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    align-self: flex-start;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-small-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-small-prices {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-small-old {
    font-size: 11px;
    color: var(--text-dim);
    text-decoration: line-through;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-small-new {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* Goods Tab */
.shop-goods-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-good-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-good-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateX(3px);
}

.shop-good-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.shop-good-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shop-good-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-good-category {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-good-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-good-arrow {
    font-size: 18px;
    color: var(--text-gold);
    flex-shrink: 0;
}

/* Cart View */
.shop-empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.shop-empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.shop-empty-text {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 20px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-continue-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-continue-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.05);
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
}

.shop-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-cart-item-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-item-price {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-qty-btn {
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    color: var(--text-gold);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-qty-btn:hover {
    background: var(--screen-bg1);
    border-color: var(--accent-red);
}

.shop-qty-btn:active {
    transform: scale(0.9);
}

.shop-qty-display {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    min-width: 25px;
    text-align: center;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-item-total {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-red);
    min-width: 60px;
    text-align: right;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-summary {
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-cart-total-amount {
    font-size: 20px;
    color: var(--accent-red);
}

.shop-checkout-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-checkout-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

.shop-checkout-btn:active {
    transform: scale(0.98);
}

/* Product Detail View */
.shop-product-detail {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shop-detail-badge {
    background: var(--accent-red);
    color: var(--paper-bg);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    align-self: flex-start;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-detail-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.3;
}

.shop-detail-desc {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.5;
}

.shop-detail-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
}

.shop-detail-old-price {
    font-size: 16px;
    color: var(--text-dim);
    text-decoration: line-through;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-detail-new-price {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-detail-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-detail-section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--phone-border);
}

.shop-store-card {
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-store-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-store-address {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.shop-detail-add-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
    width: 100%;
    margin-top: 10px;
}

.shop-detail-add-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

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

/* Maps/Directory App */
.maps-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-bg2);
}

.maps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
}

.maps-back-btn {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

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

.maps-logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-menu-btn {
    width: 28px;
}

.maps-fav-toggle {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.maps-fav-toggle:hover {
    transform: scale(1.2);
}

.maps-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.maps-current-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.maps-current-icon {
    font-size: 28px;
}

.maps-current-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.maps-current-label {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-current-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--phone-border);
}

.maps-tab {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-dim);
    font-size: 13px;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    transition: all 0.2s;
}

.maps-tab.active {
    background: var(--phone-bg1);
    border-bottom-color: var(--text-gold);
    color: var(--text-gold);
}

.maps-tab:hover {
    color: var(--text-gold);
}

.maps-search {
    margin-bottom: 15px;
}

.maps-locations {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maps-location-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.maps-location-card:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateX(3px);
}

.maps-location-card.current {
    border-color: var(--accent-red);
    background: linear-gradient(90deg, var(--screen-bg1) 0%, rgba(139, 0, 0, 0.1) 100%);
}

.maps-location-icon {
    font-size: 32px;
    flex-shrink: 0;
}

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

.maps-location-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 6px;
}

.maps-location-address {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-location-distance {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-location-arrow {
    font-size: 18px;
    color: var(--text-gold);
    flex-shrink: 0;
}

.maps-fav-star {
    font-size: 12px;
}

.maps-you-are-here {
    font-size: 10px;
    color: var(--accent-red);
    font-weight: bold;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.maps-empty-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.maps-empty-text {
    font-size: 16px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-empty-subtext {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* Maps Detail View */
.maps-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.maps-detail-icon {
    font-size: 64px;
    flex-shrink: 0;
}

.maps-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maps-detail-name {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-detail-address {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-detail-desc {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.5;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.maps-detail-distance {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.maps-distance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-distance-label {
    color: var(--text-dim);
}

.maps-distance-value {
    color: var(--text-gold);
    font-weight: bold;
}

.maps-quick-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.maps-action-btn {
    flex: 1;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-action-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

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

.maps-section {
    margin-bottom: 20px;
}

.maps-section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--phone-border);
    margin-bottom: 10px;
}

.maps-businesses {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.maps-business-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.maps-business-card:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.maps-business-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.maps-business-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-business-category {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-business-hours {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-business-sublocations {
    margin-top: 5px;
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.maps-business-phone {
    font-size: 12px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: bold;
}

/* Luber App */
.luber-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-bg2);
}

.luber-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
}

.luber-logo-container {
    flex: 1;
    text-align: center;
}

.luber-logo {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-tagline {
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-back-btn,
.luber-history-btn,
.luber-cancel-btn {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
    width: 32px;
}

.luber-back-btn:hover,
.luber-history-btn:hover,
.luber-cancel-btn:hover {
    color: var(--accent-red);
}

.luber-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

.luber-current-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 15px;
}

.luber-location-highlight {
    color: var(--text-gold);
    font-weight: bold;
}

.luber-location-display {
    position: relative;
    width: 100%;
    height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luber-signal-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--accent-red);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.5); opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}

.luber-location-image-main {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--phone-border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.luber-delivery-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--accent-red);
    border-radius: 8px;
    margin-bottom: 15px;
}

.luber-delivery-warning-icon {
    font-size: 24px;
}

.luber-delivery-warning-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.4;
}

.luber-section-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 12px;
}

.luber-car-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.luber-car-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.luber-car-option:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.luber-car-option.selected {
    border-color: var(--accent-red);
    background: linear-gradient(90deg, var(--screen-bg1) 0%, rgba(139, 0, 0, 0.1) 100%);
}

.luber-car-option-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.luber-car-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.luber-car-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.luber-car-option-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-car-option-desc {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-car-option-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-car-info-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.luber-continue-btn {
    width: 100%;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-continue-btn:hover:not(.disabled) {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

.luber-continue-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Screen */
.luber-loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--screen-bg2);
}

.luber-loading-content {
    text-align: center;
}

.luber-loading-logo {
    font-size: 64px;
    margin-bottom: 15px;
}

.luber-loading-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 8px;
}

.luber-loading-tagline {
    font-size: 14px;
    color: var(--text-dim);
    font-style: italic;
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 30px;
}

.luber-loading-spinner {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.luber-loading-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-red);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.luber-loading-dot:nth-child(1) { animation-delay: 0s; }
.luber-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.luber-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* Driver Selection */
.luber-selected-car-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.luber-selected-car-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.luber-selected-car-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.luber-selected-car-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-selected-car-desc {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.luber-driver-option {
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.luber-driver-option:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.luber-driver-option.selected {
    border-color: var(--accent-red);
    background: linear-gradient(90deg, var(--screen-bg1) 0%, rgba(139, 0, 0, 0.1) 100%);
}

.luber-driver-option-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.luber-driver-option-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.luber-driver-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.luber-driver-option-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-option-rating {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-option-eta {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: bold;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-option-car {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 4px;
}

.luber-driver-option-car-icon {
    margin-right: 4px;
}

.luber-driver-option-plate {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-show-other-drivers {
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gold);
    font-size: 13px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-show-other-drivers:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.luber-more-icon {
    color: var(--text-dim);
}

/* Destination Selection */
.luber-destination-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.luber-destination-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.luber-destination-option:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.luber-destination-blocked {
    opacity: 0.5;
    cursor: not-allowed;
}

.luber-destination-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--phone-border);
    flex-shrink: 0;
}

.luber-destination-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.luber-destination-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-destination-address {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-destination-distance {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-destination-warning {
    font-size: 10px;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: bold;
}

.luber-more-destinations {
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gold);
    font-size: 13px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-more-destinations:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

/* Ride Screen */
.luber-ride-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.luber-searching {
    text-align: center;
}

.luber-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--phone-border);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.luber-searching-text {
    font-size: 16px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-card {
    width: 100%;
    padding: 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 20px;
}

.luber-driver-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.luber-driver-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.luber-driver-info {
    flex: 1;
}

.luber-driver-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 3px;
}

.luber-driver-rating {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-driver-car {
    font-size: 13px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 5px;
}

.luber-driver-plate {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-eta-container {
    width: 100%;
    text-align: center;
}

.luber-eta-label {
    font-size: 14px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 15px;
}

.luber-eta-wheel-container {
    display: flex;
    justify-content: center;
}

.luber-eta-wheel {
    width: 150px;
    height: 150px;
}

.luber-driver-message {
    width: 100%;
    margin-bottom: 20px;
}

.luber-message-bubble {
    padding: 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.5;
}

.luber-start-btn {
    width: 100%;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-start-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

/* Road Animation */
.luber-road-animation {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #0d0c0a 0%, #1a1815 100%);
    border-radius: 8px;
    margin-bottom: 15px;
}

.luber-road {
    position: relative;
    width: 60%;
    height: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, #2a2520 0%, #1f1c18 100%);
}

.luber-road-line {
    position: absolute;
    width: 6px;
    height: 30px;
    background: #ffd700;
    left: 50%;
    transform: translateX(-50%);
    animation: roadScroll 1.5s linear infinite;
}

.luber-center-line:nth-child(1) { top: -30px; animation-delay: 0s; }
.luber-center-line:nth-child(2) { top: 10px; animation-delay: 0.3s; }
.luber-center-line:nth-child(3) { top: 50px; animation-delay: 0.6s; }
.luber-center-line:nth-child(4) { top: 90px; animation-delay: 0.9s; }
.luber-center-line:nth-child(5) { top: 130px; animation-delay: 1.2s; }

@keyframes roadScroll {
    from { top: -30px; }
    to { top: 230px; }
}

.luber-road-edge {
    position: absolute;
    width: 3px;
    height: 100%;
    background: #ffd700;
    top: 0;
}

.luber-edge-left {
    left: 0;
}

.luber-edge-right {
    right: 0;
}

.luber-environment {
    position: absolute;
    width: 20%;
    height: 40px;
    background: rgba(139, 115, 85, 0.3);
    animation: envScroll 2s linear infinite;
}

.luber-env-left {
    left: 0;
    animation-delay: 0s;
}

.luber-env-right {
    right: 0;
    animation-delay: 1s;
}

@keyframes envScroll {
    from { top: -40px; }
    to { top: 240px; }
}

/* Ride Dashboard */
.luber-ride-dashboard {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.luber-dash-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.luber-dash-icon {
    font-size: 20px;
}

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

.luber-dash-value {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-dash-label {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-dash-divider {
    width: 2px;
    height: 30px;
    background: var(--phone-border);
}

.luber-complete-btn {
    width: 100%;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-complete-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

/* Trip Summary Popup */
.luber-trip-summary-modal {
    background: var(--phone-bg1);
    border: 3px solid var(--accent-red);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.luber-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--phone-border);
}

.luber-summary-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-summary-checkmark {
    font-size: 32px;
    color: var(--accent-red);
    background: var(--screen-bg1);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.luber-summary-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.luber-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 6px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-summary-label {
    font-size: 13px;
    color: var(--text-dim);
}

.luber-summary-value {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
}

.luber-summary-fare {
    border-color: var(--accent-red);
}

.luber-summary-fare .luber-summary-value {
    font-size: 18px;
    color: var(--accent-red);
}

.luber-summary-cargo-damaged {
    border-color: var(--accent-red);
    background: rgba(139, 0, 0, 0.2);
}

.luber-summary-cargo-damaged .luber-summary-value {
    color: var(--accent-red);
}

.luber-summary-cargo-safe {
    border-color: #4a8b47;
    background: rgba(74, 139, 71, 0.1);
}

.luber-summary-cargo-safe .luber-summary-value {
    color: #6bc468;
}

.luber-summary-close-btn {
    width: 100%;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-summary-close-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

/* Luber Event Popup */
.luber-event-modal {
    background: var(--phone-bg1);
    border: 3px solid var(--text-gold);
    border-radius: 12px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.luber-event-header {
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--phone-border);
}

.luber-event-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    text-align: center;
}

.luber-event-content {
    margin-bottom: 20px;
}

.luber-event-message {
    font-size: 14px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

.luber-event-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.luber-event-choice-btn {
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    color: var(--text-gold);
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-event-choice-btn:hover {
    background: var(--phone-bg1);
    border-color: var(--accent-red);
    transform: scale(1.02);
}

.luber-event-ok-btn {
    width: 100%;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.luber-event-ok-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

/* Bank/Repolute App */
.bank-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--screen-bg2);
}

.bank-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: linear-gradient(180deg, var(--phone-bg1) 0%, var(--screen-bg1) 100%);
    border-bottom: 2px solid var(--phone-border);
}

.bank-back-btn {
    background: transparent;
    border: none;
    color: var(--text-gold);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

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

.bank-logo {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-menu-btn {
    font-size: 20px;
    color: var(--text-gold);
    width: 28px;
    text-align: right;
}

.bank-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    min-height: 0;
}

/* Quick Actions */
.bank-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.bank-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.bank-quick-action:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateY(-2px);
}

.bank-action-icon {
    font-size: 24px;
}

.bank-action-label {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    text-align: center;
}

/* Sections */
.bank-section {
    margin-bottom: 20px;
}

.bank-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--phone-border);
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* Send Money — transfer view (balance banner + recipient list).
   These classes had no styles, so the recipient list rendered as
   raw unstyled divs. Matches the bank app palette. */
.bank-balance-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
}
.bank-balance-info-label {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}
.bank-balance-info-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}
.bank-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bank-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.bank-contact-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateY(-1px);
}
.bank-contact-avatar {
    width: 38px; height: 38px;
    flex: 0 0 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--phone-bg1);
    border: 1px solid var(--phone-border);
    color: var(--text-gold);
    font-size: 18px;
}
.bank-contact-info { flex: 1; min-width: 0; }
.bank-contact-name {
    font-size: 14px;
    color: #f4e4c0;
    font-family: 'Special Elite', 'Courier New', monospace;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bank-contact-detail {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 2px;
}
.bank-contact-arrow {
    color: var(--text-gold);
    font-size: 16px;
    flex: 0 0 auto;
}

.bank-see-all {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 11px;
    cursor: pointer;
    font-family: 'Special Elite', 'Courier New', monospace;
    transition: color 0.2s;
}

.bank-see-all:hover {
    color: var(--accent-red);
}

/* Transactions */
.bank-transaction-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bank-transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    transition: all 0.2s;
}

.bank-transaction-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
}

.bank-transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.bank-transaction-icon.credit {
    background: rgba(74, 139, 71, 0.2);
    border: 2px solid #4a8b47;
    color: #6bc468;
}

.bank-transaction-icon.debit {
    background: rgba(139, 0, 0, 0.2);
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
}

.bank-transaction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bank-transaction-desc {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-transaction-date {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-transaction-balance {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-transaction-amount {
    font-size: 14px;
    font-weight: bold;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-transaction-amount.credit {
    color: #6bc468;
}

.bank-transaction-amount.debit {
    color: var(--accent-red);
}

/* Bills */
.bank-bills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bank-bill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
}

.bank-bill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bank-bill-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-bill-due {
    font-size: 10px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-bill-amount {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-red);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-bill-card {
    padding: 15px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-bill-status {
    font-size: 9px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-bill-status.upcoming {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
    color: #ffa500;
}

.bank-bill-status.paid {
    background: rgba(74, 139, 71, 0.2);
    border: 1px solid #4a8b47;
    color: #6bc468;
}

.bank-bill-status.overdue {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
}

.bank-bill-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-bill-amount-large {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-bill-autopay {
    font-size: 10px;
    color: #6bc468;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-pay-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.bank-pay-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.02);
}

/* Bank Cards View */
.bank-balance-card {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.bank-balance-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.bank-balance-amount {
    font-size: 36px;
    font-weight: bold;
    color: white;
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 8px;
}

.bank-account-info {
    font-size: 11px;
    font-family: 'Special Elite', 'Courier New', monospace;
    display: flex;
    gap: 8px;
}

.phone-cards-carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.phone-cards-carousel::-webkit-scrollbar {
    height: 6px;
}

.phone-cards-carousel::-webkit-scrollbar-track {
    background: var(--screen-bg1);
    border-radius: 3px;
}

.phone-cards-carousel::-webkit-scrollbar-thumb {
    background: var(--phone-border);
    border-radius: 3px;
}

.phone-card-visual {
    min-width: 280px;
    height: 160px;
    border-radius: 12px;
    padding: 15px;
    color: white;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    scroll-snap-align: start;
}

/* DikDok App */
.dikdok-header {
    display: flex;
    background: var(--phone-bg1);
    border-bottom: 2px solid var(--phone-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.dikdok-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.dikdok-tab:hover {
    color: var(--text-gold);
}

.dikdok-tab.active {
    color: var(--text-gold);
    border-bottom-color: var(--accent-red);
    background: var(--screen-bg1);
}

.dikdok-container {
    height: calc(100vh - 120px);
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    background: var(--screen-bg2);
}

.dikdok-video-card {
    height: var(--vh100, 100vh);
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--phone-bg1);
    border-bottom: 3px solid var(--phone-border);
}

.dikdok-video-content {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--screen-bg1) 0%, var(--phone-bg1) 100%);
}

.dikdok-thumbnail {
    font-size: 120px;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dikdok-video-title {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 80px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.dikdok-sidebar {
    position: absolute;
    right: 15px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.dikdok-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dikdok-creator-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--phone-border);
    background: var(--screen-bg1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.dikdok-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(26, 24, 21, 0.7);
    border: 2px solid var(--phone-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.dikdok-action-btn:hover {
    transform: scale(1.1);
    background: rgba(26, 24, 21, 0.9);
    border-color: var(--text-gold);
}

.dikdok-action-btn.liked {
    background: rgba(139, 0, 0, 0.3);
    border-color: var(--accent-red);
    animation: heartbeat 0.3s ease;
}

.dikdok-action-btn.saved {
    background: rgba(184, 134, 11, 0.3);
    border-color: var(--text-gold);
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.dikdok-action-count {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dikdok-info {
    padding: 15px 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 24, 21, 0.95) 30%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 80px;
}

.dikdok-creator-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 6px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dikdok-description {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* End of Feed */
.dikdok-end-feed {
    padding: 60px 20px;
    text-align: center;
    background: var(--screen-bg1);
    border-top: 2px solid var(--phone-border);
}

.dikdok-end-icon {
    font-size: 64px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.dikdok-end-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-bottom: 20px;
}

.dikdok-refresh-btn {
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Special Elite', 'Courier New', monospace;
}

.dikdok-refresh-btn:hover {
    background: var(--accent-red-hover);
    transform: scale(1.05);
}

.dikdok-end-hint {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
    margin-top: 15px;
    font-style: italic;
}

/* Contacts List */
.phone-contacts-list {
    padding: 10px;
}

/* Contacts Section */
.phone-contacts-section {
    margin-bottom: 20px;
}

.phone-contacts-section-header {
    padding: 8px 12px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 6px;
    margin-bottom: 8px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-gold);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    font-size: 14px;
}

.section-letter {
    font-size: 18px;
    color: var(--accent-red);
}

.phone-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--screen-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-contact-item.favorite {
    border-color: var(--accent-red);
    background: linear-gradient(90deg, var(--screen-bg1) 0%, rgba(139, 0, 0, 0.1) 100%);
}

.phone-contact-item:hover {
    background: var(--phone-bg1);
    border-color: var(--text-gold);
    transform: translateX(5px);
}

.phone-contact-item.favorite:hover {
    border-color: var(--accent-red-hover);
}

.phone-contact-photo {
    font-size: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 50%;
}

.phone-contact-item.favorite .phone-contact-photo {
    border-color: var(--accent-red);
}

.phone-contact-info {
    flex: 1;
}

.phone-contact-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-gold);
    margin-bottom: 4px;
    font-family: 'Special Elite', 'Courier New', monospace;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-icon {
    font-size: 12px;
    color: var(--accent-red);
}

.phone-contact-phone {
    font-size: 12px;
    color: var(--text-dim);
    font-family: 'Special Elite', 'Courier New', monospace;
}

/* Messages View */
.phone-messages-container {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.phone-message {
    display: flex;
    max-width: 75%;
}

.phone-message.sent {
    align-self: flex-end;
    margin-left: auto;
}

.phone-message.received {
    align-self: flex-start;
}

.phone-message-bubble {
    padding: 10px 12px;
    border-radius: 12px;
    border: 2px solid;
}

.phone-message.sent .phone-message-bubble {
    background: var(--accent-red);
    border-color: var(--accent-red-hover);
    color: var(--paper-bg);
}

.phone-message.received .phone-message-bubble {
    background: var(--phone-bg1);
    border-color: var(--phone-border);
    color: var(--text-gold);
}

.phone-message-text {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.phone-message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

/* Day separator between message groups in a Quickie thread. */
.phone-message-day-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 12px 6px 8px;
    gap: 8px;
    opacity: 0.75;
}
.phone-message-day-divider::before,
.phone-message-day-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--phone-border);
    opacity: 0.5;
}
.phone-message-day-divider span {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--phone-text, #5F5449);
    white-space: nowrap;
}

.phone-message-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: var(--screen-bg1);
    border-top: 2px solid var(--phone-border);
}

.phone-message-field {
    flex: 1;
    padding: 10px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 20px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
}

.phone-message-field:focus {
    outline: none;
    border-color: var(--accent-red);
}

.phone-send-btn {
    padding: 10px 20px;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    border-radius: 20px;
    color: var(--paper-bg);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.phone-send-btn:hover {
    background: var(--accent-red-hover);
}

/* Message Response Choices */
.phone-message-choices {
    padding: 15px;
    background: var(--screen-bg1);
    border-top: 2px solid var(--phone-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.phone-message-choice-btn {
    padding: 12px 15px;
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    border-radius: 8px;
    color: var(--text-gold);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.phone-message-choice-btn:hover {
    background: var(--screen-bg1);
    border-color: var(--accent-red);
    transform: translateX(5px);
}

.phone-message-choice-btn:active {
    transform: translateX(5px) scale(0.98);
}

/* Placeholder */
.phone-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: var(--text-dim);
    text-align: center;
    padding: 40px;
}

/* ===== NEWSPAPER CLIPPING WIDGET ===== */
.clipping {
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 10px;
    left: 20px;
    right: 20px;
    background: var(--paper-bg);
    border: 2px solid var(--paper-border);
    border-radius: 2px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6),
                inset 0 0 30px rgba(0, 0, 0, 0.15);
    font-family: 'Georgia', 'Times New Roman', serif;
    max-height: 195px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.clipping-stain,
.clipping-stain2 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.clipping-stain {
    width: 60px;
    height: 60px;
    top: 10px;
    right: 20px;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.4) 0%, transparent 70%);
}

.clipping-stain2 {
    width: 40px;
    height: 40px;
    bottom: 30px;
    left: 30px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, transparent 70%);
}

.paper-name {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    color: var(--paper-text);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
    border-bottom: 3px double var(--paper-text);
    padding-bottom: 5px;
}

.paper-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--paper-text);
    opacity: 0.8;
    margin-bottom: 12px;
    font-style: italic;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 8px;
}

.paper-meta span {
    flex: 1;
    text-align: center;
}

.article-content {
    cursor: pointer;
    transition: all 0.2s;
    min-height: 120px;
}

.article-content:hover {
    background: rgba(255, 248, 220, 0.3);
}

.article-headline {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--paper-text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-byline {
    font-size: 9px;
    font-style: italic;
    color: var(--paper-text);
    opacity: 0.7;
    margin-bottom: 8px;
}

.article-body {
    font-size: 10px;
    line-height: 1.4;
    color: var(--paper-text);
    text-align: justify;
    column-count: 2;
    column-gap: 12px;
    max-height: 90px;
    overflow: hidden;
}

.clip-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.clip-btn {
    background: var(--phone-bg1);
    border: 2px solid var(--phone-border);
    color: var(--text-gold);
    padding: 6px 12px;
    font-size: 10px;
    font-family: 'Special Elite', 'Courier New', monospace;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.clip-btn:hover {
    background: var(--screen-bg1);
    border-color: var(--accent-red);
    transform: scale(1.05);
}

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

.clip-counter {
    font-size: 10px;
    color: var(--paper-text);
    font-family: 'Special Elite', 'Courier New', monospace;
    opacity: 0.7;
}

/* QA — the clipping is a fixed-height box with overflow:hidden, and the
   Prev/Next row sat BELOW its bottom edge: the paper looked like a
   single article forever, with twelve more behind a control nobody
   could see or click. The box is a column now — the article text
   truncates, the nav stays. */
.clipping .article-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}
.clipping .clip-nav {
    flex: 0 0 auto;
    margin-top: 8px;
    padding-top: 8px;
}

/* The masthead line (volume, date, price) wrapped to two lines and ate
   the room the headline needed. One line, smaller type — the space goes
   back to the story. */
.clipping .paper-meta {
    font-size: 8px;
    white-space: nowrap;
    gap: 6px;
}

/* The card keeps its shape whatever the headline does: two lines and an
   ellipsis, no byline (it is in the full article), three lines of the
   story. Nothing half-cuts, the buttons never move. */
.clipping .article-headline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clipping .article-byline {
    display: none;
}
.clipping .article-body {
    /* Two columns of newsprint — so a line clamp does nothing here. The
       base rule cut at 90px, which is 6.4 lines of 14px, and the last
       line came out sliced in half. Cut on an exact line boundary
       instead: two lines per column, nothing halved. */
    max-height: 28px;
    overflow: hidden;
}

/* MARKED WORDS — a word he can put a pen through. The dotted rule says
   it can be clicked; the click rings it and writes the note under that
   line (phone-ui.js adds .ink-circled and the note element). */
.ink-mark {
    cursor: pointer;
    border-bottom: 1px dotted rgba(10, 77, 139, 0.5);
    transition: background 0.2s;
}
.ink-mark:hover { background: rgba(10, 77, 139, 0.08); }
.ink-mark.ink-circled {
    border-bottom: 0;
    /* A marker stroke, not a pen loop: a band of highlighter behind the
       words. It is the inline box's background with box-decoration-break
       clone, so a phrase that wraps gets a stroke on every line, and the
       band sweeps in left to right like a hand drawing it. The edges are
       soft-stopped so the stroke is not a printed rectangle. */
    background-image: linear-gradient(
        100deg,
        rgba(255, 214, 92, 0) 0%,
        rgba(255, 214, 92, 0.85) 1.5%,
        rgba(255, 206, 74, 0.92) 30%,
        rgba(255, 214, 92, 0.85) 70%,
        rgba(255, 220, 110, 0.9) 96%,
        rgba(255, 214, 92, 0) 100%);
    background-repeat: no-repeat;
    background-position: 0 58%;
    background-size: 100% 78%;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    mix-blend-mode: multiply;
    padding: 1px 3px;
    margin: 0 -1px;
    animation: ink-mark-sweep 0.45s ease-out both;
}
@keyframes ink-mark-sweep {
    from { background-size: 0% 78%; }
    to   { background-size: 100% 78%; }
}

.article-overlay .ink-note {
    display: block;
    margin: 10px 0 12px;
}

/* The masthead was taking room the story needed: on the card the
   nameplate is smaller and the rules above and below it are tighter, so
   two lines of headline and two of story both fit above the buttons. */
.clipping .paper-name {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 3px;
    padding-bottom: 3px;
}
.clipping .paper-meta {
    margin-bottom: 4px;
    padding-bottom: 3px;
}
.clipping .article-headline {
    margin-bottom: 3px;
    line-height: 1.15;
}

/* Redacted text */
.redacted {
    background: #000;
    color: #000;
    padding: 2px 4px;
    border-radius: 2px;
    user-select: none;
    display: inline-block;
}

/* Handwritten notes */
.handwritten {
    font-family: 'Caveat', cursive, 'Comic Sans MS', sans-serif;
    color: #0a4d8b;
    font-size: 11px;
    display: block;
    margin: 8px 0;
    padding: 5px;
    background: rgba(173, 216, 230, 0.1);
    border-left: 3px solid #0a4d8b;
    font-weight: 600;
    line-height: 1.3;
}

/* In the open article the notes are written WHILE reading: each one
   inks in when the paragraph it sits against comes into view
   (phone-ui.js adds .hw-seen from an observer). If that never runs —
   old browser, no observer — the note simply shows. */
.article-overlay .handwritten {
    opacity: 0;
    transform: translateY(6px) rotate(-0.6deg);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-overlay .handwritten.hw-seen {
    opacity: 1;
    transform: none;
}

/* Theme-specific newspaper colors */
[data-phone-theme="sepia"] .clipping,
[data-phone-theme="sepia"] .article-overlay-content {
    --paper-bg: #f4eadb;
    --paper-border: #8b7355;
    --paper-text: #2c1810;
}

[data-phone-theme="midnight"] .clipping,
[data-phone-theme="midnight"] .article-overlay-content {
    --paper-bg: #d4dce8;
    --paper-border: #4a5a7a;
    --paper-text: #1a1e2e;
}

[data-phone-theme="precinct"] .clipping,
[data-phone-theme="precinct"] .article-overlay-content {
    --paper-bg: #e8d4d4;
    --paper-border: #8b4a4a;
    --paper-text: #2e1a1a;
}

[data-phone-theme="blood"] .clipping,
[data-phone-theme="blood"] .article-overlay-content {
    --paper-bg: #d4e8e8;
    --paper-border: #4a7a7a;
    --paper-text: #1a2e2e;
}

/* Article Overlay (Full View) */
.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    animation: fadeIn 0.3s ease;
}

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

.article-overlay-content {
    background: var(--paper-bg);
    border: 3px solid var(--paper-border);
    border-radius: 4px;
    padding: 20px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    position: relative;
}

.article-overlay .article-headline {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--paper-text);
}

.article-overlay .article-byline {
    font-size: 11px;
    margin-bottom: 15px;
    color: var(--paper-text);
}

.article-overlay .article-body {
    font-size: 13.5px;
    line-height: 1.7;
    column-count: 1;
    max-height: none;
    color: var(--paper-text);
}

.article-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-red);
    border: 2px solid var(--accent-red-hover);
    color: var(--paper-bg);
    width: 36px;
    height: 36px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.article-close-btn:hover {
    background: var(--accent-red-hover);
    transform: rotate(90deg) scale(1.1);
}

/* ──────────────────────────────────────────────────────────────────
 * Floating phone — diegetic "phone on the table" element.
 * Smartphone in a leather case. Quiet presence by default: dark
 * leather body, near-black screen. On hover or notification the
 * screen lights up with a soft #5c4a32 glow as if waking up.
 * ────────────────────────────────────────────────────────────────── */
.floating-phone {
    position: fixed;
    right: 24px;
    bottom: 90px;
    width: 56px;
    height: 100px;
    z-index: 9998;
    cursor: pointer;
    transform: rotate(-9deg);
    transform-origin: 50% 90%;
    transition: transform 0.3s ease, filter 0.3s ease;
    /* Leather case body — dark, slightly stitched look */
    background:
      linear-gradient(135deg, #3a2e1f 0%, #2a1f15 45%, #1a120c 100%);
    border: 1px solid #14100a;
    border-radius: 9px;
    /* Stitched inner edge + faint top highlight */
    box-shadow:
      inset 0 0 0 1px rgba(196, 168, 122, 0.10),
      inset 0 1px 2px rgba(255, 240, 210, 0.06),
      inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    padding: 9px 6px 12px;
    box-sizing: border-box;
    filter:
      drop-shadow(0 8px 12px rgba(0, 0, 0, 0.6))
      drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    will-change: transform;
}

/* Speaker slit at the top */
.floating-phone::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: #0e0a07;
    box-shadow: 0 1px 0 rgba(196, 168, 122, 0.06);
}

/* Home button at the bottom */
.floating-phone::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a1f15, #14100a);
    border: 1px solid #4a3a28;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
}

.floating-phone:hover {
    transform: rotate(-3deg) translateY(-4px) scale(1.08);
    filter:
      drop-shadow(0 12px 18px rgba(0, 0, 0, 0.65))
      drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.floating-phone:active {
    transform: rotate(-5deg) translateY(-1px) scale(1.02);
    transition: transform 0.08s ease;
}

/* The screen — minimum detail; nearly black at rest. */
.floating-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 3px;
    background: #0a0805;
    box-shadow:
      inset 0 0 2px rgba(0, 0, 0, 0.9),
      inset 0 0 0 1px #1a120c;
    transition: background 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

/* Subtle screen glow on hover — like the phone just woke up */
.floating-phone:hover .floating-phone-screen {
    background:
      radial-gradient(ellipse at center,
        rgba(92, 74, 50, 0.55) 0%,
        rgba(92, 74, 50, 0.18) 55%,
        #0a0805 100%);
    box-shadow:
      inset 0 0 10px rgba(92, 74, 50, 0.35),
      inset 0 0 0 1px #1a120c;
}

.floating-phone-badge {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background: #8B0000;
    color: #f4e8d3;
    border: 1.5px solid #14100a;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
    padding: 0 4px;
    z-index: 2;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
    transform: rotate(9deg); /* counter the phone tilt so the badge sits level */
}

/* ── MESSAGE STATE ─────────────────────────────────────────────────
 * Quiet. No movement. Just a sign that something arrived:
 *   - red badge with count, slow gentle pulse
 *   - faint static screen glow at the top edge, as if the screen
 *     briefly lit up to receive the notification and then dimmed
 * ────────────────────────────────────────────────────────────────── */
.floating-phone.has-message .floating-phone-badge {
    display: flex;
    background: #8B0000;
    animation: floatingPhoneMsgBadge 2.4s ease-in-out infinite;
}

.floating-phone.has-message .floating-phone-screen {
    background:
      linear-gradient(to bottom,
        rgba(92, 74, 50, 0.18) 0%,
        rgba(92, 74, 50, 0.04) 22%,
        #0a0805 60%);
    box-shadow:
      inset 0 0 4px rgba(92, 74, 50, 0.15),
      inset 0 0 0 1px #1a120c;
}

@keyframes floatingPhoneMsgBadge {
    0%, 100% { transform: rotate(9deg) scale(1);    opacity: 1;    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
    50%      { transform: rotate(9deg) scale(1.08); opacity: 0.85; box-shadow: 0 2px 6px rgba(139, 0, 0, 0.5); }
}

/* ── CALL STATE ───────────────────────────────────────────────────
 * Visibly ringing — phone twitches like it's vibrating on the table,
 * screen pulses brightly, amber "!" badge with rapid beat.
 * Identity of the caller is intentionally NOT shown.
 * ────────────────────────────────────────────────────────────────── */
.floating-phone.has-call .floating-phone-badge {
    display: flex;
    background: #c4a87a;
    color: #2a1f15;
    border-color: #14100a;
    font-size: 12px;
    animation: floatingPhoneCallBadge 1.2s ease-in-out infinite;
}

.floating-phone.has-call .floating-phone-screen {
    animation: floatingPhoneCallScreen 1.4s ease-in-out infinite;
}

/* Soft ring of vibration — short bursts every ~2.4s, like a phone
 * giving two quick rings then resting. Not a continuous shake. */
.floating-phone.has-call {
    animation: floatingPhoneRing 2.4s ease-in-out infinite;
}

@keyframes floatingPhoneCallBadge {
    0%, 100% { transform: rotate(9deg) scale(1);    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }
    50%      { transform: rotate(9deg) scale(1.18); box-shadow: 0 0 10px rgba(196, 168, 122, 0.75); }
}

@keyframes floatingPhoneCallScreen {
    0%, 100% {
        background: #0a0805;
        box-shadow:
          inset 0 0 2px rgba(0, 0, 0, 0.9),
          inset 0 0 0 1px #1a120c;
    }
    50% {
        background:
          radial-gradient(ellipse at center,
            rgba(92, 74, 50, 0.65) 0%,
            rgba(92, 74, 50, 0.22) 55%,
            #0a0805 100%);
        box-shadow:
          inset 0 0 10px rgba(92, 74, 50, 0.40),
          inset 0 0 0 1px #1a120c;
    }
}

/* A short burst of vibration at the start of each cycle, then rest.
 * Amplitude ±1.5°, ±1px — felt, not flailing. */
@keyframes floatingPhoneRing {
    0%   { transform: rotate(-9deg)    translateX(0); }
    3%   { transform: rotate(-10.5deg) translateX(-1px); }
    6%   { transform: rotate(-7.5deg)  translateX(1px); }
    9%   { transform: rotate(-10.5deg) translateX(-1px); }
    12%  { transform: rotate(-7.5deg)  translateX(1px); }
    15%  { transform: rotate(-9deg)    translateX(0); }
    /* rest */
    40%  { transform: rotate(-9deg)    translateX(0); }
    43%  { transform: rotate(-10.5deg) translateX(-1px); }
    46%  { transform: rotate(-7.5deg)  translateX(1px); }
    49%  { transform: rotate(-10.5deg) translateX(-1px); }
    52%  { transform: rotate(-7.5deg)  translateX(1px); }
    55%  { transform: rotate(-9deg)    translateX(0); }
    /* long rest until next ring */
    100% { transform: rotate(-9deg)    translateX(0); }
}

/* Hover suppresses any notification animation so the player can grab cleanly. */
.floating-phone.has-message:hover,
.floating-phone.has-call:hover {
    animation: none;
}
.floating-phone.has-call:hover .floating-phone-screen {
    animation: none;
}

.floating-phone.is-open {
    display: none;
}


/* ── Contact photos ───────────────────────────────────────────
   Her contact photo is a photograph a person would actually have
   of someone — full length, shot standing. The incoming-call
   screen shows it whole, full bleed, and should. But the middle of
   a standing body in a 50px circle is a torso, so every round
   avatar takes a per-girl face crop instead (the inline transform
   comes from js/cast-portraits.js). That zoom has to be clipped,
   and these frames were only ever rounded — they never had
   overflow set, because nothing inside them had ever overflowed. */
.phone-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.phone-contact-photo,
.phone-conversation-photo,
.phone-call-photo,
.phone-msg-banner-avatar {
    overflow: hidden;
}

/* ===== DRIPPER (phone) =====
   The phone app used to emit .dripper-* names, which are the DESKTOP
   Dripper's in computer-styles.css -- a sidebar layout landing inside a
   390px screen. Its own namespace now, and its own brand: this app does
   not follow the phone's four themes, it is cream paper and navy ink
   wherever you open it. */
.pdrip-app {
    --pd-paper: #efe6d0;
    --pd-paper2: #e7dbc0;
    --pd-ink: #16273f;
    --pd-mute: #7c7666;
    --pd-blue: #2aa3dc;
    --pd-line: #cfc3a4;
    --pd-red: #c8362f;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--pd-paper);
    font-family: 'Courier New', Courier, monospace;
    color: var(--pd-ink);
    overflow: hidden;
}
:where(.pdrip-app button) {
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
}
.pdrip-i {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ── header ── */
.pdrip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: var(--pd-paper2);
    border-bottom: 2px solid var(--pd-line);
}
.pdrip-back { font-size: 24px; line-height: 1; color: var(--pd-ink); }
.pdrip-drop .pdrip-i { width: 26px; height: 26px; fill: var(--pd-blue); stroke: none; }
.pdrip-brand { flex: 1; min-width: 0; }
.pdrip-word {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--pd-ink);
}
.pdrip-motto {
    font-size: 7px;
    letter-spacing: 2.2px;
    color: var(--pd-mute);
    margin-top: 2px;
}
.pdrip-hbtn .pdrip-i { width: 21px; height: 21px; }

/* ── tabs ── */
.pdrip-tabs {
    display: flex;
    background: var(--pd-paper2);
    border-bottom: 1px solid var(--pd-line);
}
.pdrip-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 0;
    font-size: 10px;
    letter-spacing: 1.2px;
    color: var(--pd-mute);
    border-bottom: 3px solid transparent;
}
.pdrip-tab.on { color: var(--pd-blue); border-bottom-color: var(--pd-blue); }
.pdrip-tab.on .pdrip-i { stroke: var(--pd-blue); }

/* ── feed ── */
.pdrip-feed { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 58px; }
.pdrip-feed::-webkit-scrollbar { width: 5px; }
.pdrip-feed::-webkit-scrollbar-thumb { background: var(--pd-line); border-radius: 3px; }
.pdrip-post {
    display: flex;
    gap: 10px;
    padding: 12px 11px 10px;
    border-bottom: 1px solid var(--pd-line);
}
.pdrip-ava {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--pd-ink);
    color: var(--pd-paper);
    font-size: 17px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pdrip-ava.big { width: 56px; height: 56px; font-size: 24px; }
.pdrip-main { flex: 1; min-width: 0; }
.pdrip-line { display: flex; align-items: baseline; gap: 5px; flex-wrap: nowrap; min-width: 0; }
.pdrip-name {
    font-size: 13px;
    font-weight: bold;
    color: var(--pd-ink);
    flex: 0 0 auto;
    white-space: nowrap;
}
.pdrip-handle, .pdrip-sep, .pdrip-time { font-size: 10.5px; color: var(--pd-mute); }
.pdrip-handle { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdrip-time { white-space: nowrap; }
.pdrip-more { margin-left: auto; color: var(--pd-mute); }
.pdrip-text {
    font-size: 12.5px;
    line-height: 1.5;
    margin: 4px 0 9px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.pdrip-tag, .pdrip-at { color: var(--pd-blue); }
.pdrip-acts { display: flex; justify-content: space-between; max-width: 250px; }
.pdrip-act {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--pd-mute);
}
.pdrip-act.on { color: var(--pd-blue); }
.pdrip-act.on .pdrip-i { fill: var(--pd-blue); stroke: var(--pd-blue); }
.pdrip-act[id^="pdrip-like"].on { color: var(--pd-red); }
.pdrip-act[id^="pdrip-like"].on .pdrip-i { fill: var(--pd-red); stroke: var(--pd-red); }

/* ── empty state ── */
.pdrip-empty { text-align: center; padding: 46px 22px; color: var(--pd-mute); }
.pdrip-empty-plate .pdrip-i { width: 40px; height: 40px; fill: var(--pd-blue); stroke: none; opacity: .45; }
.pdrip-empty strong { display: block; color: var(--pd-ink); font-size: 13px; margin: 10px 0 6px; }
.pdrip-empty span { font-size: 11px; line-height: 1.5; }

/* ── compose button ── */
.pdrip-fab {
    position: absolute;
    right: 13px;
    bottom: 64px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pd-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    z-index: 4;
}
.pdrip-fab .pdrip-i { width: 25px; height: 25px; fill: #fff; stroke: none; }

/* ── bottom nav ── */
.pdrip-nav {
    display: flex;
    background: var(--pd-paper2);
    border-top: 2px solid var(--pd-line);
    padding: 6px 0 7px;
}
.pdrip-nb {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    letter-spacing: 1.3px;
    color: var(--pd-mute);
}
.pdrip-nb.on { color: var(--pd-ink); }
.pdrip-nb.on .pdrip-i { stroke: var(--pd-blue); }
.pdrip-dot {
    position: absolute;
    top: -2px;
    right: 22%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pd-blue);
}

/* ── sheets: inside the glass, never over the page ── */
.pdrip-sheet {
    position: absolute;
    inset: 0;
    z-index: 8;
    background: var(--pd-paper);
    display: flex;
    flex-direction: column;
}
.pdrip-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--pd-paper2);
    border-bottom: 2px solid var(--pd-line);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.pdrip-sheet-head button { font-size: 20px; line-height: 1; }
.pdrip-sheet-body { flex: 1; overflow-y: auto; padding: 12px; }
.pdrip-quiet { text-align: center; padding: 26px 14px; color: var(--pd-mute); }
.pdrip-quiet strong { display: block; color: var(--pd-ink); font-size: 13px; margin-bottom: 7px; }
.pdrip-quiet p { font-size: 11.5px; line-height: 1.6; margin: 0; }
.pdrip-quiet-drop .pdrip-i { width: 34px; height: 34px; fill: var(--pd-blue); stroke: none; opacity: .5; }
.pdrip-prof { display: flex; align-items: center; gap: 12px; }
.pdrip-bio { font-size: 11.5px; line-height: 1.6; margin: 11px 0; }
.pdrip-stats { display: flex; gap: 18px; margin: 12px 0; font-size: 10.5px; color: var(--pd-mute); }
.pdrip-stats b { color: var(--pd-ink); font-size: 14px; margin-right: 4px; }
.pdrip-follow {
    width: 100%;
    padding: 9px;
    border-radius: 20px;
    background: var(--pd-ink);
    color: var(--pd-paper);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.6px;
}
.pdrip-follow.on { background: transparent; color: var(--pd-ink); box-shadow: inset 0 0 0 2px var(--pd-ink); }
.pdrip-sub { margin: 15px 0 8px; font-size: 10px; letter-spacing: 1.6px; color: var(--pd-mute); text-transform: uppercase; }
.pdrip-mini {
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    padding: 9px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, .3);
}
.pdrip-mini .pdrip-text { margin: 0; font-size: 11.5px; }
.pdrip-mini-acts { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10.5px; color: var(--pd-mute); }
.pdrip-mini-acts .pdrip-i { width: 14px; height: 14px; }
.pdrip-mini-acts span { margin-right: 9px; }
.pdrip-trend {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    padding: 11px 2px;
    border-bottom: 1px solid var(--pd-line);
}
.pdrip-trend-rank { font-size: 14px; font-weight: bold; color: var(--pd-mute); min-width: 16px; }
.pdrip-trend .pdrip-tag { font-size: 13px; font-weight: bold; }
.pdrip-trend small { display: block; font-size: 10px; color: var(--pd-mute); margin-top: 2px; }
.pdrip-toast {
    position: absolute;
    left: 50%;
    bottom: 74px;
    transform: translateX(-50%);
    z-index: 9;
    background: var(--pd-ink);
    color: var(--pd-paper);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: .6px;
    white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════
   HOT ROUTE — the courier's partner app (js/phone-hotroute.js)
   ═══════════════════════════════════════════════════════════ */
.hr-app { display: flex; flex-direction: column; height: 100%; background: #EBE6D8; color: #3A3238; font-family: 'Courier New', Courier, monospace; }
.hr-head { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 8px; border-bottom: 3px solid #8B0000; }
.hr-logo { font-weight: bold; letter-spacing: 3px; color: #8B0000; font-size: 0.95rem; }
.hr-sub { font-size: 0.6rem; letter-spacing: 2px; color: #8E7F7F; }
.hr-tabs { display: flex; border-bottom: 1px solid #8E7F7F; }
.hr-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; font-family: inherit; font-size: 0.66rem; letter-spacing: 2px; color: #8E7F7F; cursor: pointer; }
.hr-tab.on { color: #3A3238; border-bottom-color: #8B0000; font-weight: bold; }
.hr-body { flex: 1; overflow-y: auto; padding: 10px 12px 16px; }
.hr-card { background: #F4EFE2; border: 1px solid #8E7F7F; padding: 10px 12px; margin-bottom: 10px; }
.hr-eyebrow { font-size: 0.58rem; letter-spacing: 2px; color: #8B0000; margin-bottom: 6px; }
.hr-rating { font-family: Georgia, serif; font-size: 2rem; font-weight: bold; line-height: 1; }
.hr-of { font-size: 0.8rem; color: #8E7F7F; font-family: 'Courier New', monospace; font-weight: normal; }
.hr-stars { color: #8B0000; letter-spacing: 2px; margin: 4px 0 8px; }
.hr-bar { height: 5px; background: rgba(142,127,127,0.3); }
.hr-bar-fill { height: 100%; background: #3A3238; }
.hr-zone { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: 0.62rem; letter-spacing: 1.5px; }
.hr-zone-name { font-weight: bold; padding: 2px 6px; border: 1px solid currentColor; }
.hr-zone-name.yellow { color: #8a6a1a; } .hr-zone-name.green { color: #2d5016; } .hr-zone-name.platinum { color: #3A3238; }
.hr-zone-hint { color: #8E7F7F; }
.hr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.hr-stat { background: #F4EFE2; border: 1px solid #8E7F7F; padding: 8px 4px; text-align: center; }
.hr-stat-v { font-family: Georgia, serif; font-weight: bold; font-size: 1.05rem; }
.hr-stat-l { font-size: 0.56rem; letter-spacing: 2px; color: #8E7F7F; margin-top: 2px; }
.hr-text p { font-size: 0.7rem; line-height: 1.5; margin: 0 0 8px; }
.hr-text h4 { font-size: 0.64rem; letter-spacing: 1.5px; color: #3A3238; margin: 10px 0 4px; text-transform: uppercase; }
.hr-text .hr-fine { font-size: 0.6rem; color: #8E7F7F; font-style: italic; }
.hr-list .hr-job { padding: 7px 0; border-bottom: 1px dotted rgba(142,127,127,0.5); }
.hr-job-top, .hr-job-sub { display: flex; justify-content: space-between; gap: 8px; }
.hr-job-food { font-weight: bold; font-size: 0.74rem; }
.hr-job-pay { font-weight: bold; font-size: 0.74rem; }
.hr-job-pay i { font-style: normal; color: #2d5016; }
.hr-job-sub { font-size: 0.62rem; color: #5F5449; margin-top: 2px; }
.hr-job.late .hr-job-sub span:last-child { color: #8B0000; }
.hr-job-when { font-size: 0.58rem; color: #8E7F7F; margin-top: 2px; letter-spacing: 0.5px; }
