/*
 * The Mels Live - Authentic High-Fidelity UI Styling
 * Clean, modern Sims 4 glassmorphic aesthetic:
 * - Oceanic blues, fresh greens, glowing Plumbobs, and crisp white typography
 */

:root {
    --sims-blue-dark: #0f2438;
    --sims-blue-panel: rgba(18, 44, 70, 0.88);
    --sims-blue-card: rgba(25, 60, 95, 0.75);
    --sims-border: rgba(120, 180, 240, 0.35);
    --sims-plumbob-green: #2ecc71;
    --sims-simoleon-gold: #f39c12;
    --sims-white: #ffffff;
    --sims-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background-color: var(--sims-blue-dark);
    font-family: var(--sims-font);
    color: var(--sims-white);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#canvasContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* ==========================================================================
/* ==========================================================================
   TOP CONTROLS & CAMERA TOOLBAR
   ========================================================================== */

/* Current Lot HUD Banner */
/* ==========================================================================
   TOP HEADER & TOOLBAR LAYOUT (NO-OVERLAP GUARANTEE)
   ========================================================================== */
.game-header {
    position: absolute;
    top: 12px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    z-index: 20;
    pointer-events: none;
}

.current-lot-hud {
    position: relative;
    top: 0;
    left: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sims-blue-panel);
    border: 1.5px solid var(--sims-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 6px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #fff;
    pointer-events: auto;
}

.lot-pin-icon {
    font-size: 1.2rem;
}

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

.lot-hud-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lot-hud-name {
    font-size: 0.90rem;
    font-weight: 700;
    color: var(--sims-white);
    white-space: nowrap;
}

.lot-hud-owner {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--sims-text-muted);
    white-space: nowrap;
}

.lot-hud-details-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 1px;
}

.lot-hud-separator {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.72rem;
}

.tso-simtime-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    padding: 1px 7px;
    color: #e2e8f0;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.tso-phase-icon {
    font-size: 0.82rem;
    filter: drop-shadow(0 0 4px rgba(255, 200, 50, 0.5));
}

.tso-time-text {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.tso-day-pill {
    color: #7dd3fc;
    font-size: 0.66rem;
    font-weight: 600;
    text-transform: uppercase;
}

.top-toolbar {
    position: relative;
    top: 0;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    max-width: calc(100% - 370px);
}

.toolbar-btn-group {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

#topToolbar .sims-btn {
    padding: 6px 11px;
    font-size: 0.78rem;
    border-radius: 16px;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.camera-group {
    background: rgba(15, 30, 48, 0.65);
    border: 1px solid rgba(80, 160, 220, 0.25);
    border-radius: 20px;
    padding: 2px 4px;
    backdrop-filter: blur(8px);
}

.cam-ctrl-btn {
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    border-radius: 50% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    color: #ffffff;
    transition: all 0.15s ease;
}

.cam-ctrl-btn:hover {
    background: rgba(46, 204, 113, 0.3) !important;
    color: var(--sims-plumbob-green) !important;
    transform: scale(1.1);
}

.sims-btn {
    background: var(--sims-blue-panel);
    border: 1.5px solid var(--sims-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--sims-white);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.sims-btn:hover {
    background: rgba(35, 85, 135, 0.95);
    border-color: var(--sims-plumbob-green);
    transform: translateY(-1px);
}

/* ==========================================================================
   BOTTOM MASTER HUD (Sims 4 Style)
   ========================================================================== */
#bottomHUD {
    position: absolute;
    bottom: 14px;
    left: 18px;
    right: 18px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

/* Left Cluster: Side-by-side Profile Card & Action Queue (No vertical overlap) */
.sim-hud-left-cluster {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 12px;
    pointer-events: auto;
}

/* Active Sim Portrait Card (Bottom-Left) */
.sim-profile-card {
    pointer-events: auto;
    background: var(--sims-blue-panel);
    border: 2px solid var(--sims-border);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 10px 18px 10px 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.sim-portrait-wrap {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid var(--sims-plumbob-green);
    background: radial-gradient(circle, #256598 0%, #102d45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.45);
    transition: transform 0.2s;
}

.sim-portrait-wrap:hover {
    transform: scale(1.08);
}

.plumbob-icon-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px #2ecc71);
}

.sim-info-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 140px;
}

.sim-info-col .hud-career-chip,
.sim-info-col .sim-diamonds-badge,
.sim-info-col .hud-phone-btn {
    display: inline-flex !important;
    width: fit-content !important;
    max-width: 150px;
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
    border-radius: 12px !important;
    margin: 1px 0 !important;
}

.sim-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.sim-emotion-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--sims-plumbob-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sim-wallet {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sims-simoleon-gold);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   ACTIVE ACTIVITY CARD & ACTION QUEUE BAR (THE SIMS STYLE)
   ========================================================================== */
.action-queue-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    min-height: 46px;
}

.active-activity-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(16, 44, 74, 0.95), rgba(8, 22, 38, 0.95));
    border: 2px solid var(--sims-plumbob-green);
    box-shadow: 0 4px 18px rgba(46, 204, 113, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 5px 12px 5px 6px;
    animation: pulseActiveActivity 2s infinite ease-in-out;
}

@keyframes pulseActiveActivity {
    0%, 100% { box-shadow: 0 4px 18px rgba(46, 204, 113, 0.35); }
    50% { box-shadow: 0 4px 24px rgba(46, 204, 113, 0.7); }
}

.active-activity-icon-slot {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-spinner-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--sims-plumbob-green);
    border-right-color: rgba(85, 239, 196, 0.65);
    animation: spinRing 1.5s linear infinite;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.active-activity-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 100px;
    max-width: 160px;
}

.activity-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
}

.activity-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.activity-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2ecc71, #55efc4);
    border-radius: 3px;
    transition: width 0.12s ease-out;
}

.activity-cancel-btn {
    background: rgba(231, 76, 60, 0.25);
    border: 1px solid rgba(231, 76, 60, 0.6);
    color: #ff7675;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.2s;
    margin-left: 2px;
}

.activity-cancel-btn:hover {
    background: #e74c3c;
    color: #fff;
    transform: scale(1.15);
}

.action-slot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(18, 44, 70, 0.9);
    border: 2px solid var(--sims-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: transform 0.2s;
}

.action-slot.queued {
    border-color: rgba(255, 255, 255, 0.35);
}

.action-slot.queued:hover {
    transform: scale(1.1);
    border-color: #f39c12;
}

.action-slot.queued:hover::after {
    content: "✕";
    position: absolute;
    top: -4px;
    right: -4px;
    background: #e74c3c;
    color: #fff;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Needs Motives Panel (Bottom-Right) */
.needs-panel {
    pointer-events: auto;
    background: var(--sims-blue-panel);
    border: 2px solid var(--sims-border);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 12px 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 280px;
}

.needs-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a4c8e8;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 4px;
}

.need-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
}

.need-label {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 80px;
}

.need-track {
    flex: 1;
    height: 9px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.need-fill {
    height: 100%;
    width: 80%;
    background-color: var(--sims-plumbob-green);
    border-radius: 5px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* ==========================================================================
   CIRCULAR FLOATING PIE MENU
   ========================================================================== */
#pieMenuContainer {
    display: none;
    position: absolute;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    z-index: 50;
    pointer-events: auto;
}

#pieMenuContainer.active {
    display: block;
    animation: popIn 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes popIn {
    from { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.pie-center-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    background: var(--sims-blue-panel);
    border: 2px solid var(--sims-plumbob-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.4);
    z-index: 2;
}

.pie-slice-btn {
    position: absolute;
    width: 90px;
    height: 44px;
    background: var(--sims-blue-card);
    border: 1.5px solid var(--sims-border);
    backdrop-filter: blur(8px);
    border-radius: 22px;
    color: var(--sims-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    transition: all 0.15s ease;
    z-index: 3;
}

.pie-slice-btn small {
    font-size: 0.62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

.pie-slice-btn:hover {
    background: #1d70b8;
    border-color: var(--sims-plumbob-green);
    transform: scale(1.1);
}

/* ==========================================================================
   MULTIPLAYER CHAT & SYSTEM LOG BOX (TABBED & COLLAPSIBLE)
   ========================================================================== */
/* ==========================================================================
   MULTIPLAYER CHAT & SYSTEM LOG BOX (DRAGGABLE & RESIZABLE)
   ========================================================================== */
#chatContainer {
    position: absolute;
    bottom: 210px; /* Elevated high above the player info card to prevent any overlap */
    left: 18px;
    width: 360px;
    height: 230px;
    min-width: 280px;
    max-width: min(800px, 95vw);
    min-height: 140px;
    max-height: min(650px, 85vh);
    background: rgba(14, 34, 54, 0.94);
    border: 1.5px solid var(--sims-border);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 8px 10px 10px;
    z-index: 55; /* Higher than #bottomHUD (20) to guarantee it never goes underneath */
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    pointer-events: auto;
    user-select: text;
}

#chatContainer.dragging {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 16px rgba(9, 132, 227, 0.6);
    border-color: #74b9ff;
    transition: none !important;
}

#chatContainer.collapsed {
    height: 38px !important;
    min-height: 38px !important;
    overflow: hidden;
    padding-bottom: 4px;
    background: rgba(14, 34, 54, 0.85);
}

#chatContainer.collapsed .chat-body,
#chatContainer.collapsed .chat-resize-handle {
    display: none !important;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
    cursor: grab;
    user-select: none;
    touch-action: none;
}

