/* ========================================
   Steam Pay - New Design Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --steam-dark: #171a21;
    --steam-darker: #1b2838;
    --steam-blue: #66c0f4;
    --steam-light-blue: #c7d5e0;
    --steam-green: #5c7e10;
    --steam-green-light: #a4d007;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(27, 40, 56, 0.95);
    --glass: rgba(255, 255, 255, 0.05);
    --error: #ff6b6b;
    --success: #4ade80;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
    background: var(--steam-dark);
    color: var(--steam-light-blue);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--steam-blue);
}

/* ========================================
   Animated Background
   ======================================== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2366c0f4' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--steam-blue);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #764ba2;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--steam-green-light);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    padding: 16px 0;
    backdrop-filter: blur(10px);
    background: rgba(23, 26, 33, 0.8);
    border-bottom: 1px solid rgba(102, 192, 244, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
}

.logo svg {
    width: 32px;
    height: 32px;
}

.logo span {
    background: linear-gradient(90deg, #66c0f4, #a4d007);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--steam-light-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--steam-blue);
}

/* Buttons */
.btn--outline {
    border: 1px solid rgba(102, 192, 244, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn--outline:hover {
    border-color: var(--steam-blue);
    background: rgba(102, 192, 244, 0.1);
}

.btn--sm {
    padding: 8px 14px;
    font-size: 0.875rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--steam-light-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(23, 26, 33, 0.95);
}

.mobile-nav a {
    color: var(--steam-light-blue);
    font-weight: 600;
    padding: 10px 0;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav:not([hidden]) {
        display: flex;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 50px 20px 30px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    border: 1px solid rgba(102, 192, 244, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--steam-green-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, #66c0f4 0%, #a4d007 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero > p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 24px;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-item svg {
    color: var(--steam-green-light);
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-row {
        gap: 16px;
    }
}

/* ========================================
   Main Content Grid
   ======================================== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Cards
   ======================================== */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(102, 192, 244, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease-out;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-header {
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ========================================
   Form Styles
   ======================================== */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--steam-light-blue);
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--steam-blue);
    opacity: 0.6;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 192, 244, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    color: white;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--steam-blue);
    box-shadow: 0 0 0 4px rgba(102, 192, 244, 0.1);
}

.form-input::placeholder {
    color: rgba(199, 213, 224, 0.5);
}

/* Field Hints */
.field-error {
    color: var(--error);
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    min-height: 1.2em;
}

.promo-hint {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    min-height: 1.2em;
    color: var(--steam-green-light);
}

.promo-hint.is-invalid {
    color: var(--error);
}

/* ========================================
   Currency Cards (Beautiful Selection)
   ======================================== */
.currency-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.currency-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 12px;
    background: rgba(23, 26, 33, 0.8);
    border: 2px solid rgba(102, 192, 244, 0.25);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.currency-card:hover {
    border-color: rgba(102, 192, 244, 0.4);
    background: rgba(102, 192, 244, 0.05);
    transform: translateY(-2px);
}

.currency-card.active {
    border-color: var(--steam-blue);
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.25) 0%, rgba(102, 192, 244, 0.1) 100%);
    box-shadow: 0 0 24px rgba(102, 192, 244, 0.3), inset 0 0 20px rgba(102, 192, 244, 0.1);
}

