/* ==========================================================================
   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 {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 1rem;
}

.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;
}

/* App Download Header Pill */
.app-download-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(216, 8, 60, 0.12);
    border: 1px solid rgba(216, 8, 60, 0.4);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.app-download-pill:hover {
    background: rgba(216, 8, 60, 0.25);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 0 14px var(--primary-glow);
    color: #fff;
}

/* 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;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem 2.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;
}

/* Marketplace Customer Type Filter Bar */
.marketplace-type-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.type-filter-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.type-filter-pill:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.type-filter-pill.active {
    background: rgba(216, 8, 60, 0.15);
    border-color: var(--primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(216, 8, 60, 0.25);
}

.type-filter-pill[data-type="promotion"].active {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    color: #34d399;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.type-filter-pill[data-type="expert"].active {
    background: rgba(245, 158, 11, 0.15);
    border-color: #f59e0b;
    color: #fbbf24;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.type-filter-pill[data-type="community"].active {
    background: rgba(59, 130, 246, 0.15);
    border-color: #3b82f6;
    color: #60a5fa;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

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

/* 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;
    overflow: hidden;
}

.app-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.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;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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(280px, 1fr));
    gap: 1.5rem;
    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-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    min-height: 28px;
}

.plan-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: fit-content;
}

.plan-ribbon.promo {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
}

.plan-ribbon.community {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.35);
}

.plan-ribbon.expert {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

.plan-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.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;
}

.plan-features li.plan-feature-exclusive {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 8px 10px;
    color: #fef3c7;
    font-weight: 700;
}

/* 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;
    }
}

/* ==========================================================================
   Chips Wallet Redesign Styles
   ========================================================================== */
.wallet-balance-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(216, 8, 60, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wallet-balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wallet-balance-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.wallet-balance-value span.unit {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
}

.wallet-balance-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.wallet-balance-hint b {
    color: #ffffff;
}

.wallet-usage-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin-bottom: 1.25rem;
}

.wallet-usage-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-usage-pill b {
    color: #ffffff;
}

/* Individual Chips Pack Item */
.chip-pack-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.chip-pack-card:hover {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.chip-pack-card.popular {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent);
}

.chip-pack-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.chip-pack-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.chip-pack-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

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

.chip-pack-amount {
    font-size: 1.12rem;
    font-weight: 900;
    color: #ffffff;
}

.chip-pack-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.03em;
}

.chip-pack-badge.popular {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.chip-pack-badge.best-value {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.chip-pack-badge.starter {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
}

.chip-pack-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.chip-pack-right {
    flex-shrink: 0;
}

.chip-pack-buy-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0b0f17;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    white-space: nowrap;
}

.chip-pack-buy-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
    color: #000;
}

@media (max-width: 480px) {
    .chip-pack-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .chip-pack-right {
        width: 100%;
    }

    .chip-pack-buy-btn {
        width: 100%;
        justify-content: center;
    }

    .wallet-usage-pills {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Platform Dual-Pillar Hero Section: Test & Get Production Access + Promote
   ========================================================================== */
.platform-hero {
    background: radial-gradient(circle at 50% 0%, rgba(216, 8, 60, 0.15), transparent 70%),
        linear-gradient(180deg, rgba(13, 21, 34, 0.7) 0%, rgba(9, 14, 23, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem 2.25rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.platform-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 8, 60, 0.8), rgba(245, 158, 11, 0.8), transparent);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #ffffff;
    max-width: 1100px;
    margin: 0 auto 1.2rem;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #ff4d6d, #d8083c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 2.25rem;
    line-height: 1.6;
}

/* Dual Feature Pillars Grid */
.hero-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem;
    text-align: left;
}

.pillar-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6);
}

.pillar-card.pillar-test {
    border-color: rgba(216, 8, 60, 0.35);
    background: linear-gradient(180deg, rgba(216, 8, 60, 0.05) 0%, var(--surface-card) 100%);
}

.pillar-card.pillar-test:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 35px -5px rgba(216, 8, 60, 0.3);
}

.pillar-card.pillar-promote {
    border-color: rgba(245, 158, 11, 0.35);
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, var(--surface-card) 100%);
}

.pillar-card.pillar-promote:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 35px -5px rgba(245, 158, 11, 0.3);
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.pillar-tag {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(216, 8, 60, 0.15);
    color: #ff4d6d;
    border: 1px solid rgba(216, 8, 60, 0.35);
}

.pillar-tag.gold {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.pillar-card h3 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.pillar-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex: 1;
}

