*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #040810;
    --bg-dark: #0a1628;
    --bg-card: rgba(20, 45, 85, 0.75);
    --border-glass: rgba(100, 160, 230, 0.35);
    --blue: #2d7bf5;
    --blue-light: #4a9aff;
    --teal: #1a9e8f;
    --teal-light: #25c2b0;
    --white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.35);
    --font: 'Inter', sans-serif;
    /* Form alanları — cam panel / gece mavisi paleti (beyaz yerine) */
    --input-surface: rgba(14, 32, 62, 0.88);
    --input-surface-focus: rgba(20, 44, 82, 0.95);
    --input-border: rgba(88, 145, 220, 0.4);
    --input-text: rgba(228, 236, 255, 0.96);
    --input-placeholder: rgba(130, 168, 220, 0.5);
    --input-icon: rgba(120, 165, 220, 0.65);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: radial-gradient(ellipse at 50% 30%, #0c1528 0%, #040810 70%);
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==================== PARTICLE CANVAS ==================== */

#particleCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ==================== BACKGROUND GLOWS ==================== */

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(45, 123, 245, 0.12);
    top: -150px;
    left: -150px;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(26, 158, 143, 0.08);
    bottom: 10%;
    right: -100px;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: rgba(45, 123, 245, 0.07);
    bottom: -80px;
    left: 30%;
}

/* ==================== MAIN WRAPPER ==================== */

.main-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

/* ==================== GLASS PANEL ==================== */

