/* TERMINAL JAILBREAK & TERMINAL SIGNER - CYBER MATRIX iOS THEME */
:root {
    --bg-black: #06090c;
    --bg-darker: #020406;
    --bg-card: rgba(13, 22, 20, 0.75);
    --bg-card-hover: rgba(18, 30, 27, 0.85);
    --border-color: rgba(0, 255, 102, 0.22);
    --border-glow: rgba(0, 255, 102, 0.55);
    --neon-green: #00ff66;
    --neon-green-glow: #00ff6699;
    --neon-green-bright: #39ff14;
    --cyber-cyan: #00f0ff;
    --text-primary: #e6fff0;
    --text-muted: #7ca88e;
    --danger-red: #ff3366;
    --warning-gold: #ffbe3b;
    --font-mono: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-full: 9999px;
    --glass-blur: blur(20px);
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 255, 102, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(0, 255, 102, 0.05) 0%, transparent 50%);
}

/* Background Matrix Canvas */
#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    opacity: 0.18;
    pointer-events: none;
}

/* CRT Scanlines subtle overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.app-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 16px 80px 16px;
}

/* Top Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: rgba(10, 16, 14, 0.75);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--neon-green);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.brand-text-mobile {
    display: none;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: rgba(0, 255, 102, 0.12);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--neon-green-glow);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.08);
}

.btn-vip-nav {
    background: linear-gradient(135deg, #00ff66 0%, #00b347 100%);
    color: #000 !important;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    text-shadow: none;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.4);
}

.btn-vip-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.7);
}

/* Notice Bar */
.notice-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(0, 255, 102, 0.06);
    border: 1px solid rgba(0, 255, 102, 0.25);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    font-size: 13.5px;
    color: #b8fcd4;
    font-family: var(--font-mono);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neon-green);
    display: inline-block;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse 1.8s infinite;
    margin-right: 8px;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* HERO TERMINAL CARD (Exact UI from user image) */
.hero-terminal-container {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(0, 255, 102, 0.03);
}

.hero-terminal-box {
    display: inline-block;
    border: 2px solid var(--neon-green);
    border-radius: 14px;
    padding: 16px 36px;
    background: rgba(0, 20, 10, 0.75);
    box-shadow: 0 0 25px var(--neon-green-glow), inset 0 0 15px rgba(0, 255, 102, 0.15);
    margin-bottom: 25px;
}

.terminal-title {
    font-family: var(--font-mono);
    color: var(--neon-green-bright);
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 800;
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--neon-green-glow);
    margin-bottom: 4px;
}

.terminal-cmd {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 13.5px;
    letter-spacing: 1px;
}

.terminal-cmd span {
    color: var(--neon-green);
}

.access-granted-title {
    font-family: var(--font-mono);
    color: var(--neon-green-bright);
    font-size: clamp(26px, 6vw, 42px);
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 12px;
}

.hero-sub {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-sub span {
    color: var(--cyber-cyan);
    font-weight: 700;
}

.hero-desc {
    max-width: 680px;
    margin: 0 auto 32px auto;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* HERO BUTTONS */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.btn-terminal {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.btn-execute {
    background: var(--neon-green);
    color: #000;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.btn-execute:hover {
    background: var(--neon-green-bright);
    box-shadow: 0 0 35px var(--neon-green);
    transform: translateY(-2px);
}

.btn-binary {
    background: rgba(0, 30, 15, 0.6);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.2);
}

.btn-binary:hover {
    background: rgba(0, 255, 102, 0.15);
    box-shadow: 0 0 25px var(--neon-green-glow);
    transform: translateY(-2px);
}

.btn-signer-main {
    background: linear-gradient(135deg, #00f0ff 0%, #0088cc 100%);
    color: #000;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-signer-main:hover {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.7);
    transform: translateY(-2px);
}

/* Device Auto-Detect Pill */
.device-detect-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-family: var(--font-mono);
    color: #92ebb8;
}

/* VIDEO GUIDE SHOWCASE SECTION */
.video-section {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; }
}

.video-player-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #000;
    box-shadow: 0 0 25px rgba(0,0,0,0.8);
    aspect-ratio: 9/16;
    max-height: 480px;
    margin: 0 auto;
    width: 100%;
    max-width: 320px;
}

