:root{
    --y:#fec30a;
    --b:#0f0f0f;
    --gray:#f7f7f5;
    --border:rgba(0,0,0,0.08);
}

/* =========================
   BASE
========================= */
html {
    scroll-behavior: smooth;
}

body{
    background:#f6f7fb;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color:#111;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
        radial-gradient(circle at 20% 20%, rgba(254,195,10,0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.03), transparent 40%);
    pointer-events:none;
}

.add-wrap{
    padding:80px 0;
    z-index: 99;
}

/* =========================
   STEP SYSTEM
========================= */

.stepper{
    display:flex;
    gap:10px;
    margin-bottom:25px;
}

.step{
    font-size:12px;
    padding:6px 12px;
    border-radius:999px;
    border:1px solid var(--border);
    color:rgba(0,0,0,0.5);
    background:#fff;
}

.step.active{
    background:var(--y);
    color:#000;
    font-weight:700;
    border-color:transparent;
}

/* =========================
   CARD (SAAS GLASS)
========================= */

.card{
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    border:1px solid var(--border);
    border-radius:24px;
    padding:34px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.08),
        0 2px 10px rgba(0,0,0,0.04);
}

/* =========================
   TYPOGRAPHY
========================= */

h1{
    font-family:'Oswald',sans-serif;
    font-size:38px;
    font-weight:900;
    margin-bottom:10px;
}

.sub{
    color:rgba(0,0,0,0.55);
    margin-bottom:30px;
}

/* =========================
   FORM
========================= */

