/*! FUL SERVIS PREMIUM v65 — SaaS-grade responsive overhaul
   Tüm cihazlarda kusursuz: 360 / iPhone / Tablet / 1366 / Desktop
   Design tokens + premium spacing + fluid typography + responsive primitives */

:root{
  /* === PARLIAMENT NAVY === */
  --primary:#1B2A4E;
  --primary-dark:#0F1A33;
  --primary-mid:#2A3F6B;
  --primary-light:#3A5285;
  --primary-50:#EEF1F7;
  --primary-100:#DCE3EE;
  --primary-200:#BBC6DC;

  /* === BEJ === */
  --beige:#C9A876;
  --beige-soft:#DFC79E;
  --beige-bg:#FAF6EE;
  --beige-100:#F0E4CC;
  --beige-200:#E5D4B0;
  --beige-dark:#8E6E40;
  --beige-darker:#6E532A;

  /* === NEUTRALS === */
  --bg:#FAFBFC;
  --bg-warm:#FBF9F4;
  --surface:#FFFFFF;
  --surface-2:#F5F7FA;
  --surface-3:#EDEFF3;
  --surface-4:#E2E6EC;
  --border:#E2E6EC;
  --border-strong:#CDD3DC;
  --divider:#EDEFF3;

  /* === TEXT === */
  --text:#1F2A44;
  --text-strong:#0F1A33;
  --muted:#6B7588;
  --muted-2:#9099AC;

  /* === STATUS === */
  --success:#1F7A50;--success-bg:#E6F2EC;--success-border:#BFDDCB;
  --warning:#B8740C;--warning-bg:#FBF1DE;--warning-border:#EAD3A0;
  --danger:#B91C1C;--danger-bg:#FBEAEA;--danger-border:#EFC2C2;
  --info:#1F4FA8;--info-bg:#E6EEFB;--info-border:#BFD2EE;

  /* === SPACING SCALE (4px grid) === */
  --sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;
  --sp-6:24px;--sp-7:28px;--sp-8:32px;--sp-10:40px;--sp-12:48px;
  --sp-16:64px;

  /* === RADIUS SCALE === */
  --r-xs:4px;--r-sm:6px;--r:8px;--r-md:10px;--r-lg:14px;--r-xl:18px;--r-2xl:24px;

  /* === SHADOWS === */
  --sh-1:0 1px 2px rgba(15,26,51,.04);
  --sh-2:0 1px 3px rgba(15,26,51,.06),0 1px 2px rgba(15,26,51,.04);
  --sh-3:0 4px 12px rgba(15,26,51,.06),0 1px 3px rgba(15,26,51,.04);
  --sh-4:0 12px 28px rgba(15,26,51,.10),0 4px 8px rgba(15,26,51,.05);
  --sh-5:0 24px 56px rgba(15,26,51,.14);
  --sh-focus:0 0 0 3px rgba(27,42,78,.12);

  /* === FLUID FONT SIZES (clamp(min, vw-based, max)) === */
  --fs-xs:11.5px;
  --fs-sm:12.5px;
  --fs-base:14px;
  --fs-md:14.5px;
  --fs-lg:15.5px;
  --fs-xl:clamp(17px, 1.4vw + 0.4rem, 19px);
  --fs-2xl:clamp(20px, 1.8vw + 0.5rem, 24px);
  --fs-3xl:clamp(24px, 2.4vw + 0.6rem, 32px);
  --fs-h1:clamp(22px, 2.4vw + 0.4rem, 30px);

  /* === LINE HEIGHTS === */
  --lh-tight:1.2;--lh-snug:1.35;--lh-base:1.55;--lh-relaxed:1.7;

  /* === TRANSITIONS === */
  --t-fast:.12s ease;--t:.18s ease;--t-slow:.32s ease;
  --t-bezier:.25s cubic-bezier(.4,0,.2,1);

  /* === LAYOUT === */
  --container:1320px;--container-narrow:1180px;
  --gutter:clamp(14px, 2vw + 0.4rem, 24px);
  --sidebar-w:264px;--sidebar-w-md:240px;--sidebar-w-mobile:280px;

  /* === Z-INDEX === */
  --z-dropdown:10;--z-sticky:20;--z-overlay:30;--z-drawer:40;--z-modal:50;--z-toast:60;
}

/* =============================================================
   PREMIUM RESET / BASE
   ============================================================= */
