/* phone_simulator.css - Ultra High-End Cyber-Smartphone Simulator */

:root {
    --sim-bg: #070312;
    --sim-card-bg: rgba(18, 10, 36, 0.85);
    --sim-border: rgba(168, 85, 247, 0.35);
    --sim-accent: #a855f7;
    --sim-accent-glow: rgba(168, 85, 247, 0.6);
    --sim-gold: #fbbf24;
    --sim-danger: #f43f5e;
    --sim-success: #10b981;
    --sim-text: #f3f4f6;
    --sim-text-dim: #9ca3af;
    
    /* WhatsApp Theme Defaults */
    --app-header-bg: #1f2c34;
    --app-body-bg: #0b141a;
    --app-bubble-in: #202c33;
    --app-bubble-out: #005c4b;
    --app-text: #e9edef;
    --app-accent: #25d366;
    --app-meta: #8696a0;
}

/* Instagram Theme */
body.theme-insta {
    --app-header-bg: #121212;
    --app-body-bg: #000000;
    --app-bubble-in: #262626;
    --app-bubble-out: linear-gradient(135deg, #7c3aed, #ec4899);
    --app-text: #ffffff;
    --app-accent: #ec4899;
    --app-meta: #a8a8a8;
}

/* Discord Theme */
body.theme-discord {
    --app-header-bg: #2b2d31;
    --app-body-bg: #313338;
    --app-bubble-in: #2b2d31;
    --app-bubble-out: #5865f2;
    --app-text: #dbdee1;
    --app-accent: #5865f2;
    --app-meta: #949ba4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--sim-bg);
    color: var(--sim-text);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
}

/* Ambient Background Glow */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.08) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(60px);
}

/* Main Layout Grid */
.sim-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    max-width: 1100px;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
}

/* ==================== LEFT PANEL: KALI COMMAND DECK ==================== */
.kali-command-deck {
    flex: 1;
    max-width: 420px;
    max-height: 100%;
    overflow-y: auto;
    background: var(--sim-card-bg);
    border: 1px solid var(--sim-border);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.2);
}

.deck-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.kali-avatar-glow {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--sim-accent);
    box-shadow: 0 0 20px var(--sim-accent-glow);
}

.kali-avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kali-live-dot {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border: 2px solid #000;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite;
}

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

.kali-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
}

.kali-status {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--sim-accent);
    letter-spacing: 1px;
}

/* Score Card */
.score-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 16px 18px;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.score-header strong {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.85rem;
    color: var(--sim-gold);
}

.score-track {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.score-bar {
    height: 100%;
    background: linear-gradient(90deg, #f43f5e 0%, #fbbf24 50%, #10b981 100%);
    border-radius: 8px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.score-status {
    display: block;
    font-size: 0.75rem;
    color: var(--sim-text-dim);
    margin-top: 6px;
    font-style: italic;
}

/* Sections */
.deck-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--sim-accent);
    letter-spacing: 0.8px;
}

.red-flags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 140px;
    overflow-y: auto;
    padding-right: 4px;
}

.red-flag-pill {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.4);
    color: #fecdd3;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: flagPop 0.3s ease;
}

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

.empty-flags {
    font-size: 0.78rem;
    color: var(--sim-text-dim);
    font-style: italic;
    padding: 6px 0;
}

/* Tactic Box */
.tactic-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
}

.tactic-box h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.tactic-box p {
    font-size: 0.8rem;
    color: #d1d5db;
    line-height: 1.45;
    margin-bottom: 8px;
}

.tactic-source {
    font-size: 0.7rem;
    color: var(--sim-gold);
    font-weight: 700;
}

/* Deck Actions */
.deck-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.deck-btn {
    background: linear-gradient(135deg, #9333ea, #c026d3);
    border: none;
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.4);
}

.deck-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(147, 51, 234, 0.6);
}

.deck-btn.secondary {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: none;
}

