/* Adsaturn Teklif Sihirbazı — monokrom, açık/koyu uyumlu */
.ats-wizard {
    --ats-bg: #ffffff;
    --ats-fg: #0a0a0a;
    --ats-muted: #6b6b6b;
    --ats-line: #e6e6e6;
    --ats-soft: #f5f5f5;
    --ats-radius: 16px;
    max-width: 720px;
    margin: 0 auto;
    background: var(--ats-bg);
    color: var(--ats-fg);
    border: 1px solid var(--ats-line);
    border-radius: var(--ats-radius);
    padding: 32px 28px;
    font-family: inherit;
    box-shadow: 0 8px 40px rgba(0,0,0,.06);
    box-sizing: border-box;
}
.ats-wizard *, .ats-wizard *::before, .ats-wizard *::after { box-sizing: border-box; }

/* Varsayılan: her zaman BEYAZ görünüm.
   Koyu görünüm yalnızca sitenin kendi dark mode'u aktifken (JS arka plan
   rengini algılayıp .ats-dark sınıfını ekler) veya bilinen dark-mode gövde
   sınıfları varken devreye girer. Cihazın işletim sistemi temasına BAKILMAZ. */
.ats-wizard.ats-dark,
body.dark-mode .ats-wizard, body.theme-dark .ats-wizard, [data-theme="dark"] .ats-wizard {
    --ats-bg: #111111;
    --ats-fg: #f5f5f5;
    --ats-muted: #9a9a9a;
    --ats-line: #2a2a2a;
    --ats-soft: #1b1b1b;
    box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.ats-ring { height: 34px; margin-bottom: 10px; }
.ats-ring img { height: 34px; width: auto; display: none; }
.ats-wizard .ats-ring-light { display: inline-block; }
.ats-wizard.ats-dark .ats-ring-light,
body.dark-mode .ats-wizard .ats-ring-light, body.theme-dark .ats-wizard .ats-ring-light, [data-theme="dark"] .ats-wizard .ats-ring-light { display: none; }
.ats-wizard.ats-dark .ats-ring-dark,
body.dark-mode .ats-wizard .ats-ring-dark, body.theme-dark .ats-wizard .ats-ring-dark, [data-theme="dark"] .ats-wizard .ats-ring-dark { display: inline-block; }

.ats-title { font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 700; }
.ats-subtitle { color: var(--ats-muted); margin: 0 0 20px; font-size: 15px; }

.ats-progress { height: 4px; background: var(--ats-soft); border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.ats-progress-bar { height: 100%; background: var(--ats-fg); border-radius: 99px; transition: width .35s ease; }

.ats-q { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.ats-hint { color: var(--ats-muted); font-size: 13.5px; margin: 0 0 16px; }

.ats-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ats-opt {
    border: 1.5px solid var(--ats-line);
    background: var(--ats-bg);
    color: var(--ats-fg);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14.5px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, background .15s, transform .1s;
    line-height: 1.35;
}
.ats-opt:hover { border-color: var(--ats-fg); transform: translateY(-1px); }
.ats-opt.selected { border-color: var(--ats-fg); background: var(--ats-fg); color: var(--ats-bg); font-weight: 600; }

.ats-pay-title { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.ats-pay-title:first-child { margin-top: 0; }
.ats-disc {
    display: inline-block;
    background: #1a7f37;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: .2px;
}
.ats-opt.selected .ats-disc { background: #2ea043; }

.ats-field { margin-bottom: 14px; }
.ats-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.ats-field label .ats-req { color: #c62828; }
.ats-field label .ats-optional { color: var(--ats-muted); font-weight: 400; }
.ats-input, .ats-textarea {
    width: 100%;
    border: 1.5px solid var(--ats-line);
    background: var(--ats-bg);
    color: var(--ats-fg);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.ats-input:focus, .ats-textarea:focus { border-color: var(--ats-fg); }
.ats-textarea { min-height: 110px; resize: vertical; }

.ats-kvkk {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ats-fg);
    margin-top: 10px;
    border: 1.5px solid var(--ats-line);
    background: var(--ats-soft);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    line-height: 1.5;
    transition: border-color .15s;
}
.ats-kvkk:hover { border-color: var(--ats-fg); }
.ats-kvkk.ats-kvkk-checked { border-color: var(--ats-fg); }
.ats-kvkk input {
    margin-top: 2px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: var(--ats-fg);
    flex: none;
    cursor: pointer;
}
.ats-kvkk a { color: inherit; text-decoration: underline; font-weight: 600; }
.ats-kvkk .ats-kvkk-sentence { font-size: 13.5px; line-height: 1.55; }
.ats-kvkk .ats-kvkk-sentence strong { font-weight: 700; }

/* Onay durumları: onaysız kırmızı, onaylı yeşil */
.ats-kvkk.ats-kvkk-unchecked { border-color: #c62828; }
.ats-kvkk.ats-kvkk-unchecked .ats-kvkk-sentence,
.ats-kvkk.ats-kvkk-unchecked .ats-kvkk-sentence strong,
.ats-kvkk.ats-kvkk-unchecked a { color: #c62828; }
.ats-kvkk.ats-kvkk-checked { border-color: #1a7f37; background: rgba(26, 127, 55, .07); }
.ats-kvkk .ats-kvkk-approved { color: #1a7f37; font-weight: 700; font-size: 14.5px; }

.ats-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 10px; }
.ats-btn {
    border: none;
    border-radius: 99px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
}
.ats-btn:hover { transform: translateY(-1px); }
.ats-btn-primary { background: var(--ats-fg); color: var(--ats-bg); }
.ats-btn-ghost { background: transparent; color: var(--ats-muted); }
.ats-btn[disabled] { opacity: .5; cursor: wait; transform: none; }

.ats-error {
    margin-top: 14px;
    background: rgba(198, 40, 40, .08);
    color: #c62828;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
}

/* Sonuç ekranı */
.ats-result .ats-check {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ats-fg); color: var(--ats-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 14px;
}
.ats-result h3 { text-align: center; font-size: 22px; margin: 0 0 6px; }
.ats-result .ats-result-sub { text-align: center; color: var(--ats-muted); font-size: 14.5px; margin: 0 0 22px; }
.ats-rec-card {
    border: 1.5px solid var(--ats-line);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 10px;
}
.ats-rec-card h4 { margin: 0 0 5px; font-size: 15.5px; }
.ats-rec-card p { margin: 0; color: var(--ats-muted); font-size: 13.5px; line-height: 1.5; }
.ats-result-note {
    background: var(--ats-soft);
    border-radius: 12px;
    padding: 18px 20px;
    font-size: 13.5px;
    color: var(--ats-muted);
    margin-top: 18px;
    text-align: center;
    line-height: 1.55;
}

/* Animasyonlu gradyan durum yazısı */
.ats-loading-text {
    font-size: 16.5px;
    font-weight: 800;
    background: linear-gradient(90deg, #2e5bff, #9333ea, #e8590c, #1a7f37, #2e5bff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #2e5bff; /* clip desteklemeyen tarayıcılar için */
    animation: ats-gradient-slide 4s linear infinite;
    margin-bottom: 12px;
}
@keyframes ats-gradient-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Hareketli yüklenme çubuğu */
.ats-loading-bar {
    height: 7px;
    border-radius: 99px;
    background: var(--ats-line);
    overflow: hidden;
    margin: 0 auto 14px;
    max-width: 380px;
    position: relative;
}
.ats-loading-bar span {
    position: absolute;
    top: 0; bottom: 0; left: -40%;
    width: 40%;
    border-radius: 99px;
    background: linear-gradient(90deg, #2e5bff, #9333ea, #e8590c);
    animation: ats-bar-slide 1.6s ease-in-out infinite;
}
@keyframes ats-bar-slide {
    0% { left: -40%; }
    60% { left: 100%; }
    100% { left: 100%; }
}
.ats-loading-sub { font-size: 13px; }

/* Google Ekosistemi kartları */
.ats-gstack-title { font-size: 17px; font-weight: 700; margin: 26px 0 4px; }
.ats-gstack-sub { color: var(--ats-muted); font-size: 13.5px; margin: 0 0 12px; line-height: 1.5; }
.ats-gstack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ats-gstack-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border: 1.5px solid var(--ats-line);
    border-radius: 12px;
    padding: 13px 14px;
}
.ats-gstack-card img { width: 34px; height: 34px; flex: none; margin-top: 2px; }
.ats-gstack-card h5 { margin: 0 0 3px; font-size: 14px; }
.ats-gstack-card p { margin: 0; color: var(--ats-muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 560px) {
    .ats-gstack { grid-template-columns: 1fr; }
}
.ats-honey { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

@media (max-width: 560px) {
    .ats-wizard { padding: 22px 16px; border-radius: 12px; }
    .ats-title { font-size: 21px; }
    .ats-options { grid-template-columns: 1fr 1fr; }
    .ats-q { font-size: 17px; }
}