*,*::before,*::after{box-sizing:border-box}
html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  text-rendering:optimizeLegibility;
}
html body{
  font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size:var(--fs-base);
  line-height:var(--lh-base);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  letter-spacing:-.005em;
}
html body img{max-width:100%;height:auto;display:block}
html body button,html body input,html body select,html body textarea{
  font-family:inherit;font-size:inherit;
}

/* === Tap highlight kapat (mobil) === */
html body a,html body button{
  -webkit-tap-highlight-color:rgba(27,42,78,.10);
}

/* === Smooth scroll iOS === */
html body{-webkit-overflow-scrolling:touch}

/* =============================================================
   PREMIUM SCROLLBAR (webkit)
   ============================================================= */
@media(min-width:769px){
  *::-webkit-scrollbar{width:10px;height:10px}
  *::-webkit-scrollbar-track{background:transparent}
  *::-webkit-scrollbar-thumb{
    background:var(--border-strong);
    border-radius:10px;
    border:2px solid transparent;
    background-clip:content-box;
  }
  *::-webkit-scrollbar-thumb:hover{background:var(--muted-2);background-clip:content-box}
  .sidebar::-webkit-scrollbar-thumb{background:#3a4866;background-clip:content-box}
}

/* =============================================================
   TYPOGRAPHY HIERARCHY
   ============================================================= */
html body h1,html body h2,html body h3,html body h4,html body h5,html body h6{
  font-weight:700;
  color:var(--text-strong);
  letter-spacing:-.3px;
  line-height:var(--lh-snug);
  margin:0;
}
html body h1{font-size:var(--fs-h1);letter-spacing:-.5px;line-height:var(--lh-tight)}
html body h2{font-size:var(--fs-2xl)}
html body h3{font-size:var(--fs-xl)}
html body p{margin:0;line-height:var(--lh-base);font-weight:400}

/* =============================================================
   ADMIN SHELL — premium sidebar + main + topbar
   ============================================================= */
html body .app-shell{
  display:grid !important;
  grid-template-columns:var(--sidebar-w) 1fr !important;
  min-height:100vh;
  transition:grid-template-columns var(--t-bezier);
}

/* === SIDEBAR === */
html body .sidebar{
  position:sticky;top:0;
  height:100vh;
  padding:var(--sp-5) var(--sp-3) var(--sp-5) var(--sp-3) !important;
  background:var(--primary-dark) !important;
  color:#E4E8F0 !important;
  overflow-y:auto;overflow-x:hidden;
  z-index:var(--z-drawer);
  scrollbar-width:thin;
  scrollbar-color:#3a4866 transparent;
}
html body .sidebar::-webkit-scrollbar{width:6px}
html body .sidebar::-webkit-scrollbar-thumb{background:#3a4866;border-radius:3px;border:0}

/* === MAIN === */
html body .main{
  padding:var(--sp-6) clamp(16px, 2vw + 0.5rem, 32px) var(--sp-10) !important;
  min-width:0;
  width:100%;
  overflow-x:hidden;
  max-width:100%;
}

/* =============================================================
   PREMIUM TOPBAR
   ============================================================= */
html body .topbar{
  display:grid !important;
  grid-template-columns:1fr auto !important;
  align-items:center;
  gap:var(--sp-4) !important;
  margin-bottom:var(--sp-6) !important;
  padding-bottom:var(--sp-4) !important;
  border-bottom:1px solid var(--divider);
}
html body .topbar > div:first-child{min-width:0}
html body .topbar small{
  display:block;
  color:var(--beige-darker) !important;
  font-weight:700 !important;
  letter-spacing:1.6px !important;
  font-size:var(--fs-xs) !important;
  text-transform:uppercase;
}
html body .topbar h1{
  font-size:var(--fs-h1) !important;
  margin:6px 0 0 !important;
  line-height:var(--lh-tight);
}
html body .topbar .top-actions{
  display:flex !important;
  align-items:center;
  gap:var(--sp-2) !important;
  flex-wrap:wrap;
}

/* Topbar buttons — sabit 38px premium */
html body .topbar .top-btn,
html body .topbar .user-pill,
html body .topbar a.btn,
html body .topbar .notification-bell{
  height:38px !important;
  padding:0 var(--sp-3) !important;
  border-radius:var(--r) !important;
  display:inline-flex !important;
  align-items:center;
  gap:var(--sp-2);
  font-size:var(--fs-base) !important;
  font-weight:500;
  white-space:nowrap;
  flex-shrink:0;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  text-decoration:none;
  transition:background var(--t),border-color var(--t),box-shadow var(--t);
  max-width:240px;
  overflow:hidden;
  text-overflow:ellipsis;
}
html body .topbar .top-btn:hover,
html body .topbar a.btn:hover{
  background:var(--bg-warm);
  border-color:var(--beige-200);
}
html body .topbar .notification-bell{padding:0 var(--sp-3) !important;width:auto !important}
html body .topbar .notification-bell b{
  display:inline-flex !important;
  align-items:center;justify-content:center;
  min-width:18px !important;height:18px !important;padding:0 5px !important;
  border-radius:999px !important;
  background:var(--danger) !important;color:#fff !important;
  font-size:10.5px !important;font-weight:700 !important;
  margin-left:6px !important;border:0 !important;position:static !important;
}
html body .topbar .top-btn.neon,
html body .topbar a.btn.primary,
html body .topbar .top-btn.primary{
  background:var(--beige) !important;
  color:#fff !important;
  border-color:var(--beige) !important;
}
html body .topbar .user-pill{
  background:var(--primary) !important;
  color:#fff !important;
  border-color:var(--primary) !important;
  font-weight:600 !important;
}
html body .topbar .user-pill b{color:#fff !important;font-weight:700}
html body .topbar .user-pill small{color:var(--beige-soft) !important;font-size:11px !important;letter-spacing:.5px}

/* Boş elementleri gizle */
html body .topbar :empty,
html body .top-actions a:empty,
html body .top-actions span:empty:not(.unread),
html body .user-pill:empty,
html body .notification-bell:empty,
html body .top-btn:empty,
html body .role-badge:empty,
html body .boss-stat:empty{display:none !important}

/* =============================================================
   PREMIUM CARD
   ============================================================= */
html body .card{
  background:var(--surface) !important;
  border:1px solid var(--border) !important;
  border-radius:var(--r-md) !important;
  padding:clamp(16px, 1.5vw + 0.5rem, 22px) !important;
  box-shadow:var(--sh-1) !important;
  transition:box-shadow var(--t);
}
html body .card-head{
  display:flex !important;
  align-items:flex-start;justify-content:space-between;
  gap:var(--sp-4);
  margin-bottom:var(--sp-4);
  padding-bottom:var(--sp-3);
  border-bottom:1px solid var(--divider);
  flex-wrap:wrap;
}
html body .card-head > div:first-child{min-width:0;flex:1}
html body .card-head h2{margin:0;font-size:var(--fs-xl) !important}
html body .card-head p{margin:4px 0 0;color:var(--muted);font-size:var(--fs-md)}
html body .card + .card{margin-top:var(--sp-4)}

/* =============================================================
   PREMIUM BUTTONS
   ============================================================= */
html body .btn{
  display:inline-flex !important;
  align-items:center;justify-content:center;
  gap:var(--sp-2);
  height:38px;
  padding:0 var(--sp-4);
  border-radius:var(--r);
  font-weight:600;
  font-size:var(--fs-md);
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  white-space:nowrap;
  line-height:1;
  font-family:inherit;
  transition:background var(--t),border-color var(--t),color var(--t),transform var(--t-fast),box-shadow var(--t);
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
html body .btn:hover{transform:translateY(-1px);box-shadow:var(--sh-2)}
html body .btn:active{transform:translateY(0)}
html body .btn:focus-visible{outline:none;box-shadow:var(--sh-focus)}
html body .btn.small{height:32px;padding:0 var(--sp-3);font-size:var(--fs-sm);border-radius:var(--r-sm)}
html body .btn.big{height:44px;padding:0 var(--sp-6);font-size:var(--fs-lg);border-radius:var(--r-md)}

/* Color variants — premium uniform */
html body .btn.primary{background:var(--primary) !important;color:#fff !important;border-color:var(--primary) !important}
html body .btn.primary:hover{background:var(--primary-mid) !important;border-color:var(--primary-mid) !important}
html body .btn.beige{background:var(--beige) !important;color:#fff !important;border-color:var(--beige) !important}
html body .btn.beige:hover{background:var(--beige-dark) !important;border-color:var(--beige-dark) !important}
html body .btn.gray,html body .btn.ghost{background:#fff !important;color:var(--text) !important;border:1px solid var(--border) !important}
html body .btn.gray:hover,html body .btn.ghost:hover{background:var(--bg-warm) !important;border-color:var(--beige-200) !important;color:var(--primary) !important}

/* =============================================================
   PREMIUM FORMS — mobile touch-friendly
   ============================================================= */
html body input[type=text],
html body input[type=email],
html body input[type=tel],
html body input[type=password],
html body input[type=number],
html body input[type=date],
html body input[type=datetime-local],
html body input[type=time],
html body input[type=search],
html body input[type=url],
html body select,
html body textarea,
html body .form input,
html body .form select,
html body .form textarea{
  width:100%;
  height:42px;
  padding:0 var(--sp-3);
  border-radius:var(--r);
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  font-size:var(--fs-base);
  font-family:inherit;
  font-weight:400;
  outline:none;
  transition:border-color var(--t),box-shadow var(--t);
  box-sizing:border-box;
}
html body textarea,
html body .form textarea{
  height:auto;min-height:96px;padding:var(--sp-3);line-height:var(--lh-base);resize:vertical;
}
html body input:focus,html body select:focus,html body textarea:focus,
html body .form input:focus,html body .form select:focus,html body .form textarea:focus{
  border-color:var(--primary) !important;
  box-shadow:var(--sh-focus) !important;
}
html body input::placeholder,html body textarea::placeholder{color:var(--muted-2);font-weight:400}

/* Form label premium */
html body .form > label,html body .form label{
  display:block;
  margin-bottom:var(--sp-3);
  font-weight:600;
  font-size:var(--fs-md);
  color:var(--text-strong);
}
html body .form > label > small,html body .form label > small{
  display:block;font-weight:400;color:var(--muted);
  font-size:var(--fs-sm);margin-top:5px;line-height:var(--lh-base);
}
html body .form > label input,
html body .form > label select,
html body .form > label textarea{margin-top:6px}

/* Form grids */
html body .form-two{display:grid !important;grid-template-columns:1fr 1fr;gap:var(--sp-4)}
html body .form-three{display:grid !important;grid-template-columns:repeat(3,1fr);gap:var(--sp-4)}
html body .form-four{display:grid !important;grid-template-columns:repeat(4,1fr);gap:var(--sp-4)}

/* =============================================================
   PREMIUM METRIC GRID — auto-fit responsive
   ============================================================= */
html body .metric-grid,
html body .dashboard-metric-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important;
  gap:var(--sp-3) !important;
  margin:var(--sp-4) 0 !important;
}
html body .metric-grid.small-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr)) !important}
html body .metric{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  gap:4px var(--sp-3) !important;
  align-items:center;
  padding:var(--sp-4) !important;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--r-md);
  min-height:96px;
  transition:border-color var(--t),box-shadow var(--t),transform var(--t);
  min-width:0;
}
html body .metric:hover{
  border-color:var(--beige-200);
  box-shadow:var(--sh-2);
  transform:translateY(-2px);
}
html body .metric > span{
  grid-row:span 2;
  width:42px;height:42px;
  border-radius:var(--r);
  display:grid;place-items:center;
  background:var(--beige-bg);color:var(--beige-darker);
  font-size:18px;
  border:1px solid var(--beige-200);
}
html body .metric b{
  font-size:var(--fs-2xl) !important;
  color:var(--text-strong);font-weight:700;
  line-height:var(--lh-tight);font-variant-numeric:tabular-nums;
}
html body .metric em{font-style:normal;color:var(--muted);font-weight:400;font-size:var(--fs-sm)}
html body .metric.warn b{color:var(--warning)}
html body .metric.warn > span{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}
html body .metric.danger b{color:var(--danger)}
html body .metric.danger > span{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-border)}
html body .metric.success b{color:var(--success)}
html body .metric.success > span{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}

/* Boss grid 6 fields */
html body .boss-grid,
html body .dashboard-boss-grid{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important;
  gap:var(--sp-3) !important;
  margin-top:var(--sp-3);
}

/* =============================================================
   PREMIUM TABLES — responsive (kart-mode mobile)
   ============================================================= */
html body .table-wrap,html body .tableWrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid var(--border);
  border-radius:var(--r);
  background:var(--surface);
}
html body .table{
  width:100%;border-collapse:collapse;
  min-width:760px;font-size:var(--fs-base);
}
html body .table th{
  font-size:var(--fs-xs);
  text-align:left;
  color:var(--muted);
  background:var(--surface-2);
  padding:var(--sp-3) var(--sp-4);
  font-weight:700;letter-spacing:.5px;text-transform:uppercase;
  border-bottom:1px solid var(--border);white-space:nowrap;
}
html body .table td{
  padding:var(--sp-3) var(--sp-4);
  border-bottom:1px solid var(--divider);
  color:var(--text);vertical-align:middle;
}
html body .table tr:last-child td{border-bottom:0}
html body .table tr:hover td{background:var(--surface-2)}

