/* Vice Coins Page - New Design - Exact Match from React Component */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.vice-coins-page {
    margin-left: 4.5vw;
    padding: 2.5rem 2.5rem 5rem 2.5rem;
    max-width: 110.497vw;
    margin-right: auto;
    min-height: 100vh;
    background-color: #F5F5F7;
}

/* Header Bar — белый фон, вплотную к хедеру сайта */
.vice-coins-header-bar {
    background: #ffffff;
    margin: -2.5rem -2.5rem 2rem -2.5rem;
    padding: 2.5rem 2.5rem;
    box-shadow: 0 0.25vw 0.8vw rgba(0, 0, 0, 0.08);
}

/* Header */
.page-header {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0;
}

.header-left {
    display: flex;
    flex-direction: column;
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: normal;
    transform: none;
    line-height: 1;
    margin-bottom: 0.5rem;
    margin: 0;
}

.title-highlight {
    background: linear-gradient(to right, #9333ea, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-left: 0.5rem;
    border-left: 0.276vw solid #9333ea;
    margin: 0;
    margin-top: 1rem;
}

/* Wallet Widget */
.wallet-widget {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 690.539vw;
    padding: 0.5rem;
    padding-right: 1.5rem;
    box-shadow: 0 0.276vw 0.414vw -0.069vw rgba(0, 0, 0, 0.1);
    border: 0.069vw solid #f3f4f6;
    transition: box-shadow 0.3s;
}

.wallet-widget:hover {
    box-shadow: 0 0.691vw 1.036vw -0.207vw rgba(0, 0, 0, 0.1);
}

.wallet-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 690.539vw;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 1rem;
    box-shadow: 0 0.069vw 0.138vw rgba(0, 0, 0, 0.05);
}

.wallet-icon i {
    font-size: 1.25rem;
}

.wallet-content {
    display: flex;
    flex-direction: column;
}

.wallet-label {
    font-size: 0.625rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.wallet-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.025em;
    line-height: 1;
}

.wallet-currency {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
}

/* Main Grid */
.main-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* Packages Column */
.packages-column {
    flex: 1;
    width: 100%;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Package Card */
.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 0.069vw solid #e5e7eb;
    background-color: #ffffff;
    text-align: left;
    transition: all 0.2s;
    height: 6.5vw;
    min-height: 7rem;
    cursor: pointer;
}

.package-card:hover {
    border-color: #c4b5fd;
    box-shadow: 0 0.276vw 0.414vw -0.069vw rgba(0, 0, 0, 0.1);
    transform: translateY(-0.138vw);
}

.package-card.selected {
    background-color: #ffffff;
    border-color: #9333ea;
    box-shadow: 0 0 0 0.138vw rgba(147, 51, 234, 0.2), 0 1.381vw 1.727vw -0.345vw rgba(147, 51, 234, 0.1);
    z-index: 10;
    transform: translateY(-0.276vw);
}

/* Card Top */
.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0.25rem;
}

.card-label {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.125rem 0.375rem;
    border-radius: 0.125rem;
    background-color: #f3f4f6;
    color: #6b7280;
}

.package-card:hover .card-label {
    background-color: #e5e7eb;
}

.package-card.selected .card-label {
    background-color: #f3e8ff;
    color: #7c3aed;
}

.card-sparkles {
    font-size: 0.875rem;
    color: #eab308;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Card Middle */
.card-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: 0.15rem;
}

.card-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.card-amount {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1;
    font-style: normal;
    color: #1f2937;
}

.package-card.selected .card-amount {
    color: #111827;
}

.card-vc {
    font-size: 0.75rem;
    font-weight: 700;
    font-style: normal;
    color: #9ca3af;
}

.package-card.selected .card-vc {
    color: #9333ea;
}

/* Card Bottom */
.card-bottom {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 0.069vw dashed #f3f4f6;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.card-old-price {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
}

