/* Domain Yönetimi — Bootstrap 5 üzerine Apple tarzı açık tema */

:root {
  color-scheme: light only;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --fill: rgba(118,118,128,.12);
  --fill-2: rgba(118,118,128,.08);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --sep: rgba(0,0,0,.08);
  --sep-strong: rgba(0,0,0,.14);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: rgba(0,113,227,.10);
  --green: #248a3d;
  --green-soft: rgba(52,199,89,.14);
  --orange: #c45a00;
  --orange-soft: rgba(255,149,0,.16);
  --red: #d70015;
  --red-soft: rgba(255,59,48,.12);
  --radius-l: 18px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --shadow-pop: 0 20px 60px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  --ease: cubic-bezier(.32,.72,0,1);

  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: 15px;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-primary: #0071e3;
  --bs-primary-rgb: 0,113,227;
  --bs-danger: #ff3b30;
  --bs-danger-rgb: 255,59,48;
  --bs-border-color: rgba(0,0,0,.14);
  --bs-secondary-color: var(--text-2);
  --bs-link-color: var(--blue);
  --bs-link-color-rgb: 0,113,227;
  --bs-link-hover-color: var(--blue-hover);
  --bs-focus-ring-color: rgba(0,113,227,.3);
}

body {
  background: var(--bg);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}
:focus-visible { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }
.text-muted { color: var(--text-3) !important; }

