@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ══════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════ */
:root {
    --bg-1: #0d0d1a;
    --bg-2: #12122a;
    --primary: #7c4dff;
    --primary-soft: rgba(124, 77, 255, 0.18);
    --accent: #00e5ff;
    --accent-soft: rgba(0, 229, 255, 0.12);
    --success: #00e676;
    --danger: #ff5252;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.45);
    --text-mid: rgba(255, 255, 255, 0.72);
    --glass-bg: rgba(255, 255, 255, 0.055);
    --glass-border: rgba(255, 255, 255, 0.11);
    --glass-hover: rgba(255, 255, 255, 0.09);
    --gradient: linear-gradient(135deg, #7c4dff 0%, #00e5ff 100%);
    --radius-xl: 22px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ══════════════════════════════════════
   RESET & BASE
══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg-1);
    color: var(--text);
    min-height: 100vh;
    padding: 12px 14px 32px;
    overflow-x: hidden;
    /* Animated gradient bg */
    background: linear-gradient(145deg, #0d0d1a 0%, #12122a 40%, #0d1a2a 100%);
    position: relative;
}

/* Animated orbs in background */
body::before,
body::after {
    content: none;
}

body::before {
    width: 300px;
    height: 300px;
    background: rgba(124, 77, 255, 0.2);
    top: -80px;
    right: -60px;
}

body::after {
    width: 250px;
    height: 250px;
    background: rgba(0, 229, 255, 0.13);
    bottom: 20%;
    left: -80px;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   GLASS CARD
══════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    margin-bottom: 14px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

/* ══════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════ */
h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 18px;
}

/* ══════════════════════════════════════
   STATS GRID
══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.stat-value.active {
    color: var(--success);
}

.stat-value.expired {
    color: var(--danger);
}

.stat-value.loading {
    color: var(--text-dim);
    font-size: 14px;
}

/* ══════════════════════════════════════
   PROGRESS
══════════════════════════════════════ */
.progress-section {
    margin-bottom: 10px;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.progress-meta b {
    color: var(--text);
}

.progress-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-tag {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-dim);
}

.account-tag code {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', monospace;
    font-size: 10px;
}

/* ══════════════════════════════════════
   PLANS SECTION
══════════════════════════════════════ */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
    padding-left: 2px;
}

#screen-dashboard {
    display: flex;
    flex-direction: column;
}
#screen-dashboard > .glass-card { order: 0; }
#screen-dashboard > .grid-menu { order: 1; }
#screen-dashboard > .plans-section { order: 2; }

.plan-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::after {
    content: '→';
    position: absolute;
    right: 16px;
    font-size: 16px;
    color: var(--text-dim);
    transition: transform 0.2s;
}

.plan-card:hover,
.plan-card:active {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 77, 255, 0.2);
}

.plan-card:active .plan-card::after,
.plan-card:hover::after {
    transform: translateX(3px);
}

.plan-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.plan-info p {
    font-size: 12px;
    color: var(--text-dim);
}

.plan-price {
    text-align: right;
    padding-right: 22px;
}

.price-main {
    font-size: 18px;
    font-weight: 800;
    display: block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-sub {
    font-size: 11px;
    color: var(--text-dim);
}

/* ══════════════════════════════════════
   GRID MENU
══════════════════════════════════════ */
.grid-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 16px;
}

.grid-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.grid-btn:hover,
.grid-btn:active {
    background: var(--primary-soft);
    border-color: rgba(124, 77, 255, 0.5);
    transform: scale(0.97);
}

.grid-btn.full-width {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 14px;
}

.btn-icon {
    font-size: 22px;
}

/* ══════════════════════════════════════
   BACK BUTTON
══════════════════════════════════════ */
.back-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.back-btn:hover {
    opacity: 0.7;
}

/* ══════════════════════════════════════
   METHOD SELECTION
══════════════════════════════════════ */
.method-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.method-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.method-card:hover,
.method-card:active {
    background: var(--primary-soft);
    border-color: rgba(124, 77, 255, 0.5);
}

.method-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.method-info {
    flex: 1;
}

.method-name {
    font-size: 15px;
    font-weight: 600;
}

.method-desc {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

.method-arrow {
    color: var(--text-dim);
    font-size: 18px;
}

/* ══════════════════════════════════════
   PAYMENT SCREEN
══════════════════════════════════════ */
.payment-status {
    text-align: center;
    margin: 20px 0 14px;
}

.pulse-circle {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border: 2px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(124, 77, 255, 0.4);
    }

    50% {
        transform: scale(1.08);
        opacity: 0.8;
        box-shadow: 0 0 0 12px rgba(124, 77, 255, 0);
    }
}

