/* Dashboard (личный кабинет) styles moved into css/dashboard.css */
.db-layout { display:flex; min-height:100vh; }
.db-sidebar {
  width:260px; background:var(--ink); flex-shrink:0;
  display:flex; flex-direction:column;
  position:fixed; top:0; left:0; bottom:0; z-index:100;
  overflow-y:auto; transition:transform .3s;
}
.db-main {
  margin-left:260px; flex:1; min-height:100vh;
  background:var(--bg); display:flex; flex-direction:column;
}
.db-logo {
  padding:24px 20px 20px;
  border-bottom:1px solid rgba(255,255,255,.07);
  display:flex; align-items:center; gap:10px;
  font-family:'Playfair Display', serif;
  font-size:20px; font-weight:700; color:#fff;
  text-decoration:none;
}
.db-logo-mark {
  width:36px; height:36px; border-radius:10px;
  background:linear-gradient(135deg, var(--accent), var(--accent-dk));
  display:flex; align-items:center; justify-content:center;
  font-size:16px; flex-shrink:0;
}
.db-nav-section { padding:20px 12px 8px; }
.db-nav-lbl {
  font-size:10px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:rgba(255,255,255,.3);
  padding:0 8px; margin-bottom:6px;
}
.db-nav-item {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:10px; cursor:pointer;
  color:rgba(255,255,255,.5); font-size:14px; font-weight:500;
  transition:all .18s; margin-bottom:2px; border:none; background:none;
  width:100%; text-align:left; font-family:'Plus Jakarta Sans', sans-serif;
}
.db-nav-item svg { width:18px; height:18px; stroke-width:1.8; flex-shrink:0; }
.db-nav-item:hover { background:rgba(255,255,255,.07); color:rgba(255,255,255,.8); }
.db-nav-item.active { background:rgba(224,90,58,.18); color:var(--accent); }
.db-nav-item .db-badge {
  margin-left:auto; background:var(--accent); color:#fff;
  font-size:10px; font-weight:700; padding:1px 7px; border-radius:20px;
}
.db-sidebar-footer {
  margin-top:auto; padding:16px 12px;
  border-top:1px solid rgba(255,255,255,.07);
}
.db-user-chip {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; background:rgba(255,255,255,.05);
  border-radius:12px; cursor:pointer; transition:background .18s;
}
.db-user-chip:hover { background:rgba(255,255,255,.09); }
.db-user-ava {
  width:32px; height:32px; border-radius:9px; flex-shrink:0;
  background:linear-gradient(135deg, var(--accent), #F08060);
  display:flex; align-items:center; justify-content:center;
  font-family:'Playfair Display', serif; font-size:14px; font-weight:700; color:#fff;
}
.db-user-name { font-size:13px; font-weight:600; color:rgba(255,255,255,.85); }
.db-user-role { font-size:11px; color:rgba(255,255,255,.35); }
.db-topbar {
  background:var(--white); border-bottom:1px solid var(--bg3);
  padding:0 32px; height:64px;
  display:flex; align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:50;
}
.db-topbar-left { display:flex; align-items:center; gap:16px; }
.db-topbar-title {
  font-family:'Playfair Display', serif; font-size:18px; font-weight:700; color:var(--ink);
}
.db-topbar-actions { display:flex; align-items:center; gap:10px; }
.db-mob-topbar {
  display:none; background:var(--ink); padding:14px 20px;
  align-items:center; justify-content:space-between;
  position:sticky; top:0; z-index:100;
}
.db-mob-logo { font-family:'Playfair Display', serif; font-size:17px; font-weight:700; color:#fff; display:flex; align-items:center; gap:8px; }
.db-hamburger { background:none; border:none; cursor:pointer; display:flex; flex-direction:column; gap:4px; padding:4px; }
.db-hamburger span { display:block; width:20px; height:2px; background:rgba(255,255,255,.8); border-radius:2px; }
.db-content { padding:32px; flex:1; }
.db-page { display:none; animation:fadeUp .35s ease; }
.db-page.active { display:block; }
.db-card {
  background:var(--white); border-radius:var(--r);
  border:1px solid var(--bg3); padding:24px 28px;
  box-shadow:var(--shadow-sm);
}
.db-card-title {
  font-family:'Playfair Display', serif; font-size:17px; font-weight:700;
  color:var(--ink); margin-bottom:4px;
}
.db-card-sub { font-size:13px; color:var(--ink3); }
.db-card-header { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.db-stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; }
.db-stat-card {
  background:var(--white); border-radius:var(--r);
  border:1px solid var(--bg3); padding:20px 24px;
  box-shadow:var(--shadow-sm); transition:transform .18s;
}
.db-stat-card:hover { transform:translateY(-3px); }
.db-stat-icon { font-size:24px; margin-bottom:10px; }
.db-stat-val {
  font-family:'Playfair Display', serif; font-size:30px;
  font-weight:900; color:var(--ink); line-height:1;
}
.db-stat-lbl { font-size:12px; color:var(--ink2); margin-top:5px; }
.db-stat-trend { font-size:12px; font-weight:600; margin-top:4px; }
.trend-up   { color:var(--green); }
.trend-down { color:var(--red); }
.token-card {
  background:linear-gradient(135deg, #1C1917 0%, #2E2820 100%);
  border-radius:var(--r); padding:28px;
  border:1px solid rgba(255,255,255,.07);
  position:relative; overflow:hidden;
}
.token-card::before {
  content:''; position:absolute; top:-80px; right:-80px;
  width:240px; height:240px; border-radius:50%;
  background:radial-gradient(circle, rgba(224,90,58,.18), transparent 70%);
  pointer-events:none;
}
.token-card .db-card-title { color:rgba(255,255,255,.9); }
.token-card .db-card-sub   { color:rgba(255,255,255,.4); }
.token-card .form-label    { color:rgba(255,255,255,.4); }
.form-group { margin-bottom:16px; }
.form-label {
  display:block; font-size:11px; font-weight:700;
  text-transform:uppercase; letter-spacing:.07em;
  color:var(--ink2); margin-bottom:7px;
}
.form-input {
  width:100%; background:var(--bg); border:1.5px solid var(--bg3);
  border-radius:var(--r-sm); padding:12px 16px;
  font-size:14px; color:var(--ink);
  font-family:'Plus Jakarta Sans', sans-serif;
  outline:none; transition:border-color .2s, box-shadow .2s;
}
.form-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(224,90,58,.1); background:var(--white); }
.form-input::placeholder { color:var(--ink3); }
textarea.form-input { resize:none; min-height:90px; }
.token-card .form-input {
  background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.12);
  color:#fff; font-family:'Courier New', monospace; font-size:13px;
}
.token-card .form-input:focus { border-color:var(--accent); background:rgba(255,255,255,.1); }
.token-card .form-input::placeholder { color:rgba(255,255,255,.2); }
.input-row { display:flex; gap:8px; }
.input-row .form-input { flex:1; }
.db-table-wrap { overflow-x:auto; border-radius:var(--r-sm); border:1px solid var(--bg3); }
table { width:100%; border-collapse:collapse; }
thead th {
  background:var(--bg); padding:12px 16px; text-align:left;
  font-size:11px; font-weight:700; color:var(--ink2);
  text-transform:uppercase; letter-spacing:.07em;
  border-bottom:1px solid var(--bg3); white-space:nowrap;
}
tbody td {
  padding:14px 16px; font-size:13px; color:var(--ink);
  border-bottom:1px solid var(--bg3);
}
tbody tr:last-child td { border-bottom:none; }
tbody tr:hover { background:var(--bg); }
.sub-hero-card {
  background:linear-gradient(160deg, #E8F5F2 0%, #EAF5EE 100%);
  border:1px solid rgba(29,122,104,.15);
  border-radius:var(--r); padding:28px;
}
.sub-days {
  font-family:'Playfair Display', serif;
  font-size:56px; font-weight:900; color:var(--teal); line-height:1;
}
.sub-days-lbl { font-size:14px; color:var(--ink2); margin-bottom:20px; }
.progress-bar { height:8px; background:rgba(29,122,104,.15); border-radius:4px; overflow:hidden; }
.progress-fill {
  height:100%; border-radius:4px;
  background:linear-gradient(90deg, var(--teal), #48B5A2);
  position:relative; overflow:hidden;
}
.progress-fill::after {
  content:''; position:absolute; top:0; left:-100%; width:60%; height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  animation:shimmer 2.5s infinite;
}
.db-calendar { background:var(--white); border-radius:var(--r); border:1px solid var(--bg3); padding:24px; }
.cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.cal-month-label { font-family:'Playfair Display', serif; font-size:18px; font-weight:700; color:var(--ink); }
.cal-nav-btn {
  width:34px; height:34px; border-radius:10px; background:var(--bg);
  border:1px solid var(--bg3); display:flex; align-items:center; justify-content:center;
  cursor:pointer; font-size:15px; color:var(--ink2); transition:all .15s;
}
.cal-nav-btn:hover { background:var(--accent-lt); color:var(--accent); border-color:rgba(224,90,58,.2); }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); }
.cal-dow { text-align:center; font-size:11px; font-weight:700; color:var(--ink3); padding:8px 0; }
.cal-day {
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  border-radius:50%; font-size:13px; cursor:pointer; color:var(--ink2);
  transition:all .15s; position:relative;
}
.cal-day:hover:not(.disabled) { background:var(--bg2); color:var(--ink); }
.cal-day.today { color:var(--accent); border:1.5px solid rgba(224,90,58,.3); font-weight:700; }
.cal-day.selected { background:var(--accent); color:#fff; }
.cal-day.has-event::after {
  content:''; position:absolute; bottom:4px; left:50%; transform:translateX(-50%);
  width:4px; height:4px; border-radius:50%; background:var(--teal);
}
.cal-day.selected::after { background:#fff; }
.cal-day.disabled { color:var(--ink4); cursor:default; }
.cal-day.other-month { color:var(--ink4); }
.service-row {
  display:flex; align-items:center; gap:14px;
  padding:14px 0; border-bottom:1px solid var(--bg3);
}
.service-row:last-child { border-bottom:none; }
.service-icon-box {
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:20px;
  background:var(--bg2);
}
.service-name  { font-size:14px; font-weight:600; color:var(--ink); }
.service-meta  { font-size:12px; color:var(--ink3); margin-top:2px; }
.service-price { font-family:'Playfair Display', serif; font-size:20px; font-weight:700; color:var(--accent); margin-left:auto; }
.portfolio-admin-grid {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(120px,1fr)); gap:10px;
}
.portfolio-thumb {
  aspect-ratio:1; border-radius:12px; overflow:hidden;
  background:var(--bg2); position:relative;
  display:flex; align-items:center; justify-content:center; font-size:32px;
  cursor:pointer; transition:transform .18s;
}
.portfolio-thumb:hover { transform:scale(1.04); }
.portfolio-thumb-del {
  position:absolute; top:6px; right:6px;
  background:rgba(0,0,0,.5); color:#fff; border:none;
  border-radius:50%; width:24px; height:24px;
  display:flex; align-items:center; justify-content:center;
  font-size:12px; cursor:pointer; opacity:0; transition:opacity .18s;
}
.portfolio-thumb:hover .portfolio-thumb-del { opacity:1; }
.portfolio-add {
  aspect-ratio:1; border-radius:12px;
  border:2px dashed var(--bg3); display:flex; flex-direction:column;
  align-items:center; justify-content:center; cursor:pointer;
  color:var(--ink3); font-size:12px; gap:6px; transition:all .18s;
}
.portfolio-add:hover { border-color:var(--accent); color:var(--accent); background:var(--accent-lt); }
.appt-card {
  background:var(--white); border-radius:16px; padding:18px 20px;
  border:1px solid var(--bg3); box-shadow:var(--shadow-sm);
  margin-bottom:10px; border-left:4px solid transparent;
  transition:transform .15s;
}
.appt-card:hover { transform:translateX(2px); }
.appt-card.confirmed { border-left-color:var(--green); }
.appt-card.pending   { border-left-color:var(--gold); }
.appt-card.cancelled { border-left-color:var(--red); opacity:.7; }
.appt-row { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:8px; }
.appt-client { font-size:15px; font-weight:600; color:var(--ink); }
.appt-service-name { font-size:13px; color:var(--ink2); }
.appt-price { font-family:'Playfair Display', serif; font-size:20px; color:var(--accent); }
.appt-meta { display:flex; gap:14px; flex-wrap:wrap; }
.appt-meta-item { font-size:12px; color:var(--ink2); display:flex; align-items:center; gap:4px; }
.appt-actions { display:flex; gap:8px; margin-top:14px; }
.toggle-row {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; border-bottom:1px solid var(--bg3);
}
.toggle-row:last-child { border-bottom:none; }
.toggle-row-title { font-size:14px; font-weight:600; color:var(--ink); }
.toggle-row-sub   { font-size:12px; color:var(--ink3); margin-top:2px; }
.toggle {
  width:44px; height:24px; border-radius:12px;
  background:var(--bg2); border:1px solid var(--bg3);
  position:relative; cursor:pointer; transition:all .2s; flex-shrink:0;
}
.toggle.on { background:var(--accent); border-color:var(--accent); }
.toggle::after {
  content:''; position:absolute; top:2px; left:2px;
  width:18px; height:18px; border-radius:50%; background:#fff;
  transition:transform .2s; box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.toggle.on::after { transform:translateX(20px); }
#db-toast {
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(12px);
  background:var(--ink); color:#fff; padding:12px 24px;
  border-radius:40px; font-size:13px; font-weight:600;
  z-index:999; opacity:0; transition:all .25s; pointer-events:none;
  white-space:nowrap; box-shadow:0 8px 32px rgba(0,0,0,.25);
  display:flex; align-items:center; gap:8px;
}
#db-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }
.modal-overlay {
  display:none; position:fixed; inset:0; background:rgba(0,0,0,.55);
  z-index:500; align-items:flex-end; justify-content:center;
  backdrop-filter:blur(6px);
}
.modal-overlay.open { display:flex; }
.modal-sheet {
  background:var(--white); border-radius:28px 28px 0 0;
  padding:28px 28px 40px; width:100%; max-width:520px;
  animation:slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-title {
  font-family:'Playfair Display', serif; font-size:22px; font-weight:700;
  color:var(--ink); margin-bottom:20px;
  display:flex; justify-content:space-between; align-items:center;
}
.modal-close {
  background:var(--bg2); border:none; border-radius:50%;
  width:32px; height:32px; cursor:pointer; font-size:16px;
  color:var(--ink2); display:flex; align-items:center; justify-content:center;
}
@media (max-width:1024px) {
  .db-stats-row { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px) {
  .db-sidebar { transform:translateX(-100%); }
  .db-sidebar.open { transform:translateX(0); }
  .db-main { margin-left:0; }
  .db-topbar { display:none; }
  .db-mob-topbar { display:flex; }
  .db-content { padding:20px 16px; }
  .db-stats-row { grid-template-columns:1fr 1fr; }
  .db-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:99; }
  .db-overlay.show { display:block; }
}
@media (max-width:480px) {
  .db-stats-row { grid-template-columns:1fr 1fr; gap:10px; }
  .db-stat-val { font-size:24px; }
}
.db-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.db-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:900px) { .db-grid-2 { grid-template-columns:1fr; } .db-grid-3 { grid-template-columns:1fr 1fr; } }
@media (max-width:600px) { .db-grid-3 { grid-template-columns:1fr; } }


