.app-container {
    min-height: 100vh;
    background: linear-gradient(180deg, #E0F2FE 0%, #F0F9FF 100%);
    background-attachment: fixed;
    padding-bottom: 90px;
    position: relative;
    overflow-x: hidden;
}

.page-wrapper {
    position: relative;
    z-index: 10;
}

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    box-shadow: 0 4px 20px rgba(0, 102, 204, 0.4);
}

.top-bar-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.balance-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.balance-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.content-area {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-zone {
    margin: 28px 0;
    position: relative;
}

.carousel-inner {
    position: relative;
    height: 180px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.default-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    position: relative;
}

.banner-content {
    text-align: center;
    z-index: 2;
}

.banner-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 3px;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFFFFF;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.9);
    transform: scale(1.4);
}

.banner-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
}

.feature-zone {
    margin-bottom: 36px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.15);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: all 0.3s ease;
}

.card-recharge::after {
    background: linear-gradient(90deg, #00C853 0%, #00A843 100%);
}

.card-withdraw::after {
    background: linear-gradient(90deg, #FF6F00 0%, #F57C00 100%);
}

.card-profit::after {
    background: linear-gradient(90deg, #0066CC 0%, #003D7A 100%);
}

.card-service::after {
    background: linear-gradient(90deg, #5A6C7D 0%, #455A64 100%);
}

.feature-card:hover {
    transform: translateY(-6px) scale(1.02);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 32px rgba(0, 102, 204, 0.25);
}

.card-recharge:hover {
    border-color: #00C853;
}

.card-withdraw:hover {
    border-color: #FF6F00;
}

.card-profit:hover {
    border-color: #0066CC;
}

.card-service:hover {
    border-color: #5A6C7D;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.card-recharge .card-icon {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2) 0%, rgba(0, 168, 67, 0.1) 100%);
    color: #00C853;
}

.card-withdraw .card-icon {
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.2) 0%, rgba(245, 124, 0, 0.1) 100%);
    color: #FF6F00;
}

.card-profit .card-icon {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 61, 122, 0.1) 100%);
    color: #0066CC;
}

.card-service .card-icon {
    background: linear-gradient(135deg, rgba(90, 108, 125, 0.2) 0%, rgba(69, 90, 100, 0.1) 100%);
    color: #5A6C7D;
}

.feature-card:hover .card-icon {
    transform: scale(1.15) rotate(-10deg);
}

.card-recharge:hover .card-icon {
    background: linear-gradient(135deg, #00C853 0%, #00A843 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5);
}

.card-withdraw:hover .card-icon {
    background: linear-gradient(135deg, #FF6F00 0%, #F57C00 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.5);
}

.card-profit:hover .card-icon {
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.card-service:hover .card-icon {
    background: linear-gradient(135deg, #5A6C7D 0%, #455A64 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(90, 108, 125, 0.5);
}

.card-icon svg {
    width: 26px;
    height: 26px;
    transition: transform 0.35s ease;
}

.card-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.5px;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
}

.catalog-zone {
    margin-bottom: 32px;
}

.catalog-header {
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--accent-primary);
}

.catalog-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.catalog-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 102, 204, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease forwards;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
}

.product-item[data-idx="0"] { animation-delay: 0s; }
.product-item[data-idx="1"] { animation-delay: 0.1s; }
.product-item[data-idx="2"] { animation-delay: 0.2s; }
.product-item[data-idx="3"] { animation-delay: 0.3s; }
.product-item[data-idx="4"] { animation-delay: 0.4s; }
.product-item[data-idx="5"] { animation-delay: 0.5s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.25);
    border-color: var(--accent-primary);
}

.item-visual {
    width: 160px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-item:hover .visual-img {
    transform: scale(1.15);
}

.visual-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.overlay-badge {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.95) 0%, rgba(0, 168, 67, 0.95) 100%);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    font-family: 'JetBrains Mono', monospace;
}

.item-details {
    flex: 1;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.details-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Outfit', sans-serif;
    line-height: 1.3;
}