#payment-instruction {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-pay {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin: 12px 0;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(124, 77, 255, 0.35);
    letter-spacing: 0.2px;
}

.btn-pay:hover {
    opacity: 0.9;
}

.btn-pay:active {
    transform: scale(0.98);
}

.btn-confirm {
    width: 100%;
    padding: 14px;
    background: rgba(0, 230, 118, 0.1);
    border: 1.5px solid var(--success);
    color: var(--success);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.btn-confirm:hover {
    background: rgba(0, 230, 118, 0.18);
}

.btn-confirm:active {
    transform: scale(0.98);
}

.btn-confirm:disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}

.btn-back-text {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
}

.btn-back-text:hover {
    color: var(--text);
}

/* ══════════════════════════════════════
   SUCCESS SCREEN
══════════════════════════════════════ */
.success-card {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 16px;
    animation: pop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes pop {

    0%,
    20% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* ══════════════════════════════════════
   INSTRUCTIONS SCREEN
══════════════════════════════════════ */
.os-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
}

button.method-card {
    width: 100%;
    color: inherit;
    font: inherit;
    text-align: left;
}

button.method-card .method-name,
button.method-card .method-desc {
    display: block;
}

button.method-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.os-tab {
    min-width: 0;
    padding: 9px 4px;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.os-tab.active {
    background: var(--primary-soft);
    border-color: rgba(124, 77, 255, 0.6);
    color: var(--text);
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.2);
}

.instr-section {
    animation: fadeIn 0.3s ease;
}

.instr-app-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.instr-app-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.instr-app-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.instr-app-caption {
    margin-bottom: 6px;
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.35;
}

.instr-store-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.instr-store-link:hover {
    opacity: 0.8;
}

/* Steps */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.step {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

.step:last-child {
    padding-bottom: 0;
}

/* Connecting line */
.step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(124, 77, 255, 0.4), transparent);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 77, 255, 0.35);
    position: relative;
    z-index: 1;
}

.step-body {
    font-size: 14px;
    line-height: 1.55;
    padding-top: 6px;
    color: var(--text-mid);
}

.step-body b {
    color: var(--text);
}

.step-tip {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: rgba(0, 230, 118, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
}

.instr-alt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 13px 15px;
    margin-top: 6px;
}

.instr-alt-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.instr-alt > summary {
    cursor: pointer;
    list-style: none;
}

.instr-alt > summary::-webkit-details-marker {
    display: none;
}

.instr-alt > summary::after {
    content: '+';
    float: right;
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
}

.instr-alt[open] > summary::after {
    content: '−';
}

.instr-alt-steps {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 5px;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.4s ease forwards;
}

.reserve-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.guide-account-note {
    margin: 0 0 18px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: var(--text-mid);
    font-size: 11px;
    line-height: 1.45;
}

.guide-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 8px;
    padding: 5px 10px;
    border: 1px solid rgba(0,229,255,0.35);
    border-radius: var(--radius-sm);
    background: rgba(0,229,255,0.08);
    color: var(--accent);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.plan-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(0,229,255,0.14);
    border: 1px solid rgba(0,229,255,0.25);
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.plan-badge.best {
    background: rgba(255,193,7,0.16);
    border-color: rgba(255,193,7,0.35);
    color: #ffd166;
}
/* =======================================
   PROFILE SCREEN
======================================= */
.profile-block {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 4px 0;
    margin-bottom: 16px;
}
.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.profile-row:last-child { border-bottom: none; }
.profile-label { font-size: 13px; color: var(--text-dim); }
.profile-value { font-size: 14px; font-weight: 600; }

