:root {
    --bg: #050816;
    --bg-soft: rgba(15, 23, 42, 0.7);
    --card: rgba(15, 23, 42, 0.9);
    --border: rgba(148, 163, 184, 0.18);
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.12);
    --accent-strong: rgba(79, 70, 229, 0.3);
    --accent-2: #22c55e;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --radius-lg: 18px;
    --radius-full: 999px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.55);
    --blur: 22px;
}

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #000 100%);
    color: var(--text);
    min-height: 100vh;
}

.page-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 10%, rgba(59, 130, 246, 0.18), transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(79, 70, 229, 0.25), transparent 50%),
        radial-gradient(circle at 0% 80%, rgba(16, 185, 129, 0.14), transparent 50%);
    mix-blend-mode: screen;
    opacity: 0.85;
    z-index: -2;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 18px;
}

.glass {
    backdrop-filter: blur(var(--blur));
    background: linear-gradient(120deg, rgba(15,23,42,0.92), rgba(15,23,42,0.78));
    border: 1px solid var(--border);
}

.glass-strong {
    backdrop-filter: blur(calc(var(--blur) + 8px));
    background: linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,64,175,0.92));
    border: 1px solid rgba(96, 165, 250, 0.35);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: conic-gradient(from 220deg, #4f46e5, #22c55e, #06b6d4, #4f46e5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #0b1120;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.7);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 15px;
}

.logo-sub {
    font-size: 11px;
    color: var(--muted);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.nav-link {
    position: relative;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.18s ease;
}

.nav-link:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.8);
}

.nav-whatsapp {
    padding-right: 14px;
    padding-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.07);
    color: #bbf7d0;
}

.nav-whatsapp-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 14px rgba(34,197,94,0.8);
}

.nav-admin {
    font-size: 12px;
    opacity: 0.8;
}

.site-main {
    padding: 28px 0 48px;
}

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 32px;
    padding: 14px 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.94));
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-brand {
    font-weight: 500;
    color: var(--text);
}

.footer-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}
.footer-link:hover {
    color: var(--text);
}

/* Hero */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
    gap: 26px;
    align-items: center;
    margin-top: 12px;
}

.hero-content {
    padding-right: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(52, 211, 153, 0.28);
    color: #a7f3d0;
    font-size: 11px;
    margin-bottom: 12px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34,197,94,0.9);
}

.hero-title {
    font-size: clamp(30px, 4vw, 38px);
    line-height: 1.12;
    margin: 0 0 10px;
    letter-spacing: 0.01em;
}

.gradient-text {
    background: linear-gradient(120deg, #a855f7, #4f46e5, #22c55e);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: var(--radius-full);
    padding: 9px 16px;
    font-size: 13px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 0;
}

.btn-main {
    font-weight: 500;
}

.btn-sub {
    font-size: 11px;
    color: var(--muted);
}

.btn-primary {
    background: radial-gradient(circle at top left, #4f46e5, #1d4ed8);
    color: #eef2ff;
    border-color: rgba(129, 140, 248, 0.8);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: rgba(148, 163, 184, 0.4);
    background: radial-gradient(circle at top left, rgba(15,23,42,0.9), rgba(15,23,42,0.9));
    color: var(--text);
}

.btn-ghost:hover {
    border-color: rgba(148, 163, 184, 0.8);
    background: rgba(15,23,42,0.85);
}

.btn-large {
    padding: 11px 22px;
    font-size: 14px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.hero-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    color: var(--muted);
}

.meta-value {
    color: #e5e7eb;
}

/* Hero side panel */

.hero-panel {
    border-radius: 22px;
    padding: 16px 16px 14px;
    background: radial-gradient(circle at top left, rgba(79,70,229,0.45), rgba(15,23,42,0.96));
    border: 1px solid rgba(129, 140, 248, 0.5);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.panel-title {
    font-weight: 500;
}

.panel-chip {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(15,23,42,0.92);
    border: 1px solid rgba(129, 140, 248, 0.6);
    font-size: 11px;
    color: #c7d2fe;
}

.panel-body {
    padding: 10px 10px 4px;
    border-radius: 16px;
    background: radial-gradient(circle at top, rgba(30,64,175,0.9), rgba(15,23,42,0.95));
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    margin-bottom: 6px;
}

.panel-label {
    color: var(--muted);
}

.panel-value {
    font-weight: 500;
}

.panel-value.success {
    color: #a7f3d0;
}

.panel-divider {
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
    margin: 6px 0 8px;
}

.panel-cta {
    margin-top: 4px;
    display: block;
    text-align: center;
    border-radius: var(--radius-full);
    padding: 8px 12px;
    background: linear-gradient(120deg, #22c55e, #4ade80);
    color: #022c22;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(22, 163, 74, 0.45);
}

.panel-cta:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.panel-note {
    margin: 4px 2px 0;
    font-size: 11px;
    color: var(--muted);
}

/* Sections */

.section {
    margin-top: 40px;
}

.section-header {
    margin-bottom: 18px;
}

.section-header h2 {
    font-size: 20px;
    margin: 0 0 6px;
}

.section-header p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* Cards */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.card {
    border-radius: var(--radius-lg);
    padding: 14px 14px 12px;
    background: var(--card);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.6);
    font-size: 13px;
}

.card-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.card h3 {
    font-size: 14px;
    margin: 0 0 4px;
}

.card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    color: #e5e7eb;
}

/* Features */

.feature-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.feature-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.feature-item h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.feature-item p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* CTA */

.cta-section {
    margin-top: 42px;
    margin-bottom: 10px;
}

.cta-inner {
    border-radius: 24px;
    padding: 18px 18px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-soft);
}

.cta-text h2 {
    margin: 0 0 6px;
    font-size: 18px;
}

.cta-text p {
    margin: 0;
    font-size: 13px;
    color: #cbd5f5;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

/* Form */

.form {
    padding: 16px 16px 14px;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
}

.form.small {
    max-width: 360px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    color: var(--muted);
}

.form-group label span {
    color: #f97316;
    margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.9);
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: rgba(129, 140, 248, 0.9);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.form-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--muted);
}