.deck-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ==================== CENTER: THE CYBER-SMARTPHONE ==================== */
.phone-frame {
    width: 375px;
    height: 100%;
    max-height: 720px;
    min-height: 450px;
    background: #0f172a;
    border-radius: 44px;
    padding: 10px;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

/* Hardware Details */
.phone-speaker {
    width: 60px;
    height: 4px;
    background: #334155;
    border-radius: 4px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.phone-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.island-camera {
    width: 10px;
    height: 10px;
    background: #1e293b;
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.island-indicator {
    font-size: 0.55rem;
    font-weight: 900;
    color: #10b981;
    letter-spacing: 0.5px;
    font-family: 'Press Start 2P', monospace;
}

/* Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: var(--app-body-bg);
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background 0.3s ease;
}

/* Phone Status Bar */
.phone-status-bar {
    height: 42px;
    padding: 12px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    z-index: 10;
    background: var(--app-header-bg);
    transition: background 0.3s ease;
}

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

.status-network {
    font-size: 0.65rem;
    font-weight: 800;
}

/* App Header */
.app-header {
    background: var(--app-header-bg);
    padding: 8px 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    transition: background 0.3s ease;
}

.app-back-btn {
    background: none;
    border: none;
    color: var(--app-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
}

.chat-partner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.partner-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.partner-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid var(--app-header-bg);
    border-radius: 50%;
}

.partner-meta {
    min-width: 0;
}

.partner-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.partner-name-row strong {
    font-size: 0.88rem;
    color: var(--app-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.platform-badge {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--app-accent);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.partner-status {
    font-size: 0.68rem;
    color: var(--app-meta);
    display: block;
}

.app-header-actions {
    display: flex;
    gap: 6px;
}

.app-action-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--app-text);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.app-action-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.05);
}

.app-action-btn.red-flag-btn.active {
    background: var(--sim-danger);
    color: #fff;
    box-shadow: 0 0 12px var(--sim-danger);
}

/* Chat Messages Area */
.chat-messages-container {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.date-divider {
    text-align: center;
    margin: 4px 0 10px;
}

.date-divider span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--app-meta);
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 12px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

/* Message Bubbles */
.message-row {
    display: flex;
    width: 100%;
    animation: messagePop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.message-row.incoming {
    justify-content: flex-start;
}

.message-row.outgoing {
    justify-content: flex-end;
}

.message-row.system-event {
    justify-content: center;
}

.msg-bubble {
    max-width: 82%;
    padding: 9px 12px 6px;
    border-radius: 16px;
    position: relative;
    word-break: break-word;
    font-size: 0.85rem;
    line-height: 1.4;
}

.message-row.incoming .msg-bubble {
    background: var(--app-bubble-in);
    color: var(--app-text);
    border-bottom-left-radius: 4px;
}

.message-row.outgoing .msg-bubble {
    background: var(--app-bubble-out);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-row.system-event .msg-bubble {
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: var(--sim-gold);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    max-width: 90%;
}

.msg-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 0.62rem;
    color: var(--app-meta);
    margin-top: 3px;
}

.message-row.outgoing .msg-meta {
    color: rgba(255, 255, 255, 0.7);
}

.msg-check {
    color: #53bdeb;
}

/* Red Flag Warning Highlight Tag */
.msg-red-flag-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.5);
    color: #fecdd3;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    margin-bottom: 5px;
}

/* Typing Indicator Row */
.typing-indicator-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.typing-bubble {
    background: var(--app-bubble-in);
    padding: 8px 12px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-bubble span {
    width: 6px;
    height: 6px;
    background: var(--app-meta);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-bubble span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.typing-label {
    font-size: 0.7rem;
    color: var(--app-meta);
    font-style: italic;
}

/* Chat Input Zone */
.chat-input-zone {
    flex-shrink: 0;
    background: var(--app-header-bg);
    padding: 10px 12px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.3s ease;
    position: relative;
    z-index: 20;
}

/* Choice Pills */
.choice-pills-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 130px;
    overflow-y: auto;
}

.sim-choice-pill {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--app-text);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sim-choice-pill:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: var(--sim-accent);
    transform: translateX(3px);
}

.choice-bullet {
    width: 6px;
    height: 6px;
    background: var(--sim-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Input Bar */
.input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-btn, .send-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--app-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn {
    background: var(--app-accent);
    color: #000;
}

.send-btn:hover {
    transform: scale(1.08);
}

#phone-text-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    outline: none;
    transition: border-color 0.2s;
}

#phone-text-input:focus {
    border-color: var(--sim-accent);
}

/* ==================== MODALS & CASES GRID ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 3, 18, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--sim-card-bg);
    border: 1px solid var(--sim-border);
    border-radius: 28px;
    max-width: 720px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pixel-badge {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.65rem;
    color: var(--sim-accent);
    display: block;
    margin-bottom: 6px;
}

.modal-title-group h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

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

.modal-subtitle {
    font-size: 0.85rem;
    color: var(--sim-text-dim);
    margin-bottom: 20px;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.case-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.case-card:hover {
    border-color: var(--sim-accent);
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25);
}

.case-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.case-icon {
    font-size: 1.5rem;
}

.case-card-head h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
}

.case-card p {
    font-size: 0.78rem;
    color: var(--sim-text-dim);
    line-height: 1.4;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--sim-gold);
}

/* Final Evaluation Card */
.eval-card {
    text-align: center;
    max-width: 460px;
    width: 100%;
    padding: 24px 20px 20px;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.eval-badge-icon {
    font-size: 2.8rem;
    margin-bottom: 6px;
    line-height: 1;
}

#eval-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.22rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.25;
}

#eval-subtitle {
    font-size: 0.78rem;
    color: var(--sim-text-dim);
    margin-bottom: 12px;
    line-height: 1.35;
}

