/* ===== İSTE-BTM Randevu Sistemi - Ana Stil ===== */

:root {
    /* İSTE marka renkleri (logo: koyu gri + İSTE kırmızısı) */
    --color-primary: #4A4D52;        /* Logo grisi (yazılar, halka, "i" gövdesi) */
    --color-primary-dark: #2D3036;   /* Daha koyu gri (header, footer) */
    --color-primary-light: #6E7278;  /* Açık gri */
    --color-accent: #C8102E;         /* İSTE kırmızısı (logo "C" şekli) */
    --color-accent-light: #E5384F;   /* Açık kırmızı */
    --color-bg: #F5F6F8;
    --color-surface: #FFFFFF;
    --color-text: #1F2226;
    --color-muted: #6B7280;
    --color-border: #E2E5EA;
    --color-success: #16A34A;
    --color-warning: #F59E0B;
    --color-danger: #C8102E;
    --color-info: #0284C7;

    --shadow-sm: 0 1px 2px rgba(45,48,54,.06);
    --shadow: 0 4px 12px rgba(45,48,54,.08);
    --shadow-lg: 0 10px 30px rgba(45,48,54,.12);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --font-sans: 'Inter','Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

a { color: var(--color-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--color-accent); }

img { max-width: 100%; display: block; }

/* ===== Top Bar / Navigation ===== */
.topbar {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 6px 0;
    font-size: 13px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a { color: #fff; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--color-accent-light); }

.navbar {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    gap: 24px;
}
.navbar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.navbar .brand .iste-mark {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: #fff url('../img/iste-logo.png') center/cover no-repeat;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    border: 1px solid var(--color-border);
}
.navbar .brand .iste-text { display: flex; flex-direction: column; line-height: 1.1; }
.navbar .brand .iste-text strong { font-size: 18px; font-weight: 800; color: var(--color-primary-dark); letter-spacing: .2px; }
.navbar .brand .iste-text strong .accent { color: var(--color-accent); }
.navbar .brand .iste-text small { font-size: 11px; color: var(--color-muted); font-weight: 600; margin-top: 2px; letter-spacing: .3px; }
/* === Navbar Linkleri — Soft Çerçeveli Segment Bar === */
.nav-links {
    display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
    justify-content: center; row-gap: 4px;
    padding: 5px;
    background: linear-gradient(180deg, #f8f9fb 0%, #f2f4f7 100%);
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: inset 0 1px 2px rgba(16,24,40,.04);
}
.nav-links a {
    position: relative;
    padding: 8px 14px;
    color: #4A4D52;
    font-weight: 500;
    font-size: 13.5px;
    border-radius: 999px;
    text-decoration: none;
    transition:
        color .25s ease,
        background-color .35s cubic-bezier(.22,1,.36,1),
        transform .35s cubic-bezier(.22,1,.36,1),
        box-shadow .25s ease;
    overflow: visible;
    isolation: isolate;
}

/* Yumuşak arka plan pill (kayarak gelir) */
.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg,
        rgba(200, 16, 46, 0.06) 0%,
        rgba(200, 16, 46, 0.10) 100%);
    opacity: 0;
    transform: scale(.85);
    transition:
        opacity .35s cubic-bezier(.22,1,.36,1),
        transform .4s cubic-bezier(.34,1.56,.64,1);
    z-index: -1;
}

/* Alttan büyüyen kırmızı çizgi — masaüstünde gizli (segment görünümünde beyaz pill kullanılır), mobilde sol vurgu */
.nav-links a::after {
    content: '';
    display: none;
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 2.5px;
    background: linear-gradient(90deg, #C8102E 0%, #E5384F 100%);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(200, 16, 46, .4);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1);
    transform-origin: center;
}

.nav-links a:hover {
    color: #C8102E;
    transform: translateY(-1px);
}
.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}
.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Aktif sayfa — beyaz kabarık pill (segment göstergesi) */
.nav-links a.active {
    color: #C8102E;
    font-weight: 700;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(16, 24, 40, .08),
        0 0 0 1px rgba(200, 16, 46, .18);
}
.nav-links a.active:hover { transform: none; }
.nav-links a.active::before { opacity: 0; }
.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
    width: 36px;
    height: 3px;
    bottom: -3px;
    box-shadow: 0 3px 10px rgba(200, 16, 46, .55);
    /* Aktif çizgide pulse animasyonu */
    animation: navActivePulse 2.4s ease-in-out infinite;
}
@keyframes navActivePulse {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(200, 16, 46, .55);
        opacity: 1;
    }
    50% {
        box-shadow: 0 4px 14px rgba(200, 16, 46, .8);
        opacity: .92;
    }
}