.key-block {
    background: rgba(124,77,255,0.08);
    border: 1px solid rgba(124,77,255,0.25);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 4px;
}
.key-block.connection-section {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
}
.key-label { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.key-value {
    font-size: 11px;
    color: var(--accent);
    word-break: break-all;
    font-family: 'SF Mono', monospace;
    background: rgba(0,229,255,0.06);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    line-height: 1.5;
}
.btn-copy {
    width: 100%;
    padding: 10px;
    background: var(--primary-soft);
    border: 1px solid rgba(124,77,255,0.4);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-copy + .btn-copy { margin-top: 8px; }
.btn-copy:hover { background: rgba(124,77,255,0.25); }
.btn-copy.primary-action {
    background: linear-gradient(135deg, rgba(0,230,118,0.22), rgba(0,229,255,0.18));
    border-color: rgba(0,230,118,0.42);
}
.key-note {
    margin: -2px 0 10px;
    color: var(--text-mid);
    font-size: 11px;
    line-height: 1.4;
}
.advanced-actions {
    margin-top: 10px;
}
.advanced-actions summary {
    cursor: pointer;
    color: var(--text-mid);
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    padding: 8px 0 2px;
}
.advanced-actions summary::-webkit-details-marker {
    display: none;
}
.advanced-actions summary::after {
    content: '↓';
    float: right;
    color: var(--accent);
}
.advanced-actions[open] summary::after {
    content: '↑';
}
.profile-catalog {
    display: grid;
    gap: 14px;
}
.profile-catalog-group {
    min-width: 0;
}
.profile-catalog-group + .profile-catalog-group {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.profile-catalog-group.collapsible {
    padding-top: 12px;
}
.profile-catalog-group.collapsible > summary {
    cursor: pointer;
    list-style: none;
}
.profile-catalog-group.collapsible > summary::-webkit-details-marker {
    display: none;
}
.profile-catalog-group.collapsible > summary::after {
    content: '+';
    float: right;
    color: var(--accent);
    font-size: 14px;
}
.profile-catalog-group.collapsible[open] > summary::after {
    content: '−';
}
.profile-catalog-group.collapsible > .profile-action-list {
    margin-top: 6px;
}
.profile-catalog-title {
    margin: 0 0 6px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0;
}
.profile-action-list {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}
.profile-action {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
}
.profile-action:last-child {
    border-bottom: 0;
}
.profile-action:hover {
    background: var(--glass-hover);
}
.profile-action:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.profile-action.primary {
    background: rgba(0,230,118,0.07);
}
.profile-action.copied {
    background: rgba(0,230,118,0.14);
}
.profile-action-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 7px;
    background: rgba(255,255,255,0.055);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
.profile-action.primary .profile-action-icon {
    color: var(--success);
}
.profile-action-copy {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 2px;
}
.profile-action-copy.has-badge {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
}
.profile-action-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.profile-action-meta {
    overflow: visible;
    color: var(--text-dim);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
}
.profile-action-badge {
    position: static;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    max-width: 82px;
    padding: 2px 5px;
    overflow: hidden;
    border: 1px solid rgba(0,229,255,0.24);
    border-radius: 4px;
    background: rgba(0,229,255,0.08);
    color: var(--accent);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: nowrap;
    transform: none;
}
.profile-action-command {
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    text-align: center;
}
.profile-action.copied .profile-action-command {
    color: var(--success);
}
.profile-catalog-empty {
    padding: 16px 8px;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}

/* =======================================
   BS USAGE
======================================= */
[hidden] {
    display: none !important;
}
.bs-usage {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.09);
}
.profile-bs-usage {
    margin: 4px 0 18px;
}
.bs-usage-head,
.bs-usage-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.bs-usage-head {
    margin-bottom: 8px;
    color: var(--text-mid);
    font-size: 12px;
    font-weight: 700;
}
.bs-usage-head strong {
    color: var(--text);
    font-size: 12px;
    text-align: right;
}
.bs-usage-track {
    height: 6px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
}
.bs-usage-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--success);
    transition: width 0.25s ease;
}
.bs-usage.warning .bs-usage-track span {
    background: #ffc857;
}
.bs-usage.blocked .bs-usage-track span {
    background: var(--danger);
}
.bs-usage-meta {
    margin-top: 7px;
    color: var(--text-dim);
    font-size: 10px;
}
.bs-usage-note {
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 9px;
    line-height: 1.35;
}