/* Compact actions — pastel etiket grid */
html body .compact-actions,
html body .actions.compact-actions{
  display:grid !important;
  grid-template-columns:repeat(auto-fit,minmax(78px,1fr)) !important;
  gap:6px !important;
  width:100%;
}
html body .compact-actions > .btn{
  width:100% !important;
  height:30px !important;
  padding:0 var(--sp-2) !important;
  font-size:var(--fs-xs) !important;
  border-radius:var(--r-sm) !important;
  font-weight:600;
  white-space:nowrap;
  border:1px solid transparent;
  box-shadow:none;
}

/* =============================================================
   STATUS PILLS / BADGES
   ============================================================= */
html body .status-pill{
  display:inline-flex;align-items:center;
  height:24px;padding:0 var(--sp-3);
  border-radius:999px;
  font-weight:600;font-size:var(--fs-xs);
  border:1px solid;letter-spacing:.2px;white-space:nowrap;
}

/* =============================================================
   DASH HERO — premium gradient with bej accents
   ============================================================= */
html body .dash-hero,
html body .dash-hero.card,
html body .dash-hero.card.form-hero,
html body .form-hero,
html body .open-hero,
html body .seo-hero,
html body .preview-hero{
  display:grid !important;
  grid-template-columns:minmax(0, 1fr) auto !important;
  gap:var(--sp-6) !important;
  align-items:center;
  padding:clamp(20px, 2vw + 0.6rem, 28px) !important;
  border-radius:var(--r-lg) !important;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-mid) 60%,var(--primary-dark) 100%) !important;
  color:#fff !important;
  margin-bottom:var(--sp-4) !important;
  position:relative;
  overflow:hidden;
  border:0 !important;
}
html body .dash-hero::before,
html body .form-hero::before,
html body .open-hero::before{
  content:"" !important;
  position:absolute !important;
  inset:0 0 auto 0 !important;height:140% !important;
  background:radial-gradient(ellipse at 90% 10%,rgba(201,168,118,.20),transparent 60%) !important;
  pointer-events:none !important;
}
html body .dash-hero > *,
html body .form-hero > *{position:relative;z-index:1}
html body .dash-hero .eyebrow,
html body .form-hero .eyebrow,
html body .open-hero .eyebrow{
  color:var(--beige-soft) !important;
  font-size:var(--fs-xs) !important;
  font-weight:700 !important;
  letter-spacing:1.6px !important;
  text-transform:uppercase;
  margin-bottom:var(--sp-1);display:inline-block;
}
html body .dash-hero h2,
html body .form-hero h2,
html body .open-hero h2{
  color:#fff !important;
  font-size:var(--fs-2xl) !important;
  margin:6px 0 !important;
  line-height:var(--lh-snug);
}
html body .dash-hero p,
html body .form-hero p,
html body .open-hero p{
  color:#C9D2E5 !important;
  font-size:var(--fs-md) !important;
  margin:0 0 var(--sp-3) !important;
  line-height:var(--lh-base);
  max-width:680px;
}
html body .dash-hero .quick-actions,
html body .form-hero .quick-actions{
  display:flex !important;
  gap:var(--sp-2) !important;
  flex-wrap:wrap;
  margin-top:var(--sp-2);
}
html body .dash-hero .quick-actions .btn,
html body .form-hero .quick-actions .btn{
  height:36px !important;
  padding:0 var(--sp-3) !important;
  font-size:var(--fs-sm) !important;
  border-radius:var(--r) !important;
  background:var(--beige) !important;color:#fff !important;border-color:var(--beige) !important;
}
html body .dash-hero .quick-actions .btn.gray,
html body .form-hero .quick-actions .btn.gray{
  background:transparent !important;color:#fff !important;border:1px solid rgba(255,255,255,.30) !important;
}
html body .dash-hero .quick-actions .btn.cyan,
html body .form-hero .quick-actions .btn.cyan{
  background:#fff !important;color:var(--primary) !important;border-color:#fff !important;
}
html body .dash-hero .quick-actions .btn.purple,
html body .form-hero .quick-actions .btn.purple{
  background:rgba(255,255,255,.10) !important;color:#fff !important;border-color:rgba(255,255,255,.20) !important;
}

