* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a1c4fd, #c2e9fb);
    background-image: url('https://avatars.mds.yandex.net/i?id=f45346c2405ec1338a7fce8e261e82b1_l-4720151-images-thumbs&n=13');
    background-size: cover;
    background-attachment: fixed;
    background-blend-mode: overlay;
    color: #003366;
}
.form-bg {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px #4faaff22;
    padding: 2rem;
    max-width: 500px;
    margin: 30px auto;
}
.price-row .price-input {
    width: 100px !important;
    height: 40px;
    box-sizing: border-box;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid #99cde9;
    font-size: 1rem;
    background: #fafdff;
    margin-bottom: 0;
  }
  .centered-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 0;       
}

.centered-btn button {
    font-size: 2rem;
    padding: 24px 60px;
    min-width: 260px;
    min-height: 80px;
    border-radius: 16px;
    box-shadow: 0 4px 24px #4faaff44, 0 1.5px 8px #2366b855;
    background: linear-gradient(90deg, #4faaff 0%, #2366b8 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 
        transform 0.2s cubic-bezier(.4,2,.6,1),
        box-shadow 0.2s,
        filter 0.2s;
    animation: pulse-glow 2s infinite alternate, wiggle 3.5s infinite ease-in-out;
}

.centered-btn button:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 8px 32px #4faaff88, 0 3px 16px #2366b8aa;
    filter: brightness(1.08) saturate(1.2);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 4px 24px #4faaff44, 0 1.5px 8px #2366b855;
        filter: brightness(1) saturate(1);
        transform: scale(1) rotate(0deg);
    }
    100% {
        box-shadow: 0 8px 40px #4faaff99, 0 6px 24px #2366b8cc;
        filter: brightness(1.08) saturate(1.2);
        transform: scale(1.04) rotate(0deg);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-2deg); }
    30% { transform: rotate(2deg); }
    45% { transform: rotate(-1.5deg);}
    60% { transform: rotate(1.5deg);}
    75% { transform: rotate(-1deg);}
}

  .primary-button {
    background: linear-gradient(90deg, #4faaff 0%, #2366b8 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 64px; 
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #4faaff33;
    display: inline-block; 
    text-align: center;
}
/* Header */
.main-header {
    background-color: #fcfcfc80;
    position: relative;
    padding: 2rem 1.5rem;
    overflow: hidden;
    z-index: 10;
}


.header-background {
    
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.header-background .animated-line {
    position: absolute;
    width: 120%;
    height: 4px;
    left: -10%;
    background: linear-gradient(90deg, #56ccf2 0%, #2f80ed 100%);
    opacity: 0.18;
    border-radius: 2px;
    animation: lineMove 6s linear infinite;
}
.header-background .animated-line.line2 {
    top: 30%;
    animation-delay: 2s;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    opacity: 0.13;
}
.header-background .animated-line.line3 {
    top: 60%;
    animation-delay: 4s;
    background: linear-gradient(90deg, #fa709a 0%, #fee140 100%);
    opacity: 0.10;
}
@keyframes lineMove {
    0% { left: -10%; }
    100% { left: 100%; }
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.header-text {
    flex: 1;
    position: relative;
}
.header-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.header-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(47, 128, 237, 0.2));
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    animation: float 4s ease-in-out infinite;
}
.header-logo-container::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #56ccf2, #2f80ed);
    z-index: -1;
    opacity: 0.15;
    filter: blur(12px);
}
.main-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #121f35;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: fadeIn 0.8s ease-out forwards;
}
.main-header h1::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #56ccf2, #2f80ed);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.main-header:hover h1::after {
    transform: scaleX(1);
}
.subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.5;
    font-weight: 500;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}
.header-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}
.header-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.primary-button {
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    color: white;
    box-shadow: 0 4px 15px rgba(47, 128, 237, 0.3);
}
.secondary-button {
    background: white;
    color: #2f80ed;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.header-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2f80ed, #56ccf2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.primary-button::before {
    background: linear-gradient(135deg, #2f80ed, #56ccf2);
}
.secondary-button::before {
    background: white;
}
.header-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 128, 237, 0.4);
}
.header-button:hover::before {
    opacity: 1;
}
.secondary-button:hover {
    color: white;
    border-color: transparent;
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0);}
    50% { transform: translateY(-10px);}
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px);}
    to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Accounts ticker */
