@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700;900&family=Roboto+Mono:wght@600;700&display=swap');

:root {
    --bg-primary: #0f0f11;
    --bg-secondary: #18181b;
    --bg-card: #1e1e22;
    --accent-primary: #e67e22;
    --accent-secondary: #3498db;
    --accent-hover: #d35400;
    --text-primary: #d4d4d8;
    --text-secondary: #8b8b8f;
    --text-muted: #5a5a5e;
    --border-color: #2a2a2d;
    --success: #27ae60;
    --warning: #f39c12;
    --error: #e74c3c;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 100%;
    width: 100%;
    padding: 0 16px;
    margin: 0 auto;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(24, 24, 27, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-user-block {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.user-avatar-mini {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s;
    margin-right: 8px;
}

.user-avatar-mini:hover {
    transform: scale(1.05);
}

.user-avatar-mini svg {
    width: 20px;
    height: 20px;
    fill: white;
}

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

.header-balance-group {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 6px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    font-family: 'Orbitron', -apple-system, sans-serif;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
    text-transform: uppercase;
}

.balance-icon {
    font-size: 16px;
    color: var(--text-secondary);
}

.balance-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.balance-add-btn:hover {
    background: #d35400;
    transform: scale(1.1);
}

.balance-add-btn:active {
    transform: scale(0.95);
}

.balance-amount {
    font-weight: 600;
    font-size: 14px;
}

.main {
    margin-top: 62px;
}

/* Промо баннер */
.promo-banner {
    background: var(--bg-secondary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(230, 126, 34, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.promo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-primary), #d35400);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.promo-content {
    flex: 1;
}

.promo-title {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.promo-code {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 6px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(230, 126, 34, 0.3);
    background: linear-gradient(135deg, var(--accent-primary) 0%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.promo-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.promo-link {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.promo-link:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.promo-link svg {
    width: 28px;
    height: 28px;
    color: var(--accent-primary);
}

.promo-link span {
    font-size: 12px;
    font-weight: 500;
}

/* Активация промокода в профиле */
.promo-activation {
    padding: 20px 0;
}

.promo-activation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.promo-activation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

.promo-activation-header svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.promo-activation-input {
    display: flex;
    gap: 12px;
    width: 100%;
}

.promo-activation-input input {
    flex: 1;
    min-width: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-activation-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.promo-activation-input input::placeholder {
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.promo-activation-btn {
    background: linear-gradient(135deg, var(--accent-primary), #d35400);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-activation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.promo-activation-btn:active {
    transform: translateY(0);
}

.hero {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, rgba(26, 26, 31, 0.85) 0%, rgba(42, 24, 16, 0.85) 100%), 
                url('https://i.ibb.co/r2c38Wc0/image.png') center center / cover no-repeat;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    min-height: 180px;
    background-blend-mode: multiply;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

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

.stats {
    padding: 0;
    background: transparent;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-item {
    text-align: center;
    padding: 18px 12px;
    background: rgba(30, 30, 34, 0.85);
    border-radius: 8px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-top: 28px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories {
    padding: 16px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.category-card.active {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(230, 126, 34, 0.05) 100%);
    transform: scale(1.02);
}

.category-card:active {
    transform: scale(0.97);
}

.category-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 8px;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--accent-primary) !important;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.category-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.products {
    padding: 16px 0 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 16px;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card:hover {
    border-color: var(--accent-primary);
}

.product-card:active {
    transform: scale(0.99);
}

/* Недоступные товары */
.product-card.product-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-card.product-disabled:hover {
    border-color: var(--border-color);
    transform: none;
}

.product-card.product-disabled .product-image {
    filter: grayscale(70%);
}

.product-card.product-disabled .buy-button {
    background: var(--text-muted) !important;
    cursor: not-allowed !important;
}

.product-card.product-disabled .buy-button:hover {
    background: var(--text-muted) !important;
    transform: none !important;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.product-image {
    width: 100%;
    height: 140px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.product-image svg {
    width: 48px;
    height: 48px;
    fill: var(--accent-primary) !important;
    opacity: 0.8;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.product-info {
    padding: 16px;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    flex: 1;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 4px;
    font-size: 10px;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-status::before {
    content: '●';
    font-size: 7px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.product-game {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.product-stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-stock-indicator.in-stock {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.product-stock-indicator.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.product-stock-indicator svg {
    fill: currentColor;
    flex-shrink: 0;
}

.product-stock-indicator strong {
    font-weight: 700;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.feature-tag {
    background: rgba(230, 126, 34, 0.1);
    color: var(--accent-primary);
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-primary);
}

.buy-button {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.buy-button:hover {
    background: #d35400 !important;
}

.buy-button:active {
    transform: scale(0.96) !important;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 8px;
    flex: 1;
    max-width: 100px;
}

.nav-item.active {
    color: var(--accent-primary) !important;
    background: rgba(230, 126, 34, 0.08) !important;
}

.nav-item.active .nav-icon svg {
    fill: var(--accent-primary) !important;
}

.nav-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--text-muted) !important;
    transition: fill 0.2s;
}

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

.nav-label {
    font-size: 10px;
    font-weight: 500;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-product-image {
    width: 100%;
    height: 180px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-product-image svg {
    width: 64px;
    height: 64px;
    fill: var(--accent-primary);
    position: relative;
    border: 1px solid var(--border-color);
    letter-spacing: 3px;
}

.modal-product-name {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.modal-product-game {
    font-size: 16px;
    color: var(--text-secondary);
}

.modal-product-stock {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.modal-product-stock.in-stock {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.modal-product-stock.out-of-stock {
    background: rgba(231, 76, 60, 0.15);
    color: var(--error);
}

.modal-product-status {
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.modal-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--accent-primary), #d35400);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-product-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-features-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-features-list {
    list-style: none;
    margin-bottom: 24px;
}

.modal-features-list li {
    padding: 12px;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-features-list li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 18px;
}

.modal-price-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.modal-price-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.modal-price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
}

.modal-total-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.quantity-selector {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.quantity-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1);
}

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

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}

.modal-buy-button {
    width: 100%;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-buy-button:hover:not(.disabled) {
    background: #d35400 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.modal-buy-button.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.modal-buy-button:hover {
    background: #d35400 !important;
}

.modal-buy-button:active {
    transform: scale(0.98) !important;
}

@media (min-width: 768px) {
    .container {
        max-width: 640px;
        padding: 0 24px;
    }
    
    .hero {
        padding: 100px 0 50px;
        min-height: 240px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .stats {
        margin-top: -80px;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-item {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.hidden {
    display: none !important;
}

.page-content {
    display: block;
}

.profile-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 32px 0 24px;
}

.profile-header .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #d35400);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--border-color);
}

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

.profile-avatar svg {
    width: 48px;
    height: 48px;
    fill: white;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.profile-username {
    font-size: 14px;
    color: var(--text-muted);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.profile-balance {
    padding: 24px 0;
}

.balance-card {
    background: linear-gradient(135deg, #1a1a1f 0%, #2a1810 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.balance-card-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-card-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.balance-card-button {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-card-button:hover {
    background: #d35400;
}

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

.profile-stats {
    padding: 24px 0;
    background: var(--bg-secondary);
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.profile-stat-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.profile-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 32px 0 24px;
}

.profile-referral {
    padding: 0 0 24px;
    background: var(--bg-secondary);
}

.referral-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.referral-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.referral-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.referral-link-container {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.referral-link-input {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.referral-copy-btn {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.referral-copy-btn:hover {
    background: #d35400;
    transform: scale(1.05);
}

.referral-copy-btn:active {
    transform: scale(0.95);
}

.referral-copy-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.referral-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.referral-stat-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.referral-stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: 10px;
    flex-shrink: 0;
}

.referral-stat-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.referral-stat-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.referral-stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.referral-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-bonus-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.referral-bonus-info svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-primary);
    flex-shrink: 0;
}

.profile-orders {
    padding: 24px 0 100px;
}

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

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 8px;
}

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

.order-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.order-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.order-content-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.order-content-value {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--bg-primary);
    padding: 10px;
    border-radius: 6px;
    word-break: break-all;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.copy-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    background: rgba(46, 213, 115, 0.1);
    color: var(--success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 90%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-primary);
}

/* Toast types */
.toast-success {
    border-left: 3px solid var(--success);
}

.toast-success .toast-icon svg {
    fill: var(--success);
}

.toast-error {
    border-left: 3px solid var(--error);
}

.toast-error .toast-icon svg {
    fill: var(--error);
}

.toast-warning {
    border-left: 3px solid var(--warning);
}

.toast-warning .toast-icon svg {
    fill: var(--warning);
}

.toast-info {
    border-left: 3px solid var(--accent-primary);
}

.toast-info .toast-icon svg {
    fill: var(--accent-primary);
}

/* Top-up Modal */
.topup-modal-content {
    max-width: 420px;
    margin: auto;
    border-radius: 24px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#topUpModal {
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#topUpModal .modal-content {
    animation: scaleIn 0.3s ease;
}

.topup-modal-body {
    padding: 24px;
}

.topup-header {
    text-align: center;
    margin-bottom: 32px;
}

.topup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topup-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.topup-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.topup-input-group {
    margin-bottom: 20px;
}

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

.topup-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.topup-currency {
    position: absolute;
    left: 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
}

.topup-input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.topup-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.topup-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.preset-btn {
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.payment-method {
    margin-bottom: 24px;
}

.payment-method-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.payment-option.selected {
    border-color: var(--accent-primary);
}

.payment-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

.payment-check {
    width: 24px;
    height: 24px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-check svg {
    width: 16px;
    height: 16px;
    fill: white;
}

.topup-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.topup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 126, 34, 0.3);
}

.topup-submit-btn:active {
    transform: translateY(0);
}

/* Custom Purchase Modals */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal.active {
    display: flex;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

.custom-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.custom-modal-header {
    text-align: center;
    padding: 32px 24px 24px;
    border-bottom: 1px solid var(--border-color);
}

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

.custom-modal-icon.success {
    background: rgba(39, 174, 96, 0.15);
}

.custom-modal-icon.success svg {
    fill: var(--success);
    width: 32px;
    height: 32px;
}

.custom-modal-icon.error {
    background: rgba(231, 76, 60, 0.15);
}

.custom-modal-icon.error svg {
    fill: var(--error);
    width: 32px;
    height: 32px;
}

.custom-modal-icon.warning {
    background: rgba(243, 156, 18, 0.15);
}

.custom-modal-icon.warning svg {
    fill: var(--warning);
    width: 32px;
    height: 32px;
}

.custom-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.custom-modal-body {
    padding: 24px;
}

.custom-modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

.custom-modal-product-content {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-primary);
    word-break: break-all;
    white-space: pre-wrap;
}

.custom-modal-actions {
    padding: 20px 24px 24px;
    display: flex;
    gap: 12px;
}

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

.custom-modal-btn.primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
}

.custom-modal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(230, 126, 34, 0.3);
}

.custom-modal-btn.primary:active {
    transform: translateY(0);
}

.custom-modal-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.custom-modal-btn.secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============ SUPPORT / TICKETS STYLES ============ */

.tickets-container {
    max-width: 900px;
    margin: 0 auto;
}

.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.support-header .section-title {
    display: flex;
    align-items: center;
    margin: 0;
}

.create-ticket-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.create-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 126, 34, 0.3);
}

.create-ticket-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.ticket-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ticket-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.ticket-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.ticket-status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-status-badge.open {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.ticket-status-badge.closed {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
}

.ticket-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-secondary);
}

.ticket-unread {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Ticket View */
.ticket-view {
    max-width: 900px;
    margin: 0 auto;
}

.ticket-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(230, 126, 34, 0.1);
}

.back-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--text-primary);
}

.ticket-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ticket-info h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.ticket-messages {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.message-item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.message-item:last-child {
    margin-bottom: 0;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message-avatar.user {
    background: rgba(52, 152, 219, 0.15);
}

.message-avatar.admin {
    background: rgba(230, 126, 34, 0.15);
}

.message-avatar svg {
    width: 20px;
    height: 20px;
}

.message-avatar.user svg {
    fill: #3498db;
}

.message-avatar.admin svg {
    fill: var(--accent-primary);
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.message-author {
    font-weight: 600;
    font-size: 14px;
}

.message-author.user {
    color: #3498db;
}

.message-author.admin {
    color: var(--accent-primary);
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-text {
    background: var(--bg-card);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ticket-reply {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.ticket-reply.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.ticket-reply textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 12px;
}

.ticket-reply textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.send-message-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.send-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.3);
}

.send-message-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.empty-tickets {
    text-align: center;
    padding: 60px 20px;
}

.empty-tickets svg {
    width: 80px;
    height: 80px;
    fill: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-tickets h3 {
    color: var(--text-primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-tickets p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile responsive for tickets */
@media (max-width: 768px) {
    /* Container padding */
    .container {
        padding: 0 12px;
        max-width: 100%;
    }
    
    /* Profile header */
    .profile-header {
        padding: 24px 0 20px;
    }
    
    .profile-header .container {
        gap: 12px;
    }
    
    .profile-avatar {
        width: 64px;
        height: 64px;
    }
    
    .profile-avatar svg {
        width: 36px;
        height: 36px;
    }
    
    .profile-name {
        font-size: 20px;
        word-break: break-word;
    }
    
    .profile-username {
        font-size: 13px;
        word-break: break-word;
    }
    
    /* Balance card */
    .balance-card {
        padding: 20px 16px;
    }
    
    .balance-card-amount {
        font-size: 28px;
        word-break: break-word;
    }
    
    .balance-card-button {
        width: 100%;
        padding: 14px 24px;
    }
    
    /* Profile stats */
    .profile-stats-grid {
        gap: 10px;
    }
    
    .profile-stat-item {
        padding: 16px 12px;
    }
    
    .profile-stat-number {
        font-size: 20px;
    }
    
    /* Referral card */
    .referral-card {
        padding: 16px;
        gap: 16px;
    }
    
    .referral-link-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .referral-link-input {
        width: 100%;
        font-size: 12px;
        padding: 10px;
        word-break: break-all;
    }
    
    .referral-copy-btn {
        width: 100%;
        height: 44px;
    }
    
    .referral-stats {
        gap: 10px;
    }
    
    .referral-stat-item {
        padding: 12px;
        gap: 10px;
    }
    
    .referral-stat-icon {
        width: 36px;
        height: 36px;
    }
    
    .referral-stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .referral-stat-number {
        font-size: 18px;
    }
    
    .referral-stat-label {
        font-size: 10px;
    }
    
    .referral-bonus-info {
        padding: 10px;
        font-size: 12px;
        word-break: break-word;
    }
    
    /* Orders */
    .order-card {
        padding: 14px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .order-content-value {
        font-size: 12px;
        word-break: break-all;
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-stock-indicator {
        font-size: 11px;
        padding: 5px 8px;
        margin-bottom: 10px;
    }
    
    .product-stock-indicator svg {
        width: 12px;
        height: 12px;
    }
    
    /* Modal */
    .modal-content {
        width: calc(100% - 32px);
        max-height: calc(100vh - 40px);
        margin: 20px 16px;
        padding: 20px 16px;
    }
    
    .modal-product-name {
        font-size: 20px;
        word-break: break-word;
    }
    
    .modal-features-list {
        font-size: 13px;
    }
    
    .modal-price-value {
        font-size: 28px;
    }
    
    /* Quantity selector */
    .quantity-controls {
        gap: 12px;
    }
    
    .quantity-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    .quantity-input {
        width: 70px;
        height: 36px;
        font-size: 16px;
    }
    
    /* Support */
    .support-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .create-ticket-btn {
        justify-content: center;
    }
    
    .ticket-card {
        padding: 16px;
    }
    
    .ticket-messages {
        max-height: 400px;
    }
    
    .message-item {
        gap: 10px;
    }
    
    .message-avatar {
        width: 36px;
        height: 36px;
    }
    
    .message-bubble {
        max-width: 75%;
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Page title */
    .page-title {
        font-size: 24px;
        padding: 16px 0;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Promo activation */
    .promo-activation-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .promo-activation-btn {
        width: 100%;
        padding: 14px 20px;
        white-space: normal;
    }
    
    .promo-activation-card {
        padding: 16px;
    }
    
    /* Fix overflow issues */
    body, html {
        overflow-x: hidden;
    }
    
    .page-content {
        overflow-x: hidden;
    }
    
    * {
        max-width: 100%;
    }
}
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}