.details-metrics {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

.metric-row.highlight {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 2px solid var(--border-color);
}

.metric-value {
    font-size: 14px;
    font-weight: 800;
    color: #00C853;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.3px;
}

.metric-row.highlight .metric-value {
    font-size: 16px;
    color: #0066CC;
}

.metric-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-action {
    width: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #0066CC 0%, #003D7A 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
}

.item-action::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-action:hover::before {
    opacity: 1;
}

.item-action:hover {
    background: linear-gradient(135deg, #003D7A 0%, #0066CC 100%);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.item-action:active {
    transform: scale(0.98);
}

.item-action span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.item-action svg {
    width: 16px;
    height: 16px;
    color: #fff;
    transition: transform 0.3s ease;
}

.item-action:hover svg {
    transform: rotate(-45deg);
}

.pulse-ring {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-top-color: var(--accent-primary);
    border-right-color: var(--accent-tertiary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.25);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.loading-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.toast-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    padding: 16px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90%;
    text-align: center;
    font-weight: 600;
    backdrop-filter: blur(20px);
}

.toast-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.success {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.25);
}

.toast-notification.error {
    background: rgba(229, 57, 53, 0.15);
    color: #FFFFFF;
    border-color: var(--danger);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.25);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.balance-selection-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

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

.balance-modal-overlay {
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 26, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.balance-modal-content {
    background: linear-gradient(135deg, rgba(13, 13, 43, 0.98) 0%, rgba(5, 5, 26, 0.98) 100%);
    border: 1px solid rgba(138, 196, 208, 0.3);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(106, 76, 147, 0.4);
    animation: modalSlideUp 0.4s ease-out;
}

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

.balance-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.balance-modal-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    color: var(--accent-tertiary);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
}

.balance-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.balance-option {
    background: rgba(106, 76, 147, 0.12);
    border: 1px solid rgba(138, 196, 208, 0.2);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.balance-option:not(.disabled):hover {
    background: rgba(106, 76, 147, 0.2);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 76, 147, 0.3);
}

.balance-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.balance-option.selected {
    background: rgba(106, 76, 147, 0.25);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(106, 76, 147, 0.4);
}

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

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

.option-balance {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-tertiary);
}

.option-insufficient {
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    font-weight: 500;
}

.balance-modal-actions {
    display: flex;
    gap: 10px;
}

.balance-modal-confirm {
    flex: 1;
    padding: 12px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.balance-modal-confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 76, 147, 0.5);
}

.balance-modal-confirm:active:not(:disabled) {
    transform: translateY(0);
}

.balance-modal-confirm:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.balance-modal-cancel {
    flex: 1;
    padding: 12px;
    background: rgba(106, 76, 147, 0.15);
    border: 1px solid rgba(138, 196, 208, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.balance-modal-cancel:hover {
    background: rgba(106, 76, 147, 0.25);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.balance-modal-cancel:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .top-bar-inner {
        padding: 16px 20px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .balance-label {
        font-size: 10px;
    }
    
    .balance-amount {
        font-size: 16px;
    }
    
    .content-area {
        padding: 0 16px;
    }
    
    .carousel-zone {
        margin: 24px 0;
    }
    
    .carousel-inner {
        height: 160px;
        border-radius: 20px;
    }
    
    .feature-cards {
        gap: 12px;
    }
    
    .feature-card {
        padding: 18px 10px;
        gap: 8px;
    }
    
    .card-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }
    
    .card-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .card-text {
        font-size: 13px;
    }
    
    .catalog-heading {
        font-size: 20px;
    }
    
    .catalog-list {
        gap: 16px;
    }
    
    .item-visual {
        width: 140px;
    }
    
    .item-details {
        padding: 12px 10px;
    }
    
    .details-title {
        font-size: 16px;
    }
    
    .metric-value {
        font-size: 13px;
    }
    
    .metric-row.highlight .metric-value {
        font-size: 15px;
    }
    
    .metric-label {
        font-size: 10px;
    }
    
    .item-action {
        width: 70px;
    }
    
    .item-action span {
        font-size: 12px;
    }
    
    .item-action svg {
        width: 14px;
        height: 14px;
    }
    
    .balance-modal-overlay {
        padding: 16px;
    }
    
    .balance-modal-content {
        padding: 24px 20px;
    }
    
    .balance-modal-title {
        font-size: 18px;
    }
    
    .balance-modal-amount {
        font-size: 14px;
    }
    
    .balance-option {
        padding: 14px;
    }
    
    .option-balance {
        font-size: 18px;
    }
    
    .balance-modal-confirm,
    .balance-modal-cancel {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .top-bar-inner {
        padding: 14px 16px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .balance-label {
        font-size: 9px;
    }
    
    .balance-amount {
        font-size: 14px;
    }
    
    .content-area {
        padding: 0 14px;
    }
    
    .carousel-zone {
        margin: 20px 0;
    }
    
    .carousel-inner {
        height: 140px;
        border-radius: 18px;
    }
    
    .feature-cards {
        gap: 10px;
    }
    
    .feature-card {
        padding: 16px 8px;
        gap: 8px;
    }
    
    .card-icon {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }
    
    .card-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .card-text {
        font-size: 12px;
    }
    
    .catalog-heading {
        font-size: 19px;
    }
    
    .catalog-list {
        gap: 14px;
    }
    
    .item-visual {
        width: 120px;
    }
    
    .item-details {
        padding: 10px 8px;
    }
    
    .details-title {
        font-size: 15px;
    }
    
    .metric-value {
        font-size: 12px;
    }
    
    .metric-row.highlight .metric-value {
        font-size: 14px;
    }
    
    .metric-label {
        font-size: 10px;
    }
    
    .item-action {
        width: 65px;
    }
    
    .item-action span {
        font-size: 11px;
    }
    
    .item-action svg {
        width: 13px;
        height: 13px;
    }
}
