/* ==========================================================================
   Rezervas10 — Prompt teması üzerine randevu sistemi stilleri
   ========================================================================== */
:root {
  --rk-primary: #0055ff;
  --rk-primary-soft: rgba(0, 85, 255, .08);
  --rk-orange: #ff784b;
  --rk-green: #10b981;
  --rk-green-soft: #d1fae5;
  --rk-red-soft: #fde2e4;
  --rk-red: #e5484d;
  --rk-closed: #eef0f4;
  --rk-border: #e6e9ef;
  --rk-text-muted: #6b7280;
}

body { background: #fff; }
.rk-brand { font-weight: 700; font-size: 1.25rem; color: #1f2937; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.rk-brand .mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #0055ff, #5b8cff); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.rk-brand .mark svg { width: 18px; height: 18px; }
.rk-brand b { color: var(--rk-primary); font-weight: 700; }
.navbar .rk-brand:hover { color: #1f2937; }

/* Hero */
.rk-hero { background: linear-gradient(180deg, rgba(0,85,255,.07), rgba(255,120,75,.04)); position: relative; overflow: hidden; }
.rk-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.rk-search { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(30, 41, 59, .10); padding: .75rem; }
.rk-search .form-control, .rk-search .form-select { border: 0; background: #f6f7f9; height: 52px; border-radius: 12px; }
.rk-search .btn { height: 52px; border-radius: 12px; }
.rk-cat-card { border: 1px solid var(--rk-border); border-radius: 16px; padding: 1.25rem; text-align: center; transition: .2s; display: block; color: inherit; background: #fff; }
.rk-cat-card:hover { border-color: var(--rk-primary); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,85,255,.08); color: inherit; }
.rk-cat-card .ic { width: 56px; height: 56px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem; }

/* Business cover / avatar */
.rk-cover { height: 150px; border-radius: 14px 14px 0 0; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.95); font-size: 2.4rem; font-weight: 700; letter-spacing: -.02em; }
.rk-cover-kuafor { background-image: linear-gradient(135deg, #ff784b, #ffb38a); }
.rk-cover-berber { background-image: linear-gradient(135deg, #1e293b, #475569); }
.rk-cover-masaj { background-image: linear-gradient(135deg, #10b981, #6ee7b7); }
.rk-cover-guzellik { background-image: linear-gradient(135deg, #8b5cf6, #c4b5fd); }
.rk-cover .badge { position: absolute; top: 12px; left: 12px; font-size: .72rem; }
.rk-biz-card { border: 1px solid var(--rk-border); border-radius: 16px; overflow: hidden; transition: .2s; height: 100%; background: #fff; }
.rk-biz-card:hover { box-shadow: 0 14px 34px rgba(30,41,59,.09); transform: translateY(-2px); }
.rk-biz-card a.stretched-link { color: inherit; }
.rk-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; font-size: .85rem; flex-shrink: 0; }
.rk-avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; border-radius: 16px; }
.rk-avatar.sm { width: 30px; height: 30px; font-size: .72rem; }

/* Stars */
.rk-stars .star { color: #d6dae1; letter-spacing: 1px; }
.rk-stars .star.full { color: #ffb020; }
.rk-stars .star.half { background: linear-gradient(90deg, #ffb020 50%, #d6dae1 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-rating-pill { background: #fff7e6; color: #b45309; font-weight: 600; border-radius: 8px; padding: 2px 8px; font-size: .85rem; }

/* Business profile */
.rk-profile-head { background: linear-gradient(180deg, #f3f6ff, #fff); border-bottom: 1px solid var(--rk-border); }
.rk-tabs { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--rk-border); }
.rk-tabs a { display: inline-block; padding: 1rem 1.1rem; color: #374151; font-weight: 500; border-bottom: 2px solid transparent; }
.rk-tabs a:hover, .rk-tabs a.active { color: var(--rk-primary); border-color: var(--rk-primary); }
.rk-service-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--rk-border); }
.rk-service-row:last-child { border-bottom: 0; }
.rk-service-row .name { font-weight: 500; color: #111827; }
.rk-service-row .meta { font-size: .82rem; color: var(--rk-text-muted); }
.rk-price { font-weight: 700; color: #111827; white-space: nowrap; }
.rk-points-badge { background: #fff4ed; color: #c2410c; border-radius: 6px; font-size: .72rem; font-weight: 600; padding: 2px 6px; white-space: nowrap; }
.rk-hours-table td { padding: .35rem 0; }
.rk-hours-table tr.today td { font-weight: 700; color: var(--rk-primary); }
.rk-review { padding: 1rem 0; border-bottom: 1px solid var(--rk-border); }
.rk-review .reply { background: #f6f8fb; border-left: 3px solid var(--rk-primary); border-radius: 8px; padding: .6rem .8rem; margin-top: .6rem; font-size: .9rem; }
.rk-dist-bar { height: 8px; background: #eef0f4; border-radius: 6px; overflow: hidden; }
.rk-dist-bar span { display: block; height: 100%; background: #ffb020; }

/* ===================== Booking wizard ===================== */
.rk-step { position: relative; padding-left: 52px; padding-bottom: 1.75rem; }
.rk-step::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--rk-border); }
.rk-step:last-child::before { display: none; }
.rk-step .num { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: #e5e7eb; color: #6b7280; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rk-step.active .num, .rk-step.done .num { background: var(--rk-primary); color: #fff; }
.rk-step.done .num { background: var(--rk-green); }
.rk-step h5 { margin: 6px 0 .9rem; font-weight: 600; }
.rk-step.locked { opacity: .45; pointer-events: none; }
.rk-svc-option { border: 1px solid var(--rk-border); border-radius: 12px; padding: .75rem 1rem; margin-bottom: .5rem; cursor: pointer; transition: .15s; display: flex; align-items: center; gap: .8rem; background: #fff; }
.rk-svc-option:hover { border-color: #b8c8ff; }
.rk-svc-option.selected { border-color: var(--rk-primary); background: var(--rk-primary-soft); }
.rk-svc-option .form-check-input { margin: 0; flex-shrink: 0; width: 1.2em; height: 1.2em; }
.rk-units { display: inline-flex; align-items: center; border: 1px solid var(--rk-border); border-radius: 10px; overflow: hidden; background: #fff; }
.rk-units button { border: 0; background: #f6f7f9; width: 30px; height: 30px; font-weight: 700; color: #374151; }
.rk-units button:disabled { opacity: .4; }
.rk-units span { min-width: 64px; text-align: center; font-size: .8rem; font-weight: 600; }
.rk-staff-option { border: 1px solid var(--rk-border); border-radius: 12px; padding: .65rem .8rem; cursor: pointer; display: flex; gap: .6rem; align-items: center; transition: .15s; background: #fff; height: 100%; }
.rk-staff-option.selected { border-color: var(--rk-primary); background: var(--rk-primary-soft); }
.rk-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.rk-days::-webkit-scrollbar { height: 6px; } .rk-days::-webkit-scrollbar-thumb { background: #d6dae1; border-radius: 6px; }
.rk-day { flex: 0 0 auto; min-width: 74px; text-align: center; border: 1px solid var(--rk-border); border-radius: 12px; padding: .5rem .4rem; cursor: pointer; scroll-snap-align: start; background: #fff; line-height: 1.2; }
.rk-day .dn { font-size: .72rem; color: var(--rk-text-muted); text-transform: uppercase; letter-spacing: .03em; }
.rk-day .dd { font-size: 1.15rem; font-weight: 700; }
.rk-day .dm { font-size: .72rem; color: var(--rk-text-muted); }
.rk-day.disabled { background: #f6f7f9; color: #b0b6c1; cursor: not-allowed; }
.rk-day.disabled .dn, .rk-day.disabled .dm { color: #c3c8d1; }
.rk-day.selected { background: var(--rk-red); border-color: var(--rk-red); color: #fff; }
.rk-day.selected .dn, .rk-day.selected .dm { color: rgba(255,255,255,.85); }
.rk-day.has { border-color: #a7f3d0; }
.rk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: .45rem; }
.rk-slot { border: 0; border-radius: 8px; padding: .55rem 0; font-weight: 600; font-size: .9rem; text-align: center; transition: .12s; }
.rk-slot.free { background: var(--rk-green); color: #fff; cursor: pointer; }
.rk-slot.free:hover { filter: brightness(.93); transform: translateY(-1px); }
.rk-slot.busy { background: var(--rk-red-soft); color: #e7a3a8; cursor: not-allowed; }
.rk-slot.selected { background: #065f46; box-shadow: 0 0 0 3px rgba(16,185,129,.35); }
.rk-legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .8rem; color: var(--rk-text-muted); }
.rk-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rk-summary { position: sticky; top: 90px; border: 1px solid var(--rk-border); border-radius: 16px; overflow: hidden; background: #fff; }
.rk-summary .head { background: #1f2937; color: #fff; padding: .9rem 1.1rem; font-weight: 600; }
.rk-summary table td { padding: .45rem 0; font-size: .9rem; vertical-align: top; }
.rk-summary table td:first-child { color: var(--rk-text-muted); width: 42%; }
.rk-summary .total { font-size: 1.5rem; font-weight: 700; }
.rk-mobile-bar { display: none; }
@media (max-width: 991.98px) {
  .rk-summary { position: static; }
  .rk-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--rk-border); padding: .7rem 1rem; align-items: center; justify-content: space-between; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
  body.has-mobile-bar { padding-bottom: 76px; }
}

/* ===================== Panels ===================== */
.rk-panel-bg { background: linear-gradient(#f3f4f7, #f4f5f7); min-height: calc(100vh - 70px); }
.rk-panel-nav .nav-link { font-weight: 500; font-size: .9rem; white-space: nowrap; }
@media (min-width: 1200px) { .rk-panel-nav .navbar-nav .nav-link { padding-left: .55rem !important; padding-right: .55rem !important; } }
.rk-panel-nav .nav-link.active { color: var(--rk-primary) !important; }
.rk-panel-nav .nav-link i, .rk-panel-nav .nav-link svg { width: 16px; height: 16px; }
.rk-stat { display: flex; align-items: center; gap: .9rem; }
.rk-stat .ic { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rk-stat .ic svg { width: 20px; height: 20px; }
.rk-stat h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
.rk-chg { font-size: .78rem; font-weight: 600; }
.rk-chg.up { color: var(--rk-green); } .rk-chg.down { color: var(--rk-red); }
.card { border-radius: 14px; }
.rk-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--rk-text-muted); font-weight: 600; border-bottom-width: 1px; }
.rk-table td { vertical-align: middle; font-size: .92rem; }
.rk-empty { text-align: center; padding: 2.5rem 1rem; color: var(--rk-text-muted); }
.rk-empty svg { width: 42px; height: 42px; opacity: .5; margin-bottom: .6rem; }
.rk-period .btn { font-size: .82rem; }

/* Bar chart (CSS) */
.rk-bars { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 18px; }
.rk-bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.rk-bars .bar .fill { width: 100%; max-width: 46px; background: linear-gradient(180deg, #4d88ff, #0055ff); border-radius: 6px 6px 2px 2px; min-height: 3px; position: relative; transition: height .4s; }
.rk-bars .bar .fill:hover { filter: brightness(1.1); }
.rk-bars .bar .fill .tip { display: none; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); background: #111827; color: #fff; font-size: .72rem; padding: 2px 6px; border-radius: 4px; white-space: nowrap; z-index: 2; }
.rk-bars .bar .fill:hover .tip { display: block; }
.rk-bars .bar .lbl { font-size: .68rem; color: var(--rk-text-muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rk-hbar { height: 8px; background: #eef0f4; border-radius: 6px; overflow: hidden; }
.rk-hbar span { display: block; height: 100%; border-radius: 6px; }

/* ===================== Slot planner (çalışma saatleri) ===================== */
.rk-planner-wrap { overflow: auto; max-height: 68vh; border: 1px solid var(--rk-border); border-radius: 12px; background: #fff; user-select: none; }
.rk-planner { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.rk-planner thead th:first-child { width: 58px; }
.rk-planner th { position: sticky; top: 0; background: #fff; z-index: 3; text-align: center; padding: .55rem .3rem; font-size: .8rem; border-bottom: 1px solid var(--rk-border); }
.rk-planner th.today { color: var(--rk-primary); }
.rk-planner th .dh { font-size: .72rem; color: var(--rk-text-muted); font-weight: 500; display: block; }
.rk-planner th .day-tools { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.rk-planner th .day-tools button { border: 1px solid var(--rk-border); background: #fff; border-radius: 6px; font-size: .66rem; padding: 1px 6px; color: #374151; }
.rk-planner th .day-tools button:hover { border-color: var(--rk-primary); color: var(--rk-primary); }
.rk-planner td.time { position: sticky; left: 0; background: #fff; z-index: 2; font-size: .72rem; color: var(--rk-text-muted); text-align: right; padding: 0 .5rem; width: 58px; border-right: 1px solid var(--rk-border); }
.rk-planner td.cell { height: 24px; border-bottom: 1px solid #fff; border-right: 1px solid #fff; background: var(--rk-closed); cursor: pointer; font-size: .66rem; color: #fff; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.rk-planner td.cell:hover { outline: 2px solid #94a3b8; outline-offset: -2px; }
.rk-planner td.cell.open { background: var(--rk-green); }
.rk-planner td.cell.booked { background: var(--rk-primary); cursor: not-allowed; }
.rk-planner td.cell.past { opacity: .45; cursor: not-allowed; }
.rk-planner tr.hour td.cell, .rk-planner tr.hour td.time { border-top: 1px solid #cbd5e1; }
.rk-planner td.cell.dirty { box-shadow: inset 0 0 0 2px rgba(255,120,75,.9); }
.rk-planner-legend span { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; font-size: .8rem; }
.rk-planner-legend i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }

/* Day calendar (takvim) */
.rk-cal-wrap { overflow-x: auto; border: 1px solid var(--rk-border); border-radius: 12px; background: #fff; }
.rk-cal { display: grid; position: relative; min-width: 640px; }
.rk-cal .col-head { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--rk-border); padding: .6rem; text-align: center; font-weight: 600; font-size: .88rem; z-index: 3; }
.rk-cal .times { border-right: 1px solid var(--rk-border); }
.rk-cal .times div { height: 60px; font-size: .72rem; color: var(--rk-text-muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.rk-cal .lane { position: relative; border-right: 1px solid var(--rk-border); background-image: repeating-linear-gradient(180deg, #eef0f4 0, #eef0f4 1px, transparent 1px, transparent 60px); }
.rk-cal .lane .open-band { position: absolute; left: 0; right: 0; background: rgba(16,185,129,.08); }
.rk-cal .appt { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 4px 7px; color: #fff; font-size: .75rem; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.12); line-height: 1.25; cursor: pointer; }
.rk-cal .appt.cancelled { opacity: .35; text-decoration: line-through; }
.rk-cal .appt.completed { filter: saturate(.55); }
.rk-cal .appt.pending { background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.15) 0 6px, transparent 6px 12px); }
.rk-cal .now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--rk-red); z-index: 4; }

/* Onboarding checklist */
.rk-check { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem 0; border-bottom: 1px dashed var(--rk-border); }
.rk-check:last-child { border: 0; }
.rk-check .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .8rem; color: #fff; }
.rk-check.done .dot { background: var(--rk-green); border-color: var(--rk-green); }
.rk-check.done .t { text-decoration: line-through; color: var(--rk-text-muted); }

/* Points wallet */
.rk-wallet { border-radius: 16px; padding: 1.2rem; color: #fff; background: linear-gradient(135deg, #ff784b, #ffb020); position: relative; overflow: hidden; }
.rk-wallet::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.15); }
.rk-wallet .pts { font-size: 2rem; font-weight: 700; line-height: 1; }

.rk-success-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--rk-green-soft); color: var(--rk-green); display: inline-flex; align-items: center; justify-content: center; }
.rk-success-icon svg { width: 38px; height: 38px; }
.rk-rating-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rk-rating-input input { display: none; }
.rk-rating-input label { font-size: 2.2rem; color: #d6dae1; cursor: pointer; line-height: 1; }
.rk-rating-input input:checked ~ label, .rk-rating-input label:hover, .rk-rating-input label:hover ~ label { color: #ffb020; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cursor-pointer { cursor: pointer; }
.rk-toast { position: fixed; right: 20px; bottom: 20px; z-index: 2000; }
@media (min-width: 1200px) and (max-width: 1499.98px) {
  .rk-panel-nav .navbar-nav .nav-link > svg, .rk-panel-nav .navbar-nav .nav-link > i { display: none; }
  .rk-panel-nav .navbar-nav .nav-link { font-size: .86rem; padding-left: .45rem !important; padding-right: .45rem !important; }
}
.navbar .dropdown-menu.dropdown-menu-end { right: 0 !important; left: auto !important; }
