:root {
    --app-dark: #0b1220;
    --bg: #0b1220;
    --bg-soft: #f8fafc;
    --panel: rgba(255, 255, 255, 0.97);
    --surface: rgba(255, 255, 255, 0.97);
    --surface-border: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --header: #1b2838;
    --header-2: #243447;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-soft: #eff6ff;
    --accent-2: #2563eb;
    --accent-2-dark: #1d4ed8;
    --success: #059669;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --radius: 16px;
    --radius-lg: 22px;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --whatsapp-bar-height: 68px;
}

* { box-sizing: border-box; }

body.app-page,
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--app-dark);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
}

body:not(.app-page):not(.auth-page) {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: var(--app-dark);
    color: var(--text);
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.app-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.5;
    animation: app-float 18s ease-in-out infinite;
}

.app-bg-orb--1 {
    width: 520px;
    height: 520px;
    top: -120px;
    left: -80px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.5) 0%, transparent 70%);
}

.app-bg-orb--2 {
    width: 480px;
    height: 480px;
    right: -100px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.28) 0%, transparent 70%);
    animation-delay: -6s;
}

.app-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 100%);
}

@keyframes app-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(24px, -18px) scale(1.05); }
}

.layout {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 20px 32px;
}

.app-shell {
    animation: app-rise 0.5s ease both;
}

@keyframes app-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.layout-wide { max-width: 1480px; }

.site-header {
    background: var(--glass);
    color: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    margin-bottom: 20px;
}

.header-inner {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 20px;
    align-items: end;
    padding: 18px 22px;
}

.brand-block { display: flex; flex-direction: column; gap: 4px; }

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo:hover {
    color: #fff;
    text-decoration: none;
}

.brand-logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow:
        0 8px 18px rgba(37, 99, 235, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.brand-logo:hover .brand-logo__mark {
    transform: translateY(-1px);
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-logo__icon {
    color: #fff;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-logo__name {
    font-size: 1.22rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-indent: 0.16em;
    text-transform: uppercase;
}

.brand-logo__tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #94a3b8;
    line-height: 1.2;
}

.brand-logo--header .brand-logo__mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.brand-logo--header .brand-logo__name {
    font-size: 1.08rem;
    letter-spacing: 0.14em;
    text-indent: 0.14em;
}

.brand-logo--showcase .brand-logo__mark {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.35) 0%, rgba(29, 78, 216, 0.25) 100%);
    border: 1px solid rgba(147, 197, 253, 0.25);
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-logo--showcase .brand-logo__icon {
    color: #bfdbfe;
}

.brand-logo--showcase .brand-logo__name {
    font-size: 1.55rem;
    letter-spacing: 0.18em;
    text-indent: 0.18em;
    color: #f8fafc;
}

.brand-logo--showcase .brand-logo__tag {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.brand-logo--card {
    justify-content: center;
}

.brand-logo--card .brand-logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
}

.brand-logo--card .brand-logo__name {
    font-size: 1.35rem;
    color: var(--text);
}

.brand-logo--footer {
    gap: 8px;
}

.brand-logo--footer .brand-logo__mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.brand-logo--footer .brand-logo__name {
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    color: var(--muted);
}

.brand-logo--footer .brand-logo__icon {
    color: #fff;
}

.brand-tag {
    display: inline-flex;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #cbd5e1;
    font-size: 0.78rem;
}

.header-vin-form label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.header-vin-row,
.vin-form,
.header-part-form,
.filter-toolbar,
.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.header-vin-row input,
.vin-form input,
.header-part-form input,
.filter-toolbar input,
.search-form input,
.wizard-search {
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    font-size: 0.95rem;
}

.header-vin-row input {
    flex: 1 1 280px;
    min-width: 220px;
    background: rgba(255,255,255,0.96);
    color: var(--text);
    font-family: Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-part-form input {
    min-width: 120px;
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.header-part-form input::placeholder { color: #94a3b8; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover { text-decoration: none; }

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.btn-accent:hover {
    filter: brightness(1.04);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.34);
}

.btn-primary,
.search-form button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.24);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--line);
}

.btn-ghost:hover {
    background: var(--accent-soft);
    border-color: #93c5fd;
}

.btn-small {
    padding: 6px 10px;
    font-size: 0.82rem;
    border-radius: 8px;
}