/* Hero widget */
html body .hero-widget,html body .hero-widget.compact{
  background:rgba(201,168,118,.14) !important;
  border:1px solid rgba(201,168,118,.30) !important;
  border-radius:var(--r-lg) !important;
  padding:var(--sp-4) var(--sp-5) !important;
  display:flex !important;
  flex-direction:column;align-items:center;justify-content:center;
  text-align:center;gap:4px;
  min-width:120px;min-height:auto !important;
  color:#fff !important;
}
html body .hero-widget .orbit{font-size:24px;opacity:.85;line-height:1}
html body .hero-widget b{font-size:28px;color:#fff;font-weight:700;line-height:1;font-variant-numeric:tabular-nums}
html body .hero-widget span{color:var(--beige-soft);font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase}

/* =============================================================
   SPLIT GRID, DASHBOARD GRID — auto responsive
   ============================================================= */
html body .split-grid,
html body .dashboard-grid,
html body .dashboard-responsive-grid,
html body .seo-layout,
html body .proposal-layout{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:var(--sp-4);
}
html body .dashboard-grid{grid-template-columns:1.4fr .6fr !important}
html body .seo-layout,html body .proposal-layout{grid-template-columns:1.4fr .6fr !important}

/* =============================================================
   FILTRE FORMU PREMIUM
   ============================================================= */
html body .appointment-filter-form,
html body form.filter-grid,
html body .filter-grid.premium-form{
  display:flex !important;
  flex-wrap:wrap;
  align-items:flex-end;
  gap:var(--sp-3) !important;
}
html body .appointment-filter-form > label,
html body form.filter-grid > label{
  display:flex !important;flex-direction:column;gap:6px;
  flex:1 1 200px;min-width:160px;margin:0;
  font-weight:600;font-size:var(--fs-sm);color:var(--text-strong);
}
html body .appointment-filter-form .btn,
html body .appointment-filter-form button,
html body form.filter-grid .btn,
html body form.filter-grid button,
html body .filter-actions .btn,
html body .filter-actions button{
  height:42px !important;
  padding:0 var(--sp-5) !important;
  align-self:flex-end;
  background:var(--beige) !important;color:#fff !important;border-color:var(--beige) !important;
}
html body .appointment-filter-form .btn.gray,
html body .filter-actions .btn.gray{
  background:#fff !important;color:var(--text) !important;border:1px solid var(--border) !important;
}

/* =============================================================
   MOBILE-FIRST PWA BOTTOM NAV
   ============================================================= */
html body .pwa-bottom-nav{
  display:none;
  position:fixed;bottom:0;left:0;right:0;
  background:#fff;
  border-top:1px solid var(--border);
  padding:var(--sp-2) 6px calc(var(--sp-2) + env(safe-area-inset-bottom,0px));
  z-index:var(--z-sticky);
  justify-content:space-around;align-items:flex-end;
  box-shadow:0 -4px 12px rgba(15,26,51,.06);
}
html body .pwa-bottom-nav a{
  display:flex !important;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;padding:var(--sp-2) 4px;
  color:var(--muted);font-size:10.5px;font-weight:500;
  text-decoration:none;flex:1 1 0;min-width:0;border-radius:var(--r);
}
html body .pwa-bottom-nav a > span{font-size:18px;line-height:1}
html body .pwa-bottom-nav a > b{font-size:10px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
html body .pwa-bottom-nav a.active{color:var(--primary);background:var(--primary-50)}
html body .pwa-bottom-nav a.active > b{font-weight:700}
html body .pwa-bottom-nav a.main-action{
  background:var(--beige) !important;color:#fff !important;
  width:54px;height:54px;border-radius:50%;
  margin-top:-26px;flex:0 0 54px;padding:0;
  box-shadow:0 8px 18px rgba(201,168,118,.40);
}
html body .pwa-bottom-nav a.main-action > span{font-size:22px}
html body .pwa-bottom-nav a.main-action > b{display:none}

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

/* === ≤1366px — Small laptop === */
@media(max-width:1366px){
  :root{--sidebar-w:240px}
  html body .main{padding:var(--sp-5) var(--sp-5) var(--sp-10) !important}
}

/* === ≤1180px — Tablet landscape === */
@media(max-width:1180px){
  html body .dashboard-grid,html body .seo-layout,html body .proposal-layout{grid-template-columns:1fr !important}
  html body .form-four{grid-template-columns:repeat(2,1fr) !important}
}

/* === ≤1024px — Tablet === */
@media(max-width:1024px){
  html body .form-three{grid-template-columns:repeat(2,1fr) !important}
  html body .split-grid{grid-template-columns:1fr !important}
  html body .dash-hero,html body .form-hero,html body .open-hero,
  html body .seo-hero,html body .preview-hero{grid-template-columns:1fr !important}
  html body .hero-widget{align-self:flex-start;flex-direction:row;gap:var(--sp-3);min-width:0;min-width:auto}
  html body .hero-widget .orbit{font-size:20px}
  html body .hero-widget b{font-size:22px}
  html body .metric-grid,html body .dashboard-metric-grid,
  html body .metric-grid.small-grid,
  html body .boss-grid,html body .dashboard-boss-grid{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr)) !important;
  }
}