.video-player-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-info-content h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.video-info-content p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin-bottom: 22px;
}

.feature-list li {
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--neon-green);
}

/* TERMINAL MODAL / CONSOLE */
.terminal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.terminal-modal-overlay.active {
    display: flex;
}

.terminal-window {
    width: 100%;
    max-width: 780px;
    background: #040907;
    border: 1px solid var(--neon-green);
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0, 255, 102, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.terminal-header {
    background: #0c1712;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-win-title {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 13px;
    font-weight: 600;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--neon-green);
    overflow-y: auto;
    flex: 1;
    min-height: 280px;
    max-height: 55vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.terminal-line {
    word-break: break-all;
    line-height: 1.5;
}

.terminal-line.info { color: #87e8b4; }
.terminal-line.warning { color: var(--warning-gold); }
.terminal-line.success { color: var(--neon-green-bright); font-weight: bold; }
.terminal-line.access_granted {
    color: #000;
    background: var(--neon-green);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    margin: 10px 0;
    box-shadow: 0 0 20px var(--neon-green);
}

.terminal-input-row {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #09120e;
    border-top: 1px solid rgba(0, 255, 102, 0.2);
}

.terminal-prompt {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-weight: 700;
    margin-right: 10px;
}

.terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
}

/* TERMINAL SIGNER TOOL SECTION */
.signer-section {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    margin-bottom: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.signer-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .signer-card-grid { grid-template-columns: 1fr; }
}

.signer-upload-box {
    border: 2px dashed rgba(0, 255, 102, 0.4);
    border-radius: 16px;
    padding: 36px 20px;
    text-align: center;
    background: rgba(0, 20, 10, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.signer-upload-box:hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 102, 0.05);
}

.signer-upload-icon {
    font-size: 38px;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.signer-form-group {
    margin-bottom: 16px;
}

.signer-form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--neon-green);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.signer-select, .signer-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 15, 10, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 13.5px;
    outline: none;
}

.signer-select:focus, .signer-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* IPA REPOSITORY LIST */
.ipa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.ipa-card {
    background: rgba(8, 16, 13, 0.75);
    border: 1px solid rgba(0, 255, 102, 0.2);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
}

.ipa-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.ipa-top {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.ipa-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
}

.ipa-info h4 {
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.ipa-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 255, 102, 0.12);
    border: 1px solid rgba(0, 255, 102, 0.3);
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--neon-green);
}

.ipa-badge.vip {
    background: rgba(255, 190, 59, 0.15);
    border-color: var(--warning-gold);
    color: var(--warning-gold);
}

/* VIP PACKAGES (PADDLE INTEGRATION) */
.packages-section {
    margin-bottom: 45px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.pkg-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.pkg-card:hover {
    border-color: var(--neon-green);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 102, 0.15);
}

.pkg-card.popular {
    border: 2px solid var(--neon-green);
    background: rgba(6, 22, 14, 0.85);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.2);
}

.pkg-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--neon-green);
    color: #000;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 1px;
}

.pkg-title {
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.pkg-tier {
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 13px;
    margin-bottom: 16px;
}

.pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
}

.pkg-price {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    font-family: var(--font-mono);
}

.pkg-dur {
    font-size: 13px;
    color: var(--text-muted);
}

.pkg-features {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.pkg-features li {
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pkg-features li::before {
    content: "✓";
    color: var(--neon-green);
    font-weight: 900;
}

.btn-paddle-buy {
    width: 100%;
    padding: 14px;
    background: var(--neon-green);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.btn-paddle-buy:hover {
    background: var(--neon-green-bright);
    box-shadow: 0 0 30px var(--neon-green);
}

/* FOOTER */
.app-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 255, 102, 0.15);
    color: var(--text-muted);
    font-size: 13px;
    font-family: var(--font-mono);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--neon-green);
}


/* ==================== CYBER LIVE CHAT WIDGET ==================== */
#terminal-chat-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff66 0%, #009933 100%);
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.6), 0 8px 20px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #39ff14;
}

#terminal-chat-bubble:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 0 35px var(--neon-green), 0 12px 25px rgba(0,0,0,0.8);
}

