/* ===== Cryptu - Dark Theme Crypto Exchange Mini App ===== */

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

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-card: #1e2a45;
    --bg-input: #0f1b30;
    --text-primary: #ffffff;
    --text-secondary: #8892b0;
    --accent: #f7931a;
    --accent-green: #00d4aa;
    --accent-red: #ff4757;
    --accent-purple: #9945ff;
    --border: #2a3a5c;
    --nav-bg: #0d1b2a;
    --radius: 12px;
    --radius-lg: 16px;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app, #admin-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #f7931a, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-badge {
    background: var(--accent);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.lang-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:active {
    transform: scale(0.95);
    background: var(--border);
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    padding: 20px;
    padding-bottom: 90px;
    overflow-y: auto;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ===== Welcome ===== */
.welcome-section {
    margin-bottom: 24px;
}

.welcome-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Crypto Buy Buttons ===== */
.crypto-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.crypto-buy-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.crypto-buy-btn:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.crypto-buy-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crypto-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    overflow: hidden;
}

.crypto-icon svg {
    width: 28px;
    height: 28px;
}

.crypto-icon-fallback {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
}

.crypto-buy-arrow {
    font-size: 24px;
    opacity: 0.8;
}

/* ===== Rates ===== */
.rates-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.rates-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.rate-item:active {
    background: var(--bg-secondary);
    transform: scale(0.98);
}

.rate-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rate-icon {
    width: 32px;
    height: 32px;
}

.rate-icon svg {
    width: 32px;
    height: 32px;
}

.rate-name {
    font-weight: 600;
    font-size: 16px;
}

.rate-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rate-price {
    font-weight: 600;
    font-size: 15px;
}

.rate-arrow {
    color: var(--text-secondary);
    font-size: 20px;
}

/* ===== Trade Page ===== */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 4px 0;
}

.trade-header {
    text-align: center;
    margin-bottom: 24px;
}

.selected-crypto-icon {
    margin: 0 auto 10px;
    width: 56px;
    height: 56px;
}

.selected-crypto-icon svg {
    width: 56px;
    height: 56px;
}

.trade-header h2 {
    font-size: 22px;
    font-weight: 700;
}

.trade-rate {
    color: var(--text-secondary);
    font-size: 15px;
    margin-top: 4px;
}

/* ===== Form Sections ===== */
.form-section {
    margin-bottom: 20px;
}

.form-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.payment-method-btn:active {
    transform: scale(0.97);
}

.payment-method-btn.selected {
    border-color: var(--accent);
    background: rgba(247, 147, 26, 0.1);
    box-shadow: 0 0 15px rgba(247, 147, 26, 0.2);
}

.pm-icon {
    font-size: 20px;
}

.no-methods {
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

/* Payment Info Box */
.payment-info-box {
    background: rgba(255, 177, 0, 0.08);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 0 16px rgba(255, 177, 0, 0.15);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 177, 0, 0.15); }
    50% { box-shadow: 0 0 22px rgba(255, 177, 0, 0.3); }
}

.payment-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.payment-info-box h4 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #22c55e;
    color: #fff;
}

.payment-info-box .copyable-text {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed rgba(255, 177, 0, 0.3);
}

.copyable-id {
    cursor: pointer;
    word-break: break-all;
    font-size: 11px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    border: 1px dashed rgba(255, 177, 0, 0.3);
    transition: all 0.2s;
    user-select: all;
    -webkit-user-select: all;
}

.copyable-id:active {
    transform: scale(0.97);
}

.copyable-id.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}
    margin: 0;
}

/* Inputs */
.amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.amount-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s;
}

.amount-input-wrap input:focus {
    border-color: var(--accent);
}

.amount-limits {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 6px;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.text-input:focus {
    border-color: var(--accent);
}

/* Calc Result */
.calc-result {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 12px;
    border: 1px solid var(--border);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-row.main {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 16px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
}

/* File Upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: var(--accent);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px;
    color: var(--text-secondary);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

#fileName {
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
}

.hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

/* Submit */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), #e67e00);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(247, 147, 26, 0.4);
}

.submit-btn:active {
    transform: scale(0.97);
}

