/* ========================================
   MOBILE.CSS - Telegram WebApp UI v7.0
   Магазин с реальными данными API
   ======================================== */

/* ========== BASE ========== */
body.tg-webapp {
    padding-top: 60px;
    padding-bottom: 70px;
}

body.tg-webapp .header,
body.tg-webapp .footer,
body.tg-webapp .section {
    display: none !important;
}

body.page-open {
    overflow: hidden;
}

/* ========== MOBILE HEADER ========== */
#mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mh-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mh-burger {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

.mh-logo {
    font-weight: 800;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mh-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mh-balance {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.mh-balance:hover {
    border-color: var(--border-hover);
}

.mh-balance-value {
    color: var(--text-primary);
    font-weight: 700;
}

.mh-currency {
    color: var(--primary);
    font-weight: 600;
}

.mh-balance-plus {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
}

.mh-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    border: 2px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    overflow: hidden;
}

.mh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== MOBILE SHOP ========== */
#mobile-shop {
    padding: 20px 16px;
    min-height: calc(100vh - 130px);
}

.mobile-shop-header {
    margin-bottom: 24px;
    text-align: center;
}

.mobile-shop-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.mobile-shop-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.mobile-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mobile-loading,
.mobile-error,
.mobile-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.mobile-loading i,
.mobile-error i,
.mobile-empty i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: var(--primary);
    opacity: 0.5;
}

/* ========== PRODUCT CARD ========== */
.mobile-product-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.mobile-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: var(--transition-slow);
}

.mobile-product-card:hover::before {
    left: 100%;
}

.mobile-product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.mpc-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(59, 130, 246, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mpc-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.mobile-product-card:hover .mpc-image img {
    transform: scale(1.05);
}

.mpc-icon {
    display: none;
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.mpc-info {
    padding: 14px;
    text-align: center;
}

.mpc-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mpc-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.1rem;
}

/* ========== SIDE MENU ========== */
#side-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1999;
}

#side-overlay.open {
    display: block;
}

#side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-right: 1px solid var(--border);
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

#side-menu.open {
    left: 0;
}

.sm-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sm-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    overflow: hidden;
}

.sm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-name {
    font-weight: 600;
    color: var(--text-primary);
}

.sm-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sm-close {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    transition: var(--transition);
}

.sm-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

.sm-nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.sm-item:hover,
.sm-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
}

.sm-item i {
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.sm-partners {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.sm-partners-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sm-partner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.sm-partner:hover {
    border-color: var(--border-hover);
}

.sm-partner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-partner-icon.blue {
    background: var(--primary);
    color: white;
}

.sm-partner-icon.gold {
    background: #fbbf24;
    color: white;
}

.sm-partner-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.sm-partner-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* NPM Banner Partner */
.sm-partner-banner-link {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    margin-top: 10px;
}

.sm-partner-banner-link:hover {
    border-color: var(--border-hover);
}

.sm-partner-banner-link img {
    width: 100%;
    height: auto;
    min-height: 60px;
    display: block;
    object-fit: cover;
}


/* ========== BOTTOM NAV ========== */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.bn-item:hover,
.bn-item.active {
    color: var(--primary);
}

.bn-item i {
    font-size: 1.1rem;
}

.bn-item span {
    font-size: 0.65rem;
    font-weight: 500;
}

.bn-item.main {
    margin-top: -25px;
}

.bn-main-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bn-main-icon i {
    color: white;
    font-size: 1.3rem;
}

.bn-item.main span {
    margin-top: 4px;
    color: var(--primary);
}

/* ========== FULLSCREEN PAGE ========== */
.fullscreen-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    z-index: 2500;
    overflow-y: auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.page-back,
.page-action {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.page-header h2 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

/* ========== PROFILE PAGE ========== */
.profile-content {
    padding: 20px 16px;
}

.profile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.profile-stat-card {
    width: 85px;
    text-align: center;
}

.profile-stat-card .stat-badge {
    font-size: 0.45rem;
    padding: 3px 6px;
    border-radius: 6px;
    margin-bottom: 8px;
    display: inline-block;
    text-transform: uppercase;
    font-weight: 600;
}

.profile-stat-card .stat-badge.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-hover);
}

.profile-stat-card .stat-badge.gold {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.profile-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.profile-stat-card .stat-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-hover);
}

