/* ==========================================================================
   12 Testers Web App - Stylesheet
   Modern, Dark Aesthetic, Responsive Mobile & Desktop
   ========================================================================== */

:root {
    --bg: #0a0c10;
    --bg-alt: #0f1218;
    --surface: #141720;
    --surface-hover: #1b202c;
    --surface-card: #161a24;
    --border: #222836;
    --border-light: rgba(255, 255, 255, 0.08);

    /* CoderStudio CS.in Crimson Red Theme */
    --primary: #d8083c;
    --primary-hover: #b80531;
    --primary-glow: rgba(216, 8, 60, 0.35);
    --primary-subtle: rgba(216, 8, 60, 0.12);

    --secondary: #38bdf8;
    --secondary-glow: rgba(56, 189, 248, 0.25);

    --gold: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.25);
    --gold-bg: rgba(245, 158, 11, 0.12);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);

    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);

    --text: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* Navigation Header */
header.app-header {
    background: rgba(13, 21, 34, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 38px !important;
    width: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0 !important;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.08) rotate(-2deg);
}

.modal-logo-img {
    height: 32px !important;
    width: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 6px var(--primary-glow));
    flex-shrink: 0 !important;
}

.brand-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #8f0325);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.brand-text span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Nav Links */
nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-hover);
}

.nav-link.active {
    color: #fff;
    background: var(--surface);
    border-color: var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-link.active i {
    color: var(--primary);
}

/* Header Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Currency & Region Switcher Pill */
.currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.currency-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(216, 8, 60, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(216, 8, 60, 0.2);
}

/* Chips Pill */
.chips-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold-bg);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.chips-pill:hover {
    background: rgba(245, 158, 11, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.chips-pill .coin-icon {
    font-size: 1.1rem;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* User Profile Button */
.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.user-btn:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    overflow: hidden;
}

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

/* App Main Content */
main.app-main {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem;
}

/* View Sections */
.view-section {
    display: none;
    animation: fadeIn 0.25s ease-out forwards;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Banner Header */
.section-banner {
    background: linear-gradient(135deg, rgba(216, 8, 60, 0.14) 0%, rgba(20, 24, 32, 0.7) 60%, rgba(216, 8, 60, 0.05) 100%);
    border: 1px solid rgba(216, 8, 60, 0.25);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.banner-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.banner-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 650px;
}

.banner-actions {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e61044, var(--primary) 45%, #9e0329 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f42456, #d8083c 45%, #850221 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 8, 60, 0.45);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    background: rgba(0, 210, 255, 0.12);
    border: 1px solid rgba(0, 210, 255, 0.35);
    color: var(--secondary);
}

.btn-secondary:hover {
    background: rgba(0, 210, 255, 0.22);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* Filter Controls Bar */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-pill-group {
    display: inline-flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px;
}

.tab-pill {
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
}

.tab-pill.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    gap: 8px;
    min-width: 260px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.88rem;
    width: 100%;
    outline: none;
}

/* App Marketplace Cards Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* App Status Badges */
.app-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.status-completed {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}

.status-active {
    background: rgba(216, 8, 60, 0.15);
    color: #ff3b6b;
    border: 1px solid rgba(216, 8, 60, 0.35);
}

.status-review {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.status-default {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.card-completed {
    border-color: rgba(16, 185, 129, 0.45) !important;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--surface) 100%) !important;
}

.card-completed:hover {
    border-color: rgba(16, 185, 129, 0.7) !important;
    box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.25) !important;
}

.app-title.clickable {
    cursor: pointer;
    transition: color 0.15s ease;
}

.app-title.clickable:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.copy-btn-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 0.72rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.copy-btn-mini:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border-color: var(--secondary);
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.app-card:hover {
    border-color: rgba(216, 8, 60, 0.45);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6);
}

.app-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.app-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e293b, #334155);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.app-title-group {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-package {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: var(--secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 2px;
}

.app-owner {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.app-instructions {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress Stats */
.progress-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

.app-card-actions {
    display: flex;
    gap: 8px;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

/* Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-active {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-started {
    background: rgba(0, 210, 255, 0.12);
    color: var(--secondary);
    border: 1px solid rgba(0, 210, 255, 0.3);
}

.status-completed {
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* App Listing Pricing Cards */
.pricing-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: all 0.3s ease;
}

.plan-card.highlight {
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px var(--primary-glow);
    background: linear-gradient(180deg, rgba(216, 8, 60, 0.1), var(--surface));
}

.plan-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.plan-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.plan-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 1.5rem 0;
}

.price-currency {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
}

.price-figure {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.price-chips-badge {
    margin-left: auto;
    background: var(--gold-bg);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.plan-features li i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Form Styles */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.form-group small {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
}

.order-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-id-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 700;
}

.order-app-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 2px;
}

.order-plan-name {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.order-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    background: var(--bg);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
}

.stat-item-value {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text);
    margin-top: 2px;
}

/* Support Q&A Accordion */
.qa-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

/* Listed App Support Chat Cards */
.app-chat-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-chat-card:hover {
    border-color: var(--primary) !important;
    background: var(--surface-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px -3px var(--primary-glow) !important;
}

/* More Screen Options Grid */
.more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.more-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text);
}

.more-tile:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.more-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.more-tile-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
}

.more-tile-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Modal Overlay & Dialog */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

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

.modal-dialog {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Mobile Bottom Navigation Bar */
nav.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 21, 34, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    padding: 6px 12px;
    z-index: 100;
    justify-content: space-around;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.mobile-nav-item.active {
    color: var(--primary);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 860px) {
    nav.desktop-nav {
        display: none;
    }

    nav.mobile-bottom-nav {
        display: flex;
    }

    .header-actions .brand-text span {
        display: none;
    }

    main.app-main {
        padding: 1.25rem 1rem 5rem;
    }

    .section-banner {
        padding: 1.25rem;
    }

    .pricing-deck {
        grid-template-columns: 1fr;
    }
}