:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --panel-soft:#f8fbff;
  --muted:#64748b;
  --text:#0f172a;
  --heading:#111827;
  --border:rgba(15,23,42,.14);
  --primary:#3b82f6;
  --primary-soft:rgba(59,130,246,.12);
  --danger:#f97373;
  --ok:#22c55e;
  --warn:#facc15;
  --shadow:0 12px 35px rgba(15,23,42,.10);
  --radius:14px;
  --btn-bg:#ffffff;
  --btn-primary-fg:#1e3a8a;
  --input-bg:#ffffff;
  --alert-bg:#ffffff;
  --perm-item-bg:rgba(255,255,255,.9);
  --topbar-bg:linear-gradient(to bottom, rgba(255,255,255,.92), rgba(255,255,255,.84));
  --topbar-border:rgba(15,23,42,.08);
  --topbar-shadow:0 8px 24px rgba(15,23,42,.08);
  --footer-bg:rgba(255,255,255,.86);
  --footer-border:rgba(15,23,42,.08);
  --nav-hover-bg:rgba(15,23,42,.06);
  --nav-hover-border:rgba(15,23,42,.14);
  --side-ico-fg:#1e3a8a;
  --side-ico-border:rgba(59,130,246,.35);
  --side-ico-bg1:rgba(219,234,254,.95);
  --side-ico-bg2:rgba(191,219,254,.72);
  --table-row-hover:rgba(59,130,246,.06);
  --link-more-hover:#1d4ed8;
}

html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0f172a;
  --panel:#1e293b;
  --panel-soft:#172033;
  --muted:#94a3b8;
  --text:#f1f5f9;
  --heading:#f8fafc;
  --border:rgba(148,163,184,.22);
  --primary:#60a5fa;
  --primary-soft:rgba(59,130,246,.22);
  --danger:#f87171;
  --ok:#4ade80;
  --warn:#facc15;
  --shadow:0 12px 40px rgba(0,0,0,.45);
  --btn-bg:#334155;
  --btn-primary-fg:#e0e7ff;
  --input-bg:#334155;
  --alert-bg:#334155;
  --perm-item-bg:rgba(51,65,85,.85);
  --topbar-bg:linear-gradient(to bottom, rgba(30,41,59,.96), rgba(15,23,42,.94));
  --topbar-border:rgba(148,163,184,.12);
  --topbar-shadow:0 8px 28px rgba(0,0,0,.35);
  --footer-bg:rgba(15,23,42,.92);
  --footer-border:rgba(148,163,184,.12);
  --nav-hover-bg:rgba(148,163,184,.12);
  --nav-hover-border:rgba(148,163,184,.25);
  --side-ico-fg:#bfdbfe;
  --side-ico-border:rgba(96,165,250,.45);
  --side-ico-bg1:rgba(30,58,138,.55);
  --side-ico-bg2:rgba(30,64,175,.4);
  --table-row-hover:rgba(59,130,246,.15);
  --link-more-hover:#93c5fd;
}

*{box-sizing:border-box}
html,body{height:100%}
.app-shell{
  min-height:100%;
  display:flex;
  flex-direction:column;
}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(56,189,248,.12), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(129,140,248,.12), transparent 55%),
    radial-gradient(1200px 700px at 50% 100%, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}
html[data-theme="dark"] body.app-shell{
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(56,189,248,.07), transparent 55%),
    radial-gradient(900px 600px at 100% 0%, rgba(129,140,248,.09), transparent 55%),
    radial-gradient(1200px 700px at 50% 100%, rgba(59,130,246,.06), transparent 60%),
    var(--bg);
}

a{color:inherit;text-decoration:none;transition:opacity .15s ease, color .15s ease, background-color .15s ease}
a:hover{opacity:.9}

.container{max-width:1180px;margin:0 auto;padding:18px}