.glass-panel {
    position: relative;
    width: 100%;
    max-width: 880px;
    background: var(--bg-card);
    border: 1px solid rgba(140, 185, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    overflow: visible;
    z-index: 2;
    box-shadow:
        0 8px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(45, 123, 245, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 60px rgba(30, 60, 120, 0.08);
    animation: panelFadeIn 0.7s ease-out;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(50, 85, 140, 0.25) 0%, rgba(20, 40, 80, 0.1) 30%, transparent 60%);
    pointer-events: none;
}

/* ==================== NAVBAR ==================== */

.navbar {
    display: flex;
    align-items: center;
    padding: 18px 32px;
    border-bottom: 1px solid rgba(120, 175, 240, 0.15);
    position: relative;
    z-index: 2;
    background: rgba(10, 20, 45, 0.3);
    overflow: visible;
}

.nav-left {
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 2px;
}

/* E harfi — koyu PNG’yi üst bardaki beyaza çevirir; tam logo PNG’sinden farklı görünüm */
.logo-e {
    height: 36px;
    width: auto;
    max-height: 36px;
    display: block;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.logo:hover .logo-e {
    transform: scale(1.03);
}

.logo-text {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.04em;
    line-height: 1;
}

/* Hakkında / İletişim — yalnızca hamburger ile açılan çekmece */
.nav-center {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    background: rgba(12, 25, 50, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 100;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav-center.open {
    display: flex;
    padding: 8px 0 12px;
}

.nav-center .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-center .nav-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-center .nav-menu li a:hover {
    color: var(--white);
    background: rgba(74, 154, 255, 0.12);
}

.nav-right {
    flex-shrink: 0;
}

.btn-login {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-light);
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(74, 154, 255, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    background: rgba(74, 154, 255, 0.06);
}

.btn-login:hover {
    background: rgba(74, 154, 255, 0.1);
    border-color: rgba(74, 154, 255, 0.5);
    color: var(--white);
}

.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 200;
    margin-left: auto;
    flex-shrink: 0;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==================== PANEL CONTENT ==================== */

.panel-content {
    padding: 40px 48px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.panel-title {
    font-size: 30px;
    font-weight: 500;
    color: var(--white);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.panel-lead {
    max-width: 640px;
    margin: -16px auto 28px;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}

.panel-lead__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    text-align: center;
}

/* ==================== TAB BUTTONS ==================== */

.tab-group {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 48px;
    border: none;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.tab-btn[data-tab="arac"] {
    background: linear-gradient(135deg, #1656b8, #2d7bf5);
    box-shadow: 0 6px 30px rgba(45, 123, 245, 0.45);
}

.tab-btn[data-tab="arac"].active {
    box-shadow: 0 8px 40px rgba(45, 123, 245, 0.6);
    transform: translateY(-1px);
}

.tab-btn[data-tab="arac"]:not(.active) {
    background: linear-gradient(135deg, #12386a, #1a5599);
    box-shadow: 0 3px 20px rgba(45, 123, 245, 0.2);
    opacity: 0.8;
}

.tab-btn[data-tab="emlak"] {
    background: linear-gradient(135deg, #0e7868, #18b5a0);
    box-shadow: 0 6px 30px rgba(26, 158, 143, 0.45);
}

.tab-btn[data-tab="emlak"].active {
    box-shadow: 0 8px 40px rgba(26, 158, 143, 0.6);
    transform: translateY(-1px);
}

.tab-btn[data-tab="emlak"]:not(.active) {
    background: linear-gradient(135deg, #0a4a3d, #0d6358);
    box-shadow: 0 3px 20px rgba(26, 158, 143, 0.2);
    opacity: 0.8;
}

.tab-btn:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}

.tab-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ==================== SEARCH AREA ==================== */

.search-area {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.search-area.search-area--wide {
    max-width: 640px;
}

.search-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    background: var(--input-surface);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    color: var(--input-text);
    outline: none;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.search-box input::placeholder {
    color: var(--input-placeholder);
}

.search-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 123, 245, 0.2);
    background: var(--input-surface-focus);
}

.search-dropdown-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--input-icon);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-dropdown-btn:hover {
    color: var(--blue-light);
}

/* ==================== ARAÇ FORM ==================== */

.arac-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arac-form .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arac-form .arac-model-field-wrap {
    flex: 1;
    min-width: 120px;
}

.arac-form .arac-model-field-wrap select {
    width: 100%;
}

.arac-form .form-row input {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    background: var(--input-surface);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--input-text);
    outline: none;
    transition: all 0.3s ease;
    color-scheme: dark;
}

.arac-form .form-row input::placeholder {
    color: var(--input-placeholder);
}

.arac-form .form-row input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 123, 245, 0.2);
    background: var(--input-surface-focus);
}

.arac-form .form-row input[type="number"] {
    max-width: 120px;
}

.arac-form .form-row select {
    flex: 1;
    min-width: 120px;
    padding: 12px 2.25rem 12px 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--input-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a9aff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1px solid var(--input-border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--input-text);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color-scheme: dark;
    accent-color: var(--blue);
}

.arac-form .form-row select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(45, 123, 245, 0.2);
    background-color: var(--input-surface-focus);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a9aff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* Native select açılır liste (tarayıcı desteği değişken) */
.arac-form .form-row select option {
    background: #0c1a32;
    color: var(--input-text);
}

.arac-form .form-row select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==================== EMLAK PANEL ==================== */

/* hidden özniteliği ile çakışmaması için flex yalnızca görünürken (display:flex [hidden]'ı ezer) */
.emlak-panel {
    width: 100%;
}

.emlak-panel:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Sihirbaz üst: adım çubuğu + meta */
.emlak-wizard-top {
    width: 100%;
    margin-bottom: 4px;
}

.emlak-stepper__bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(20, 50, 70, 0.85);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid rgba(80, 160, 150, 0.2);
}

.emlak-stepper__fill {
    height: 100%;
    width: 25%;
    border-radius: 6px;
    background: linear-gradient(90deg, #0d9488, #18b5a0, #2d7bf5);
    box-shadow: 0 0 16px rgba(24, 181, 160, 0.45);
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.emlak-stepper__list {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 6px;
    padding: 0 2px;
    margin: 0 0 12px;
}

.emlak-stepper__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    opacity: 0.45;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.emlak-stepper__item.is-done {
    opacity: 0.85;
}

.emlak-stepper__item.is-active {
    opacity: 1;
    transform: translateY(-2px);
}

.emlak-stepper__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    background: rgba(30, 65, 95, 0.9);
    border: 2px solid rgba(100, 160, 230, 0.25);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.emlak-stepper__item.is-done .emlak-stepper__num {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.45), rgba(45, 123, 245, 0.3));
    border-color: rgba(24, 181, 160, 0.5);
    color: var(--teal-light);
    font-size: 15px;
}

.emlak-stepper__item.is-active .emlak-stepper__num {
    background: linear-gradient(135deg, #0e7868, #18b5a0);
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26, 158, 143, 0.45);
    font-size: 13px;
}

.emlak-stepper__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emlak-stepper__item.is-active .emlak-stepper__label {
    color: rgba(255, 255, 255, 0.92);
}

.emlak-step-meta {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin: 0 0 6px;
    font-weight: 500;
}

.emlak-step-heading {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.emlak-inline-alert {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
    border: 1px solid transparent;
    transition: opacity 0.25s ease;
}

.emlak-inline-alert:not([hidden]) {
    animation: emlakAlertIn 0.35s ease;
}

@keyframes emlakAlertIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emlak-inline-alert--error {
    background: rgba(180, 60, 60, 0.2);
    border-color: rgba(255, 120, 120, 0.35);
    color: #fecaca;
}

.emlak-inline-alert--info {
    background: rgba(45, 123, 245, 0.12);
    border-color: rgba(74, 154, 255, 0.3);
    color: rgba(200, 220, 255, 0.95);
}

.emlak-inline-alert--success {
    background: rgba(26, 158, 143, 0.15);
    border-color: rgba(37, 194, 176, 0.35);
    color: rgba(180, 245, 230, 0.98);
}

.emlak-options-status {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.45;
    min-height: 1.45em;
}

.emlak-options-status.emlak-options-status--error {
    color: #f0a8a8;
}

.emlak-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.emlak-form .form-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.emlak-form .form-row--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.emlak-form .form-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .emlak-form .form-row--3 {
        grid-template-columns: 1fr;
    }
}

.emlak-section-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(36, 200, 175, 0.95);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(80, 140, 130, 0.25);
    letter-spacing: 0.2px;
}

/* Sihirbazda üst başlık tekrarını önle */
.emlak-panel.emlak-mode-wizard .emlak-section-title {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 520px) {
    .emlak-stepper__label {
        display: none;
    }

    .emlak-stepper__num {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.emlak-form .form-row select,
.emlak-form .form-row input[type="number"] {
    flex: 1;
    min-width: 100px;
    padding: 12px 2.25rem 12px 16px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--input-surface);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2325c2b0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    border: 1px solid rgba(80, 160, 150, 0.35);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    color: var(--input-text);
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    color-scheme: dark;
}

.emlak-form .form-row input[type="number"] {
    background-image: none;
    padding: 12px 16px;
    cursor: text;
}

.emlak-form .form-row select:focus,
.emlak-form .form-row input[type="number"]:focus {
    border-color: var(--teal-light);
    box-shadow: 0 0 0 3px rgba(26, 158, 143, 0.2);
    background-color: var(--input-surface-focus);
}

.emlak-form .form-row select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.emlak-form .form-row select option {
    background: #0c1a32;
    color: var(--input-text);
}

.emlak-input-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 120px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.emlak-input-label input {
    width: 100%;
}

.emlak-toggle-row {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.emlak-toggle-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.emlak-toggle-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.emlak-toggle {
    width: 56px;
    height: 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    position: relative;
    transition: background 0.25s ease;
}

.emlak-toggle.off {
    background: #334155;
}

.emlak-toggle.on {
    background: linear-gradient(90deg, #0d9488, #22c55e);
}

.emlak-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    transition: left 0.25s ease;
}

.emlak-toggle.off::after {
    left: 3px;
}

.emlak-toggle.on::after {
    left: 31px;
}

.emlak-wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(80, 140, 130, 0.2);
}

.btn-wizard-next {
    font-family: var(--font);
    padding: 12px 28px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(135deg, #0e7868, #18b5a0);
    box-shadow: 0 4px 20px rgba(26, 158, 143, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-wizard-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 158, 143, 0.5);
}

.btn-wizard-next:active {
    transform: translateY(0);
}

.btn-secondary {
    font-family: var(--font);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(100, 160, 230, 0.4);
    background: rgba(20, 45, 85, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--blue-light);
    background: rgba(30, 60, 110, 0.65);
}

.btn-secondary--primary {
    border-color: rgba(32, 200, 175, 0.55);
    background: rgba(14, 90, 80, 0.55);
}

.btn-secondary--primary:hover {
    border-color: var(--teal-light);
    background: rgba(14, 110, 95, 0.75);
}

/* Wizard: tek adım görünsün */
.emlak-panel.emlak-mode-wizard .emlak-field-group {
    display: none;
}

.emlak-panel.emlak-mode-wizard .emlak-field-group.emlak-step-visible {
    display: block;
}

/* Sponsor formu — aynı palet + select ok */
.sponsor-form-container .form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a9aff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    accent-color: var(--blue);
}

.sponsor-form-container .form-group select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.sponsor-form-container .form-group select option {
    background: #0c1a32;
    color: var(--input-text);
}

/* ==================== RESULT BOX ==================== */

.result-box {
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    background: rgba(26, 158, 143, 0.15);
    border: 1px solid rgba(26, 158, 143, 0.4);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.result-legacy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.result-box-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 16px;
    width: 100%;
    min-width: 0;
}

.result-box .result-label {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 0;
}

.result-box .result-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--teal-light);
    text-align: right;
    justify-self: end;
    min-width: 0;
    max-width: 100%;
    line-height: 1.25;
}

.result-emlak-range {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px solid rgba(26, 158, 143, 0.25);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 8px;
    column-gap: 16px;
    width: 100%;
    min-width: 0;
}

.result-range-line {
    display: contents;
}

.result-range-label {
    color: var(--text-muted);
}

.result-range-val {
    font-weight: 600;
    color: rgba(251, 191, 36, 0.95);
    text-align: right;
    justify-self: end;
    min-width: 0;
}

/* ==================== VALUATION BANDS (WEB) ==================== */

.valuation-result {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Üç kart tam genişlikte alt alta */
.valuation-bands {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.valuation-band-cell {
    width: 100%;
    display: flex;
    min-width: 0;
    padding: 0;
}

.valuation-card {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(26, 158, 143, 0.35);
    background: rgba(12, 28, 52, 0.55);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 14px 18px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.valuation-card__meta {
    flex: 0 1 200px;
    min-width: min(100%, 148px);
    max-width: 42%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
}

.valuation-card--hizli {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
}

.valuation-card--normal {
    border-color: rgba(26, 158, 143, 0.4);
}

.valuation-card--iyi {
    border-color: rgba(74, 154, 255, 0.4);
    background: rgba(45, 123, 245, 0.08);
}

.valuation-card__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.3;
    margin: 0;
    flex-shrink: 0;
}

.valuation-card__range {
    font-size: 17px;
    font-weight: 600;
    color: var(--teal-light);
    line-height: 1.25;
    word-break: break-word;
    flex-shrink: 0;
    white-space: nowrap;
}

.valuation-card--hizli .valuation-card__range {
    color: rgba(251, 191, 36, 0.95);
}

.valuation-card--iyi .valuation-card__range {
    color: var(--blue-light);
}

.valuation-card__hint {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(228, 236, 255, 0.82);
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
    align-self: center;
}

@media (max-width: 420px) {
    .valuation-card {
        flex-direction: column;
        align-items: stretch;
    }

    .valuation-card__meta {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .valuation-card__range {
        white-space: normal;
    }

    .valuation-card__hint {
        align-self: stretch;
        -webkit-line-clamp: 6;
    }
}

.valuation-notes {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 15px;
}

.valuation-note {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(228, 236, 255, 0.78);
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border-left: 3px solid rgba(26, 158, 143, 0.55);
    background: rgba(12, 28, 52, 0.4);
}

.valuation-note--sabit {
    border-left-color: rgba(120, 170, 240, 0.55);
}

.valuation-note--etikla {
    border-left-color: rgba(45, 123, 245, 0.65);
    color: rgba(200, 220, 255, 0.88);
}

/* ==================== PDF ANALİZ İNDİR ==================== */

.pdf-legal-disclaimer {
    margin: 0 0 14px;
    padding: 12px 14px;
    font-size: 11.5px;
    line-height: 1.55;
    color: rgba(200, 214, 235, 0.88);
    background: rgba(8, 22, 48, 0.55);
    border: 1px solid rgba(88, 145, 220, 0.22);
    border-radius: 10px;
    border-left: 3px solid rgba(100, 160, 255, 0.45);
}

.pdf-export-block:has(.pdf-state--cta:not([hidden])) > .pdf-legal-disclaimer {
    margin-bottom: 12px;
}

.pdf-export-block {
    width: 100%;
    max-width: 420px;
    margin: 10px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(14, 32, 62, 0.45);
    border: 1px solid rgba(88, 145, 220, 0.28);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Yeşil PDF CTA: dış kenarlıklı kutu yok; sadece buton + ipucu */
.pdf-export-block:has(.pdf-state--cta:not([hidden])) {
    max-width: none;
    margin: 12px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* [hidden] ile çakışmaması için flex yalnızca görünürken */
.pdf-state--prepare:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pdf-prepare__label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(228, 236, 255, 0.92);
    line-height: 1.45;
    transition: opacity 0.25s ease;
}

.pdf-prepare__hint {
    margin: 0;
    padding-left: 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.pdf-state--ready:not([hidden]) {
    display: flex;
    justify-content: stretch;
}

.btn-indir-analiz {
    width: 100%;
    justify-content: center;
}

.pdf-state--error:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
}

.pdf-error__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 170, 150, 0.95);
}

.btn-pdf-retry {
    align-self: center;
    min-width: 140px;
}

.pdf-state--cta:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.btn-pdf-cta {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px 14px 52px;
    border-radius: 12px;
    border: 1px solid rgba(37, 194, 176, 0.45);
    background: linear-gradient(145deg, rgba(26, 158, 143, 0.95) 0%, rgba(14, 95, 82, 0.98) 100%);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(26, 158, 143, 0.28);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-pdf-cta:hover {
    border-color: rgba(37, 194, 176, 0.65);
    box-shadow: 0 6px 28px rgba(26, 158, 143, 0.38);
    transform: translateY(-1px);
}

.btn-pdf-cta:active {
    transform: translateY(0);
}

.btn-pdf-cta__crown {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

.btn-pdf-cta__crown svg {
    display: block;
}

.pdf-cta__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted);
    text-align: center;
}

/* PDF lead modal (pseudo paywall) */
body.pdf-lead-modal-open {
    overflow: hidden;
}

.pdf-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pdf-lead-modal[hidden] {
    display: none !important;
}

.pdf-lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.72);
    backdrop-filter: blur(6px);
}

.pdf-lead-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    padding: 24px 28px 22px;
    border-radius: 14px;
    border: 1px solid rgba(88, 145, 220, 0.35);
    background: linear-gradient(165deg, rgba(14, 32, 62, 0.96) 0%, rgba(8, 22, 48, 0.98) 100%);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.pdf-lead-modal__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(228, 236, 255, 0.96);
    margin: 0 0 8px;
}