/* === ≤900px — Mobile drawer === */
@media(max-width:900px){
  html body .app-shell{grid-template-columns:1fr !important}
  html body .sidebar{
    position:fixed !important;
    top:0;left:0;
    width:var(--sidebar-w-mobile) !important;
    height:100vh;
    transform:translateX(-100%);
    transition:transform var(--t-bezier);
    z-index:var(--z-drawer);
    padding-top:calc(var(--sp-5) + env(safe-area-inset-top,0px)) !important;
  }
  html body.sidebar-open .sidebar{transform:translateX(0)}
  html body.sidebar-open .sidebar-backdrop{
    display:block;
    position:fixed;inset:0;
    background:rgba(15,26,51,.55);
    z-index:var(--z-overlay);
    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);
    animation:fadeIn .25s ease;
  }
  html body .sidebar-backdrop{display:none}
  html body .sidebar-close{display:flex !important}
  html body .mobile-admin-bar{display:flex !important}

  html body .main{padding:var(--sp-4) var(--sp-4) var(--sp-12) !important}
  html body .topbar{
    grid-template-columns:1fr !important;
    gap:var(--sp-3) !important;
    flex-direction:column;align-items:stretch;
  }
  html body .topbar h1{font-size:var(--fs-xl) !important}
  html body .top-actions{
    width:100%;justify-content:flex-start;
    flex-wrap:wrap;
  }
  html body .topbar .top-btn,html body .topbar .user-pill,html body .topbar a.btn{
    height:36px !important;font-size:var(--fs-sm) !important;padding:0 var(--sp-3) !important;
    flex:1 1 auto;min-width:0;
  }

  html body .form-two,html body .form-three,html body .form-four{grid-template-columns:1fr !important}
  html body .filter-grid{grid-template-columns:1fr !important}

  html body .metric-grid,html body .dashboard-metric-grid,html body .metric-grid.small-grid,
  html body .boss-grid,html body .dashboard-boss-grid{
    grid-template-columns:repeat(2,1fr) !important;gap:var(--sp-2) !important;
  }
  html body .metric{padding:var(--sp-3) !important;min-height:80px}
  html body .metric > span{width:36px;height:36px;font-size:16px}
  html body .metric b{font-size:var(--fs-xl) !important}

  html body .card{padding:var(--sp-4) !important;border-radius:var(--r) !important}
  html body .card h2{font-size:var(--fs-lg) !important}

  /* Tablo → kart dönüşümü mobilde */
  html body .desktop-table{display:none !important}
  html body .vehicle-mobile-list{display:flex !important;flex-direction:column;gap:var(--sp-3)}
  html body .vehicle-mobile-card{display:block !important}

  html body .pipeline-board{grid-auto-columns:240px}

  html body .card-head{
    flex-direction:column;align-items:stretch;gap:var(--sp-2);
  }
  html body .card-head > a,html body .card-head > .btn{align-self:flex-start}

  html body .compact-actions,html body .actions.compact-actions{
    grid-template-columns:repeat(3,1fr) !important;
  }

  /* Body alt boşluk PWA nav için */
  html body{padding-bottom:env(safe-area-inset-bottom,0px)}
}

