Coming Soon Badge (Gift uchun)
   ======================================== */
.home-action-card.coming-soon {
    position: relative;
    cursor: default;
}

.home-action-card.coming-soon::before {
    content: 'вњ“';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.5;
    border-radius: 16px;
    z-index: 1;
}

.home-action-card.coming-soon > * {
    position: relative;
    z-index: 2;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Ranking Banner
   ======================================== */
.ranking-banner {
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.3);
}

.ranking-banner:active {
    transform: scale(0.98);
}

.ranking-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ranking-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.ranking-position {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.ranking-next {
    flex: 1;
    text-align: right;
}

.ranking-next-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    display: block;
}

.ranking-next-value {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.ranking-arrow {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.ranking-arrow svg {
    width: 100%;
    height: 100%;
}

/* ========================================
   Menu Badge (Kanal uchun)
   ======================================== */
.menu-badge {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-left: auto;
    margin-right: 8px;
}

/* ========================================
   Donate Section
   ======================================== */
.donate-section {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-amount));
    border-radius: 16px;
    padding: 20px;
    margin-top: 16px;
    border: 0.5px solid var(--separator);
    text-align: center;
}

.donate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

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

.donate-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.donate-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.donate-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.donate-btn {
    flex: 1;
    max-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.donate-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.donate-btn svg {
    width: 24px;
    height: 24px;
    color: white;
}

.donate-btn span {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.donate-btn.uzcard {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.donate-btn.click {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.donate-btn.stars {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}

/* ========================================
   Donate Modal Content
   ======================================== */
.donate-modal-content {
    text-align: center;
    padding: 10px 0;
}

.donate-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.donate-modal-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.donate-modal-icon.uzcard {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.donate-modal-icon.click {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.donate-modal-icon.stars {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}

.donate-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.donate-card-row {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.donate-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 8px;
}

.donate-card-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.donate-card-value span {
    font-size: 18px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    color: var(--text-primary);
}

.donate-note {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.donate-pay-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-decoration: none;
    text-align: center;
    margin-bottom: 16px;
}

.donate-pay-btn.click {
    background: linear-gradient(135deg, #43a047, #2e7d32);
}

.donate-pay-btn.stars {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}

.donate-thanks {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   TO'LOV SAHIFASI - TIMER
   ======================================== */
.payment-page-content {
    padding: 10px 0;
    text-align: center;
}

.payment-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-radius: 30px;
    margin-bottom: 20px;
}

.payment-type-badge span:first-child {
    font-size: 20px;
}

.payment-type-badge span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-timer-box {
    margin-bottom: 20px;
}

.payment-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.payment-timer.expired {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.timer-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    font-family: 'SF Mono', 'Monaco', monospace;
    min-width: 44px;
    text-align: center;
}

.timer-sep {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.timer-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.payment-warning-box {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}

.payment-warning-box.danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.payment-warning-box .warning-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.payment-warning-box p {
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.payment-details {
    background: var(--bg-glass);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid var(--separator);
    text-align: left;
}

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.payment-detail-row:not(:last-child) {
    border-bottom: 1px solid var(--separator);
}

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

.detail-value-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.detail-value.amount {
    color: var(--accent);
    font-size: 17px;
}

.copy-btn-small {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.copy-btn-small svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.click-pay-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}

/* PAYNET Payment Page */
.paynet-details {
    text-align: center;
}

.paynet-logo-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00c853, #00a854);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 200, 83, 0.3);
}

.paynet-logo-box .paynet-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.paynet-instruction {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.5;
}

.paynet-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00c853, #00a854);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.paynet-pay-btn .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.paynet-pay-btn:hover {
    background: linear-gradient(135deg, #00a854, #008f45);
}

/* Gift Paynet */
.gift-payment-desc {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.gift-payment-note {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gift-action-btn.paynet-btn {
    background: linear-gradient(135deg, #00c853, #00a854);
}

.auto-cancel-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* PENDING ORDERS - Liquid Glass */
.pending-orders-section {
    margin-bottom: 16px;
}

.section-mini-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.pending-orders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* PENDING ORDERS - Yangi kompakt dizayn */
.po-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.po-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.06);
}

.po-item.stars {
    border-left: 3px solid #f59e0b;
}

.po-item.premium {
    border-left: 3px solid #3b82f6;
}

.po-item.topup {
    border-left: 3px solid #8b5cf6;
}

.po-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.po-icon-gif {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.po-info {
    flex: 1;
    min-width: 0;
}

.po-amount {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.po-method {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 1px;
}

.po-action {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    flex-shrink: 0;
}

.po-pay-text {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
}

.po-action svg {
    width: 14px;
    height: 14px;
    color: #3b82f6;
}

.po-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.po-item:hover .po-close,
.po-item:active .po-close {
    opacity: 1;
}

.po-close svg {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
}

/* Eski pending-card stillarini o'chirmaymiz, lekin ishlatmaymiz */
.pending-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 14px 8px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pending-card:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.pending-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pending-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pending-avatar-letter {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.pending-content {
    flex: 1;
    min-width: 0;
}

.pending-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pending-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pending-icon-gif {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.pending-hint {
    font-size: 11px;
    color: var(--text-secondary);
    display: block;
    margin-top: 1px;
}

.pending-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 59, 48, 0.1);
    border: none;
    color: #ff3b30;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pending-close:active {
    transform: scale(0.9);
    background: rgba(255, 59, 48, 0.2);
}

/* Eski pending-order-card - deprecated */
.pending-order-card {
    display: none;
}

.pending-order-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 20px;
}

.pending-order-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.pending-order-letter {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.pending-order-info {
    flex: 1;
    min-width: 0;
}

.pending-order-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.pending-order-user {
    font-size: 13px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
}

.pending-order-amount {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
}

.pending-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pending-order-btn {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.pending-order-btn.pay {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
}

.pending-order-btn.pay:active {
    opacity: 0.8;
    transform: scale(0.95);
}

.pending-order-btn.cancel {
    width: 34px;
    height: 34px;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    font-size: 16px;
}

.pending-order-btn.cancel:active {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(0.9);
}

.pending-order-btn {
    display: none;
}

.pending-order-btn.pay {
    display: none;
}

.pending-order-btn.cancel {
    display: none;
}

/* RECENT ORDERS - Liquid Glass */
.recent-orders-section {
    margin-top: 16px;
}

.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.recent-order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

[data-theme="dark"] .recent-order-item {
    background: var(--glass-bg-card);
}

.recent-order-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.recent-order-icon.stars {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}

.recent-order-icon.premium {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

.recent-order-icon.topup {
    background: linear-gradient(135deg, #10b981, #059669);
}

.recent-order-info {
    flex: 1;
}

.recent-order-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    display: block;
}

.recent-order-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.recent-order-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}

.recent-order-status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.recent-order-status.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.recent-order-status.failed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.empty-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 16px;
}

/* TIL TANLASH */
.fullscreen-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lang-select-container {
    text-align: center;
    max-width: 300px;
    width: 100%;
}

.lang-select-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.lang-select-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.lang-select-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--separator);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

/* ========================================
   TERMS SCREEN
   ======================================== */
.terms-container {
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.terms-header {
    text-align: center;
    margin-bottom: 20px;
}

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

.terms-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.terms-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.terms-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 8px;
    max-height: 45vh;
}

.terms-section {
    margin-bottom: 16px;
}

.terms-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.terms-section-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.terms-actions {
    display: flex;
    gap: 12px;
}

.terms-btn {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.terms-btn-decline {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.terms-btn-accept {
    background: var(--accent);
    color: white;
}

.terms-btn:active {
    transform: scale(0.98);
}

[data-theme="dark"] .terms-btn-decline {
    background: rgba(255, 255, 255, 0.1);
}

/* Username stillari */
.pending-order-user {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
}

.history-user {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

/* ========================================
   YANGI NAVBAR - TELEGRAM GIFT STORE STYLE
   ======================================== */
.bottom-nav-new {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bottom-nav-new.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* Light theme navbar */
.nav-slider {
    position: absolute;
    height: 44px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 22px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.nav-item-new {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    gap: 4px;
}

.nav-item-new.active {
    transform: scale(1.05);
}

.nav-icon-new {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-icon-new svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.nav-item-new.active .nav-icon-new svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.nav-label-new {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item-new.active .nav-label-new {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Profile Avatar */
.nav-item-new.profile-item {
    padding: 4px;
    min-width: 50px;
}

.nav-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-new.profile-item.active .nav-profile-avatar {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    transform: scale(1.1);
}

.nav-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-profile-avatar img[src=""],
.nav-profile-avatar img:not([src]) {
    display: none;
}

.nav-profile-avatar::after {
    content: 'вњ“';
    position: absolute;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.8;
}

.nav-profile-avatar img[src]:not([src=""]) + .nav-profile-avatar::after,
.nav-profile-avatar:has(img[src]:not([src=""]))::after {
    display: none;
}

/* Eski navbar yashirish */
.bottom-nav {
    display: none !important;
}

/* Nav item hover effekti */
.nav-item-new:not(.active):hover .nav-icon-new svg,
.nav-item-new:not(.active):hover .nav-label-new {
    color: rgba(255, 255, 255, 0.7);
}

.nav-item-new:not(.profile-item):active {
    transform: scale(0.95);
}

/* Dark mode uchun */
@media (prefers-color-scheme: light) {
    .bottom-nav-new {
        background: rgba(255, 255, 255, 0.95);
        border-top-color: rgba(0, 0, 0, 0.1);
    }
    
    .nav-icon-new svg {
        color: rgba(0, 0, 0, 0.4);
    }
    
    .nav-label-new {
        color: rgba(0, 0, 0, 0.4);
    }
    
    .nav-item-new:not(.active):hover .nav-icon-new svg,
    .nav-item-new:not(.active):hover .nav-label-new {
        color: rgba(0, 0, 0, 0.6);
    }
}

/* ========================================
   GLASS NAVBAR - TELEGRAM STYLE
   ======================================== */
.bottom-nav-new,
.bottom-nav {
    display: none !important;
}

.bottom-nav-glass {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-glass-container {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(40, 40, 45, 0.75);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.nav-slider-glass {
    position: absolute;
    height: 44px;
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    border-radius: 22px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.5),
        0 0 40px rgba(59, 130, 246, 0.2);
    opacity: 1;
}

.nav-item-glass {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 20px;
    gap: 3px;
}

.nav-item-glass:active {
    transform: scale(0.92);
}

.nav-icon-glass {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-glass svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
}

.nav-item-glass.active .nav-icon-glass svg {
    color: white;
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.3));
}

.nav-label-glass {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.3s ease;
    letter-spacing: 0.2px;
}

.nav-item-glass.active .nav-label-glass {
    color: white;
    text-shadow: 0 1px 8px rgba(255, 255, 255, 0.3);
}

/* Profile Avatar Button */
.nav-item-glass.profile-btn {
    padding: 4px;
    margin-left: 2px;
}

.nav-avatar-glass {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item-glass.profile-btn.active .nav-avatar-glass {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 3px rgba(59, 130, 246, 0.3),
        0 4px 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.08);
}

.nav-avatar-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.nav-avatar-glass img[src=""],
.nav-avatar-glass img:not([src]) {
    opacity: 0;
}

.nav-avatar-placeholder {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar-placeholder svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.nav-avatar-glass img[src]:not([src=""]) ~ .nav-avatar-placeholder {
    display: none;
}

/* Hover effect */
.nav-item-glass:not(.active):not(.profile-btn):hover .nav-icon-glass svg,
.nav-item-glass:not(.active):not(.profile-btn):hover .nav-label-glass {
    color: rgba(255, 255, 255, 0.7);
}

/* Glow pulse animation */
@keyframes navGlow {
    0%, 100% {
        box-shadow: 
            0 4px 20px rgba(59, 130, 246, 0.5),
            0 0 40px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 25px rgba(59, 130, 246, 0.6),
            0 0 50px rgba(59, 130, 246, 0.3);
    }
}

.nav-slider-glass {
    animation: navGlow 3s ease-in-out infinite;
}

/* Light mode */
@media (prefers-color-scheme: light) {
    .nav-glass-container {
        background: rgba(255, 255, 255, 0.8);
        border-color: rgba(0, 0, 0, 0.08);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 2px 8px rgba(0, 0, 0, 0.08);
    }
    
    .nav-icon-glass svg,
    .nav-label-glass {
        color: rgba(0, 0, 0, 0.4);
    }
    
    .nav-item-glass:not(.active):not(.profile-btn):hover .nav-icon-glass svg,
    .nav-item-glass:not(.active):not(.profile-btn):hover .nav-label-glass {
        color: rgba(0, 0, 0, 0.6);
    }
}

/* Body padding for navbar */
body {
    padding-bottom: 100px !important;
}

#app {
    padding-bottom: 100px !important;
}
/* ========================================
   GLASS NAVBAR - EXACT MATCH
   ======================================== */
.bottom-nav-new,
.bottom-nav {
    display: none !important;
}

.bottom-nav-glass {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-glass-container {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px;
    background: rgba(45, 45, 50, 0.85);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

/* Qora slider - rasmga o'xshash */
.nav-slider-glass {
    position: absolute;
    height: 48px;
    background: rgba(20, 20, 22, 0.95);
    border-radius: 30px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-item-glass {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 30px;
    gap: 4px;
    min-width: 70px;
}

.nav-item-glass:active {
    transform: scale(0.94);
}

.nav-icon-glass {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon-glass svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.nav-item-glass.active .nav-icon-glass svg {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.nav-label-glass {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s ease;
}

.nav-item-glass.active .nav-label-glass {
    color: #3b82f6;
}

/* Profile - alohida button */
.nav-profile-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(45, 45, 50, 0.85);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    padding: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-profile-btn:active {
    transform: scale(0.94);
}

.nav-profile-btn.active {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.nav-avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
}

.nav-avatar-ring img[src=""],
.nav-avatar-ring img:not([src]) {
    opacity: 0;
}

.nav-avatar-placeholder {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-avatar-placeholder svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.8);
}

.nav-avatar-ring img[src]:not([src=""]) ~ .nav-avatar-placeholder {
    display: none;
}

/* Hover */
.nav-item-glass:not(.active):hover .nav-icon-glass svg,
.nav-item-glass:not(.active):hover .nav-label-glass {
    color: rgba(255, 255, 255, 0.6);
}

/* Body padding */
body {
    padding-bottom: 110px !important;
}

#app {
    padding-bottom: 110px !important;
}
/* ========================================
   NAVBAR - LIQUID GLASS STYLE
   ======================================== */
.bottom-nav-new,
.bottom-nav,
.bottom-nav-glass {
    display: none !important;
}

.navbar-gift {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.navbar-gift.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.navbar-main {
    display: flex;
    align-items: center;
    padding: 7px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Active slider */
.navbar-slider {
    position: absolute;
    top: 6px;
    height: calc(100% - 12px);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 3px;
}

.navbar-item:active {
    transform: scale(0.92);
}

.navbar-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-item-icon svg {
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s ease;
}

.navbar-item-icon img {
    width: 28px;
    height: 28px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.navbar-item.active .navbar-item-icon svg {
    color: #ffffff;
}

.navbar-item.active .navbar-item-icon img {
    opacity: 1;
}

.navbar-item-label {
    display: none;
}

/* Profile button - navbar balandligiga teng */
.navbar-profile {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: none;
    overflow: hidden;
}

.navbar-profile:active {
    transform: scale(0.95);
}

.navbar-profile.active {
    border: none;
    box-shadow: none;
    opacity: 0.85;
}

.navbar-profile-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.navbar-profile-img img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.navbar-profile-img img[src=""],
.navbar-profile-img img:not([src]) {
    display: none;
}

.navbar-profile-img svg {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.navbar-profile-img:has(img[src]:not([src=""])) svg {
    display: none;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .navbar-main {
        background: rgba(60, 60, 68, 0.65);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-slider {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .navbar-item-icon svg {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .navbar-item.active .navbar-item-icon svg {
        color: #0a84ff;
    }
    
    .navbar-item-label {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .navbar-item.active .navbar-item-label {
        color: #0a84ff;
    }
    
    .navbar-profile {
        background: rgba(60, 60, 68, 0.65);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .navbar-profile.active {
    border: none;
    box-shadow: none;
    opacity: 0.85;
}
}

/* Body padding */
body, #app {
    padding-bottom: 100px !important;
}

/* ========================================
   HOME PAGE - MODERN DESIGN
   ======================================== */

/* Welcome Card */
.home-welcome-card {
    background: linear-gradient(135deg, var(--accent), #5856d6);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.home-welcome-card::before {
    content: 'вњ“';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.welcome-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.welcome-greeting {
    font-size: 14px;
    opacity: 0.9;
}

.welcome-balance-label {
    font-size: 12px;
    opacity: 0.8;
}

.welcome-balance {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.welcome-balance-value {
    font-size: 36px;
    font-weight: 700;
}

.welcome-balance-currency {
    font-size: 16px;
    opacity: 0.9;
}

.welcome-topup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.welcome-topup-btn:active {
    transform: scale(0.96);
    background: rgba(255,255,255,0.3);
}

.welcome-topup-btn svg {
    width: 18px;
    height: 18px;
}

/* Services Grid */
.home-services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.service-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.service-card:active {
    transform: scale(0.98);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-card.stars .service-icon {
    background: linear-gradient(135deg, #ffd700, #ff9500);
}

.service-card.premium .service-icon {
    background: linear-gradient(135deg, #5856d6, #af52de);
}

.service-card.gift .service-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.service-icon svg {
    width: 26px;
    height: 26px;
    color: white;
}

.service-info {
    flex: 1;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

.service-price {
    font-size: 13px;
    color: var(--text-secondary);
}

.service-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* Home Stats Row */
.home-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.home-stat-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 16px;
    text-align: center;
}

.home-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.home-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   PROFILE PAGE - MODERN DESIGN
   ======================================== */

/* Profile Card */
.profile-card-new {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 20px;
    margin-bottom: 16px;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.profile-avatar-new {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 600;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.profile-avatar-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.profile-avatar-new img[src=""],
.profile-avatar-new img:not([src]) {
    display: none;
}

.profile-info-new {
    flex: 1;
}

.profile-name-new {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
}

.profile-username-new {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.profile-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--accent-light);
    border-radius: 14px;
}

.profile-balance-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-balance-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-balance-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.profile-topup-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-topup-btn:active {
    transform: scale(0.92);
}

.profile-topup-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Profile Stats */
.profile-stats-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.profile-stat-new {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 14px;
    text-align: center;
}

.profile-stat-value-new {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.profile-stat-label-new {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Profile Menu */
.profile-menu-new {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    margin-bottom: 12px;
}

.menu-item-new {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--glass-border);
}

.menu-item-new:last-child {
    border-bottom: none;
}

.menu-item-new:active {
    background: var(--accent-light);
}

.menu-icon-new {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon-new svg {
    width: 18px;
    height: 18px;
    color: white;
}

.menu-icon-new.blue { background: linear-gradient(135deg, #007aff, #5856d6); }
.menu-icon-new.purple { background: linear-gradient(135deg, #af52de, #5856d6); }
.menu-icon-new.green { background: linear-gradient(135deg, #34c759, #30d158); }
.menu-icon-new.orange { background: linear-gradient(135deg, #ff9500, #ff3b30); }
.menu-icon-new.gold { background: linear-gradient(135deg, #ffd700, #ff9500); }

.menu-text-new {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.menu-value-new {
    font-size: 14px;
    color: var(--text-secondary);
}

.menu-badge-new {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    padding: 4px 10px;
    background: var(--accent-light);
    border-radius: 8px;
}

.menu-arrow-new {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.profile-version {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 20px;
}

/* ========================================
   USERNAME INPUT - YANGILANGAN
   ======================================== */

.username-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 0 14px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.username-wrapper:focus-within {
    border-color: var(--accent);
}

.username-at {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 2px;
    flex-shrink: 0;
}

.username-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 14px 0;
    color: var(--text-primary);
    min-width: 0;
}

.username-input::placeholder {
    color: var(--text-tertiary);
}

.username-clear {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--separator);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s;
}

.username-clear:active {
    transform: scale(0.9);
}

.username-clear svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.username-clear.hidden {
    display: none;
}

.for-me-btn {
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s;
}

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

.for-me-btn.hidden {
    display: none;
}

/* Keyboard scroll fix */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari */
    .username-input:focus,
    .custom-input:focus {
        font-size: 17px; /* Prevent zoom */
    }
}

/* User Preview - Yangilangan */
.user-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--accent);
    padding: 12px 16px;
    margin-bottom: 16px;
    animation: slideIn 0.2s ease;
}

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

.user-preview.hidden {
    display: none;
}

.user-preview img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.user-preview img.hidden,
.user-preview img[src=""],
.user-preview img:not([src]) {
    display: none;
}

.user-avatar-letter {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
}

.user-preview-info {
    flex: 1;
    min-width: 0;
}

.user-preview-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-preview-username {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

.user-preview-check {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
}

/* Confirmation Modal */
.confirm-content {
    text-align: center;
    padding: 10px 0;
}

.confirm-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: confirmPop 0.4s ease;
}

@keyframes confirmPop {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.confirm-type-icon {
    width: 40px;
    height: 40px;
}

.confirm-type-icon.stars {
    color: #f59e0b;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.4));
}

.confirm-type-icon.premium {
    color: #8b5cf6;
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.4));
}

.confirm-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.confirm-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.confirm-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.confirm-details {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 0;
    margin: 0 0 20px;
    overflow: hidden;
}

[data-theme="dark"] .confirm-details {
    background: rgba(255, 255, 255, 0.06);
}

/* Recipient Card */
.confirm-recipient-card {
    padding: 14px 16px;
    border-bottom: 1px solid var(--separator);
}

[data-theme="dark"] .confirm-recipient-card {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.confirm-recipient-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.confirm-recipient-arrow {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.confirm-summary {
    padding: 12px 16px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.confirm-row:not(:last-child) {
    border-bottom: 1px solid var(--separator);
}

[data-theme="dark"] .confirm-row:not(:last-child) {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.confirm-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.confirm-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-value.highlight {
    color: var(--accent);
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.confirm-btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.confirm-btn.cancel {
    background: var(--separator);
    color: var(--text-primary);
}

[data-theme="dark"] .confirm-btn.cancel {
    background: rgba(255, 255, 255, 0.1);
}

.confirm-btn.confirm {
    background: var(--accent);
    color: white;
}

.confirm-btn:active {
    transform: scale(0.98);
}

/* ========================================
   KEYBOARD FIX - Input focus scroll
   ======================================== */

/* iOS keyboard fix */
html, body {
    height: 100%;
    overflow-x: hidden;
}

/* Smooth scroll for input focus */
@media screen and (max-height: 600px) {
    .page {
        padding-bottom: 100px;
    }
}

/* Input focus - ensure visible */
input:focus {
    scroll-margin-bottom: 150px;
}

.username-wrapper:focus-within,
.custom-input-wrapper:focus-within {
    scroll-margin-bottom: 200px;
}

/* ========================================
   YANGI USERNAME INPUT WRAPPER
   ======================================== */

.username-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    padding: 0 12px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
    gap: 4px;
}

.username-input-wrapper:focus-within {
    border-color: var(--accent);
}

.input-prefix {
    font-size: 17px;
    font-weight: 500;
    color: var(--accent);
    flex-shrink: 0;
}

.username-input-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 17px;
    padding: 14px 0;
    color: var(--text-primary);
    min-width: 0;
}

.username-input-field::placeholder {
    color: var(--text-tertiary);
}

.input-clear-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    color: var(--text-tertiary);
    transition: all 0.2s;
}

.input-clear-btn:active {
    transform: scale(0.9);
}

.input-clear-btn svg {
    width: 20px;
    height: 20px;
}

.input-for-me-btn {
    padding: 8px 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.input-for-me-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

.input-for-me-btn.hidden {
    display: none;
}

/* ========================================
   USER PREVIEW CARD
   ======================================== */

.user-preview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 14px;
    border: 2px solid var(--accent);
    padding: 12px 14px;
    margin-bottom: 16px;
    animation: previewSlide 0.25s ease;
    position: relative;
}

.user-preview-card.loading {
    border-color: var(--separator);
}

.user-preview-card.loading .preview-name {
    color: var(--text-secondary);
}

@keyframes previewSlide {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-preview-card.hidden {
    display: none;
}

.preview-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.preview-avatar-img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.preview-avatar-img[src=""],
.preview-avatar-img:not([src]) {
    display: none;
}

.preview-avatar-letter {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.preview-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.preview-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-premium-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.preview-username {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-clear-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--glass-bg-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.1s;
}

.preview-clear-btn:active {
    transform: scale(0.9);
    background: var(--separator);
}

.preview-clear-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.preview-check {
    width: 24px;
    height: 24px;
    color: var(--success);
    flex-shrink: 0;
}

/* Premium Warning */
.premium-warning {
    display: none;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(234, 88, 12, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    animation: previewSlide 0.25s ease;
}

[data-theme="dark"] .premium-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 88, 12, 0.2));
    border-color: rgba(245, 158, 11, 0.4);
}

.premium-warning .warning-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.premium-warning .warning-icon svg {
    color: white;
}

.premium-warning .warning-text {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.premium-warning .warning-text strong {
    font-weight: 600;
}

/* Confirmation User Profile */
.confirm-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg-light);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.confirm-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.confirm-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.confirm-avatar-letter {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5856d6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.confirm-user-info {
    flex: 1;
    min-width: 0;
}

.confirm-user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.confirm-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confirm-premium-badge {
    display: inline-flex;
    font-size: 14px;
    flex-shrink: 0;
}

.confirm-user-username {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ========================================
   REFERRAL SYSTEM - SODDA DIZAYN
   ======================================== */

/* Profile Banner */
.referral-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
    cursor: pointer;
}

.referral-banner:active {
    opacity: 0.9;
}

.referral-banner-icon {
    font-size: 24px;
}

.referral-banner-content {
    flex: 1;
}

.referral-banner-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.referral-banner-subtitle {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

.referral-banner-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.referral-banner-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.6);
}

/* Referral Card */
.ref-card {
    background: var(--glass-bg-card);
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    padding: 16px;
    margin-bottom: 12px;
}

.ref-card.hidden {
    display: none;
}

/* Invited By */
.ref-invited {
    border-color: var(--accent);
}

.ref-invited-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: block;
}

.ref-invited-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ref-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.ref-invited-info {
    flex: 1;
}

.ref-invited-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.ref-invited-username {
    display: block;
    font-size: 13px;
    color: var(--accent);
}

/* Earnings */
.ref-earnings {
    background: var(--accent);
    border: none;
}

.ref-earnings-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ref-earnings-label {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.ref-earnings-value {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.ref-withdraw-btn {
    padding: 10px 20px;
    background: white;
    color: var(--accent);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.ref-withdraw-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ref-earnings-row {
    display: flex;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.ref-earnings-item {
    flex: 1;
}

.ref-earnings-item-label {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.ref-earnings-item-value {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

/* Link */
.ref-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ref-link-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.ref-link-bonus {
    font-size: 12px;
    color: var(--success);
    background: rgba(52, 199, 89, 0.15);
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 500;
}

.ref-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    cursor: pointer;
}

.ref-link-box:active {
    opacity: 0.8;
}

.ref-link-text {
    font-size: 13px;
    color: var(--accent);
    word-break: break-all;
    flex: 1;
}

.ref-link-copy {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 10px;
}

.ref-link-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ref-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.ref-btn:active {
    opacity: 0.9;
}

.ref-btn svg {
    width: 18px;
    height: 18px;
}

.ref-btn-share {
    background: var(--accent);
    color: white;
}

.ref-btn-copy {
    background: var(--separator);
    color: var(--text-primary);
}

/* Custom Link */
.ref-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ref-custom-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.ref-custom-changes {
    font-size: 12px;
    color: var(--text-secondary);
}

.ref-custom-input {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 4px;
}

.ref-custom-prefix {
    padding: 0 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.ref-custom-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    padding: 10px;
    color: var(--text-primary);
    outline: none;
}

.ref-custom-save {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* How it works */
.ref-how-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

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

.ref-how-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.ref-how-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Stats & List */
.ref-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ref-stats-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.ref-stats-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 12px;
    border-radius: 10px;
}

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

.ref-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 14px;
}

.ref-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 10px;
}

.ref-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.ref-item-info {
    flex: 1;
    min-width: 0;
}

.ref-item-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ref-item-username {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

.ref-item-stars {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* ========================================
   PROFILE REFERRAL CARD - Chiroyli
   ======================================== */

.profile-referral-card {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-referral-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
}

.profile-referral-bg {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.profile-referral-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.profile-referral-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.profile-referral-text {
    display: flex;
    flex-direction: column;
}

.profile-referral-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.profile-referral-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 2px;
}

.profile-referral-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-referral-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.profile-referral-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.6);
}

/* ========================================
   CUSTOM LINK PROGRESS
   ======================================== */

.ref-custom-card {
    border: 1px solid var(--accent);
    background: var(--accent-light);
}

.ref-custom-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.ref-custom-progress {
    margin-top: 12px;
}

.ref-custom-progress-bar {
    height: 8px;
    background: var(--separator);
    border-radius: 4px;
    overflow: hidden;
}

.ref-custom-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.ref-custom-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

#custom-progress-text {
    color: var(--text-primary);
    font-weight: 500;
}

.ref-custom-unlock {
    color: var(--text-secondary);
}

.ref-custom-input-wrap {
    margin-top: 12px;
}

.ref-custom-input-wrap.hidden {
    display: none;
}

.ref-custom-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: center;
}

/* Custom link unlocked state */
.ref-custom-card.unlocked {
    background: var(--glass-bg-card);
    border-color: var(--success);
}

.ref-custom-card.unlocked .ref-custom-progress {
    display: none;
}

/* ========================================
   FULLSCREEN MODE SUPPORT
   ======================================== */

/* Telegram header height - safe area + header */
:root {
    --tg-header-height: 0px;
    --tg-safe-top: 0px;
}

/* Fullscreen mode da Telegram header mavjud */
body.fullscreen {
    --tg-safe-top: env(safe-area-inset-top, 0px);
    --tg-header-height: calc(var(--tg-safe-top) + 60px);
    overflow: hidden;
}

/* Main content - scroll container */
#main-content {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: auto;
}

/* Fullscreen da main-content tepada joy */
body.fullscreen #main-content {
    height: calc(100vh - var(--tg-header-height));
    height: calc(100dvh - var(--tg-header-height));
    margin-top: var(--tg-header-height);
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
}

/* App header - fullscreen da sticky */
body.fullscreen .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
}

/* Loading screen - fullscreen */
body.fullscreen .loading-screen {
    padding-top: var(--tg-header-height);
}

/* Language select - fullscreen */
body.fullscreen .fullscreen-modal {
    padding-top: var(--tg-header-height);
}

/* Modal - fullscreen */
body.fullscreen .modal-overlay {
    top: var(--tg-header-height);
    height: calc(100vh - var(--tg-header-height));
}

body.fullscreen .modal {
    max-height: calc(90vh - var(--tg-header-height));
}

/* Navbar - bottom safe area */
.navbar-gift {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Body fullscreen - no scroll on body */
body.fullscreen {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* ========================================
   GIFT PAGE STYLES - V3 CLEAN MODERN
   Eski gift CSS larni o'chirib, buni qo'shing
   ======================================== */

/* Gift Type Filter */
.gift-type-filter {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin-bottom: 16px;
}

.gift-type-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--tg-theme-secondary-bg-color, #f0f0f0);
    color: var(--tg-theme-hint-color, #999);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .gift-type-btn {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}

.gift-type-btn.active {
    background: var(--tg-theme-button-color, #3390ec);
    color: #fff;
}

[data-theme="dark"] .gift-type-btn.active {
    background: #3b82f6;
}

/* Gifts Grid - 2 COLUMNS */
/* Gifts Grid - 3 ustun */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 12px 120px;
}

/* Gift Card - Compact Theme-Aware */
.gift-card {
    background: var(--tg-theme-secondary-bg-color, #f5f5f5);
    border-radius: 14px;
    padding: 14px 8px 12px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border: 1px solid transparent;
}

/* Light theme */
/* Dark theme */
[data-theme="dark"] .gift-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.gift-card:active {
    transform: scale(0.96);
}

.gift-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .gift-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gift-card-image {
    width: 52px;
    height: 52px;
    margin: 0 auto 8px;
}

.gift-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-card-placeholder {
    font-size: 36px;
    line-height: 52px;
}

.gift-card-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-card-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--tg-theme-button-color, #3390ec);
}

[data-theme="dark"] .gift-card-price {
    color: #60a5fa;
}

.gift-card-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

[data-theme="dark"] .gift-card-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* ========================================
   GIFT MODAL
   ======================================== */

.gift-modal-content {
    padding: 0;
}

/* Header */
.gift-modal-header {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(128,128,128,0.1);
}

[data-theme="dark"] .gift-modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.gift-modal-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
}

.gift-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-modal-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin-bottom: 4px;
}

.gift-modal-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--tg-theme-button-color, #3390ec);
}

[data-theme="dark"] .gift-modal-price {
    color: #60a5fa;
}

.gift-modal-price-extra {
    font-size: 12px;
    color: var(--tg-theme-hint-color);
    font-weight: 500;
    margin-top: 2px;
}

/* Custom Text */
.gift-option-card {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 16px 10px 14px;
    margin-bottom: 8px;
}

[data-theme="dark"] .gift-option-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.gift-option-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.gift-option-icon {
    font-size: 18px;
}

.gift-option-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--tg-theme-text-color);
}

.gift-option-text small {
    display: block;
    font-size: 11px;
    color: var(--tg-theme-hint-color);
    font-weight: 400;
    margin-top: 1px;
}

/* Toggle Switch */
.gift-toggle {
    width: 46px;
    height: 28px;
    background: rgba(128,128,128,0.3);
    border-radius: 14px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.gift-toggle.on {
    background: #34c759;
}

.gift-toggle::after {
    content: 'вњ“';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.gift-toggle.on::after {
    transform: translateX(18px);
}

/* Custom Input */
.gift-custom-input {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 10px;
    font-size: 14px;
    background: var(--tg-theme-bg-color);
    color: var(--tg-theme-text-color);
    box-sizing: border-box;
    display: none;
}

[data-theme="dark"] .gift-custom-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.gift-custom-input.show {
    display: block;
}

.gift-custom-input:focus {
    outline: none;
    border-color: var(--tg-theme-button-color);
}

[data-theme="dark"] .gift-custom-input:focus {
    border-color: #3b82f6;
}

/* Payment Methods */
.gift-payments {
    margin-bottom: 16px;
}

.gift-payments-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gift-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .gift-pay-option {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.gift-pay-option:last-child {
    margin-bottom: 0;
}

.gift-pay-option:active {
    transform: scale(0.98);
}

.gift-pay-option.selected {
    border-color: var(--accent);
}

[data-theme="dark"] .gift-pay-option.selected {
    border-color: #3b82f6;
}

.gift-pay-option.disabled {
    opacity: 0.5;
}

.gift-pay-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.gift-pay-icon.balance { background: linear-gradient(135deg, #34c759, #30d158); }
.gift-pay-icon.click { background: linear-gradient(135deg, #007aff, #5856d6); }
.gift-pay-icon.uzcard { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.gift-pay-icon.paynet { 
    background: linear-gradient(135deg, #00c853, #00a854); 
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-pay-icon.paynet img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.gift-pay-icon svg {
    width: 20px;
    height: 20px;
    color: white;
    stroke: white;
}

.gift-pay-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.gift-pay-info {
    flex: 1;
}

.gift-pay-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}








.gift-pay-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.gift-pay-check {
    width: 24px;
    height: 24px;
    border: 2px solid var(--separator);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.gift-pay-option.selected .gift-pay-check {
    background: var(--accent);
    border-color: var(--accent);
}

.gift-pay-option.selected .gift-pay-check::after {
    content: 'вњ“';
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Buy Button */
.gift-buy-btn {
    width: 100%;
    padding: 16px;
    background: var(--tg-theme-button-color, #3390ec);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}

.gift-buy-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.gift-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   RESULT - SUCCESS
   ======================================== */

.gift-success {
    text-align: center;
    padding: 24px 0;
}

.gift-success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    position: relative;
}

.gift-success-circle {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.gift-success-check {
    font-size: 40px;
    color: #fff;
    animation: checkPop 0.3s ease 0.2s both;
}

@keyframes checkPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Confetti */
.gift-confetti-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.gift-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confettiFly 0.6s ease-out forwards;
}

@keyframes confettiFly {
    0% { transform: translate(0, 0) scale(0) rotate(0deg); opacity: 1; }
    100% { opacity: 0; }
}

.gift-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin: 0 0 6px;
}

.gift-success p {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin: 0 0 24px;
}

.gift-success-btn {
    width: 100%;
    padding: 14px;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   RESULT - ERROR
   ======================================== */

.gift-error {
    text-align: center;
    padding: 24px 0;
}

.gift-error-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.gift-error-icon span {
    font-size: 40px;
}

.gift-error h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin: 0 0 6px;
}

.gift-error p {
    font-size: 14px;
    color: var(--tg-theme-hint-color);
    margin: 0 0 24px;
}

.gift-error-btn {
    width: 100%;
    padding: 14px;
    background: var(--tg-theme-secondary-bg-color);
    color: var(--tg-theme-text-color);
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ========================================
   RESULT - PAYMENT (Click/UzCard)
   ======================================== */

.gift-payment-info {
    text-align: center;
    padding: 16px 0;
}

.gift-payment-header {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.gift-payment-header.click { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.gift-payment-header.uzcard { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.gift-payment-header.paynet { 
    background: linear-gradient(135deg, #00c853, #00a854); 
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-payment-header.paynet img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.gift-payment-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--tg-theme-text-color);
    margin: 0 0 16px;
}

/* UzCard Details */
.gift-card-details {
    background: var(--tg-theme-secondary-bg-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    text-align: left;
}

.gift-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(128,128,128,0.1);
}

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

.gift-card-row label {
    font-size: 13px;
    color: var(--tg-theme-hint-color);
}

.gift-card-row .value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-card-row code {
    font-family: 'SF Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--tg-theme-text-color);
}

.gift-card-row .amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--tg-theme-button-color);
}

.gift-copy-btn {
    padding: 6px 10px;
    background: var(--tg-theme-button-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.gift-warning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 10px;
    color: #d97706;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.gift-action-btn {
    width: 100%;
    padding: 14px;
    background: var(--tg-theme-button-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* Loading */
.gifts-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--tg-theme-hint-color);
    font-size: 14px;
}
/* ========================================
   STARS/SUMMA INPUT MODE
   ======================================== */
.custom-input-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 6px;
    margin-bottom: 12px;
}

.custom-input-field {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.custom-input-field::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.input-mode-switch {
    display: flex;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 10px;
    padding: 3px;
    flex-shrink: 0;
}

.mode-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

[data-theme="dark"] .input-mode-switch {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   HOME HERO CARD - Professional
   ======================================== */
.home-hero-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.home-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.home-hero-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.hero-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-avatar span {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

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

.hero-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.hero-greeting {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

.hero-balance-block {
    margin-bottom: 16px;
}

.hero-balance-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 4px;
}

.hero-balance-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.hero-balance {
    font-size: 36px;
    font-weight: 800;
    color: white;
}

.hero-currency {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.hero-topup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 14px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.hero-topup-btn:active {
    transform: scale(0.98);
    background: rgba(255,255,255,0.3);
}

.hero-topup-btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   WEEKLY BONUS CARD
   ======================================== */
.weekly-bonus-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 18px;
    margin-bottom: 20px;
}

.bonus-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bonus-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #ffd700, #ff9500);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.bonus-info {
    flex: 1;
}

.bonus-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.bonus-progress-section {
    margin-bottom: 14px;
}

.bonus-progress-bar {
    height: 10px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.bonus-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34c759, #30d158);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.bonus-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.bonus-current {
    color: var(--text-primary);
    font-weight: 600;
}

.bonus-target {
    color: var(--text-secondary);
}

.bonus-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.15), rgba(48, 209, 88, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

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

.bonus-reward-value {
    font-size: 16px;
    font-weight: 700;
    color: #34c759;
}

/* ========================================
   RATING CATEGORIES
   ======================================== */
.rating-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    padding: 0 4px;
}

.rating-cat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px;
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-cat.active {
    border-color: var(--accent);
    background: rgba(0, 122, 255, 0.1);
}

[data-theme="dark"] .rating-cat.active {
    background: rgba(10, 132, 255, 0.15);
}

.rating-cat-icon {
    font-size: 22px;
}

.rating-cat span:last-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Home Stats Row - 3 columns */
.home-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.home-stat-card {
    background: var(--glass-bg-card);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    padding: 14px 12px;
    text-align: center;
}

.home-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.home-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ========================================
   GIFT LIGHT THEME FIXES
   ======================================== */
/* Gift grid items light theme */
/* ========================================
   TOP TABS UPDATE
   ======================================== */
.top-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.top-tab {
    flex: 1;
    padding: 12px 16px;
    background: var(--glass-bg-card);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.top-tab.active {
    background: var(--accent);
    color: white;
}

/* ========================================
   BONUS CARD - Tiers & Badge
   ======================================== */
.bonus-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    display: none;
}

.bonus-badge.active {
    display: block;
    background: linear-gradient(135deg, #ff9500, #ff6b00);
    color: white;
}

.bonus-badge.complete {
    display: block;
    background: linear-gradient(135deg, #34c759, #30d158);
    color: white;
}

.bonus-tiers {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--separator);
}

.bonus-tier {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: rgba(128, 128, 128, 0.1);
    border-radius: 10px;
    opacity: 0.5;
    transition: all 0.3s;
}

.bonus-tier.reached {
    opacity: 1;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.2), rgba(48, 209, 88, 0.1));
    border: 1px solid rgba(52, 199, 89, 0.3);
}

.tier-target {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.tier-reward {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.bonus-tier.reached .tier-target {
    color: #34c759;
}

.bonus-tier.reached .tier-reward {
    color: #34c759;
}

/* ========================================
   GIFT LIGHT THEME - Nomlari
   ======================================== */
/* Gift grid light theme */
/* Gift payments light theme */
/* Gift card light theme - nomlari */
/* ========================================
   BONUS STATUS - Yangi sodda dizayn
   ======================================== */
.bonus-status {
    margin-top: 12px;
    text-align: center;
}

.bonus-status-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.bonus-status-text strong {
    color: var(--text-primary);
}

.bonus-status-text.complete {
    color: #34c759;
    font-weight: 600;
}

.bonus-status-text.complete strong {
    color: #34c759;
}

.bonus-desc strong {
    color: #34c759;
}

/* ========================================
   HEADER - Balance & Topup Button
   ======================================== */
.header-balance-block {
    display: flex;
    align-items: center;
}

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

.header-balance-filled.hidden {
    display: none;
}

.header-balance-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-balance-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.header-balance-label {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.header-topup-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007aff, #0055cc);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

.header-topup-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

.header-topup-btn:active {
    transform: scale(0.92);
}

[data-theme="dark"] .header-topup-btn {
    background: linear-gradient(135deg, #0a84ff, #0066ff);
}

/* Balans yo'q tugmasi */
.header-balance-empty {
    display: none;
    padding: 10px 16px;
    background: linear-gradient(135deg, #34c759, #28a745);
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.3);
    white-space: nowrap;
}

.header-balance-empty.show {
    display: block;
}

.header-balance-empty:active {
    transform: scale(0.95);
}

[data-theme="dark"] .header-balance-empty {
    background: linear-gradient(135deg, #30d158, #28cd50);
}

/* ========================================
   SERVICES SHOWCASE - Yangi chiroyli dizayn
   ======================================== */
.services-showcase {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.showcase-card {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:active {
    transform: scale(0.98);
}

/* Stars Card - Sariq/Oltin gradient */
.showcase-card.stars-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.showcase-card.stars-card:hover {
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

/* Premium Card - Ko'k/Binafsha gradient */
.showcase-card.premium-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.showcase-card.premium-card:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

/* Gift Card - Pushti/Qizil gradient */
.showcase-card.gift-card-home {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.showcase-card.gift-card-home:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

/* Glow effect */
.showcase-glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Content */
.showcase-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    z-index: 1;
}

.showcase-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    backdrop-filter: blur(5px);
}

.showcase-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.showcase-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.showcase-subtitle {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* Badge */
.showcase-badge {
    position: absolute;
    top: 10px;
    right: 40px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.showcase-badge.premium {
    background: rgba(255, 215, 0, 0.3);
}

.showcase-badge.gift {
    background: rgba(255, 255, 255, 0.3);
}

/* Arrow */
.showcase-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    flex-shrink: 0;
}

/* Dark theme adjustments */
[data-theme="dark"] .showcase-card.stars-card {
    background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #92400e 100%);
}

[data-theme="dark"] .showcase-card.premium-card {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

[data-theme="dark"] .showcase-card.gift-card-home {
    background: linear-gradient(135deg, #db2777 0%, #be185d 50%, #9d174d 100%);
}

/* Animation on load */
@keyframes slideInCard {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.showcase-card {
    animation: slideInCard 0.4s ease forwards;
}

.showcase-card:nth-child(1) { animation-delay: 0.05s; }
.showcase-card:nth-child(2) { animation-delay: 0.1s; }
.showcase-card:nth-child(3) { animation-delay: 0.15s; }

/* Pulse animation for icons */
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.showcase-card:hover .showcase-icon {
    animation: iconPulse 0.5s ease;
}

/* ==========================================
   PROCESSING & RESULT MODALS (GIF)
   ========================================== */

/* Processing Modal */
.processing-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.processing-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.processing-text {
    margin-top: 20px;
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Result Modal */
.result-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.result-gif {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.result-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-modal.success .result-text {
    color: #22c55e;
}

.result-modal.error .result-text {
    color: #ef4444;
}

/* ==========================================
   SERVICES GRID - GIF KARTALAR
   ========================================== */

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.service-card {
    position: relative;
    width: 94%;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
}

.service-card:active {
    transform: scale(0.98);
}

/* Glow effectlar */
.service-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.12;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.service-card-glow.stars {
    background: radial-gradient(circle at 20% 50%, #f59e0b 0%, transparent 60%);
}

.service-card-glow.premium {
    background: radial-gradient(circle at 20% 50%, #8b5cf6 0%, transparent 60%);
}

.service-card-glow.gift {
    background: radial-gradient(circle at 20% 50%, #ec4899 0%, transparent 60%);
}

.service-card:hover .service-card-glow,
.service-card:active .service-card-glow {
    opacity: 0.2;
}

/* Card ichki qismi - horizontal */
.service-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}

/* GIF animatsiya - KATTA */
.service-gif {
    width: 72px;
    height: 72px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Matnlar */
.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.service-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.service-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.service-arrow {
    width: 22px;
    height: 22px;
    color: var(--text-tertiary);
    flex-shrink: 0;
    opacity: 0.6;
}

/* Hover animatsiya */
@keyframes serviceGifBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.service-card:hover .service-gif {
    animation: serviceGifBounce 0.5s ease;
}

/* Dark theme */
[data-theme="dark"] .service-card {
    background: var(--bg-secondary);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .service-card-glow {
    opacity: 0.18;
}

/* ==========================================
   STARS PAGE - PROFESSIONAL DIZAYN
   ========================================== */

.stars-header {
    text-align: center;
    padding: 16px 20px 20px;
}

.stars-main-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.title-stars-gif {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.stars-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.stars-section {
    padding: 0 16px;
    margin-bottom: 14px;
}

.stars-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stars-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stars-for-me-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-for-me-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
}

/* Username input - to'g'rilangan */
.stars-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.stars-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
    z-index: 1;
}

.stars-input-field {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px 12px 42px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.stars-input-field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.stars-input-field::placeholder {
    color: var(--text-tertiary);
    opacity: 0.7;
}

/* User preview */
.stars-user-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 12px 6px 6px;
    margin: 0 16px 14px;
}

.stars-user-preview.hidden {
    display: none;
}

.stars-user-preview .preview-avatar-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.stars-user-preview .preview-avatar-img,
.stars-user-preview .preview-avatar-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.stars-user-preview .preview-avatar-letter {
    font-size: 13px;
}

.stars-user-preview .preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.stars-user-preview .preview-name {
    font-size: 14px;
    font-weight: 600;
}

.stars-user-preview .preview-username {
    font-size: 12px;
}

.stars-user-preview .preview-clear-btn {
    width: 22px;
    height: 22px;
    padding: 3px;
}

/* Packages - Professional */
.stars-packages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stars-package {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2b2b2d;
    border: 2px solid #3e3e40;
    border-radius: 50px;
    padding: 10px 16px 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.stars-package:active {
    transform: scale(0.985);
}

.stars-package.selected {
    border-color: #3b82f6;
}

.stars-package-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.stars-package-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stars-package-amount {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.stars-package-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Expand buttons */
.stars-expand-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: calc(100% - 32px);
    margin: 0 16px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s;
}

.stars-expand-btn:active {
    background: var(--bg-tertiary);
    transform: scale(0.98);
}

.stars-expand-btn .expand-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.stars-expand-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Custom amount section */
.stars-custom-section {
    padding: 0 16px;
    margin-bottom: 14px;
}

.stars-custom-section.hidden {
    display: none;
}

.stars-custom-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px 10px;
}

.stars-custom-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
    padding: 6px 4px;
}

.stars-custom-input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.stars-input-mode-switch {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 6px;
    padding: 2px;
}

.stars-input-mode-switch .mode-btn {
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-input-mode-switch .mode-btn.active {
    background: var(--accent);
    color: white;
}

.stars-custom-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 0 2px;
}

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

.custom-price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
}

/* Buy button */
.stars-buy-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 16px 16px 10px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.stars-buy-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

/* History link */
.stars-history-link {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}

/* ==========================================
   PREMIUM PAGE - YANGI DIZAYN
   ========================================== */

.premium-header {
    text-align: center;
    padding: 20px 16px 24px;
}

.premium-main-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.title-premium-gif {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.premium-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.premium-section {
    padding: 0 16px;
    margin-bottom: 16px;
}

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

.premium-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.premium-header-btns {
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-link-btn {
    background: transparent;
    color: var(--accent);
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.premium-for-me-btn {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.premium-for-me-btn:active {
    opacity: 0.8;
}

.premium-discount-badge {
    background: #22c55e;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Username input */
.premium-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.premium-input-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    pointer-events: none;
}

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

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

.premium-input-field::placeholder {
    color: var(--text-tertiary);
}

/* User preview - kompakt */
.premium-user-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px 12px 6px 6px;
    margin: 0 16px 14px;
}

.premium-user-preview.hidden {
    display: none;
}

.premium-user-preview .preview-avatar-wrap {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.premium-user-preview .preview-avatar-img,
.premium-user-preview .preview-avatar-letter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.premium-user-preview .preview-avatar-letter {
    font-size: 13px;
}

.premium-user-preview .preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.premium-user-preview .preview-name {
    font-size: 14px;
    font-weight: 600;
}

.premium-user-preview .preview-username {
    font-size: 12px;
}

.premium-user-preview .preview-clear-btn {
    width: 22px;
    height: 22px;
    padding: 3px;
}

/* Plans */
.premium-plans {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-plan {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2b2b2d;
    border: 2px solid #3e3e40;
    border-radius: 50px;
    padding: 10px 16px 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.premium-plan:active {
    transform: scale(0.985);
}

.premium-plan.selected {
    border-color: #3b82f6;
}

.premium-plan.admin-plan {
    opacity: 0.85;
}

.premium-plan-duration {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 45px;
}

.premium-plan-discount {
    background: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.premium-plan-admin-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
}

.premium-plan-price {
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Buy button */
.premium-buy-btn {
    display: block;
    width: calc(100% - 32px);
    margin: 20px 16px 12px;
    background: var(--accent);
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.premium-buy-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

/* History link */
.premium-history-link {
    display: block;
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    cursor: pointer;
}
/* ==========================================
   PAYMENT SELECT MODAL - YANGI
   ========================================== */

.payment-select-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-select-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 10px 16px 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-select-item:active {
    transform: scale(0.98);
}

.payment-select-item.selected {
    border-color: var(--accent);
}

.payment-select-item.disabled {
    opacity: 0.7;
}

.payment-select-radio {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.payment-select-item.selected .payment-select-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.payment-select-item.selected .payment-select-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.payment-select-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    font-size: 18px;
}

.payment-select-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.payment-select-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.payment-select-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-select-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-select-desc.warning {
    color: #f59e0b;
}

.payment-select-desc .topup-link {
    color: var(--accent);
    font-weight: 500;
}

.payment-continue-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.payment-continue-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

/* ==========================================
   ORDER CONFIRM MODAL - YANGI
   ========================================== */

.order-confirm-content {
    margin-bottom: 16px;
}

.confirm-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 12px;
}

.confirm-avatar-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.confirm-avatar-letter {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.confirm-user-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.confirm-user-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-user-username {
    font-size: 14px;
    color: var(--text-secondary);
}

.confirm-details-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 4px 0;
}

.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.confirm-detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.confirm-detail-row.total {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0 0 14px 14px;
}

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

.confirm-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-detail-row.total .confirm-detail-value {
    color: var(--accent);
    font-size: 16px;
}

.confirm-action-buttons {
    display: flex;
    gap: 10px;
}

.confirm-cancel-btn {
    flex: 1;
    padding: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: opacity 0.2s;
}

.confirm-cancel-btn:active {
    opacity: 0.8;
}

.confirm-submit-btn {
    flex: 1;
    padding: 14px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
}

.confirm-submit-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

/* ==========================================
   PENDING ORDER CARD - YANGILANGAN
   ========================================== */

.pending-order-gif {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ==========================================
   PROFIL SAHIFASI - YANGI DIZAYN
   ========================================== */

/* Profile Header - Markazda */
.profile-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 24px;
}

.profile-avatar-big {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px;
    border: 3px solid #3e3e40;
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-big span {
    font-size: 36px;
    font-weight: 600;
    color: white;
}

.profile-name-center {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
}

.profile-username-center {
    font-size: 15px;
    color: #8e8e93;
    margin: 0;
}

/* Profile Menu Section */
.profile-menu-section {
    background: #2b2b2d;
    border-radius: 18px;
    margin-bottom: 10px;
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 12px;
}

.profile-menu-item:active {
    background: rgba(255, 255, 255, 0.05);
}

.profile-menu-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.profile-menu-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Icon background ranglari */
.profile-menu-icon.purple { background: #bf5af2; }
.profile-menu-icon.blue { background: #0a84ff; }
.profile-menu-icon.orange { background: #ff9f0a; }
.profile-menu-icon.yellow { background: #ffd60a; }
.profile-menu-icon.green { background: #30d158; }
.profile-menu-icon.cyan { background: #32ade6; }

.profile-menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: #ffffff;
}

.profile-menu-value {
    font-size: 14px;
    color: #0a84ff;
}

.profile-menu-arrow {
    font-size: 16px;
    color: #48484a;
    margin-left: 4px;
}

.profile-version {
    text-align: center;
    font-size: 13px;
    color: #48484a;
    margin-top: 20px;
}

/* ==========================================
   BUYURTMALAR TARIXI - YANGI DIZAYN
   ========================================== */

.history-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
}

/* Filter tugmalari */
.history-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.history-filters::-webkit-scrollbar {
    display: none;
}

.history-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #48484a;
    border-radius: 50px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.history-filter img {
    width: 14px;
    height: 14px;
}

.history-filter.active {
    background: #48484a;
    border-color: #48484a;
}

.history-filter:active {
    transform: scale(0.96);
}

/* History list container */
.history-list-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Har bir buyurtma card - pill shape */
.history-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    background: #2b2b2d;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Status bo'yicha background ranglar */
.history-item.status-completed {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
}

.history-item.status-pending {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.history-item.status-cancelled {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.2);
}

.history-item:active {
    background: #3a3a3c;
}

/* Left - Icon */
.history-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.history-item-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* Content - middle */
.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-item-user {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.history-item-amount {
    font-size: 11px;
    font-weight: 500;
    color: #ffc107;
}

.history-item-amount.premium {
    color: #0a84ff;
}

.history-item-amount.gift {
    color: #bf5af2;
}

.history-item-amount.topup {
    color: #30d158;
}

.history-item-meta {
    font-size: 11px;
    color: #6e6e73;
    margin-top: 2px;
}

/* Right - price & icon */
.history-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.history-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.history-item-gif {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-item-gif img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

/* Empty state */
.history-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6e6e73;
    background: #2b2b2d;
    border-radius: 50px;
}

.history-empty-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.history-empty-text {
    font-size: 13px;
}

/* Order Detail Modal */
.order-detail-modal {
    padding: 20px;
}

.order-detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.order-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #3a3a3c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-detail-icon img {
    width: 28px;
    height: 28px;
}

.order-detail-title {
    flex: 1;
}

.order-detail-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 4px;
}

.order-detail-title span {
    font-size: 13px;
    color: #8e8e93;
}

.order-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-detail-label {
    font-size: 13px;
    color: #8e8e93;
}

.order-detail-value {
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}

.order-detail-status {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.order-detail-status.pending {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
}

.order-detail-status.completed {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
}

.order-detail-status.cancelled {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}


/* ==========================================
   REFERRAL SAHIFASI - YANGI DIZAYN
   ========================================== */

/* Hero Section */
.ref-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 24px;
}

.ref-hero-gif {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    margin-bottom: 16px;
}

.ref-hero-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
}

.ref-hero-desc {
    font-size: 14px;
    color: #8e8e93;
    margin: 0;
    line-height: 1.4;
    max-width: 280px;
}

/* Bonus kartalar */
.ref-bonus-card {
    background: #2b2b2d;
    border-radius: 18px;
    padding: 4px;
    margin-bottom: 16px;
}

.ref-bonus-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
}

.ref-bonus-item:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ref-bonus-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ref-bonus-icon.blue {
    background: linear-gradient(135deg, #0a84ff 0%, #5856d6 100%);
}

.ref-bonus-icon.yellow {
    background: linear-gradient(135deg, #ffc107 0%, #ff9500 100%);
}

.ref-bonus-icon img {
    width: 28px;
    height: 28px;
}

.ref-bonus-info {
    flex: 1;
}

.ref-bonus-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.ref-bonus-desc {
    display: block;
    font-size: 13px;
    color: #8e8e93;
}

/* Action row */
.ref-action-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.ref-invite-btn {
    flex: 1;
    padding: 16px 24px;
    background: #0a84ff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

.ref-invite-btn:active {
    transform: scale(0.98);
    background: #0070e0;
}

.ref-copy-btn {
    width: 54px;
    height: 54px;
    background: #2b2b2d;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.ref-copy-btn svg {
    width: 22px;
    height: 22px;
    color: #8e8e93;
}

.ref-copy-btn:active {
    background: #3a3a3c;
}

/* Stats card */
.ref-stats-card {
    display: flex;
    align-items: center;
    background: #2b2b2d;
    border-radius: 50px;
    padding: 16px 24px;
    margin-bottom: 16px;
}

.ref-stat-item {
    flex: 1;
    text-align: center;
}

.ref-stat-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.ref-stat-label {
    display: block;
    font-size: 12px;
    color: #8e8e93;
    margin-top: 2px;
}

.ref-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.1);
}

/* Friends section */
.ref-friends-section {
    background: #2b2b2d;
    border-radius: 18px;
    overflow: hidden;
}

.ref-friends-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ref-friends-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.ref-friends-list {
    padding: 8px;
}

.ref-empty {
    padding: 32px 16px;
    text-align: center;
    color: #6e6e73;
    font-size: 14px;
}

/* Inline star GIF */
.inline-star {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin: 0 1px;
}

/* Kattaroq joylar uchun */
.inline-star-lg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   DOIM DARK MODE
   ========================================== */

/* System preference ni ignore qilish */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #1c1c1e;
        --bg-secondary: #2b2b2d;
        --bg-tertiary: #3a3a3c;
        --text-primary: #ffffff;
        --text-secondary: #8e8e93;
        --border-color: #3e3e40;
    }
    
    body {
        background-color: #1c1c1e !important;
        color: #ffffff !important;
    }
}

/* Har qanday theme ni dark qilish */
[data-theme="light"],
[data-theme="system"] {
    --bg-primary: #1c1c1e !important;
    --bg-secondary: #2b2b2d !important;
    --bg-tertiary: #3a3a3c !important;
    --text-primary: #ffffff !important;
    --text-secondary: #8e8e93 !important;
    --border-color: #3e3e40 !important;
    background-color: #1c1c1e !important;
    color: #ffffff !important;
}

/* Inline star GIF */
.inline-star {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-left: 2px;
}

/* Force Dark Theme - Telegram themaga qaramay doim qorong'i */
:root {
    color-scheme: dark !important;
}

body, 
[data-theme="light"],
[data-theme="system"] {
    --bg-primary: #1c1c1e !important;
    --bg-secondary: #2b2b2d !important;
    --bg-tertiary: #3a3a3c !important;
    --text-primary: #ffffff !important;
    --text-secondary: #8e8e93 !important;
    --border-color: #3e3e40 !important;
    background-color: #1c1c1e !important;
    color: #ffffff !important;
}

/* Header hidden state */
.header.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    position: absolute;
}

/* Smooth page content */
.main-content {
    scroll-behavior: smooth;
}

/* Universal smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Better button press effect */
button:active,
.clickable:active {
    transform: scale(0.97);
}

/* ==========================================
   TOPUP PAGE - ZAMONAVIY DIZAYN
   ========================================== */

/* Balans kartasi */
.topup-balance-card {
    position: relative;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%, 
        rgba(139, 92, 246, 0.12) 50%,
        rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-balance-bg {
    display: none;
}

.topup-balance-content {
    position: relative;
    z-index: 1;
}

.topup-balance-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.topup-balance-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.topup-balance-icon {
    position: relative;
    z-index: 1;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.topup-balance-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Summa kiritish */
.topup-input-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.topup-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.topup-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topup-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    padding: 0;
    min-width: 0;
}

.topup-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.topup-input-currency {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.topup-input-hint {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
    opacity: 0.7;
}

/* Tez summa tugmalari */
.topup-quick-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.topup-quick-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.topup-quick-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.topup-quick-btn:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.topup-quick-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a78bfa;
}

/* To'lov tugmasi */
.topup-pay-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.topup-pay-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    box-shadow: none;
    cursor: not-allowed;
}

.topup-pay-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

.topup-pay-btn:not(:disabled):active {
    transform: scale(0.98);
}

.topup-pay-text {
    font-weight: 600;
}

.topup-pay-amount {
    font-weight: 700;
    opacity: 0.9;
}

/* ========== TOPUP - BO'LIM AJRATUVCHI ========== */
.topup-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
}

.topup-divider::before,
.topup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.topup-divider span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== TOPUP - PAYNET SECTION ========== */
.topup-paynet-section {
    padding-top: 4px;
}

.topup-section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-align: center;
}

/* Telegram ID - Markazlashtirilgan */
.topup-telegram-id {
    background: linear-gradient(135deg, #1a472a 0%, #2d5a3d 100%);
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid rgba(0, 200, 83, 0.2);
}

.topup-tid-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.topup-tid-value {
    font-size: 24px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    font-family: 'SF Mono', 'Menlo', monospace;
}

/* Terminal rasmi */
.topup-terminal-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
}

.topup-terminal-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Qo'llanma box */
.topup-guide-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
}

.topup-guide-header-static {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topup-guide-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00c853, #00a854);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.topup-guide-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.topup-guide-title {
    flex: 1;
}

.topup-guide-title strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1px;
}

.topup-guide-title span {
    font-size: 11px;
    color: var(--text-secondary);
}

.topup-guide-steps {
    padding: 8px 16px 16px;
}

.topup-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.topup-guide-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.topup-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a472a, #2d5a3d);
    border: 1px solid rgba(0, 200, 83, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #00c853;
    flex-shrink: 0;
}

.topup-guide-step p {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.45;
    margin: 0;
}

.topup-guide-step p strong {
    color: #00c853;
}

/* Eski accordion stillarni o'chirish */
.topup-guide-section,
.topup-guide-header,
.topup-guide-arrow,
.topup-guide-content,
.topup-paynet-guide {
    display: none;
}

/* ==========================================
   PAYMENT PAGE - TO'LIQ EKRAN
   ========================================== */

.payment-page-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    animation: pageSlideIn 0.3s ease;
}

.payment-page-overlay.hidden {
    display: none;
}

.payment-page-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pp-container {
    flex: 1;
    padding: 24px 20px;
    padding-top: max(24px, env(safe-area-inset-top));
}

/* Hero */
.pp-hero {
    text-align: center;
    padding: 20px 0 24px;
}

.pp-hero-gif {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}

.pp-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pp-hero-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Timer section (UzCard) */
.pp-timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.pp-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(239, 68, 68, 0.1);
    padding: 12px 24px;
    border-radius: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pp-timer-value {
    font-size: 32px;
    font-weight: 700;
    color: #ef4444;
    min-width: 44px;
    text-align: center;
}

.pp-timer-sep {
    font-size: 28px;
    font-weight: 700;
    color: #ef4444;
}

.pp-timer-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Pay link/button */
.pp-pay-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 auto 20px;
    width: fit-content;
    min-width: 200px;
    transition: all 0.2s ease;
}

.pp-pay-link.paynet {
    background: linear-gradient(135deg, #00c853, #00a854);
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
}

.pp-pay-link.click {
    background: linear-gradient(135deg, #007aff, #5856d6);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.pp-pay-link:active {
    transform: scale(0.96);
}

.pp-pay-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: contain;
}

.pp-pay-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

/* Card section (UzCard) */
.pp-card-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.pp-card-row:last-of-type {
    border-bottom: none;
}

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

.pp-card-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-card-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'SF Mono', monospace;
    letter-spacing: 1px;
}

.pp-card-amount {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

.pp-copy-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pp-copy-btn svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.pp-copy-btn:active {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(0.9);
}

.pp-card-warning {
    font-size: 13px;
    color: #f59e0b;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* v18.52: avto to'lov kuzatuv holati (vednux / gram / stars) */
.pp-poll-note {
    font-size: 12.5px;
    color: #30d158;
    text-align: center;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: pp-poll-pulse 1.6s ease-in-out infinite;
}

@keyframes pp-poll-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* Stars bilan to'lash tugmasi uchun logo o'lchami */
.pp-pay-link.stars .pp-pay-logo {
    border-radius: 10px;
    background: rgba(28, 28, 30, 0.12);
}

/* Uzun hamyon manzili mobil qurilmalarda ham to'liq ko'rinsin */
.pp-card-value .pp-card-number {
    word-break: break-all;
    white-space: normal;
    line-height: 1.4;
    text-align: right;
    flex: 1 1 auto;
    min-width: 0;
}

/* Details accordion */
.pp-details-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.pp-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pp-details-arrow {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.pp-details-arrow.rotated {
    transform: rotate(180deg);
}

.pp-details-content {
    padding: 0 16px 16px;
    transition: all 0.2s ease;
}

.pp-details-content.collapsed {
    display: none;
}

.pp-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 8px;
}

.pp-detail-row:last-child {
    margin-bottom: 0;
}

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

.pp-detail-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-detail-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-avatar-letter {
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.pp-detail-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.pp-detail-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.pp-amount-icon {
    width: 20px;
    height: 20px;
}

.pp-detail-price {
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
}

/* Footer */
.pp-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-primary);
}

.pp-footer-back {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
}

.pp-footer-pay {
    flex: 1.5;
    padding: 14px;
    border-radius: 12px;
    background: #3b82f6;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: all 0.2s ease;
}

.pp-footer-pay:active {
    transform: scale(0.98);
    background: #2563eb;
}
/* ==========================================
   SKELETON LOADING
   ========================================== */
@keyframes skeleton-shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,255,255,0.06) 25%,
        rgba(255,255,255,0.12) 50%,
        rgba(255,255,255,0.06) 75%
    );
    background-size: 800px 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}

/* Home skeleton */
.skeleton-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 50px;
    margin-bottom: 6px;
}
.skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}
.skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
}
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 60%; }
.skeleton-line.long { width: 80%; }
.skeleton-price {
    width: 60px;
    height: 14px;
    border-radius: 6px;
    flex-shrink: 0;
}

/* History skeleton */
.skeleton-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 50px;
    margin-bottom: 8px;
}

/* Top skeleton */
.skeleton-top-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    margin-bottom: 8px;
}
.skeleton-rank {
    width: 28px;
    height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
}
.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Gift skeleton */
.skeleton-gift-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 14px 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.skeleton-gift-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
}
.skeleton-gift-name {
    width: 70%;
    height: 10px;
    border-radius: 5px;
}
.skeleton-gift-price {
    width: 50%;
    height: 10px;
    border-radius: 5px;
}

/* Stars packages skeleton */
.skeleton-package {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    padding: 10px 16px 10px 12px;
    margin-bottom: 6px;
}
.skeleton-package-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
}
.skeleton-package-amount {
    flex: 1;
    height: 14px;
    border-radius: 6px;
    width: 40%;
}
.skeleton-package-price {
    width: 70px;
    height: 12px;
    border-radius: 6px;
}

/* Profile skeleton */
.skeleton-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 24px;
    gap: 12px;
}
.skeleton-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.skeleton-profile-name {
    width: 140px;
    height: 18px;
    border-radius: 8px;
}
.skeleton-profile-username {
    width: 100px;
    height: 14px;
    border-radius: 6px;
}
.skeleton-menu-section {
    background: rgba(255,255,255,0.03);
    border-radius: 18px;
    padding: 4px;
    margin-bottom: 10px;
}
.skeleton-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.skeleton-menu-item:last-child {
    border-bottom: none;
}
.skeleton-menu-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
}
.skeleton-menu-text {
    flex: 1;
    height: 14px;
    border-radius: 6px;
    width: 50%;
}
.skeleton-menu-value {
    width: 60px;
    height: 12px;
    border-radius: 5px;
}

/* Skeleton wrapper - sahifa ustiga */
.skeleton-page-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 8px 0;
    z-index: 10;
    background: var(--bg-primary);
    min-height: 100%;
}

.skeleton-full-card {
    margin-bottom: 8px;
}