.wizard-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 18px;
    align-items: start;
}

.wizard-sidebar {
    position: sticky;
    top: 20px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    box-shadow: var(--shadow);
}

.wizard-path h2,
.wizard-choices h3,
.panel h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.path-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.path-item {
    position: relative;
    padding: 12px 0 12px 22px;
    border-left: 2px solid var(--line);
}

.path-item:last-child { border-left-color: transparent; }

.path-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #cbd5e1;
    border: 2px solid #fff;
}

.path-item.is-done::before { background: var(--accent); }
.path-item.is-active::before {
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.path-item a,
.path-item > span {
    display: block;
    font-weight: 700;
    color: var(--text);
}

.path-item small {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    margin-top: 2px;
}

.wizard-search {
    width: 100%;
    border: 1px solid var(--line);
    margin-bottom: 10px;
    background: #fff;
}

.choice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.choice-item a,
.choice-item .choice-static {
    display: block;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: 0.15s ease;
}

.choice-item a:hover {
    border-color: #93c5fd;
    background: var(--accent-soft);
    transform: translateY(-1px);
    text-decoration: none;
}

.choice-item strong { display: block; }
.choice-item span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    margin-top: 3px;
}

.wizard-main .panel,
.content .panel,
.panel {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}

.content {
    max-width: 680px;
    margin: 0 auto;
    animation: app-rise 0.55s ease 0.05s both;
}

.hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.hero h1,
.step-title {
    margin-top: 0;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
}

.vin-banner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
}

.vin-banner strong { display: block; }
.vin-banner span { color: #9a3412; font-size: 0.92rem; }

.vin-form input {
    min-width: 260px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 14px;
}

.vin-results-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 24px;
}

.vin-results-list .choice-card {
    width: 100%;
}

.choice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: 0.15s ease;
}

.choice-card:hover {
    border-color: #93c5fd;
    background: var(--accent-soft);
    transform: translateY(-2px);
    text-decoration: none;
}

.choice-card-body {
    flex: 1;
    min-width: 0;
}

.choice-card-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.choice-card-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

.choice-card strong { display: block; font-size: 1.06rem; }
.choice-card span {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    font-size: 0.9rem;
}

.vin-match-card .vin-code {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 0.82rem;
}

.parts-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}

.vehicle-summary {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 14px;
    margin: 0 0 16px;
}

.vehicle-summary dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.vehicle-summary dd { margin: 0; font-weight: 600; }

.tree, .tree ul {
    list-style: none;
    padding-left: 16px;
    margin: 8px 0;
}

.tree > li > .tree-node strong {
    font-size: 0.98rem;
}

.tree-node {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--bg-soft);
}

.panel.error {
    border-color: #fecaca;
    background: #fef2f2;
}

.stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.stat {
    background: var(--accent-soft);
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.muted { color: var(--muted); }

.info-steps {
    margin: 0;
    padding-left: 20px;
}

.info-steps li { margin-bottom: 8px; }

.footer {
    margin-top: 28px;
    padding: 16px;
    color: #94a3b8;
    text-align: center;
    font-size: 0.88rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #cbd5e1;
    font-size: 0.88rem;
}

.breadcrumbs a {
    color: #93c5fd;
}

.breadcrumbs a:hover {
    color: #bfdbfe;
}

.raw-panel summary {
    cursor: pointer;
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.field-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 12px;
}

.field-grid dt { color: var(--muted); font-weight: 600; }
.field-grid dd { margin: 0; }

.inline-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.breadcrumbs {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }

    .layout, .layout-wide {
        padding: 12px;
    }

    .site-header {
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .header-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .header-part-form {
        display: none;
    }

    .header-vin-row {
        flex-direction: column;
    }

    .header-vin-row input,
    .header-vin-row .btn,
    .vin-form input,
    .vin-form .btn {
        width: 100%;
        min-width: 0;
    }

    .wizard-layout {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .wizard-sidebar {
        position: static;
        max-height: none;
        padding: 14px;
        border-radius: 16px;
        order: -1;
    }

    .wizard-main .panel,
    .mobile-hero {
        padding: 16px;
        border-radius: 16px;
    }

    .step-title { font-size: 1.25rem; }

    .hero-lead {
        color: var(--muted);
        margin-bottom: 0;
    }

    .wizard-path h2 {
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--muted);
    }

    .path-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        margin-bottom: 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .path-list::-webkit-scrollbar { display: none; }

    .path-item {
        flex: 0 0 auto;
        border-left: 0;
        padding: 0;
        min-width: 88px;
    }

    .path-item::before { display: none; }

    .path-item a,
    .path-item > span {
        display: block;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--bg-soft);
        border: 1px solid var(--line);
        font-size: 0.82rem;
        text-align: center;
    }

    .path-item.is-active a,
    .path-item.is-active > span {
        background: #ecfdf5;
        border-color: #6ee7b7;
        color: #065f46;
    }

    .path-item.is-done a {
        background: var(--accent-soft);
        border-color: #93c5fd;
    }

    .path-item small {
        display: none;
    }

    .mobile-picker {
        position: relative;
    }

    .picker-label {
        display: block;
        font-size: 0.88rem;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .picker-field {
        position: relative;
        display: flex;
        align-items: center;
        background: #fff;
        border: 2px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .mobile-picker.is-open .picker-field {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    }

    .picker-icon {
        padding-left: 14px;
        color: var(--muted);
        font-size: 1.1rem;
    }

    .picker-input {
        flex: 1;
        border: 0;
        padding: 14px 10px;
        font-size: 1rem;
        min-height: 48px;
        background: transparent;
        outline: none;
        -webkit-appearance: none;
    }

    .picker-clear {
        border: 0;
        background: transparent;
        color: var(--muted);
        font-size: 1.4rem;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }

    .picker-list {
        list-style: none;
        margin: 8px 0 0;
        padding: 0;
        max-height: min(52vh, 420px);
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: var(--shadow);
        -webkit-overflow-scrolling: touch;
        display: none;
    }

    .mobile-picker.is-open .picker-list {
        display: block;
    }

    .picker-option {
        border-bottom: 1px solid #eef2f7;
    }

    .picker-option:last-child { border-bottom: 0; }

    .picker-option[hidden] { display: none; }

    .picker-option-btn {
        width: 100%;
        border: 0;
        background: #fff;
        text-align: left;
        padding: 14px 16px;
        min-height: 56px;
        cursor: pointer;
    }

    .picker-option-btn:active {
        background: var(--accent-soft);
    }

    .picker-option-label {
        display: block;
        font-size: 1rem;
        font-weight: 700;
        color: var(--text);
    }

    .picker-option-meta {
        display: block;
        margin-top: 3px;
        font-size: 0.84rem;
        color: var(--muted);
    }

    .picker-empty {
        margin: 8px 0 0;
        padding: 12px;
        border-radius: 12px;
        background: #fff7ed;
        color: #9a3412;
        font-size: 0.92rem;
    }

    .parts-layout {
        grid-template-columns: 1fr;
    }

    .vin-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .vin-form {
        flex-direction: column;
        width: 100%;
    }

    .tree-node {
        flex-direction: column;
        align-items: flex-start;
    }

    .tree-node .btn {
        width: 100%;
        text-align: center;
        min-height: 44px;
    }
}

@media (min-width: 769px) {
    .mobile-picker .picker-list {
        display: block;
        max-height: 360px;
    }

    .picker-option-btn:hover {
        background: var(--accent-soft);
    }
}

/* Ortak picker stilleri */
.mobile-picker { margin-top: 4px; }

.picker-hint {
    margin: 0 0 8px;
    font-size: 0.82rem;
    color: var(--muted);
}

.picker-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.picker-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 14px;
}

.mobile-picker.is-open .picker-field {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.picker-icon {
    padding-left: 14px;
    color: var(--muted);
}

.picker-input {
    flex: 1;
    border: 0;
    padding: 13px 10px;
    font-size: 1rem;
    min-height: 48px;
    background: transparent;
    outline: none;
}

.picker-clear {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.35rem;
    width: 44px;
    cursor: pointer;
}

.picker-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.picker-option { border-bottom: 1px solid #eef2f7; }
.picker-option:last-child { border-bottom: 0; }
.picker-option[hidden] { display: none; }

.picker-option-btn {
    width: 100%;
    border: 0;
    background: #fff;
    text-align: left;
    padding: 13px 16px;
    min-height: 52px;
    cursor: pointer;
}

.picker-option-label {
    display: block;
    font-weight: 700;
}

.picker-option-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.84rem;
    color: var(--muted);
}

.picker-empty {
    margin: 8px 0 0;
    font-size: 0.9rem;
    color: #9a3412;
}

.hero-lead {
    margin-top: -4px;
    color: var(--muted);
}

.popular-brands h2 {
    margin: 18px 0 10px;
    font-size: 0.95rem;
}

.popular-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popular-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
}

.popular-chip:hover {
    background: var(--accent-soft);
    border-color: #93c5fd;
    text-decoration: none;
}

@media (max-width: 980px) {
    .header-inner,
    .wizard-layout,
    .parts-layout {
        grid-template-columns: 1fr;
    }

    .wizard-sidebar {
        position: static;
        max-height: none;
    }
}

/* ── Katalog: tek sütun, adım adım ── */

.catalog-main {
    max-width: 560px;
    margin: 0 auto;
    animation: app-rise 0.55s ease 0.05s both;
}

.step-progress-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.step-progress {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.step-progress::-webkit-scrollbar { display: none; }

.step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    min-width: 44px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 2px solid var(--line);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--muted);
}