.topbar{
  position:sticky;top:0;z-index:20;
  backdrop-filter: blur(14px);
  background:var(--topbar-bg);
  border-bottom:1px solid var(--topbar-border);
  box-shadow:var(--topbar-shadow);
}
.topbar__inner{display:flex;align-items:center;justify-content:space-between;gap:14px}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.03em;
}
.brand__mark{
  width:34px;
  height:34px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  background:linear-gradient(140deg, rgba(59,130,246,.65), rgba(14,165,233,.35));
  border:1px solid rgba(147,197,253,.65);
  color:#dbeafe;
}
.brand__text{display:flex;flex-direction:column;line-height:1.1}
.brand__text span{font-size:16px;text-transform:uppercase}
.brand__text small{font-size:11px;color:var(--muted);font-weight:500;letter-spacing:.02em}
.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}
.nav a{
  padding:8px 12px;
  border-radius:999px;
  background:transparent;
  border:1px solid transparent;
}
.nav a:hover{background:var(--nav-hover-bg);border-color:var(--nav-hover-border)}
.nav__sep{width:1px;height:18px;background:var(--border);display:inline-block}
.nav__user{color:var(--muted);font-size:13px}

.app-grid{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.sidebar{
  position:sticky;
  top:78px;
  padding:12px;
}
.side-group-title{
  margin:8px 4px 6px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:700;
}
.side-subnav{
  margin:0 0 6px;
  padding:0 0 4px;
  border-left:2px solid rgba(59,130,246,.22);
  margin-left:6px;
  padding-left:8px;
}
.side-subtitle{
  margin:4px 4px 8px;
  font-size:12px;
  font-weight:700;
  color:var(--text);
  letter-spacing:.02em;
}
.side-link--sub{
  margin-bottom:6px;
  padding:8px 10px;
  font-size:13px;
}
.side-link--sub .side-ico--sm{
  min-width:22px;
  height:22px;
  font-size:10px;
  border-radius:6px;
}
.side-link{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--text);
  margin-bottom:8px;
  background:transparent;
  position:relative;
}
.side-link:hover{
  background:var(--nav-hover-bg);
  border-color:var(--nav-hover-border);
}
.side-link.is-active{
  background:rgba(59,130,246,.14);
  border-color:rgba(96,165,250,.7);
}
html[data-theme="dark"] .side-link.is-active{
  background:rgba(59,130,246,.22);
  border-color:rgba(96,165,250,.45);
}
.side-link.is-active::before{
  content:"";
  position:absolute;
  left:-6px;
  top:8px;
  bottom:8px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(to bottom, rgba(96,165,250,.95), rgba(14,165,233,.75));
}
.side-ico{
  min-width:26px;
  height:26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  color:var(--side-ico-fg);
  border:1px solid var(--side-ico-border);
  background:linear-gradient(140deg, var(--side-ico-bg1), var(--side-ico-bg2));
}
.content{min-width:0}

.footer{border-top:1px solid var(--footer-border);margin-top:28px;background:var(--footer-bg)}
.footer__inner{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--muted);font-size:12px;flex-wrap:wrap}

.panel{
  background:radial-gradient(circle at 0 0, rgba(59,130,246,.08), transparent 55%),
             linear-gradient(135deg, var(--panel), var(--panel-soft));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px 20px;
}
html[data-theme="dark"] .panel{
  background:linear-gradient(135deg, var(--panel), var(--panel-soft));
}
.panel + .panel{margin-top:14px}
.stat-card{position:relative;overflow:hidden}
.stat-card::after{
  content:"";
  position:absolute;
  right:-26px;
  top:-26px;
  width:110px;
  height:110px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(96,165,250,.28), transparent 70%);
  pointer-events:none;
}
.stat-icon{
  position:absolute;
  left:16px;
  top:14px;
  min-width:26px;
  height:26px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:700;
  color:var(--side-ico-fg);
  border:1px solid var(--side-ico-border);
  background:linear-gradient(140deg, var(--side-ico-bg1), var(--side-ico-bg2));
}
.stat-card .muted{margin-top:36px}