.form-grid{
    max-width:520px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

input{
    padding:14px 16px;
    border-radius:12px;
    border:1px solid var(--border);
    font-size:14px;
    outline:none;
    background:#fff;
    font-family: inherit;
    color:#111;
}

input:focus{
    border-color: rgba(254,195,10,0.6);
    box-shadow: 0 0 0 4px rgba(254,195,10,0.12);
}

/* =========================
   BUTTON (PRIMARY SaaS CTA)
========================= */

.btn-main{
    background: linear-gradient(135deg, var(--y), #ffd24d);
    border:none;
    padding:14px 18px;
    border-radius:14px;
    font-weight:800;
    cursor:pointer;
    transition: all .25s ease;
    color:#111;
    box-shadow: 0 10px 25px rgba(254,195,10,0.25);
    font-size:14px;
    font-family: inherit;
}

.btn-main:hover{
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(254,195,10,0.35);
}

.btn-main:active{
    transform: scale(0.98);
}

/* =========================
   CTA BLOCK (NEW)
========================= */

.cta-wrap{
    margin-top:22px;
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:flex-start;
}

.cta-sub{
    font-size:12px;
    color:rgba(0,0,0,0.45);
    font-weight:500;
}

/* =========================
   LAYOUT
========================= */

.layout{
    display:grid;
    grid-template-columns:1.2fr 1fr;
    gap:24px;
}

@media(max-width:900px){
    .layout{grid-template-columns:1fr;}
}

/* =========================
   PANEL
========================= */

.panel{
    border-radius:20px;
    border:1px solid var(--border);
    background:#fff;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    height:560px;
    box-shadow:0 10px 25px rgba(0,0,0,0.04);
}

.panel-head{
    padding:14px 16px;
    font-weight:700;
    font-size:13px;
    background:#fafafa;
    border-bottom:1px solid var(--border);
    font-family: inherit;
}

.panel-body{
    flex:1;
    padding:14px;
    display:flex;
    flex-direction:column;
    min-height:0;
    overflow-y: auto;
}

/* =========================
   TEXTAREA
========================= */

textarea{
    flex:1;
    border-radius:14px;
    border:1px solid var(--border);
    padding:14px;
    resize:none;
    font-size:14px;
    line-height:1.5;
    outline:none;
    background:#fff;
    font-family: inherit;
    color:#111;
    transition:.2s;
}

textarea:focus{
    border-color: rgba(254,195,10,0.6);
    box-shadow: 0 0 0 4px rgba(254,195,10,0.12);
}

/* =========================
   LIST
========================= */

.list{
    flex:1;
    overflow-y:auto;
    min-height:0;
    padding-right:6px;
}

.list::-webkit-scrollbar{
    width:6px;
}

.list::-webkit-scrollbar-thumb{
    background:rgba(0,0,0,0.1);
    border-radius:10px;
}

/* =========================
   ITEM (KEYWORDS)
========================= */

.item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 14px;
    border-radius:14px;
    background:#f9fafb;
    border:1px solid var(--border);
    margin-bottom:10px;
    cursor:pointer;
    transition:.2s;
    position:relative;
    font-size:14px;
}

.item:hover{
    transform:translateY(-2px);
    background:#fff;
    border-color: rgba(254,195,10,0.4);
    box-shadow:0 12px 25px rgba(0,0,0,0.08);
}

.item.active{
    background: rgba(254,195,10,0.12);
    border-left: 4px solid var(--y);
    opacity:1;
}

/* =========================
   KPI FOOTER (IMPROVED)
========================= */

.footer-bar{
    margin-top:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 18px;
    border-radius:16px;

    background: linear-gradient(135deg, #0f172a, #111827);
    color:#fff;

    box-shadow:0 15px 40px rgba(0,0,0,0.18);
    position:relative;
    overflow:hidden;

    font-size:14px;
}

.footer-bar::before{
    content:"";
    position:absolute;
    inset:0;
    background: radial-gradient(circle at 20% 20%, rgba(254,195,10,0.15), transparent 40%);
    pointer-events:none;
}

/* =========================
   WARNING (FIXED UX)
========================= */

.warn{
    margin-top:12px;
    display:none;
    padding:10px 12px;
    border-radius:12px;

    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    color:#b91c1c;

    font-size:12px;
    font-weight:600;
}

/* =========================
   SUCCESS BLOCK
========================= */

.success-wrap{
    padding:40px 0 80px;
}

.success-card{
    max-width:720px;
    margin:0 auto;
    background:#fff;
    border-radius:32px;
    padding:42px;
    border:1px solid rgba(0,0,0,0.06);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.06),
        0 4px 20px rgba(0,0,0,0.03);
    text-align:center;
    position:relative;
    overflow:hidden;
}

.success-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:5px;
    background:linear-gradient(90deg,var(--y),#ffd95e);
}

.success-title{
    font-family:'Oswald',sans-serif;
    font-size:46px;
    line-height:1.1;
    margin-bottom:16px;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){
    .success-card{
        padding:30px 22px;
        border-radius:26px;
    }

    .success-title{
        font-size:34px;
    }
}

/* =========================
   STEP 1 ONBOARDING UX
========================= */

.step1-card{
    padding:40px;
}

.step1-grid{
    display:grid;
    grid-template-columns:1.1fr 0.9fr;
    gap:40px;
    align-items:start;
}

.step1-sub{
    font-size:14px;
    color:rgba(0,0,0,0.55);
    margin-bottom:20px;
    line-height:1.5;
}

/* RIGHT INFO BLOCK */

.step1-info{
    background:#fafafa;
    border:1px solid var(--border);
    border-radius:18px;
    padding:20px;
}

.info-title{
    font-weight:800;
    font-size:14px;
    margin-bottom:14px;
}

.info-item{
    font-size:13px;
    padding:10px 0;
    border-bottom:1px solid rgba(0,0,0,0.05);
}

.info-item:last-child{
    border-bottom:none;
}

.info-note{
    margin-top:14px;
    font-size:12px;
    color:rgba(0,0,0,0.45);
}

/* LEFT FORM spacing fix */

.step1-form .form-grid{
    margin-top:10px;
}

/* MOBILE */

@media(max-width:900px){
    .step1-grid{
        grid-template-columns:1fr;
    }
}

.success-sub{
    max-width:520px;
    margin:0 auto 28px;
    font-size:14px;
    color:rgba(0,0,0,0.6);
    line-height:1.6;
}

.success-actions{
    display:flex;
    justify-content:center;
    margin-top:10px;
}

/* CTA BUTTON (reuse but nicer for navigation) */
.btn-pay{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    height:52px;
    padding:0 22px;

    border-radius:16px;

    background: linear-gradient(135deg, #111, #1f2937);
    color:#fff;

    font-size:14px;
    font-weight:700;

    text-decoration:none;

    transition:.2s ease;
}

.btn-pay:hover{
    transform:translateY(-2px);
    box-shadow:0 14px 30px rgba(0,0,0,0.2);
}

.success-note{
    margin-top:22px;
    font-size:12px;
    color:rgba(0,0,0,0.4);
}

.field-error {
    border: 1px solid #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.15);
}

.field-ok {
    border: 1px solid #52c41a !important;
    box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.12);
}

input {
    transition: 0.2s ease;
}

.choices {
    font-family: inherit;
    font-size: 14px;
}

/* ВАЖНО: внешний контейнер тоже скругляем */
.choices__container,
.choices__inner,
.choices__list--single {
    border-radius: 12px !important;
}

/* основной input */
.choices__inner {
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: #111;
    font-size: 14px;
    box-shadow: none;
    min-height: auto;
    transition: 0.2s ease;
}

/* убираем внутренние отступы, которые ломают визуал */
.choices__list--single {
    padding: 0;
}

/* focus как у input */
.choices.is-focused .choices__inner {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* dropdown тоже скругляем */
.choices__list--dropdown {
    border-radius: 12px !important;
    border: 1px solid var(--border);
    margin-top: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    overflow: hidden; /* 🔥 важно */
}

/* items */
.choices__item--selectable {
    padding: 5px 5px;
    font-size: 14px;
}

/* hover */
.choices__item--selectable.is-highlighted {
    background: #f5f5f5;
}

/* =========================
   KEYWORDS LOADING STATE
========================= */

.kw-loading{
    position:relative;
    overflow:hidden;
}

.kw-loading .list{
    filter:blur(5px);
    opacity:.5;
    pointer-events:none;
    transition:.25s ease;
}

.kw-loading.loaded .list{
    filter:none;
    opacity:1;
    pointer-events:auto;
}

.kw-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:5;
    backdrop-filter:blur(2px);
}

.kw-loading.loaded .kw-overlay{
    opacity:0;
    pointer-events:none;
    transition:.25s ease;
}

.kw-spinner{
    width:54px;
    height:54px;
    border-radius:50%;
    position:relative;
}

.kw-spinner::before,
.kw-spinner::after{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    border:3px solid transparent;
}

.kw-spinner::before{
    border-top-color:#fec30a;
    animation:spin 1s linear infinite;
}

.kw-spinner::after{
    inset:8px;
    border-bottom-color:#111;
    animation:spinReverse .7s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinReverse{
    to{
        transform:rotate(-360deg);
    }
}

/* =========================
   ADD ALL KEYWORDS BUTTON
========================= */

.btn-add-all{
    margin-top:14px;

    width:100%;
    height:48px;

    border:none;
    border-radius:14px;

    background:linear-gradient(135deg,#111827,#1f2937);
    color:#fff;

    font-size:13px;
    font-weight:700;

    cursor:pointer;

    transition:.2s ease;

    box-shadow:
        0 10px 25px rgba(0,0,0,0.12);
}

.btn-add-all:hover{
    transform:translateY(-2px);

    box-shadow:
        0 18px 35px rgba(0,0,0,0.18);
}

.dup-info {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #b45309;
    font-size: 13px;
    font-weight: 600;
}

.kw-progress {
    font-size: 14px;
    font-weight: 700;
    color: #fe3787;
    margin-top: 6px;
}

.kw-loader-wrap {
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.seo-tip {
    background: #fec30a08;
    border: 1px solid rgb(254 195 10);
    border-left: 4px solid #fec30a;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 20px 0 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.seo-tip-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.seo-tip-text {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(0,0,0,0.65);
}

.seo-tip-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.seo-tip-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: #101827;
    color: #fff;
}

.seo-tip-badge.outline {
    background: transparent;
    color: #101827;
    border: 1px solid rgb(16 24 39);
}

.trial-info {
    background: #f4fff7;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-left: 5px solid #22c55e;
    border-radius: 16px;
    padding: 18px 20px;
    margin: 15px 0 25px 0;
    box-shadow: 0 8px 18px rgba(34, 197, 94, 0.08);
    color: var(--b);
}

.trial-info__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.trial-info__dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.trial-info__text {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.75);
}

.trial-info__badge {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.btn-main {
    position: relative;
    background: var(--y);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(254, 195, 10, 0.25);
}

.btn-main:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(254, 195, 10, 0.35);
}

.btn-main:active {
    transform: translateY(0px);
    box-shadow: 0 6px 14px rgba(254, 195, 10, 0.2);
}

.btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* подпись под кнопкой */
.cta-sub {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    text-align: center;
    position: relative;
}

/* маленький акцентный маркер */
.cta-sub::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(254, 195, 10, 0.5);
    margin: 0 auto 6px auto;
    border-radius: 2px;
}

.btn-main {
    margin-top: 25px; /* ← ВОТ ЭТОГО НЕ ХВАТАЛО */
    position: relative;
    background: var(--y);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 18px rgba(254, 195, 10, 0.25);
    width: 100%; /* опционально — если хочешь SaaS-стиль */
    display: block;
}

.cta-sub {
    margin-top: 12px;
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    text-align: center;
}
