/* Elysium Stars - WebApp Stylesheet */

:root {
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left: env(safe-area-inset-left, 0px);
    --safe-area-right: env(safe-area-inset-right, 0px);
    --bottom-nav-height: 70px;
    --bottom-nav-offset: 12px;
    --bg-primary: #07090c;
    --bg-card: #0c0d10;
    --bg-input: #12141a;
    --accent-blue: #0066ff;
    --accent-blue-rgb: 0, 102, 255;
    --text-primary: #ffffff;
    --text-secondary: #90a1be;
    --text-hint: #586985;
    --success: #30d158;
    --error: #ff453a;
    --border-color: rgba(0, 102, 255, 0.16);
    --border-focus: rgba(0, 102, 255, 0.6);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
    --tg-safe-area-top: 0px;
    --tg-safe-area-bottom: 0px;
    --tg-content-safe-area-top: 0px;
    --tg-content-safe-area-bottom: 0px;
    --tg-viewport-stable-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
    display: none;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(circle at 10% 15%, rgba(0, 102, 255, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 90% 85%, rgba(0, 102, 255, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 60%),
                var(--bg-primary);
    background-attachment: fixed;
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    touch-action: pan-y;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 15%, rgba(0, 102, 255, 0.18) 0%, transparent 45%),
                radial-gradient(circle at 90% 85%, rgba(0, 102, 255, 0.18) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.05) 0%, transparent 60%),
                var(--bg-primary);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}
.loader {
    width: 50px;
    height: 50px;
    color: var(--accent-blue);
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* App Container */
#app {
    width: 100%;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + var(--bottom-nav-offset) + var(--safe-area-bottom) + 16px);
    transition: opacity 0.3s ease;
}

/* Top Header */
.top-header {
    width: 100%;
    padding: 12px 16px;
    padding-top: calc(12px + var(--safe-area-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0b;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1d2b49 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    cursor: pointer;
}
.header-balance-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 4px 10px;
    height: 32px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    transition: background 0.2s;
}
.header-balance-pill:active {
    background: rgba(255, 255, 255, 0.12);
}
.balance-diamond {
    color: var(--accent-blue);
    font-size: 12px;
}
.balance-plus {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-left: 2px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-action-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-action-btn:active {
    background: rgba(255, 255, 255, 0.12);
}
.header-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}
.user-info-text {
    display: none;
}
.user-display-name {
    font-size: 14px;
    font-weight: 600;
}
.status-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(35, 130, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    width: fit-content;
}
.balance-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 16px;
}
.balance-amount {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

/* Views & Hidden states */
.view-container {
    padding: 0 14px;
    animation: fadeIn 0.3s ease;
}
.view-container.hidden {
    display: none;
}
.sub-view-container.hidden {
    display: none;
}
.hidden {
    display: none !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Title */
.section-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 24px 0 16px;
    background: linear-gradient(135deg, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Banner Carousel */
.banners-carousel {
    width: 100%;
    margin-top: 10px;
}
.banners-wrapper {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.banners-wrapper::-webkit-scrollbar {
    display: none;
}
.banner-item,
.banner-img {
    flex: 0 0 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background: transparent;
}
.banner-gradient {
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding: 0;
    display: flex;
    align-items: flex-end;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}
.banner-stars {
    background-image: url('stars_banner.png');
}
.banner-stars .banner-text-content {
    display: none;
}
.banner-premium {
    background-image: url('premium_banner_v2.png');
}
.banner-premium .banner-text-content {
    display: none;
}
.banner-usernames {
    background-image: url('usernames_banner_v2.png');
}
.banner-usernames .banner-text-content {
    display: none;
}
.banner-gifts {
    background-image: url('gifts_banner.png');
}
.banner-gifts .banner-text-content {
    display: none;
}
.banner-text-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #ffffff;
}
.banner-text-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Category Filters */
.filters-section {
    margin-top: 20px;
    width: 100%;
}
.filters-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: 16px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.filters-tabs::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}
.filter-tab {
    flex: 1 0 auto;
    white-space: nowrap;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.shop-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    margin-top: 16px;
    box-shadow: var(--shadow-card);
}
.form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.form-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.4;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.input-prefix-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--accent-blue);
    font-size: 16px;
    font-weight: 600;
}
.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s ease;
    -webkit-user-select: text;
    user-select: text;
}
.input-prefix-wrapper .form-input {
    padding-left: 36px;
}
.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(35, 130, 255, 0.15);
}