.currency-flag {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.currency-code {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.currency-name {
    font-size: 0.7rem;
    color: rgba(199, 213, 224, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-card.active .currency-code {
    color: var(--steam-blue);
    text-shadow: 0 0 10px rgba(102, 192, 244, 0.5);
}

.currency-card.active .currency-name {
    color: var(--steam-light-blue);
}

@media (max-width: 480px) {
    .currency-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .currency-card {
        padding: 12px 8px;
    }
    
    .currency-flag {
        font-size: 1.5rem;
    }
}

.currency-rate-hint {
    font-size: 0.8rem;
    color: var(--steam-green-light);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(164, 208, 7, 0.1);
    border-radius: 8px;
    display: none;
}

.currency-rate-hint.visible {
    display: block;
}

.min-amount-hint {
    font-size: 0.75rem;
    color: rgba(199, 213, 224, 0.6);
    margin-top: 6px;
}

/* ========================================
   Amount Buttons
   ======================================== */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.amount-btn {
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 192, 244, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.amount-btn:hover {
    border-color: var(--steam-blue);
    background: rgba(102, 192, 244, 0.1);
}

.amount-btn.active {
    border-color: var(--steam-blue);
    background: rgba(102, 192, 244, 0.2);
    box-shadow: 0 0 16px rgba(102, 192, 244, 0.2);
}

/* ========================================
   Amount Input with Currency Symbol
   ======================================== */
.amount-input-wrapper {
    position: relative;
}

.amount-input {
    width: 100%;
    padding: 14px 60px 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(102, 192, 244, 0.1);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    font-family: inherit;
}

.amount-input:focus {
    outline: none;
    border-color: var(--steam-blue);
    box-shadow: 0 0 0 4px rgba(102, 192, 244, 0.1);
}

.amount-input::placeholder {
    color: rgba(199, 213, 224, 0.5);
    font-weight: 400;
}

.currency-label {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--steam-blue);
    font-size: 1.1rem;
    font-weight: 700;
    pointer-events: none;
}

/* ========================================
   Calculator Display
   ======================================== */
.calc-display {
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.1) 0%, rgba(164, 208, 7, 0.1) 100%);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 14px;
    padding: 18px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.total-row {
    padding-top: 14px;
    margin-top: 6px;
    border-top: 2px solid rgba(102, 192, 244, 0.2);
    border-bottom: none;
}

.calc-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.calc-value {
    font-weight: 600;
    color: white;
}

.calc-value.total {
    font-size: 1.35rem;
    color: var(--steam-green-light);
}

.calc-value.commission {
    color: #ff9f43;
}

/* ========================================
   Checkbox
   ======================================== */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid rgba(102, 192, 244, 0.3);
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--steam-green-light);
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s;
}

.checkbox-wrapper input:checked + .checkbox-custom {
    border-color: var(--steam-green-light);
    background: rgba(164, 208, 7, 0.15);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    line-height: 1.4;
}

.checkbox-text a {
    color: var(--steam-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ========================================
   Submit Button
   ======================================== */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--steam-green) 0%, var(--steam-green-light) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164, 208, 7, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-secondary {
    display: block;
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--steam-light-blue);
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========================================
   Info Card Items
   ======================================== */
.info-card {
    height: fit-content;
}

.info-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item:hover {
    background: rgba(102, 192, 244, 0.05);
    transform: translateX(4px);
}

.info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(102, 192, 244, 0.2) 0%, rgba(164, 208, 7, 0.2) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    color: var(--steam-blue);
}

.info-content h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.45;
    margin: 0;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 50px 20px 70px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 30px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(102, 192, 244, 0.1);
    border-radius: 14px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 20px;
    border: none;
    background: transparent;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--steam-blue);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-answer {
    padding: 0 20px 18px;
    color: var(--steam-light-blue);
    opacity: 0.85;
    line-height: 1.6;
}

/* ========================================
   SEO Section
   ======================================== */