/* Mobil — alt çizgi yerine sol border accent */
@media (max-width: 1024px) {
    .nav-links a {
        border-radius: 10px;
        padding: 12px 16px;
    }
    .nav-links a::after {
        display: block;
        left: 0; bottom: auto; top: 50%;
        width: 3px; height: 0;
        transform: translateY(-50%) scaleY(0);
        border-radius: 0 999px 999px 0;
        transition: transform .35s cubic-bezier(.34,1.56,.64,1), height .35s;
    }
    .nav-links a:hover::after,
    .nav-links a.active::after {
        transform: translateY(-50%) scaleY(1);
        height: 24px;
        animation: none;
    }
    .nav-links a.active { background: rgba(200,16,46,.06); box-shadow: none; }
}
.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--color-primary); }

@media (max-width: 1024px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 2px;
        box-shadow: var(--shadow);
        border: none;
        border-top: 1px solid var(--color-border);
        border-radius: 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { width: 100%; padding: 12px 14px; }
    .nav-actions .btn-text { display: none; }
}

/* Çift sütunlu (inline) gridler mobilde tek sütun — inline stil olduğu için !important gerekir */
@media (max-width: 820px) {
    .adm-grid,
    .apt-grid { grid-template-columns: 1fr !important; }
}

/* İptal popover (details/summary buton görünümü) */
.cancel-pop > summary { cursor: pointer; }
.cancel-pop > summary::-webkit-details-marker { display: none; }
.cancel-pop > summary::marker { content: ''; }

/* ===== Container ===== */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 920px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
    font-family: inherit;
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
    user-select: none;
    will-change: transform;
}
.btn:focus-visible { outline: 3px solid rgba(200,16,46,.25); outline-offset: 2px; }
.btn:active { transform: scale(.96) !important; transition: transform .08s ease !important; }

/* Hover'da artık sadece gölge — pozisyonu JS magnetic kontrol ediyor */
.btn:hover { box-shadow: 0 12px 26px -10px rgba(45,48,54,.4); }

.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; box-shadow: 0 14px 28px -8px rgba(45,48,54,.55); }