.chat-header:active,
.chat-header.dragging {
    cursor: grabbing;
}

.chat-drag-handle {
    font-size: 1.1rem;
    color: #7f8c8d;
    padding: 0 4px 0 0;
    cursor: grab;
    user-select: none;
    transition: color 0.15s;
}

.chat-header:hover .chat-drag-handle {
    color: #55efc4;
}

.chat-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.chat-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 3px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a4b0be;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chat-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.chat-tab-btn.active {
    color: #fff;
    background: rgba(9, 132, 227, 0.35);
    border-color: rgba(116, 185, 255, 0.5);
    box-shadow: 0 0 8px rgba(9, 132, 227, 0.4);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    color: #dfe6e9;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.15s;
}

.chat-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: scale(1.1);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 6px;
}

#chatMessages {
    flex: 1;
    min-height: 60px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    padding-right: 4px;
}

#chatMessages::-webkit-scrollbar {
    width: 4px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.chat-entry {
    line-height: 1.35;
    word-break: break-word;
    display: flex;
    gap: 5px;
}

.chat-entry strong {
    color: #5dade2;
    flex-shrink: 0;
}

.chat-entry.msg-system strong {
    color: #f1c40f;
}

.chat-entry.msg-system span {
    color: #dfe6e9;
}

.chat-entry.msg-chat strong {
    color: #2ecc71;
}

#chatForm {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

#chatInput {
    flex: 1;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--sims-border);
    color: #fff;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    outline: none;
    transition: border-color 0.2s;
}

#chatInput:focus {
    border-color: var(--sims-plumbob-green);
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.chat-send-btn {
    padding: 4px 12px !important;
    font-size: 0.75rem !important;
    background: linear-gradient(135deg, #0984e3, #00cec9) !important;
    border-color: #55efc4 !important;
}

.chat-resize-handle {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 14px;
    height: 14px;
    cursor: se-resize;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    user-select: none;
    text-align: center;
    line-height: 14px;
    touch-action: none;
    transition: color 0.15s;
}

.chat-resize-handle:hover {
    color: #55efc4;
}

/* ==========================================================================
   CHARACTER CUSTOMIZER MODAL
   ========================================================================== */
.sims-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 15, 25, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sims-modal.active {
    display: flex !important;
    z-index: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background: var(--sims-blue-panel);
    border: 2px solid var(--sims-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sims-plumbob-green);
}

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

.form-group label {
    font-size: 0.8rem;
    color: #a4c8e8;
}

.form-group input, .form-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--sims-border);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================================================
   TITLE SCREEN OVERLAY & AUTHENTICATION STYLING
   ========================================================================== */
.title-screen {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 50% 40%, rgba(20, 55, 90, 0.85) 0%, rgba(6, 18, 32, 0.97) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.title-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.title-content-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 28px;
    background: rgba(18, 44, 75, 0.7);
    border: 1.5px solid rgba(130, 200, 255, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(46, 204, 113, 0.15);
    animation: titleCardPop 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes titleCardPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Iconic Animated 3D-styled Plumbob */
.title-plumbob-container {
    position: relative;
    width: 60px;
    height: 90px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-plumbob-gem {
    width: 44px;
    height: 74px;
    background: linear-gradient(135deg, #a8ff78 0%, #2ecc71 45%, #15803d 100%);
    clip-path: polygon(50% 0%, 100% 35%, 50% 100%, 0% 35%);
    filter: drop-shadow(0 0 16px rgba(46, 204, 113, 0.85));
    animation: plumbobFloat 2.8s ease-in-out infinite;
}

@keyframes plumbobFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 16px rgba(46, 204, 113, 0.75));
    }
    50% {
        transform: translateY(-12px) rotate(4deg) scale(1.05);
        filter: drop-shadow(0 0 26px rgba(46, 204, 113, 0.95));
    }
}

.title-plumbob-shadow {
    width: 32px;
    height: 10px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    margin-top: 6px;
    animation: plumbobShadow 2.8s ease-in-out infinite;
}

@keyframes plumbobShadow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(0.7); opacity: 0.3; }
}

.title-game-logo {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-live-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 14px rgba(46, 204, 113, 0.6);
}

.title-tagline {
    font-size: 0.88rem;
    color: #b0d4f1;
    margin-bottom: 22px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.title-account-status {
    background: rgba(10, 30, 50, 0.6);
    border: 1px solid rgba(130, 200, 255, 0.25);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cde4f7;
    margin-bottom: 24px;
}

.title-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 26px;
}

.sims-title-btn {
    width: 100%;
    padding: 13px 20px;
    background: rgba(22, 55, 90, 0.9);
    border: 1.5px solid var(--sims-border);
    border-radius: 24px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: all 0.22s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sims-title-btn:hover {
    background: rgba(35, 90, 145, 0.95);
    border-color: var(--sims-plumbob-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(46, 204, 113, 0.25);
}

.sims-title-btn.primary-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-color: #55efc4;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.45);
}

.sims-title-btn.primary-btn:hover {
    background: linear-gradient(135deg, #2ecc71 0%, #55efc4 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(46, 204, 113, 0.6);
}

.title-footer-notes {
    font-size: 0.72rem;
    color: #7da5c9;
}

/* Authentication Modal Upgrades */
.auth-modal-card {
    max-width: 440px;
}

.auth-tabs-header {
    display: flex;
    gap: 12px;
}

.auth-tab-btn {
    background: transparent;
    border: none;
    color: #92b8dc;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 4px 10px;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: all 0.2s ease;
}

.auth-tab-btn.active {
    color: var(--sims-plumbob-green);
    border-bottom-color: var(--sims-plumbob-green);
}

.auth-alert {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    text-align: center;
}

.auth-alert.error {
    background: rgba(231, 76, 60, 0.25);
    border: 1px solid rgba(231, 76, 60, 0.6);
    color: #ff9999;
}

.auth-alert.success {
    background: rgba(46, 204, 113, 0.25);
    border: 1px solid rgba(46, 204, 113, 0.6);
    color: #abffcb;
}

.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.primary-submit-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--sims-plumbob-green);
    border-color: #27ae60;
    font-size: 0.95rem;
    font-weight: 700;
    justify-content: center;
    border-radius: 14px;
}

.primary-submit-btn:hover {
    background: #27ae60;
    border-color: #55efc4;
}

/* ==========================================================================
   NEIGHBORHOOD WORLD MAP & ONBOARDING STYLING
   ========================================================================== */
.neighborhood-overlay {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: radial-gradient(circle at 50% 15%, #18426d 0%, #07192d 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.neighborhood-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.neighborhood-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px 30px;
    box-sizing: border-box;
}

.neighborhood-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1.5px solid rgba(130, 200, 255, 0.25);
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.neighborhood-title-group h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.neighborhood-subtitle {
    font-size: 0.82rem;
    color: #a0cbf1;
}

.neighborhood-funds-chip {
    background: rgba(10, 30, 50, 0.85);
    border: 1.5px solid #f39c12;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(243, 156, 18, 0.25);
}

.neighborhood-funds-chip strong {
    color: #f39c12;
    font-size: 1.05rem;
}

/* Onboarding Guide Banner */
.onboarding-guide-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.35) 0%, rgba(41, 128, 185, 0.35) 100%);
    border: 1.5px solid rgba(46, 204, 113, 0.6);
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    animation: bannerPulse 3s ease-in-out infinite alternate;
}

@keyframes bannerPulse {
    from { border-color: rgba(46, 204, 113, 0.4); }
    to { border-color: rgba(85, 239, 196, 0.9); }
}