.seo-section {
    padding: 40px 0;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.seo-section h2 {
    font-size: 1.25rem;
    color: var(--steam-light-blue);
    margin-bottom: 16px;
    font-weight: 600;
}

.seo-section p {
    font-size: 0.9rem;
    color: rgba(199, 213, 224, 0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-section p:last-child {
    margin-bottom: 0;
}

.seo-section strong {
    color: var(--steam-light-blue);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-col p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.footer-col a {
    display: block;
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: opacity 0.3s, color 0.3s;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--steam-blue);
}

.footer-desc {
    opacity: 0.6;
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.footer-bottom p {
    opacity: 0.5;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   Order Page Styles
   ======================================== */
.order-main {
    min-height: calc(100vh - 200px);
}

.order-section {
    padding: 40px 0 60px;
}

.order-header {
    text-align: center;
    margin-bottom: 30px;
}

.order-header h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 8px;
}

.order-header p {
    opacity: 0.7;
}

.order-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .order-page {
        grid-template-columns: 1fr;
    }
}

.order-details-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.order-row:last-child {
    border-bottom: none;
}

.order-row--total {
    border-top: 2px solid rgba(102, 192, 244, 0.2);
    border-bottom: none;
    margin-top: 8px;
    padding-top: 16px;
}

.order-label {
    opacity: 0.7;
}

.total-value {
    font-size: 1.5rem;
    color: var(--steam-green-light);
}

.promo-value {
    color: var(--steam-green-light);
}

/* Payment Info Box */
.payment-info-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 2px solid var(--steam-blue);
    border-radius: 14px;
    background: rgba(102, 192, 244, 0.08);
    margin-bottom: 20px;
}

.payment-info-icon {
    font-size: 2rem;
}

.payment-info-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-info-content strong {
    color: white;
    font-size: 1rem;
}

.payment-info-content span {
    font-size: 0.85rem;
    opacity: 0.7;
}

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(102, 192, 244, 0.2);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-body h3 {
    color: white;
    margin-bottom: 10px;
}

.modal-body p {
    opacity: 0.7;
    margin-bottom: 20px;
}

/* Скрытые элементы модального окна */
.modal-body[hidden] {
    display: none !important;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 192, 244, 0.2);
    border-top-color: var(--steam-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-error-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    color: var(--error);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-error .submit-btn {
    margin-bottom: 12px;
}

/* QR Modal Specific Styles */
.modal-qr-content {
    max-width: 420px;
}

.modal-qr-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(74, 222, 128, 0.2);
    color: var(--success);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-amount-display {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--steam-green-light);
    margin-bottom: 20px;
}

.qr-order-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
    width: 100%;
}

.qr-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-order-row:last-child {
    border-bottom: none;
}

.qr-order-row span {
    opacity: 0.7;
}

.qr-order-row strong {
    color: white;
}

.qr-order-total strong {
    color: var(--steam-green-light);
    font-size: 1.2rem;
}

.submit-btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
    gap: 12px;
}

.qr-image-container {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.qr-image-container img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.qr-hint {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 20px;
}

.modal-qr-body .submit-btn {
    width: 100%;
    margin-bottom: 12px;
}

.modal-qr-body .btn-secondary {
    width: 100%;
}

/* ========================================
   Legal Pages
   ======================================== */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.legal-page h1 {
    font-size: 2rem;
    color: white;
    margin-bottom: 24px;
}

.legal-page p {
    margin-bottom: 16px;
    line-height: 1.7;
    opacity: 0.85;
}

.legal-page h2 {
    font-size: 1.25rem;
    color: white;
    margin: 30px 0 14px;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-section {
    padding: 60px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(27, 40, 56, 0.3) 50%, transparent 100%);
}

.reviews-section .section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 8px;
}

.reviews-section .section-subtitle {
    text-align: center;
    opacity: 0.7;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

.review-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(102, 192, 244, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    animation: slideUp 0.5s ease-out;
}

.review-card:hover {
    border-color: rgba(102, 192, 244, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(102, 192, 244, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--steam-blue) 0%, var(--steam-green-light) 100%);
    padding: 2px;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--steam-darker);
}

.review-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-nick {
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.review-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--steam-green-light);
    background: rgba(164, 208, 7, 0.15);
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
}

.review-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--steam-light-blue);
    opacity: 0.9;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--steam-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--steam-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #88d1f7;
}

/* ========================================
   Responsive Fixes
   ======================================== */
@media (max-width: 600px) {
    .hero {
        padding: 35px 20px 25px;
    }
    
    .card {
        padding: 22px;
    }
    
    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-content {
        padding: 20px;
    }
}