/* ---------------- Buttons ---------------- */
.btn {
  --bs-btn-font-weight: 500;
  --bs-btn-font-size: 14px;
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 0;
  --bs-btn-border-width: 0;
  --bs-btn-focus-box-shadow: 0 0 0 3.5px rgba(0,113,227,.3);
  height: 34px;
  border-radius: 980px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  transition: background-color .2s, color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn .bi { font-size: 15px; line-height: 1; }
.btn-primary { --bs-btn-bg: var(--blue); --bs-btn-hover-bg: var(--blue-hover); --bs-btn-active-bg: #006edb; --bs-btn-disabled-bg: var(--blue); }
.btn-danger { --bs-btn-bg: #ff3b30; --bs-btn-hover-bg: #e8332a; --bs-btn-active-bg: #d72c23; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; }
.btn-plain { color: var(--blue); background: transparent; }
.btn-plain:hover, .btn-plain:focus-visible { color: var(--blue); background: var(--blue-soft); }
.btn-gray { background: var(--fill-2); color: var(--text); }
.btn-gray:hover { background: var(--fill); color: var(--text); }
.btn-soft { background: var(--blue-soft); color: var(--blue); border-radius: 0 11px 11px 0 !important; height: auto; font-size: 13.5px; }
.btn-soft:hover { background: rgba(0,113,227,.16); color: var(--blue); }
.btn-soft:disabled { color: var(--blue); background: var(--blue-soft); opacity: .7; }
.btn-icon { width: 34px; padding: 0; color: var(--text-2); background: transparent; }
.btn-icon .bi { font-size: 22px; }
.btn-icon:hover { color: var(--text); background: var(--fill-2); }
.btn-lg-apple { height: 46px; font-size: 16px; border-radius: 12px; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 1020;
  background: rgba(245,245,247,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--sep); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(145deg, #3a8dff, #0058d0);
  display: grid; place-items: center; color: #fff; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 28px; margin: 0 auto; }
.dropdown-menu {
  --bs-dropdown-border-color: var(--sep);
  --bs-dropdown-border-radius: 12px;
  --bs-dropdown-padding-y: 6px;
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-link-active-bg: var(--blue);
  box-shadow: 0 10px 40px rgba(0,0,0,.14);
  padding-left: 6px; padding-right: 6px;
}
.dropdown-item { border-radius: 7px; display: flex; align-items: center; gap: 9px; padding: 7px 10px; }
.dropdown-item .bi { font-size: 15px; opacity: .8; }

/* ---------------- Hero & stats ---------------- */
.hero { padding: 28px 0 22px; }
.hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.028em; margin: 0; }
.hero p { margin: 6px 0 0; color: var(--text-2); font-size: 17px; letter-spacing: -0.015em; }

.stat {
  width: 100%; height: 100%;
  background: var(--surface); border-radius: var(--radius-l);
  padding: 18px 20px 20px; box-shadow: var(--shadow-card);
  text-align: left; border: 0; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.07); }
.stat.active { box-shadow: 0 0 0 2px var(--blue), var(--shadow-card); }
.stat-top { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.stat-dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; }
.stat-value { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12.5px; color: var(--text-3); margin-top: 8px; min-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tone-blue { background: var(--blue-soft); color: var(--blue); }
.tone-green { background: var(--green-soft); color: var(--green); }
.tone-orange { background: var(--orange-soft); color: var(--orange); }
.tone-red { background: var(--red-soft); color: var(--red); }

/* ---------------- Toolbar ---------------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search > .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-3); pointer-events: none; }
.search .form-control {
  height: 36px; border-radius: 10px; border: 0; background: var(--fill);
  padding: 0 40px 0 34px; font-size: 14.5px;
}
.search .form-control::placeholder { color: var(--text-3); }
.search .form-control:focus { background: var(--surface); box-shadow: 0 0 0 3.5px rgba(0,113,227,.35); }
.kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text-3); border: 1px solid var(--sep-strong); border-radius: 5px; padding: 0 5px; line-height: 17px; pointer-events: none; }
.search .form-control:focus ~ .kbd, .search .form-control:not(:placeholder-shown) ~ .kbd { display: none; }

.segmented { display: inline-flex; position: relative; background: var(--fill); border-radius: 9px; padding: 2px; height: 36px; }
.segmented button {
  position: relative; z-index: 1; border: 0; background: transparent;
  padding: 0 14px; font-size: 13.5px; font-weight: 500; border-radius: 7px; color: var(--text);
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.segmented .count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.segmented .thumb {
  position: absolute; z-index: 0; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 7px;
  background: var(--surface); box-shadow: 0 3px 8px rgba(0,0,0,.12), 0 3px 1px rgba(0,0,0,.04);
  transition: transform .35s var(--ease), width .35s var(--ease);
}

.subbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; min-height: 34px; }
.tagbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tag-filter {
  height: 30px; padding: 0 11px; border-radius: 980px; border: 1px solid var(--sep-strong);
  background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; transition: all .15s;
}
.tag-filter:hover { border-color: rgba(0,0,0,.25); }
.tag-filter .dot { width: 8px; height: 8px; border-radius: 50%; }
.tag-filter .n { color: var(--text-3); font-size: 12px; }
.tag-filter.active { background: var(--text); border-color: var(--text); color: #fff; }
.tag-filter.active .n { color: rgba(255,255,255,.6); }
.tagbar-hint { font-size: 13px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }

.select-wrap { position: relative; }
.select-wrap > .bi { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-2); pointer-events: none; z-index: 1; }
.select-wrap .form-select {
  height: 34px; border-radius: 10px; border: 0; background-color: var(--fill);
  padding: 0 32px 0 31px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  background-position: right 10px center; background-size: 12px 10px;
}
.select-wrap .form-select:focus { box-shadow: 0 0 0 3.5px rgba(0,113,227,.3); }

/* ---------------- List ---------------- */
/* overflow: clip (hidden değil) — hidden, grup başlıklarının yapışkan (sticky) davranışını bozar */
.list { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card); overflow: clip; }
.loading { padding: 60px; text-align: center; color: var(--text-3); display: flex; gap: 10px; justify-content: center; align-items: center; }
.row-d {
  display: grid;
  grid-template-columns: 22px minmax(210px, 2.1fr) minmax(120px, 1.1fr) minmax(100px, .9fr) minmax(100px, .9fr) minmax(160px, 1.3fr) 108px;
  align-items: center; gap: 16px; padding: 13px 20px; position: relative;
}
.row-d + .row-d::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; height: 1px; background: var(--sep); }
.row-d.head { padding-top: 11px; padding-bottom: 11px; background: var(--surface-2); border-bottom: 1px solid var(--sep); font-size: 12px; font-weight: 500; color: var(--text-3); }
.row-d.item { transition: background-color .15s; animation: rowIn .45s var(--ease) both; }
.row-d.item:hover { background: #fafafc; }
.row-d.item.selected { background: rgba(0,113,227,.055); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.group-head {
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: var(--surface-2); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep);
  position: sticky; top: 57px; z-index: 2;
}
.list > .group-head:first-of-type, .row-d.head + .group-head { border-top: 0; }
.group-head .g-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--fill-2); color: var(--text-2); font-size: 14px; margin-left: -4px; }
.group-head .g-name { font-weight: 600; font-size: 15px; letter-spacing: -0.015em; }
.group-head .g-count { font-size: 13px; color: var(--text-3); }
.group-head .g-actions { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.group-head .btn { height: 30px; font-size: 13px; --bs-btn-padding-x: 11px; }

.cbx {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(0,0,0,.24); background: #fff;
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.cbx:hover { border-color: rgba(0,0,0,.4); }
.cbx:checked, .cbx:indeterminate { background: var(--blue); border-color: var(--blue); }
.cbx:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.cbx:indeterminate::after { content: ""; width: 10px; height: 2px; background: #fff; border-radius: 1px; }

.dom { display: flex; align-items: center; gap: 14px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; font-weight: 600; font-size: 16px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.dom-text { min-width: 0; }
.dom-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.015em; }
.dom-name a { color: inherit; text-decoration: none; }
.dom-name a:hover { color: var(--blue); }
.dom-meta { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; white-space: nowrap; overflow: hidden; }
.dom-meta .note { overflow: hidden; text-overflow: ellipsis; }
.tag-auto { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 500; }
.tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0; white-space: nowrap;
}
.cell { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cell.muted { color: var(--text-2); }
.cell-label { display: none; }
.c-firm-inline { display: none; }

.remain { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 980px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bar { height: 4px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.actions { display: flex; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity .15s; }
.row-d.item:hover .actions, .row-d.item:focus-within .actions, .row-d.item.selected .actions { opacity: 1; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--text-2); font-size: 15px; transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--fill-2); color: var(--text); }
.icon-btn.del:hover { background: var(--red-soft); color: var(--red); }

.empty { text-align: center; padding: 72px 24px 80px; }
.empty-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px;
  background: linear-gradient(145deg, #eaf3ff, #d6e8ff); display: grid; place-items: center; color: var(--blue); font-size: 30px;
}
.empty h3 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.empty p { margin: 6px auto 22px; color: var(--text-2); max-width: 400px; }

/* ---------------- Timeline ---------------- */
.tl-chart { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card); padding: 20px 22px 16px; margin-bottom: 16px; }
.tl-chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.tl-chart-head h3 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -0.02em; }
.tl-chart-head span { font-size: 13px; color: var(--text-3); }
.tl-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 130px; }
.tl-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; border: 0; background: transparent; padding: 0; border-radius: 8px; }
.tl-bar .v { font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tl-bar .b { width: 100%; max-width: 40px; border-radius: 7px 7px 4px 4px; background: var(--blue); min-height: 4px; transform-origin: bottom; animation: growY .8s var(--ease) both; transition: filter .15s; }
.tl-bar .b.soon { background: #ff9500; }
.tl-bar .b.zero { background: var(--fill); }
.tl-bar:hover .b { filter: brightness(1.08); }
@keyframes growY { from { transform: scaleY(0); } }
.tl-labels { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--text-3); text-align: center; text-transform: capitalize; }

.tl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.tl-card { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card); padding: 16px 18px 8px; scroll-margin-top: 80px; animation: rowIn .45s var(--ease) both; }
.tl-card.empty-month { background: transparent; box-shadow: none; border: 1px dashed var(--sep-strong); padding-bottom: 16px; }
.tl-card.expired { box-shadow: 0 0 0 1.5px rgba(255,59,48,.35), var(--shadow-card); }
.tl-card.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(0,113,227,.5), var(--shadow-card); } }
.tl-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; letter-spacing: -0.015em; text-transform: capitalize; }
.tl-card h4 .n { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--fill-2); border-radius: 980px; padding: 1px 8px; }
.tl-empty { font-size: 13px; color: var(--text-3); }
.tl-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--sep); cursor: pointer; }
.tl-card h4 + .tl-item { border-top: 0; }
.tl-item:hover .tl-name { color: var(--blue); }
.tl-day { width: 38px; text-align: center; flex: none; line-height: 1.1; }
.tl-day b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.tl-day span { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; font-weight: 600; }
.tl-main { min-width: 0; flex: 1; }
.tl-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.tl-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-item .pill { font-size: 11.5px; padding: 2px 8px; }