.onboarding-icon {
    font-size: 1.8rem;
}

.onboarding-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
    color: #e2f1fd;
}

/* District Filter Tabs */
.district-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.district-tab {
    background: rgba(15, 38, 65, 0.8);
    border: 1px solid var(--sims-border);
    color: #b0d4f5;
    padding: 7px 16px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.district-tab:hover {
    background: rgba(30, 75, 125, 0.9);
    color: #ffffff;
    border-color: #55efc4;
}

.district-tab.active {
    background: var(--sims-plumbob-green);
    border-color: #55efc4;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.4);
}

/* 20-Lot Grid Container */
.neighborhood-grid-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.neighborhood-lots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    padding-bottom: 24px;
}

/* Individual Lot Card */
.lot-card {
    background: rgba(18, 44, 75, 0.75);
    border: 1.5px solid rgba(130, 200, 255, 0.25);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lot-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--sims-plumbob-green);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.25);
}

.lot-card.owned-by-me {
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.lot-card.affordable {
    border-color: rgba(46, 204, 113, 0.5);
}

.lot-card.expensive {
    opacity: 0.85;
}

.lot-card-hero {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px;
    position: relative;
}

.district-outskirts {
    background: linear-gradient(135deg, #795548 0%, #2e7d32 100%);
}

.district-suburbs {
    background: linear-gradient(135deg, #27ae60 0%, #2980b9 100%);
}

.district-hilltop {
    background: linear-gradient(135deg, #8e44ad 0%, #2c3e50 100%);
}

.district-civic {
    background: linear-gradient(135deg, #2c3e50 0%, #d35400 100%);
}

.lot-card-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.lot-card-badge.for-sale-affordable {
    background: rgba(46, 204, 113, 0.9);
    color: #ffffff;
}

.lot-card-badge.for-sale-expensive {
    background: rgba(52, 73, 94, 0.85);
    color: #bdc3c7;
}

.lot-card-badge.my-home {
    background: #2ecc71;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.8);
}

.lot-card-badge.community {
    background: #2980b9;
    color: #ffffff;
}

.lot-card-badge.resident {
    background: #e67e22;
    color: #ffffff;
}

.lot-district-chip {
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    color: #e2f1fd;
}

.lot-card-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.lot-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
}

.lot-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
}

.lot-card-desc {
    font-size: 0.76rem;
    color: #9ac2e6;
    line-height: 1.35;
    flex: 1;
    margin: 4px 0;
}

.lot-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 4px;
}

.lot-card-footer strong {
    color: #f39c12;
    font-size: 0.92rem;
}

/* Inspector Modal Styling */
.lot-modal-card {
    max-width: 480px;
}

.lot-hero-graphic {
    height: 110px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 12px;
}

.lot-badge-pill {
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    color: #fff;
}

.lot-description-text {
    font-size: 0.86rem;
    color: #b8d6f2;
    line-height: 1.4;
    margin-bottom: 14px;
}

.lot-financial-box {
    background: rgba(10, 25, 45, 0.8);
    border: 1px solid var(--sims-border);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.84rem;
    color: #c7e0f8;
}

.fin-row.total-row {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 6px;
    font-weight: 700;
}

.lot-ownership-info {
    font-size: 0.84rem;
    color: #92b8dc;
    margin-bottom: 14px;
}

.lot-action-buttons {
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   ONBOARDING DIRECTIVE HUD & QUEST PROGRESSION
   ========================================================================== */
#onboardingDirectiveHUD {
    position: fixed;
    top: 76px;
    left: 20px;
    right: auto;
    bottom: auto;
    margin: 0;
    transform: none !important;
    z-index: 260; /* Higher than #neighborhoodOverlay (z-index 250) */
    pointer-events: auto;
    font-family: 'Inter', -apple-system, sans-serif;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    max-width: 380px;
    width: calc(100vw - 40px);
    box-sizing: border-box;
}

.directive-card {
    background: rgba(14, 34, 61, 0.92);
    border: 1.5px solid rgba(85, 239, 196, 0.55);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(46, 204, 113, 0.25);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;
    box-sizing: border-box;
    animation: directiveFadeIn 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

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

@media (max-width: 500px) {
    #onboardingDirectiveHUD {
        left: 12px;
        top: 70px;
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
    }
}

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

.directive-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.65);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #55efc4;
}

.directive-pulse-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 8px #2ecc71;
    animation: directivePulse 1.8s infinite;
}

@keyframes directivePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px #55efc4; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.directive-header-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.directive-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8d6f2;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.directive-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.directive-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.directive-title-row {
    display: flex;
    flex-direction: column;
}

.directive-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.directive-subtitle {
    font-size: 0.76rem;
    font-weight: 700;
    color: #82c8ff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.directive-desc {
    font-size: 0.84rem;
    color: #d2e4f7;
    line-height: 1.4;
    margin: 2px 0 4px;
}

.directive-hint-box {
    background: rgba(0, 0, 0, 0.35);
    border-left: 3px solid #f39c12;
    padding: 6px 10px;
    border-radius: 4px 8px 8px 4px;
    font-size: 0.76rem;
    color: #ffd166;
    display: flex;
    gap: 6px;
    align-items: center;
}

.directive-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
}

.directive-reward-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.22) 0%, rgba(230, 126, 34, 0.22) 100%);
    border: 1px solid rgba(243, 156, 18, 0.55);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #f1c40f;
    align-self: flex-start;
}

.directive-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.directive-progress-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 180, 216, 0.22);
    border: 1px solid rgba(0, 180, 216, 0.55);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #48cae4;
    align-self: flex-start;
}

.directive-action-btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(46, 204, 113, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}

.directive-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.65);
}

.directive-card.minimized {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 20px;
}

.directive-card.minimized .directive-step-pill {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #55efc4;
}

.directive-card.minimized .minimized-title {
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 700;
}

.directive-card.completed {
    background: rgba(22, 60, 40, 0.92);
    border-color: #2ecc71;
}

.directive-completed-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.directive-completed-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.directive-completed-text strong {
    font-size: 0.95rem;
    color: #55efc4;
}

.directive-completed-text small {
    font-size: 0.74rem;
    color: #a8e6cf;
}

/* Starter recommended pulse in Neighborhood grid */
.lot-card.starter-recommended {
    border: 2px solid #2ecc71;
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.45);
    animation: starterPulse 2s infinite ease-in-out;
}

