:root {
    --bg-color: #F6F2EC;
    --bg-soft: #FBF8F3;
    --text-main: #233038;
    --text-soft: #4C5C66;
    --text-light: #8A99A1;
    --primary-color: #4F8A6A;
    --primary-hover: #3C6E54;
    --primary-dark: #3C6E54;
    --primary-soft: #DCEEDF;
    --accent-warm: #E3A77B;
    --accent-cool: #94B6C8;
    --card-bg: #FFFFFF;
    --border-color: #E8E1D4;
    --shadow-sm: 0 4px 14px rgba(35, 48, 56, 0.06);
    --shadow-md: 0 14px 40px rgba(35, 48, 56, 0.08);
    --shadow-lg: 0 30px 80px rgba(35, 48, 56, 0.12);
    --green-50: #EAF6EE;
    --green-100: #D4EDDA;
    --green-200: #B4DEC0;
    --green-500: #3FA862;
    --green-600: #2E8C4D;
    --green-700: #1F7A3D;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --navbar-height: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Fluid base font: 16px @ 1024px → 18px @ 1920px → 20px @ 2560px */
    font-size: clamp(16px, 0.9vw, 20px);
    /* Kök öğede yatay taşmayı kırp: ekran dışına kayan (fixed) mobil menünün
       yatay scroll oluşturmasını engeller. 'clip', scroll konteyneri
       oluşturmadığından sticky navbar çalışmaya devam eder. */
    overflow-x: clip;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-main);
    overflow-x: clip;
    line-height: 1.55;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.2;
}

h1 em, h2 em {
    font-style: italic;
    color: var(--primary-color);
}

p {
    color: var(--text-soft);
}