/* === ≤640px — Phone === */
@media(max-width:640px){
  :root{--gutter:14px}

  html body .main{padding:var(--sp-3) var(--sp-3) var(--sp-12) !important}

  html body .metric-grid,html body .dashboard-metric-grid,html body .metric-grid.small-grid,
  html body .boss-grid,html body .dashboard-boss-grid{
    grid-template-columns:1fr 1fr !important;
  }
  html body .topbar h1{font-size:var(--fs-lg) !important}
  html body .topbar small{font-size:10.5px !important}

  html body .compact-actions,html body .actions.compact-actions,
  html body .vehicle-card-actions,html body .appointment-actions{
    grid-template-columns:1fr 1fr !important;
  }

  html body .table th,html body .table td{padding:var(--sp-2) var(--sp-3) !important;font-size:var(--fs-sm) !important}

  html body .invoice-item-row{padding:var(--sp-3) !important}
  html body .invoice-item-grid{gap:var(--sp-3) !important}
  html body .invoice-summary{grid-template-columns:1fr !important}
  html body .invoice-summary-box.total{grid-column:auto !important}

  html body .pwa-bottom-nav{display:flex !important}

  html body .dash-hero,html body .form-hero{padding:var(--sp-4) !important;border-radius:var(--r-md) !important}
  html body .dash-hero h2,html body .form-hero h2{font-size:var(--fs-xl) !important}
  html body .dash-hero p,html body .form-hero p{font-size:var(--fs-base) !important}
  html body .hero-widget{padding:var(--sp-3) var(--sp-4) !important}

  /* Touch-friendly inputs (Apple guideline 44px) */
  html body input[type=text],
  html body input[type=email],
  html body input[type=tel],
  html body input[type=password],
  html body input[type=number],
  html body input[type=date],
  html body input[type=search],
  html body select{
    height:44px;font-size:16px;  /* iOS zoom önle: 16px */
  }
  html body .btn{height:42px;font-size:var(--fs-md)}
  html body .btn.small{height:34px;font-size:var(--fs-sm)}
}

