/* ============================================================
   O3SHOP — НОЧНОЙ ПРЕМИАЛЬНЫЙ СТИЛЬ
   ozonshop.life-link.top
   ============================================================ */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #06060c;
    color: #d0d0dd;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* ----- ФОН С АКЦЕНТАМИ (ОРАНЖЕВО-ФИОЛЕТОВЫЙ) ----- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 120, 0, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 70%, rgba(150, 50, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 80, 0, 0.02) 0%, transparent 40%);
    z-index: 0;
    animation: ambientPulse 12s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1.06) rotate(2deg); }
}

/* ----- ТОНКАЯ СЕТКА ----- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.006) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.006) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* ----- ОСНОВНОЙ КОНТЕЙНЕР ----- */
.container {
    max-width: 800px;
    width: 100%;
    padding: 48px 40px 40px;
    border-radius: 44px;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 
        0 50px 150px rgba(0,0,0,0.9),
        inset 0 1px 0 rgba(255,255,255,0.04),
        inset 0 -1px 0 rgba(255,255,255,0.02),
        0 0 100px rgba(255,120,0,0.02);
    position: relative;
    z-index: 1;
    animation: containerIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
}

@keyframes containerIn {
    0%   { opacity: 0; transform: translateY(60px) scale(0.94); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ----- СВЕЧЕНИЕ ПО КРАЯМ ----- */
.container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 46px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,120,0,0.08), transparent 35%, transparent 65%, rgba(150,50,255,0.06));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderGlow 5s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0%   { opacity: 0.3; }
    100% { opacity: 1; }
}

/* ----- ВНУТРЕННЕЕ СВЕЧЕНИЕ ----- */
.container::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(ellipse at 50% 30%, rgba(255,120,0,0.015), transparent 60%);
    pointer-events: none;
    animation: innerRadiance 8s ease-in-out infinite alternate;
}

@keyframes innerRadiance {
    0%   { opacity: 0.2; transform: scale(0.9) rotate(-5deg); }
    100% { opacity: 0.6; transform: scale(1.2) rotate(5deg); }
}

/* ----- ШАПКА ----- */
.header {
    text-align: center;
    margin-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.logo-icon {
    font-size: 2.2rem;
    color: #ff8c00;
    filter: drop-shadow(0 0 30px rgba(255,120,0,0.08));
}

h1 {
    font-size: 4.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #ff8c00 30%, #ff5500 60%, #ff8c00 80%, #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 10s ease-in-out infinite;
    line-height: 1.05;
}

h1 .shop {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 10s ease-in-out infinite reverse;
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 0.95rem;
    font-weight: 300;
    color: #8888bb;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-top: 2px;
    position: relative;
    display: inline-block;
    padding: 0 18px;
}

.subtitle::before {
    content: '◆';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.4rem;
    color: rgba(255,120,0,0.25);
    animation: diamondPulse 2.5s ease-in-out infinite;
}

.subtitle::after {
    content: '◆';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.4rem;
    color: rgba(255,120,0,0.25);
    animation: diamondPulse 2.5s ease-in-out infinite 0.7s;
}

@keyframes diamondPulse {
    0%, 100% { opacity: 0.2; transform: translateY(-50%) scale(0.7); }
    50%      { opacity: 0.9; transform: translateY(-50%) scale(1.3); }
}

.subtitle-line {
    display: block;
    width: 50px;
    height: 2px;
    margin: 6px auto 0;
    background: linear-gradient(90deg, transparent, rgba(255,120,0,0.2), transparent);
    border-radius: 4px;
    animation: linePulse 3s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.7); }
    50%      { opacity: 1; transform: scaleX(1.3); }
}

/* ----- ВСТУПЛЕНИЕ ----- */
.intro {
    text-align: center;
    margin: 16px 0 32px;
    font-size: 1.05rem;
    color: #9999bb;
    line-height: 1.6;
}

.intro .highlight {
    color: #ff8c00;
    font-weight: 500;
}

/* ----- КНОПКИ ----- */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    cursor: pointer;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

/* ----- ГЛАВНАЯ КНОПКА (ОРАНЖЕВО-ФИОЛЕТОВАЯ) ----- */
.btn.primary {
    background: linear-gradient(135deg, #ff8c00 0%, #ff5500 45%, #ea580c 100%);
    color: #ffffff;
    border-color: rgba(255, 140, 0, 0.3);
    box-shadow: 0 4px 40px rgba(255, 140, 0, 0.10);
    font-weight: 600;
    position: relative;
}

.btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn.primary:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 60px rgba(255, 140, 0, 0.15);
    border-color: rgba(255, 140, 0, 0.4);
}

.btn.primary:hover::before {
    opacity: 1;
}

.btn.primary:active:not(:disabled) {
    transform: scale(0.96) translateY(0);
    transition-duration: 0.1s;
}

.btn.primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

/* ----- ЛОАДЕР ----- */
.loader {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ----- ГРУППА КНОПОК ПОСЛЕ ЗАПРОСА ----- */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn.success {
    background: linear-gradient(135deg, #00c853 0%, #00a844 45%, #008a3a 100%);
    color: #ffffff;
    border-color: rgba(0, 200, 80, 0.3);
    box-shadow: 0 4px 30px rgba(0, 200, 80, 0.06);
    font-weight: 600;
    text-decoration: none;
}

.btn.success:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 50px rgba(0, 200, 80, 0.12);
    border-color: rgba(0, 200, 80, 0.4);
}

.btn.success:active {
    transform: scale(0.96) translateY(0);
}

.btn.copy {
    background: rgba(255,255,255,0.02);
    color: #9999bb;
    border-color: rgba(255,255,255,0.05);
    flex: 0.6;
}

.btn.copy:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.1);
    color: #ccccff;
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.btn.copy:active {
    transform: scale(0.96) translateY(0);
}