@keyframes starterPulse {
    0% { box-shadow: 0 0 12px rgba(46, 204, 113, 0.35); }
    50% { box-shadow: 0 0 24px rgba(46, 204, 113, 0.75); border-color: #55efc4; }
    100% { box-shadow: 0 0 12px rgba(46, 204, 113, 0.35); }
}

/* ==========================================================================
   BUILD & BUY MODE STYLING
   ========================================================================== */
.buy-modal-card {
    max-width: 860px;
    width: 92%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.buy-header-title h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.buy-header-subtitle {
    font-size: 0.78rem;
    color: #9ac2e6;
}

.buy-funds-badge {
    background: rgba(14, 34, 61, 0.85);
    border: 1px solid #f39c12;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    display: flex;
    gap: 6px;
    align-items: center;
}

.buy-funds-badge strong {
    color: #f39c12;
    font-size: 0.95rem;
}

.buy-category-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.buy-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: #d2e4f7;
    padding: 6px 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.buy-tab:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.buy-tab.active {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #f39c12;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.buy-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    overflow-y: auto;
    max-height: 52vh;
    padding-right: 6px;
}

.buy-item-card {
    background: rgba(14, 34, 61, 0.8);
    border: 1.5px solid rgba(130, 200, 255, 0.25);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.22s;
}

.buy-item-card:hover {
    transform: translateY(-3px);
    border-color: #55efc4;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.25);
}

.buy-item-card.unaffordable {
    opacity: 0.75;
}

.buy-card-icon-hero {
    height: 80px;
    background: linear-gradient(135deg, rgba(20, 50, 85, 0.85), rgba(10, 30, 55, 0.95));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.buy-item-icon {
    font-size: 2.2rem;
}

.buy-price-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.buy-price-tag.green {
    background: rgba(46, 204, 113, 0.25);
    border: 1px solid #2ecc71;
    color: #55efc4;
}

.buy-price-tag.red {
    background: rgba(231, 76, 60, 0.25);
    border: 1px solid #e74c3c;
    color: #ff7675;
}

.buy-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.buy-card-title {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 700;
}

.buy-card-motive {
    font-size: 0.74rem;
    font-weight: 700;
    color: #55efc4;
}

.buy-card-desc {
    font-size: 0.74rem;
    color: #b8d6f2;
    line-height: 1.35;
    flex: 1;
    margin: 2px 0 6px;
}

.buy-select-btn {
    width: 100%;
    padding: 7px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    justify-content: center;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #55efc4;
}

.buy-select-btn:disabled {
    background: rgba(52, 73, 94, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
    color: #95a5a6;
    cursor: not-allowed;
}

.buy-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
}

.buy-hint {
    font-size: 0.76rem;
    color: #ffd166;
}

/* Placement Mode Floating HUD */
.placement-controls-hud {
    position: fixed;
    top: 72px;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.placement-hud-card {
    background: rgba(14, 34, 61, 0.94);
    border: 2px solid #55efc4;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(46, 204, 113, 0.4);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    animation: popUpHUD 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

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

.placement-hud-icon {
    font-size: 2rem;
}

.placement-hud-text {
    display: flex;
    flex-direction: column;
}

.placement-hud-text strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.placement-hud-text small {
    font-size: 0.75rem;
    color: #a8e6cf;
}

/* ==========================================================================
   CAREERS & EMPLOYMENT AGENCY STYLING
   ========================================================================== */
.career-modal-card {
    max-width: 820px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.career-header-title h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
}

.career-header-subtitle {
    font-size: 0.78rem;
    color: #9ac2e6;
}

/* Active Career Hero */
.active-career-hero {
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.35) 0%, rgba(39, 174, 96, 0.35) 100%);
    border: 1.5px solid #55efc4;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 12px 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.active-career-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.active-career-icon {
    font-size: 2.4rem;
}

.active-career-badge {
    background: rgba(46, 204, 113, 0.25);
    border: 1px solid #2ecc71;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    color: #55efc4;
    text-transform: uppercase;
    display: inline-block;
}

.active-career-details h3 {
    font-size: 1.15rem;
    color: #ffffff;
    margin: 2px 0;
}

.active-career-wage {
    font-size: 0.8rem;
    color: #ffd166;
}

.active-career-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.career-perf-bar-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.career-perf-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #d2e4f7;
}

.career-perf-label strong {
    color: #55efc4;
}

.career-perf-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.career-perf-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #2ecc71);
    border-radius: 4px;
    transition: width 0.3s;
}

.active-career-actions {
    display: flex;
    gap: 8px;
}

.career-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    max-height: 52vh;
    padding-right: 6px;
}

.career-card {
    background: rgba(14, 34, 61, 0.75);
    border: 1.5px solid rgba(130, 200, 255, 0.2);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s;
}

.career-card:hover {
    border-color: #82c8ff;
    background: rgba(18, 44, 75, 0.85);
}

.career-card.employed {
    border-color: #2ecc71;
    background: rgba(22, 60, 40, 0.7);
}

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

.career-card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.career-icon {
    font-size: 1.8rem;
}

.career-card-title-group h4 {
    font-size: 1.02rem;
    color: #ffffff;
    margin: 0;
}

.career-venue {
    font-size: 0.72rem;
    color: #82c8ff;
}

.career-desc {
    font-size: 0.78rem;
    color: #b8d6f2;
    line-height: 1.35;
    margin: 0;
}

.career-tiers-roadmap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.tier-pill {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tier-pill.active-tier {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.15);
}

.tier-level {
    font-size: 0.65rem;
    font-weight: 800;
    color: #82c8ff;
    text-transform: uppercase;
}

.tier-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #ffffff;
}

.tier-wage {
    font-size: 0.72rem;
    color: #f39c12;
    font-weight: 700;
}

/* HUD Career Chip */
.hud-career-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 2px;
    width: fit-content;
}

.hud-career-chip.active {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.6);
    color: #55efc4;
}

.hud-career-chip.unemployed {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #bdc3c7;
}

.hud-career-chip:hover {
    transform: scale(1.04);
}

/* Shift Progress Overlay */
.shift-progress-overlay {
    position: fixed;
    top: 76px;
    right: 20px;
    z-index: 260;
    pointer-events: auto;
}

.shift-card {
    background: rgba(14, 34, 61, 0.94);
    border: 1.5px solid #f39c12;
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    color: #fff;
    min-width: 280px;
    animation: popUpHUD 0.3s ease;
}

.shift-icon {
    font-size: 1.8rem;
}

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

.shift-info strong {
    font-size: 0.88rem;
    color: #ffffff;
}

.shift-info small {
    font-size: 0.72rem;
    color: #ffd166;
}

.shift-bar-track {
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.shift-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f39c12, #2ecc71);
    border-radius: 3px;
    transition: width 0.5s linear;
}

/* ==========================================================================
   SIMS TRAVEL & MOVE-IN LOADING SCREEN
   ========================================================================== */
.travel-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b3a5b 0%, #081524 85%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.travel-loading-overlay.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.travel-loading-backdrop {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="%232ecc71" fill-opacity="0.04"><path d="M20 5 L28 20 L20 35 L12 20 Z"/></g></svg>');
    opacity: 0.8;
}

.travel-loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 480px;
    padding: 30px 40px;
    background: rgba(14, 34, 61, 0.9);
    border: 2px solid var(--sims-plumbob-green);
    border-radius: 28px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(46, 204, 113, 0.3);
    backdrop-filter: blur(16px);
}

.travel-plumbob-spinner {
    position: relative;
    width: 60px;
    height: 90px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-gem {
    width: 36px;
    height: 72px;
    background: linear-gradient(135deg, #a8ff78 0%, #2ecc71 40%, #16a085 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    filter: drop-shadow(0 0 16px rgba(46, 204, 113, 0.85));
    animation: rotatePlumbobSpinner 2.2s infinite ease-in-out;
}

@keyframes rotatePlumbobSpinner {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.12) rotateY(180deg); }
    100% { transform: scale(1) rotateY(360deg); }
}

.spinner-halo {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.45) 0%, transparent 70%);
    animation: pulseHalo 1.8s infinite ease-in-out;
}

@keyframes pulseHalo {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.9; }
}

.travel-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.travel-district-pill {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd166;
    background: rgba(255, 209, 102, 0.15);
    border: 1px solid rgba(255, 209, 102, 0.4);
    border-radius: 14px;
    padding: 3px 12px;
    margin-bottom: 14px;
}

.travel-spline-text {
    font-size: 0.88rem;
    color: #a0c4e2;
    font-style: italic;
    min-height: 22px;
    margin: 0 0 18px 0;
}

.travel-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.travel-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #2ecc71, #55efc4);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.8);
    transition: width 0.12s linear;
}

.travel-pct-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #55efc4;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.7);
}

/* ==========================================================================
   SIMS VISUAL OVERHEAD CITY MAP
   ========================================================================== */
.map-view-toggle {
    display: flex;
    gap: 6px;
    background: rgba(8, 22, 38, 0.8);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--sims-border);
}

.map-view-toggle .toggle-btn {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 700;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #a0c4e2;
}

.map-view-toggle .toggle-btn.active {
    background: var(--sims-plumbob-green);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(46, 204, 113, 0.4);
}

.city-map-container {
    position: relative;
    width: 100%;
    height: 560px;
    min-height: 560px;
    border-radius: 22px;
    overflow: hidden;
    border: 2px solid var(--sims-border);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6), 0 12px 36px rgba(0, 0, 0, 0.5);
    background: #14283f;
    user-select: none;
    margin-bottom: 20px;
}

/* 4 Regional Terrain Belts */
.city-terrain-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
}

.city-biome-band {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 24px;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.1);
}

.city-biome-band:last-child {
    border-bottom: none;
}