/* Stars Packs Grid */
.stars-packs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.star-pack-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.star-pack-card.active {
    border-color: var(--accent-blue);
    background: rgba(35, 130, 255, 0.05);
    box-shadow: 0 4px 16px rgba(35, 130, 255, 0.15);
}
.pack-stars-info {
    display: flex;
    flex-direction: column;
}
.pack-stars-amount {
    font-size: 18px;
    font-weight: 800;
}
.pack-stars-label {
    font-size: 11px;
    color: var(--text-secondary);
}
.pack-price-amount {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-blue);
}

/* Premium Cards Grid */
.premium-periods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.premium-period-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 18px 20px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.premium-period-card.active {
    border-color: var(--accent-blue);
    background: rgba(35, 130, 255, 0.05);
}
.prem-card-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.prem-duration {
    font-size: 16px;
    font-weight: 700;
}
.prem-badge-discount {
    font-size: 9px;
    font-weight: 700;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 6px;
    width: fit-content;
}
.prem-price-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-blue);
}

/* Price Calculator */
.price-calculator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 18px;
}
.calc-label {
    font-size: 14px;
    color: var(--text-secondary);
}
.calc-value {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

/* Action Button */
.shop-action-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1f6ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(35, 130, 255, 0.25);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.shop-action-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}
.shop-action-btn.disabled {
    background: #2a2a2c;
    color: var(--text-hint);
    cursor: not-allowed;
    box-shadow: none;
}

/* Search Box */
.search-section {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 16px 0;
}
.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 18px;
}
.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 16px 14px 44px;
    border-radius: 14px;
    font-size: 15px;
    -webkit-user-select: text;
    user-select: text;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Grid for Rents/NFTs */
.nft-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.rent-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rent-card:active {
    transform: scale(0.97);
}

/* --- Image area --- */
.rent-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); /* Soft subtle dark backing instead of bright colored gradients */
}
.rent-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Badges top-left --- */
.rent-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}
.rent-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.rent-badge.badge-green {
    background: rgba(16, 185, 129, 0.85);
}
.rent-badge.badge-blue {
    background: rgba(59, 130, 246, 0.85);
}

/* --- Info area below image --- */
.rent-card-info {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.rent-name {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.rent-mint {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* --- Bottom row: price pill + cart --- */
.rent-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.rent-price-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.rent-price-pill .price-diamond {
    font-size: 11px;
    opacity: 0.9;
}
.rent-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.rent-cart-btn:active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* --- Collection cards (keep simpler) --- */
.collection-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.collection-card:active {
    transform: scale(0.97);
}
.collection-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03); /* Soft subtle dark backing instead of colored backgrounds */
}
.collection-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.collection-card-info {
    padding: 2px 4px 4px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.collection-card-info .rent-name {
    font-size: 13px;
}
.collection-floor {
    font-size: 11px;
    color: var(--text-secondary);
}
.collection-open-btn {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 7px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    width: 100%;
}
.collection-open-btn:active {
    background: rgba(255, 255, 255, 0.15);
}

/* --- Username cards --- */
.username-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-card);
    position: relative;
}
.username-card .rent-icon {
    font-size: 24px;
    margin-bottom: 4px;
}
.username-card .rent-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    height: 32px;
    overflow: hidden;
}
.btn-sm {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}
.btn-sm:active {
    background: rgba(255, 255, 255, 0.15);
}

/* Empty Placeholder States */
.empty-placeholder-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    text-align: center;
}
.empty-icon-box {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}
.empty-state-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    margin-top: 55px;
    margin-bottom: 4px;
}
.empty-placeholder-state h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.empty-placeholder-state p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 280px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.empty-btn {
    max-width: 180px;
}