.eval-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 10px 0 14px;
}

.eval-stat-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

.eval-stat-val {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--sim-gold);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.eval-stat-lbl {
    font-size: 0.62rem;
    color: var(--sim-text-dim);
    text-align: center;
    line-height: 1.15;
    word-break: break-word;
}

.eval-feedback-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--sim-border);
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #d1d5db;
    margin-bottom: 16px;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
}

.eval-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.modal-action-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    transition: all 0.2s;
}

.modal-action-btn.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.modal-action-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ==================== RESPONSIVE / MOBILE ==================== */
@media (max-width: 900px) {
    body {
        padding: 0;
        align-items: stretch;
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    .sim-wrapper {
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        gap: 0;
        overflow: hidden;
    }

    .kali-command-deck {
        display: none; /* Hide deck on mobile */
    }

    .phone-frame {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        min-height: 0;
    }

    .phone-screen {
        border-radius: 0;
        height: 100%;
        height: 100dvh;
    }

    .phone-speaker, .phone-island {
        display: none;
    }

    .phone-status-bar {
        padding-top: 8px;
        height: 34px;
    }

    .modal-overlay {
        padding: 12px;
    }

    .modal-card {
        padding: 18px 14px;
        border-radius: 20px;
        max-height: 90vh;
        max-height: 90dvh;
    }

    .eval-card {
        padding: 18px 14px 16px;
    }

    .eval-badge-icon {
        font-size: 2.4rem;
        margin-bottom: 4px;
    }

    #eval-title {
        font-size: 1.1rem;
    }

    .eval-stats-row {
        gap: 6px;
        margin: 8px 0 12px;
    }

    .eval-stat-box {
        padding: 8px 3px;
        border-radius: 10px;
    }

    .eval-stat-val {
        font-size: 0.95rem;
    }

    .eval-stat-lbl {
        font-size: 0.58rem;
    }

    .eval-feedback-box {
        max-height: 130px;
        font-size: 0.76rem;
        padding: 10px 12px;
        margin-bottom: 12px;
    }

    .modal-action-btn {
        padding: 11px;
        font-size: 0.82rem;
    }
}