/* === ≤480px — Compact phone === */
@media(max-width:480px){
  html body .metric-grid,html body .dashboard-metric-grid,html body .metric-grid.small-grid,
  html body .boss-grid,html body .dashboard-boss-grid{grid-template-columns:1fr !important}
  html body .gallery-summary{grid-template-columns:1fr !important}
  html body .vehicle-card-grid{grid-template-columns:1fr !important}

  html body .topbar h1{font-size:var(--fs-md) !important;letter-spacing:-.2px}
  html body .card{padding:var(--sp-3) !important}
}

/* === ≤380px — iPhone SE / küçük === */
@media(max-width:380px){
  html body .compact-actions,html body .actions.compact-actions,
  html body .vehicle-card-actions,html body .appointment-actions{
    grid-template-columns:1fr !important;
  }
  html body .pwa-bottom-nav a > b{font-size:9.5px !important}
}

/* === iPhone notch / Android safe area === */
@supports(padding:env(safe-area-inset-top)){
  html body .mobile-admin-bar{padding-top:calc(var(--sp-3) + env(safe-area-inset-top,0px)) !important}
  html body .pwa-bottom-nav{padding-bottom:calc(var(--sp-2) + env(safe-area-inset-bottom,0px))}
}

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes slideInRight{from{transform:translateX(100%)}to{transform:translateX(0)}}
@keyframes slideInLeft{from{transform:translateX(-100%)}to{transform:translateX(0)}}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
}