/* History Operation Rows */
.history-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.history-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.history-title {
    font-size: 14px;
    font-weight: 600;
}
.history-date {
    font-size: 11px;
    color: var(--text-secondary);
}
.history-amount {
    font-size: 15px;
    font-weight: 700;
}
.history-amount.positive {
    color: var(--success);
}
.history-amount.negative {
    color: #ffffff;
}

/* Profile Hero Section */
.profile-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 30px;
}
.profile-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #172643 100%);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(35, 130, 255, 0.15);
    margin-bottom: 16px;
}
.profile-display-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-status-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(35, 130, 255, 0.1);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 24px;
}
.profile-stats-dashboard {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    padding: 16px 8px;
    margin-bottom: 24px;
}
.stat-dashboard-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
.stat-dashboard-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 10%;
    width: 1px;
    height: 80%;
    background: var(--border-color);
}
.stat-dash-val {
    font-size: 15px;
    font-weight: 700;
}
.stat-dash-lbl {
    font-size: 11px;
    color: var(--text-secondary);
}
.profile-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.profile-action-btn {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.profile-action-btn:active {
    background: rgba(255, 255, 255, 0.03);
}
.profile-action-btn.sync-btn {
    background: linear-gradient(135deg, #1d1d20 0%, #121214 100%);
    border-color: rgba(35, 130, 255, 0.25);
    box-shadow: 0 4px 12px rgba(35, 130, 255, 0.1);
}
.profile-action-btn.sync-btn:active {
    background: linear-gradient(135deg, #121214 0%, #000 100%);
}

/* Telegram Client Sync Panel */
.auth-page-container {
    width: 100%;
    padding-top: 20px;
    animation: fadeIn 0.3s ease;
}
.auth-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-card);
}
.auth-animation-container {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
}
.step-dots-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.step-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-color);
    transition: background 0.3s;
}
.step-dot.active {
    background: var(--accent-blue);
}
.auth-progress-track {
    width: 100%;
    height: 3px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}
.auth-progress-bar {
    width: 33.33%;
    height: 100%;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}
.auth-step-panel {
    display: none;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}
.auth-step-panel.active {
    display: block;
}
.auth-panel-instruction {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 24px;
    font-weight: 500;
}
.auth-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1f6ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(35, 130, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.auth-submit-btn:active {
    transform: scale(0.98);
}
.auth-submit-btn:disabled {
    background: #2a2a2c;
    color: var(--text-hint);
    box-shadow: none;
}

/* Code Digit Inputs */
.code-digits-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    direction: ltr;
}
.digit-input {
    width: 44px;
    height: 52px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    border-radius: 12px;
    transition: border-color 0.2s;
    -webkit-user-select: text;
    user-select: text;
}
.digit-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.show-code-link {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

/* 2FA Password Screen */
.cloud-password-wrapper {
    width: 100%;
    margin-bottom: 12px;
}
.cloud-password-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    -webkit-user-select: text;
    user-select: text;
}
.cloud-password-input:focus {
    outline: none;
    border-color: var(--accent-blue);
}
.cloud-password-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* Loader & Success step 3 */
.liquid-loader-container {
    padding: 10px 0;
}
.loader-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.loader-bar-track {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}
.loader-bar-fill {
    width: 40%;
    height: 100%;
    background: var(--accent-blue);
    border-radius: 3px;
    animation: loadCycle 1.8s infinite ease-in-out;
}
@keyframes loadCycle {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(250%); }
}
.success-box-content {
    display: none;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.4s ease;
}
.success-box-content.show {
    display: flex;
}
.success-animation-box {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
}
.success-box-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
}
.auth-status-log {
    margin-top: 16px;
    font-size: 12px;
    color: var(--error);
    font-weight: 500;
}

