/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #0a0a0f;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-logo {
    font-size: 19px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff2d78, #c44dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.header-logo .logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
}
.header-logo .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.header-logo .live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: #ff2d78;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff2d78;
    animation: pulse 1.5s infinite;
    -webkit-text-fill-color: initial;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.header-badge {
    background: rgba(255,45,120,0.15);
    color: #ff6b9d;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(255,45,120,0.25);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: rgba(10,10,15,0.92);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px 10px;
    z-index: 100;
}
.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    font-family: inherit;
    font-size: 12px;
    position: relative;
}
.nav-btn.active { color: #ff2d78; }
.nav-btn:hover { color: #ff6b9d; }
.nav-btn .icon { font-size: 20px; }
.nav-badge {
    position: absolute;
    top: -2px; right: 2px;
    background: #ff2d78;
    color: #fff;
    font-size: 8px; font-weight: 700;
    padding: 1px 4px;
    border-radius: 6px;
    min-width: 14px;
    text-align: center;
}

/* ===== PAGES ===== */
.page { display: none; padding-bottom: 60px; }
.page.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}
.section-title {
    font-size: 18px; font-weight: 700; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.section-title .count {
    background: rgba(255,45,120,0.15);
    color: #ff6b9d; padding: 2px 10px;
    border-radius: 12px; font-size: 12px; font-weight: 600;
}

/* ===== LIVE GRID ===== */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
}
@media (min-width: 640px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .live-grid { grid-template-columns: repeat(4, 1fr); } }

.live-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: 0.25s;
    border: none;
    aspect-ratio: auto;
}
.live-card:hover { transform: scale(1.02); }

/* ===== تصویر تامبنیل (با aspect-ratio 9:13) ===== */
/* ===== LIVE GRID ===== */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
}
@media (min-width: 640px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .live-grid { grid-template-columns: repeat(4, 1fr); } }

.live-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: 0.25s;
    border: none;
    width: 100%; /* ← عرض کامل ستون */
}

.live-card:hover { transform: scale(1.02); }

/* ===== تصویر تامبنیل ===== */
.live-thumbnail-wrapper {
    position: relative;
    width: 100%; /* ← عرض کامل کارت */
    aspect-ratio: 9 / 13; /* ← نسبت ۹:۱۳ ثابت */
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a1a3a, #1a1a2e);
    flex-shrink: 0;
}
.live-thumbnail-wrapper img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← برش برای پر کردن کادر */
    display: block;
    transition: 0.3s;
}
.live-card:hover .live-thumbnail-wrapper img.thumbnail { transform: scale(1.05); }

/* ===== Overlay روی تامبنیل ===== */
.live-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.live-top {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.live-tag {
    background: #ff2d78;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255,45,120,0.4);
}
.live-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.live-viewers {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== تایتل روی تامبنیل ===== */
.live-title-on-thumbnail {
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    pointer-events: none;
    line-height: 1.4;
    padding: 4px 0;
}

/* ===== بخش پایین کارت (پروفایل + نام) ===== */
/* ===== LIVE GRID ===== */
.live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
}
@media (min-width: 640px) { .live-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .live-grid { grid-template-columns: repeat(4, 1fr); } }

.live-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    transition: 0.25s;
    border: none;
    width: 100%; /* ← عرض کامل ستون */
}

.live-card:hover { transform: scale(1.02); }

/* ===== تصویر تامبنیل ===== */
.live-thumbnail-wrapper {
    position: relative;
    width: 100%; /* ← عرض کامل کارت */
    aspect-ratio: 9 / 13; /* ← نسبت ۹:۱۳ ثابت */
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a1a3a, #1a1a2e);
    flex-shrink: 0;
}
.live-thumbnail-wrapper img.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← برش برای پر کردن کادر */
    display: block;
    transition: 0.3s;
}
.live-card:hover .live-thumbnail-wrapper img.thumbnail { transform: scale(1.05); }