.biome-outskirts {
    background: linear-gradient(180deg, #c29567 0%, #aa7c4d 100%);
}

.biome-suburbs {
    background: linear-gradient(180deg, #437a3f 0%, #366633 100%);
}

.biome-hilltop {
    background: linear-gradient(180deg, #3d3b59 0%, #29283f 100%);
}

.biome-civic {
    background: linear-gradient(180deg, #24415c 0%, #182e44 100%);
}

.biome-watermark {
    position: absolute;
    right: 24px;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    pointer-events: none;
}

.biome-label-badge {
    position: absolute;
    left: 18px;
    top: 12px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* Road Network */
.city-roads-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Interactive 3D-styled City Lot Pins */
.city-lot-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.22s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.2s ease;
}

.city-lot-pin:hover {
    transform: translate(-50%, -50%) scale(1.22);
    z-index: 20;
}

.pin-icon-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    background: rgba(14, 34, 61, 0.92);
    border: 2px solid var(--sims-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.city-lot-pin:hover .pin-icon-wrap {
    border-color: var(--sims-plumbob-green);
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.7);
}

.city-lot-pin.is-my-home .pin-icon-wrap {
    border-color: #2ecc71;
    box-shadow: 0 0 22px rgba(46, 204, 113, 0.9);
    animation: homePulse 1.8s infinite;
}

@keyframes homePulse {
    0%, 100% { box-shadow: 0 0 14px rgba(46, 204, 113, 0.6); }
    50% { box-shadow: 0 0 28px rgba(46, 204, 113, 1); }
}

.pin-plumbob-crown {
    position: absolute;
    top: -24px;
    font-size: 1.3rem;
    animation: spinFloatCrown 2s infinite ease-in-out;
}

@keyframes spinFloatCrown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.pin-badge-chip {
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: 12px;
    padding: 2px 8px;
    background: rgba(10, 24, 44, 0.9);
    border: 1px solid var(--sims-border);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.city-lot-pin.for-sale-affordable .pin-badge-chip {
    background: rgba(46, 204, 113, 0.9);
    border-color: #55efc4;
    color: #ffffff;
    animation: pulseStarter 1.8s infinite;
}

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

.city-lot-pin.for-sale-expensive .pin-badge-chip {
    background: rgba(231, 76, 60, 0.85);
    border-color: #e74c3c;
}

.city-lot-pin.community-venue .pin-badge-chip {
    background: rgba(41, 128, 185, 0.9);
    border-color: #5dade2;
}

.city-lot-pin.resident-occupied .pin-badge-chip {
    background: rgba(243, 156, 18, 0.9);
    border-color: #f39c12;
}

/* Tooltip on pin hover */
.pin-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 45, 0.95);
    border: 1.5px solid var(--sims-plumbob-green);
    border-radius: 12px;
    padding: 6px 12px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.city-lot-pin:hover .pin-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.pin-tooltip-title {
    font-size: 0.78rem;
    font-weight: 800;
    color: #ffffff;
}

.pin-tooltip-sub {
    font-size: 0.68rem;
    color: #ffd166;
}

/* =========================================================================
   ARCHITECTURAL BUILD MODE DRAWER & CONTROLS
   ========================================================================= */
.build-mode-drawer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(105%);
    width: min(960px, 96vw);
    max-height: 290px;
    background: linear-gradient(180deg, rgba(14, 30, 52, 0.96) 0%, rgba(8, 18, 34, 0.98) 100%);
    border: 2px solid var(--sims-border);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(46, 204, 113, 0.2);
    backdrop-filter: blur(16px);
    z-index: 450;
    display: flex;
    flex-direction: column;
    transition: transform 0.32s cubic-bezier(0.18, 0.89, 0.32, 1.2), visibility 0.32s;
    padding: 12px 18px;
    box-sizing: border-box;
    pointer-events: none;
    visibility: hidden;
}

.build-mode-drawer.active {
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    visibility: visible;
}

.build-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.build-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.build-header-icon {
    font-size: 24px;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 8px;
    padding: 4px;
}

.build-drawer-title strong {
    font-size: 1.05rem;
    display: block;
}

.build-drawer-title small {
    font-size: 0.75rem;
    color: #ffd166;
}

.cutaway-controls-group {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 3px;
}

.cutaway-btn {
    background: transparent;
    border: none;
    color: #bdc3c7;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cutaway-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cutaway-btn.active {
    background: #27ae60;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.build-close-btn {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.build-close-btn:hover {
    background: #e74c3c;
    color: #ffffff;
}

.build-category-tabs {
    display: flex;
    gap: 8px;
    margin: 8px 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.build-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.build-tab-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--sims-plumbob-green);
}

.build-tab-btn.active {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #2ecc71;
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.5);
}

.build-tab-btn.danger-tab.active {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    border-color: #e74c3c;
    box-shadow: 0 0 12px rgba(231, 76, 60, 0.5);
}

.build-palette-content {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px 10px 4px;
}

.build-style-card {
    min-width: 140px;
    max-width: 155px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.18, 0.89, 0.32, 1.2);
}

.build-style-card:hover {
    transform: translateY(-4px);
    border-color: var(--sims-plumbob-green);
    background: rgba(255, 255, 255, 0.1);
}

.build-style-card.selected {
    border-color: var(--sims-plumbob-green);
    background: rgba(46, 204, 113, 0.15);
    box-shadow: 0 0 16px rgba(46, 204, 113, 0.4);
}

.build-style-card.danger-card.selected {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
    box-shadow: 0 0 16px rgba(231, 76, 60, 0.4);
}

.build-card-swatch {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

.build-card-info strong {
    font-size: 0.78rem;
    color: #ffffff;
    display: block;
    line-height: 1.2;
}

.build-card-price {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffd166;
    margin-top: 3px;
    display: block;
}

.roof-apply-btn {
    margin-top: 4px;
    font-size: 0.72rem;
    padding: 3px 8px;
}

/* ==========================================================================
   TOWNIE SOCIAL PIE MENU & FREE WILL AUTONOMY STYLING
   ========================================================================== */
.pie-slice-btn.social-slice-btn {
    background: linear-gradient(135deg, rgba(28, 40, 56, 0.95), rgba(41, 57, 78, 0.95));
    border-color: #f39c12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.pie-slice-btn.social-slice-btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #f1c40f;
    box-shadow: 0 0 14px rgba(243, 156, 18, 0.6);
    transform: scale(1.08);
}

#freeWillToggleBtn.free-will-on {
    background: linear-gradient(135deg, #16a085, #1abc9c) !important;
    border-color: #2ecc71 !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4);
}

#freeWillToggleBtn.free-will-off {
    background: linear-gradient(135deg, #5f6368, #3c4043) !important;
    border-color: #70757a !important;
    color: #dadce0 !important;
    opacity: 0.85;
}

.auto-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(46, 204, 113, 0.25);
    border: 1px solid #2ecc71;
    color: #2ecc71;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 8px;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auto-badge-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 0.7rem;
    line-height: 1;
}

/* Comfort Rating Tags in Buy Mode */
.buy-card-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0 6px;
}

.buy-comfort-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(230, 126, 34, 0.22);
    border: 1px solid rgba(243, 156, 18, 0.6);
    color: #ffd166;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

/* =========================================================================
   THE SIMS ONLINE (TSO) SKILL SYSTEM & PROGRESSION STYLES
   ========================================================================= */

.floating-skill-xp {
    position: fixed;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(22, 160, 133, 0.95), rgba(46, 204, 113, 0.95));
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.5), 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    z-index: 10000;
    animation: floatUpSkill 2.2s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
    border: 1.5px solid #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes floatUpSkill {
    0% { opacity: 0; transform: translate(-50%, -20%) scale(0.7); }
    15% { opacity: 1; transform: translate(-50%, -60%) scale(1.1); }
    80% { opacity: 1; transform: translate(-50%, -100%) scale(1.0); }
    100% { opacity: 0; transform: translate(-50%, -140%) scale(0.85); }
}

.skill-levelup-banner {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #16a085, #2ecc71);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 16px;
    border: 2px solid #a8ffb2;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(46, 204, 113, 0.7);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    animation: bounceInDown 0.5s ease-out;
}

.skill-levelup-banner.fade-out {
    animation: fadeOutUp 0.5s ease-in forwards;
}