/* Bottom Navigation Nav Buttons */
.bottom-nav {
    position: fixed;
    bottom: calc(12px + var(--safe-area-bottom));
    left: 16px;
    right: 16px;
    height: var(--bottom-nav-height);
    background: rgba(20, 20, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav-btn {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.nav-icon {
    font-size: 22px;
    transition: all 0.2s ease;
}

.nav-text {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.nav-btn.active {
    color: var(--accent-blue);
}

.nav-btn.active .nav-icon {
    transform: scale(1.1);
}

/* Drawer / Slider overlays */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.drawer-overlay.open, .drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Sliding Drawer panel */
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: 28px 28px 0 0;
    border-top: 1px solid var(--border-color);
    padding: 24px 20px calc(24px + var(--safe-area-bottom));
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.6);
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.drawer::-webkit-scrollbar {
    display: none;
    width: 0px;
    background: transparent;
}
.drawer.open, .drawer.active {
    transform: translateY(0);
}
.drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: -12px auto 16px;
}
.drawer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    z-index: 9999;
    transition: background 0.2s ease;
}
.drawer-close-btn:active {
    background: rgba(0, 0, 0, 0.7);
}
.drawer-image-full {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drawer-image-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.drawer-icon-fallback {
    font-size: 40px;
}
.drawer-title {
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}
.drawer-details-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-input);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 20px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.detail-val {
    font-size: 14px;
    font-weight: 600;
}
.detail-val.price-val {
    color: var(--accent-blue);
    font-weight: 700;
}
.description-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 4px;
}
.description-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 400;
}
.drawer-attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}
.attr-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.attr-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
.attr-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: 500;
}
.attr-val {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}
.drawer-actions {
    display: flex;
    gap: 10px;
}
.drawer-btn-secondary {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 16px;
    border-radius: 14px;
    cursor: pointer;
}
.drawer-btn-secondary:active {
    background: rgba(255, 255, 255, 0.08);
}
.drawer-btn-primary {
    flex: 1.8;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1f6ecc) 100%;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(35, 130, 255, 0.2);
}
.drawer-btn-primary:active {
    transform: scale(0.98);
}

/* Popup and Overlay cards */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.popup-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.9);
    width: 85%;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px 20px;
    z-index: 5001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    text-align: center;
}
.popup-card.open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.popup-icon-wrapper {
    margin-bottom: 16px;
}
.popup-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.popup-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 20px;
}
.popup-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, #1f6ecc 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.popup-btn:active {
    transform: scale(0.97);
}
.popup-btn-primary {
    margin-bottom: 8px;
}

/* Toast Notifications */
.withdraw-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -100px);
    width: 90%;
    max-width: 360px;
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 14px 18px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.withdraw-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}
.withdraw-toast-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.withdraw-toast-text {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}
.withdraw-toast-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}
.withdraw-toast-bar {
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transform-origin: left;
}

/* Toast styling container */
.notifications-container {
    position: fixed;
    top: calc(16px + var(--safe-area-top));
    left: 16px;
    right: 16px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.notification {
    background: #161618;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
    border-radius: 14px;
    padding: 14px 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
    animation: toastIn 0.3s ease;
    transform-origin: top;
    overflow: hidden;
    position: relative;
}
.notification.slide-out {
    animation: toastOut 0.3s ease forwards;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.9); }
}
.notification-message {
    font-size: 13px;
    font-weight: 600;
}
.notification-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: 0;
    left: 0;
}
.notification-progress-bar {
    height: 100%;
    background: var(--accent-blue);
    animation: fillOut linear forwards;
    transform-origin: left;
}
@keyframes fillOut {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
.notification.error .notification-progress-bar {
    background: var(--error);
}
.notification.success .notification-progress-bar {
    background: var(--success);
}

/* Custom Star Icon Replacements */
.star-icon-inline {
    height: 1.35em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -3px;
    margin-right: 4px;
}
.star-icon-pack {
    height: 1.6em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -3px;
    margin-right: 4px;
}
.star-icon-history {
    height: 1.45em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -2px;
    margin-right: 4px;
}

/* Custom Premium Icon Replacements */
.premium-icon-inline {
    height: 1.35em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -3px;
    margin-right: 4px;
}
.premium-icon-history {
    height: 1.45em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -2px;
    margin-right: 4px;
}

/* Custom Username Icon Replacements */
.username-icon-inline {
    height: 1.25em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -3px;
    margin-right: 4px;
}
.username-icon-grid {
    height: 32px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}
.username-icon-fallback {
    height: 40px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Custom NFT Gift Icon Replacements */
.gift-icon-inline {
    height: 1.25em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -3px;
    margin-right: 4px;
    border-radius: 4px;
}
.gift-icon-grid {
    height: 32px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    border-radius: 4px;
}
.gift-icon-fallback {
    height: 40px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    border-radius: 8px;
}
.gift-icon-history {
    height: 1.45em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    margin-top: -2px;
    margin-right: 4px;
    border-radius: 4px;
}
.gift-icon-fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Advanced Filter Container --- */
.advanced-filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
    width: 100%;
}

.filter-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.search-box-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-size: 16px;
    margin-top: 0;
}