.accounts-ticker {
    background: linear-gradient(to bottom, #fcfcfc80 0%, #fcfcfc00 100%);
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 12px 0;
    margin: 0 auto;
}
.accounts-ticker-track {
    
    display: flex;
    flex-direction: row;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    transition: none;
}
.account-card {

    display: flex;
    align-items: center;
    background: u#ffffffa2;
    border-radius: 14px;
    margin-right: 24px;
    box-shadow: 0 4px 16px rgba(47,128,237,0.13), 0 1.5px 8px rgba(47,128,237,0.08);
    padding: 10px 18px 10px 10px;
    min-width: 180px;
    max-width: 220px;
    font-size: 0.98rem;
    border-left: 4px solid #56ccf2;
    border-right: 4px solid #2f80ed;
    opacity: 0.95;
    transform: scale(0.98);
    filter: brightness(1.05);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
    position: relative;
    overflow: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    flex-shrink: 0;
}
.account-card:hover {
    opacity: 1;
    transform: scale(1.04);
    filter: brightness(1.12);
}
.account-card::before {
    content: "";
    position: absolute;
    top: -24px;
    right: -24px;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle, #56ccf2 0%, #2f80ed 80%, transparent 100%);
    opacity: 0.10;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.account-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 12px;
    background: #e3f2fd;
    z-index: 1;
}
.account-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 1;
}
.account-game {
    font-weight: bold;
    color: #2f80ed;
    font-size: 1rem;
}
.account-price {
    color: #fff;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(67,233,123,0.10);
    display: inline-block;
    margin: 2px 0;
}
.account-tag {
    color: #fff;
    background: linear-gradient(90deg, #56ccf2 0%, #2f80ed 100%);
    font-size: 0.92rem;
    font-family: 'Consolas', 'Menlo', 'Monaco', monospace;
    letter-spacing: 0.5px;
    margin-top: 2px;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(47,128,237,0.10);
    display: inline-block;
}

/* Sold accounts */
.sold-accounts-section {
    max-width: 900px;
    margin: 30px auto 0 auto;
    padding: 0 20px 20px 20px;
}
.sold-accounts-section h2 {
    text-align: center;
    margin-bottom: 18px;
    color: #2f80ed;
    font-size: 1.7rem;
    font-weight: 700;
}
.sold-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.sold-account-card {
    background: #f5fafd;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(47,128,237,0.07);
    padding: 18px 16px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 1.08rem;
    border-left: 5px solid #56ccf2;
}
.sold-account-card .game {
    font-weight: 700;
    color: #2f80ed;
    font-size: 1.1rem;
}
.sold-account-card .price {
    font-weight: 600;
    color: #27ae60;
}
.sold-account-card .tag {
    color: #888;
    font-size: 0.97rem;
}
.sold-account-card .buyer {
    color: #555;
    font-size: 0.95rem;
}

/* Service description */
.service-description {
    max-width: 600px;
    margin: 30px auto 20px auto;
    background: rgba(255,255,255,0.92);
    padding: 25px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    text-align: center;
    animation: fadeInUp 0.5s ease-in-out;
}

/* Form buttons */
form button {
    background: linear-gradient(to right, #56ccf2, #2f80ed);
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 12px;
}
form button:hover {
    background: linear-gradient(to right, #2f80ed, #56ccf2);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(47, 128, 237, 0.3);
}

/* Form fields */
form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 500;
    color: #2f80ed;
}
form input, form select, form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #99cde9;
    margin-bottom: 8px;
    font-size: 1rem;
    background: #fafdff;
    transition: border 0.2s;
}
form input:focus, form select:focus, form textarea:focus {
    border: 1.5px solid #2f80ed;
    outline: none;
}

/* Email code field */
#email-code {
    font-size: 20px;
    text-align: center;
    padding: 10px;
    border: 2px solid #66c0f4;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* Sections */
.form-section, .confirmation-section, .final-section {
    max-width: 500px;
    margin: 30px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(47,128,237,0.07);
    padding: 30px 28px;
    animation: fadeInUp 0.5s;
}
.hidden {
    display: none;
}

/* Reviews */
.reviews {
    max-width: 500px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(47,128,237,0.07);
    padding: 30px 28px;
}
#reviews-container {
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
#reviews-container div {
    margin-bottom: 10px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 6px;
}
#review-form textarea {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    border: 1px solid #99cde9;
    padding: 10px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .header-logo-container {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    .main-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    .header-buttons {
        flex-direction: column;
        width: 100%;
    }
    .header-button {
        width: 100%;
    }
    .main-header h1::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 80%;
    }
    .main-header:hover h1::after {
        transform: translateX(-50%) scaleX(1);
    }
    .form-section, .confirmation-section, .final-section, .reviews {
        margin: 10px;
        padding: 20px;
    }
    .sell-section button {
        width: 100%;
    }
    #review-form textarea {
        height: 80px;
    }
    .sold-accounts-grid {
        grid-template-columns: 1fr;
    }
}

/* Модальное окно */
.modal-bg {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .modal-bg.hidden {
    display: none;
  }
  .modal-window {
    background: #fff;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(47,128,237,0.13);
    text-align: center;
    position: relative;
  }
  .modal-window input {
    width: 90%;
    margin: 12px 0 18px 0;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #99cde9;
    font-size: 1rem;
  }
  .modal-window button {
    background: linear-gradient(90deg, #56ccf2, #2f80ed);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
  }
  .modal-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    background-color: transparent;
    border-radius: 12px;
    padding: 24px 18px 24px 54px;
    font-size: 1.15rem;
    margin-top: 18px;
    box-shadow: 0 6px 24px rgba(67, 233, 123, 0.18), 0 1.5px 4px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', 'Arial', sans-serif;
    position: relative;
    animation: fadeInUpScale 0.6s cubic-bezier(.23,1.01,.32,1) both;
}
.modal-window:has(.modal-success) {
    background: transparent !important;
    box-shadow: none !important;
}
.modal-success::before {
    content: '✔';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    background: rgba(67, 233, 123, 0.25);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInUpScale {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