.profile-stat-card .stat-icon.gold {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.profile-stat-card .stat-value {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
}

.profile-avatar-section {
    text-align: center;
    flex: 1;
}

.profile-avatar-big {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    border: 3px solid var(--border);
    overflow: hidden;
}

.profile-avatar-big img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-balance {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

/* Profile Stats Row */
.profile-stats-row {
    display: flex;
    justify-content: space-around;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
}

.profile-stat-item {
    text-align: center;
}

.profile-stat-item i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}

.profile-stat-item span {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-stat-item label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-action-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.profile-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.profile-action-btn.secondary {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.profile-action-btn.secondary:hover {
    border-color: var(--border-hover);
    box-shadow: none;
}

/* ========== MOBILE MODAL ========== */
.mobile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-modal.open {
    opacity: 1;
    visibility: visible;
}

.mobile-modal .modal-content {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.mobile-modal .modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.mobile-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-modal .modal-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-modal .modal-header h3 i {
    color: var(--primary);
}

.mobile-modal .modal-close {
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: #ef4444;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-modal .modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.mobile-modal .modal-body {
    padding: 20px;
}

/* ========== PRODUCT MODAL ========== */
.mpm-content {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    height: 100%;
}

.mpm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.mpm-back {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.mpm-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.mpm-body {
    padding: 24px 20px;
    text-align: center;
}

.mpm-image {
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mpm-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.mpm-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
}

.mpm-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.mpm-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.mpm-status.available {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.mpm-status.unavailable {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.mpm-methods {
    text-align: left;
}

.mpm-methods-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mpm-method-btn {
    width: 100%;
    padding: 14px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.mpm-method-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.mpm-method-btn i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 24px;
    text-align: center;
}


/* ========== DEPOSIT MODAL ========== */
.deposit-body {
    padding: 20px;
}

.deposit-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    padding: 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amount-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--border-hover);
}

.amount-btn.selected {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--primary);
    color: var(--primary-hover);
}

.selected-amount {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.selected-amount strong {
    color: var(--primary-hover);
}

.payment-methods {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.methods-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.method-btn {
    width: 100%;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.method-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--border-hover);
}

.method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.method-btn i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 22px;
    text-align: center;
}

.method-btn span {
    flex: 1;
    text-align: left;
}

.method-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-radius: 6px;
    font-weight: 600;
}

/* ========== PURCHASES ========== */
.purchase-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.purchase-item:hover {
    border-color: var(--border-hover);
}

.purchase-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.purchase-info {
    flex: 1;
}

.purchase-name {
    font-weight: 600;
    color: var(--text-primary);
}

.purchase-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.purchase-link {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
}

.empty, .loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty i, .loading i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.3;
    display: block;
}

/* ========== REFERRAL ========== */
.referral-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    color: #22c55e;
    font-weight: 600;
    margin-bottom: 20px;
}

.referral-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.referral-link-box input {
    flex: 1;
    padding: 12px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.referral-link-box button {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.referral-stats {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.ref-stat {
    text-align: center;
}

.ref-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.ref-stat span {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ref-stat label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 360px) {
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-stat-card {
        width: 75px;
    }
    
    .profile-stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .profile-avatar-big {
        width: 70px;
        height: 70px;
    }
}


/* ========== MOBILE LOADER ========== */
#mobile-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#mobile-loader.active {
    opacity: 1;
    visibility: visible;
}

.loader-spinner {
    font-size: 3rem;
    color: var(--primary);
}

/* ========== MOBILE PAYMENT PAGE ========== */
#mobile-payment-page {
    background: var(--bg-dark);
}

.payment-page-content {
    padding: 24px 20px;
}

.payment-card-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.payment-tx-id {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-family: monospace;
}

.payment-product-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.payment-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
}

.payment-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
}

.payment-method-badge i {
    color: var(--primary);
}

.payment-instructions-mobile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.payment-instructions-mobile h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-instructions-mobile h4 i {
    color: var(--primary);
}

.payment-instructions-mobile ol {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

.payment-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    transition: var(--transition);
}

.payment-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.payment-actions-mobile {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-confirm-btn {
    flex: 1;
    padding: 14px 20px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 12px;
    color: #22c55e;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-confirm-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

.payment-cancel-btn {
    flex: 1;
    padding: 14px 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.payment-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.payment-status-mobile {
    text-align: center;
}

.payment-status-mobile .status-waiting {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    color: #fbbf24;
    font-weight: 600;
}

.payment-status-mobile .status-approved {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    color: #22c55e;
    font-weight: 600;
}

.payment-status-mobile .status-rejected {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    font-weight: 600;
}

/* ========== FUNPAY CODE INPUT ========== */
.funpay-code-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.funpay-code-input label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
}

.funpay-code-input input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: var(--transition);
}

.funpay-code-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.funpay-code-input input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

/* ========== CRYPTO WAITING ========== */
.crypto-waiting {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.crypto-waiting-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fbbf24;
}

.crypto-waiting p {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.crypto-waiting .crypto-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}


/* ========== ACTIVATION KEY MODAL ========== */
.activation-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.activation-info i {
    color: var(--primary);
    font-size: 1.5rem;
}

.activation-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.activation-input-box {
    margin-bottom: 16px;
}

.activation-input-box input {
    width: 100%;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 2px;
    font-family: monospace;
    transition: var(--transition);
}

.activation-input-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.activation-input-box input::placeholder {
    color: var(--text-muted);
    letter-spacing: 2px;
}

.activation-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.activation-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.activation-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.activation-result {
    margin-top: 16px;
}

.activation-result .success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #22c55e;
}

.activation-result .success i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.activation-result .success p {
    margin: 8px 0 0 0;
    color: var(--text-secondary);
}

.activation-result .success .product-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 20px;
    background: #22c55e;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.activation-result .success .product-link-btn:hover {
    background: #16a34a;
}

.activation-result .error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activation-result .error i {
    font-size: 1.2rem;
}


/* ========== PRODUCT DELIVERY PAGE ========== */
#product-delivery-page {
    background: var(--bg-dark);
}

.delivery-page-content {
    padding: 24px 20px;
}

.delivery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.delivery-key-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.8rem;
    font-family: monospace;
    margin-bottom: 20px;
}

.delivery-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.delivery-icon.success {
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.delivery-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.delivery-filename {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.delivery-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.delivery-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.delivery-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.delivery-content-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: left;
    position: relative;
}

.delivery-content-box pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
}

.copy-content-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 8px 12px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.copy-content-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.delivery-details {
    text-align: left;
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.delivery-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    color: #fbbf24;
    font-size: 0.9rem;
}

.delivery-note i {
    font-size: 1.1rem;
}


/* ========== SUPPORT MODAL ========== */
.support-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
}

.support-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.support-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
}

.support-options {
    margin-bottom: 24px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: var(--transition);
}

.support-option:hover {
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.1);
}

.support-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.support-option-icon.tg {
    background: #0088cc;
    color: white;
}

.support-option-text {
    flex: 1;
    text-align: left;
}

.support-option-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.support-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.support-option > i {
    color: var(--text-muted);
}

.support-faq {
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.faq-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-title i {
    color: var(--primary);
}

.faq-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-q {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}