/* ---------------- Bulk bar ---------------- */
.bulkbar {
  position: fixed; left: 50%; bottom: 24px; z-index: 1030;
  transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--sep); box-shadow: var(--shadow-pop); border-radius: 16px;
  padding: 7px; display: flex; align-items: center; gap: 2px;
  transition: transform .45s var(--ease), opacity .3s;
  max-width: calc(100vw - 32px);
}
.bulkbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.bb-count { padding: 0 10px 0 10px; font-weight: 600; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bb-btn {
  height: 36px; padding: 0 11px; border-radius: 10px; border: 0; background: transparent; color: var(--text);
  display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background-color .15s;
}
.bb-btn:hover, .bb-btn[aria-expanded="true"] { background: var(--fill-2); }
.bb-btn.danger { color: var(--red); }
.bb-btn.danger:hover { background: var(--red-soft); }
.bb-btn.icon { width: 36px; padding: 0; justify-content: center; color: var(--text-2); }
.bb-sep { width: 1px; height: 22px; background: var(--sep); margin: 0 4px; flex: none; }
.bulkbar .dropdown-menu { margin-bottom: 10px !important; }

/* ---------------- Modals & forms ---------------- */
.modal { --bs-modal-border-radius: 20px; --bs-modal-border-width: 0; --bs-modal-box-shadow: var(--shadow-pop); --bs-modal-width: 520px; }
.modal-sm-apple { --bs-modal-width: 400px; }
.modal-confirm { --bs-modal-width: 340px; }
.modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: .28; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.fade .modal-dialog { transform: translateY(14px) scale(.97); transition: transform .4s var(--ease), opacity .3s; }
.modal.show .modal-dialog { transform: none; }
.modal-header { border: 0; padding: 22px 24px 4px; }
.modal-title { font-size: 22px; font-weight: 700; letter-spacing: -0.022em; margin: 0; }
.modal-confirm .modal-title { font-size: 18px; }
.modal-sub { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.modal-body { padding: 16px 24px 8px; }
.modal-footer { border: 0; padding: 14px 24px 22px; gap: 8px; }
.modal-footer > * { margin: 0; }
.modal-footer .btn { height: 38px; padding: 0 18px; }

.form-label { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.form-control, .form-select { border-radius: 11px; border-color: var(--sep-strong); font-size: 15px; }
.form-control:not(textarea):not(.tag-box) { height: 42px; }
.form-control-lg { height: 48px !important; font-size: 16px; }
.form-control:focus, .form-select:focus { border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(0,113,227,.22); }
.form-control.is-invalid { border-color: #ff3b30; background-image: none; padding-right: .75rem; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3.5px rgba(255,59,48,.15); }
.invalid-feedback { font-size: 12.5px; color: var(--red); }
#eName:empty { display: none !important; }
.input-group > .form-control { border-radius: 11px 0 0 11px !important; }
.input-group .btn-soft { gap: 6px; padding: 0 14px; }

.rdap-status { font-size: 12.5px; margin-top: 6px; color: var(--text-2); display: none; align-items: center; gap: 6px; }
.rdap-status.show { display: flex; }
.rdap-status.ok { color: var(--green); }
.rdap-status.err { color: var(--red); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 26px; padding: 0 10px; border-radius: 980px; border: 0; background: var(--fill-2); font-size: 12.5px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 4px; }
.chip:hover { background: var(--fill); }

.tag-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 6px 8px; cursor: text; height: auto; }
.tag-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3.5px rgba(0,113,227,.22); }
.tag-box input { border: 0; outline: 0; flex: 1; min-width: 140px; font-size: 15px; padding: 2px 4px; background: transparent; }
.tag-box .tag { height: 26px; font-size: 13px; padding: 0 4px 0 9px; gap: 2px; border-radius: 7px; }
.tag-box .tag button { border: 0; background: transparent; color: inherit; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 14px; opacity: .7; padding: 0; }
.tag-box .tag button:hover { opacity: 1; background: rgba(0,0,0,.06); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--sep); }
.switch-row .t { font-size: 14.5px; font-weight: 500; }
.switch-row .s { font-size: 12.5px; color: var(--text-3); }
.switch { position: relative; width: 51px; height: 31px; flex: none; margin: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 980px; background: rgba(120,120,128,.18); transition: background-color .25s; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.08); transition: transform .3s var(--ease); }
.switch input:checked ~ .track { background: #34c759; }
.switch input:checked ~ .knob { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 3px solid rgba(0,113,227,.45); outline-offset: 2px; }

/* ---------------- Toast ---------------- */
.toast-pill {
  position: fixed; left: 50%; bottom: 28px; z-index: 1090;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(29,29,31,.92); color: #fff; padding: 10px 18px; border-radius: 980px;
  font-size: 14px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.2);
  transition: opacity .3s, transform .4s var(--ease), bottom .4s var(--ease);
  display: flex; align-items: center; gap: 8px; white-space: nowrap; max-width: calc(100vw - 32px);
}
.toast-pill span { overflow: hidden; text-overflow: ellipsis; }
.toast-pill.show { opacity: 1; transform: translate(-50%, 0); }
.toast-pill .bi { color: #30d158; }
.toast-pill.err .bi { color: #ff6961; }
.toast-pill.busy .bi { animation: spin 1s linear infinite; color: #64d2ff; }
@keyframes spin { to { transform: rotate(360deg); } }
body.has-selection .toast-pill { bottom: 92px; }

/* ---------------- Auth ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-card); padding: 36px 30px 30px; text-align: center; animation: rowIn .5s var(--ease) both; }
.auth-title { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.auth-sub { color: var(--text-2); margin: 6px 0 24px; }
.auth-error { color: var(--red); font-size: 13.5px; margin: -4px 0 14px; display: flex; gap: 6px; align-items: center; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1199.98px) {
  .row-d { grid-template-columns: 22px minmax(200px, 2fr) minmax(100px, 1fr) minmax(150px, 1.3fr) 108px; }
  .row-d .c-reg, .row-d .c-firm { display: none; }
  .c-firm-inline { display: inline; }
}
@media (max-width: 991.98px) {
  .tl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
  .topbar .btn-label, .brand span:last-child { display: none; }
  .topbar .btn-plain, .topbar .btn-primary { padding: 0 10px; }
  .hero { padding: 20px 0 18px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
  .stat { padding: 14px 16px 16px; }
  .stat-value { font-size: 28px; }
  .toolbar { gap: 10px; }
  .search { max-width: none; flex-basis: 100%; }
  .segmented { flex: 1 1 100%; }
  .segmented button { padding: 0 4px; flex: 1; font-size: 13px; gap: 4px; }
  .subbar .list-only { flex: 1 1 100%; margin-left: 0 !important; }
  .subbar .select-wrap { flex: 1; }
  .subbar .form-select { width: 100%; }
  .kbd { display: none; }
  .row-d.head { display: none; }
  .row-d.item { grid-template-columns: 20px 1fr auto; gap: 10px 12px; padding: 14px 16px; }
  .row-d + .row-d::before { left: 16px; }
  .row-d .c-act { grid-column: 3; grid-row: 1; }
  .row-d .c-exp, .row-d .c-remain { grid-column: 2 / -1; }
  .row-d .c-exp { display: flex; justify-content: space-between; color: var(--text-2); font-size: 13px; }
  .cell-label { display: inline; color: var(--text-3); }
  .actions { opacity: 1; }
  .group-head { padding: 12px 16px; gap: 12px; top: 51px; }
  .tl-grid { grid-template-columns: 1fr; }
  .tl-bars { height: 100px; gap: 4px; }
  .tl-labels { gap: 4px; font-size: 10px; }
  .bulkbar { left: 12px; right: 12px; transform: translateY(calc(100% + 40px)); max-width: none; bottom: 12px; justify-content: space-between; gap: 0; padding: 6px; }
  .bulkbar.show { transform: none; }
  .bb-sep { display: none; }
  .bb-count { padding: 0 6px; font-size: 13px; }
  .bb-btn span { display: none; }
  .bb-btn { padding: 0 8px; }
  .bb-btn .bi { font-size: 16px; }
  .modal-dialog { margin: 16px; }
}