.muted {
    color: var(--text-light);
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

.text-danger {
    color: #B12A1A;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-soft);
    transform: translateY(-1px);
}

.swal2-container {
    z-index: 10000 !important;
}

/* ====== NAVBAR ====== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(246, 242, 236, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(232, 225, 212, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.logo.small {
    font-size: 1.15rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #7ab894 0%, #2c5e44 100%);
    box-shadow: 0 3px 10px rgba(44, 94, 68, 0.35);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0;
    user-select: none;
}

.logo.small .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    font-size: 15px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-links > a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links > a:hover {
    color: var(--primary-color);
}

.btn-nav {
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-pill);
    background: var(--text-main);
    color: white !important;
    transition: all 0.2s ease;
}

.btn-nav:hover {
    background: var(--primary-color);
    transform: translateY(-1px);
    color: white !important;
}

/* ====== PROFILE DROPDOWN ====== */
.profile-dropdown {
    position: relative;
    z-index: 1100;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.8rem 0.4rem 0.4rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.profile-trigger:hover {
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2c5e44);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: #C0392B;
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    border: 2px solid white;
    box-sizing: border-box;
    display: none;
    align-items: center;
    justify-content: center;
}

.profile-name-block {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    max-width: 140px;
}

.profile-name {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.profile-completion-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: #b45309;
    line-height: 1;
}

.profile-completion-badge.is-sufficient {
    color: var(--primary-color);
}

.profile-completion-badge.is-complete {
    color: #2c5e44;
}

.profile-caret {
    color: var(--text-light);
    font-size: 0.8rem;
}

.profile-caret-icon {
    width: 14px;
    height: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

.profile-menu {
    position: absolute;
    /* Navbar'ın dikey padding'i (1rem) + küçük boşluk: menü navbar'ın hemen
       altında temiz şekilde asılı durur, navbar'a binmez. */
    top: calc(100% + 1rem + 6px);
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    padding: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.18s ease;
}

.profile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 10px 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.92rem;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.profile-menu a:hover {
    background: var(--primary-soft);
}

.profile-menu .menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.profile-menu .menu-danger {
    color: #C0392B;
}

.profile-menu .menu-danger .menu-icon {
    color: #C0392B;
}

.profile-menu .menu-danger:hover {
    background: #FDECEA;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    position: relative;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.theme-toggle-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

/* Geçilecek mod: light'ta ay, dark'ta güneş */
.theme-toggle-icon--sun {
    opacity: 0;
}

.theme-toggle-icon--moon {
    opacity: 1;
}

[data-theme="dark"] .theme-toggle-icon--moon {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon--sun {
    opacity: 1;
}

.menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 6px 8px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 10px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.92rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.profile-menu-item:hover {
    background: var(--primary-soft);
}

.menu-notif-count {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: #C0392B;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-profile-completion {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #b45309;
    flex-shrink: 0;
}

.menu-profile-completion.is-sufficient {
    color: var(--primary-color);
}

.menu-profile-completion.is-complete {
    color: #2c5e44;
}

.notif-panel {
    position: fixed;
    top: calc(var(--navbar-height, 64px) + 10px);
    right: max(5%, 12px);
    width: min(360px, calc(100vw - 24px));
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.18s ease;
    z-index: 1200;
    overflow: hidden;
}

.notif-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notif-panel-inner {
    max-height: 380px;
    overflow-y: auto;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--bg-soft);
}

.notif-clear-all {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 8px;
}

.notif-clear-all:hover {
    background: var(--primary-soft);
}

.notif-list {
    display: flex;
    flex-direction: column;
}

.notif-item {
    position: relative;
    padding: 12px 40px 12px 14px;
    border-bottom: 1px solid var(--border-color);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-msg {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.45;
}

.notif-meta {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.notif-delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1;
}

.notif-delete:hover {
    background: #FDECEA;
    color: #C0392B;
}

.notif-empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ====== GENERIC ====== */
.view {
    animation: fadeIn 0.4s ease-in-out;
}

#sessions-view, #admin-view, #posts-admin-view, #tags-admin-view, #post-detail-view {
    padding: 3rem 6%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section {
    padding: 6rem 6%;
}

.about-section.section {
    padding: 6rem 6%;
}

.about-section .reveal {
    opacity: 1;
    transform: none;
}

.section-head {
    margin-bottom: 3rem;
}

.section-head.center {
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 2.5vw, 3rem);
}

.section-sub {
    margin-top: 0.75rem;
    color: var(--text-light);
    max-width: 560px;
}

.section-head.center .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ====== BUTONLAR ====== */
.btn {
    padding: 12px 22px;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 22px rgba(79, 138, 106, 0.35);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(79, 138, 106, 0.42);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    background: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-danger {
    background: #C0392B;
    color: white;
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.28);
}

.btn-danger:hover {
    background: #A93226;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(192, 57, 43, 0.34);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ====== HERO ====== */
.hero {
    position: relative;
    padding: 5rem 6% 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.blob-a {
    width: 460px;
    height: 460px;
    background: #B7D7B9;
    top: -120px;
    left: -120px;
    animation: float 18s ease-in-out infinite;
}

.blob-b {
    width: 380px;
    height: 380px;
    background: #F1C7A8;
    bottom: -100px;
    right: -80px;
    animation: float 22s ease-in-out infinite reverse;
}

.blob-c {
    width: 320px;
    height: 320px;
    background: #B4D7E2;
    top: 30%;
    right: 30%;
    animation: float 26s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1300px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 3.5vw, 4.2rem);
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.95rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-soft);
    box-shadow: 0 4px 10px rgba(35, 48, 56, 0.04);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    height: 460px;
}

.visual-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(79, 138, 106, 0.35);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.visual-ring::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px dashed rgba(79, 138, 106, 0.25);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.float-card {
    position: absolute;
    z-index: 1;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 220px;
    animation: floatCard 6s ease-in-out infinite;
    isolation: isolate;
}

.float-card strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
}

.float-card span {
    font-size: 0.78rem;
    color: var(--text-light);
}

.fc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fc-icon svg {
    width: 22px;
    height: 22px;
}

.fc-icon.warm {
    background: #FBE4D2;
    color: #C57A47;
}

.fc-icon.cool {
    background: #DDEBF1;
    color: #4A7A8F;
}

.card-1 {
    top: 10%;
    left: 5%;
}

.card-2 {
    top: 42%;
    right: 0;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 8%;
    left: 12%;
    animation-delay: 3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ====== ABOUT ====== */
.about-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-card .eyebrow {
    margin-bottom: 0.5rem;
}

.about-card h2 {
    font-size: clamp(1.7rem, 2.2vw, 2.8rem);
    margin-bottom: 1.2rem;
}

.about-card p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
    color: var(--text-soft);
}

.about-card p strong {
    color: var(--text-main);
    font-weight: 600;
}

.about-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.about-list .check {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ===== EĞİTİM & SERTİFİKALAR ===== */
.about-credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.4rem 0 1.4rem;
}

.credential-block {
    background: var(--bg-soft, #f9f6f1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
}

.credential-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.credential-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.credential-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.credential-list li {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-left: 0.7rem;
    border-left: 2px solid var(--primary-soft);
}

.cred-name {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.35;
}

.cred-name em {
    font-style: italic;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.82rem;
}

.cred-detail {
    font-size: 0.78rem;
    color: var(--text-light);
}

@media (max-width: 820px) {
    .about-credentials {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT QUOTE ===== */
.about-quote {
    position: relative;
    margin-top: 1.8rem;
    padding: 1.2rem 1.4rem 1.2rem 2.6rem;
    background: linear-gradient(135deg, #FFFDF8 0%, var(--primary-soft) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-style: italic;
    color: var(--text-soft);
}

.about-quote > span {
    position: absolute;
    top: 0;
    left: 0.85rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.4;
}

.about-quote p {
    margin: 0;
    font-size: 0.95rem;
}

.about-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-portrait {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4 / 5;
}

.portrait-frame {
    position: absolute;
    inset: 0;
    border-radius: 200px 200px 120px 120px / 240px 240px 120px 120px;
    overflow: hidden;
    background: linear-gradient(135deg, #C7E0CB 0%, #E9D6BB 60%, #F1C7A8 100%);
    box-shadow: var(--shadow-lg);
    border: 6px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portrait-frame .portrait-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(35, 48, 56, 0.55);
    text-align: center;
    padding: 1rem;
}

.portrait-frame .portrait-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.portrait-frame .portrait-placeholder small {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    border-radius: 6px;
}

.portrait-frame.no-photo {
    background: linear-gradient(135deg, #DCEEDF 0%, #F4E6CC 100%);
}

.portrait-frame.no-photo .portrait-placeholder {
    display: flex;
}

.portrait-frame::after {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    border-radius: 180px 180px 100px 100px / 220px 220px 100px 100px;
    pointer-events: none;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 1.6rem;
    border: 1px solid var(--border-color);
    transition: all 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    font-size: 0.92rem;
}

/* ====== BOOKING ====== */
.booking-section {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.booking-wrap {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

.calendar-card,
.info-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    max-width: 100%;
}

.calendar-wrapper {
    min-width: 0;
    width: 100%;
}

.calendar-loading {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.92rem;
    background: var(--bg-soft);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.booking-custom-request {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.booking-custom-request-btn {
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    gap: 0.45rem;
}

.booking-custom-request-btn:hover {
    background: var(--primary-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

[data-theme="dark"] .booking-custom-request-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-main);
}

[data-theme="dark"] .booking-custom-request-btn:hover {
    background: rgba(46, 140, 77, 0.16);
    border-color: var(--primary-color);
    color: #8fd4a8;
}

[data-theme="dark"] .calendar-loading {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.info-card {
    padding: 1.5rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.info-list li {
    display: flex;
    gap: 0.7rem;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-top: 7px;
    flex-shrink: 0;
}

.auth-cta {
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
}

.auth-cta p {
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.selection-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-soft);
    color: var(--primary-color);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.panel-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    display: block;
}

.note-label {
    margin-top: 1rem;
}

.booking-note {
    width: 100%;
    resize: vertical;
    min-height: 84px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-family: inherit;
    font-size: 0.92rem;
    background: var(--bg-soft);
    transition: border-color 0.2s ease;
}

.booking-note:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.note-counter {
    margin-top: 0.25rem;
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ====== REVIEWS ====== */
.reviews-section {
    background: var(--bg-color);
}

.reviews-wrap {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.reviews-main {
    display: grid;
    gap: 1rem;
}

.reviews-list {
    display: grid;
    gap: 1rem;
}

.reviews-pagination,
.list-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.reviews-page-btn,
.list-page-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reviews-page-btn:hover:not(:disabled),
.list-page-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.reviews-page-btn.active,
.list-page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.reviews-page-btn:disabled,
.list-page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.reviews-page-info,
.list-page-info {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-left: 0.35rem;
}

.review-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.review-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-card-actions {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.review-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.review-author {
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.review-content {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 0.75rem;
}

.review-tag-list,
.review-tag-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.review-tag-list {
    margin-top: 0.75rem;
}

.review-tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(46, 140, 77, 0.1);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid rgba(46, 140, 77, 0.18);
}

.review-tag-option {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.review-tag-option:hover,
.review-tag-option.is-selected {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(46, 140, 77, 0.08);
}

.review-tag-option.is-selected {
    box-shadow: inset 0 0 0 1px rgba(46, 140, 77, 0.15);
}

.swal-tag-picker {
    justify-content: flex-start;
    max-height: 220px;
    overflow-y: auto;
    padding: 3px;
    box-sizing: border-box;
}

.admin-tags-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-tags-head .muted {
    flex: 1;
    min-width: 220px;
    margin: 0;
}

[data-theme="dark"] .review-tag-chip {
    background: rgba(46, 140, 77, 0.16);
    border-color: rgba(46, 140, 77, 0.28);
}

[data-theme="dark"] .review-tag-option.is-selected,
[data-theme="dark"] .review-tag-option:hover {
    background: rgba(46, 140, 77, 0.14);
}

.review-form-card h3 {
    margin-bottom: 0.5rem;
}

.review-form-hint {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.review-textarea {
    min-height: 120px;
    margin-bottom: 1rem;
}

/* LEGEND */
.legend {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green { background: var(--green-200); border: 1px solid var(--green-500); }
.dot-gray  { background: #ECECEC; border: 1px solid #D5D5D5; }
.dot-active { background: var(--green-600); border: 1px solid var(--green-700); }
.dot-taken { background: #FCE3C8; border: 1px solid #E5994A; }
.dot-empty { background: white; border: 1px dashed #B8B8B8; }

/* CALENDAR */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header > span:nth-child(2) {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-main);
}

.calendar-nav {
    cursor: pointer;
    width: 38px;
    height: 38px;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.calendar-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
    width: 100%;
}

.calendar-day-header {
    font-size: 0.78rem;
    color: var(--text-light);
    padding-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.calendar-day {
    padding: 14px 0;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    border: 1px solid transparent;
    user-select: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.disabled {
    color: #C8C8C8;
    cursor: not-allowed;
    background: #F4F2EE;
}

.calendar-day.available {
    background: var(--green-50);
    color: var(--green-700);
    border-color: var(--green-200);
    cursor: pointer;
}

.calendar-day.available:hover {
    background: var(--green-100);
    border-color: var(--green-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(63, 168, 98, 0.18);
}

.calendar-day.today {
    border-color: var(--primary-color);
    border-style: dashed;
}

.calendar-day.selected {
    background: var(--green-600) !important;
    color: white !important;
    border-color: var(--green-700) !important;
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(46, 140, 77, 0.4);
}

.calendar-day.taken {
    background: #FFF1DC;
    color: #B5712A;
    border-color: #F1C895;
    cursor: pointer;
    position: relative;
}

.calendar-day.taken:hover {
    background: #FCE3C8;
    border-color: #E5994A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 153, 74, 0.2);
}

.calendar-day.empty-day {
    background: white;
    color: var(--text-soft);
    border: 1px dashed var(--border-color);
    cursor: pointer;
}

.calendar-day.empty-day:hover {
    background: var(--bg-soft);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.calendar-day .day-meta {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.calendar-day.empty .day-meta,
.calendar-day.disabled .day-meta {
    display: none;
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.time-slot {
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-main);
    background: var(--bg-soft);
    transition: all 0.2s ease;
}

.time-slot:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(79, 138, 106, 0.35);
}

.time-slot.taken {
    background: #F2F2F2;
    color: #B0B0B0;
    border-color: #E2E2E2;
    border-style: dashed;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

.time-slot.taken:hover {
    border-color: #E2E2E2;
    color: #B0B0B0;
    background: #F2F2F2;
}

/* ====== SESSIONS VIEW ====== */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.view-header h2 {
    font-size: 2rem;
}

.sessions-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.session-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.session-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.session-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.session-date {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-main);
}

.session-note {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin-bottom: 0.8rem;
    min-height: 1.2em;
}

.session-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.empty-state {
    grid-column: 1 / -1;
    background: var(--bg-soft);
    border: 1px dashed var(--border-color);
    color: var(--text-light);
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius-md);
}

.status-badge {
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.status-badge.pending {
    background-color: #FFF3CD;
    color: #856404;
}

.status-badge.approved {
    background-color: var(--green-100);
    color: var(--green-700);
}

.status-badge.rejected {
    background-color: #FDECEA;
    color: #B12A1A;
}

.status-badge.has-tooltip {
    cursor: help;
    text-decoration: underline dotted;
    text-underline-offset: 2px;
    position: relative;
}

.status-badge.has-tooltip::before {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #2D3748;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 200;
    pointer-events: none;
}

.status-badge.has-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #2D3748;
    color: #fff;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    line-height: 1.35;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 200;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
}

.status-badge.has-tooltip:hover::before,
.status-badge.has-tooltip:hover::after,
.status-badge.has-tooltip:focus-visible::before,
.status-badge.has-tooltip:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.status-badge.cancelled {
    background-color: #ECEFF1;
    color: #5A6B73;
}

/* ====== ADMIN FILTERS + ROW ACTIONS ====== */
.admin-filters {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.row-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-mini {
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--text-main);
    transition: all 0.15s ease;
}

.btn-mini:hover {
    transform: translateY(-1px);
}

.btn-mini-success {
    background: var(--green-600);
    color: white;
    border-color: var(--green-600);
}

.btn-mini-success:hover {
    background: var(--green-700);
    border-color: var(--green-700);
}

.btn-mini-danger {
    background: #FDECEA;
    color: #B12A1A;
    border-color: #F2C9C3;
}

.btn-mini-danger:hover {
    background: #B12A1A;
    color: white;
    border-color: #B12A1A;
}

.row-meta {
    color: var(--text-light);
    font-size: 0.82rem;
}

.row-sub {
    display: block;
    color: var(--text-light);
    font-size: 0.78rem;
    margin-top: 2px;
}

/* ====== ADMIN TABS ====== */
.admin-tabs {
    display: flex;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.admin-tab {
    background: none;
    border: none;
    padding: 0.85rem 1.2rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    margin-bottom: -1px;
}

.admin-tab:hover {
    color: var(--text-main);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

/* ====== AVAILABILITY MANAGEMENT ====== */
.availability-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.availability-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.availability-card-head {
    margin-bottom: 1rem;
}

.availability-card-head h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.day-slots-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    min-height: 60px;
}

.slot-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
}

.slot-row.is-booked {
    background: #FFF7EC;
    border-color: #F1C895;
}

.slot-time {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    min-width: 56px;
}

.slot-tag {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-color);
    text-align: center;
    max-width: max-content;
}

.slot-tag.taken {
    background: #FCE3C8;
    color: #B5712A;
}

.slot-tag.pending {
    background: #FEF3C7;
    color: #92651A;
}

.slot-tag.free {
    background: var(--green-200, #DCF5E3);
    color: var(--green-700, #2C7A4B);
}

.slot-actions {
    margin-left: auto;
}

.day-slots-add {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

.time-input-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.55rem 0 0.85rem;
}

.time-picker-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 120px;
}

.time-picker-field--compact {
    min-width: 108px;
}

.time-picker-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.02em;
}

.time-hour-select,
.time-picker-input {
    appearance: none;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.time-hour-select {
    padding-right: 2rem;
    background-color: var(--bg-soft);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-soft) 50%),
        linear-gradient(135deg, var(--text-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 16px) calc(50% + 2px),
        calc(100% - 11px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.time-hour-select:focus,
.time-picker-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-soft);
    background-color: var(--card-bg);
}

.quick-times {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.time-chip {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-soft);
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.time-chip:hover {
    background: var(--primary-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.empty-state.small {
    padding: 1rem;
    font-size: 0.85rem;
}

.time-loading,
.time-empty {
    grid-column: span 2;
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light);
    padding: 0.5rem;
}

.time-empty {
    color: #B12A1A;
}

/* ====== MANUAL BOOK MODAL ====== */
.modal-content.modal-content-lg {
    max-width: 560px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-group input[type="date"],
.form-group input[type="time"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.modern-filter {
    position: relative;
    max-width: 400px;
    margin-bottom: 20px;
}
.modern-filter input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #f8f9fa;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.modern-filter input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.15);
    outline: none;
}
.modern-filter .filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ba4a8;
    pointer-events: none;
}

.client-search {
    position: relative;
}

.client-search-results {
    margin-top: 0.5rem;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    display: grid;
    gap: 2px;
    padding: 4px;
}

.client-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: none;
    background: none;
    text-align: left;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s ease;
}

.client-result:hover {
    background: var(--primary-soft);
}

.client-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2c5e44);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.client-info strong {
    color: var(--text-main);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-info span {
    color: var(--text-light);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picked-client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--primary-color);
    background: var(--primary-soft);
    border-radius: var(--radius-md);
}

.picked-client .btn-mini {
    margin-left: auto;
}

.time-range-picker {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.85rem;
    align-items: end;
}

.time-range-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--primary-color);
}

.time-range-arrow svg {
    width: 18px;
    height: 18px;
}

.bulk-modal-section {
    margin-bottom: 1.35rem;
}

.bulk-slot-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    min-height: 28px;
}

.bulk-slot-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.bulk-slot-preview-error {
    color: #B12A1A;
    font-size: 0.86rem;
    font-weight: 500;
}

.bulk-day-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bulk-day-pill {
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    padding: 0.45rem 0.85rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bulk-day-pill:hover {
    border-color: var(--primary-color);
}

.bulk-day-pill.is-selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 980px) {
    .availability-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== HAMBURGER & MOBİL MENÜ ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s;
    z-index: 1001;
}

.hamburger:hover { background: var(--primary-soft); }

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(246, 242, 236, 0.97);
    backdrop-filter: blur(16px);
    z-index: 190;
    padding: var(--navbar-height, 64px) 6% 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

body.mobile-menu-open .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 201;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 12px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.15s;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active { background: var(--primary-soft); }

.mobile-nav-links .menu-danger { color: #C0392B; }
.mobile-nav-links .menu-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--primary-color); }
.mobile-nav-links .menu-danger .menu-icon { color: #C0392B; }

.mobile-login-btn {
    background: var(--primary-color) !important;
    color: white !important;
    border-radius: 12px !important;
    margin-top: 4px;
}

.mobile-login-btn .menu-icon { color: white !important; }
.mobile-login-btn:hover { background: var(--primary-dark) !important; }

.mobile-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* ====== ADMIN TABLE ====== */
.table-container {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

th {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Tarih & Saat kolonu — asla satır kırmasın */
.nowrap-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Masaüstü aksiyon butonları: her zaman görünür */
.desktop-actions {
    display: flex;
}

/* Mobil dropdown: varsayılan gizli */
.mobile-actions {
    display: none;
}

/* Admin: tablet ve dar ekranda yan yana buton yerine işlem combosu */
@media (max-width: 1200px) {
    #admin-view .desktop-actions,
    #tags-admin-view .desktop-actions {
        display: none;
    }

    #admin-view .mobile-actions,
    #tags-admin-view .mobile-actions {
        display: flex;
    }
}

/* Mobil aksiyon select wrapper */
.mobile-action-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.mobile-action-wrap::after {
    content: '';
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F8A6A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.mobile-action-wrap:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Mobil aksiyon select */
.mobile-action-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.48rem 2.1rem 0.48rem 0.9rem;
    border: 1.5px solid var(--primary-soft);
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-soft) 100%);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-hover);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        0 1px 3px rgba(79, 138, 106, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    letter-spacing: 0.01em;
    min-width: 110px;
}

.mobile-action-select:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow:
        0 3px 10px rgba(79, 138, 106, 0.2),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.mobile-action-select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow:
        0 0 0 3px rgba(79, 138, 106, 0.15),
        0 3px 10px rgba(79, 138, 106, 0.12);
    color: var(--primary-color);
}

.mobile-action-select option:first-child {
    color: var(--text-light);
    font-style: italic;
}


/* ====== MODAL ====== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35, 48, 56, 0.55);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.notes-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.notes-modal-head .modal-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.notes-modal-head .btn-close {
    flex-shrink: 0;
    margin: 0.1rem -0.25rem 0 0;
}

.modal-sub {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.modal-foot {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-soft);
}

.mail-template-textarea {
    width: 100%;
    min-height: 180px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    color: var(--text-main);
    box-sizing: border-box;
}

.mail-template-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12);
}

.mail-template-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.mail-template-hint code {
    font-size: 0.8rem;
    background: var(--bg-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.row-actions .btn-mini + .btn-mini {
    margin-left: 0.35rem;
}

.turnstile-wrap {
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.turnstile-stage {
    position: relative;
    width: min(100%, 300px);
    min-height: 65px;
}

.turnstile-wrap.is-loaded .turnstile-stage {
    min-height: 65px;
}

.turnstile-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
}

.turnstile-container > div,
.turnstile-container iframe {
    display: block;
}

.turnstile-skeleton {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 65px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-light);
    background: var(--bg-soft);
    border: 1px dashed var(--border-color);
    pointer-events: none;
}

.turnstile-wrap.is-loaded .turnstile-skeleton,
.turnstile-wrap.is-error .turnstile-skeleton {
    display: none;
}

.turnstile-error {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    color: #B12A1A;
    background: #FDECEA;
    border: 1px solid #F2C9C3;
    border-radius: var(--radius-sm);
}

.turnstile-wrap.is-error .turnstile-container {
    display: none;
}

.turnstile-wrap.is-error .turnstile-error {
    display: flex;
    min-height: 65px;
}

[data-theme="dark"] .turnstile-error {
    color: #E8938A;
    background: #3A2320;
    border-color: #5C3530;
}

.turnstile-retry-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    line-height: 1.4;
}

.turnstile-retry-btn:hover {
    color: var(--text-main);
    border-color: var(--primary-color);
}

.turnstile-wrap:not(.is-loaded) .turnstile-retry-btn,
.turnstile-wrap.is-error .turnstile-retry-btn {
    display: inline-flex;
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-main);
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-soft);
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12);
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ====== OTP ====== */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.otp-field {
    width: 45px !important;
    height: 55px !important;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    padding: 0;
    -moz-appearance: textfield;
}

.otp-field::-webkit-outer-spin-button,
.otp-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-field:focus {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 400px) {
    .otp-container {
        gap: 6px;
    }

    .otp-field {
        width: 40px !important;
        height: 50px !important;
        font-size: 20px;
    }
}

/* ====== LOADING ====== */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(35, 48, 56, 0.7);
    color: white;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SweetAlert tweaks */
.swal2-popup,
.site-modal-popup {
    border-radius: var(--radius-lg) !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 1.75rem 1.5rem 1.5rem !important;
}

.swal2-title {
    font-family: 'Playfair Display', serif !important;
    color: var(--text-main) !important;
    font-size: 1.35rem !important;
}

.swal2-html-container {
    color: var(--text-soft) !important;
    font-size: 0.95rem !important;
}

.swal-modal-actions {
    gap: 0.6rem !important;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 0.25rem !important;
}

.swal-input-popup .swal2-input,
.swal-input-popup .swal2-textarea {
    margin: 0.75rem auto 1.35rem !important;
}

.swal-input-popup .swal2-validation-message {
    margin: 0.35rem auto 0.85rem !important;
}

.swal-input-popup .swal-modal-actions {
    margin-top: 0.85rem !important;
    padding-top: 0.35rem;
}

.swal2-actions .btn {
    margin: 0 !important;
    min-width: 7rem;
    box-shadow: none;
}

.swal2-actions .btn-primary {
    box-shadow: 0 8px 22px rgba(79, 138, 106, 0.35);
}

.swal2-actions .btn-danger {
    box-shadow: 0 8px 22px rgba(192, 57, 43, 0.28);
}

.swal2-input,
.swal2-textarea {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    background: var(--bg-soft) !important;
    color: var(--text-main) !important;
    font-family: inherit !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus {
    border-color: var(--primary-color) !important;
    background: var(--card-bg) !important;
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12) !important;
}

.swal2-popup .swal2-input {
    margin: 0.5rem auto 0 !important;
}

.swal2-popup .swal2-input + .swal2-input {
    margin-top: 0.75rem !important;
}

.booking-request-form {
    text-align: left;
    font-size: 0.95em;
    max-width: 100%;
    padding-inline: 3px;
}

.booking-request-intro {
    margin-bottom: 15px;
    color: var(--text-soft);
    line-height: 1.5;
}

.booking-request-form .form-group input[type="date"],
.booking-request-form .form-group input[type="time"],
.booking-request-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.booking-request-form .form-group input[type="date"]:focus,
.booking-request-form .form-group input[type="time"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12);
}

.booking-request-popup .swal2-html-container {
    overflow: visible !important;
}

.booking-request-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-soft);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    resize: vertical;
    min-height: 90px;
}

.booking-request-form textarea:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12);
}

@media (max-width: 768px) {
    .swal2-popup.booking-request-popup {
        width: calc(100vw - 1.5rem) !important;
        max-width: calc(100vw - 1.5rem) !important;
        margin: 0.75rem auto !important;
        padding: 1.25rem 1rem !important;
    }

    .swal2-container:has(.booking-request-popup) {
        align-items: flex-start !important;
        padding: max(0.75rem, env(safe-area-inset-top)) 0.75rem 0.75rem !important;
        overflow-y: auto !important;
    }

    .booking-request-popup .swal2-html-container {
        max-height: none !important;
        margin: 0 !important;
        padding: 0 4px !important;
    }

    .booking-request-popup .swal2-actions {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .booking-request-popup .swal2-actions .btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
    }

    .site-modal-popup .swal2-actions {
        flex-wrap: wrap;
    }

    .site-modal-popup .swal2-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }
}

/* ====== FOOTER ====== */
.site-footer {
    background: #1F2A30;
    color: #C8D1D6;
    padding: 4rem 6% 1.5rem;
    margin-top: 2rem;
}

.site-footer h4 {
    color: white;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.site-footer .logo {
    color: white;
    margin-bottom: 1rem;
}

.site-footer .muted {
    color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    max-width: 1300px;
    margin: 0 auto 2.5rem;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-grid a {
    color: #C8D1D6;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    max-width: 1300px;
    margin: 0 auto;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1080px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: 2;
        height: auto;
    }

    .about-portrait {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-card {
        order: 1;
    }

    .booking-wrap {
        grid-template-columns: 1fr;
    }

    .reviews-wrap {
        grid-template-columns: 1fr;
    }
}

/* ===== TABLET ===== */
@media (max-width: 820px) {
    /* Tablet: tüm nav linkleri ve butonlar gizlenir; hamburger gösterilir.
       !important ile JS'in inline style yazmasını geçersiz kılar. */
    .nav-links { margin-left: auto; margin-right: 0.5rem; }
    .nav-links > a { display: none !important; }
    #nav-login    { display: none !important; }
    #nav-book     { display: none !important; }
    #nav-admin    { display: none !important; }
    #nav-profile  { display: none !important; }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
}

/* ===== MOBİL ===== */
@media (max-width: 600px) {
    .navbar {
        padding: 0.85rem 5%;
    }

    .logo {
        font-size: 1.05rem;
    }
    .logo-mark {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .hero {
        padding: 2.5rem 5% 2rem;
        min-height: auto;
    }

    .section:not(.about-section) {
        padding: 3rem 5%;
    }

    .about-section.section {
        padding: 3rem 5%;
    }

    .hero-text h1 {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero-chips {
        gap: 0.4rem;
        margin-bottom: 0;
    }

    .chip {
        font-size: 0.78rem;
        padding: 0.35rem 0.7rem;
    }

    .section-head h2, .about-card h2 {
        font-size: 1.65rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: auto;
        order: 2;
    }

    .about-portrait {
        max-width: 240px;
        margin: 0 auto;
    }

    /* Takvim mobil */
    .calendar-card {
        padding: 1rem;
    }

    .calendar-loading {
        min-height: auto;
        padding: 2.5rem 1rem;
    }

    .calendar-header {
        margin-bottom: 1rem;
    }

    .calendar-day {
        width: 100%;
        min-width: 0;
        height: auto;
        aspect-ratio: 1;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(0.68rem, 2.8vw, 0.78rem);
    }

    .calendar-day .day-meta {
        display: none;
    }

    .calendar-day.selected,
    .calendar-day.available:hover,
    .calendar-day.taken:hover {
        transform: none;
    }

    .calendar-day-header {
        font-size: clamp(0.62rem, 2.2vw, 0.75rem);
    }

    .booking-side {
        width: 100%;
    }

    /* Küçük ekran — kompakt butonlar ve saat slotları */
    .btn {
        padding: 0.65rem 1rem;
        font-size: 0.88rem;
    }

    .btn-lg {
        padding: 0.75rem 1.15rem;
        font-size: 0.92rem;
    }

    .btn-block {
        margin-top: 0.75rem;
    }

    .btn-primary,
    .btn-danger {
        box-shadow: 0 4px 14px rgba(79, 138, 106, 0.25);
    }

    .btn-primary:hover {
        box-shadow: 0 6px 18px rgba(79, 138, 106, 0.3);
    }

    .btn-danger:hover {
        box-shadow: 0 6px 18px rgba(192, 57, 43, 0.28);
    }

    .info-card {
        padding: 1.15rem;
    }

    .info-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }

    .auth-cta {
        padding: 1rem;
    }

    .auth-cta p {
        font-size: 0.85rem;
        margin-bottom: 0.65rem;
    }

    .selection-pill {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
        margin-bottom: 1rem;
    }

    .booking-note {
        min-height: 72px;
        font-size: 0.88rem;
        padding: 0.65rem 0.75rem;
    }

    .booking-custom-request {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .booking-custom-request-btn {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.35;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(5.25rem, 1fr));
        gap: 0.45rem;
    }

    .time-slot {
        padding: 0.5rem 0.35rem;
        font-size: 0.82rem;
    }

    .review-tag-option {
        padding: 0.38rem 0.65rem;
        font-size: 0.8rem;
    }

    .sessions-list {
        grid-template-columns: 1fr;
    }

    .view-header .btn {
        width: 100%;
    }

    .swal2-popup,
    .site-modal-popup {
        padding: 1.25rem 1rem 1rem !important;
    }

    .swal2-actions .btn {
        min-width: 0;
    }

    .swal2-title {
        font-size: 1.2rem !important;
    }

    /* Footer mobil */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid > div {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Admin panel mobil */
    .view-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .admin-tab {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
    }

    /* Tablo mobil */
    .table-container {
        font-size: 0.82rem;
    }

    th, td {
        padding: 0.65rem 0.6rem;
        font-size: 0.8rem;
    }

    /* Talepler tablosu: masaüstü butonları gizle, dropdown göster */
    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
    }


    /* Modal mobil */
    .modal-content {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .modal-title {
        font-size: 1.35rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Client kartlar mobil */
    .client-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .client-card-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 360px) {
    .section,
    .hero,
    .navbar {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .about-section.section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .calendar-card {
        padding: 0.65rem;
    }

    .calendar-grid {
        gap: 3px;
    }

    .calendar-header {
        margin-bottom: 0.85rem;
    }

    .calendar-header > span:nth-child(2) {
        font-size: 1.05rem;
    }

    .calendar-nav {
        width: 30px;
        height: 30px;
        font-size: 0.78rem;
    }

    .legend {
        gap: 0.45rem;
    }

    .legend-item {
        font-size: 0.72rem;
    }

    .btn {
        padding: 0.58rem 0.85rem;
        font-size: 0.82rem;
    }

    .btn-lg {
        padding: 0.65rem 1rem;
        font-size: 0.86rem;
    }

    .info-card {
        padding: 1rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
        gap: 0.35rem;
    }

    .time-slot {
        padding: 0.42rem 0.2rem;
        font-size: 0.76rem;
    }

    .booking-custom-request-btn {
        font-size: 0.8rem;
        padding: 0.58rem 0.75rem;
    }

    .booking-request-popup .swal2-actions .btn,
    .site-modal-popup .swal2-actions .btn {
        padding: 0.58rem 0.65rem;
        font-size: 0.82rem;
    }

    .swal2-title {
        font-size: 1.1rem !important;
    }

    .fab {
        width: 52px;
        height: 52px;
    }

    .fab-container {
        bottom: 16px;
        right: 16px;
    }
}

.btn-mini-ghost {
    background: var(--primary-soft);
    color: var(--primary-hover);
    border-color: transparent;
}

.btn-mini-ghost:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.clients-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.client-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.client-card-info strong {
    color: var(--text-main);
}

.client-card-info span {
    font-size: 0.85rem;
    color: var(--text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-card-meta {
    font-size: 0.78rem !important;
    color: var(--text-light) !important;
}

/* Notlar - Master/Detail Sayfa Layout */
#admin-client-detail {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-top: -1rem;
}

.client-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.client-notes-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .client-notes-grid {
        grid-template-columns: 1fr;
    }
}

.notes-list-large {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-right: 8px;
}

.notes-list-large::-webkit-scrollbar {
    width: 6px;
}
.notes-list-large::-webkit-scrollbar-thumb {
    background: #cdd5d9;
    border-radius: 4px;
}

.note-item {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.note-item:hover {
    box-shadow: var(--shadow-sm);
}

.note-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.note-content {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.note-content p { margin: 0 0 0.5rem; }
.note-content ul, .note-content ol { margin: 0.2rem 0 0.5rem 1.4rem; }
.note-content h1, .note-content h2, .note-content h3 { margin: 0.5rem 0 0.4rem; }

.notes-editor-container {
    position: sticky;
    top: 90px;
}

.notes-editor-wrap {
    margin-top: 0.5rem;
}

#notesEditor {
    background: white;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.95rem;
}

#notesEditor .ql-editor {
    min-height: 300px;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
    border-color: var(--border-color) !important;
}

.ql-toolbar.ql-snow {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--bg-soft);
}

.notes-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.btn-close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 6px;
}
.btn-close:hover {
    color: var(--text-main);
}

/* ===== AUTH CONSENT & LEGAL MODALS ===== */
.auth-consent-text {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
}

.auth-consent-text-secondary {
    margin-top: 0.55rem;
}

.auth-consent-checkboxes {
    margin: 1rem 0 0.25rem;
    text-align: left;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.turnstile-wrap-step2 {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

#authStep2 .auth-step2-actions {
    position: relative;
    z-index: 3;
    margin-top: 1.25rem;
}

.auth-consent-intro {
    margin: 0 0 0.7rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-light);
}

.auth-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0.65rem;
    cursor: pointer;
    line-height: 1.45;
}

.auth-consent-label input {
    margin-top: 3px;
    flex-shrink: 0;
}

.consent-link {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
}

.consent-link:hover { color: var(--primary-dark); }

.modal-scroll .modal-content {
    max-height: 88vh;
}

.modal-content.modal-scroll {
    max-height: 88vh;
    overflow-y: auto;
}

.legal-text {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.75;
}

.legal-text h4 {
    font-size: 0.97rem;
    font-weight: 600;
    margin: 1.25rem 0 0.4rem;
    color: var(--text-main);
}

.legal-text h4:first-of-type { margin-top: 0.5rem; }

.legal-text p { margin-bottom: 0.6rem; }

.legal-text ul {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
}

.legal-text ul li { margin-bottom: 0.3rem; }

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 1rem !important;
    font-style: italic;
}

/* ===== LUCIDE ICON HELPERS ===== */
.chip-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.btn-icon {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 2px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s;
}

.footer-link:hover { color: var(--primary-color); }
.footer-instagram:hover { color: #c13584; }

.footer-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.92rem;
}

.footer-link-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* YENİ: Mobilde animasyonları durdurma */
@media (max-width: 768px) {
    .blob {
        animation: none !important;
        transform: translate(0, 0) scale(1) !important;
    }
    .float-card {
        animation: none !important;
        transform: translateY(0) !important;
    }
}

/* ====== UI / UX IMPROVEMENTS ====== */

/* 1. SCROLL REVEALS */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal.fade-up {
    transform: translateY(40px);
}

.reveal.fade-left {
    transform: translateX(40px);
}

.reveal.fade-right {
    transform: translateX(-40px);
}

.reveal.zoom-in {
    transform: scale(0.95);
}

.reveal.fade-up.active,
.reveal.fade-left.active,
.reveal.fade-right.active,
.reveal.zoom-in.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* 2. SKELETON LOADERS */
.skeleton {
    background: #e2e5e7;
    background: linear-gradient(90deg, #e2e5e7 25%, #f0f2f3 50%, #e2e5e7 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1s infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-box {
    width: 100%;
    height: 120px;
    margin-bottom: 1rem;
}
.skeleton-text {
    width: 100%;
    height: 16px;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}
.skeleton-text.short {
    width: 60%;
}

/* 3. BUTTON LOADING STATE */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* 4. SECURITY UX IMPROVEMENTS */
.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--primary-dark);
    background: rgba(79, 138, 106, 0.1);
    border: 1px solid rgba(79, 138, 106, 0.14);
    padding: 6px 12px;
    border-radius: 20px;
    margin: 10px auto 0;
    font-weight: 500;
}
.trust-badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
}
.otp-field.success {
    border-color: #27ae60;
    background-color: #f0fdf4;
    color: #27ae60;
    transform: scale(1.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 5. FAB (Floating Action Button) */
.fab-container {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}
.fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab:hover, .fab:active {
    background: var(--primary-hover);
    transform: scale(1.08);
    color: white;
}
.fab svg {
    width: 26px;
    height: 26px;
}

@media (max-width: 768px) {
    .fab-container {
        display: block;
    }
    .booking-section {
        padding-bottom: 100px;
    }
    .reveal.fade-left,
    .reveal.fade-right {
        transform: translateY(40px);
    }

    .reveal.fade-left.active,
    .reveal.fade-right.active {
        transform: translate(0, 0) scale(1);
    }
    /* MOBİL DÜZENLEMELERİ (RESPONSIVE FIX) */
    .section, .hero, .navbar {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .hero {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .about-section.section {
        padding: 3rem 1.5rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions, .hero-chips {
        justify-content: center;
    }
    .hero-visual {
        height: 360px;
    }
    .visual-ring {
        width: 300px;
        height: 300px;
    }
    .visual-ring::before {
        width: 220px;
        height: 220px;
    }
    .float-card {
        min-width: 170px;
        padding: 0.6rem 0.8rem;
    }
    .card-1 { top: 5%; left: 0; }
    .card-2 { top: 40%; right: -5%; }
    .card-3 { bottom: 5%; left: 5%; }
    .about-grid, .booking-wrap, .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-visual {
        order: 2;
        margin-bottom: 0;
    }
    .about-portrait {
        max-width: 280px;
        margin: 0 auto;
    }
    .about-card {
        text-align: center;
    }
    .about-card .about-list {
        margin-left: auto;
        margin-right: auto;
        max-width: fit-content;
        text-align: left;
    }
    .about-quote {
        text-align: left;
    }
    .section-head h2 {
        font-size: 1.9rem;
    }
    p {
        font-size: 0.95rem;
    }
    .about-credentials {
        grid-template-columns: 1fr;
    }
    .reviews-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== 6. ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
    border-radius: 4px;
}

/* ===== 7. DARK MODE SUPPORT ===== */
[data-theme="dark"] {
    color-scheme: dark;
    --bg-color: #1A1E22;
    --bg-soft: #22272C;
    --text-main: #D0D6DC;
    --text-soft: #9BA6B0;
    --text-light: #6E7A83;
    --primary-color: #5BA880;
    --primary-hover: #6BC093;
    --primary-dark: #A8DFC0;
    --primary-soft: #283C31;
    --card-bg: #22272C;
    --border-color: #313A42;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
    
    /* Dark mode optimized green palette for calendar */
    --green-50: #1C3326;
    --green-100: #224330;
    --green-200: #2E5C43;
    --green-500: #499D6E;
    --green-600: #5BA880;
    --green-700: #8CE0B0;
}

[data-theme="dark"] .navbar {
    background: rgba(26, 30, 34, 0.85);
    border-bottom: 1px solid rgba(49, 58, 66, 0.7);
}

[data-theme="dark"] .profile-trigger, 
[data-theme="dark"] .btn-ghost, 
[data-theme="dark"] .btn-secondary, 
[data-theme="dark"] .credential-block, 
[data-theme="dark"] .time-slot, 
[data-theme="dark"] .time-chip,
[data-theme="dark"] .filter-chip,
[data-theme="dark"] .form-control, 
[data-theme="dark"] textarea,
[data-theme="dark"] .modern-filter input,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group input[type="date"],
[data-theme="dark"] .form-group input[type="time"],
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="url"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] .booking-request-form textarea,
[data-theme="dark"] .booking-note,
[data-theme="dark"] #notesEditor {
    background: var(--bg-soft);
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .ql-editor {
    color: var(--text-main);
}

[data-theme="dark"] .ql-editor.ql-blank::before {
    color: var(--text-light);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] textarea::placeholder,
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] input::placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .profile-menu, 
[data-theme="dark"] .notif-panel,
[data-theme="dark"] .modal-content, 
[data-theme="dark"] .card, 
[data-theme="dark"] .float-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .availability-card,
[data-theme="dark"] #admin-client-detail {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .hero-visual .float-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .about-quote {
    background: linear-gradient(135deg, #22272C 0%, #283C31 100%);
    border-color: var(--border-color);
}

[data-theme="dark"] .chip {
    background: rgba(34, 39, 44, 0.7);
    border: 1px solid rgba(49, 58, 66, 0.9);
    color: var(--text-main);
}

[data-theme="dark"] .hero-bg .blob {
    opacity: 0.22;
}

[data-theme="dark"] .hero-text p {
    color: var(--text-main);
}

@media (max-width: 768px) {
    [data-theme="dark"] .hero-text p {
        color: #E2E8EC;
        text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    }
}

[data-theme="dark"] .swal2-popup {
    background: var(--card-bg) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .swal2-title {
    color: var(--text-main) !important;
}

[data-theme="dark"] .swal2-html-container,
[data-theme="dark"] .swal2-content {
    color: var(--text-soft) !important;
}

[data-theme="dark"] .swal2-input,
[data-theme="dark"] .swal2-textarea {
    background: var(--bg-soft) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .swal2-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-main);
}

[data-theme="dark"] .btn-danger {
    background: #B12A1A;
    color: white;
}

[data-theme="dark"] .btn-danger:hover {
    background: #962419;
}

[data-theme="dark"] .auth-cta {
    background: linear-gradient(135deg, rgba(40, 60, 49, 0.72) 0%, rgba(34, 39, 44, 0.96) 100%);
    border-color: rgba(91, 168, 128, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .auth-cta p {
    color: var(--text-soft);
}

[data-theme="dark"] .selection-pill {
    background: rgba(40, 60, 49, 0.9);
    color: var(--green-700);
    border: 1px solid rgba(91, 168, 128, 0.2);
}

[data-theme="dark"] .trust-badge {
    color: var(--primary-dark);
    background: rgba(91, 168, 128, 0.12);
    border-color: rgba(91, 168, 128, 0.22);
}

[data-theme="dark"] .portrait-frame .portrait-placeholder {
    color: var(--text-light);
}

[data-theme="dark"] .portrait-frame .portrait-placeholder small {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
}

[data-theme="dark"] .auth-consent-text strong {
    color: var(--text-main);
}

/* Nav Login Button */
[data-theme="dark"] .btn-nav {
    background: var(--primary-color);
    color: white !important;
}
[data-theme="dark"] .btn-nav:hover {
    background: var(--primary-hover);
}

/* Mobile Nav Overlay */
[data-theme="dark"] .mobile-nav {
    background: rgba(26, 30, 34, 0.97);
}

/* Calendar Fixes */
[data-theme="dark"] .calendar-day.disabled {
    background: #2A3036;
    color: #55626D;
}
[data-theme="dark"] .calendar-day.taken {
    background: #403223;
    color: #DDAA77;
    border-color: #664A2D;
}
[data-theme="dark"] .calendar-day.taken:hover {
    background: #5A432D;
    border-color: #8C653C;
}
[data-theme="dark"] .calendar-day.empty-day {
    background: var(--card-bg);
    color: var(--text-soft);
    border-color: var(--border-color);
}
[data-theme="dark"] .calendar-day.empty-day:hover {
    background: var(--bg-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Filters Fixes */
[data-theme="dark"] .filter-chip:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
[data-theme="dark"] .filter-chip.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
[data-theme="dark"] .modern-filter input:focus {
    background: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 168, 128, 0.15);
}
[data-theme="dark"] .modern-filter .filter-icon {
    color: var(--text-light);
}

/* Time Slots & Chips Fixes */
[data-theme="dark"] .time-slot:hover,
[data-theme="dark"] .time-chip:hover {
    background: var(--bg-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
[data-theme="dark"] .time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
[data-theme="dark"] .time-slot.taken {
    background: #2A3036;
    color: #6E7A83;
    border-color: #313A42;
}

/* Quill Editor Fixes */
[data-theme="dark"] .ql-snow .ql-stroke { stroke: var(--text-main); }
[data-theme="dark"] .ql-snow .ql-fill, 
[data-theme="dark"] .ql-snow .ql-stroke.ql-fill { fill: var(--text-main); }
[data-theme="dark"] .ql-snow .ql-picker { color: var(--text-main); }
[data-theme="dark"] .ql-snow .ql-picker-options { background-color: var(--card-bg); border-color: var(--border-color); }
[data-theme="dark"] .ql-snow .ql-tooltip { background-color: var(--card-bg); border-color: var(--border-color); color: var(--text-main); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .ql-snow .ql-tooltip input[type="text"] { background: var(--bg-soft); color: var(--text-main); border-color: var(--border-color); }

/* Legend Fixes */
[data-theme="dark"] .dot-gray { background: #2A3036; border-color: #313A42; }
[data-theme="dark"] .dot-taken { background: #403223; border-color: #664A2D; }
[data-theme="dark"] .dot-empty { background: var(--card-bg); border-color: var(--border-color); }


/* Override skeleton for dark mode */
[data-theme="dark"] .skeleton {
    background: #282f35;
    background: linear-gradient(90deg, #282f35 25%, #313a42 50%, #282f35 75%);
    background-size: 200% 100%;
}

/* ===== Dark mode: durum rozetleri ve semantik renkler ===== */
[data-theme="dark"] .status-badge.approved {
    background-color: var(--green-100);
    color: var(--green-700);
}

[data-theme="dark"] .status-badge.pending {
    background-color: #3A3016;
    color: #E6BE55;
}

[data-theme="dark"] .status-badge.rejected {
    background-color: #3A2320;
    color: #E8938A;
}

[data-theme="dark"] .status-badge.cancelled {
    background-color: #2A3036;
    color: #9BA6B0;
}

[data-theme="dark"] .text-danger {
    color: #E8938A;
}

[data-theme="dark"] .profile-menu .menu-danger,
[data-theme="dark"] .profile-menu .menu-danger .menu-icon,
[data-theme="dark"] .mobile-nav-links .menu-danger,
[data-theme="dark"] .mobile-nav-links .menu-danger .menu-icon {
    color: #E8938A;
}

[data-theme="dark"] .profile-menu .menu-danger:hover {
    background: #3A2320;
}

[data-theme="dark"] .slot-row.is-booked {
    background: #33291A;
    border-color: #6E5327;
}

[data-theme="dark"] .slot-tag.taken {
    background: #3A2E1C;
    color: #DDAA77;
}

[data-theme="dark"] .slot-tag.pending {
    background: #34301A;
    color: #E0C56A;
}

[data-theme="dark"] .turnstile-skeleton {
    background: var(--bg-soft);
}

[data-theme="dark"] .otp-field.success {
    border-color: #499D6E;
    background-color: #1C3326;
    color: #6BC093;
}

[data-theme="dark"] .notes-list-large::-webkit-scrollbar-thumb {
    background: #3A434B;
}

[data-theme="dark"] .fc-icon.warm {
    background: #3A2E1C;
    color: #E0B98C;
}

[data-theme="dark"] .fc-icon.cool {
    background: #24333B;
    color: #9EC4D6;
}

[data-theme="dark"] .mobile-action-select {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-soft) 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .mobile-action-select:hover,
[data-theme="dark"] .mobile-action-select:focus {
    background: var(--card-bg);
}

/* ===== BÜYÜK EKRAN (1440px+) ===== */
/* font-size: clamp(16px, 0.9vw, 20px) sayesinde temel ölçekleme zaten aktif.
   Burada layout genişlikleri ve padding'ler için ek iyileştirmeler yapıyoruz. */
@media (min-width: 1440px) {
    .section {
        padding-left: 8%;
        padding-right: 8%;
    }

    .navbar {
        padding-left: 8%;
        padding-right: 8%;
    }

    .hero {
        padding-left: 8%;
        padding-right: 8%;
    }

    .hero-inner {
        max-width: 1500px;
    }

    .booking-wrap,
    .reviews-wrap {
        max-width: 1400px;
    }
}

@media (min-width: 1920px) {
    .section {
        padding-left: 10%;
        padding-right: 10%;
    }

    .navbar {
        padding-left: 10%;
        padding-right: 10%;
    }

    .hero {
        padding-left: 10%;
        padding-right: 10%;
    }

    .hero-inner {
        max-width: 1700px;
    }

    .booking-wrap,
    .reviews-wrap {
        max-width: 1600px;
    }
}

/* ===== SETTINGS MODAL ===== */
.settings-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
}

.settings-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.settings-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #2c5e44);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(79, 138, 106, 0.35);
    border: 3px solid white;
    outline: 2px solid var(--primary-soft);
    transition: all 0.2s ease;
}

.settings-avatar-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.settings-avatar-overlay svg {
    width: 22px;
    height: 22px;
}

.settings-avatar-wrapper:hover .settings-avatar-overlay {
    opacity: 1;
}

.settings-avatar-wrapper:hover .settings-avatar {
    outline-color: var(--primary-color);
}

.settings-avatar-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.settings-avatar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.settings-avatar-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}

.settings-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0 1.25rem;
}

.settings-danger-zone {
    margin-top: 0.25rem;
}

.settings-danger-title {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #C0392B;
}

.settings-danger-text {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* form-control (zaten tanımlı olabilir, ama yine de sağlamak için) */
.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-soft);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.12);
    background: white;
}

/* Dark mode */
[data-theme="dark"] .settings-avatar {
    border-color: var(--bg-soft);
    outline-color: var(--primary-soft);
}

[data-theme="dark"] .form-control {
    background: var(--bg-soft);
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-control:focus {
    background: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 168, 128, 0.15);
}



/* ====== POSTS ====== */
.posts-section {
    background: var(--bg-color);
}

.posts-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    min-width: 0;
}

.posts-grid-empty {
    grid-column: 1 / -1;
}

.posts-carousel {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-carousel-btn {
    flex-shrink: 0;
    align-self: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--text-soft);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.posts-carousel-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.posts-carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.posts-carousel-info {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .posts-carousel {
        gap: 0.5rem;
    }

    .posts-carousel-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.post-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-date {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.post-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
}

.post-card-snippet {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-readmore {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.post-card:hover .post-card-readmore {
    color: var(--primary-hover);
}

/* ====== POST DETAIL ====== */
#post-detail-view {
    min-height: calc(100vh - 80px);
}

.post-detail-topbar {
    max-width: 860px;
    margin: 0 auto 2rem;
}

.client-detail-title h2 {
    margin-bottom: 0.2rem;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.25;
}

.post-article {
    max-width: 860px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem 2.25rem;
    box-shadow: var(--shadow-sm);
}

.post-detail-hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.post-detail-gallery {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-detail-gallery .post-detail-hero-img {
    margin-bottom: 0;
}

.post-detail-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-soft);
}

.post-detail-body p {
    margin-bottom: 1.25rem;
    color: var(--text-soft);
}

.post-detail-body h2, .post-detail-body h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-detail-body img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-sm);
}

.post-detail-body blockquote {
    border-left: 4px solid var(--primary-color);
    font-style: italic;
    color: var(--text-soft);
    margin: 1.5rem 0;
    background: var(--bg-soft);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ====== POSTS ADMIN ====== */
#posts-admin-view,
#tags-admin-view {
    min-height: calc(100vh - 80px);
}

.tags-admin-table {
    margin-top: 1.5rem;
}

.posts-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

@media (max-width: 960px) {
    .posts-admin-grid {
        grid-template-columns: 1fr;
    }

    .posts-admin-editor {
        position: static;
    }
}

.posts-admin-list-panel,
.posts-admin-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.posts-admin-list-panel {
    padding: 1.25rem 1.5rem;
}

.posts-admin-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.posts-admin-list-header .panel-label {
    margin: 0;
}

.posts-admin-form {
    padding: 1.5rem;
}

.posts-admin-form .form-group {
    margin-bottom: 1.1rem;
}

.posts-admin-form .form-group label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
}

.posts-admin-form .form-control {
    width: 100%;
}

.post-image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}

.post-image-hint {
    margin: 0;
    font-size: 0.85rem;
}

.post-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.65rem;
}

.post-image-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    cursor: grab;
    touch-action: none;
    transition: box-shadow 0.15s ease, opacity 0.15s ease;
}

.post-image-gallery-item.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.post-image-gallery-item.is-drag-over {
    box-shadow: 0 0 0 2px var(--primary-color);
    border-color: var(--primary-color);
}

.post-image-gallery-item.is-cover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.post-image-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

.post-image-drag-handle {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 0.62rem;
    line-height: 1;
    letter-spacing: -1px;
    pointer-events: none;
    user-select: none;
}

.post-image-cover-badge {
    position: absolute;
    left: 4px;
    bottom: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 999px;
}

.post-image-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    cursor: pointer;
    line-height: 1;
    font-size: 1rem;
}

.post-image-preview {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: none;
    flex-shrink: 0;
}

.posts-quill-editor {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.posts-quill-editor .ql-toolbar.ql-snow {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    background: var(--card-bg);
}

.posts-quill-editor .ql-container.ql-snow {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.posts-quill-editor .ql-container {
    min-height: 240px;
    font-size: 0.95rem;
    font-family: inherit;
}

.posts-quill-editor .ql-editor {
    min-height: 240px;
}

.post-form-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.post-checkbox-label,
.post-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

.post-sort-label span {
    white-space: nowrap;
}

.post-sort-field {
    width: 72px;
    padding: 0.35rem 0.5rem;
}

.posts-admin-actions {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.posts-admin-actions .btn-danger {
    margin-right: auto;
}

.note-item-large {
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.note-item-large:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.note-item-large.active {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px rgba(79, 138, 106, 0.15);
}

.post-item-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
}

.post-item-thumb,
.post-item-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.post-item-thumb {
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.post-item-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px dashed var(--border-color);
    color: var(--text-light);
}

.post-item-body {
    flex: 1;
    min-width: 0;
}

.post-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.post-item-title {
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-item-date {
    font-size: 0.78rem;
    color: var(--text-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.post-item-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.post-item-snippet {
    font-size: 0.84rem;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.post-status-badge {
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.post-status-badge.is-active {
    background: var(--green-100);
    color: var(--green-700);
}

.post-status-badge.is-inactive {
    background: #FFF3CD;
    color: #856404;
}

.post-sort-input {
    width: 52px;
    padding: 0.2rem 0.35rem;
    font-size: 0.82rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.post-sort-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 138, 106, 0.15);
}

.posts-admin-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-light);
    font-size: 0.92rem;
}

.posts-admin-empty.is-error {
    color: #B12A1A;
}

[data-theme="dark"] .post-status-badge.is-inactive {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD666;
}

[data-theme="dark"] .posts-quill-editor .ql-editor {
    color: var(--text-main);
}

[data-theme="dark"] .posts-quill-editor .ql-toolbar.ql-snow,
[data-theme="dark"] .posts-quill-editor .ql-container.ql-snow {
    background: var(--bg-soft);
}

[data-theme="dark"] .post-sort-input {
    background: var(--bg-soft);
}

@media (max-width: 640px) {
    #posts-admin-view,
    #tags-admin-view,
    #post-detail-view {
        padding: 2rem 5%;
    }

    .post-article {
        padding: 1.25rem 1rem;
    }
}

/* ====== PROFİL FORMU ====== */
.profile-progress {
    margin: 1.25rem 0 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--bg-soft);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.profile-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.profile-progress-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-soft);
}

.profile-progress-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
}

.profile-progress-track {
    position: relative;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--border-color);
}

/* Talebin değerlendirilebilmesi için gereken en az doluluk çizgisi. */
.profile-progress-mark {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 1px;
    background: var(--text-light);
    opacity: 0.75;
}

.profile-progress-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--primary-color), var(--green-500));
    transition: width 0.35s ease;
}

.profile-progress-hint {
    margin-top: 0.55rem;
    font-size: 0.82rem;
    color: var(--text-light);
}

.profile-progress-hint.is-warning {
    color: #B7791F;
}

.profile-section {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: none;
    border: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.profile-section-head:hover {
    background: var(--bg-soft);
}

.profile-section-title {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.profile-section-title strong {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-main);
}

.profile-section-desc {
    font-size: 0.8rem;
    color: var(--text-light);
}

.profile-section-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.profile-section-chip {
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--border-color);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 500;
}

.profile-section-chip.is-complete {
    background: var(--green-100);
    color: var(--green-700);
}

.profile-section-caret {
    width: 18px;
    height: 18px;
    color: var(--text-light);
    transition: transform 0.25s ease;
}

.profile-section.is-open .profile-section-caret {
    transform: rotate(180deg);
}

.profile-section-body {
    display: none;
    padding: 0 1.1rem 1.1rem;
}

.profile-section.is-open .profile-section-body {
    display: block;
}

.profile-section-track {
    height: 4px;
    border-radius: var(--radius-pill);
    background: var(--border-color);
    overflow: hidden;
    margin-bottom: 1.1rem;
}

.profile-section-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--primary-color);
    transition: width 0.35s ease;
}

.profile-question {
    margin-bottom: 1.1rem;
}

.profile-question:last-child {
    margin-bottom: 0;
}

/* Üst sorunun cevabına göre açılan alt sorular. */
.profile-question.is-child {
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    border-left: 2px solid var(--border-color);
}

.profile-question-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-main);
}

.profile-optional {
    margin-left: 0.4rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-light);
}

.profile-question-hint {
    display: block;
    margin: -0.15rem 0 0.4rem;
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-light);
}

.profile-textarea {
    resize: vertical;
    min-height: 62px;
    line-height: 1.5;
}

.profile-question select.form-control {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234C5C66' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    cursor: pointer;
}

.profile-choice {
    display: flex;
    gap: 0.5rem;
}

.profile-choice-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    font-size: 0.88rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-choice-option input {
    accent-color: var(--primary-color);
    margin: 0;
}

.profile-choice-option.is-active {
    border-color: var(--primary-color);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 500;
}

.profile-detail-wrap {
    margin-top: 0.7rem;
    padding-left: 0.85rem;
    border-left: 2px solid var(--primary-soft);
}

.profile-detail-wrap label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.profile-privacy-note {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.profile-privacy-note .btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Admin salt-okunur görünüm: devre dışı alanlar da okunabilir kalmalı */
.is-readonly .profile-question .form-control:disabled,
.is-readonly .profile-choice-option input:disabled + span {
    opacity: 1;
    color: var(--text-main);
    cursor: default;
}

.is-readonly .profile-choice-option {
    cursor: default;
}

.swal-profile-progress {
    margin: 1rem 0 0.75rem;
    text-align: left;
}

.swal-profile-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.swal-profile-progress-head strong {
    font-size: 1.05rem;
    color: var(--primary-color);
}

.swal-profile-hint {
    font-size: 0.83rem;
    color: var(--text-light);
}

[data-theme="dark"] .profile-section-chip {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .profile-section-chip.is-complete {
    background: rgba(63, 168, 98, 0.18);
    color: #8FD9A8;
}

[data-theme="dark"] .profile-choice-option.is-active {
    background: rgba(79, 138, 106, 0.22);
    color: #C7E7D3;
}

[data-theme="dark"] .profile-progress-hint.is-warning {
    color: #E9C46A;
}

@media (max-width: 640px) {
    .profile-section-head {
        padding: 0.8rem 0.9rem;
    }

    .profile-section-body {
        padding: 0 0.9rem 0.9rem;
    }

    .profile-choice {
        flex-wrap: wrap;
    }
}