.pdf-lead-modal__sub {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.pdf-lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pdf-lead-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

@media (max-width: 480px) {
    .pdf-lead-form__row {
        grid-template-columns: 1fr;
    }
}

.pdf-lead-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.pdf-lead-form__field span {
    font-weight: 500;
}

.pdf-lead-form__field input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background: var(--input-surface);
    color: var(--input-text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdf-lead-form__field input:focus {
    border-color: rgba(45, 123, 245, 0.65);
    box-shadow: 0 0 0 3px rgba(45, 123, 245, 0.18);
}

.pdf-lead-form__field--full {
    width: 100%;
}

.pdf-lead-form__error {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 150, 130, 0.95);
    line-height: 1.4;
}

.pdf-lead-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 4px;
}

.pdf-lead-form__submit {
    min-width: 140px;
}

.btn-ghost-secondary {
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--input-border);
    background: rgba(12, 28, 52, 0.5);
    color: var(--input-text);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-ghost-secondary:hover {
    background: rgba(20, 44, 82, 0.75);
    border-color: rgba(120, 170, 240, 0.55);
}

#contact .contact-intro {
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-email-card {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(14, 32, 62, 0.55);
    border: 1px solid var(--input-border);
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.contact-email-card a {
    color: var(--blue-light);
    font-weight: 600;
    text-decoration: none;
    word-break: break-all;
}

.contact-email-card a:hover {
    text-decoration: underline;
}

.contact-email-note {
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 28px 20px 56px;
    text-align: center;
    background: rgba(10, 22, 40, 0.8);
    border-top: 1px solid rgba(80, 120, 180, 0.12);
}

.site-footer__credit {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.site-footer__credit a {
    color: var(--blue-light);
    font-weight: 500;
    text-decoration: none;
}

.site-footer__credit a:hover {
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    max-width: 320px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #1a5ac0, #2d7bf5);
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 20px rgba(45, 123, 245, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(45, 123, 245, 0.5);
    background: linear-gradient(135deg, #2060cc, #3a88ff);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ==================== BAR CHART DECORATION ==================== */

.bar-chart-deco {
    position: fixed;
    right: 6%;
    bottom: 28%;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    z-index: 0;
    opacity: 0.45;
}

.bar {
    width: 8px;
    height: var(--h);
    background: linear-gradient(180deg, rgba(60, 140, 255, 0.7), rgba(45, 123, 245, 0.15));
    border-radius: 2px 2px 0 0;
    animation: barGrow 2s ease-out var(--delay) both;
}

/* ==================== PLACEHOLDER SECTIONS ==================== */

.section {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--bg-deep);
}

.section:nth-child(even) {
    background: rgba(10, 22, 40, 0.8);
}

.section-container {
    max-width: 800px;
    text-align: center;
}

.section-container h2 {
    font-size: 42px;
    font-weight: 600;
    color: var(--blue-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-container p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==================== ANIMATIONS ==================== */

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes barGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: var(--h);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .main-wrapper {
        padding: 20px 12px;
    }

    .glass-panel {
        border-radius: 16px;
        overflow: visible;
    }

    .navbar {
        padding: 14px 20px;
    }

    .btn-login {
        font-size: 12px;
        padding: 6px 14px;
        margin-right: 12px;
    }

    .panel-content {
        padding: 28px 20px 36px;
    }

    .panel-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .panel-lead {
        margin: -8px auto 20px;
        padding: 0 4px;
    }

    .panel-lead__text {
        font-size: 14px;
    }

    .tab-group {
        gap: 10px;
    }

    .tab-btn {
        padding: 12px 28px;
        font-size: 15px;
        border-radius: 12px;
    }

    .tab-icon {
        width: 20px;
        height: 20px;
    }

    .search-box input {
        padding: 12px 42px 12px 16px;
        font-size: 14px;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 15px;
    }

    .arac-form .form-row {
        flex-direction: column;
    }

    .arac-form .form-row input[type="number"] {
        max-width: none;
    }

    .bar-chart-deco {
        display: none;
    }

    .site-footer {
        padding: 22px 16px 40px;
    }

    .site-footer__credit {
        font-size: 13px;
    }

    .logo-e {
        height: 28px;
        max-height: 28px;
    }

    .logo-text {
        font-size: 0.85rem;
        letter-spacing: 0.03em;
    }
}

@media (max-width: 480px) {
    .panel-title {
        font-size: 19px;
    }

    .tab-btn {
        padding: 10px 20px;
        font-size: 14px;
        gap: 6px;
    }

    .tab-icon {
        width: 18px;
        height: 18px;
    }
}