.search-box-wrapper .search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 10px 12px 10px 38px;
    border-radius: 20px;
    font-size: 13px;
    height: 38px;
    user-select: text;
    -webkit-user-select: text;
}

.search-box-wrapper .search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.filter-actions-right {
    display: flex;
    gap: 6px;
    align-items: center;
}

.filter-action-btn-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.filter-action-btn-round:active, .filter-action-btn-round.active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.filter-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    flex-wrap: nowrap;
}

.filter-bottom-row::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.filter-row-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    min-width: 34px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.filter-row-btn:active {
    background: rgba(255, 255, 255, 0.18);
}

.filter-vertical-separator {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
    flex-shrink: 0;
}

.filter-dropdown-wrapper {
    position: relative;
    flex-shrink: 0;
}

.filter-dropdown-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    height: 34px;
}

.filter-dropdown-btn:active {
    background: rgba(255, 255, 255, 0.18);
}
.filter-dropdown-wrapper.active .filter-dropdown-btn {
    background: rgba(59, 130, 246, 0.15) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: var(--accent-blue) !important;
}

.filter-dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: #181824;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px 0;
    min-width: 130px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-height: 200px;
    overflow-y: auto;
}

.filter-dropdown-item {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.filter-dropdown-item:hover, .filter-dropdown-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.filter-dropdown-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-weight: 700;
}

.filter-scroller-more {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    padding-left: 2px;
    flex-shrink: 0;
}

/* Preset buttons styling */
.rent-duration-presets {
    display: flex;
    gap: 8px;
    width: 100%;
}
.preset-btn {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}
.preset-btn.active {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

/* Custom Username Card Design from Screenshot */
.username-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-card);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.username-card:active {
    transform: scale(0.98);
}
.username-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #101524 0%, #151b2d 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.username-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.username-card-logo {
    width: 44px;
    height: 44px;
    background: #0088cc;
    border-radius: 50%;
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.4);
}
.username-card-badge-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.username-card-days-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.username-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.username-card-price-pill {
    background: rgba(0, 152, 234, 0.08);
    border: 1px solid rgba(0, 152, 234, 0.25);
    border-radius: 12px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 1px;
    box-sizing: border-box;
}
.username-card-price-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}
.username-card-ton-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.username-card-price-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    font-weight: 600;
}
.username-card-fallback-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
}

/* ── Payment Method Buttons ───────────────────────────────────── */
.deposit-method-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    background: rgba(30, 41, 59, 0.4);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}
.deposit-method-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(36,139,254,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}
.deposit-method-btn:active {
    transform: scale(0.98);
}
.deposit-method-btn.active {
    border-color: var(--accent-blue) !important;
    background: rgba(36, 139, 254, 0.08) !important;
    box-shadow: 0 0 0 1px rgba(36,139,254,0.18), 0 4px 16px rgba(36,139,254,0.12);
}
.deposit-method-btn.active::before {
    opacity: 1;
}
.deposit-method-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    background: transparent;
}
.deposit-method-info {
    flex: 1;
    margin-left: 12px;
}
.deposit-method-title {
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1.2;
}
.deposit-method-sub {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}
.deposit-method-check {
    font-size: 20px;
    color: var(--text-secondary);
    transition: color 0.22s ease;
    flex-shrink: 0;
}
.deposit-method-btn.active .deposit-method-check {
    color: var(--accent-blue) !important;
}