/* ===== History ===== */
.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 4px;
}

.history-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.history-tab.active {
    background: var(--accent);
    color: #000;
}

.history-tab.active .tab-count {
    background: rgba(0,0,0,0.2);
    color: #000;
}

.tab-count {
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
}

.history-item:active {
    border-color: var(--accent);
}

.history-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-icon {
    width: 32px;
    height: 32px;
}

.history-icon svg {
    width: 32px;
    height: 32px;
}

.history-info {
    display: flex;
    flex-direction: column;
}

.history-crypto {
    font-weight: 600;
    font-size: 15px;
}

.history-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.history-amount {
    font-weight: 600;
    font-size: 15px;
}

.history-txid {
    font-size: 10px;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Transaction Detail Modal */
.tx-detail-modal {
    width: 92%;
    max-width: 380px;
    padding: 24px 20px;
}

.tx-detail-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.tx-detail-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.tx-detail-icon svg {
    width: 48px;
    height: 48px;
}

.tx-detail-status {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
}

.tx-detail-status.status-pending {
    background: rgba(255, 177, 0, 0.15);
    color: var(--accent);
}

.tx-detail-status.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.tx-detail-status.status-cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.tx-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 20px;
}

.tx-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tx-detail-row:last-child {
    border-bottom: none;
}

.tx-detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.tx-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-all;
}

.tx-detail-value.mono {
    font-family: monospace;
    font-size: 12px;
}

.status-pending {
    color: #ffd700;
    font-size: 12px;
    font-weight: 600;
}

.status-completed {
    color: var(--accent-green);
    font-size: 12px;
    font-weight: 600;
}

.status-cancelled {
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 600;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* ===== Profile ===== */
.profile-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin: 0 auto 12px;
}

.profile-card h3 {
    font-size: 20px;
    font-weight: 700;
}

.profile-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.profile-settings {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row:active {
    background: var(--bg-secondary);
}

.setting-value {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    background: var(--nav-bg);
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    padding: 6px 12px;
    transition: color 0.2s;
}

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

.nav-item svg {
    width: 22px;
    height: 22px;
}

/* ===== Loading ===== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 200;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Modals ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    max-width: 320px;
    width: 100%;
    border: 1px solid var(--border);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.modal p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== Admin Page ===== */
.admin-content {
    padding-bottom: 30px;
}

.admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px;
    color: var(--text-secondary);
}

.admin-unauthorized {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.admin-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 4px 0;
    margin-bottom: 20px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.admin-row:last-child {
    border-bottom: none;
}

.admin-label {
    color: var(--text-secondary);
    font-size: 13px;
    flex-shrink: 0;
}

.admin-value {
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.wallet-addr {
    font-family: monospace;
    font-size: 12px;
    word-break: break-all;
}

/* Admin Proof */
.admin-proof-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.admin-proof-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-proof-img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    cursor: pointer;
}

.proof-link {
    display: block;
    padding: 16px;
    text-align: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

/* Admin Actions */
.admin-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.admin-done-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-green), #00b894);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-done-btn:active {
    transform: scale(0.97);
}

.admin-cancel-btn {
    flex: 1;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-red), #c0392b);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.admin-cancel-btn:active {
    transform: scale(0.97);
}

/* TXID Section */
.txid-section {
    margin-top: 20px;
}

.txid-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.admin-confirm-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-green), #00b894);
    border: none;
    border-radius: var(--radius);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
}

.admin-back-btn {
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

.admin-processed {
    text-align: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-top: 20px;
    border: 1px solid var(--border);
}

.admin-processed p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

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

/* ===== Input number arrows hide ===== */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* --- Language Selection Screen --- */
.lang-select-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lang-select-content {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 360px;
}

.lang-select-logo {
    margin-bottom: 48px;
}

.lang-select-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.lang-select-logo h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 12px;
    letter-spacing: 1px;
}

.lang-select-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.lang-select-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.lang-option:active {
    transform: scale(0.97);
    border-color: var(--accent);
    background: rgba(255, 177, 0, 0.1);
}

.lang-flag {
    font-size: 36px;
}

.lang-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}