.pillar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pillar-list li {
    font-size: 0.82rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.pillar-list li i {
    width: 15px;
    height: 15px;
    color: #10b981;
    flex-shrink: 0;
}

.pillar-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.pillar-btn {
    font-size: 0.9rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.pillar-btn.btn-test {
    color: #ff4d6d;
}

.pillar-btn.btn-promote {
    color: #fbbf24;
}

.pillar-card:hover .pillar-btn {
    transform: translateX(4px);
}

/* Trust Metrics Bar */
.hero-metrics-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.25rem 2rem;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.metric-val {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.metric-lbl {
    font-size: 0.74rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.metric-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
}

.marketplace-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Marketplace Split Layout (Left: Apps Listing, Right: Growth & Actions Panel)
   ========================================================================== */
.marketplace-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.marketplace-main-col {
    min-width: 0;
    width: 100%;
}

.marketplace-side-col {
    min-width: 0;
    width: 100%;
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Side Platform Hero Panel */
.platform-hero.platform-hero-side {
    background: radial-gradient(circle at 50% 0%, rgba(216, 8, 60, 0.12), transparent 70%),
                linear-gradient(180deg, rgba(13, 21, 34, 0.85) 0%, rgba(9, 14, 23, 0.98) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: left;
    margin-bottom: 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 100%;
}

.platform-hero-side .hero-badge {
    margin-bottom: 0.75rem;
    padding: 4px 12px;
    font-size: 0.74rem;
}

.platform-hero-side .hero-title {
    font-size: 1.35rem;
    font-weight: 850;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    max-width: 100%;
}

.platform-hero-side .hero-subtext {
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 1.2rem 0;
    max-width: 100%;
    color: var(--text-muted);
}

.platform-hero-side .hero-pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem 0;
}

.platform-hero-side .pillar-card {
    padding: 1.2rem 1.15rem;
    border-radius: var(--radius-md);
}

.platform-hero-side .pillar-header {
    margin-bottom: 0.75rem;
}

.platform-hero-side .pillar-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    border-radius: 10px;
}

.platform-hero-side .pillar-tag {
    font-size: 0.68rem;
    padding: 2px 8px;
}

.platform-hero-side .pillar-card h3 {
    font-size: 1.12rem;
    margin-bottom: 0.35rem;
}

.platform-hero-side .pillar-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.platform-hero-side .pillar-list {
    margin: 0 0 1rem;
    gap: 6px;
}

.platform-hero-side .pillar-list li {
    font-size: 0.76rem;
    gap: 6px;
}

.platform-hero-side .pillar-list li i {
    width: 14px;
    height: 14px;
}

.platform-hero-side .pillar-cta {
    padding-top: 0.75rem;
}

.platform-hero-side .pillar-btn {
    font-size: 0.82rem;
}

.platform-hero-side .hero-metrics-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    margin: 0;
    text-align: center;
}

.platform-hero-side .hero-metrics-bar .metric-divider {
    display: none;
}

.platform-hero-side .metric-val {
    font-size: 1.15rem;
    font-weight: 850;
}

.platform-hero-side .metric-lbl {
    font-size: 0.65rem;
}

@media (max-width: 1080px) {
    .marketplace-layout {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
    .marketplace-side-col {
        position: static;
        order: 2;
        max-height: none;
        overflow-y: visible;
    }
    .platform-hero-side .hero-pillars-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
    }
    .platform-hero-side .hero-metrics-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .platform-hero {
        padding: 2rem 1.25rem;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-pillars-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics-bar {
        gap: 1.25rem;
    }

    .metric-divider {
        display: none;
    }
}

/* ==========================================================================
   Mobile Promotion & QR Code Banner Styles
   ========================================================================== */
.mobile-qr-banner {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(216, 8, 60, 0.08) 0%, rgba(13, 21, 34, 0.8) 100%);
    border: 1px dashed rgba(216, 8, 60, 0.45);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-qr-box {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(216, 8, 60, 0.35);
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-qr-box:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 22px rgba(216, 8, 60, 0.35);
}

.mobile-qr-img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 0;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.mobile-qr-caption {
    font-size: 0.62rem;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
    line-height: 1;
}

.mobile-qr-text-wrap {
    flex: 1;
    min-width: 220px;
}

.mobile-qr-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.mobile-qr-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
}

.mobile-qr-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
}

.mobile-qr-action {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .mobile-qr-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-qr-box {
        align-self: center;
    }

    .mobile-qr-action {
        width: 100%;
    }

    .mobile-qr-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* App Screenshots & Preview Gallery */
.app-screenshots-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
}

.app-screenshots-scroll::-webkit-scrollbar {
    height: 6px;
}

.app-screenshots-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.app-screenshots-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.app-screenshots-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.app-card-screenshots-preview div:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Marketplace Infinite Scroll & Smooth Shade Effect */
.marketplace-scroll-wrapper {
    position: relative;
    width: 100%;
}

/* Shade effect gradients at top and bottom */
.marketplace-shade-top {
    position: sticky;
    top: 70px;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, var(--background) 0%, rgba(13, 17, 23, 0) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: -36px;
}

.marketplace-shade-bottom {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(0deg, var(--background) 0%, rgba(13, 17, 23, 0) 100%);
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    margin-top: -48px;
    transition: opacity 0.3s ease;
}

.marketplace-scroll-wrapper.at-top .marketplace-shade-top {
    opacity: 0;
}

.marketplace-scroll-wrapper:not(.at-top) .marketplace-shade-top {
    opacity: 1;
}

.marketplace-scroll-wrapper.at-bottom .marketplace-shade-bottom {
    opacity: 0;
}

/* App cards entrance animation for smooth reveal */
.app-card {
    animation: cardFadeSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* Infinite Scroll Status / Trigger Sentinel */
.marketplace-infinite-status {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem 1rem;
    gap: 12px;
}

.marketplace-scroll-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.marketplace-end-message {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: var(--radius-full);
}