.step-name {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.step-dot.is-done .step-num {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

.step-dot.is-current .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.step-dot.is-current .step-name {
    color: var(--text);
}

.step-line {
    flex: 1 0 10px;
    height: 2px;
    min-width: 6px;
    background: var(--line);
    margin-top: 15px;
    margin-bottom: 0;
}

.step-dot.is-done + .step-line {
    background: var(--accent);
}

.selection-trail {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.trail-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.trail-chip:hover {
    background: var(--accent-soft);
    border-color: #93c5fd;
    text-decoration: none;
}

.trail-chip.is-current {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px 24px;
    box-shadow: var(--shadow);
}

.step-kicker {
    margin: 0 0 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.step-text {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.96rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
}

.back-link:hover { color: var(--accent); }

.vin-box {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
}

.vin-partial-notice {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #93c5fd;
}

.vin-partial-notice p {
    margin: 0;
    color: #1e40af;
    font-size: 0.95rem;
}

.vin-box-title {
    margin: 0 0 10px;
    font-weight: 700;
    color: #9a3412;
}

.vin-box .vin-form {
    flex-direction: column;
}

.vin-box input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #fdba74;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    font-family: Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.step-num .icon {
    width: 16px;
    height: 16px;
}

.step-dot.is-current .step-num .icon {
    color: #fff;
}

.step-dot.is-done .step-num .icon {
    color: var(--accent);
}

.vin-box-or {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #9a3412;
}

.btn-block {
    width: 100%;
    min-height: 48px;
}

.vehicle-box {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
}

.sub-heading {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.cat-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-tree .cat-tree {
    margin: 4px 0 8px;
    padding-left: 12px;
    border-left: 2px solid var(--line);
}

.cat-group {
    margin-bottom: 6px;
}

.cat-group details {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.cat-group summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cat-group summary span {
    flex: 1;
    min-width: 0;
}

.icon-cat-chevron {
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cat-group details[open] .icon-cat-chevron {
    transform: rotate(180deg);
}

.cat-group summary::-webkit-details-marker { display: none; }

.cat-group summary::after {
    display: none;
}

.cat-group details[open] summary {
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}

.cat-leaf { margin-bottom: 6px; }

.cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 52px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: 0.15s ease;
}

.cat-link:hover {
    border-color: #93c5fd;
    background: var(--accent-soft);
    text-decoration: none;
}

.cat-link span {
    flex: 1;
    min-width: 0;
}

.cat-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

.icon-cat-item {
    color: var(--accent);
    flex-shrink: 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    font-size: 0.88rem;
}

.footer-brand,
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.site-footer a {
    font-weight: 600;
    color: #93c5fd;
}

.site-footer a:hover {
    color: #bfdbfe;
}

.app-page .brand-logo--footer .brand-logo__name {
    color: #cbd5e1;
}

.change-car {
    margin-top: 20px;
}

.header-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
}

.header-compact .brand-logo {
    max-width: 42vw;
}

.header-compact .brand-logo__name {
    font-size: 1rem;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-header {
    padding: 8px 14px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #e2e8f0;
    backdrop-filter: blur(8px);
}

.btn-header:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(147, 197, 253, 0.35);
    color: #fff;
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-list li { margin-bottom: 8px; }

.article-list a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-height: 52px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: 0.15s ease;
}

.article-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-list-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.article-list-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

.article-list strong { font-size: 1rem; }

.article-list span {
    font-size: 0.86rem;
    color: var(--muted);
}

.article-list a:hover {
    border-color: #93c5fd;
    background: var(--accent-soft);
    text-decoration: none;
}

/* Secim listesi — her zaman gorunur */
.option-section-label {
    margin: 16px 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.option-picker {
    margin-top: 4px;
}

.option-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

.option-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.option-search-wrap .option-search {
    padding-left: 42px;
}

.option-search {
    width: 100%;
    padding: 14px 16px 14px 42px;
    font-size: 1rem;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    min-height: 52px;
    background: #f8fafc;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.option-search:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.option-empty {
    margin: 0 0 10px;
    padding: 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.9rem;
}

.option-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(58vh, 460px);
    overflow-y: auto;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    -webkit-overflow-scrolling: touch;
}

.option-item {
    border-bottom: 1px solid #eef2f7;
}

.option-item:last-child {
    border-bottom: 0;
}

.option-item[hidden] {
    display: none;
}

.option-item a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    min-height: 52px;
    color: var(--text);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.option-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.option-item-arrow {
    color: var(--accent);
    flex-shrink: 0;
}

.option-item a:hover,
.option-item a:active {
    background: var(--accent-soft);
    text-decoration: none;
}

.option-label {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.option-meta {
    font-size: 0.84rem;
    color: var(--muted);
}

.popular-brands {
    margin-bottom: 16px;
}

/* Parca detay */
.article-detail {
    padding: 18px;
}

.article-gallery {
    margin-bottom: 20px;
}

.article-gallery-main {
    display: block;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: zoom-in;
    position: relative;
    min-height: 280px;
}

.article-gallery-main img,
.gallery-main-img {
    display: block;
    width: 100%;
    max-height: min(420px, 55vh);
    margin: 0 auto;
    object-fit: contain;
}

.gallery-zoom-hint {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 600;
}

.article-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    padding: 6px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-lightbox[hidden] {
    display: none !important;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: min(96vw, 900px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.article-intro h1 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.3;
}

.article-no {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: Consolas, monospace;
}

.article-supplier {
    margin: 0 0 4px;
    font-weight: 600;
}

.article-vehicle {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.article-section-title {
    display: flex;
    align-items: center;
    margin: 20px 0 10px;
    font-size: 1rem;
}

.article-facts {
    display: grid;
    grid-template-columns: minmax(120px, 38%) 1fr;
    gap: 8px 12px;
    margin: 0;
}

.article-facts dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.article-facts dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.article-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags li {
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    font-weight: 600;
}

.article-actions {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

/* ── İkonlar ── */

.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-text,
.btn-icon-text,
.back-link-inner,
.footer-link,
.footer-brand,
.vin-box-title-inner,
.sub-heading-inner,
.page-title-inner,
.section-title-inner,
.gallery-zoom-inner,
.info-step-inner,
.info-note-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.page-title-inner,
.section-title-inner {
    flex-wrap: wrap;
}

.step-heading > span {
    min-width: 0;
}

.sub-heading,
.popular-brands h2 {
    display: flex;
    align-items: center;
}

.btn .btn-icon-text {
    justify-content: center;
}

.btn-block .btn-icon-text {
    width: 100%;
}

.hero > .back-link {
    margin-top: 14px;
    margin-bottom: 0;
}

.back-link-inner .icon {
    opacity: 0.85;
}

.search-form {
    flex-direction: column;
    align-items: stretch;
}

.search-field {
    position: relative;
    width: 100%;
}

.search-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-field input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-field input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.search-result-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.search-result-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-thumb-empty {
    color: var(--muted);
}

.search-result-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.search-result-body strong {
    font-size: 1rem;
}

.search-result-body span {
    color: var(--muted);
    font-size: 0.92rem;
}

.search-result-meta {
    color: #64748b !important;
    font-size: 0.85rem !important;
}

.search-result-arrow {
    flex: 0 0 auto;
    color: var(--muted);
}

.vin-input-wrap {
    position: relative;
    flex: 1 1 100%;
    width: 100%;
}

.vin-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.vin-input-wrap input {
    width: 100%;
    padding-left: 42px;
}

.info-steps li {
    margin-bottom: 10px;
}

.info-steps .info-step-inner {
    align-items: flex-start;
}

/* ── Giriş ekranı ── */

body.auth-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 480px);
    gap: 0;
}

.auth-showcase {
    display: flex;
    align-items: center;
    padding: 48px 56px;
    color: #e2e8f0;
}

.auth-showcase-inner {
    max-width: 560px;
    animation: auth-rise 0.7s ease both;
}

.auth-showcase-brand {
    margin-bottom: 28px;
}

.auth-card-brand-mobile {
    display: none;
    justify-content: center;
    margin-bottom: 14px;
}

.auth-showcase-title {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.auth-showcase-title em {
    font-style: normal;
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 45%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-showcase-lead {
    margin: 0 0 28px;
    max-width: 34rem;
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.65;
}

.auth-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.auth-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.auth-feature-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #93c5fd;
}

.auth-feature-list strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
    font-size: 0.96rem;
}

.auth-feature-list span {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.45;
}

.auth-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    animation: auth-rise 0.65s ease 0.08s both;
}

@keyframes auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card-head {
    margin-bottom: 24px;
}

.auth-card-head--center {
    text-align: center;
}

.auth-card-head h1 {
    margin: 10px 0 8px;
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-card-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-badge--warn {
    background: #fff7ed;
    color: #c2410c;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-alert-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
}

.auth-field-control {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.auth-field-input {
    width: 100%;
    min-height: 52px;
    padding: 0 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-field-input::placeholder {
    color: #94a3b8;
}

.auth-field-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.auth-field-input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.auth-field-toggle {
    position: absolute;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.auth-field-toggle:hover {
    background: #eef2f7;
    color: var(--accent);
}

.auth-toggle-icon--hide {
    display: none;
}

.auth-field-toggle[aria-pressed="true"] .auth-toggle-icon--show {
    display: none;
}

.auth-field-toggle[aria-pressed="true"] .auth-toggle-icon--hide {
    display: inline-block;
}

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 54px;
    margin-top: 4px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
    filter: brightness(1.03);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-card-foot {
    margin: 18px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-card-public {
    margin: 16px 0 0;
    text-align: center;
}

.auth-public-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.35);
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.auth-public-link:hover {
    color: #f8fafc;
    border-color: rgba(147, 197, 253, 0.35);
    background: rgba(30, 41, 59, 0.55);
}

.auth-public-link-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-legal {
    margin: 18px 0 0;
    color: rgba(148, 163, 184, 0.85);
    font-size: 0.82rem;
}

.auth-setup-steps {
    display: grid;
    gap: 12px;
}

.auth-setup-step {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.auth-setup-step > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.88rem;
}

.auth-setup-step strong {
    display: block;
    margin-bottom: 4px;
}

.auth-setup-step p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.auth-code {
    overflow: auto;
    margin: 8px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: Consolas, monospace;
    font-size: 0.84rem;
}

/* ── Kullanici yonetimi (admin) ── */

.user-form label {
    display: grid;
    gap: 6px;
    font-size: 0.92rem;
    font-weight: 600;
}

.user-form input[type="text"],
.user-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    background: #fff;
}

.user-form input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-notice {
    margin-bottom: 14px;
}

.auth-notice.success {
    background: #ecfdf5;
    color: #065f46;
}

.auth-notice.error {
    background: #fef2f2;
    color: #991b1b;
}

.header-user {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.checkbox-field {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.checkbox-field input {
    width: auto;
}

.form-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-form {
    display: inline;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.84rem;
    min-height: auto;
}

.btn-danger {
    color: #b91c1c;
}

.badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.whatsapp-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    margin: 0;
    padding: 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.whatsapp-bar__link {
    position: relative;
    display: block;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: linear-gradient(180deg, var(--header-2) 0%, var(--app-dark) 100%);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.38);
}

.whatsapp-bar__link:hover {
    color: #fff;
    text-decoration: none;
    background: linear-gradient(180deg, #2a3f56 0%, var(--app-dark) 100%);
}

.whatsapp-bar__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(147, 197, 253, 0.08) 45%, transparent 70%);
    transform: translateX(-120%);
    animation: whatsapp-bar-shine 4.2s ease-in-out infinite;
    pointer-events: none;
}

.whatsapp-bar__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 1180px);
    min-height: var(--whatsapp-bar-height);
    margin: 0 auto;
    padding: 12px 20px;
}

.whatsapp-bar__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.whatsapp-bar__icon-svg {
    display: block;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    color: #25d366;
    fill: #25d366;
    animation: whatsapp-bar-icon-pulse 2.4s ease-in-out infinite;
}

.whatsapp-bar__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.whatsapp-bar__title {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.whatsapp-bar__subtitle {
    display: block;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-bar__cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.28);
    border: 1px solid rgba(147, 197, 253, 0.28);
    color: #fff;
    font-size: 0.86rem;
    font-weight: 700;
    white-space: nowrap;
}

.whatsapp-bar__cta-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

body.has-whatsapp-bar {
    padding-bottom: calc(var(--whatsapp-bar-height) + env(safe-area-inset-bottom, 0));
}

body.has-whatsapp-bar .layout,
body.has-whatsapp-bar .layout-wide {
    padding-bottom: 0;
}

body.has-whatsapp-bar .footer,
body.has-whatsapp-bar .site-footer {
    margin-bottom: 0;
}

body.auth-page.has-whatsapp-bar .auth-stage {
    padding-bottom: calc(24px + var(--whatsapp-bar-height) + env(safe-area-inset-bottom, 0));
}

body:has(.whatsapp-bar) {
    padding-bottom: calc(var(--whatsapp-bar-height) + env(safe-area-inset-bottom, 0));
}

@keyframes whatsapp-bar-shine {
    0%, 100% {
        transform: translateX(-120%);
    }

    45%, 55% {
        transform: translateX(120%);
    }
}

@keyframes whatsapp-bar-icon-pulse {
    0%, 100% {
        filter: drop-shadow(0 3px 10px rgba(37, 211, 102, 0.38));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 5px 16px rgba(37, 211, 102, 0.62));
        transform: scale(1.05);
    }
}

@media (max-width: 960px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .auth-stage {
        border-left: 0;
        min-height: 100vh;
        padding: 24px 16px;
    }

    .auth-card-brand-mobile {
        display: flex;
    }

    .auth-card-head--center .auth-card-brand-mobile {
        display: none;
    }

    .whatsapp-bar__inner {
        min-height: 64px;
        padding: 10px 14px;
        gap: 12px;
    }

    body.has-whatsapp-bar,
    body:has(.whatsapp-bar) {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }

    .whatsapp-bar__cta {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 640px) {
    .whatsapp-bar__subtitle {
        font-size: 0.78rem;
    }

    .whatsapp-bar__cta .whatsapp-bar__cta-inner span:last-child {
        display: none;
    }

    .whatsapp-bar__cta {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .layout {
        max-width: 100%;
    }

    .catalog-main {
        max-width: none;
    }

    .step-progress {
        padding: 10px 12px;
        border-radius: 16px;
    }

    .step-card {
        padding: 16px;
        border-radius: 16px;
    }

    .step-heading {
        font-size: 1.28rem;
    }

    .step-dot {
        min-width: 38px;
    }

    .step-name {
        font-size: 0.62rem;
    }

    .option-list {
        max-height: min(50vh, 400px);
    }

    .article-gallery-main {
        min-height: 220px;
        padding: 12px;
    }

    .article-gallery-main img,
    .gallery-main-img {
        max-height: min(360px, 48vh);
    }

    .article-facts {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .article-facts dt {
        margin-top: 8px;
    }
}

.sync-form {
    display: grid;
    gap: 14px;
    max-width: 520px;
}

.sync-form .field-label {
    font-weight: 700;
    font-size: 0.92rem;
}

.sync-form .input {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.sync-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sync-progress-bar {
    height: 12px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 12px;
}

.sync-progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    transition: width 0.25s ease;
}

.sync-progress-text {
    margin: 0 0 12px;
    font-weight: 600;
}

.sync-log {
    max-height: 220px;
    overflow: auto;
    padding: 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.82rem;
    line-height: 1.5;
}

.sync-stats {
    margin-bottom: 14px;
}
