/* =====================================================================
   DAVR BUILDER — Mini App. Qora tema, animatsiyalar bilan.
   ===================================================================== */
:root {
    --bg: #000000;
    --bg-elev: #0a0e16;
    --bg-card: rgba(255, 255, 255, 0.045);
    --bg-card-hover: rgba(255, 255, 255, 0.075);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-glow: rgba(255, 255, 255, 0.4);

    --primary: #ffffff;
    --secondary: #d4d4d4;
    --accent: #bdbdbd;
    --success: #e5e5e5;
    --warning: #bdbdbd;
    --danger: #f87171;
    --grad: #ffffff;
    --grad-warm: #e5e5e5;

    --text-main: #f5f6fa;
    --text-muted: #8b90a0;
    --text-dim: #5b6070;

    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Outfit', 'Inter', sans-serif; letter-spacing: -0.01em; }
a { color: inherit; }
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }

/* ---------- Fon: sekin oqadigan porlash (aurora) + nozik to'r ---------- */
.bg-mesh {
    position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
    background: #000000;
}
.bg-mesh::after { display: none; }
.blob { display: none; }
.blob-1 { width: 320px; height: 320px; background: #ffffff; top: -110px; left: -90px; }
.blob-2 { width: 280px; height: 280px; background: #ffffff; top: 30%; right: -120px; animation-delay: -6s; opacity: 0.32; }
.blob-3 { width: 300px; height: 300px; background: #ffffff; bottom: -140px; left: 20%; animation-delay: -12s; opacity: 0.25; }

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, 30px) scale(1.12); }
    100% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes fadeUp   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn    { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes shimmer  { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes gradMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes toastIn  { from { transform: translateY(14px) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheenX   { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }

/* ---------- Asosiy konteyner ---------- */
.app-container { max-width: 480px; margin: 0 auto; padding: 14px 14px 108px; }

/* ---------- Sarlavha ---------- */
.app-header {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 14px; margin-bottom: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
    border: 1px solid var(--border-card); border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    animation: fadeUp 0.6s var(--ease) both;
}
.user-profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar-wrapper { position: relative; flex: 0 0 auto; }
.avatar-wrapper::before {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: var(--grad); background-size: 200% 200%; animation: gradMove 5s ease infinite; z-index: 0;
}
.avatar-wrapper img { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block; background: #111; border: 2px solid #000; }
.premium-badge { position: absolute; right: -4px; bottom: -4px; z-index: 2; font-size: 14px; }
.user-info { min-width: 0; text-align: left; }
.user-info h3 { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-status { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.balance-card {
    flex: 0 0 auto; text-align: right; cursor: pointer; padding: 8px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.2s var(--ease), background 0.2s;
}
.balance-card:active { transform: scale(0.96); }
.balance-label { font-size: 10px; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.balance-value { font-family: 'Outfit', sans-serif; font-size: 18px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance-value small { font-size: 11px; font-weight: 700; -webkit-text-fill-color: var(--text-muted); }

/* ---------- Pastki navigatsiya (shisha panel) ---------- */
.nav-tabs {
    position: fixed; left: 14px; right: 14px; margin: 0 auto; bottom: max(14px, env(safe-area-inset-bottom));
    width: auto; max-width: 452px; z-index: 50;
    display: flex; gap: 4px; padding: 6px;
    background: rgba(12, 12, 16, 0.78); border: 1px solid var(--border-card); border-radius: 24px;
    -webkit-backdrop-filter: blur(28px) saturate(1.4); backdrop-filter: blur(28px) saturate(1.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: fadeUp 0.7s var(--ease) 0.15s both;
}
.nav-tab {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 9px 4px 8px; border-radius: 18px; color: var(--text-muted); font-size: 10.5px; font-weight: 700; text-decoration: none;
    transition: color 0.25s, background 0.25s, transform 0.2s var(--spring); overflow: hidden;
}
.nav-tab i { font-size: 19px; transition: transform 0.3s var(--spring); }
.nav-tab:active { transform: scale(0.92); }
.nav-tab.active { color: #fff; background: linear-gradient(135deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.nav-tab.active i { transform: translateY(-1px) scale(1.12); }
.badge-count {
    position: absolute; top: 4px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

/* ---------- Tablar ---------- */
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.5s var(--ease) both; }
.section-title { margin: 4px 2px 14px; }
.section-title h2 { font-size: 22px; font-weight: 800; }
.section-title p { color: var(--text-muted); font-size: 13px; margin-top: 3px; }

/* ---------- Banner ---------- */
.section-banner {
    position: relative; overflow: hidden; padding: 22px 20px; margin-bottom: 16px; border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2) 60%, rgba(255, 255, 255, 0.22));
    background-size: 160% 160%; animation: gradMove 9s ease infinite, fadeUp 0.6s var(--ease) both;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.section-banner::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; background: rgba(255, 255, 255, 0.1); animation: sheenX 4.5s ease-in-out infinite; }
.banner-badge { display: inline-block; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; }
.section-banner h2 { font-size: 21px; font-weight: 800; margin: 12px 0 6px; line-height: 1.15; }
.section-banner p { font-size: 13px; color: rgba(255, 255, 255, 0.72); line-height: 1.45; }

/* ---------- Kategoriya chiplari va qidiruv ---------- */
.brand-hero { display: flex; justify-content: center; margin: 4px 0 14px; }
.brand-hero img { width: 96px; height: 96px; border-radius: 26px; object-fit: cover; box-shadow: 0 10px 30px rgba(255, 255, 255, 0.35); }
.category-scroll-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.category-scroll-bar::-webkit-scrollbar { display: none; }
.cat-chip {
    flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
    background: var(--bg-card); border: 1px solid var(--border-card); cursor: pointer; white-space: nowrap;
    transition: all 0.25s var(--ease);
}
.cat-chip:active { transform: scale(0.94); }
.cat-chip.active { color: #000000; background: #ffffff; border-color: transparent; box-shadow: 0 8px 22px rgba(255, 255, 255, 0.25); }
.search-box {
    position: relative; margin-bottom: 14px;
}
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; pointer-events: none; }
.search-box input {
    width: 100%; padding: 13px 16px 13px 42px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-card);
    color: var(--text-main); font-size: 14px; outline: none; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.search-box input:focus { border-color: var(--border-glow); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.07); }
.search-box input::placeholder, .modal-body input::placeholder { color: var(--text-dim); }

/* ---------- Bot kartalari ---------- */
.market-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.bot-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
    transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.55s var(--ease) both;
}
.bot-card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 40%, rgba(255, 255, 255, 0.45));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    opacity: 0; transition: opacity 0.35s;
}
.bot-card:hover, .bot-card:active { transform: translateY(-3px); background: var(--bg-card-hover); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 255, 255, 0.12); }
.bot-card:hover::before, .bot-card:active::before { opacity: 1; }
/* Bot "rasmi" — generatsiya qilingan kvadrat rasm (yoki hali yo'q bo'lsa gradient+emoji) */
.bot-card-top { display: flex; align-items: center; gap: 13px; padding: 14px 16px 0; }
.bot-thumb {
    position: relative; width: 72px; height: 72px; flex: 0 0 auto; border-radius: 18px; overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3));
    transition: transform 0.4s var(--spring);
}
.bot-card:hover .bot-thumb { transform: scale(1.06) rotate(-2deg); }
.bot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bot-thumb-emoji {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 32px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
/* Hali rasmi yo'q botlar uchun gradient rang navbat bilan almashadi */
.bot-card:nth-of-type(6n+2) .bot-thumb { background: linear-gradient(135deg, rgba(255, 79, 163, 0.68), rgba(255, 79, 163, 0.28)); }
.bot-card:nth-of-type(6n+3) .bot-thumb { background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)); }
.bot-card:nth-of-type(6n+4) .bot-thumb { background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)); }
.bot-card:nth-of-type(6n+5) .bot-thumb { background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28)); }
.bot-card:nth-of-type(6n+6) .bot-thumb { background: linear-gradient(135deg, rgba(248, 113, 113, 0.66), rgba(248, 113, 113, 0.28)); }
.bot-card-headtext { flex: 1; min-width: 0; }
.bot-card-body { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; flex: 1; }
.bot-title { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.bot-category { font-size: 11.5px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }
.bot-desc { font-size: 13px; line-height: 1.5; color: #b4b9c8; }
.bot-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bot-price { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; }

/* ---------- Tugmalar ---------- */
.btn-buy, .btn-deploy, .btn-pay-now, .btn-copy {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 14px; font-weight: 800; font-size: 13.5px; color: #0a0e16;
    background: #ffffff; background-size: 140% 140%;
    box-shadow: 0 8px 22px rgba(255, 255, 255, 0.12);
    transition: transform 0.2s var(--spring), box-shadow 0.25s, filter 0.25s;
}
.btn-buy:hover, .btn-deploy:hover, .btn-pay-now:hover, .btn-copy:hover { filter: brightness(0.96); box-shadow: 0 12px 30px rgba(255, 255, 255, 0.45); }
.btn-buy:active, .btn-deploy:active, .btn-pay-now:active, .btn-copy:active { transform: scale(0.95); }
.btn-buy:disabled, .btn-deploy:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-soon { background: rgba(255, 255, 255, 0.08); box-shadow: none; color: var(--text-muted); border: 1px solid var(--border-card); }
.btn-deploy, .btn-pay-now { width: 100%; padding: 15px 18px; font-size: 15px; border-radius: 16px; }
.is-loading { pointer-events: none; opacity: 0.75; }
.is-loading::after {
    content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid rgba(10, 14, 22, 0.25); border-top-color: #0a0e16; animation: spin 0.7s linear infinite;
}
.ripple { position: absolute; border-radius: 50%; background: rgba(10, 14, 22, 0.2); transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* ---------- Mening botlarim ---------- */
.mybots-list { display: flex; flex-direction: column; gap: 12px; }
.mybot-item {
    padding: 15px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg);
    animation: fadeUp 0.55s var(--ease) both; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.mybot-item:hover { border-color: rgba(255, 255, 255, 0.4); }
.mybot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.mybot-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mybot-thumb { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; overflow: hidden; background: linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.3)); display: flex; align-items: center; justify-content: center; }
.mybot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mybot-thumb-emoji { font-size: 22px; line-height: 1; }
.mybot-status { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.status-online { color: var(--success); background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.3); animation: pulseDot 2.2s infinite; }
.status-offline { color: var(--danger); background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); }
.mybot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mybot-actions .btn-danger { grid-column: 1 / -1; }
.settings-card { margin-bottom: 12px; padding: 4px 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-card); font-size: 13px; color: var(--text-muted); }
.settings-row:last-child { border-bottom: none; }
.settings-row b { color: var(--text-main); font-weight: 700; text-align: right; }
.settings-toggle { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 13px; color: var(--text-main); font-weight: 600; cursor: pointer; }
.settings-toggle span { white-space: nowrap; }
.splash { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); transition: opacity 0.4s var(--ease); }
.splash.hide { opacity: 0; pointer-events: none; }
.splash img { width: 112px; height: 112px; border-radius: 30px; object-fit: cover; box-shadow: 0 14px 40px rgba(255, 255, 255, 0.4); animation: splashPulse 1.6s ease-in-out infinite; }
.splash-name { font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 900; letter-spacing: 0.6px; color: #ffffff; }
.splash-spinner { width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--primary); animation: splashSpin 0.8s linear infinite; }
@keyframes splashSpin { to { transform: rotate(360deg); } }
@keyframes splashPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.settings-toggle + .settings-toggle { border-top: 1px solid var(--border-card); }
.settings-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.settings-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.settings-actions .btn-danger { grid-column: 1 / -1; }
.btn-action {
    min-width: 0; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 8px; border-radius: 13px; font-size: 12.5px; font-weight: 800;
    background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-card); transition: transform 0.2s var(--spring), background 0.2s;
}
.btn-action:hover { background: rgba(255, 255, 255, 0.12); }
.btn-action:active { transform: scale(0.94); }
.btn-restart { color: var(--secondary); }
.btn-toggle { color: #fff; }
.btn-danger { flex: 0 0 auto; color: var(--danger); background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); }