/* =============================================================
   FRONTEND (PUBLIC SITE) — premium responsive
   ============================================================= */
html body .container{
  width:100%;max-width:var(--container);
  margin:0 auto;padding-left:var(--gutter);padding-right:var(--gutter);
}

/* Hero slider adaptive */
html body .hero-slider{min-height:auto !important}
html body .hero-slide{
  display:none;
  grid-template-columns:1fr 1.1fr;gap:var(--sp-8);
  align-items:center;
  padding:clamp(28px, 3vw + 0.6rem, 56px) clamp(22px, 3vw + 0.6rem, 64px) !important;
}
html body .hero-slide.active{display:grid}

/* Service grid */
html body .service-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:var(--sp-3);
}

/* Process grid */
html body .process-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:var(--sp-3);
}

/* Gallery cats */
html body .gallery-cats,html body .public-gallery-cats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:var(--sp-3);
}

/* Gallery items */
html body .gallery-items,html body .premium-gallery-items{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:var(--sp-4);
}

/* SEO content grid */
html body .seo-content-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(360px,1fr));
  gap:var(--sp-4);
}

/* SEO detail grid */
html body .seo-detail-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:var(--sp-3);
}

@media(max-width:1180px){
  html body .hero-slide{grid-template-columns:1fr !important}
  html body .hero-media{order:-1}
}
@media(max-width:640px){
  html body .hero-slide{padding:var(--sp-5) var(--sp-4) !important}
  html body .hero-text h1,html body .gradient-text{font-size:clamp(22px,5vw,28px) !important}
  html body .arr{display:none !important}
}

/* =============================================================
   PRINT
   ============================================================= */
@media print{
  html body .sidebar,html body .topbar,html body .mobile-admin-bar,
  html body .btn,html body .actions,html body .compact-actions,
  html body .quick-actions,html body .top-actions,html body .sticky-save-card,
  html body .pwa-bottom-nav,html body .pwa-install-toast,
  html body .float-call,html body .float-wa{display:none !important}
  html body{background:#fff;color:#000}
  html body .main{padding:0}
  html body .card{box-shadow:none;border-color:#ccc;break-inside:avoid}
  html body .container{max-width:none}
}