.banner-icon {
    font-size: 2.4rem;
    background: rgba(255, 255, 255, 0.2);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-body h3 {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #d1ffd6;
}

.banner-body p {
    margin: 3px 0 0;
    font-size: 1.15rem;
}

.banner-reward {
    margin-top: 4px;
    font-size: 0.82rem;
    color: #fff9d2;
    font-weight: 600;
}

/* Skills Modal Card */
.skills-modal-card {
    max-width: 680px;
    width: 95%;
    background: linear-gradient(165deg, #0e1e30, #0a1524);
    border: 1.5px solid rgba(85, 239, 196, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.skills-overview-banner {
    display: flex;
    justify-content: space-around;
    background: rgba(16, 38, 62, 0.75);
    border: 1px solid rgba(85, 239, 196, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.overview-stat .stat-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: #55efc4;
}

.overview-stat .stat-label {
    font-size: 0.72rem;
    color: #a0c4e2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skills-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.skill-card-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(22, 48, 76, 0.6);
    border: 1px solid rgba(130, 200, 255, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.2s ease;
}

.skill-card-row:hover {
    background: rgba(28, 62, 98, 0.85);
    border-color: rgba(85, 239, 196, 0.5);
    transform: translateY(-1px);
}

.skill-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(14, 30, 48, 0.8);
    border: 1px solid rgba(85, 239, 196, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.skill-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.skill-card-name {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
}

.skill-card-level {
    font-weight: 700;
    font-size: 0.85rem;
    color: #55efc4;
}

.skill-pips-container {
    display: flex;
    gap: 4px;
    margin: 3px 0;
}

.skill-pip {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.skill-pip.filled {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border-color: #55efc4;
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.5);
}

.skill-xp-bar-wrap {
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.skill-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #55efc4);
    transition: width 0.3s ease;
}

.skill-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #8bb6db;
}

.skills-footer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 14px;
}

/* =========================================================================
   MELWOOD BATTLE COLISEUM & RPG AUTO-BATTLER STYLES
   ========================================================================= */

.coliseum-modal-card {
    max-width: 980px;
    width: 96%;
    background: linear-gradient(170deg, #18132b, #0f0c1c);
    border: 1.5px solid rgba(231, 76, 60, 0.4);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(231, 76, 60, 0.25);
}

.coliseum-header {
    border-bottom: 1.5px solid rgba(231, 76, 60, 0.3);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.coliseum-crest {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(231, 76, 60, 0.7));
}

.coliseum-header-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-stat-pill {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    color: #ffd2cc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.coliseum-body-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    margin-top: 16px;
}

@media (max-width: 860px) {
    .coliseum-body-grid {
        grid-template-columns: 1fr;
    }
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-title-bar h3 {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: #e67e22;
}

.coliseum-party-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coliseum-party-slot {
    background: rgba(35, 27, 58, 0.75);
    border: 1.5px solid rgba(155, 89, 182, 0.35);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.coliseum-party-slot:hover {
    border-color: rgba(231, 76, 60, 0.6);
    background: rgba(45, 35, 75, 0.9);
}

.coliseum-party-slot.empty {
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border-style: dashed;
    cursor: pointer;
}

.slot-role-tag {
    font-size: 0.66rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 0.8px;
}

.slot-avatar {
    position: absolute;
    right: 14px;
    top: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #55efc4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.slot-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.slot-title {
    font-size: 0.72rem;
    color: #d1b8ff;
}

.slot-stats-row {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd8bf;
    margin-top: 3px;
}

.slot-ultimate-badge {
    background: rgba(241, 196, 15, 0.15);
    border: 1px solid rgba(241, 196, 15, 0.4);
    color: #f1c40f;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    max-width: fit-content;
}

.party-leader-badge {
    font-size: 0.7rem;
    color: #2ecc71;
    font-weight: 700;
    margin-top: 4px;
}

.slot-swap-btn {
    align-self: flex-start;
    padding: 3px 10px;
    font-size: 0.72rem;
    margin-top: 4px;
}

/* Relics */
.relic-inventory-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.relic-item-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(30, 24, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 10px;
}

.relic-icon {
    font-size: 1.3rem;
}

.relic-name {
    font-weight: 700;
    font-size: 0.78rem;
    color: #ffffff;
}

.relic-desc {
    font-size: 0.68rem;
    color: #55efc4;
}

/* Arena View & Canvas */
.coliseum-arena-view {
    background: #141124;
    border: 1.5px solid rgba(155, 89, 182, 0.4);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.arena-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(28, 22, 48, 0.9);
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arena-stage-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffd700;
}

.arena-stage-field {
    position: relative;
    width: 100%;
    height: 340px;
    background: #1e1a2f;
    display: flex;
    align-items: center;
    justify-content: center;
}

#battlerCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

.arena-announce-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14, 11, 24, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
    animation: fadeIn 0.3s ease;
}

.arena-announce-overlay.victory h2 {
    color: #2ecc71;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.8);
}

.arena-announce-overlay.defeat h2 {
    color: #e74c3c;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
}

.arena-announce-overlay p {
    color: #ffffff;
    font-size: 1rem;
    margin: 10px 0 18px;
    max-width: 420px;
}

/* Campaign Stages Scroll */
.campaign-stages-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    padding-right: 4px;
}

.campaign-stage-card {
    background: rgba(30, 24, 50, 0.7);
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.campaign-stage-card.locked {
    opacity: 0.5;
    filter: grayscale(0.8);
}

.campaign-stage-card.active-stage {
    border-color: #ffd700;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.stage-num-badge {
    font-size: 0.65rem;
    font-weight: 800;
    color: #e67e22;
    letter-spacing: 0.8px;
}

.stage-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.stage-enemies {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 2px 0;
}

.enemy-pill {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.4);
    font-size: 0.66rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #ffccd2;
}

.stage-rewards {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffd700;
}

.stage-battle-btn {
    margin-top: 4px;
    padding: 4px 10px;
    font-size: 0.75rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #f39c12;
}

/* Hero Picker Dialog */
.hero-picker-modal .modal-card {
    max-width: 500px;
    background: #18132b;
    border-color: #9b59b6;
}

.candidate-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.hero-candidate-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(35, 27, 58, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-candidate-card:hover {
    background: rgba(55, 42, 90, 0.9);
    border-color: #55efc4;
}

.candidate-avatar {
    font-size: 1.8rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.candidate-info {
    flex: 1;
}

.candidate-role {
    font-size: 0.72rem;
    color: #ffd700;
}

.candidate-desc {
    font-size: 0.68rem;
    color: #d1b8ff;
}

/* =========================================================================
   COMMERCIAL ECONOMY, VIP DIAMOND STORE & WATCH AD STYLES
   ========================================================================= */

.sim-diamonds-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(142, 68, 173, 0.35);
    border: 1px solid rgba(187, 143, 206, 0.7);
    color: #f5b7b1;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.sim-diamonds-badge:hover {
    background: rgba(142, 68, 173, 0.65);
    border-color: #ffd700;
    transform: scale(1.04);
}

.vip-modal-card {
    max-width: 860px;
    width: 95%;
    background: linear-gradient(165deg, #1b112c, #0d0817);
    border: 1.5px solid rgba(187, 143, 206, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(142, 68, 173, 0.3);
}

.vip-header {
    border-bottom: 1.5px solid rgba(187, 143, 206, 0.25);
    padding-bottom: 12px;
}

.diamond-sparkle {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(187, 143, 206, 0.8));
}

.header-diamond-pill {
    background: rgba(142, 68, 173, 0.25);
    border: 1px solid rgba(187, 143, 206, 0.5);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 18px;
}

/* Sponsor Ad Banner */
.sponsor-ad-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(243, 156, 18, 0.15));
    border: 1.5px solid rgba(243, 156, 18, 0.5);
    border-radius: 14px;
    padding: 12px 18px;
    margin-top: 14px;
}

.sponsor-banner-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tv-broadcast-icon {
    font-size: 2.2rem;
}

.sponsor-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffd700;
}

.sponsor-desc {
    font-size: 0.78rem;
    color: #ffffff;
    margin-top: 2px;
}

.sponsor-watch-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #f39c12;
    padding: 8px 18px;
    font-weight: 800;
    white-space: nowrap;
}

/* 7-Day Streak Calendar */
.streak-cards-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 8px;
}

@media (max-width: 760px) {
    .streak-cards-row {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

.streak-card {
    background: rgba(35, 24, 55, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.streak-card.current {
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
    background: rgba(55, 38, 88, 0.9);
}

.streak-card.claimed {
    opacity: 0.6;
    border-color: #2ecc71;
}

.streak-day-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: #a894cc;
}

.streak-icon {
    font-size: 1.4rem;
}

.streak-reward-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff;
}

.claim-streak-btn {
    padding: 3px 8px;
    font-size: 0.68rem;
    background: #27ae60;
    border-color: #2ecc71;
    margin-top: 2px;
}

.claimed-check {
    color: #2ecc71;
    font-weight: 800;
}

/* VIP Catalog */
.vip-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 8px;
    padding-right: 4px;
}

.vip-store-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 20, 50, 0.7);
    border: 1px solid rgba(187, 143, 206, 0.25);
    border-radius: 10px;
    padding: 10px 12px;
}

.vip-card-icon {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vip-card-info {
    flex: 1;
}

.vip-card-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
}

.vip-card-type {
    font-size: 0.68rem;
    color: #ffd700;
}

.vip-card-desc {
    font-size: 0.66rem;
    color: #d1b8ff;
}

.vip-purchase-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #8e44ad, #6c3483);
    border-color: #bb8fce;
    white-space: nowrap;
}

/* Sponsor Ad Player Modal */
.ad-player-box {
    position: relative;
    max-width: 480px;
    width: 90%;
    background: #0d0a17;
    border: 2px solid #e67e22;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(230, 126, 34, 0.5);
    overflow: hidden;
    z-index: 10001;
    animation: bounceInDown 0.4s ease;
}

.ad-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #191228;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-badge {
    font-size: 0.68rem;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
}