.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:14px}
.col-12{grid-column:span 12}
.col-8{grid-column:span 8}
.col-6{grid-column:span 6}
.col-4{grid-column:span 4}
.col-3{grid-column:span 3}
@media (max-width:900px){
  .col-8,.col-6,.col-4,.col-3{grid-column:span 12}
}

.h1{font-size:24px;margin:4px 0 10px 0;font-weight:600;color:var(--heading);letter-spacing:.01em}
.muted{color:var(--muted);font-size:13px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;flex-wrap:wrap}
.page-head > div:first-child{flex:1;min-width:0}
.page-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-left:auto;flex-shrink:0}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  gap:8px;
  padding:9px 13px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#ffffff;
  color:var(--text);
  cursor:pointer;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
  transition:background-color .15s ease, box-shadow .15s ease, transform .08s ease, border-color .15s ease;
}
.btn:hover{box-shadow:0 8px 20px rgba(15,23,42,.12);transform:translateY(-1px)}
.btn--primary{background:var(--primary-soft);border-color:rgba(59,130,246,.75);color:#1e3a8a}
.btn--primary:hover{background:rgba(59,130,246,.20)}
.btn--danger{background:rgba(220,38,38,.08);border-color:rgba(248,113,113,.7);color:#991b1b}
.btn--ghost{background:transparent;border-color:rgba(15,23,42,.16)}
.btn:disabled{opacity:.6;cursor:not-allowed}

.input,.select,textarea{
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--input-bg);
  color:var(--text);
  outline:none;
  font-size:13px;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
textarea{min-height:90px;resize:vertical}
label{display:block;margin:0 0 6px 0;color:var(--muted);font-size:13px}
.field{margin-bottom:12px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.row > *{flex:1 1 auto}

/* Tablolar için mobil kaydırma alanı */
.table-wrapper{width:100%;overflow-x:auto}
.table-wrapper::-webkit-scrollbar{height:6px}
.table-wrapper::-webkit-scrollbar-track{background:transparent}
.table-wrapper::-webkit-scrollbar-thumb{background:rgba(148,163,184,.5);border-radius:999px}

.table{width:100%;border-collapse:separate;border-spacing:0 10px}
.table th{color:var(--muted);font-weight:600;font-size:13px;text-align:left;padding:0 10px}
.table td{
  background:var(--input-bg);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  padding:12px 10px;
}
.table tr:hover td{background:var(--table-row-hover)}
.table tr td:first-child{border-left:1px solid var(--border);border-top-left-radius:12px;border-bottom-left-radius:12px}
.table tr td:last-child{border-right:1px solid var(--border);border-top-right-radius:12px;border-bottom-right-radius:12px}
.table td:last-child form{display:inline-flex;margin-left:6px}
.table td:last-child .btn{padding:7px 11px}

.pill{
  display:inline-flex;align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}
.pill--ok{border-color:rgba(45,212,191,.35);color:rgba(45,212,191,.95)}
.pill--warn{border-color:rgba(251,191,36,.35);color:rgba(251,191,36,.95)}
.pill--danger{border-color:rgba(255,107,107,.35);color:rgba(255,107,107,.95)}

.alert{
  margin:14px 0;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#ffffff;
}
.alert--success{border-color:rgba(45,212,191,.35)}
.alert--error{border-color:rgba(255,107,107,.35)}
.alert--warning{border-color:rgba(251,191,36,.35)}

.perm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:10px 14px;
  margin-top:6px;
}
.perm-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--perm-item-bg);
  cursor:pointer;
  font-size:13px;
  line-height:1.35;
  margin:0;
}
.perm-item input{margin-top:3px;accent-color:var(--accent,#2563eb)}
.perm-item:hover{border-color:rgba(59,130,246,.35)}

.auth-wrap{min-height:70vh;display:flex;align-items:center;justify-content:center}
.auth-card{max-width:430px;width:100%}

/* Mobil uyumluluk */
@media (max-width:768px){
  .container{padding:14px}
  .topbar__inner{flex-direction:column;align-items:flex-start}
  .nav{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .nav a{padding:6px 10px}
  .brand__text small{display:none}
  .app-grid{grid-template-columns:1fr}
  .sidebar{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .side-group-title{grid-column:1/-1;margin:2px 2px 0}
  .side-subnav{grid-column:1/-1;margin-left:0;padding-left:10px;border-left-width:3px}
  .side-link{margin:0}
  .h1{font-size:20px}
  body{font-size:14px}
  .panel{padding:14px 14px}
  .auth-card{max-width:100%}
}

@media (max-width:480px){
  .topbar{position:static}
  .container{padding:10px}
  .panel{padding:12px}
  .page-actions{width:100%;justify-content:flex-end}
  .page-actions .btn{flex:0 0 auto}
  .table td:last-child form{margin-left:0;margin-top:6px}
  .sidebar{grid-template-columns:1fr}
}

/* Dashboard — süre uyarı kartları (modern, tek satır + kaydırma) */
.dashboard-expiry-board{
  margin-bottom:20px;
  padding:0;
  background:linear-gradient(145deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.98) 50%, rgba(239,246,255,.55) 100%);
  border:1px solid rgba(59,130,246,.18);
  border-radius:16px;
  box-shadow:0 10px 40px rgba(15,23,42,.08), 0 1px 0 rgba(255,255,255,.9) inset;
}
.dashboard-expiry-board__head{
  padding:16px 18px 12px;
  border-bottom:1px solid rgba(15,23,42,.06);
  background:linear-gradient(90deg, rgba(59,130,246,.06), transparent 55%);
}
.dashboard-expiry-board__head-main{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.dashboard-expiry-board__icon{
  flex-shrink:0;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  border-radius:12px;
  background:linear-gradient(140deg, rgba(59,130,246,.2), rgba(14,165,233,.12));
  border:1px solid rgba(59,130,246,.25);
}
.dashboard-expiry-board__title{
  font-weight:800;
  font-size:18px;
  color:var(--heading);
  margin:0 0 4px;
  letter-spacing:.02em;
  line-height:1.2;
}
.dashboard-expiry-board__sub{
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  max-width:62ch;
}

/* Yan yana: flex + eşit genişlik; dar alanda yatay kaydırma */
.dashboard-expiry-grid{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:12px;
  padding:14px 16px 16px;
  overflow-x:auto;
  overflow-y:visible;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(59,130,246,.45) transparent;
}
.dashboard-expiry-grid::-webkit-scrollbar{height:8px}
.dashboard-expiry-grid::-webkit-scrollbar-track{background:rgba(15,23,42,.04);border-radius:999px}
.dashboard-expiry-grid::-webkit-scrollbar-thumb{background:linear-gradient(90deg, rgba(59,130,246,.5), rgba(14,165,233,.4));border-radius:999px}

.dashboard-expiry-card{
  position:relative;
  flex:1 1 0;
  min-width:min(100%,220px);
  max-width:340px;
  scroll-snap-align:start;
  border-radius:14px;
  isolation:isolate;
}
@media (min-width:1400px){
  .dashboard-expiry-card{min-width:0;max-width:none}
}

.dashboard-expiry-card__inner{
  position:relative;
  z-index:1;
  height:100%;
  min-height:168px;
  padding:12px 12px 10px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.1);
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(248,250,252,.88) 100%);
  box-shadow:0 4px 16px rgba(15,23,42,.06);
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Modül renkleri (üst şerit) */
.dashboard-expiry-card--accent-domain .dashboard-expiry-card__inner{
  border-top:3px solid #3b82f6;
}
.dashboard-expiry-card--accent-hosting .dashboard-expiry-card__inner{
  border-top:3px solid #8b5cf6;
}
.dashboard-expiry-card--accent-mail .dashboard-expiry-card__inner{
  border-top:3px solid #0ea5e9;
}
.dashboard-expiry-card--accent-firewall .dashboard-expiry-card__inner{
  border-top:3px solid #f97316;
}

.dashboard-expiry-card__badge{
  flex-shrink:0;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  border-radius:10px;
  color:#1e3a8a;
  border:1px solid rgba(59,130,246,.35);
  background:linear-gradient(140deg, rgba(219,234,254,.95), rgba(191,219,254,.72));
}
.dashboard-expiry-card--accent-hosting .dashboard-expiry-card__badge{
  color:#5b21b6;
  border-color:rgba(139,92,246,.4);
  background:linear-gradient(140deg, rgba(237,233,254,.95), rgba(221,214,254,.75));
}
.dashboard-expiry-card--accent-mail .dashboard-expiry-card__badge{
  color:#0369a1;
  border-color:rgba(14,165,233,.4);
  background:linear-gradient(140deg, rgba(224,242,254,.95), rgba(186,230,253,.75));
}
.dashboard-expiry-card--accent-firewall .dashboard-expiry-card__badge{
  color:#9a3412;
  border-color:rgba(249,115,22,.45);
  background:linear-gradient(140deg, rgba(255,237,213,.98), rgba(254,215,170,.85));
}

.dashboard-expiry-card__top{
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.dashboard-expiry-card__titlewrap{
  flex:1;
  min-width:0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:8px;
}
.dashboard-expiry-card__name{
  margin:0;
  font-weight:800;
  font-size:13px;
  line-height:1.25;
  color:var(--heading);
  letter-spacing:.01em;
}
.dashboard-expiry-card__count{
  flex-shrink:0;
  font-size:11px;
  font-weight:800;
  min-width:22px;
  height:22px;
  padding:0 6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(250,204,21,.35), rgba(251,191,36,.25));
  border:1px solid rgba(234,179,8,.55);
  color:#92400e;
}

.dashboard-expiry-card__list{
  list-style:none;
  margin:0;
  padding:0;
  max-height:168px;
  overflow:auto;
  font-size:12px;
}
.dashboard-expiry-card__row{
  border-bottom:1px solid rgba(15,23,42,.06);
}
.dashboard-expiry-card__row:last-child{border-bottom:0}
.dashboard-expiry-card__link{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:7px 4px;
  border-radius:8px;
  transition:background .15s ease;
}
.dashboard-expiry-card__link:hover{
  background:rgba(59,130,246,.09);
  opacity:1;
}
.dashboard-expiry-card__primary{
  font-weight:600;
  color:var(--text);
  word-break:break-word;
  line-height:1.3;
}
.dashboard-expiry-card__meta{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
}
.dashboard-expiry-card__row--warn .dashboard-expiry-card__meta{color:#b45309}
.dashboard-expiry-card__row--danger .dashboard-expiry-card__primary{color:#b91c1c}
.dashboard-expiry-card__row--danger .dashboard-expiry-card__meta{color:#dc2626}

.dashboard-expiry-card__empty{
  margin:0;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  flex:1;
}
.dashboard-expiry-card__empty--ok{
  color:#64748b;
  font-style:italic;
}

.dashboard-expiry-card__foot{
  margin-top:auto;
  padding-top:4px;
}
.dashboard-expiry-card__more{
  display:inline-flex;
  align-items:center;
  font-size:12px;
  font-weight:700;
  color:var(--primary);
  padding:6px 0;
  border-radius:8px;
  transition:color .15s ease, transform .15s ease;
}
.dashboard-expiry-card__more:hover{
  color:var(--link-more-hover);
  transform:translateX(2px);
  opacity:1;
}

/* Yanıp sönen uyarı — kartın kendisinde (iç panel + gölge; görünür) */
@keyframes dashboardExpiryPulseWarnInner{
  0%,100%{
    box-shadow:
      0 4px 16px rgba(15,23,42,.06),
      0 0 0 0 rgba(245,158,11,.55),
      0 0 0 0 rgba(245,158,11,.12);
  }
  50%{
    box-shadow:
      0 6px 22px rgba(245,158,11,.18),
      0 0 0 3px rgba(245,158,11,.45),
      0 0 24px rgba(245,158,11,.28);
  }
}
@keyframes dashboardExpiryPulseDangerInner{
  0%,100%{
    box-shadow:
      0 4px 16px rgba(15,23,42,.06),
      0 0 0 0 rgba(239,68,68,.65),
      0 0 0 0 rgba(239,68,68,.15);
  }
  50%{
    box-shadow:
      0 8px 26px rgba(239,68,68,.22),
      0 0 0 4px rgba(239,68,68,.5),
      0 0 30px rgba(239,68,68,.35);
  }
}

.dashboard-expiry-card--pulse-warn .dashboard-expiry-card__inner{
  animation:dashboardExpiryPulseWarnInner 1.2s ease-in-out infinite;
}
.dashboard-expiry-card--pulse-danger .dashboard-expiry-card__inner{
  animation:dashboardExpiryPulseDangerInner 0.95s ease-in-out infinite;
}

@media (prefers-reduced-motion:reduce){
  .dashboard-expiry-card--pulse-warn .dashboard-expiry-card__inner,
  .dashboard-expiry-card--pulse-danger .dashboard-expiry-card__inner{
    animation:none;
    box-shadow:0 4px 16px rgba(15,23,42,.08), 0 0 0 2px rgba(245,158,11,.55);
  }
  .dashboard-expiry-card--pulse-danger .dashboard-expiry-card__inner{
    box-shadow:0 4px 16px rgba(15,23,42,.08), 0 0 0 2px rgba(239,68,68,.65);
  }
}

/* Tema seçici (üst çubuk) */
.theme-switcher{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:3px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--btn-bg);
  font-size:11px;
}
.theme-switcher__btn{
  border:none;
  background:transparent;
  color:var(--muted);
  padding:6px 8px;
  border-radius:999px;
  cursor:pointer;
  font:inherit;
  font-weight:600;
  white-space:nowrap;
  transition:background .15s ease, color .15s ease;
}
@media (max-width:480px){
  .theme-switcher__btn{padding:5px 6px;font-size:10px}
}
.theme-switcher__btn:hover{color:var(--text)}
.theme-switcher__btn[aria-pressed="true"]{
  background:var(--primary-soft);
  color:var(--btn-primary-fg);
}
html[data-theme="dark"] .theme-switcher__btn[aria-pressed="true"]{
  color:var(--text);
}

/* Dashboard süre kartları — karanlık tema */
html[data-theme="dark"] .dashboard-expiry-board{
  background:linear-gradient(145deg, rgba(30,41,59,.95) 0%, rgba(15,23,42,.98) 50%, rgba(30,58,138,.2) 100%);
  border-color:rgba(59,130,246,.25);
  box-shadow:0 10px 40px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04) inset;
}
html[data-theme="dark"] .dashboard-expiry-board__head{
  border-bottom-color:rgba(148,163,184,.12);
  background:linear-gradient(90deg, rgba(59,130,246,.12), transparent 55%);
}
html[data-theme="dark"] .dashboard-expiry-card__inner{
  border-color:rgba(148,163,184,.15);
  background:linear-gradient(180deg, rgba(51,65,85,.92) 0%, rgba(30,41,59,.88) 100%);
  box-shadow:0 4px 16px rgba(0,0,0,.25);
}
html[data-theme="dark"] .dashboard-expiry-card__badge{
  color:var(--side-ico-fg);
  border-color:var(--side-ico-border);
  background:linear-gradient(140deg, var(--side-ico-bg1), var(--side-ico-bg2));
}
html[data-theme="dark"] .dashboard-expiry-card__row{
  border-bottom-color:rgba(148,163,184,.1);
}