/* =======================================
   APP DOWNLOAD
======================================= */
.client-section-label {
    margin: 18px 0 8px;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.app-quick-guide {
    margin: 16px 0 20px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.app-quick-guide .client-section-label {
    margin-top: 0;
}
.app-quick-guide ol {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    color: var(--text-mid);
    font-size: 12px;
    line-height: 1.45;
}
.app-quick-guide b {
    color: var(--text);
}
.profile-shortcut {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.profile-shortcut strong,
.profile-shortcut span {
    display: block;
}
.profile-shortcut strong {
    margin-bottom: 3px;
    font-size: 13px;
}
.profile-shortcut span {
    color: var(--text-dim);
    font-size: 10px;
    line-height: 1.35;
}
.profile-shortcut .guide-action {
    margin-top: 0;
}
.client-reserve {
    margin-top: 14px;
    color: var(--text-mid);
    font-size: 11px;
}
.client-reserve summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700;
}
.client-reserve summary::-webkit-details-marker {
    display: none;
}
.client-reserve summary::after {
    content: '+';
    float: right;
    color: var(--accent);
}
.client-reserve[open] summary::after {
    content: '−';
}
.reserve-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.reserve-downloads a {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--accent);
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (max-width: 350px) {
    .profile-action-copy.has-badge {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-action-badge {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 2px;
    }
}

/* =======================================
   REFERRAL SCREEN
======================================= */
.ref-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.ref-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    text-align: center;
}
.ref-stat-num {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ref-stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

/* =======================================
   INFO CARD
======================================= */
.info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}
.info-row { display: flex; gap: 10px; font-size: 14px; color: var(--text-mid); line-height: 1.4; }
.info-row b { color: var(--text); }

/* =======================================
   SUPPORT SCREEN
======================================= */
.support-contacts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; }
.support-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    font-size: 22px;
    transition: all 0.2s;
}
.support-btn:hover { background: var(--primary-soft); border-color: rgba(124,77,255,0.4); }
.support-btn-title { font-size: 15px; font-weight: 600; }
.support-btn-sub { font-size: 12px; color: var(--accent); margin-top: 2px; }
.support-btn .method-arrow { margin-left: auto; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-item:hover { background: rgba(255,255,255,0.08); }
.faq-q { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; }
.faq-arrow { color: var(--text-dim); font-size: 12px; }
.faq-a { font-size: 13px; color: var(--text-mid); margin-top: 10px; line-height: 1.5; display: none; }

/* ═══════════════════════════════════
   AI CHAT v2
═══════════════════════════════════ */
.ai-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 12px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, #0d0d1a 85%, transparent);
    z-index: 10;
}
.ai-header-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102,126,234,0.35);
}
.ai-messages-wrap {
    overflow-y: auto;
    padding: 0 0 8px;
    height: calc(100vh - 230px);
    max-height: 55vh;
    display: flex;
    flex-direction: column;
}
#ai-chat-body {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ai-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px;
    text-align: center;
}
.ai-empty-icon {
    font-size: 56px;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 20px rgba(102,126,234,0.5));
    animation: aiFloat 3s ease-in-out infinite;
}
@keyframes aiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.ai-quick-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.ai-quick-btn {
    background: rgba(102,126,234,0.12);
    border: 1px solid rgba(102,126,234,0.3);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-mid);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-quick-btn:hover, .ai-quick-btn:active {
    background: rgba(102,126,234,0.25);
    border-color: rgba(102,126,234,0.6);
    color: var(--text);
    transform: scale(0.97);
}
.ai-model-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 0 2px;
}
.ai-model-chips::-webkit-scrollbar { display: none; }
.ai-model-chip {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px 14px;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.ai-model-chip.active {
    background: rgba(102,126,234,0.2);
    border-color: rgba(102,126,234,0.6);
    color: #a0aaff;
}
.ai-input-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: 8px 0 12px;
    position: sticky;
    bottom: 0;
    background: linear-gradient(0deg, #0d0d1a 80%, transparent);
}
.ai-textarea {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid var(--glass-border);
    border-radius: 22px;
    padding: 11px 18px;
    color: var(--text);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    line-height: 1.4;
}
.ai-textarea:focus {
    border-color: rgba(102,126,234,0.5);
}
.ai-textarea::placeholder { color: var(--text-dim); }
.ai-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border: none;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(102,126,234,0.4);
    transition: transform 0.15s, opacity 0.15s;
}
.ai-send-btn:active { transform: scale(0.92); opacity: 0.85; }
.ai-typing {
    display: flex;
    gap: 5px;
    padding: 6px 2px;
    align-items: center;
}
.ai-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(102,126,234,0.7);
    animation: aiBounce 0.6s infinite alternate;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiBounce {
    from { transform: translateY(0); opacity: 0.4; }
    to { transform: translateY(-6px); opacity: 1; }
}

/* Modal */
.ai-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.ai-modal-card {
    background: #1a1a2e;
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 16px 16px;
    padding: 20px 18px 24px;
    width: 100%;
    animation: slideUp 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 -8px 32px rgba(0,0,0,0.5);
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.ai-modal-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s;
    margin-bottom: 6px;
}
.ai-modal-option:hover, .ai-modal-option:active {
    background: rgba(102,126,234,0.12);
}
.ai-modal-icon {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102,126,234,0.12);
    border-radius: 12px;
    flex-shrink: 0;
}
.ai-modal-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}
.ai-modal-desc {
    font-size: 12px;
    color: var(--text-dim);
}
.ai-modal-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102,126,234,0.4);
}