.btn-accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); box-shadow: 0 2px 6px rgba(200,16,46,.18); }
.btn-accent:hover { background: var(--color-accent-light); color: #fff; box-shadow: 0 14px 28px -6px rgba(200,16,46,.6); }

/* "Detayı Gör" tarzı — net, görünür, hover'da kırmızıya geçen */
.btn-outline {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 12px 26px -10px rgba(45,48,54,.5);
}

.btn-ghost { background: transparent; color: var(--color-text); border-color: transparent; }
.btn-ghost:hover { background: var(--color-bg); transform: translateY(-1px); box-shadow: none; }

.btn-danger { background: var(--color-danger); color: #fff; border-color: var(--color-danger); }
.btn-danger:hover { background: #a30e26; color: #fff; }

.btn-success { background: var(--color-success); color: #fff; border-color: var(--color-success); }
.btn-success:hover { background: #15803d; color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 13px; gap: 6px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* ===== Forms ===== */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: var(--color-text); }
.form-label .required { color: var(--color-danger); }
.form-control,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border .15s, box-shadow .15s;
}
.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(10,42,94,.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-help { font-size: 12.5px; color: var(--color-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input { margin-top: 4px; accent-color: var(--color-primary); }

.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }

/* ===== Cards ===== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.card-header h2, .card-header h3 { margin: 0; font-size: 16px; }
.card-body { padding: 20px; }
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--color-border);
    background: #fafbfd;
}

/* ===== Page Header ===== */
.page-header { margin: 24px 0 20px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; }
.page-header h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: var(--color-primary); }
.page-header p { margin: 0; color: var(--color-muted); }

.breadcrumb { font-size: 13px; color: var(--color-muted); margin: 16px 0 4px; }
.breadcrumb a { color: var(--color-muted); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #2D3036 0%, #3E4147 50%, #4A4D52 100%);
    color: #fff;
    padding: 70px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -18px 34px rgba(0,0,0,.08);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(200,16,46,.22) 0, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,.06) 0, transparent 40%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: 44px; font-weight: 800; line-height: 1.15; margin: 0 0 16px; }
.hero h1 .accent { color: var(--color-accent-light); }
.hero p { font-size: 17px; opacity: .9; margin: 0 0 28px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 28px;
}
.hero-stats h3 { margin: 0 0 18px; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--color-accent-light); font-weight: 700; }
.hero-stats .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stats .stat { padding: 12px; background: rgba(255,255,255,.06); border-radius: var(--radius); }
.hero-stats .stat .num { font-size: 28px; font-weight: 800; color: var(--color-accent-light); line-height: 1; }
.hero-stats .stat .label { font-size: 12.5px; opacity: .85; margin-top: 4px; }

/* ===== Footer Tarzi Soft SVG Wave Gecis ===== */
.soft-wave-bottom {
    position: relative;
    display: block;
    width: 100%;
    height: 64px;
    margin-top: 44px;
    line-height: 0;
    z-index: 2;
    pointer-events: none;
    flex: none;
}
.soft-wave-bottom svg,
svg.soft-wave-bottom {
    display: block;
    width: 100%;
    height: 100%;
    margin-bottom: -1px;
}

/* SVG antialiasing bazi tarayicilarda yasal sayfalarda 1px cizgi birakabiliyor. */
.legal-hero + .legal-page {
    margin-top: -1px;
}

/* ===== Section ===== */
.section { padding: 64px 0; }
.section-light { background: #fff; }
.section-title { text-align: center; margin: 0 0 14px; font-size: 30px; font-weight: 700; color: var(--color-primary); }
.section-subtitle { text-align: center; color: var(--color-muted); max-width: 640px; margin: 0 auto 40px; }

/* ===== Lab / Device cards ===== */
.lab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.lab-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}
.lab-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--lab-color, var(--color-primary));
    opacity: .8;
}
.lab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--lab-color, var(--color-primary)); }
.lab-card .icon-wrap {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--lab-color, var(--color-primary)) 12%, transparent);
    border-radius: var(--radius);
    margin-bottom: 14px;
    color: var(--lab-color, var(--color-primary));
}
.lab-card .icon-wrap svg { width: 26px; height: 26px; }
.lab-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; color: var(--color-text); }
.lab-card p { margin: 0; color: var(--color-muted); font-size: 13.5px; }
.lab-card .meta { margin-top: 12px; font-size: 12.5px; color: var(--color-muted); display: flex; justify-content: space-between; align-items: center; }
.lab-card .meta .count { background: rgba(10,42,94,.07); color: var(--color-primary); padding: 2px 9px; border-radius: 999px; font-weight: 600; }

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.device-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.device-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.device-card .top {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(135deg, #f8faff 0%, #f0f4fb 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.device-card .code { font-family: monospace; font-size: 12px; color: var(--color-muted); font-weight: 600; }
.device-card .body { padding: 18px 20px; flex: 1; }
.device-card h3 { margin: 0 0 6px; font-size: 15.5px; color: var(--color-text); line-height: 1.35; }
.device-card .model { font-size: 13px; color: var(--color-muted); margin: 0 0 12px; }
.device-card .desc { font-size: 13.5px; color: var(--color-text); margin: 0 0 14px; opacity: .85; }
.device-card .footer {
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #fafbfd;
}
.device-card .footer .btn {
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 12px;
    width: 100%;
    min-width: 0;
}
.device-card .footer .btn svg { width: 14px; height: 14px; flex-shrink: 0; }
/* Mıknatıs lift cihaz kartında daha keskin */
.device-card { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, border-color .15s ease; }
.device-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px -16px rgba(45,48,54,.35); border-color: rgba(74,77,82,.2); }
.device-card .price { font-weight: 700; color: var(--color-primary); font-size: 13.5px; }
.device-card .price small { color: var(--color-muted); font-weight: 500; font-size: 11.5px; display: block; }

/* ===== Badges ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: .2px;
    line-height: 1.3;
}
.badge::before { content: '●'; font-size: 10px; }
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-muted { background: #e4e9f2; color: #475569; }
.badge-primary { background: rgba(10,42,94,.1); color: var(--color-primary); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
    background: #f7f9fc;
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    color: var(--color-text);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    border-bottom: 1px solid var(--color-border);
}
.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfd; }
.table .num { font-variant-numeric: tabular-nums; }

/* ===== Alerts / Flashes ===== */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }

.flash-stack { position: fixed; top: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.flash-stack .alert { box-shadow: var(--shadow-lg); animation: slideIn .25s ease-out; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Stats ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.stat-card .label { font-size: 12.5px; color: var(--color-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.stat-card .num { font-size: 32px; font-weight: 800; color: var(--color-primary); margin: 8px 0 0; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .sub { font-size: 12.5px; color: var(--color-muted); margin-top: 6px; }
.stat-card .icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: rgba(10,42,94,.08);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-card .icon svg { width: 22px; height: 22px; }
.stat-card.accent .icon { background: rgba(212,160,23,.15); color: var(--color-accent); }
.stat-card.success .icon { background: rgba(22,163,74,.12); color: var(--color-success); }
.stat-card.warning .icon { background: rgba(245,158,11,.15); color: var(--color-warning); }
.stat-card.danger .icon { background: rgba(220,38,38,.12); color: var(--color-danger); }

/* ===== Footer ===== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,.7);
    padding: 30px 0 18px;
    margin-top: 0;
    position: relative;
}
.footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 14px; }
.footer p { font-size: 13.5px; line-height: 1.7; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer a { color: rgba(255,255,255,.7); font-size: 13.5px; }
.footer a:hover { color: var(--color-accent-light); }
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 36px;
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
}

/* ===== Modal ===== */
.modal-backdrop { position: fixed; inset: 0; background: rgba(10,42,94,.5); display: flex; align-items: center; justify-content: center; z-index: 300; padding: 20px; backdrop-filter: blur(4px); }
.modal { background: #fff; border-radius: var(--radius-lg); max-width: 520px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 90vh; display: flex; flex-direction: column; }
.modal-header { padding: 18px 22px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--color-border); display: flex; justify-content: flex-end; gap: 8px; background: #fafbfd; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--color-muted); }

/* ===== Auth pages ===== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } }
.auth-side {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(212,160,23,.2) 0, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255,255,255,.06) 0, transparent 40%);
}
.auth-side > * { position: relative; z-index: 1; }
.auth-side h2 { font-size: 32px; line-height: 1.2; margin: 0 0 14px; }
.auth-side p { opacity: .9; max-width: 420px; }
.auth-side .features { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.auth-side .feature { display: flex; gap: 12px; align-items: flex-start; }
.auth-side .feature .dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-side .feature .dot::before { content: '✓'; color: var(--color-accent-light); font-weight: 800; }
.auth-side .feature strong { display: block; }
.auth-side .feature span { font-size: 13.5px; opacity: .85; }
@media (max-width: 900px) { .auth-side { padding: 40px 30px; } .auth-side .features { display: none; } }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 30px; background: #fff; }
.auth-form .form-wrap { width: 100%; max-width: 420px; }
.auth-form .brand { margin-bottom: 28px; }
.auth-form .brand img { height: 50px; }
.auth-form h1 { font-size: 26px; margin: 0 0 6px; color: var(--color-primary); }
.auth-form .subtitle { color: var(--color-muted); margin: 0 0 24px; font-size: 14.5px; }

/* ===== Test ortamı erişim koruması ===== */
.preview-access-wrap .preview-access-side { position: relative; }
.preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.preview-info-list {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.preview-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.preview-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.preview-info-item strong { display: block; margin-bottom: 2px; }
.preview-info-item span { font-size: 13.5px; opacity: .88; line-height: 1.45; }
.preview-note-card {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 22px;
    color: #9a3412;
}
.preview-note-card strong { display: block; margin-bottom: 6px; font-size: 14px; }
.preview-note-card p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.preview-password-field { position: relative; }
.preview-password-field .form-control { padding-right: 74px; }
.preview-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
}
.preview-password-toggle:hover { color: var(--color-accent); background: rgba(200,16,46,.06); }
.preview-help-text {
    margin-top: 22px;
    font-size: 13.5px;
    color: var(--color-muted);
    line-height: 1.55;
}
@media (max-width: 700px) {
    .preview-info-list { display: none; }
}

/* ===== Booking calendar ===== */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar .dow { text-align: center; font-size: 12px; color: var(--color-muted); font-weight: 700; padding: 8px 0; text-transform: uppercase; letter-spacing: .5px; }
.cal-day {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    border: 1.5px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text);
    transition: all .12s;
    position: relative;
    padding: 4px;
    font-size: 14px;
}
.cal-day:hover:not(:disabled) { border-color: var(--color-primary); transform: translateY(-1px); }
.cal-day.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--color-accent); }
.cal-day:disabled { opacity: .35; cursor: not-allowed; background: #f4f6fb; }
.cal-day.muted { color: var(--color-muted); opacity: .5; }
.cal-day .dot { position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.slot {
    padding: 10px 6px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all .12s;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.slot:hover:not(.disabled):not(.selected) { border-color: var(--color-primary); }
.slot.selected { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.slot.disabled { background: #f7f9fc; color: var(--color-muted); cursor: not-allowed; opacity: .6; }
.slot small { font-size: 10.5px; opacity: .7; font-weight: 500; }

/* ===== Misc ===== */
.divider { height: 1px; background: var(--color-border); margin: 20px 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--color-muted); }
.empty-state h3 { color: var(--color-text); margin: 0 0 6px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 600px) { .spec-list { grid-template-columns: 1fr; } }
.spec-list li { display: flex; justify-content: space-between; padding: 10px 12px; background: #f7f9fc; border-radius: var(--radius); font-size: 13.5px; }
.spec-list li strong { color: var(--color-muted); font-weight: 600; margin-right: 12px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.search-input {
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236B7891' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 12px center/18px no-repeat;
    min-width: 260px;
}
.search-input:focus { outline: none; border-color: var(--color-primary); }

.notif-dropdown { position: relative; }
.notif-btn { background: none; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; position: relative; }
.notif-btn .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-panel { position: absolute; right: 0; top: 100%; margin-top: 8px; width: 360px; max-height: 460px; overflow-y: auto; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 110; display: none; }
.notif-panel.open { display: block; }
.notif-panel .item { padding: 12px 14px; border-bottom: 1px solid var(--color-border); cursor: pointer; transition: background .12s; }
.notif-panel .item:hover { background: #f7f9fc; }
.notif-panel .item.unread { background: rgba(10,42,94,.04); }
.notif-panel .item h4 { margin: 0 0 3px; font-size: 13.5px; color: var(--color-text); }
.notif-panel .item p { margin: 0; font-size: 12.5px; color: var(--color-muted); }
.notif-panel .item time { font-size: 11.5px; color: var(--color-muted); }

.tabs {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: 16px;
    gap: 6px;
    overflow-x: auto;
    /* Scrollbar ve ok işaretlerini tamamen gizle */
    scrollbar-width: none;            /* Firefox */
    -ms-overflow-style: none;         /* IE 10+ / Edge legacy */
    scroll-behavior: smooth;
}
.tabs::-webkit-scrollbar { width: 0; height: 0; display: none; }
.tabs::-webkit-scrollbar-button { display: none !important; }
.tabs::-webkit-scrollbar-thumb,
.tabs::-webkit-scrollbar-track { background: transparent; }

.tabs a {
    padding: 10px 16px;
    color: var(--color-muted);
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
}
.tabs a.active { color: var(--color-primary); border-bottom-color: var(--color-accent); }
.tabs a:hover { color: var(--color-primary); }

.rating { display: inline-flex; gap: 2px; }
.rating .star { color: #d1d5db; font-size: 18px; }
.rating .star.filled { color: var(--color-accent); }

/* Tıklanabilir puanlama widget'ı (geri bildirim formu) */
.star-rating { display: inline-flex; gap: 4px; line-height: 1; }
.star-rating .star-btn {
    background: none; border: none; padding: 0 2px; margin: 0;
    font-size: 32px; line-height: 1; color: #d1d5db; cursor: pointer;
    transition: color .12s ease, transform .12s ease; -webkit-appearance: none; appearance: none;
}
.star-rating .star-btn:hover { transform: scale(1.15); }
.star-rating .star-btn.on { color: var(--color-accent); }
.star-rating .star-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }

.kbd { font-family: monospace; background: #f7f9fc; border: 1px solid var(--color-border); border-radius: 4px; padding: 1px 6px; font-size: 12px; }

/* ===== Process steps ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    counter-increment: step;
    position: relative;
}
.step::before {
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 22px;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: var(--shadow);
}
.step h3 { margin: 12px 0 8px; font-size: 16px; color: var(--color-primary); }
.step p { margin: 0; font-size: 14px; color: var(--color-muted); line-height: 1.55; }

/* ===== Help Button & Card ===== */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(74,77,82,.10);
    color: var(--color-primary);
    border: none;
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
    transition: all .18s;
    flex-shrink: 0;
    padding: 0;
}
.help-btn:hover { background: var(--color-accent); color: #fff; transform: scale(1.1); }
.help-btn:active { transform: scale(0.95); }
.help-btn-glyph {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 16px;
    line-height: 1;
    font-style: normal;
}

.help-card {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 18px 20px 16px;
    box-shadow: 0 12px 36px rgba(45,48,54,.18);
    max-width: 380px;
    min-width: 280px;
    z-index: 200;
    animation: helpCardIn .18s ease-out;
}
.help-card.open { display: block; }
.help-card .help-card-arrow {
    position: absolute;
    top: -8px;
    left: 20px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    transform: rotate(45deg);
}
.help-card .help-card-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-bg);
    color: var(--color-muted);
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.help-card .help-card-close:hover { background: var(--color-danger); color: #fff; }
.help-card h4 {
    margin: 0 36px 10px 0;
    font-size: 15px;
    color: var(--color-primary);
    font-weight: 700;
}
.help-card .help-card-body {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.6;
}
.help-card .help-card-body p { margin: 0 0 8px; }
.help-card .help-card-body p:last-child { margin-bottom: 0; }
.help-card .help-card-body ul { margin: 6px 0 8px; padding-left: 20px; }
.help-card .help-card-body li { margin-bottom: 4px; }
.help-card .help-card-body strong { color: var(--color-primary); }
.help-card .help-card-body kbd { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 4px; padding: 1px 6px; font-family: monospace; font-size: 11.5px; color: var(--color-primary); }
.help-card .help-card-body code { background: var(--color-bg); padding: 1px 6px; border-radius: 4px; font-size: 12px; color: var(--color-accent); }

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

/* ===== Print ===== */
@media print {
    .navbar, .topbar, .footer, .toolbar, .btn { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ===================================================================
   ATOM PARTICLE NETWORK — Hero arka plan canvas
   =================================================================== */
.btm-particles-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: .85;
}
/* Hero icindeki tum icerik canvas'in uzerinde olsun */
.hero > *:not(.btm-particles-canvas),
.cat-hero > *:not(.btm-particles-canvas),
.about-hero > *:not(.btm-particles-canvas),
[data-particles] > *:not(.btm-particles-canvas) {
    position: relative;
    z-index: 1;
}

/* ===================================================================
   ATOM ORBITAL LOADER — Sayfa ilk yuklemede
   =================================================================== */
.btm-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background:
        radial-gradient(circle at 50% 40%, #ffffff 0%, #fafbfd 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    transition: opacity .55s ease, visibility .55s ease;
    pointer-events: all;
}
.btm-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.btm-loader-svg {
    filter: drop-shadow(0 8px 24px rgba(200,16,46,.25));
    animation: btmLoaderSpin 6s linear infinite;
}
@keyframes btmLoaderSpin {
    to { transform: rotate(360deg); }
}
.btm-loader-svg .orbit { filter: drop-shadow(0 0 6px rgba(229,56,79,.6)); }
.btm-loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #4A4D52;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: btmLoaderPulse 1.4s ease-in-out infinite;
}
@keyframes btmLoaderPulse {
    0%, 100% { opacity: .55; letter-spacing: 4px; }
    50%      { opacity: 1;   letter-spacing: 5px; }
}
.btm-loader-bar {
    width: 180px; height: 3px;
    background: rgba(200,16,46,.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}
.btm-loader-bar span {
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, #C8102E 50%, transparent 100%);
    border-radius: 999px;
    animation: btmLoaderBar 1.2s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes btmLoaderBar {
    0%   { left: -40%; }
    100% { left: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .btm-loader { display: none !important; }
}

/* ===================================================================
   COSMIC LIGHT TRAIL — Fareyi takip eden BTM temali isik huzmesi
   - Halo: yumusak buyuk hale (yavas takip)
   - Core: kucuk parlak cekirdek (anlik takip)
   - Trail: arka iz parcaciklari
   - Ripple: tiklamada nabiz dalgasi
   =================================================================== */

.btm-cursor-halo,
.btm-cursor-core,
.btm-cursor-trail,
.btm-trail-dot,
.btm-cursor-ripple {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    will-change: transform, opacity;
}

/* Buyuk soft halo — atom cekirdegi etrafindaki enerji alani */
.btm-cursor-halo {
    width: 180px; height: 180px;
    top: 0; left: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at center,
            rgba(229, 56, 79, 0.11) 0%,
            rgba(200, 16, 46, 0.07) 30%,
            rgba(200, 16, 46, 0.025) 58%,
            rgba(200, 16, 46, 0)    75%);
    mix-blend-mode: screen;
    filter: blur(24px);
    opacity: 0;
    transition: opacity .4s ease, width .45s cubic-bezier(.22,1,.36,1), height .45s cubic-bezier(.22,1,.36,1);
}
.btm-cursor-halo.on { opacity: .72; }
.btm-cursor-halo.hover {
    width: 240px; height: 240px;
    background:
        radial-gradient(circle at center,
            rgba(229, 56, 79, 0.18) 0%,
            rgba(229, 56, 79, 0.09) 32%,
            rgba(200, 16, 46, 0.035) 58%,
            rgba(200, 16, 46, 0)    78%);
}

/* Sicak ic cekirdek — kucuk, soft, parlak */
.btm-cursor-core {
    width: 7px; height: 7px;
    top: 0; left: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%,
            rgba(255,255,255,.95) 0%,
            rgba(255, 208, 216, .65) 25%,
            rgba(229, 56, 79, .5) 55%,
            rgba(200, 16, 46, .22) 100%);
    box-shadow:
        0 0 8px 1px rgba(229, 56, 79, .38),
        0 0 16px 3px rgba(200, 16, 46, .16);
    opacity: 0;
    filter: blur(.4px);
    transition: opacity .25s ease, width .3s cubic-bezier(.22,1,.36,1), height .3s cubic-bezier(.22,1,.36,1);
    animation: btmCorePulse 2.4s infinite ease-in-out;
}
.btm-cursor-core.on { opacity: .7; }
.btm-cursor-core.hover {
    width: 11px; height: 11px;
    box-shadow:
        0 0 12px 2px rgba(229, 56, 79, .5),
        0 0 24px 5px rgba(200, 16, 46, .24);
}
@keyframes btmCorePulse {
    0%, 100% { box-shadow: 0 0 8px 1px rgba(229, 56, 79, .38), 0 0 16px 3px rgba(200, 16, 46, .16); }
    50%      { box-shadow: 0 0 11px 1px rgba(229, 56, 79, .5),  0 0 22px 4px rgba(200, 16, 46, .22); }
}

/* Iz parcacigi konteyneri */
.btm-cursor-trail {
    inset: 0;
    overflow: hidden;
}

/* Tek bir iz parcacigi — soft enerji izi */
.btm-trail-dot {
    position: absolute;
    width: 3.5px; height: 3.5px;
    margin-left: -1.75px; margin-top: -1.75px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 220, 226, .65) 0%,
        rgba(229, 56, 79, .38) 38%,
        rgba(200, 16, 46, .14) 72%,
        transparent 100%);
    filter: blur(1.4px);
    opacity: .55;
    animation: btmTrailFade .72s cubic-bezier(.22, 1, .36, 1) forwards;
    will-change: transform, opacity;
}
@keyframes btmTrailFade {
    0%   { opacity: .55; transform: scale(.85); filter: blur(1px); }
    45%  { opacity: .32; transform: scale(1.55); filter: blur(2.4px); }
    100% { opacity: 0;   transform: scale(0.35); filter: blur(4px); }
}

/* Atom parcacigi — sicaklik daha yuksek + savrulan */
.btm-trail-atom {
    width: 5px; height: 5px;
    margin-left: -2.5px; margin-top: -2.5px;
    background: radial-gradient(circle,
        #fff 0%,
        rgba(255, 200, 210, .72) 25%,
        rgba(229, 56, 79, .48) 58%,
        rgba(200, 16, 46, .18) 82%,
        transparent 100%);
    box-shadow: 0 0 7px rgba(229, 56, 79, .36), 0 0 14px rgba(200, 16, 46, .16);
    filter: blur(.8px);
    animation: btmAtomFly .95s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes btmAtomFly {
    0%   { opacity: .72; transform: translate(0, 0) scale(.8) rotate(0deg); filter: blur(.8px); }
    60%  { opacity: .38; transform: translate(calc(var(--ax) * .7), calc(var(--ay) * .7)) scale(1.05) rotate(160deg); filter: blur(1.4px); }
    100% { opacity: 0;   transform: translate(var(--ax), var(--ay)) scale(.25) rotate(320deg); filter: blur(3px); }
}

/* Tikla nabiz dalgasi (ripple) — molekul carpisma efekti */
.btm-cursor-ripple {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 1.5px solid rgba(229, 56, 79, .48);
    background: radial-gradient(circle, rgba(229,56,79,.14) 0%, transparent 70%);
    animation: btmRipple .65s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes btmRipple {
    0%   { transform: scale(0.35); opacity: .7; border-width: 1.5px; }
    60%  { opacity: .32; }
    100% { transform: scale(5.5);  opacity: 0;  border-width: 0.5px; }
}

/* Erisilebilirlik / mobil */
@media (max-width: 768px), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .btm-cursor-halo, .btm-cursor-core, .btm-cursor-trail, .btm-trail-dot, .btm-cursor-ripple {
        display: none !important;
    }
}

/* ===========================================================
   Tiklama geri bildirimi (global)
   - Basinca buton kuculur (bastigin belli olur)
   - Klavye/odakta cerceve cikar
   - Form gonderilirken buton "isleniyor" gorunumune gecer
   =========================================================== */
.btn:active,
button:active:not(:disabled),
.tabs a:active,
.icon-btn:active {
    transform: scale(.94);
    transition: transform .08s ease;
}
.btn:focus-visible,
button:focus-visible,
.tabs a:focus-visible,
.icon-btn:focus-visible,
a.lab-card:focus-visible,
.cat-card-btn:focus-visible {
    outline: 2.5px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Form gonderildikten sonra buton kilitlenir: cift tiklama onlenir, islendigi anlasilir */
.btn.is-busy,
button.is-busy {
    opacity: .6;
    pointer-events: none;
    position: relative;
}
button.is-busy::after {
    content: '';
    display: inline-block;
    width: 12px; height: 12px;
    margin-left: 8px;
    vertical-align: -2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btnSpin .7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* Randevu slot seçim kutuları (çoklu/tekli) */
.slot-check-grid { display: grid; gap: 8px; }
.slot-check {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 12px; border: 1.5px solid var(--color-border); border-radius: 10px;
    cursor: pointer; transition: border-color .15s, background .15s;
}
.slot-check:hover { border-color: var(--color-primary); }
.slot-check input { margin-top: 3px; }
.slot-check:has(input:checked) { border-color: var(--color-accent); background: #fff5f6; }
.slot-check.disabled { opacity: .5; cursor: not-allowed; background: var(--color-bg); }
.slot-check small { color: var(--color-muted); }

/* Cerceveli ikon butonu (duyuru sabitle/yayinla/sil gibi kucuk eylemler) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 30px;
    padding: 0;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: border-color .15s, background .15s, box-shadow .15s, transform .08s;
}
.icon-btn:hover {
    border-color: var(--color-accent);
    background: #fff5f6;
    box-shadow: 0 2px 8px -2px rgba(200,16,46,.25);
}
.icon-btn:active {
    background: #ffe4e8;
}