.ad-timer {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e67e22;
}

.ad-player-screen {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(180deg, #1b122e, #0e0a1a);
}

.ad-brand-icon {
    font-size: 3.5rem;
    margin-bottom: 8px;
    animation: pulseGlow 1.5s infinite alternate;
}

.ad-brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
}

.ad-brand-tagline {
    font-size: 0.85rem;
    color: #f1c40f;
    font-style: italic;
    margin: 8px auto 20px;
    max-width: 380px;
}

.ad-progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    max-width: 360px;
    margin: 0 auto;
}

.ad-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #e67e22, #f1c40f);
    transition: width 1s linear;
}

.ad-player-footer {
    padding: 14px 18px;
    background: #140e21;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ad-reward-preview {
    font-size: 0.78rem;
    color: #55efc4;
    font-weight: 700;
}

/* =========================================================================
   SOCIAL MMO & LOT PRESTIGE STYLES
   ========================================================================= */

.lot-prestige-btn {
    background: rgba(241, 196, 15, 0.25);
    border: 1px solid rgba(241, 196, 15, 0.6);
    color: #fff2a3;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lot-prestige-btn:hover {
    background: rgba(241, 196, 15, 0.5);
    border-color: #ffd700;
    transform: scale(1.04);
}

.lot-revenue-btn {
    background: rgba(46, 204, 113, 0.3);
    border: 1px solid rgba(46, 204, 113, 0.7);
    color: #c8ffdb;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: pointer;
    animation: pulseGlow 2s infinite alternate;
}

/* Trading Post Marketplace */
.market-modal-card {
    max-width: 820px;
    width: 95%;
    background: linear-gradient(165deg, #102638, #0a1724);
    border: 1.5px solid rgba(46, 204, 113, 0.35);
}

.market-tabs-row {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    align-items: center;
}

.market-items-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.market-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 42, 65, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
}

.market-item-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.market-item-details {
    flex: 1;
}

.market-item-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.market-item-seller {
    font-size: 0.72rem;
    color: #8bb6db;
}

.market-item-desc {
    font-size: 0.72rem;
    color: #55efc4;
    margin-top: 2px;
}

.market-item-buy-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.market-item-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffd700;
}

.market-buy-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    background: #27ae60;
    border-color: #2ecc71;
}

/* =========================================================================
   ENDGAME WORLD BOSS RAID STYLES
   ========================================================================= */

.world-raid-modal-card {
    max-width: 800px;
    width: 95%;
    background: linear-gradient(165deg, #2b0d0d, #140505);
    border: 2px solid #e74c3c;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(231, 76, 60, 0.5);
}

.raid-boss-icon {
    font-size: 2.4rem;
}

.boss-health-banner {
    background: rgba(30, 8, 8, 0.85);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: 12px;
    padding: 14px;
    margin-top: 14px;
}

.boss-hp-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 800;
    color: #ffccd2;
    margin-bottom: 6px;
}

.boss-hp-track {
    height: 14px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #c0392b, #e74c3c, #f39c12);
    transition: width 0.3s ease;
}

.boss-phases-tags {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.phase-tag {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(231, 76, 60, 0.5);
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffccd2;
    padding: 3px 8px;
    border-radius: 6px;
}

.raid-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

@media (max-width: 680px) {
    .raid-content-grid {
        grid-template-columns: 1fr;
    }
}

.raid-reward-box {
    background: rgba(20, 6, 6, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}

.raid-requirements-note {
    font-size: 0.72rem;
    color: #f1c40f;
    margin-top: 8px;
}

.raid-col-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(20, 6, 6, 0.8);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    padding: 16px;
}

.raid-strike-btn {
    margin-top: 14px;
    padding: 10px;
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-color: #ffd700;
}

/* ==========================================================================
   SIMPHONE OS & SOCIAL RELATIONSHIPS MANAGEMENT MODAL
   ========================================================================== */
#simPhoneModal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(8, 12, 20, 0.75);
    backdrop-filter: blur(8px);
}