/* ===== Overlay روی تامبنیل ===== */
.live-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.live-top {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.live-tag {
    background: #ff2d78;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(255,45,120,0.4);
}
.live-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.2s infinite;
}

.live-viewers {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* ===== تایتل روی تامبنیل ===== */
.live-title-on-thumbnail {
    position: absolute;
    bottom: 8px;
    right: 8px;
    left: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.8em;
    pointer-events: none;
    line-height: 1.4;
    padding: 4px 0;
}

/* ===== بخش پایین کارت (پروفایل + نام) ===== */
.live-bottom {
    padding: 8px 4px 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%; /* ← عرض کامل */
}

.live-profile {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    background: rgba(255,255,255,0.1);
}
.live-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-host {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* ===== ACCOUNT CARDS ===== */
.acc-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: 0.25s;
    margin-bottom: 10px;
}
.acc-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,45,120,0.3); transform: translateX(-4px); }
.ac-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff2d78, #c44dff);
}
.ac-icon.gray { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.ac-text { flex: 1; }
.ac-title { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.ac-desc { font-size: 12px; color: rgba(255,255,255,0.4); }
.ac-arrow { color: rgba(255,255,255,0.2); font-size: 18px; }
.acc-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 14px 0; }

/* ===== MODAL ===== */
.modal-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    align-items: flex-end;
    justify-content: center;
}
.modal-backdrop.show { display: flex; animation: fadeIn 0.2s; }

.modal {
    width: 100%; max-width: 420px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 24px 24px 0 0;
    padding: 24px 24px 40px;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
    height: 90%;
    overflow-y: auto;
    animation: slideUp 0.3s;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.modal::-webkit-scrollbar { display: none; }
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}
.modal-close {
    position: absolute; left: 0; top: -8px;
    background: rgba(255,255,255,0.06);
    border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 12px;
    font-size: 20px; cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.12); }
.modal-avatar-wrapper {
    width: 72px; height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255,45,120,0.3);
    background: rgba(255,255,255,0.15);
}
.skeleton-circle {
    position: absolute; inset: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0.05) 33%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 66%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: 50%;
}
.skeleton-pulse {
    animation: skeletonPulse 1.5s ease-in-out infinite;
}
@keyframes skeletonPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.modal-avatar-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
}
.modal-title {
    font-size: 18px; font-weight: 700;
    background: linear-gradient(135deg, #ff2d78, #c44dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal-title .logo-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-text-fill-color: initial;
    flex-shrink: 0;
}
.modal-title .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.modal-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.modal-body { margin-top: 8px; }

.step { display: none; }
.step.active { display: block; }
.step.hidden { display: none; }

.step-indicator {
    display: flex; justify-content: center; gap: 6px;
    margin-bottom: 18px;
}
.step-indicator.hidden { display: none; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: 0.3s;
}
.dot.active { background: #ff2d78; width: 24px; border-radius: 4px; }
.dot.done { background: rgba(255,45,120,0.4); }

/* ===== BUTTONS ===== */
.btn {
    width: 100%; padding: 14px;
    border-radius: 12px; border: none;
    font-family: inherit; font-size: 15px; font-weight: 600;
    background: linear-gradient(135deg, #ff2d78, #c44dff);
    color: #fff; cursor: pointer;
    transition: 0.25s; margin-top: 12px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,45,120,0.3); }
.btn-secondary {
    background: rgba(255,255,255,0.06);
    box-shadow: none; margin-top: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); transform: none; box-shadow: none; }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }

.dual-btns { display: flex; flex-direction: column; gap: 10px; }
.dual-btn {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 14px;
    cursor: pointer; transition: 0.25s; width: 100%;
    font-family: inherit; color: inherit; text-align: right;
}
.dual-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,45,120,0.3); }
.db-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.db-icon.signup { background: linear-gradient(135deg, #ff2d7833, #c44dff33); color: #ff2d78; }
.db-icon.login { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.db-text { flex: 1; text-align: right; }
.db-title { font-size: 14px; font-weight: 600; }
.db-desc { font-size: 11px; color: rgba(255,255,255,0.4); }
.db-arrow { color: rgba(255,255,255,0.2); font-size: 16px; }

/* ===== FORM ELEMENTS ===== */
label {
    display: block; font-size: 13px; font-weight: 600;
    margin-bottom: 6px; margin-top: 14px;
    color: rgba(255,255,255,0.7);
}
label:first-child { margin-top: 0; }
input {
    width: 100%; padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: #fff;
    font-family: inherit; font-size: 14px; outline: none;
    transition: 0.25s;
}
input:focus { border-color: #ff2d78; box-shadow: 0 0 0 3px rgba(255,45,120,0.15); }
input::placeholder { color: rgba(255,255,255,0.15); }

.error {
    display: none;
    color: #ff4d6d; font-size: 12px; font-weight: 500;
    margin-top: 6px; padding: 6px 10px;
    background: rgba(255,45,120,0.1);
    border-radius: 8px; border: 1px solid rgba(255,45,120,0.2);
}

.hint-text {
    font-size: 12px; color: rgba(255,255,255,0.35);
    margin-top: 8px; padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px; line-height: 1.6;
}
.hint-text.warning { color: rgba(255,173,51,0.7); background: rgba(255,173,51,0.06); border: 1px solid rgba(255,173,51,0.12); }

/* ===== GENDER BUTTONS ===== */
.gender-btns { display: flex; gap: 10px; margin: 10px 0; }
.gender-btn {
    flex: 1; padding: 16px; border-radius: 14px;
    background: rgba(255,255,255,0.15);
    border: 2px solid transparent; cursor: pointer;
    transition: 0.25s; text-align: center;
    font-family: inherit; color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.gender-btn:hover { background: rgba(255,255,255,0.2); }
.gender-btn.selected { border-color: #ff2d78; background: rgba(255,45,120,0.2); box-shadow: 0 0 20px rgba(255,45,120,0.15); }
.gender-icon {
    width: 127px;
    height: 127px;
    display: block;
}
.gl { font-size: 14px; font-weight: 600; }

/* ===== STYLE BUTTONS ===== */
.style-btns { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.style-btn {
    flex: 1; min-width: 100px; padding: 14px;
    border-radius: 12px; background: rgba(255,255,255,0.04);
    border: 2px solid transparent; cursor: pointer;
    transition: 0.25s; text-align: center;
    font-family: inherit; font-size: 13px; font-weight: 500; color: inherit;
}
.style-btn:hover { background: rgba(255,255,255,0.07); }
.style-btn.selected { border-color: #ff2d78; background: rgba(255,45,120,0.1); }
.style-btn.hidden { display: none; }

/* ===== PAYMENT ===== */
.payment-box {
    text-align: center; padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.06);
}
.price { font-size: 36px; font-weight: 900; color: #ff2d78; margin: 12px 0; }
.price span { font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.5); }
.footer-note {
    text-align: center; font-size: 11px;
    color: rgba(255,255,255,0.2); margin-top: 16px;
}

/* ===== INFO POPUP ===== */
.info-popup {
    display: none;
    position: fixed; inset: 0; z-index: 250;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    align-items: center; justify-content: center;
}
.info-popup.show { display: flex; animation: fadeIn 0.2s; }
.info-popup-box {
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    border-radius: 20px; padding: 32px 28px;
    max-width: 360px; width: 90%;
    text-align: center; border: 1px solid rgba(255,255,255,0.06);
    animation: slideUp 0.3s;
}
.info-icon { font-size: 48px; margin-bottom: 12px; color: #c44dff; }
.info-popup-box h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.info-popup-box p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 18px; }
.info-popup-box .btn { margin-top: 0; }