/* ----- АНИМАЦИЯ ПОЯВЛЕНИЯ КНОПОК ----- */
@keyframes fadeIn {
    0%   { opacity: 0; transform: translateY(10px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ----- БЕЙДЖИ ----- */
.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-bottom: 40px;
}

.badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.012);
    padding: 6px 18px 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.025);
    font-size: 0.8rem;
    color: #7777aa;
    transition: all 0.3s ease;
    cursor: default;
}

.badges span:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
    color: #bbbbdd;
    transform: translateY(-2px);
}

/* ============================================================
   ВИДИМЫЙ СЕО-КОНТЕНТ
   ============================================================ */
.seo-content {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.03);
    text-align: left;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.seo-content h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #ff8c00;
    margin: 28px 0 12px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.seo-content h2:first-child {
    margin-top: 0;
}

.seo-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #c8a0ff;
    margin: 22px 0 8px;
    line-height: 1.4;
}

.seo-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #b0b0c8;
    margin-bottom: 14px;
}

.seo-content a {
    color: #ff8c00;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,140,0,0.12);
    transition: all 0.3s ease;
}

.seo-content a:hover {
    color: #ffaa44;
    border-bottom-color: rgba(255,140,0,0.25);
}

.seo-content ul,
.seo-content ol {
    margin: 10px 0 18px 24px;
    color: #b0b0c8;
    line-height: 1.75;
}

.seo-content ul li,
.seo-content ol li {
    margin-bottom: 6px;
}

.seo-content ul li strong,
.seo-content ol li strong {
    color: #c8a0ff;
}

.seo-content code {
    background: rgba(255,255,255,0.04);
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #ff8c00;
    border: 1px solid rgba(255,255,255,0.04);
    word-break: break-all;
    font-family: 'Monaco', 'Menlo', monospace;
}

.seo-content .tip-box {
    background: rgba(255,140,0,0.04);
    border-left: 3px solid rgba(255,140,0,0.15);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
}

.seo-content .tip-box p {
    margin-bottom: 0;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
    .container {
        padding: 36px 24px 32px;
        border-radius: 32px;
    }

    .logo-icon {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 3.2rem;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
        padding: 0 12px;
    }

    .subtitle::before,
    .subtitle::after {
        display: none;
    }

    .intro {
        font-size: 0.95rem;
        margin: 12px 0 24px;
    }

    .btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        flex: 1;
    }

    .btn.copy {
        flex: 1;
    }

    .badges {
        gap: 8px 10px;
        margin-bottom: 28px;
    }

    .badges span {
        font-size: 0.7rem;
        padding: 5px 14px 5px 12px;
    }

    .seo-content {
        padding-top: 28px;
        margin-top: 28px;
    }

    .seo-content h2 {
        font-size: 1.3rem;
        margin: 22px 0 10px;
    }

    .seo-content h3 {
        font-size: 1rem;
        margin: 18px 0 6px;
    }

    .seo-content p {
        font-size: 0.88rem;
    }

    .seo-content ul,
    .seo-content ol {
        margin-left: 18px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 24px 14px 20px;
        border-radius: 24px;
    }

    .logo {
        gap: 8px;
    }

    .logo-icon {
        font-size: 1.4rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        padding: 0 8px;
    }

    .intro {
        font-size: 0.85rem;
        margin: 8px 0 18px;
    }

    .btn {
        padding: 13px 14px;
        font-size: 0.8rem;
        border-radius: 50px;
        gap: 6px;
    }

    .buttons {
        gap: 10px;
        margin-bottom: 24px;
    }

    .badges {
        gap: 6px 8px;
        margin-bottom: 20px;
    }

    .badges span {
        font-size: 0.6rem;
        padding: 4px 10px 4px 8px;
        gap: 4px;
    }

    .seo-content {
        padding-top: 20px;
        margin-top: 20px;
    }

    .seo-content h2 {
        font-size: 1.1rem;
        margin: 18px 0 8px;
    }

    .seo-content h3 {
        font-size: 0.9rem;
    }

    .seo-content p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .seo-content ul,
    .seo-content ol {
        margin-left: 14px;
        font-size: 0.8rem;
    }

    .seo-content .tip-box {
        padding: 12px 14px;
    }
}

/* ============================================================
   КАСТОМНЫЙ СКРОЛЛБАР
   ============================================================ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #06060c;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,140,0,0.2), rgba(150,50,255,0.15));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255,140,0,0.3), rgba(150,50,255,0.25));
}

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ ЭЛЕМЕНТОВ
   ============================================================ */
.container > * {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.container > *:nth-child(1) { animation-delay: 0.05s; }
.container > *:nth-child(2) { animation-delay: 0.15s; }
.container > *:nth-child(3) { animation-delay: 0.25s; }
.container > *:nth-child(4) { animation-delay: 0.35s; }
.container > *:nth-child(5) { animation-delay: 0.45s; }
.container > *:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
    0%   { opacity: 0; transform: translateY(18px) scale(0.97); filter: blur(3px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}