* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
input, textarea { user-select: text; -webkit-user-select: text; }
html { overflow-x: hidden; scroll-behavior: smooth; width: 100%; }
body { overflow-x: hidden; width: 100%; position: relative; }

:root {
    --bg-0: #f5f6fa; --bg-1: #ffffff; --bg-2: #f0f2f5;
    --border: #e4e6eb; --border-2: #dcdfe4; --border-3: #cbd0d8;
    --text: #1a1a1a; --text-dim: #4b4f56; --muted: #8a8d93;
    --accent: #1877f2; --accent-2: #166fe5; --blue: #1877f2;
    --purple: #a855f7; --pink: #ec4899; --danger: #e41e3f;
    --warn: #f7b928; --gold: #f7b928;
    --mine: #1877f2; --theirs: #4b4f56;
    --admin-grad: linear-gradient(145deg, #f7b928, #e0a800);
    --cp-green: #24c78b;
}

html, body { height: 100%; }
body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg-0); color: var(--text);
    min-height: 100dvh; -webkit-font-smoothing: antialiased;
}

.view { display: none; min-height: 100dvh; width: 100%; }
.view.active { display: block; animation: fadeView .3s ease; }
#view-app.active { display: flex; align-items: center; justify-content: center; padding: 25px 16px; }
#view-landing.active { display: block; }
#view-auth.active { display: flex; align-items: center; justify-content: center; padding: 25px 16px; }
#view-admin.active { display: block; }
#view-support.active { display: block; }
#view-ticket-chat.active { display: flex; flex-direction: column; min-height: 100dvh; }
#view-blocked-users.active { display: block; }
@keyframes fadeView { from { opacity: 0; } to { opacity: 1; } }

.topbar {
    position: sticky; top: 0; z-index: 50;
    background: #ffffff; border-bottom: 1px solid var(--border);
    width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.topbar-inner {
    max-width: 1180px; margin: 0 auto; padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.topbar-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); flex-shrink: 0; cursor: pointer; }