/* Payment layout */

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
    gap: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 6px;
}

.summary-row span:first-child {
    color: var(--muted);
}

.summary-row.total span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #e5e7eb;
}

.summary-divider {
    border-top: 1px dashed rgba(148, 163, 184, 0.4);
    margin: 8px 0 10px;
}

.payment-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-card h3 {
    margin-top: 0;
}

.gateway-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15,23,42,0.9);
    cursor: pointer;
    font-size: 12px;
}

.gateway-option input {
    margin: 0;
}

.gateway-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gateway-name {
    font-weight: 500;
}

.gateway-desc {
    color: var(--muted);
    font-size: 11px;
}

.payment-note {
    font-size: 11px;
    color: var(--muted);
    margin: 2px 0 0;
}

/* Admin */

.admin-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.stat-card {
    padding: 12px 14px;
    border-radius: 16px;
    min-width: 160px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
}

.stat-value {
    font-size: 20px;
    font-weight: 600;
}

.admin-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

/* Table */

.table-wrapper {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15,23,42,0.95);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th,
.table td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
}

.table th {
    text-align: left;
    background: rgba(15,23,42,0.98);
    color: var(--muted);
    font-weight: 500;
    font-size: 11px;
}

.table tbody tr:nth-child(even) {
    background: rgba(15,23,42,0.96);
}

.table tbody tr:nth-child(odd) {
    background: rgba(15,23,42,0.9);
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        order: -1;
    }

    .header-inner {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .payment-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn,
    .btn-large {
        width: 100%;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        font-size: 12px;
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* SLOT TASARIMI – TAKVİM ÇİPLERİ */

.slot-days {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.slot-day {
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.35);
    padding: 10px 12px;
    background: rgba(15,23,42,0.95);
}

.slot-day-header {
    font-size: 12px;
    color: #e5e7eb;
    margin-bottom: 8px;
    font-weight: 500;
}

.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Çip genel görünümü */
.slot-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(248, 113, 113, 0.0); /* varsayılan: boş slotta turuncu border aşağıda */
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 70px;
}

.slot-item input {
    display: none;
}

/* İç layout: üstte saat, altta durum */
.slot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.slot-time {
    font-size: 12px;
    font-weight: 500;
}

.slot-status {
    margin-top: 3px;
    padding-top: 2px;
    font-size: 10px;
    opacity: 0.8;
    border-top: 1px solid rgba(148, 163, 184, 0.45);
}

/* Boş (aktif) slot – turuncu border & yazı */
.slot-item:not(.slot-full) {
    border-color: rgba(248, 113, 113, 0.7);
    color: #fed7aa;
    background: rgba(15,23,42,0.9);
}

.slot-item:not(.slot-full):hover {
    border-color: rgba(251, 146, 60, 0.95);
    box-shadow: 0 0 0 1px rgba(251, 146, 60, 0.4);
    transform: translateY(-1px);
}

/* Seçili slot */
.slot-item input:checked + .slot-inner,
.slot-item input:checked ~ .slot-inner {
    color: #fefce8;
}

.slot-item input:checked ~ .slot-inner .slot-time {
    font-weight: 600;
}

/* DOLU / GEÇTİ / KAPALI slotlar */
.slot-item.slot-full {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
    border-color: rgba(148,163,184,0.7);
}

.slot-item.slot-full .slot-time {
    /* istersen üst saat için de hafif çizgi ekleyebilirsin
       text-decoration: line-through;
    */
}

/* Küçük scrollbar iyileştirmesi */
.slot-days::-webkit-scrollbar {
    width: 6px;
}
.slot-days::-webkit-scrollbar-track {
    background: rgba(15,23,42,0.9);
}
.slot-days::-webkit-scrollbar-thumb {
    background: rgba(55,65,81,0.9);
    border-radius: 999px;
}
.region-summary {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.region-summary #region-summary-price,
.region-summary #region-summary-time {
    color: #e5e7eb;
}
/* 3 kolonlu dar grid – Yeni Mahalle Ekle bölümü için */
.form-grid.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.form-grid.form-grid-3 .form-group input,
.form-grid.form-grid-3 .form-group select {
    width: 100%;
}