#terminal-chat-bubble svg {
    width: 28px;
    height: 28px;
    fill: #000;
}

.chat-pill-invite {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(6, 14, 10, 0.9);
    border: 1px solid var(--border-glow);
    backdrop-filter: var(--glass-blur);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--neon-green-bright);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(-50%) translateX(10px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

#terminal-chat-unread {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
}

/* LIVE CHAT POPUP BOX */
#terminal-chat-box {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #040907;
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 102, 0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    animation: chatPopup 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

#terminal-chat-box.active {
    display: flex;
}

.chat-box-header {
    background: #0a1711;
    border-bottom: 1px solid rgba(0, 255, 102, 0.2);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-box-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-online-dot {
    width: 9px;
    height: 9px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
}

.chat-box-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg-row {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}

.chat-msg-row.admin {
    align-self: flex-start;
}

.chat-msg-row.user {
    align-self: flex-end;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}

.chat-msg-row.admin .chat-bubble {
    background: rgba(0, 30, 18, 0.85);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #e6fff0;
    border-bottom-left-radius: 4px;
}

.chat-msg-row.user .chat-bubble {
    background: var(--neon-green);
    color: #000;
    font-weight: 600;
    border-bottom-right-radius: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.chat-time {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: 3px;
}

/* Quick Chips */
.chat-chips {
    padding: 8px 12px;
    background: rgba(0, 15, 8, 0.6);
    border-top: 1px solid rgba(0, 255, 102, 0.1);
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
}

.chat-chips::-webkit-scrollbar { display: none; }

.chat-chip-btn {
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    color: #bbf8d5;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s;
}

.chat-chip-btn:hover {
    background: var(--neon-green);
    color: #000;
    border-color: var(--neon-green);
}

.chat-box-footer {
    padding: 10px 14px;
    background: #08120c;
    border-top: 1px solid rgba(0, 255, 102, 0.2);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(0, 20, 12, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 9px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--neon-green);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--neon-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-green-glow);
    transition: transform 0.2s;
}

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

/* ==================== MOBILE ENHANCEMENTS & RESPONSIVENESS ==================== */
.brand-text-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    .app-wrapper {
        padding: 12px 10px 80px 10px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    .navbar {
        padding: 7px 10px !important;
        margin-bottom: 16px !important;
        border-radius: 12px !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .brand-text {
        display: none !important;
    }
    .brand-text-mobile {
        display: inline-block !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        color: var(--neon-green) !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
    }
    .brand {
        font-size: 14px !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
    }
    .brand-icon {
        width: 25px !important;
        height: 25px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
    }
    .nav-links {
        gap: 4px !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }
    .nav-link {
        font-size: 11px !important;
        padding: 4px 6.5px !important;
        border-radius: 6px !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        color: #e0e0e0 !important;
        line-height: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 2px !important;
    }
    .nav-link.active, .nav-link:hover {
        color: var(--neon-green) !important;
        border-color: rgba(0, 255, 102, 0.35) !important;
        background: rgba(0, 255, 102, 0.1) !important;
    }
    .nav-install-badge {
        background: var(--neon-green) !important;
        border: 1px solid var(--neon-green) !important;
        color: #000 !important;
        font-weight: 800 !important;
        box-shadow: 0 0 10px rgba(0, 255, 102, 0.35) !important;
    }
}

@media (max-width: 420px) {
    .app-wrapper {
        padding: 10px 8px 70px 8px !important;
    }
    .navbar {
        padding: 6px 7px !important;
        gap: 4px !important;
    }
    .brand {
        gap: 4px !important;
    }
    .brand-icon {
        width: 23px !important;
        height: 23px !important;
        font-size: 10px !important;
    }
    .brand-text-mobile {
        font-size: 12.5px !important;
    }
    .nav-links {
        gap: 3px !important;
    }
    .nav-link {
        font-size: 10.5px !important;
        padding: 4px 5px !important;
    }
}

@media (max-width: 360px) {
    .brand-icon {
        display: none !important;
    }
    .nav-links {
        gap: 2.5px !important;
    }
    .nav-link {
        font-size: 9.5px !important;
        padding: 3.5px 4px !important;
    }
}