/* ---------- To'lov ---------- */
.topup-card, .profile-card { padding: 20px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); }
.ref-stats { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12.5px; color: var(--text-muted); }
.ref-stats b { color: var(--text-main); }
.ref-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ref-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); font-size: 13px; }
.ref-row small { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }
.promo-box { margin-top: 14px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); }
.promo-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.promo-box #promo-input { text-transform: uppercase; }
.history-box { margin-top: 18px; }
.history-list { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-card); }
.pay-amount { font-size: 14px; font-weight: 800; color: var(--text-main); }
.pay-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.pay-status { flex: 0 0 auto; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pay-ok { color: var(--success); background: rgba(255, 255, 255, 0.12); }
.pay-wait { color: var(--warning); background: rgba(255, 255, 255, 0.12); }
.pay-bad { color: var(--danger); background: rgba(248, 113, 113, 0.12); }
.brand-row { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border-card); }
.brand-row img { width: 52px; height: 52px; border-radius: 16px; object-fit: cover; box-shadow: 0 8px 22px rgba(255, 255, 255, 0.35); }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 900; letter-spacing: 0.4px; color: #ffffff; }
.brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.topup-balance-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; margin-bottom: 18px; border-radius: 20px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6); }
.topup-balance-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.8px; }
.topup-balance-value { font-family: 'Outfit', sans-serif; font-size: 30px; font-weight: 900; color: #ffffff; }
.topup-balance-value small { font-size: 13px; font-weight: 700; opacity: 0.8; }
.topup-header { text-align: center; margin-bottom: 20px; }
.topup-icon {
    width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff;
    background: #161616; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6); animation: floatY 3.2s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.topup-header h2 { font-size: 20px; font-weight: 800; }
.topup-header p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-top: 6px; }
.preset-title { font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin: 6px 0 10px; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 16px; }
.preset-btn { padding: 13px 8px; border-radius: 14px; font-size: 13.5px; font-weight: 800; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-card); transition: all 0.25s var(--ease); }
.preset-btn:active { transform: scale(0.95); }
.preset-btn.active { background: rgba(255, 255, 255, 0.22); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.custom-amount-group { margin-bottom: 16px; }
.custom-amount-group label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-wrapper input, .modal-body input {
    width: 100%; padding: 14px 16px 14px 42px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-card);
    color: var(--text-main); font-size: 15px; font-weight: 700; outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.modal-body input { padding-left: 16px; font-size: 13px; font-weight: 600; }
.input-wrapper input:focus, .modal-body input:focus { border-color: var(--border-glow); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }
.payment-partners { margin-top: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }
.partner-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 9px; }
.chip { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-card); font-size: 11.5px; font-weight: 700; color: #d5d8e2; }