.phone-chassis {
    width: 390px;
    max-width: 95vw;
    height: 640px;
    max-height: 90vh;
    background: linear-gradient(165deg, #1e272e 0%, #0f1419 100%);
    border: 3.5px solid #3d4a58;
    border-radius: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 0 16px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #f1f2f6;
    font-family: inherit;
    position: relative;
    animation: phonePopUp 0.28s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes phonePopUp {
    from { opacity: 0; transform: scale(0.88) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Phone Top Speaker & Camera Notch */
.phone-notch {
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 6px;
}

.notch-speaker {
    width: 46px;
    height: 4px;
    background: #2f3640;
    border-radius: 3px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.notch-camera {
    width: 7px;
    height: 7px;
    background: #1e272e;
    border: 1px solid #353b48;
    border-radius: 50%;
}

/* Phone Status Bar */
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 18px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a4b0be;
    letter-spacing: 0.3px;
}

.phone-status-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Phone App Header */
.phone-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(9, 132, 227, 0.25), rgba(108, 92, 231, 0.25));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-app-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #74b9ff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #dfe6e9;
    font-weight: bold;
    cursor: pointer;
    transition: 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-close-btn:hover {
    background: #e74c3c;
    color: #fff;
}

/* Phone Tabs */
.phone-tabs {
    display: flex;
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-tab-btn {
    flex: 1;
    padding: 10px 4px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #a4b0be;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.phone-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.phone-tab-btn.active {
    color: #0984e3;
    border-bottom-color: #0984e3;
    background: rgba(9, 132, 227, 0.1);
}

.tab-badge {
    background: #e74c3c;
    color: #fff;
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 0.65rem;
    font-weight: 800;
}

/* App Body & Scrollable Area */
.phone-app-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-app-body::-webkit-scrollbar {
    width: 5px;
}

.phone-app-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Contact Cards */
.phone-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-contact-card {
    background: rgba(30, 39, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
    transition: transform 0.15s, border-color 0.15s;
}

.phone-contact-card:hover {
    border-color: rgba(9, 132, 227, 0.4);
    transform: translateY(-1px);
}

.contact-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

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

.contact-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-name {
    font-size: 0.88rem;
    color: #fff;
}

.contact-tier-badge {
    font-size: 0.68rem;
    font-weight: 700;
}

.contact-sub {
    font-size: 0.7rem;
    color: #a4b0be;
}

.friendship-track {
    width: 100%;
    height: 5px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.friendship-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.contact-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-btn {
    flex: 1;
    padding: 5px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s;
    text-align: center;
}

.phone-call-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border-color: #55efc4;
}

.phone-call-btn:hover {
    filter: brightness(1.15);
}

.phone-text-btn {
    background: linear-gradient(135deg, #0984e3, #74b9ff);
    color: #fff;
    border-color: #74b9ff;
}

.phone-text-btn:hover {
    filter: brightness(1.15);
}

.phone-invite-btn {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: #fff;
    border-color: #a29bfe;
}

.phone-invite-btn:hover:not(:disabled) {
    filter: brightness(1.15);
}

.phone-invite-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Visitors Management Tab */
.phone-visitors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.visitor-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #55efc4;
}

.dismiss-all-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    background: #e74c3c;
    border-color: #c0392b;
}

.phone-visitor-card {
    background: rgba(30, 39, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.visitor-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2f3640;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.visitor-info strong {
    font-size: 0.85rem;
    color: #fff;
}

.visitor-info small {
    font-size: 0.7rem;
    color: #a4b0be;
}

.visitor-status {
    font-size: 0.66rem;
    color: #f1c40f;
}

.dismiss-visitor-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
    background: linear-gradient(135deg, #d63031, #c0392b);
    border-color: #e74c3c;
}

/* Empty State */
.phone-empty-state {
    text-align: center;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.phone-empty-state .empty-icon {
    font-size: 2.8rem;
    opacity: 0.8;
}

.phone-empty-state h3 {
    margin: 0;
    color: #dfe6e9;
    font-size: 1.05rem;
}

.phone-empty-state p {
    margin: 0;
    color: #a4b0be;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 280px;
}

/* Quick Services Tab */
.phone-services-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-card {
    background: rgba(30, 39, 46, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 10px;
    row-gap: 8px;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.service-info strong {
    font-size: 0.9rem;
    color: #fff;
}

.service-info p {
    margin: 0;
    font-size: 0.72rem;
    color: #a4b0be;
    line-height: 1.35;
}

.service-price {
    font-weight: 800;
    color: #2ecc71;
    font-size: 0.82rem;
    margin-top: 4px;
}

.service-order-btn {
    grid-column: 1 / -1;
    padding: 8px;
    font-size: 0.82rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0984e3, #00cec9);
    border-color: #55efc4;
}

/* ==========================================================================
   FEATURE 1: CULINARY ARTS & RECIPE COOKBOOK SYSTEM
   ========================================================================== */
.cooking-modal-card {
    max-width: 680px;
    width: 94vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(22, 33, 44, 0.96), rgba(15, 23, 30, 0.98));
    border: 2px solid rgba(243, 156, 18, 0.4);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 32px rgba(243, 156, 18, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.cooking-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(211, 84, 0, 0.1));
    padding: 12px 18px;
    border-bottom: 1px solid rgba(243, 156, 18, 0.25);
}

.cooking-skill-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f39c12;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.cooking-body-scroll {
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recipe-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    transition: all 0.2s ease;
}

.recipe-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(243, 156, 18, 0.4);
    transform: translateY(-2px);
}

.recipe-card.locked {
    opacity: 0.55;
    filter: grayscale(0.5);
    border-color: rgba(255, 255, 255, 0.05);
}

.recipe-card.locked:hover {
    transform: none;
}

.recipe-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.1));
    border: 1.5px solid rgba(243, 156, 18, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.recipe-details-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.recipe-title-text {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.recipe-level-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(243, 156, 18, 0.18);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.recipe-desc-text {
    font-size: 0.74rem;
    color: #cbd5e1;
    line-height: 1.3;
}

.recipe-motive-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

.recipe-motive-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.recipe-action-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.recipe-cost-label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2ecc71;
}

.cook-recipe-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 800;
    background: linear-gradient(135deg, #e67e22, #d35400);
    border-color: #f39c12;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.cook-recipe-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: scale(1.04);
}

.cook-recipe-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #4a5568;
    border-color: #718096;
}

/* ==========================================================================
   FEATURE 2: SIMRADIO & STEREO JUKEBOX TUNER
   ========================================================================== */
.radio-tuner-card {
    max-width: 520px;
    width: 92vw;
    background: linear-gradient(145deg, #2b1d0c, #160f06);
    border: 3px solid #8d5524;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.15);
    padding: 20px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.radio-faceplate {
    background: linear-gradient(180deg, #1c1308, #2a1b0b);
    border: 2px solid #5a3818;
    border-radius: 16px;
    padding: 16px;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-dial-window {
    background: #0d0a05;
    border: 2px solid #3d2610;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: inset 0 0 16px rgba(255, 177, 66, 0.15);
}

.radio-station-display {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.radio-station-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffb142;
    text-shadow: 0 0 10px rgba(255, 177, 66, 0.5);
}

.radio-station-sub {
    font-size: 0.74rem;
    color: #d1ccc0;
}

.eq-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 32px;
    padding: 4px;
}

.eq-bar {
    width: 6px;
    background: #ffb142;
    border-radius: 3px;
    height: 4px;
    transition: height 0.15s ease;
}

.eq-bar.active {
    animation: eqBounce 0.5s infinite alternate ease-in-out;
}

.eq-bar:nth-child(1) { animation-delay: 0.1s; }
.eq-bar:nth-child(2) { animation-delay: 0.3s; }
.eq-bar:nth-child(3) { animation-delay: 0.05s; }
.eq-bar:nth-child(4) { animation-delay: 0.25s; }
.eq-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes eqBounce {
    0% { height: 6px; }
    50% { height: 28px; }
    100% { height: 14px; }
}

.radio-stations-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-station-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.radio-station-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffb142;
    transform: translateY(-2px);
}

.radio-station-btn.active {
    background: linear-gradient(135deg, rgba(255, 177, 66, 0.3), rgba(204, 142, 53, 0.2));
    border-color: #ffb142;
    box-shadow: 0 0 12px rgba(255, 177, 66, 0.4);
    color: #fffa65;
}

.radio-station-btn.turn-off {
    grid-column: 1 / -1;
    justify-content: center;
    background: rgba(235, 77, 75, 0.15);
    border-color: rgba(235, 77, 75, 0.35);
    color: #ff7979;
}

.radio-station-btn.turn-off:hover {
    background: rgba(235, 77, 75, 0.3);
    border-color: #eb4d4b;
}

/* ==========================================================================
   FEATURE 3: 📷 PHOTO MODE & MEMORIES ALBUM
   ========================================================================== */
.photo-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.6);
}

.viewfinder-brackets {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    bottom: 96px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.bracket {
    position: absolute;
    width: 32px;
    height: 32px;
    border-color: rgba(255, 255, 255, 0.85);
    border-style: solid;
}

.bracket.top-left {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.bracket.top-right {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.viewfinder-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 33.333% 33.333%;
    display: block;
}

.viewfinder-header-info {
    position: absolute;
    top: 14px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.simcam-lot-pill {
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.photo-mode-bottom-bar {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    padding: 8px 22px;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.photo-mode-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.photo-mode-btn.exit-photo-btn {
    background: rgba(235, 77, 75, 0.2);
    border-color: rgba(235, 77, 75, 0.5);
    color: #ff7675;
}

.photo-mode-btn.exit-photo-btn:hover {
    background: rgba(235, 77, 75, 0.4);
}

.photo-shutter-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.photo-shutter-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.photo-shutter-btn:active {
    transform: scale(0.94);
}

.shutter-inner-ring {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #0f172a;
    background: #f8fafc;
}

/* Flash overlay */
.photo-flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.08s ease-out;
}

.photo-flash-overlay.flashing {
    opacity: 0.95;
    transition: none;
}

/* Photo Memories Album Gallery Modal */
.memories-modal-card {
    max-width: 820px;
    width: 95vw;
    max-height: 88vh;
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.96), rgba(12, 16, 22, 0.98));
    border: 2px solid rgba(224, 86, 253, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 32px rgba(224, 86, 253, 0.15);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.memories-gallery-scroll {
    overflow-y: auto;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.memory-polaroid-card {
    background: #fff;
    border-radius: 12px;
    padding: 10px 10px 14px 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #2d3436;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.memory-polaroid-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.memory-thumbnail-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.memory-thumbnail-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.memory-meta-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.memory-lot-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.memory-timestamp {
    font-size: 0.68rem;
    color: #64748b;
}

.memory-actions-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.memory-action-btn {
    flex: 1;
    padding: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.memory-action-btn:hover {
    opacity: 0.85;
}

.download-memory-btn {
    background: #0984e3;
    color: #fff;
}

.delete-memory-btn {
    background: #eb4d4b;
    color: #fff;
}

.memories-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.memories-empty-icon {
    font-size: 3.5rem;
}

/* ============================================================
   WEATHER & ATMOSPHERIC SYSTEM HUD
   ============================================================ */
.clock-weather-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 6px;
    transition: transform 0.15s ease, background 0.15s ease;
    user-select: none;
}
.clock-weather-badge:hover {
    transform: scale(1.05);
    background: rgba(30, 41, 59, 0.9);
}

/* ============================================================
   SIMS 4 STYLE MOODLETS & EMOTIONAL BUFFS TRAY
   ============================================================ */
.hud-moodlets-tray {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    max-width: 250px;
    margin-left: 8px;
    padding: 2px 4px;
}

.moodlet-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.88);
    border: 1.5px solid var(--moodlet-color, #2ecc71);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.moodlet-chip:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.moodlet-chip .moodlet-icon {
    font-size: 0.85rem;
}

.moodlet-chip .moodlet-name {
    letter-spacing: 0.2px;
}

.moodlet-chip .moodlet-timer {
    font-size: 0.62rem;
    opacity: 0.85;
    margin-left: 2px;
    font-variant-numeric: tabular-nums;
}

/* Placement HUD Rotate button */
#hudRotateBuildBtn, #hudRotateBtn {
    background: linear-gradient(135deg, #0984e3, #6c5ce7) !important;
    border-color: #74b9ff !important;
    color: #ffffff !important;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(9, 132, 227, 0.4);
}

#hudRotateBuildBtn:hover, #hudRotateBtn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(9, 132, 227, 0.6);
}