/* Features Strip */
.features-strip {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 0.069vw solid #e5e7eb;
    background-color: #ffffff;
    box-shadow: 0 0.069vw 0.138vw rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.secure {
    background-color: #dcfce7;
    color: #16a34a;
}

.feature-icon.instant {
    background-color: #dbeafe;
    color: #2563eb;
}

.feature-icon.bonus {
    background-color: #f3e8ff;
    color: #9333ea;
}

.feature-icon i {
    font-size: 1.25rem;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.feature-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin: 0;
    margin-top: 0.15rem;
}

/* Sidebar Column */
.sidebar-column {
    width: 24.862vw;
    flex-shrink: 0;
    position: sticky;
    top: 1.5rem;
}

.sidebar-card {
    border-radius: 0.75rem;
    box-shadow: 0 0.691vw 1.036vw -0.207vw rgba(0, 0, 0, 0.1), 0 0.276vw 0.414vw -0.276vw rgba(0, 0, 0, 0.1);
    border: 0.069vw solid #e5e7eb;
    background-color: #ffffff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Sidebar Image */
.sidebar-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #1a1a2e;
    overflow: hidden;
    z-index: 10;
    flex-shrink: 0;
}

.sidebar-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.sidebar-image-overlay {
    position: absolute;
    inset: 0;
    background: none;
    display: none;
}

/* Sidebar Content */
.sidebar-content {
    background-color: #ffffff;
    position: relative;
    z-index: 20;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
}

.sidebar-title i {
    font-size: 1.125rem;
}

/* Order Details */
.order-details {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.069vw dashed #e5e7eb;
}

.order-item-left {
    display: flex;
    flex-direction: column;
}

.order-coins {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.order-id {
    font-size: 0.6875rem;
    color: #6b7280;
    margin: 0.25rem 0 0 0;
}

.order-item-right {
    text-align: right;
}

.order-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Promo Section */
.promo-section {
    margin-bottom: 1.25rem;
}

.promo-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

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

.promo-input {
    flex: 1;
    width: 100%;
    height: 2.5rem;
    background-color: #f9fafb;
    border: 0.069vw solid #e5e7eb;
    border-radius: 0.375rem;
    padding-left: 2.25rem;
    padding-right: 4.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.promo-input::placeholder {
    color: #9ca3af;
}

.promo-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 0.069vw #9333ea;
}

.promo-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #9ca3af;
    pointer-events: none;
}

.promo-apply-btn {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    height: calc(100% - 0.5rem);
    padding: 0 0.75rem;
    background-color: #ffffff;
    border: 0.069vw solid #e5e7eb;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #374151;
    transition: all 0.2s;
    box-shadow: 0 0.069vw 0.138vw rgba(0, 0, 0, 0.05);
    cursor: pointer;
    white-space: nowrap;
}

.promo-apply-btn:hover {
    border-color: #c4b5fd;
    color: #9333ea;
}

.promo-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.promo-apply-btn:disabled:hover {
    border-color: #e5e7eb;
    color: #374151;
}

.promo-success {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #16a34a;
}

.promo-success i {
    font-size: 0.625rem;
    font-weight: 900;
}

.promo-error {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: #dc2626;
}

.promo-error i {
    font-size: 0.625rem;
    flex-shrink: 0;
}

/* Totals Section */
.totals-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.total-row.discount-row,
.total-row.promo-row {
    color: #16a34a;
    font-weight: 700;
}

.total-divider {
    height: 0.069vw;
    background-color: #f3f4f6;
    margin: 0.5rem 0;
}

.total-row.final-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.total-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -0.025em;
    line-height: 1;
}

/* Pay Button */
.pay-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #111827;
    color: #ffffff;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 0.276vw 0.414vw -0.069vw rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.pay-button:hover {
    background-color: #000000;
}

.pay-button:active {
    transform: scale(0.99);
}

.payment-notice {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Purchase History Info Block — стильно и гармонично */
.purchase-history-info {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background-color: #ffffff;
    border: 0.069vw solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    text-align: center;
    box-shadow: 0 0.069vw 0.138vw rgba(0, 0, 0, 0.04);
}

.history-info-content {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    justify-content: center;
}

.history-info-icon {
    font-size: 1rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.history-info-text {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.history-info-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: transparent;
    color: #4b5563;
    border: 0.069vw solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.history-info-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #374151;
}

.history-info-button:active {
    background-color: #f3f4f6;
}

.history-info-button i {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 88.398vw) {
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 70.718vw) {
    .vice-coins-page {
        margin-left: 0;
        padding-top: 5.525vw;
    }
    
    .main-grid {
        flex-direction: column;
    }
    
    .sidebar-column {
        width: 100%;
        position: static;
    }
}

@media (max-width: 53.039vw) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-strip {
        grid-template-columns: 1fr;
    }
    
    .purchase-history-info {
        padding: 1rem 1.25rem;
    }
    
    .history-info-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .history-info-text {
        font-size: 0.8125rem;
    }
}

@media (max-width: 44.199vw) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}