.topbar-brand .brand-logo {
    width: 38px; height: 38px; border-radius: 10px;
    background: #1877f2; display: grid; place-items: center;
    box-shadow: 0 4px 10px rgba(24, 119, 242, .25);
}
.topbar-brand .brand-logo svg { width: 22px; height: 22px; }
.topbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.topbar-brand .brand-text b { font-size: 14.5px; font-weight: 800; color: #1a1a1a; }
.topbar-brand .brand-text span { font-size: 10.5px; color: var(--muted); font-weight: 500; }
.topbar-nav { display: flex; align-items: center; gap: 6px; }
.topbar-nav a {
    color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 600;
    padding: 8px 12px; border-radius: 8px; transition: all .2s; cursor: pointer;
}
.topbar-nav a:hover { color: var(--accent); background: #e7f0fe; }
.topbar-cta {
    background: #1877f2; color: #ffffff; border: none; font-family: inherit; font-weight: 700;
    font-size: 13px; padding: 9px 18px; border-radius: 8px; cursor: pointer;
    transition: background .2s; flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
}
.topbar-cta:hover { background: #166fe5; }
.topbar-cta.gold { background: #f7b928; color: #1a1a1a; }
.topbar-cta.gold:hover { background: #e0a800; }
@media (max-width: 640px) {
    .topbar-nav { display: none; }
    .topbar-brand .brand-text span { display: none; }
    .topbar-cta { font-size: 12px; padding: 8px 14px; }
}

.hamburger-btn {
    width: 40px; height: 40px; border-radius: 8px;
    background: #f0f2f5; border: 1px solid var(--border);
    color: var(--text-dim); display: grid; place-items: center;
    cursor: pointer; transition: all .2s; flex-shrink: 0; padding: 0;
}
.hamburger-btn:hover { background: #e4e6eb; color: var(--accent); }

.side-menu {
    position: fixed; top: 0; right: -340px;
    width: 320px; max-width: 88vw; height: 100dvh;
    background: #ffffff; border-left: 1px solid var(--border);
    z-index: 500; transition: right .3s ease;
    display: flex; flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
}
.side-menu.open { right: 0; }
.side-menu-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .4);
    opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 499;
}
.side-menu-backdrop.show { opacity: 1; pointer-events: auto; }
.side-menu-head {
    padding: 20px 18px 16px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px; background: #fafafa;
}
.side-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: #e7f0fe; display: grid; place-items: center; color: #1877f2;
    font-weight: 800; font-size: 18px; flex-shrink: 0;
    border: 1px solid #d0e0fc; overflow: hidden;
}
.side-user { min-width: 0; flex: 1; }
.side-user b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 3px; color: #1a1a1a; }
.side-user span { font-size: 11.5px; color: var(--muted); direction: ltr; display: block; word-break: break-all; }
.side-menu-items { flex: 1; padding: 10px 12px; overflow-y: auto; }

.side-item {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 14px 12px;
    border-radius: 0; border: none; background: transparent; color: #4b4f56;
    font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all .2s; margin-bottom: 0;
    text-align: right; position: relative; border-bottom: 1px solid #f0f2f5;
    text-decoration: none;
}
.side-item:hover { background: #f8f9fa; color: #1877f2; }
.side-item svg { flex-shrink: 0; color: #8a8d93; width: 20px; height: 20px; }
.side-item:hover svg { color: #1877f2; }
.side-item .side-arrow { margin-inline-start: auto; color: #cbd0d8; font-size: 18px; font-weight: 300; line-height: 1; }
.side-item.danger { color: #e41e3f; }
.side-item.danger:hover { background: #fef0f2; }
.side-item.danger svg { color: #e41e3f; }
.side-item.admin-highlight { color: #e0a800; }
.side-item.admin-highlight:hover { background: #fff9e6; }
.side-item.admin-highlight svg { color: #e0a800; }
.side-item.home-highlight { color: #1877f2; }
.side-item.home-highlight svg { color: #1877f2; }
.side-item.green-highlight { color: #24c78b; }
.side-item.green-highlight:hover { background: #e8fff5; }
.side-item.green-highlight svg { color: #24c78b; }
.side-item.purple-highlight { color: #a855f7; }
.side-item.purple-highlight:hover { background: #f5ebff; }
.side-item.purple-highlight svg { color: #a855f7; }
.side-item.dice-highlight { color: #1877f2; }
.side-item.dice-highlight:hover { background: #e7f0fe; }

.side-category-block { border-bottom: 1px solid #f0f2f5; }
.side-category-toggle { border-bottom: none !important; }
.side-category-toggle.open { background: #e7f0fe; color: #1877f2; }
.side-category-toggle.open svg { color: #1877f2; }
.side-chevron { transition: transform .25s ease; display: inline-block; transform: rotate(0deg); }
.side-category-toggle.open .side-chevron { transform: rotate(-90deg); }
.side-category-list {
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
    background: #fafbfc; border-top: 1px solid #f0f2f5;
}
.side-category-list.open { max-height: 500px; }
.side-category-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 11px 20px 11px 32px;
    background: transparent; border: none; color: #4b4f56;
    font-family: inherit; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: right; transition: all .2s;
    border-bottom: 1px solid #f5f6fa;
}
.side-category-item:last-child { border-bottom: none; }
.side-category-item:hover { background: #e7f0fe; color: #1877f2; padding-right: 36px; }
.side-category-item.active {
    background: #e7f0fe; color: #1877f2; font-weight: 800;
    box-shadow: inset -3px 0 0 #1877f2;
}
.cat-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 3px rgba(0,0,0,0.05);
}
.side-divider { height: 1px; background: var(--border); margin: 10px 0; }
.side-badge {
    margin-inline-start: auto; background: #e41e3f; color: #fff;
    font-size: 10.5px; font-weight: 800; padding: 2px 8px;
    border-radius: 999px; min-width: 20px; text-align: center;
}
.side-badge.gold { background: #f7b928; color: #1a1a1a; }
.side-badge.green { background: #24c78b; color: #fff; }
.side-menu-foot { padding: 12px; border-top: 1px solid var(--border); }
.side-enamad-wrap {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 20px 12px; margin: 10px 0; border-radius: 12px;
    background: #fafafa; border: 1px solid var(--border); text-align: center;
}
.side-enamad-wrap a {
    display: inline-block; padding: 8px; background: #fff;
    border-radius: 10px; line-height: 0; border: 1px solid #eee;
}
.side-enamad-wrap img { width: 100px; height: auto; display: block; }
.side-enamad-wrap span { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.side-enamad-wrap.admin-enamad-wrap { display: none; }

.listings-filter-bar {
    background: #ffffff; border: 1px solid var(--border);
    border-radius: 14px; padding: 14px; margin-bottom: 22px;
    display: flex; flex-direction: column; gap: 14px;
}
.sold-filter-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer; user-select: none; padding: 4px 0; width: fit-content;
}
.sold-filter-toggle input { display: none; }
.sold-toggle-track {
    width: 44px; height: 24px; border-radius: 999px;
    background: #cbd0d8; position: relative; transition: background .25s;
    flex-shrink: 0;
}
.sold-toggle-thumb {
    position: absolute; top: 3px; right: 3px;
    width: 18px; height: 18px; border-radius: 50%;
    background: #fff; transition: right .25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.sold-filter-toggle input:checked + .sold-toggle-track { background: #1877f2; }
.sold-filter-toggle input:checked + .sold-toggle-track .sold-toggle-thumb { right: 23px; }
.sold-toggle-label { font-size: 13px; font-weight: 700; color: #4b4f56; }

.listing-cat-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 800;
    background: rgba(255,255,255,0.95); color: #1a1a1a;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.8);
    z-index: 4; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: inline-flex; align-items: center; gap: 5px;
}
.listing-card .listing-cat-badge {
    top: 4px;
    right: 4px;
    font-size: 8.5px;
    padding: 2px 6px;
}
.listing-cat-badge .cat-dot { width: 7px; height: 7px; box-shadow: none; }

.listings-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 20px 120px; }
.listings-head { text-align: center; margin-bottom: 24px; }
.listings-head h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; color: #1a1a1a; }
.listings-head p { color: var(--muted); font-size: 14px; }

.listings-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
}
.listing-card {
    display: flex;
    flex-direction: row-reverse;

    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: background .2s;
    position: relative;
}
.listing-card:hover { background: #f8f9fa; }

.admin-delete-badge {
    position: absolute; top: 8px; left: 8px;
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(228, 30, 63, 0.9); color: #fff; border: none;
    display: grid; place-items: center; cursor: pointer; z-index: 10;
    padding: 0; transition: transform .2s;
}
.admin-delete-badge:hover { transform: scale(1.1); background: #e41e3f; }

.sold-watermark {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; z-index: 5;
    background: rgba(255, 255, 255, 0.1);
}
.sold-watermark img {
    width: 85%; max-width: 260px; height: auto; object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); opacity: 0.95;
}

.listing-thumb-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
}

.listing-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #f0f2f5; display: block; }
.listing-thumb-ph {
    width: 100%; aspect-ratio: 4/3; display: grid; place-items: center;
    background: #f0f2f5; color: #8a8d93;
}
.listing-body {
    flex: 1;
    min-width: 0;
    padding: 0;
    text-align: right;
    position: relative;
    z-index: 7;
}
.listing-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #1a1a1a;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-desc {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.listing-price { font-size: 15px; font-weight: 900; color: #1877f2; }
.listing-time { font-size: 10.5px; color: var(--muted); }
.listings-empty {
    grid-column: 1 / -1; padding: 60px 20px; text-align: center;
    color: var(--muted); font-size: 14px;
    background: #ffffff; border: 1px dashed var(--border-2);
    border-radius: 12px;
}

.form-wrap { max-width: 560px; margin: 0 auto; padding: 30px 20px 80px; }
.form-title { font-size: 24px; font-weight: 900; letter-spacing: -.5px; margin-bottom: 6px; text-align: center; color: #1a1a1a; }
.form-sub { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 28px; }
.field-label { display: block; font-size: 12.5px; font-weight: 700; color: #4b4f56; margin: 18px 0 8px; }
.field-input-rtl {
    width: 100%; padding: 13px 15px;
    background: #ffffff; border: 1.5px solid var(--border);
    border-radius: 10px; color: #1a1a1a; font-family: inherit;
    font-size: 14px; font-weight: 600; outline: none; transition: all .2s;
    direction: rtl; text-align: right;
}
.field-input-rtl:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24, 119, 242, .1); }
textarea.field-input-rtl { resize: vertical; min-height: 100px; line-height: 1.7; }
select.field-input-rtl { cursor: pointer; }

/* ============ AUTH TWO-STEP STYLES ============ */
.auth-two-step { width: 100%; }
.auth-step {
    display: none;
    animation: fadeSlideIn .4s ease;
}
.auth-step.active { display: block; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.auth-input-phone-wrap {
    position: relative;
    margin-bottom: 16px;
}
.auth-input-phone-wrap .phone-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #1877f2;
    pointer-events: none;
    display: grid;
    place-items: center;
}
.auth-phone-input {
    width: 100%;
    padding: 18px 52px 18px 18px;
    background: #ffffff;
    border: 2px solid var(--border);
    border-radius: 14px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    outline: none;
    transition: all .25s;
    direction: ltr;
    text-align: left;
}
.auth-phone-input::placeholder { color: #cbd0d8; font-weight: 600; letter-spacing: 1px; }
.auth-phone-input:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 4px rgba(24,119,242,.12);
    background: #f8faff;
}
.auth-otp-inputs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 20px 0 22px;
    direction: ltr;
}
.auth-otp-cell {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 24px;
    font-weight: 900;
    color: #1877f2;
    transition: all .2s;
    text-align: center;
    padding: 0;
    outline: none;
}
.auth-otp-cell:focus {
    border-color: #1877f2;
    box-shadow: 0 0 0 4px rgba(24,119,242,.12);
    background: #f0f7ff;
}
.auth-otp-cell.filled {
    border-color: #1877f2;
    background: #e7f0fe;
    color: #1a1a1a;
}
@media (max-width: 380px) {
    .auth-otp-cell { font-size: 20px; }
    .auth-otp-inputs { gap: 6px; }
}
.auth-step-title {
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.auth-step-sub {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    line-height: 1.9;
    margin-bottom: 24px;
}
.auth-step-sub b { color: #1877f2; direction: ltr; display: inline-block; }
.auth-back-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #4b4f56;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
}
.auth-back-inline:hover { background: #f0f2f5; color: #1877f2; }
.auth-back-inline svg { width: 14px; height: 14px; }
.auth-step-hint {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.7;
    text-align: center;
    margin-top: 14px;
    padding: 10px 14px;
    background: #f0f7ff;
    border: 1px solid #d0e0fc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-step-hint svg { flex-shrink: 0; color: #1877f2; }

.category-picker {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 8px; margin-top: 4px;
}
@media (max-width: 480px) { .category-picker { grid-template-columns: 1fr; } }
.category-pick-item {
    display: flex; align-items: center; gap: 9px;
    padding: 12px 14px; border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #ffffff; font-family: inherit;
    font-size: 13px; font-weight: 700; color: #4b4f56;
    cursor: pointer; transition: all .2s; text-align: right;
}
.category-pick-item:hover { border-color: #1877f2; color: #1877f2; background: #f8faff; }
.category-pick-item.selected {
    border-color: #1877f2; background: #e7f0fe;
    color: #1877f2; box-shadow: 0 3px 8px rgba(24,119,242,0.15);
}
.category-pick-item .cat-dot { width: 11px; height: 11px; }
.category-pick-item.selected::after {
    content: "✓"; margin-inline-start: auto;
    font-weight: 900; color: #1877f2; font-size: 14px;
}

.btn-hero-primary { background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,0.2); }
.btn-hero-primary:hover { background: #166fe5; }
.btn-hero-ghost { background: #ffffff; border: 1.5px solid var(--border-2); color: #4b4f56; }
.btn-hero-ghost:hover { border-color: #1877f2; color: #1877f2; }

.auth-card { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.auth-title { color: #1a1a1a; }
.auth-sub { color: var(--muted); }
.field-input { background: #ffffff; border: 1.5px solid var(--border); color: #1a1a1a; }
.field-input:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,0.1); }
.auth-action-btn.primary { background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,0.2); }
.auth-action-btn.primary:hover { background: #166fe5; }
.auth-action-btn.ghost { background: #f0f2f5; border: 1.5px solid var(--border); color: #4b4f56; }
.auth-action-btn.ghost:hover { border-color: #1877f2; color: #1877f2; }
.auth-feature svg { color: #1877f2; }

.msg.mine { background: #1877f2; color: #ffffff; }
.msg.theirs { background: #f0f2f5; color: #1a1a1a; border: 1px solid #e4e6eb; }
.msg.admin { background: linear-gradient(145deg, #f7b928, #e0a800); color: #1a1a1a; }
.chat-header { background: #ffffff; border-bottom: 1px solid var(--border); }
.chat-input { background: #ffffff; border-top: 1px solid var(--border); }
.chat-input .input-wrap { background: #f0f2f5; border: 1px solid var(--border); }
.chat-input .input-wrap input { color: #1a1a1a; }
.send-btn { background: #1877f2; }
.room-code-box { background: #ffffff; border: 1.5px dashed #1877f2; }
.room-code { color: #1a1a1a; }
.copy-btn { background: #e7f0fe; border: 1.5px solid #1877f2; color: #1877f2; }
.copy-btn.copied { background: #1877f2; color: #fff; }

.ticket-row { background: #ffffff; border: 1px solid var(--border); }
.ticket-row:hover { border-color: #1877f2; }
.ticket-title { color: #1a1a1a; }
.ticket-status-chip.pending { background: #fff9e6; color: #e0a800; border: 1px solid #f7b928; }
.ticket-status-chip.answered { background: #e7f0fe; color: #1877f2; border: 1px solid #1877f2; }
.ticket-status-chip.closed { background: #f0f2f5; color: #8a8d93; border: 1px solid #cbd0d8; }

.support-filters .filter-chip { background: #ffffff; border: 1.5px solid var(--border); color: #4b4f56; }
.support-filters .filter-chip.active { background: #1877f2; color: #fff; border-color: #1877f2; }
.new-ticket-btn { background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,0.2); }
.new-ticket-btn:hover { background: #166fe5; }

.admin-card { background: #ffffff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.admin-head { border-bottom: 1px solid var(--border); }
.admin-logo { background: #f7b928; color: #1a1a1a; }
.admin-head-info h1 { background: linear-gradient(90deg, #1a1a1a, #1877f2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.admin-head-info p { color: var(--muted); }
.admin-logout { background: #fef0f2; border: 1.5px solid #e41e3f; color: #e41e3f; }
.admin-stat { background: #f8f9fa; border: 1px solid var(--border); }
.admin-stat .n.gold { color: #e0a800; }
.admin-stat .n.green { color: #1877f2; }
.admin-stat .n.muted { color: #8a8d93; }
.admin-section-title { color: #e0a800; }
.admin-req { background: #ffffff; border: 1px solid var(--border); }
.admin-req.pending { border-color: #f7b928; }
.admin-req.accepted { border-color: #1877f2; opacity: 0.8; }
.req-code { color: #e0a800; }
.req-status.pending { background: #fff9e6; color: #e0a800; border: 1px solid #f7b928; }
.req-status.accepted { background: #e7f0fe; color: #1877f2; border: 1px solid #1877f2; }
.req-btn.accept { background: #f7b928; color: #1a1a1a; }
.admin-empty { background: #f8f9fa; border: 1px dashed var(--border-2); }

.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #ffffff; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-around;
    padding: 8px 0 env(safe-area-inset-bottom, 8px) 0;
    z-index: 100; box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: transparent; border: none; color: #8a8d93;
    font-family: inherit; font-size: 10px; font-weight: 600;
    cursor: pointer; padding: 4px 8px; transition: color .2s; min-width: 60px;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item:hover { color: #1877f2; }

.bottom-nav-add {
    width: 48px; height: 48px; border-radius: 50%;
    background: #1877f2; color: #fff;
    display: grid; place-items: center;
    border: none; cursor: pointer;
    box-shadow: 0 4px 12px rgba(24,119,242,0.3);
    margin-top: -20px; transition: transform .2s;
}
.bottom-nav-add:hover { transform: scale(1.05); }
.bottom-nav-add svg { width: 24px; height: 24px; }

.pc-input {
    position: fixed; bottom: 70px !important;
    left: 0; right: 0; max-width: 780px; margin: 0 auto; padding: 12px 16px;
    display: flex; gap: 10px; background: #ffffff;
    border-top: 1px solid var(--border); z-index: 30;
}
.pc-input input {
    flex: 1; padding: 13px 16px; border-radius: 10px;
    background: #f0f2f5; border: 1.5px solid var(--border);
    color: #1a1a1a; font-family: inherit; font-size: 14px; outline: none;
}
.pc-input input:focus { border-color: #1877f2; }
.pc-input button {
    width: 50px; height: 50px; border-radius: 10px; border: none;
    background: #1877f2; display: grid; place-items: center;
    cursor: pointer; flex-shrink: 0;
}
.pc-escrow-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    max-width: 780px; margin: 0 auto; padding: 10px 16px 12px;
    background: #ffffff; border-top: 1px solid var(--border); z-index: 31;
}
.pc-block-btn {
    position: fixed; bottom: 140px !important; left: 20px; z-index: 32;
    background: #fef0f2; border: 1.5px solid #e41e3f; color: #e41e3f;
    width: 46px; height: 46px; border-radius: 50%;
    cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.ticket-chat-input {
    position: fixed; bottom: 70px !important;
    left: 0; right: 0; max-width: 780px; margin: 0 auto; padding: 12px 16px 16px;
    display: flex; gap: 10px; background: #ffffff;
    border-top: 1px solid var(--border); z-index: 30;
}
.ticket-chat-input input {
    flex: 1; padding: 13px 16px; border-radius: 10px;
    background: #f0f2f5; border: 1.5px solid var(--border);
    color: #1a1a1a; font-family: inherit; font-size: 14px; outline: none;
}
.ticket-chat-input input:focus { border-color: #1877f2; }
.ticket-chat-input button {
    width: 50px; height: 50px; border-radius: 10px; border: none;
    background: #1877f2; display: grid; place-items: center;
    cursor: pointer; flex-shrink: 0;
}

.pc-messages {
    max-width: 780px; margin: 0 auto;
    padding: 20px 16px 250px !important;
    display: flex; flex-direction: column; gap: 10px;
    min-height: calc(100dvh - 80px); overflow-y: auto;
}
.pc-messages .msg.mine { 
    align-self: flex-end; background: #1877f2; color: #ffffff;
    border-bottom-left-radius: 4px; 
}
.pc-messages .msg.theirs { 
    align-self: flex-start; background: #4b4f56; color: #ffffff;
    border-bottom-right-radius: 4px; 
}

.upload-zone { margin-top: 4px; }
.upload-inner {
    border: 2px dashed var(--border-2); border-radius: 12px;
    padding: 34px 20px; text-align: center; cursor: pointer;
    transition: all .25s; color: #8a8d93;
    background: #fafafa;
}
.upload-inner:hover { border-color: #1877f2; color: #1877f2; background: #f0f7ff; }
.upload-inner p { font-size: 14px; font-weight: 700; margin: 12px 0 4px; color: #4b4f56; }
.upload-inner span { font-size: 11px; }
.image-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.img-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--border); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .rm {
    position: absolute; top: 5px; left: 5px;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(228, 30, 63, .9); color: #fff;
    border: none; cursor: pointer; font-size: 14px;
    display: grid; place-items: center; font-weight: 900;
    padding: 0;
}

.detail-wrap { max-width: 780px; margin: 0 auto; padding: 30px 20px 80px; }
.detail-gallery { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; position: relative; }
.detail-main-img-wrap { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #f0f2f5; }
.detail-main-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; }
.detail-thumb-wrap { position: relative; width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1.5px solid var(--border); cursor: pointer; }
.detail-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb-wrap.active { border-color: #1877f2; }
.detail-title { font-size: 22px; font-weight: 900; margin-bottom: 12px; line-height: 1.4; color: #1a1a1a; }
.detail-price { font-size: 20px; font-weight: 900; color: #1877f2; margin-bottom: 20px; }
.detail-price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.detail-category-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    background: #e7f0fe; color: #1877f2;
    font-size: 12.5px; font-weight: 800;
    margin-bottom: 12px; border: 1px solid #d0e0fc;
}
.detail-desc {
    font-size: 14px; line-height: 2; color: #4b4f56;
    background: #f8f9fa; padding: 18px;
    border-radius: 12px; border: 1px solid var(--border);
    margin-bottom: 22px; white-space: pre-wrap; word-break: break-word;
}
.detail-seller {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border-radius: 12px;
    background: #f8f9fa; border: 1px solid var(--border);
    margin-bottom: 18px;
}
.detail-seller .av {
    width: 44px; height: 44px; border-radius: 50%;
    background: #e7f0fe; color: #1877f2;
    display: grid; place-items: center; font-weight: 800; font-size: 16px;
    border: 1px solid #d0e0fc;
}
.detail-seller b { font-size: 14px; font-weight: 800; display: block; color: #1a1a1a; }
.detail-seller span { font-size: 11.5px; color: var(--muted); }
.detail-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }

.my-listing-card {
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; transition: all .2s;
    position: relative;
}
.my-listing-badge {
    position: absolute; top: 10px; right: 10px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 10px; font-weight: 800;
    background: #e7f0fe; color: #1877f2;
    z-index: 2; border: 1px solid #1877f2;
}
.my-listing-badge.sold { background: #f0f2f5; color: #8a8d93; border-color: #cbd0d8; }
.my-listing-badge.pending { background: #fff9e6; color: #e0a800; border-color: #f7b928; }
.my-listing-actions {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; padding: 0 14px 14px;
}
.my-action-btn {
    padding: 10px; border-radius: 8px;
    font-family: inherit; font-size: 12px; font-weight: 800;
    cursor: pointer; border: none;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.my-action-btn.edit {
    background: #e7f0fe; color: #1877f2;
    border: 1px solid #1877f2;
}
.my-action-btn.delete {
    background: #fef0f2; color: #e41e3f;
    border: 1px solid #e41e3f;
}

.chats-wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px 60px; }
.chats-list { display: flex; flex-direction: column; gap: 10px; }
.chat-row-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.chat-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s;
    flex: 1; min-width: 0;
}
.chat-row:hover { border-color: #1877f2; }
.chat-av {
    width: 50px; height: 50px; border-radius: 50%;
    background: #e7f0fe; color: #1877f2;
    display: grid; place-items: center;
    font-weight: 900; font-size: 18px; flex-shrink: 0;
    border: 1px solid #d0e0fc;
}
.chat-body { flex: 1; min-width: 0; }
.chat-body b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 3px; color: #1a1a1a; }
.chat-body p { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-meta { text-align: left; flex-shrink: 0; }
.chat-meta .time { font-size: 10.5px; color: var(--muted); }
.chat-del-btn {
    background: #fef0f2;
    border: 1px solid #e41e3f;
    color: #e41e3f;
    width: 40px; height: 40px; border-radius: 10px;
    cursor: pointer; flex-shrink: 0;
    display: grid; place-items: center;
}

.blocked-wrap { max-width: 780px; margin: 0 auto; padding: 24px 16px 60px; }
.blocked-list { display: flex; flex-direction: column; gap: 10px; }
.blocked-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 12px;
}
.blocked-av {
    width: 50px; height: 50px; border-radius: 50%;
    background: #f0f2f5; color: #8a8d93;
    display: grid; place-items: center;
    font-weight: 900; font-size: 18px; flex-shrink: 0;
    border: 1px solid var(--border);
}
.blocked-body { flex: 1; min-width: 0; }
.blocked-body b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 3px; color: #1a1a1a; }
.blocked-body p { font-size: 12.5px; color: var(--muted); }
.unblock-btn {
    padding: 10px 16px; border-radius: 10px;
    background: #e7f0fe; color: #1877f2;
    border: 1.5px solid #1877f2;
    font-family: inherit; font-size: 12.5px; font-weight: 800;
    cursor: pointer; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 6px;
}

.support-header-actions { max-width: 780px; margin: 0 auto; padding: 20px 20px 0; }
.new-ticket-btn {
    width: 100%; padding: 15px;
    border: none; border-radius: 10px;
    background: #1877f2;
    color: #fff; font-family: inherit;
    font-size: 14.5px; font-weight: 800;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    box-shadow: 0 4px 12px rgba(24,119,242,0.2);
    min-height: 52px; margin-bottom: 16px;
}
.support-filters {
    display: flex; gap: 8px; margin-bottom: 18px;
    overflow-x: auto; padding-bottom: 4px;
}
.support-filters::-webkit-scrollbar { height: 3px; }
.support-filters::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.filter-chip {
    padding: 9px 16px; border-radius: 999px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: #4b4f56; font-family: inherit;
    font-size: 12.5px; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: all .2s;
}
.filter-chip.active {
    background: #1877f2;
    color: #fff; border-color: transparent;
}
.filter-chip .count-badge {
    display: inline-block; margin-inline-start: 5px;
    background: rgba(0, 0, 0, .1); padding: 1px 7px;
    border-radius: 999px; font-size: 10.5px; font-weight: 900;
}
.ticket-list {
    max-width: 780px; margin: 0 auto;
    padding: 0 20px 100px;
    display: flex; flex-direction: column; gap: 10px;
}
.ticket-row {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s;
    position: relative; overflow: hidden;
}
.ticket-row:hover { border-color: #1877f2; }
.ticket-row.pending::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #f7b928; }
.ticket-row.answered::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #1877f2; }
.ticket-row.closed::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #8a8d93; }
.ticket-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ticket-title {
    font-size: 14px; font-weight: 800; flex: 1; line-height: 1.5;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    word-break: break-word;
    color: #1a1a1a;
}
.ticket-status-chip { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; flex-shrink: 0; }
.ticket-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--muted); }
.ticket-meta .preview { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta .time { flex-shrink: 0; font-size: 10.5px; }
.ticket-user-info {
    font-size: 11px; color: #e0a800;
    margin-bottom: 6px; font-weight: 700;
    display: flex; align-items: center; gap: 6px;
}
.ticket-user-info svg { flex-shrink: 0; }
.ticket-chat-wrap {
    max-width: 780px; margin: 0 auto;
    width: 100%; flex: 1;
    padding: 20px 16px 240px !important;
    display: flex; flex-direction: column; gap: 10px;
    min-height: calc(100dvh - 80px);
}
.ticket-closed-banner {
    padding: 20px; text-align: center;
    background: #f0f2f5;
    border: 1px solid #cbd0d8;
    border-radius: 12px; color: #8a8d93;
    font-size: 13px; font-weight: 700;
    margin: 0 16px;
}
.ticket-close-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px; border-radius: 10px;
    background: #fef0f2; color: #e41e3f;
    border: 1.5px solid #e41e3f;
    font-family: inherit; font-size: 13px; font-weight: 800;
    cursor: pointer; margin-top: 8px;
}
.admin-close-ticket-btn {
    background: #e41e3f;
    color: #fff; border: none;
    padding: 13px 24px; border-radius: 10px;
    font-family: inherit; font-weight: 800; font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(228,30,63,0.2);
    margin: 10px auto;
    display: block;
}
.new-ticket-form { max-width: 560px; margin: 0 auto; padding: 24px 20px 100px; }

.admin-tickets-wrap { max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.admin-ticket-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-ticket-stat {
    padding: 16px 12px; border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border); text-align: center;
}
.admin-ticket-stat .n { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.admin-ticket-stat .n.warn { color: #e0a800; }
.admin-ticket-stat .n.green { color: #1877f2; }
.admin-ticket-stat .n.gold { color: #e0a800; }
.admin-ticket-stat .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.admin-ticket-row {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: all .2s;
    margin-bottom: 10px;
    position: relative; overflow: hidden;
}
.admin-ticket-row:hover { border-color: #f7b928; }
.admin-ticket-row.pending::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #f7b928; }
.admin-ticket-row.answered::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #1877f2; }
.admin-ticket-row.closed::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #8a8d93; }

.cp-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    cursor: default;
}
.cp-complete-btn,
.cp-wrong-btn {
    flex: 1;
    padding: 11px 8px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: transform .15s, background .2s;
    min-height: 42px;
}
.cp-complete-btn {
    background: #24c78b;
    color: #fff;
    box-shadow: 0 4px 10px rgba(36,199,139,0.25);
}
.cp-complete-btn:hover { background: #1eab77; }
.cp-wrong-btn {
    background: #e41e3f;
    color: #fff;
    box-shadow: 0 4px 10px rgba(228,30,63,0.25);
}
.cp-wrong-btn:hover { background: #c41937; }
.cp-complete-btn:active,
.cp-wrong-btn:active { transform: scale(.97); }

.profile-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 600; padding: 20px;
}
.profile-modal.show { display: flex; }
.profile-modal-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px; padding: 28px 24px;
    max-width: 420px; width: 100%;
    position: relative;
    animation: modalPop .3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
@keyframes modalPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.profile-modal-close {
    position: absolute; top: 16px; left: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    background: #f0f2f5;
    border: 1.5px solid var(--border);
    display: grid; place-items: center;
    color: #4b4f56; cursor: pointer;
    padding: 0;
}
.profile-modal-close:hover { color: #e41e3f; border-color: #e41e3f; }
.profile-modal-icon {
    width: 64px; height: 64px; border-radius: 20px;
    background: #e7f0fe; color: #1877f2;
    display: grid; place-items: center;
    font-weight: 900; font-size: 26px;
    margin: 0 auto 16px;
    border: 1px solid #d0e0fc;
}
.profile-modal h2 { text-align: center; font-size: 20px; font-weight: 900; margin-bottom: 6px; color: #1a1a1a; }
.profile-modal p.sub { text-align: center; font-size: 12.5px; color: var(--muted); margin-bottom: 24px; line-height: 1.7; }
.profile-field { margin-bottom: 14px; }
.profile-field label { display: block; font-size: 12px; font-weight: 700; color: #4b4f56; margin-bottom: 8px; }
.profile-field input {
    width: 100%; padding: 13px 15px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px; color: #1a1a1a;
    font-family: inherit; font-size: 14px; font-weight: 600;
    outline: none; transition: all .2s;
    direction: rtl; text-align: right;
}
.profile-field input:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,0.1); }
.profile-field input:disabled { opacity: .55; cursor: not-allowed; background: #f0f2f5; }
.profile-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 10px;
    background: #1877f2;
    color: #fff; font-family: inherit;
    font-size: 14.5px; font-weight: 800;
    cursor: pointer; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px;
    box-shadow: 0 4px 12px rgba(24,119,242,0.2);
}
.profile-btn:disabled { opacity: .5; cursor: not-allowed; }
.profile-msg {
    min-height: 18px; text-align: center;
    font-size: 12px; margin-top: 12px;
    border-radius: 8px; font-weight: 600;
    word-break: break-word;
}
.profile-msg.error { color: #e41e3f; padding: 8px 10px; background: #fef0f2; border: 1px solid #e41e3f; }
.profile-msg.success { color: #1877f2; padding: 8px 10px; background: #e7f0fe; border: 1px solid #1877f2; }

.settings-modal {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 650; padding: 20px;
}
.settings-modal.show { display: flex; }
.settings-modal-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px; padding: 26px 22px;
    max-width: 460px; width: 100%;
    position: relative;
    animation: modalPop .3s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-height: 90dvh; overflow-y: auto;
}
.settings-title {
    font-size: 19px; font-weight: 900;
    text-align: center; margin-bottom: 6px;
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.settings-sub {
    text-align: center; font-size: 12.5px;
    color: var(--muted); margin-bottom: 22px;
    line-height: 1.7;
}
.settings-section {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}
.settings-section-title {
    font-size: 13.5px; font-weight: 800;
    color: #1a1a1a; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px;
}
.settings-section-title svg { color: #1877f2; flex-shrink: 0; }
.settings-section-desc {
    font-size: 11.5px; color: var(--muted);
    line-height: 1.7; margin-bottom: 14px;
}
.phone-vis-options {
    display: flex; flex-direction: column; gap: 8px;
}
.phone-vis-option {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer; transition: all .2s;
    font-family: inherit;
    text-align: right;
    width: 100%;
}
.phone-vis-option:hover { border-color: #1877f2; }
.phone-vis-option.selected {
    border-color: #1877f2;
    background: #e7f0fe;
    box-shadow: 0 2px 8px rgba(24,119,242,0.12);
}
.phone-vis-radio {
    width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid #cbd0d8;
    flex-shrink: 0;
    display: grid; place-items: center;
    transition: all .2s;
    background: #fff;
}
.phone-vis-option.selected .phone-vis-radio {
    border-color: #1877f2;
    background: #1877f2;
}
.phone-vis-radio::after {
    content: ""; width: 8px; height: 8px;
    border-radius: 50%; background: #fff;
    transform: scale(0); transition: transform .2s;
}
.phone-vis-option.selected .phone-vis-radio::after { transform: scale(1); }
.phone-vis-info { flex: 1; min-width: 0; }
.phone-vis-info b {
    display: block; font-size: 13px;
    font-weight: 800; color: #1a1a1a;
    margin-bottom: 2px;
}
.phone-vis-info span {
    font-size: 11px; color: var(--muted);
    line-height: 1.5;
}

.sms-toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 4px 0;
}
.sms-toggle-label {
    flex: 1; min-width: 0;
}
.sms-toggle-label b {
    display: block; font-size: 13.5px;
    font-weight: 800; color: #1a1a1a;
    margin-bottom: 4px;
}
.sms-toggle-label span {
    font-size: 11.5px; color: var(--muted);
    line-height: 1.6;
}
.sms-switch {
    width: 52px; height: 30px; border-radius: 999px;
    background: #cbd0d8; position: relative;
    cursor: pointer; flex-shrink: 0;
    transition: background .25s;
    border: none; padding: 0;
}
.sms-switch.on { background: #24c78b; }
.sms-switch-thumb {
    position: absolute; top: 3px; right: 3px;
    width: 24px; height: 24px; border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: right .25s;
}
.sms-switch.on .sms-switch-thumb { right: 25px; }

.settings-save-btn {
    width: 100%; padding: 14px;
    border: none; border-radius: 12px;
    background: #1877f2;
    color: #fff; font-family: inherit;
    font-size: 14.5px; font-weight: 800;
    cursor: pointer; margin-top: 6px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(24,119,242,0.2);
}
.settings-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.settings-msg {
    min-height: 18px; text-align: center;
    font-size: 12px; margin-top: 12px;
    border-radius: 8px; font-weight: 600;
    word-break: break-word;
}
.settings-msg.error { color: #e41e3f; padding: 8px 10px; background: #fef0f2; border: 1px solid #e41e3f; }
.settings-msg.success { color: #1877f2; padding: 8px 10px; background: #e7f0fe; border: 1px solid #1877f2; }

.hero {
    position: relative; max-width: 1180px; margin: 0 auto;
    padding: 70px 20px 60px;
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 50px 20px 40px; gap: 40px; text-align: center; } }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: 999px;
    background: #e7f0fe;
    border: 1px solid #1877f2;
    color: #1877f2; font-size: 12px; font-weight: 700; margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #1877f2; }
.hero-title { font-size: clamp(36px, 5.5vw, 62px); line-height: 1.2; font-weight: 900; letter-spacing: -2px; margin-bottom: 20px; color: #1a1a1a; }
.hero-title .grad {
    background: linear-gradient(120deg, #1877f2, #4a9eff, #1877f2);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; display: inline-block;
}
.hero-desc { font-size: 16px; line-height: 2.1; color: #4b4f56; max-width: 520px; margin-bottom: 30px; }
@media (max-width: 900px) { .hero-desc { margin-inline: auto; } }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }
.btn-hero-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 28px; border: none; border-radius: 12px;
    background: #1877f2;
    color: #fff; font-family: inherit; font-size: 15px; font-weight: 800;
    cursor: pointer; min-height: 56px;
    box-shadow: 0 4px 12px rgba(24,119,242,0.2);
}
.btn-hero-primary:active { transform: scale(.97); }
.btn-hero-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 24px; border: 1.5px solid var(--border-2); border-radius: 12px;
    background: #ffffff; color: #4b4f56;
    font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none; min-height: 56px;
}
.btn-hero-ghost:hover { border-color: #1877f2; color: #1877f2; }

.hero-visual { position: relative; }
.mock-card {
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 400px; margin-inline: auto; position: relative;
}
.mock-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; background: #fafafa; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #1877f2; }
.mock-head b { font-size: 13px; font-weight: 800; color: #1a1a1a; }
.mock-head .mock-code {
    margin-inline-start: auto; font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 11px; color: #1877f2; letter-spacing: 2px; direction: ltr;
    background: #e7f0fe; padding: 5px 9px; border-radius: 6px;
    border: 1px solid #1877f2; font-weight: 700;
}
.mock-body { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; min-height: 240px; }
.mock-msg { max-width: 78%; padding: 10px 14px; border-radius: 12px; font-size: 13px; line-height: 1.7; }
.mock-msg.mine { align-self: flex-start; background: #1877f2; color: #fff; border-bottom-right-radius: 4px; }
.mock-msg.theirs { align-self: flex-end; background: #f0f2f5; border: 1px solid #e4e6eb; color: #1a1a1a; border-bottom-left-radius: 4px; }
.mock-msg.mine2 { align-self: flex-start; background: #1877f2; color: #fff; border-bottom-right-radius: 4px; }
.mock-system {
    align-self: center; background: #e7f0fe; color: #1877f2;
    font-size: 11px; border: 1px solid #1877f2;
    border-radius: 999px; padding: 6px 13px; font-weight: 700;
}

.stats { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 22px 16px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 900; color: #1877f2; margin-bottom: 6px; }
.stat .num small { font-size: 14px; font-weight: 700; }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }

.section { max-width: 1180px; margin: 0 auto; padding: 60px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { display: inline-block; font-size: 12px; font-weight: 800; color: #1877f2; letter-spacing: 1.5px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 900; letter-spacing: -1px; line-height: 1.3; margin-bottom: 14px; color: #1a1a1a; }
.section-head p { color: #4b4f56; font-size: 14.5px; line-height: 2; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; }
.feature .f-icon { width: 52px; height: 52px; border-radius: 14px; background: #e7f0fe; border: 1px solid #1877f2; color: #1877f2; display: grid; place-items: center; margin-bottom: 18px; }
.feature h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; color: #1a1a1a; }
.feature p { color: #4b4f56; font-size: 13.5px; line-height: 1.95; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px; text-align: center; }
.step .step-num { width: 42px; height: 42px; border-radius: 12px; background: #1877f2; color: #fff; font-weight: 900; font-size: 18px; display: grid; place-items: center; margin: 0 auto 16px; }
.step h4 { font-size: 14px; font-weight: 800; margin-bottom: 8px; color: #1a1a1a; }
.step p { font-size: 12.5px; color: #4b4f56; line-height: 1.9; }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: #1a1a1a; }
.faq-q .chev { width: 26px; height: 26px; border-radius: 6px; background: #e7f0fe; color: #1877f2; display: grid; place-items: center; flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 20px; color: #4b4f56; font-size: 13.5px; line-height: 2; transition: max-height .35s ease, padding .3s; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 20px; }

.cta-banner { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px; }
.cta-inner {
    background: #f0f7ff;
    border: 1px solid #1877f2; border-radius: 20px; padding: 50px 32px;
    text-align: center;
}
@media (max-width: 640px) { .cta-inner { padding: 38px 22px; } }
.cta-inner h3 { font-size: clamp(22px, 3.5vw, 32px); font-weight: 900; margin-bottom: 12px; color: #1a1a1a; }
.cta-inner p { color: #4b4f56; font-size: 14px; line-height: 2; max-width: 500px; margin: 0 auto 26px; }

.site-footer { border-top: 1px solid var(--border); background: #ffffff; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 50px 20px 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; text-align: center; } }
.footer-col h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 16px; color: #1a1a1a; }
.footer-col p { font-size: 12.5px; color: #4b4f56; line-height: 2.05; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: #4b4f56; text-decoration: none; font-size: 12.5px; cursor: pointer; }
.footer-col ul a:hover { color: #1877f2; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
@media (max-width: 520px) { .footer-brand { justify-content: center; } }
.footer-brand .brand-logo { width: 40px; height: 40px; border-radius: 10px; background: #1877f2; display: grid; place-items: center; flex-shrink: 0; }
.footer-brand .brand-logo svg { width: 22px; height: 22px; }
.footer-brand b { font-size: 15px; font-weight: 800; display: block; color: #1a1a1a; }
.footer-brand span { font-size: 11px; color: var(--muted); }
.trust-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) { .trust-badges { justify-content: center; } }
.trust-badges a { display: inline-block; padding: 10px; background: #fff; border-radius: 10px; line-height: 0; border: 1px solid var(--border); }
.trust-badges img { width: 100px; height: auto; display: block; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 22px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
@media (max-width: 520px) { .footer-bottom { justify-content: center; text-align: center; } }
.footer-bottom .copy { display: flex; align-items: center; gap: 8px; }
.footer-bottom .copy svg { color: #1877f2; }

.auth-shell { width: 100%; max-width: 430px; }
.auth-card {
    background: #ffffff;
    border: 1px solid var(--border); border-radius: 20px;
    padding: 40px 26px 34px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative; overflow: hidden; text-align: center;
}
.auth-back-btn {
    position: absolute; top: 18px; right: 18px;
    width: 36px; height: 36px; border-radius: 10px;
    background: #f0f2f5;
    border: 1.5px solid var(--border);
    display: grid; place-items: center;
    color: #4b4f56; cursor: pointer;
    padding: 0;
}
.auth-back-btn:hover { border-color: #1877f2; color: #1877f2; }
.auth-logo-wrap {
    width: 82px; height: 82px; margin: 6px auto 20px;
    border-radius: 20px;
    background: #1877f2;
    display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(24,119,242,0.3);
}
.auth-logo-wrap svg { width: 42px; height: 42px; }
.auth-title { font-size: 24px; font-weight: 900; margin-bottom: 8px; color: #1a1a1a; }
.auth-sub { color: var(--muted); font-size: 13.5px; line-height: 1.9; margin-bottom: 24px; max-width: 300px; margin-inline: auto; }

.field-group { text-align: right; margin-bottom: 14px; }
.field-label-auth { font-size: 12px; font-weight: 700; color: #4b4f56; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.field-label-auth svg { color: #1877f2; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.6; display: flex; align-items: flex-start; gap: 5px; }
.field-hint svg { flex-shrink: 0; margin-top: 2px; }
.auth-action-btn {
    width: 100%; padding: 15px;
    border: none; border-radius: 10px;
    font-family: inherit; font-size: 14.5px; font-weight: 800;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; margin-top: 6px;
}
.auth-message {
    min-height: 20px; text-align: center;
    font-size: 11.5px; line-height: 1.7;
    margin-top: 14px; border-radius: 8px;
    font-weight: 600; word-break: break-word;
}
.auth-message.error { color: #e41e3f; padding: 10px 12px; background: #fef0f2; border: 1px solid #e41e3f; }
.auth-message.success { color: #1877f2; padding: 10px 12px; background: #e7f0fe; border: 1px solid #1877f2; }
.auth-message.info { color: #1877f2; padding: 10px 12px; background: #e7f0fe; border: 1px solid #1877f2; }
.auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.auth-feature { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--muted); font-weight: 600; }

.admin-shell { width: 100%; max-width: 720px; margin: 20px auto; padding: 0 20px; }
.admin-card { background: #ffffff; border: 1px solid var(--border); border-radius: 20px; padding: 30px 24px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.admin-logo { width: 52px; height: 52px; border-radius: 14px; background: #f7b928; display: grid; place-items: center; color: #1a1a1a; flex-shrink: 0; }
.admin-head-info { flex: 1; min-width: 0; }
.admin-head-info h1 { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.admin-head-info p { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.admin-logout { padding: 9px 14px; border-radius: 8px; background: #fef0f2; border: 1.5px solid #e41e3f; color: #e41e3f; font-family: inherit; font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-stat { padding: 16px 12px; border-radius: 12px; background: #f8f9fa; border: 1px solid var(--border); text-align: center; }
.admin-stat .n { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.admin-stat .l { font-size: 11px; color: var(--muted); font-weight: 600; }
.admin-section-title { font-size: 14px; font-weight: 800; color: #e0a800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.admin-section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #f7b928; }
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-req { padding: 16px; border-radius: 12px; background: #ffffff; border: 1px solid var(--border); position: relative; overflow: hidden; }
.admin-req.pending { border-color: #f7b928; }
.admin-req.pending::before { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: #f7b928; }
.admin-req.accepted { border-color: #1877f2; opacity: 0.8; }
.req-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.req-code { font-family: 'SF Mono', 'Courier New', monospace; font-size: 18px; font-weight: 900; color: #e0a800; letter-spacing: 3px; direction: ltr; }
.req-status { font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.req-info { font-size: 12px; color: #4b4f56; line-height: 1.9; }
.req-info b { color: #1a1a1a; font-weight: 700; }
.req-actions { display: flex; gap: 8px; margin-top: 12px; }
.req-btn { flex: 1; padding: 10px 14px; border-radius: 8px; font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; }
.admin-empty { padding: 40px 20px; text-align: center; color: #8a8d93; font-size: 13px; background: #f8f9fa; border: 1px dashed var(--border-2); border-radius: 12px; }

.floating-back-btn {
    position: fixed; bottom: 90px; right: 22px;
    background: #f7b928; color: #1a1a1a; border: none; border-radius: 12px;
    padding: 14px 20px; font-family: inherit; font-size: 13px; font-weight: 900;
    cursor: pointer; box-shadow: 0 4px 12px rgba(247,185,40,0.3);
    z-index: 100; display: inline-flex; align-items: center; gap: 9px;
    transition: transform .15s;
}
.floating-back-btn:active { transform: scale(.96); }
.floating-back-btn.green { background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,0.3); }

.app-shell { width: 100%; max-width: 460px; position: relative; }
.app { width: 100%; background: #ffffff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.app-header { padding: 22px 22px 18px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--border); background: #fafafa; }
.app-logo { width: 48px; height: 48px; border-radius: 14px; background: #1877f2; display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(24,119,242,0.2); }
.app-header h1 { font-size: 16.5px; font-weight: 800; color: #1a1a1a; line-height: 1.2; }
.app-header p { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 500; }
.enamad-badge-header {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f0f2f5; border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 8px;
    font-size: 9.5px; color: var(--muted); font-weight: 700;
    margin-top: 6px; width: fit-content;
}
.enamad-badge-header svg { color: #1877f2; }

.screen { display: none; padding: 22px 20px 24px; }
.screen.active { display: block; animation: fadeUp .45s ease; }
.screen-body { padding: 22px 20px 24px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.entry-hero { text-align: center; margin-bottom: 18px; padding: 4px 0; }
.entry-hero .icon-wrap { width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 16px; background: #e7f0fe; border: 1px solid #1877f2; display: grid; place-items: center; color: #1877f2; }
.entry-hero h2 { font-size: 22px; font-weight: 900; margin-bottom: 6px; color: #1a1a1a; }
.entry-hero p { font-size: 13px; color: var(--muted); line-height: 1.8; max-width: 300px; margin: 0 auto; }
.entry-badges { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.entry-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 8px; background: #f0f2f5; border: 1px solid var(--border); font-size: 10px; font-weight: 700; color: #4b4f56; }
.entry-badge svg { color: #1877f2; }
.entry-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; padding: 14px 12px; background: #f8f9fa; border: 1px solid var(--border); border-radius: 12px; }
.guide-step { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.guide-step .gs-num { width: 28px; height: 28px; border-radius: 8px; background: #e7f0fe; color: #1877f2; display: grid; place-items: center; font-size: 12px; font-weight: 900; border: 1px solid #1877f2; }
.guide-step .gs-txt { font-size: 9.5px; color: #4b4f56; font-weight: 600; line-height: 1.4; }
.label { font-size: 12.5px; color: #4b4f56; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; font-weight: 700; }
.label .num { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #e7f0fe; color: #1877f2; font-size: 10.5px; font-weight: 800; border: 1px solid #1877f2; flex-shrink: 0; }
.code-inputs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; direction: ltr; margin-bottom: 18px; max-width: 340px; margin-inline: auto; }
.code-cell {
    width: 100%; height: 54px;
    background: #f8f9fa;
    border: 1.5px solid var(--border); border-radius: 10px;
    display: grid; place-items: center;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 22px; font-weight: 800; color: #1877f2;
    transition: all .2s ease; text-align: center; padding: 0; outline: none;
}
.code-cell:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,0.15); }
.code-cell.filled { border-color: #1877f2; color: #1a1a1a; background: #e7f0fe; }
.btn { width: 100%; border: none; border-radius: 10px; padding: 15px; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; outline: none; }
.btn:active:not(:disabled) { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: #1877f2; color: #fff; box-shadow: 0 4px 12px rgba(24,119,242,0.2); }
.btn-ghost { background: #f0f2f5; color: #4b4f56; border: 1.5px solid var(--border); }
.btn-danger { background: #fef0f2; color: #e41e3f; border: 1.5px solid #e41e3f; }
.btn-warn { background: #fff9e6; color: #e0a800; border: 1.5px solid #f7b928; }
.btn-success { background: #1877f2; color: #fff; }
.mt-14 { margin-top: 14px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 4px; color: #8a8d93; font-size: 11.5px; font-weight: 700; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-3), transparent); }
.notice { margin-top: 18px; font-size: 12px; color: #4b4f56; line-height: 1.9; background: #f0f7ff; border: 1px solid #1877f2; border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; }
.notice svg { flex-shrink: 0; margin-top: 3px; color: #1877f2; }
.entry-enamad { margin-top: 22px; padding: 16px; background: #f8f9fa; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.entry-enamad .enamad-title { font-size: 11px; font-weight: 800; color: #4b4f56; display: flex; align-items: center; gap: 6px; }
.entry-enamad .trust-badges a { padding: 8px; }
.entry-enamad .trust-badges img { width: 90px; }
.entry-enamad p { font-size: 9.5px; color: #8a8d93; line-height: 1.6; }

.active-room-banner { margin-top: 14px; padding: 16px; border-radius: 12px; background: #f0f7ff; border: 1.5px solid #1877f2; display: flex; flex-direction: column; gap: 12px; }
.active-room-banner .title { font-size: 13px; font-weight: 900; color: #1877f2; display: flex; align-items: center; gap: 8px; }
.active-room-banner .desc { font-size: 11.5px; color: #4b4f56; line-height: 1.8; }
.active-room-banner .room-code-mini { font-family: 'SF Mono', 'Courier New', monospace; font-size: 15px; font-weight: 900; color: #e0a800; letter-spacing: 4px; direction: ltr; background: #fff9e6; padding: 6px 12px; border-radius: 6px; border: 1px solid #f7b928; display: inline-block; }
.active-room-banner .actions { display: flex; gap: 8px; }
.active-room-banner .actions button { flex: 1; padding: 11px; border-radius: 8px; border: none; font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.intermediary-cta { margin-top: 14px; padding: 16px; border-radius: 12px; background: #fff9e6; border: 1.5px solid #f7b928; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.intermediary-cta .hint { font-size: 11.5px; color: #4b4f56; text-align: center; line-height: 1.8; }
.btn-intermediary { background: #f7b928; color: #1a1a1a; border: none; border-radius: 10px; padding: 13px 22px; font-family: inherit; font-size: 14px; font-weight: 900; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; }
.btn-intermediary:disabled { opacity: .55; cursor: not-allowed; }
.admin-controls { margin-top: 14px; padding: 16px; border-radius: 12px; background: #e7f0fe; border: 1.5px solid #1877f2; display: flex; flex-direction: column; gap: 10px; }
.admin-controls .title { font-size: 13px; font-weight: 900; color: #1877f2; display: flex; align-items: center; gap: 8px; justify-content: center; }
.admin-controls .desc { font-size: 11.5px; color: #4b4f56; text-align: center; line-height: 1.8; }
.intermediary-waiting { margin-top: 14px; padding: 18px 16px; border-radius: 12px; background: #fff9e6; border: 1.5px solid #f7b928; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.intermediary-waiting .spin-ring { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #f7b928; border-top-color: transparent; animation: spin 1s linear infinite; }
.intermediary-waiting .txt { font-size: 13px; font-weight: 800; color: #e0a800; }
.intermediary-waiting .sub { font-size: 11px; color: #4b4f56; line-height: 1.7; }
.deal-completed { margin-top: 14px; padding: 20px 16px; border-radius: 12px; background: #f0f7ff; border: 2px solid #1877f2; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.deal-completed .icon { width: 56px; height: 56px; border-radius: 50%; background: #1877f2; display: grid; place-items: center; color: #fff; }
.deal-completed .txt { font-size: 16px; font-weight: 900; color: #1877f2; }
.deal-completed .sub { font-size: 12px; color: #4b4f56; line-height: 1.8; }
.exit-bar { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--border); background: #fafafa; }
.exit-bar .btn { min-height: 42px; font-size: 12.5px; padding: 10px 14px; }
.room-code-box { background: #ffffff; border: 1.5px dashed #1877f2; border-radius: 16px; padding: 24px 18px 20px; text-align: center; }
.room-code-box .tiny { font-size: 10.5px; color: #8a8d93; margin-bottom: 12px; font-weight: 700; letter-spacing: 2px; }
.room-code { font-size: 34px; font-weight: 900; letter-spacing: 11px; color: #1a1a1a; font-family: 'SF Mono', 'Courier New', monospace; direction: ltr; padding-right: 11px; }
.copy-btn { margin-top: 14px; background: #e7f0fe; border: 1.5px solid #1877f2; color: #1877f2; border-radius: 10px; padding: 10px 18px; font-family: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.copy-btn.copied { background: #1877f2; color: #fff; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; padding: 13px; background: #f8f9fa; border: 1px solid var(--border); border-radius: 10px; color: #8a8d93; font-size: 12.5px; font-weight: 600; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: #1877f2; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.forward-panel { margin-top: 18px; padding: 16px; border-radius: 12px; background: #f0f7ff; border: 1.5px solid #1877f2; }
.forward-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; color: #1877f2; margin-bottom: 8px; }
.forward-sub { font-size: 11.5px; color: #4b4f56; line-height: 1.7; margin-bottom: 12px; }
.forward-chats-list { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; }
.forward-chat-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; background: #ffffff; border: 1px solid var(--border); }
.forward-chat-item .fc-av { width: 38px; height: 38px; border-radius: 50%; background: #e7f0fe; color: #1877f2; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; border: 1px solid #d0e0fc; }
.forward-chat-item .fc-info { flex: 1; min-width: 0; }
.forward-chat-item .fc-info b { font-size: 13px; font-weight: 800; display: block; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #1a1a1a; }
.forward-chat-item .fc-info span { font-size: 10.5px; color: #8a8d93; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forward-chat-item .fc-send { padding: 8px 13px; border-radius: 8px; background: #1877f2; color: #fff; font-size: 11px; font-weight: 800; border: none; cursor: pointer; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; font-family: inherit; }
.forward-chat-item.sent { border-color: #1877f2; background: #e7f0fe; }

.chat-header { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fafafa; }
.chat-header .info { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #f7b928; box-shadow: 0 0 0 4px rgba(247,185,40,0.15); flex-shrink: 0; }
.status-dot.online { background: #1877f2; box-shadow: 0 0 0 4px rgba(24,119,242,0.18); }
.chat-header .title { font-size: 13.5px; font-weight: 800; color: #1a1a1a; }
.chat-header .sub { font-size: 11px; color: #8a8d93; margin-top: 2px; font-weight: 500; }
.chat-code { font-family: 'SF Mono', 'Courier New', monospace; font-size: 12px; color: #1877f2; letter-spacing: 2px; direction: ltr; background: #e7f0fe; padding: 7px 12px; border-radius: 8px; border: 1px solid #1877f2; font-weight: 800; flex-shrink: 0; }
.messages {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px 16px 200px; overflow-y: auto;
    background: #ffffff; height: 420px;
}
.msg { max-width: 80%; padding: 11px 15px; border-radius: 14px; font-size: 14px; line-height: 1.7; word-break: break-word; font-weight: 500; position: relative; }
.msg.mine { align-self: flex-start; background: #1877f2; border-bottom-right-radius: 4px; color: #fff; }
.msg.theirs { align-self: flex-end; background: #f0f2f5; border: 1px solid #e4e6eb; border-bottom-left-radius: 4px; color: #1a1a1a; }
.msg.admin { align-self: center; background: #f7b928; color: #1a1a1a; font-weight: 700; max-width: 88%; border-radius: 14px; }
.msg.admin::before { content: "واسطه امن"; display: block; font-size: 10px; font-weight: 900; color: #5a3a00; margin-bottom: 5px; }
.msg .meta { font-size: 10px; opacity: .7; margin-top: 5px; display: flex; align-items: center; gap: 8px; font-weight: 600; direction: ltr; }
.msg.mine .meta { justify-content: flex-end; direction: rtl; }
.msg.system { align-self: center; background: #e7f0fe; color: #1877f2; font-size: 11.5px; border: 1px solid #1877f2; border-radius: 999px; padding: 7px 15px; max-width: 90%; text-align: center; font-weight: 700; }
.msg.system.gold { background: #fff9e6; color: #e0a800; border-color: #f7b928; }
.msg.deleted { opacity: .5; font-style: italic; }

.msg-copy-btn {
    background: transparent;
    border: none;
    color: inherit;
    opacity: .75;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 6px;
    border-radius: 5px;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.msg-copy-btn:hover {
    opacity: 1;
    background: rgba(255,255,255,0.18);
}
.msg.theirs .msg-copy-btn:hover {
    background: rgba(0,0,0,0.08);
}

.msg-delete-btn { background: transparent; border: none; color: rgba(255,255,255,.5); font-size: 11px; cursor: pointer; margin-inline-start: 8px; padding: 0; font-family: inherit; }
.chat-input { display: flex; gap: 10px; padding: 14px 14px 16px; border-top: 1px solid var(--border); background: #fafafa; }
.chat-input .input-wrap { flex: 1; display: flex; align-items: center; background: #ffffff; border: 1.5px solid var(--border); border-radius: 10px; padding: 0 14px; }
.chat-input .input-wrap:focus-within { border-color: #1877f2; }
.chat-input .input-wrap input { flex: 1; background: transparent; border: none; outline: none; color: #1a1a1a; font-family: inherit; font-size: 15px; padding: 15px 0; font-weight: 500; min-width: 0; }
.send-btn { width: 54px; height: 54px; border-radius: 10px; border: none; background: #1877f2; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send-btn:disabled { opacity: .4; cursor: not-allowed; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(120px); background: #ffffff; border: 1px solid var(--border); color: #1a1a1a; padding: 13px 20px; border-radius: 10px; font-size: 13px; font-weight: 700; opacity: 0; transition: all .35s ease; pointer-events: none; z-index: 300; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 40px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .toast-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast.success .toast-icon { background: #e7f0fe; color: #1877f2; }
.toast.error .toast-icon { background: #fef0f2; color: #e41e3f; }
.toast.info .toast-icon { background: #e7f0fe; color: #1877f2; }
.toast.gold .toast-icon { background: #fff9e6; color: #e0a800; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-backdrop.show { display: flex; }
.modal { background: #ffffff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; max-width: 350px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: #1a1a1a; }
.modal p { font-size: 13px; color: #4b4f56; line-height: 1.85; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { min-height: 48px; padding: 12px; font-size: 14px; }

.cp-product-card {
    background: #ffffff; border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; transition: all .25s;
    cursor: pointer; display: flex; flex-direction: column;
}
.cp-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--cp-green);
    box-shadow: 0 10px 24px rgba(36,199,139,0.15);
}
.cp-product-image {
    width: 100%; aspect-ratio: 1/1; overflow: hidden;
    background: #f0f2f5; display: block;
}
.cp-product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-product-body {
    padding: 14px 14px 16px;
    display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.cp-product-name { font-size: 16px; font-weight: 900; color: #1a1a1a; text-align: center; }
.cp-product-price { font-size: 15px; font-weight: 900; color: var(--cp-green); text-align: center; }
.cp-add-btn {
    width: 100%; border: none; border-radius: 10px;
    padding: 12px; background: var(--cp-green); color: #fff;
    font-family: inherit; font-size: 13px; font-weight: 800;
    cursor: pointer; transition: all .2s; margin-top: auto;
}
.cp-add-btn:hover { background: #1eab77; }
.cp-add-btn:active { transform: scale(.97); }

#cpCartDrawer { right: -400px; width: 380px; max-width: 92vw; }
#cpCartDrawer.open { right: 0; }
#cpCartDrawer .side-menu-head { background: #f0fdf8; border-bottom: 1px solid #d1fae5; }

.cp-cart-item {
    display: flex; gap: 10px; padding: 11px;
    background: #f8f9fa; border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 10px; align-items: center;
}
.cp-cart-item img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cp-cart-item-info { flex: 1; min-width: 0; }
.cp-cart-item-info b { font-size: 13px; font-weight: 800; display: block; margin-bottom: 4px; color: #1a1a1a; }
.cp-cart-item-info .price { color: var(--cp-green); font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.cp-qty-row { display: flex; align-items: center; gap: 6px; }
.cp-qty-btn {
    width: 28px; height: 28px; border-radius: 8px;
    background: #ffffff; border: 1px solid var(--border);
    color: #1a1a1a; font-size: 15px; font-weight: 800;
    cursor: pointer; display: grid; place-items: center; padding: 0;
}
.cp-qty-btn:hover { border-color: var(--cp-green); color: var(--cp-green); }
.cp-qty-val { min-width: 24px; text-align: center; font-size: 13px; font-weight: 800; }
.cp-remove-btn {
    background: transparent; border: none;
    color: #e41e3f; font-size: 11px; font-weight: 700;
    cursor: pointer; margin-inline-start: auto;
    font-family: inherit; padding: 0;
}
.cp-cart-footer { padding: 16px; border-top: 1px solid var(--border); background: #fafafa; }
.cp-cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cp-cart-total span { font-size: 13px; color: #4b4f56; font-weight: 700; }
.cp-cart-total b { font-size: 18px; font-weight: 900; color: var(--cp-green); }
.cp-checkout-btn {
    width: 100%; border: none; border-radius: 12px;
    padding: 14px; background: var(--cp-green); color: #fff;
    font-family: inherit; font-size: 14.5px; font-weight: 900;
    cursor: pointer; min-height: 50px;
    box-shadow: 0 4px 12px rgba(36,199,139,0.25);
}
.cp-checkout-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

.wallet-wrap { max-width: 620px; margin: 0 auto; padding: 24px 16px 100px; }
.wallet-card {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    border-radius: 20px; padding: 26px 22px; color: #fff;
    box-shadow: 0 10px 30px rgba(124, 58, 237, .3);
    position: relative; overflow: hidden; margin-bottom: 20px;
}
.wallet-card::before {
    content: ""; position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
    pointer-events: none;
}
.wallet-card .wc-lbl { font-size: 12.5px; opacity: .9; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; position: relative; }
.wallet-card .wc-amt { font-size: 36px; font-weight: 900; direction: ltr; text-align: right; line-height: 1.1; position: relative; }
.wallet-card .wc-amt small { font-size: 16px; opacity: .9; font-weight: 700; margin-right: 8px; }
.wallet-card .wc-btn {
    margin-top: 18px; padding: 12px 20px; border-radius: 12px;
    background: rgba(255,255,255,.22); border: 1.5px solid rgba(255,255,255,.4);
    color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 800;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    backdrop-filter: blur(6px); transition: all .2s; position: relative; z-index: 2;
    width: 100%; justify-content: center;
}
.wallet-card .wc-btn:hover { background: rgba(255,255,255,.32); }
.wallet-card .wc-btn:active { transform: scale(.98); }

.wallet-section-title {
    font-size: 14px; font-weight: 800; color: #1a1a1a;
    margin: 22px 0 12px; display: flex; align-items: center; gap: 8px;
}
.wallet-section-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: #7c3aed; }

.tx-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 8px; transition: all .2s;
}
.tx-row:hover { border-color: #cbd0d8; }
.tx-icon {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; flex-shrink: 0;
}
.tx-icon.deposit { background: #f5ebff; color: #7c3aed; }
.tx-icon.dice_bet { background: #fef0f2; color: #e41e3f; }
.tx-icon.dice_win { background: #fff9e6; color: #e0a800; }
.tx-icon.refund { background: #e7f0fe; color: #1877f2; }
.tx-icon.withdraw { background: #f5f3ff; color: #8b5cf6; }
.tx-body { flex: 1; min-width: 0; }
.tx-body b { display: block; font-size: 13px; font-weight: 800; margin-bottom: 3px; color: #1a1a1a; }
.tx-body span { font-size: 11px; color: var(--muted); }
.tx-amount {
    font-size: 14px; font-weight: 900; direction: ltr;
    text-align: right; flex-shrink: 0; white-space: nowrap;
}
.tx-amount.plus { color: #24c78b; }
.tx-amount.minus { color: #e41e3f; }
.tx-status {
    display: inline-block; padding: 3px 9px; border-radius: 999px;
    font-size: 9.5px; font-weight: 800; margin-top: 4px;
}
.tx-status.pending { background: #fff9e6; color: #e0a800; border: 1px solid #f7b928; }
.tx-status.approved, .tx-status.completed { background: #e8fff5; color: #24c78b; border: 1px solid #24c78b; }
.tx-status.rejected { background: #fef0f2; color: #e41e3f; border: 1px solid #e41e3f; }

.wallet-form {
    background: #f8f9fa; border: 1px solid var(--border);
    border-radius: 16px; padding: 18px; margin-bottom: 14px;
}
.wallet-form-title {
    font-size: 14px; font-weight: 800; margin-bottom: 4px;
    display: flex; align-items: center; gap: 8px; color: #1a1a1a;
}
.wallet-form-title svg { color: #7c3aed; }
.wallet-form-desc { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.card-number-box {
    background: #fff; border: 1.5px dashed #7c3aed;
    border-radius: 12px; padding: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px; flex-wrap: wrap;
}
.card-number-box .cn-lbl { font-size: 10.5px; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.card-number-box .cn-val {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 16px; font-weight: 900; color: #1a1a1a;
    direction: ltr; letter-spacing: 1px;
}
.card-copy-btn {
    padding: 9px 14px; border-radius: 8px;
    background: #7c3aed; color: #fff; border: none;
    font-family: inherit; font-size: 11.5px; font-weight: 800;
    cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
    transition: all .2s;
}
.card-copy-btn:hover { background: #6d28d9; }
.card-copy-btn.copied { background: #24c78b; }

.dice-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 100px; }
.dice-balance-card {
    background: linear-gradient(135deg, #1877f2, #4a9eff);
    border-radius: 18px; padding: 22px 20px; color: #fff;
    margin-bottom: 20px; box-shadow: 0 8px 24px rgba(24,119,242,.25);
    position: relative; overflow: hidden;
}
.dice-balance-card::before {
    content: ""; position: absolute; top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,.15), transparent 60%);
    pointer-events: none;
}
.dice-balance-card .lbl { font-size: 12px; opacity: .9; font-weight: 600; margin-bottom: 6px; position: relative; }
.dice-balance-card .amt { font-size: 28px; font-weight: 900; direction: ltr; text-align: right; position: relative; }
.dice-balance-card .amt small { font-size: 14px; opacity: .85; font-weight: 700; margin-right: 6px; }

.dice-menu { display: flex; flex-direction: column; gap: 12px; }
.dice-menu-btn {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; border-radius: 14px;
    background: #fff; border: 1.5px solid var(--border);
    font-family: inherit; font-size: 15px; font-weight: 800;
    color: #1a1a1a; cursor: pointer; transition: all .2s; text-align: right;
}
.dice-menu-btn:hover { border-color: #1877f2; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(24,119,242,.12); }
.dice-menu-btn .dm-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: grid; place-items: center; flex-shrink: 0;
    background: #e7f0fe; color: #1877f2;
}
.dice-menu-btn.green .dm-icon { background: #e8fff5; color: #24c78b; }
.dice-menu-btn.gold .dm-icon { background: #fff9e6; color: #e0a800; }
.dice-menu-btn .dm-text { flex: 1; min-width: 0; }
.dice-menu-btn .dm-text b { display: block; font-size: 15px; margin-bottom: 3px; }
.dice-menu-btn .dm-text span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.dice-menu-btn .dm-arrow { color: #cbd0d8; font-size: 22px; font-weight: 300; }

.dice-board {
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 18px; padding: 24px 20px; text-align: center;
    margin-bottom: 16px;
}
.dice-board-label { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.dice-room-code {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 26px; font-weight: 900; letter-spacing: 8px;
    color: #1877f2; direction: ltr; margin: 8px 0 6px;
    background: #e7f0fe; padding: 10px 14px; border-radius: 12px;
    border: 1.5px dashed #1877f2; display: inline-block; padding-right: 22px;
}
.dice-vs {
    display: grid; grid-template-columns: 1fr auto 1fr;
    gap: 12px; align-items: center; margin: 22px 0;
}
.dice-player {
    padding: 16px 12px; border-radius: 14px;
    background: #f8f9fa; border: 1.5px solid var(--border);
    transition: all .3s;
}
.dice-player.winner {
    background: linear-gradient(145deg, #fff9e6, #fef3c7);
    border-color: #f7b928;
    box-shadow: 0 4px 16px rgba(247,185,40,.3);
    transform: scale(1.03);
}
.dice-player.loser { opacity: .55; }
.dice-player .dp-av {
    width: 48px; height: 48px; border-radius: 50%;
    background: #e7f0fe; color: #1877f2;
    display: grid; place-items: center; margin: 0 auto 8px;
    font-weight: 900; font-size: 18px; border: 2px solid #d0e0fc;
}
.dice-player.winner .dp-av { background: #f7b928; color: #fff; border-color: #e0a800; }
.dice-player .dp-name { font-size: 13px; font-weight: 800; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dice-player .dp-role { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.dice-player .dp-roll {
    font-size: 32px; font-weight: 900; color: #1877f2;
    margin-top: 8px; min-height: 42px; line-height: 1;
    font-family: 'SF Mono', 'Courier New', monospace;
}
.dice-player.winner .dp-roll { color: #e0a800; }
.dice-vs-mid {
    font-size: 20px; font-weight: 900; color: #cbd0d8;
    font-style: italic; letter-spacing: 2px;
}

.dice-cube-wrap {
    width: 140px; height: 140px; margin: 24px auto;
    display: grid; place-items: center; perspective: 1000px;
}
.dice-cube {
    width: 100px; height: 100px;
    background: #fff; border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15), inset 0 -8px 0 rgba(0,0,0,.06);
    display: grid; place-items: center;
    font-size: 56px; font-weight: 900;
    color: #1877f2; transition: all .3s;
    border: 3px solid #e7f0fe;
    position: relative;
}
.dice-cube.rolling {
    animation: diceRoll .6s cubic-bezier(.4,.0,.2,1) infinite;
}
.dice-cube.result { animation: dicePop .6s cubic-bezier(.34,1.56,.64,1) forwards; }
.dice-cube.result-win { color: #e0a800; border-color: #f7b928; }
.dice-cube.result-lose { color: #e41e3f; border-color: #e41e3f; }
@keyframes diceRoll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.08); }
    50% { transform: rotate(180deg) scale(.95); }
    75% { transform: rotate(270deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1); }
}
@keyframes dicePop {
    0% { transform: scale(.6); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.dice-roll-btn {
    display: block; width: 100%; max-width: 280px;
    margin: 20px auto 0; padding: 20px;
    border: none; border-radius: 16px;
    background: linear-gradient(145deg, #f7b928, #e0a800);
    color: #fff; font-family: inherit;
    font-size: 17px; font-weight: 900;
    cursor: pointer; min-height: 64px;
    box-shadow: 0 6px 20px rgba(247,185,40,.4);
    transition: all .2s;
}
.dice-roll-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,185,40,.5); }
.dice-roll-btn:active:not(:disabled) { transform: scale(.97); }
.dice-roll-btn:disabled { opacity: .5; cursor: not-allowed; }
.dice-roll-btn.done {
    background: linear-gradient(145deg, #24c78b, #1eab77);
    box-shadow: 0 6px 20px rgba(36,199,139,.4);
}

.dice-result-banner {
    padding: 22px 18px; border-radius: 16px;
    text-align: center; margin-top: 18px;
    font-weight: 900;
    animation: dicePop .5s cubic-bezier(.34,1.56,.64,1);
}
.dice-result-banner.win {
    background: linear-gradient(145deg, #fff9e6, #fef3c7);
    border: 2px solid #f7b928;
    color: #e0a800;
}
.dice-result-banner.lose {
    background: linear-gradient(145deg, #fef0f2, #ffe0e5);
    border: 2px solid #e41e3f;
    color: #e41e3f;
}
.dice-result-banner.tie {
    background: linear-gradient(145deg, #f0f2f5, #e4e6eb);
    border: 2px solid #8a8d93;
    color: #4b4f56;
}
.dice-result-banner .dr-title { font-size: 22px; margin-bottom: 6px; }
.dice-result-banner .dr-sub { font-size: 13.5px; opacity: .9; font-weight: 700; line-height: 1.8; }

.dice-form-input {
    width: 100%; padding: 16px 18px;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 12px; color: #1a1a1a;
    font-family: inherit; font-size: 16px; font-weight: 700;
    outline: none; transition: all .2s;
    text-align: center; direction: rtl;
}
.dice-form-input:focus { border-color: #1877f2; box-shadow: 0 0 0 3px rgba(24,119,242,0.15); }

.dice-join-info {
    background: #f0f7ff; border: 1.5px solid #1877f2;
    border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.dice-join-info .dj-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; border-bottom: 1px solid #d0e0fc;
    font-size: 13px;
}
.dice-join-info .dj-row:last-child { border-bottom: none; }
.dice-join-info .dj-row span { color: #4b4f56; font-weight: 600; }
.dice-join-info .dj-row b { color: #1a1a1a; font-weight: 800; }
.dice-join-info .dj-row b.gold { color: #e0a800; font-size: 15px; }

.dice-waiting-room {
    background: #fff9e6; border: 1.5px solid #f7b928;
    border-radius: 14px; padding: 24px 18px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.dice-waiting-room .spin-ring {
    width: 48px; height: 48px; border-radius: 50%;
    border: 3px solid #f7b928; border-top-color: transparent;
    animation: spin 1s linear infinite;
}
.dice-waiting-room .txt { font-size: 14px; font-weight: 900; color: #e0a800; }
.dice-waiting-room .sub { font-size: 12px; color: #4b4f56; line-height: 1.7; }

.admin-wallet-tx {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 16px; margin-bottom: 12px;
    position: relative; overflow: hidden;
}
.admin-wallet-tx.pending { border-color: #7c3aed; }
.admin-wallet-tx.pending::before {
    content: ""; position: absolute; top: 0; right: 0;
    width: 4px; height: 100%; background: #7c3aed;
}
.admin-wallet-tx .awt-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.admin-wallet-tx .awt-user {
    font-size: 12px; color: #4b4f56; line-height: 1.9;
}
.admin-wallet-tx .awt-user b { color: #1a1a1a; }
.admin-wallet-tx .awt-amt {
    font-size: 16px; font-weight: 900; color: #24c78b;
    direction: ltr; white-space: nowrap;
}
.admin-wallet-tx .awt-receipt {
    display: block; width: 100%; max-width: 220px;
    border-radius: 10px; margin: 10px 0;
    border: 1px solid var(--border); cursor: pointer;
}
.admin-wallet-tx .awt-actions {
    display: flex; gap: 8px; margin-top: 10px;
}
.admin-wallet-tx .awt-actions button {
    flex: 1; padding: 11px 8px; border-radius: 10px;
    border: none; font-family: inherit;
    font-size: 12px; font-weight: 800;
    cursor: pointer; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.awt-approve {
    background: #24c78b; color: #fff;
    box-shadow: 0 4px 10px rgba(36,199,139,0.25);
}
.awt-reject {
    background: #e41e3f; color: #fff;
    box-shadow: 0 4px 10px rgba(228,30,63,0.25);
}

/* ==================== WITHDRAW ADMIN STYLES ==================== */
.admin-withdraw-tx {
    background: #fff;
    border: 1.5px solid #e41e3f;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.admin-withdraw-tx::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 4px; height: 100%;
    background: #e41e3f;
}
.admin-withdraw-tx .awt-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px; margin-bottom: 10px;
}
.admin-withdraw-tx .awt-user {
    font-size: 12px; color: #4b4f56; line-height: 1.9;
}
.admin-withdraw-tx .awt-user b { color: #1a1a1a; }
.admin-withdraw-tx .awt-amt {
    font-size: 16px; font-weight: 900; color: #e41e3f;
    direction: ltr; white-space: nowrap;
}
.admin-withdraw-tx .awt-card-box {
    background: #fef0f2;
    border: 1.5px dashed #e41e3f;
    border-radius: 12px;
    padding: 14px;
    margin: 10px 0;
}
.admin-withdraw-tx .awt-card-lbl {
    font-size: 10.5px; color: #8a8d93;
    margin-bottom: 6px; font-weight: 700;
}
.admin-withdraw-tx .awt-card-val {
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 17px;
    font-weight: 900;
    direction: ltr;
    letter-spacing: 1.5px;
    color: #1a1a1a;
}
.admin-withdraw-tx .awt-summary {
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 2;
    margin: 10px 0;
}
.admin-withdraw-tx .awt-summary .row {
    display: flex; justify-content: space-between; align-items: center;
}
.admin-withdraw-tx .awt-summary .row b { color: #1a1a1a; font-weight: 800; }
.admin-withdraw-tx .awt-summary .row.net b { color: #24c78b; font-size: 14px; }
.admin-withdraw-tx .awt-actions {
    display: flex; gap: 8px; margin-top: 12px;
}
.admin-withdraw-tx .awt-actions button {
    flex: 1; padding: 11px 8px; border-radius: 10px;
    border: none; font-family: inherit;
    font-size: 12px; font-weight: 800;
    cursor: pointer; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.awt-paid {
    background: #24c78b; color: #fff;
    box-shadow: 0 4px 10px rgba(36,199,139,0.25);
}
.awt-reject-withdraw {
    background: #e41e3f; color: #fff;
    box-shadow: 0 4px 10px rgba(228,30,63,0.25);
}

/* ==================== RECEIPT MODE TOGGLE ==================== */
.receipt-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.receipt-mode-btn {
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: #4b4f56;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
.receipt-mode-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
}
.receipt-mode-btn.active {
    background: #7c3aed;
    color: #fff;
    border-color: #7c3aed;
    box-shadow: 0 4px 10px rgba(124,58,237,0.25);
}
.receipt-text-input {
    width: 100%;
    padding: 14px 15px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    transition: all .2s;
    resize: vertical;
    min-height: 90px;
    line-height: 1.8;
}
.receipt-text-input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.receipt-text-box {
    background: #f5ebff;
    border: 1.5px solid #7c3aed;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.9;
    color: #1a1a1a;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 10px 0;
}

@media (max-width: 600px) {
    .listings-grid { gap: 0; }
    .listing-title { font-size: 13px; }
    .image-preview { grid-template-columns: repeat(3, 1fr); }
    .detail-thumbs { grid-template-columns: repeat(4, 1fr); }
    .admin-ticket-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .admin-ticket-stat { padding: 12px 8px; }
    .admin-ticket-stat .n { font-size: 18px; }
    .listings-filter-bar { padding: 12px; }
    #cpProductsGrid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .cp-product-name { font-size: 13px; }
    .cp-product-price { font-size: 13px; }
    .cp-add-btn { font-size: 11.5px; padding: 10px 5px; }
    .dice-vs { gap: 8px; }
    .dice-player { padding: 12px 8px; }
    .dice-player .dp-roll { font-size: 26px; }
    .receipt-mode-toggle { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .messages { height: 320px; }
    .room-code { font-size: 30px; letter-spacing: 9px; }
    .app-header { padding: 20px 18px 16px; }
    .screen { padding: 20px 18px 22px; }
    .code-cell { height: 48px; font-size: 20px; border-radius: 8px; }
    .code-inputs { gap: 5px; }
    .auth-card { padding: 32px 20px 26px; }
    .auth-title { font-size: 21px; }
    .admin-card { padding: 24px 18px; }
    .floating-back-btn { font-size: 12px; padding: 12px 16px; bottom: 90px; right: 16px; }
    .wallet-card .wc-amt { font-size: 28px; }
}
@media (max-width: 380px) {
    .code-cell { height: 44px; font-size: 18px; border-radius: 8px; }
    .code-inputs { gap: 4px; }
    .room-code { font-size: 26px; letter-spacing: 7px; }
    .dice-cube { width: 80px; height: 80px; font-size: 44px; }
}
@media (max-height: 700px) { .messages { height: 280px; } }

/* نوار پایین - همیشه خاکستری */
.bottom-nav-item,
.bottom-nav-item:hover,
.bottom-nav-item:focus,
.bottom-nav-item:active,
.bottom-nav-item.active {
    color: #8a8d93 !important;
    background: transparent !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bottom-nav-item svg,
.bottom-nav-item svg * {
    stroke: #8a8d93 !important;
    color: #8a8d93 !important;
    fill: none !important;
}
/* ==================== SEARCH BAR ==================== */
.listings-search-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 16px;
    color: #8a8d93;
    pointer-events: none;
    transition: color .2s;
    z-index: 2;
}

.listings-search-input {
    width: 100%;
    padding: 14px 46px 14px 46px;
    background: #f8f9fa;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    color: #1a1a1a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all .2s;
    direction: rtl;
    text-align: right;
}

.listings-search-input::placeholder {
    color: #a8adb5;
    font-weight: 500;
}

.listings-search-input:focus {
    background: #ffffff;
    border-color: #1877f2;
    box-shadow: 0 0 0 4px rgba(24,119,242,0.1);
}

.search-input-wrap:focus-within .search-icon {
    color: #1877f2;
}

.search-clear-btn {
    position: absolute;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e4e6eb;
    border: none;
    color: #4b4f56;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: all .2s;
    z-index: 3;
}

.search-clear-btn:hover {
    background: #e41e3f;
    color: #fff;
}

.search-result-info {
    margin-top: 12px;
    padding: 10px 14px;
    background: #e7f0fe;
    border: 1px solid #1877f2;
    border-radius: 10px;
    font-size: 12.5px;
    color: #1877f2;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    animation: fadeBanner .3s ease;
}

.search-result-info b {
    color: #1a1a1a;
    font-weight: 900;
}

.search-result-info .no-result {
    color: #e41e3f;
}

@media (max-width: 480px) {
    .listings-search-bar { padding: 12px; }
    .listings-search-input { font-size: 13px; padding: 12px 42px 12px 42px; }
    .search-icon { right: 14px; width: 16px; height: 16px; }
}
/* ==================== FLOATING SUPPORT BUTTON ==================== */
.floating-support-btn {
    position: fixed;
    bottom: 90px;
    right: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    border: none;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(24, 119, 242, .4);
    z-index: 95;
    transition: transform .2s, box-shadow .2s, background .2s;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.floating-support-btn:hover {
    background: #166fe5;
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(24, 119, 242, .5);
}
.floating-support-btn:active { transform: scale(.95); }
.floating-support-btn svg { width: 26px; height: 26px; }

.floating-support-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e41e3f;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: inherit;
}

@media (max-width: 480px) {
    .floating-support-btn {
        width: 52px;
        height: 52px;
        bottom: 84px;
        right: 14px;
    }
    .floating-support-btn svg { width: 24px; height: 24px; }
}

body.hide-floating-support .floating-support-btn { display: none !important; }

/* ==================== DEBUG LADYBUG ==================== */
#debugLadybug {
    position: fixed;
    bottom: 160px;
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e41e3f;
    display: grid;
    place-items: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 99998;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    user-select: none;
    line-height: 1;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
#debugLadybug:active { transform: scale(.92); }

#debugPanel {
    position: fixed;
    inset: 0;
    background: #0e0e10;
    color: #e8e8ea;
    z-index: 99999;
    display: none;
    flex-direction: column;
    font-family: 'SF Mono', 'Courier New', monospace;
    direction: ltr;
}
#debugPanel.open { display: flex; }

.dbg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    background: #1c1c20;
    border-bottom: 1px solid #2a2a30;
    font-size: 13px;
}
.dbg-head b { flex: 1; color: #fff; font-size: 14px; }
.dbg-head button {
    padding: 6px 12px;
    background: #e41e3f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.dbg-head button:last-child {
    background: #2a2a30;
    padding: 6px 10px;
    font-size: 14px;
}

.dbg-tabs {
    display: flex;
    background: #1c1c20;
    border-bottom: 1px solid #2a2a30;
}
.dbg-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: #8a8d93;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.dbg-tab.active {
    color: #fff;
    border-bottom-color: #e41e3f;
}

.dbg-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.dbg-empty {
    text-align: center;
    padding: 40px 20px;
    color: #5a5a62;
    font-size: 13px;
}

.dbg-line {
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #16161a;
    border-left: 3px solid #444;
    font-size: 12px;
    line-height: 1.5;
}
.dbg-line.dbg-log { border-left-color: #8a8d93; }
.dbg-line.dbg-warn { border-left-color: #f7b928; background: #1a1610; }
.dbg-line.dbg-error { border-left-color: #e41e3f; background: #1a1012; }

.dbg-time { color: #5a5a62; font-size: 10px; margin-right: 8px; }
.dbg-type { 
    display: inline-block; 
    padding: 1px 6px; 
    border-radius: 4px; 
    background: #2a2a30; 
    font-size: 9px; 
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 6px;
}
.dbg-line.dbg-warn .dbg-type { background: #f7b928; color: #1a1610; }
.dbg-line.dbg-error .dbg-type { background: #e41e3f; color: #fff; }

.dbg-line pre {
    white-space: pre-wrap;
    word-break: break-all;
    color: #c8c8cc;
    font-family: inherit;
    font-size: 11px;
    margin-top: 4px;
    margin: 4px 0 0 0;
}

/* ==================== DEBUG CHECKS ==================== */
.dbg-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #16161a;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid #444;
}
.dbg-check.dbg-ok { border-left-color: #24c78b; }
.dbg-check.dbg-fail { border-left-color: #e41e3f; background: #1a1012; }

.dbg-check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 900;
    flex-shrink: 0;
    font-size: 13px;
}
.dbg-ok .dbg-check-icon { background: #24c78b; color: #fff; }
.dbg-fail .dbg-check-icon { background: #e41e3f; color: #fff; }

.dbg-check-body { flex: 1; min-width: 0; }
.dbg-check-body b {
    display: block;
    color: #e8e8ea;
    font-size: 12.5px;
    margin-bottom: 4px;
    font-family: 'Vazirmatn', sans-serif;
}
.dbg-check-body span {
    color: #8a8d93;
    font-size: 11px;
    word-break: break-all;
    font-family: 'Vazirmatn', 'SF Mono', monospace;
    line-height: 1.6;
}

/* ==================== PAGINATION ==================== */
.pagination-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 30px;
    flex-wrap: wrap;
    direction: rtl;
}
.page-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    color: #4b4f56;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-btn:hover:not(:disabled):not(.active) {
    border-color: #1877f2;
    color: #1877f2;
    background: #f0f7ff;
}
.page-btn.active {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
    box-shadow: 0 4px 10px rgba(24,119,242,0.25);
}
.page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.page-dots {
    color: #8a8d93;
    font-weight: 900;
    padding: 0 4px;
    user-select: none;
}
@media (max-width: 480px) {
    .page-btn { min-width: 38px; height: 38px; font-size: 12.5px; padding: 0 10px; }
}

/* ==================== MY GOTHAM CARDS ==================== */
.gotham-card-display {
    background: linear-gradient(135deg, #1c1c1c 0%, #2a2a2a 50%, #a47a20 100%);
    border-radius: 18px;
    padding: 22px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}
.gotham-card-display::before {
    content: "";
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(224,178,48,.2), transparent 60%);
    pointer-events: none;
}
.gotham-card-display .g-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.gotham-card-display .g-card-shield {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    opacity: .9;
}
.gotham-card-display .g-card-status {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}
.gotham-card-display .g-card-status.approved {
    background: rgba(36,199,139,.2);
    color: #24c78b;
    border: 1px solid #24c78b;
}
.gotham-card-display .g-card-status.pending {
    background: rgba(247,185,40,.2);
    color: #f7b928;
    border: 1px solid #f7b928;
}
.gotham-card-display .g-card-status.rejected {
    background: rgba(228,30,63,.2);
    color: #e41e3f;
    border: 1px solid #e41e3f;
}
.gotham-card-display .g-card-name {
    font-size: 20px;
    font-weight: 900;
    color: #e0b230;
    text-align: right;
    direction: rtl;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.gotham-card-display .g-card-info {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 13px;
    direction: rtl;
    position: relative;
    z-index: 2;
}
.gotham-card-display .g-card-info .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.gotham-card-display .g-card-info .row span { opacity: .7; }
.gotham-card-display .g-card-info .row b { font-weight: 800; }
.gotham-card-display .g-card-info .row b.ltr {
    direction: ltr;
    font-family: 'SF Mono', 'Courier New', monospace;
    letter-spacing: 1px;
}
.gotham-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}
.gotham-card-actions button {
    flex: 1;
    padding: 11px 8px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform .15s, background .2s;
}
.gotham-card-actions .btn-copy {
    background: rgba(255,255,255,.18);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.3);
}
.gotham-card-actions .btn-copy:hover { background: rgba(255,255,255,.28); }
.gotham-card-actions .btn-copy.copied { background: #24c78b; border-color: #24c78b; }
.gotham-card-actions .btn-open {
    background: #e0b230;
    color: #1a1a1a;
}
.gotham-card-actions .btn-open:hover { background: #c99e28; }
.gotham-card-actions button:active { transform: scale(.97); }

.gotham-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px dashed var(--border-2);
    border-radius: 16px;
}
.gotham-empty-state .icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #fff9e6;
    color: #a47a20;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
}
.gotham-empty-state h3 {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.gotham-empty-state p {
    font-size: 13px;
    color: #8a8d93;
    line-height: 1.9;
    margin-bottom: 20px;
}
.gotham-empty-state button {
    padding: 13px 26px;
    border-radius: 12px;
    background: linear-gradient(145deg, #a47a20, #e0b230);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
@keyframes fadeBanner {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ==================== GOOGLE LOGIN ==================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 18px;
    color: #8a8d93;
    font-size: 12px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e4e6eb;
}

.auth-divider span {
    padding: 0 4px;
}

.google-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: #ffffff !important;
    border: 1.5px solid var(--border) !important;
    color: #1a1a1a !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    font-weight: 800 !important;
    transition: all .2s !important;
    width: 100% !important;
    padding: 15px !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 14.5px !important;
    min-height: 52px !important;
    cursor: pointer !important;
    margin-top: 6px !important;
}

.google-btn:hover {
    background: #f8f9fa !important;
    border-color: #dadce0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px) !important;
}

.google-btn:active {
    transform: scale(.98) !important;
}

.google-btn:disabled {
    opacity: .6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}