/* ---------- Profil ---------- */
.profile-header-large { text-align: center; margin-bottom: 18px; }
.profile-header-large img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #000; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 14px 34px rgba(255, 255, 255, 0.4); object-fit: cover; background: #111; }
.profile-header-large h2 { font-size: 21px; font-weight: 800; margin: 12px 0 6px; }
.profile-id-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-card); font-size: 12px; font-weight: 700; color: var(--text-muted); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.stat-box { padding: 14px 8px; text-align: center; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border-card); animation: popIn 0.5s var(--ease) both; }
.stat-box:nth-child(2) { animation-delay: 0.08s; } .stat-box:nth-child(3) { animation-delay: 0.16s; } .stat-box:nth-child(4) { animation-delay: 0.24s; }
.stat-box i { font-size: 20px; }
.stat-num { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 800; margin-top: 6px; word-break: break-word; }
.stat-lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
.text-success { color: var(--success); } .text-primary { color: var(--primary); } .text-warning { color: var(--warning); } .text-accent { color: var(--accent); }
.referral-box { padding: 16px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.3); }
.referral-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.referral-box p { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.ref-link-group { display: flex; gap: 8px; }
.ref-link-group input { flex: 1; min-width: 0; padding: 11px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-card); color: var(--text-main); font-size: 12px; outline: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-box { margin-top: 16px; padding: 16px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); }
.about-row { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.about-row:last-of-type { border-bottom: none; }
.about-row i { font-size: 15px; flex: 0 0 auto; }
.about-ver { text-align: center; margin-top: 10px; font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; }
.btn-copy { padding: 11px 14px; font-size: 12.5px; }

/* ---------- Modal ---------- */
.modal-overlay {
    position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; padding: 14px;
    background: rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn 0.25s ease both;
}
.modal-card {
    position: relative; width: 100%; max-width: 460px; padding: 22px 20px 20px; border-radius: 28px;
    background: linear-gradient(180deg, #14141b, #0b0b10); border: 1px solid var(--border-card); box-shadow: 0 -20px 80px rgba(255, 255, 255, 0.18);
    animation: popIn 0.4s var(--spring) both;
}
/* Bot sahifasi: to'liq ekran (har bot uchun alohida sahifa) */
.modal-overlay.bot-page { background: var(--bg, #000000); -webkit-backdrop-filter: none; backdrop-filter: none; align-items: stretch; padding: 0; overflow-y: auto; }
.modal-overlay.bot-page .modal-card { max-width: none; min-height: 100%; border-radius: 0; border: none; box-shadow: none; padding: 62px 18px 32px; animation: fadeIn 0.25s ease both; }
.modal-overlay.bot-page .modal-icon img { width: 120px; height: 120px; border-radius: 28px; }
.modal-overlay.bot-page .modal-header h3 { font-size: 24px; }
.modal-overlay.bot-page .modal-body { max-width: 520px; margin: 0 auto; }
.bot-card { cursor: pointer; }
.modal-close { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform 0.2s var(--spring); z-index: 2; }
.modal-close:active { transform: scale(0.88) rotate(90deg); }
.modal-header { text-align: center; margin-bottom: 12px; }
.modal-icon { display: inline-flex; align-items: center; justify-content: center; font-size: 42px; animation: floatY 3s ease-in-out infinite; }
.modal-icon img { width: 84px; height: 84px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5); }
.modal-header h3 { font-size: 20px; font-weight: 800; margin-top: 6px; }
.modal-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; text-align: center; }
.modal-features { list-style: none; margin: 14px 0; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 9px; }
.modal-features li { font-size: 12.5px; line-height: 1.4; color: #d5d8e2; display: flex; align-items: flex-start; gap: 8px; }
.bot-stats-mini { display: flex; gap: 14px; font-size: 12px; color: #8a90a2; margin-top: 8px; }
.bot-stats-mini i { margin-right: 4px; }
.modal-stats { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; font-size: 13px; color: #b4b9c8; }
.modal-stat i { margin-right: 4px; }
.btn-like { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-card); background: var(--bg-card); color: #ffffff; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-like.liked { border-color: #ff4d6d; color: #ff4d6d; }
.btn-like.liked i { color: #ff4d6d; }
.modal-features li i { color: var(--success); flex: 0 0 auto; margin-top: 1px; font-size: 13px; }
.modal-features:empty { display: none; }
.modal-price-tag { margin: 14px auto; width: fit-content; padding: 8px 18px; border-radius: 999px; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 800; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); color: var(--success); }
.token-input-group label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.help-text { display: block; margin-top: 8px; font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.modal-footer { margin-top: 16px; }

/* ---------- Bo'sh/xato holatlar, skeleton, toast ---------- */
input, textarea { user-select: text; -webkit-user-select: text; }
.empty-box { text-align: center; padding: 44px 16px; color: var(--text-muted); grid-column: 1 / -1; animation: fadeUp 0.5s var(--ease) both; line-height: 1.5; }
.empty-box i { font-size: 46px; display: block; margin-bottom: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fatal-box { text-align: center; padding: 80px 22px; animation: fadeUp 0.6s var(--ease) both; }
.fatal-box h3 { margin: 14px 0 8px; font-size: 21px; }
.fatal-box p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.skeleton { position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 150px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-card); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.07) 50%, transparent 100%); background-size: 300px 100%; animation: shimmer 1.3s linear infinite; }
.skel-line { height: 14px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); margin: 14px 16px 0; }
.toast-container { position: fixed; left: 0; right: 0; bottom: 96px; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none; }
.toast {
    background: rgba(18, 18, 24, 0.96); color: #fff; border: 1px solid var(--border-card); padding: 12px 18px; border-radius: 16px; font-size: 13px; font-weight: 700; max-width: 440px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: toastIn 0.35s var(--spring); transition: opacity 0.3s, transform 0.3s;
}
.toast-error { border-color: rgba(248, 113, 113, 0.6); }
.toast-success { border-color: rgba(255, 255, 255, 0.6); }
.toast-warning { border-color: rgba(255, 255, 255, 0.6); }
.toast-hide { opacity: 0; transform: translateY(10px); }

/* ---------- Admin panel ---------- */
.adm-wrap { max-width: 720px; margin: 0 auto; padding: 16px 14px 60px; }
.adm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; animation: fadeUp 0.5s var(--ease) both; }
.adm-top h1 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.adm-top h1 i { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adm-back { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border-card); }
.adm-tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; scrollbar-width: none; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tab { flex: 0 0 auto; padding: 10px 15px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-card); color: var(--text-muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: all 0.25s var(--ease); }
.adm-tab:active { transform: scale(0.95); }
.adm-tab.active { background: #ffffff; color: #000000; border-color: transparent; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2); }
.adm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.adm-stat { padding: 15px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-card); animation: popIn 0.5s var(--ease) both; }
.adm-stat:nth-child(2) { animation-delay: .06s; } .adm-stat:nth-child(3) { animation-delay: .12s; } .adm-stat:nth-child(4) { animation-delay: .18s; } .adm-stat:nth-child(5) { animation-delay: .24s; } .adm-stat:nth-child(6) { animation-delay: .3s; }
.adm-stat b { display: block; font-size: 21px; font-family: 'Outfit', sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.adm-stat span { font-size: 12px; color: var(--text-muted); }
.adm-search { display: flex; gap: 8px; margin-bottom: 12px; }
.adm-search input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border-card); background: var(--bg-card); color: var(--text-main); font-size: 14px; outline: none; transition: border-color .25s, box-shadow .25s; }
.adm-search input:focus { border-color: var(--border-glow); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16); }
.adm-btn { padding: 9px 14px; border-radius: 11px; border: 1px solid var(--border-card); background: rgba(255, 255, 255, 0.06); color: var(--text-main); font-weight: 800; font-size: 12px; cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.adm-btn:active { transform: scale(0.93); }
.adm-btn.primary { background: #ffffff; color: #000000; border-color: transparent; }
.adm-btn.ok { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: var(--success); }
.adm-btn.bad { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: var(--danger); }
.adm-btn:disabled { opacity: 0.5; pointer-events: none; }
.adm-card { padding: 14px; margin-bottom: 10px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-card); animation: fadeUp 0.45s var(--ease) both; }
.adm-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.adm-title { font-weight: 800; font-size: 14px; }
.adm-sub { color: var(--text-muted); font-size: 12px; margin-top: 3px; word-break: break-word; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.adm-badge { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); }
.adm-badge.green { color: var(--success); background: rgba(255, 255, 255, 0.15); }
.adm-badge.red { color: var(--danger); background: rgba(248, 113, 113, 0.15); }
.adm-badge.yellow { color: var(--warning); background: rgba(255, 255, 255, 0.15); }
.adm-empty { text-align: center; color: var(--text-muted); padding: 34px 10px; }
.adm-reply { width: 100%; margin-top: 10px; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--border-card); background: rgba(0, 0, 0, 0.4); color: var(--text-main); font-size: 13px; resize: vertical; min-height: 64px; outline: none; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.92em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }

/* ---------- Kengroq ekranlar ---------- */
@media (min-width: 560px) {
    .market-grid { grid-template-columns: 1fr 1fr; }
    .app-container { max-width: 620px; }
    .nav-tabs { max-width: 592px; }
    .modal-overlay:not(.bot-page) { align-items: center; }
}
@media (max-width: 360px) {
    .balance-value { font-size: 16px; } .stat-num { font-size: 15px; } .nav-tab { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- TezCheck to'lov ---------- */
.btn-pay-alt {
    width: 100%; margin-top: 10px; padding: 14px 18px; border-radius: 16px; font-size: 14.5px; font-weight: 800; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s var(--spring), background 0.25s;
}
.btn-pay-alt i { color: var(--warning); }
.btn-pay-alt:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.2); }
.pay-pending {
    margin-top: 12px; padding: 10px 12px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.35); font-size: 12.5px; font-weight: 700;
}
.pay-pending .btn-copy { padding: 8px 12px; font-size: 12px; }

/* ---------- Bot muddatini uzaytirish ---------- */
.mybot-renew { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.btn-renew {
    flex: 1; padding: 11px 14px; border-radius: 14px; font-size: 13px; font-weight: 800; color: #0a0e16;
    background: #ffffff; box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-renew:active { transform: scale(0.97); }
.auto-renew { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.auto-renew input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- Oq-qora yakuniy: rangli yordamchi sinflar neytral ---------- */
.text-success, .text-primary, .text-warning, .text-accent { color: #d4d4d4 !important; }

/* ---------- Yordam, murojaat, yo'riqnoma ---------- */
.support-box { margin-top: 14px; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); }
.support-box h3 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.support-box textarea { width: 100%; padding: 12px 14px; margin-bottom: 10px; border-radius: var(--radius-md); border: 1px solid var(--border-card); background: rgba(255, 255, 255, 0.04); color: var(--text-main); font-size: 13.5px; resize: vertical; outline: none; font-family: inherit; user-select: text; }
.support-box textarea:focus { border-color: var(--border-glow); }
.ticket-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ticket-item { padding: 12px 14px; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-card); }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.ticket-text { font-size: 13px; color: var(--text-main); margin: 8px 0; line-height: 1.45; white-space: pre-wrap; }
.ticket-answer { font-size: 13px; color: #d4d4d4; background: rgba(255, 255, 255, 0.06); border-radius: var(--radius-sm); padding: 9px 11px; margin-bottom: 6px; line-height: 1.45; }
.guide-box { margin-top: 14px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-lg); }
.guide-box summary { cursor: pointer; font-size: 15px; font-weight: 800; list-style: none; }
.guide-box ol { margin: 12px 0 0 18px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Bosh sahifa ---------- */
body.is-home .app-header { display: none; }
.home-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 2px 4px; }
.home-user { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-user img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-card); flex: 0 0 auto; background: #111; }
.home-hello { font-size: 12px; color: var(--text-muted); }
.home-name { font-size: 16px; font-weight: 800; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.home-chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; background: #141414; border: 1px solid var(--border-card); color: #ffffff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.home-balance-block { text-align: center; padding: 26px 8px 18px; }
.home-balance-label { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.home-balance-value { font-family: 'Outfit', sans-serif; font-size: 44px; font-weight: 900; color: #ffffff; margin: 6px 0 4px; letter-spacing: -0.5px; }
.home-balance-value small { font-size: 16px; font-weight: 700; opacity: 0.7; }
.home-bonus { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.home-bonus b { color: #ffffff; }
.home-topup-btn { width: 100%; }
.home-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 22px; }
.home-quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-card); color: #ffffff; font-size: 12px; font-weight: 700; }
.home-quick button i { font-size: 20px; }
.home-section-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 2px 10px; }
.home-section-head h3 { font-size: 16px; font-weight: 800; color: #ffffff; }
.home-section-head button { font-size: 12.5px; font-weight: 700; color: var(--text-muted); background: none; }
.home-bots { display: flex; flex-direction: column; gap: 8px; }
.home-bot { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-card); }
.home-bot-thumb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; background: #161616; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.home-bot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.home-bot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-bot-info b { font-size: 13.5px; color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-bot-info small { font-size: 11.5px; color: var(--text-muted); }
.home-more { font-size: 12px; color: var(--text-muted); text-align: center; padding-top: 4px; }

/* ---------- Do'kon: katta kartalar, bitta ustun ---------- */
.market-grid, .market-grid { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 560px) { .market-grid { grid-template-columns: none; } }
.bot-card { padding: 20px; border-radius: 24px; }
.bot-card-top { display: flex; align-items: center; gap: 16px; }
.bot-thumb { width: 104px; height: 104px; flex: 0 0 auto; border-radius: 26px; }
.bot-title { font-size: 19px; font-weight: 800; }
.bot-category { font-size: 12.5px; margin-top: 4px; }
.bot-card-body { margin-top: 16px; }
.bot-desc { font-size: 14.5px; line-height: 1.55; }
.bot-card-footer { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-card); }
.bot-price { font-size: 17px; }

.guide-item { margin-top: 10px; padding: 12px 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.guide-item summary { cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; color: var(--text-main); }
.guide-item summary i, .guide-box summary i { margin-right: 6px; }
.guide-item ol { margin: 10px 0 0 18px; font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.guide-item b { color: var(--text-main); }

/* ---------- Ochilish: logotip bosh sahifaga o'tadi ---------- */
.splash { transition: opacity 0.5s var(--ease) 0.15s; }
.splash img { transition: transform 0.6s var(--ease), opacity 0.45s ease; }
.splash.hide { opacity: 0; }
.splash.hide img { transform: scale(0.35); opacity: 0; }
#tab-home.tab-pane.active { animation: homeRise 0.7s var(--ease) 0.1s both; }
@keyframes homeRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.home-top, .home-balance-block, .home-quick, .home-how { animation: fadeUp 0.6s var(--ease) both; }
.home-quick { animation-delay: 0.08s; }
.home-how { animation-delay: 0.16s; }

/* ---------- Bosh sahifa: botlar qanday ishlaydi ---------- */
.home-how { margin-top: 22px; }
.how-steps { display: flex; flex-direction: column; gap: 10px; }
.how-step { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 14px 14px 52px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.how-step > i { font-size: 20px; color: var(--text-main); margin-top: 2px; }
.how-step b { display: block; font-size: 14px; color: var(--text-main); }
.how-step small { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.5; }
.how-num { position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ---------- Bo'limga o'tish: katta ikonka aylanadi ---------- */
.tab-fx { position: fixed; inset: 0; z-index: 250; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); pointer-events: none; }
.tab-fx i { font-size: 96px; color: #fff; animation: tabFx 0.46s var(--ease) both; }
@keyframes tabFx {
    0% { transform: scale(0.3) rotate(0deg); opacity: 0; }
    45% { transform: scale(1.25) rotate(200deg); opacity: 1; }
    100% { transform: scale(0.9) rotate(360deg); opacity: 0; }
}

/* ---------- Minimalizm: sekin, yumshoq kirish ---------- */
.splash { transition: opacity 1s ease 0.2s; }
.splash img { box-shadow: none; animation: splashBreathe 2.8s ease-in-out infinite; transition: transform 1.1s ease, opacity 0.9s ease; }
.splash.hide img { transform: scale(0.6); opacity: 0; }
@keyframes splashBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.splash-spinner { animation-duration: 1.4s; opacity: 0.6; }
#tab-home.tab-pane.active { animation: homeRise 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
@keyframes homeRise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.home-top { animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
.home-balance-block { animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both; }
.home-quick { animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.75s both; }
.home-how { animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both; }
.how-step { background: transparent; border-color: rgba(255,255,255,0.08); }
.home-quick button, .btn-pay-now, .home-chip { box-shadow: none; }
.tab-fx { background: rgba(0,0,0,0.7); }
.tab-fx i { animation-duration: 0.9s; }
@keyframes tabFx {
    0% { transform: scale(0.4) rotate(0deg); opacity: 0; }
    50% { transform: scale(1) rotate(180deg); opacity: 0.9; }
    100% { transform: scale(0.8) rotate(360deg); opacity: 0; }
}

/* ---------- Yuklangach logotip ichiga kirib ketadi (yaqinlashish) ---------- */
.splash.hide img { transform: scale(2.4); opacity: 0; transition: transform 1s cubic-bezier(0.55, 0, 0.9, 0.4), opacity 0.7s ease-in 0.3s; }
.splash.hide { transition: opacity 0.8s ease 0.45s; }

/* ---------- Do'kon: ikonka va matnlar kattaroq ---------- */
.cat-chip { font-size: 15px; padding: 10px 16px; }
.cat-chip i { font-size: 18px; }
.bot-category { font-size: 14.5px; }
.bot-category i { font-size: 18px; margin-right: 4px; }
.bot-title { font-size: 20px; }
.bot-desc { font-size: 15.5px; }
.bot-thumb-emoji i { font-size: 36px; color: #fff; }
.bot-stats-mini { font-size: 14px; }
.bot-stats-mini i { font-size: 17px; }
.bot-price { font-size: 19px; }
.btn-buy { font-size: 15px; padding: 13px 22px; }
.bot-card .bot-thumb { width: 112px; height: 112px; }

/* ---------- Home: canvas fon ---------- */
#tab-home { position: relative; }
#home-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.9; }
#tab-home > *:not(#home-fx) { position: relative; z-index: 1; }

/* ---------- Do'kon: o'lchamlar me'yorga qaytarildi (oldingi katta uslub bekor) ---------- */
.cat-chip { font-size: 13px; padding: 8px 14px; }
.cat-chip i { font-size: 15px; }
.bot-category { font-size: 13px; }
.bot-category i { font-size: 15px; margin-right: 3px; }
.bot-title { font-size: 17px; }
.bot-desc { font-size: 14px; }
.bot-thumb-emoji i { font-size: 28px; }
.bot-stats-mini { font-size: 12.5px; }
.bot-stats-mini i { font-size: 14px; }
.bot-price { font-size: 16px; }
.btn-buy { font-size: 13px; padding: 10px 18px; }
.bot-card .bot-thumb { width: 96px; height: 96px; }

/* ---------- Top foydalanuvchilar galereyasi ---------- */
.home-top-users { margin-top: 22px; }
.top-note { font-size: 11.5px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.top-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px 12px; background: var(--bg-card); border: 1px solid var(--border-card); border-radius: var(--radius-md); }
.top-card.is-vip { border-color: rgba(255,255,255,0.35); }
.top-avatar { width: 46px; height: 46px; border-radius: 50%; background: #1c1c1c; border: 1px solid rgba(255,255,255,0.18); color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.top-card.is-vip .top-avatar { background: #fff; color: #000; }
.top-name { font-size: 12.5px; font-weight: 700; color: var(--text-main); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-badges { display: flex; gap: 4px; min-height: 18px; }
.top-badge { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.top-badge.vip { background: #fff; color: #000; }
.top-badge.prem { background: rgba(255,255,255,0.14); color: #fff; }
.top-meta { font-size: 10.5px; color: var(--text-muted); }
