/* Dashboard Builder Cloud – control panel */
:root {
  --bg: #f6f7fb; --surface: #ffffff; --surface-2: #f1f3f9; --border: #e4e7ef;
  --text: #0f172a; --text-2: #475569; --muted: #8a94a8;
  --brand: #2563eb; --brand-2: #3b82f6; --brand-ink: #1e40af; --brand-soft: #eaf1ff;
  --green: #059669; --green-soft: #e7f7f1; --amber: #b45309; --amber-soft: #fdf3e2;
  --red: #dc2626; --red-soft: #fdecec;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 16px rgba(15,23,42,.05);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.18);
  --radius: 14px; --sidebar: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020; --surface: #121a2e; --surface-2: #19223a; --border: #243150;
  --text: #e6eaf3; --text-2: #b4bfd4; --muted: #7d8aa5;
  --brand: #4f8cff; --brand-2: #6aa0ff; --brand-ink: #1e3a8a; --brand-soft: rgba(79,140,255,.14);
  --green: #34d399; --green-soft: rgba(52,211,153,.13); --amber: #fbbf24; --amber-soft: rgba(251,191,36,.12);
  --red: #f87171; --red-soft: rgba(248,113,113,.13);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .hide { display: none !important; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; padding: 4px 8px 18px; }
.brand img { height: 40px; }
:root[data-theme="dark"] .brand img { background: #fff; padding: 4px 8px; border-radius: 8px; }
.nav a, .nav button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 9px; color: var(--text-2); font-weight: 500; margin-bottom: 2px; border: 0; background: none; cursor: pointer; text-align: left; }
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav .ext { margin-left: auto; width: 14px; height: 14px; color: var(--muted); }
.nav .label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 18px 10px 6px; }
.sidebar-foot { margin-top: auto; padding-top: 16px; }
.plan-chip { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-weight: 500; }
.plan-chip small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.plan-chip b { color: var(--brand); font-weight: 600; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 10px; padding: 0 32px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(10px); }
.topbar .title { flex: 1; min-width: 0; }
.topbar h1 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-toggle { display: none !important; }
.page { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1280px; width: 100%; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.icon-btn { width: 38px; padding: 0; position: relative; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; border: 2px solid var(--surface); }
.lang { height: 38px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; background: var(--surface); color: var(--text-2); font-weight: 500; cursor: pointer; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2563eb, #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; overflow: hidden; border: 0; cursor: pointer; padding: 0; position: relative; }
.avatar img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.avatar.lg { width: 84px; height: 84px; font-size: 26px; cursor: default; }
.user-menu, .bell-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; animation: fade .12s ease; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; color: var(--text); border: 0; background: none; cursor: pointer; text-align: left; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu .note { padding: 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.menu .note b { color: var(--text); display: block; }

/* ---------- cards & content */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.card-h h3 { font-size: 15px; font-weight: 600; margin: 0; }
.card-h p { margin: 2px 0 0; }
.card-b { padding: 20px 22px; }
.lnk { color: var(--brand); font-weight: 600; font-size: 13px; background: none; border: 0; cursor: pointer; padding: 0; }
.alert { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid; }
.alert > div { flex: 1; }
.alert.amber { background: var(--amber-soft); border-color: color-mix(in srgb, var(--amber) 30%, transparent); color: var(--text); }
.alert.amber svg.i { color: var(--amber); }
.alert.red { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.alert.red svg.i { color: var(--red); }
.alert.green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.alert.green svg.i { color: var(--green); }
.alert .btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
:root[data-theme="dark"] .alert .btn.amber { color: #1a1205; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.amber { background: var(--amber-soft); color: var(--amber); } .badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); } .badge.brand { background: var(--brand-soft); color: var(--brand); }

.hero { position: relative; overflow: hidden; border-radius: 16px; padding: 30px 34px; color: #fff; background: linear-gradient(120deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%); display: flex; align-items: center; gap: 30px; }
.hero h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.hero p { color: #dbe7ff; max-width: 540px; margin: 0; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .btn.white { background: #fff; color: #2563eb; border-color: #fff; }
.hero .btn.ghostw { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.hero .art { margin-left: auto; width: 360px; height: 170px; flex: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.mini { background: rgba(255,255,255,.95); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; color: #0f172a; }
.mini .t { height: 6px; width: 50%; background: #e2e8f0; border-radius: 3px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; border-radius: 3px 3px 0 0; display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 18px 20px; }
.stat .k { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; font-size: 13px; }
.stat .k svg.i { width: 16px; height: 16px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; }
.stat .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.progress { height: 6px; background: var(--surface-2); border-radius: 99px; margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.progress i.amber { background: var(--amber); } .progress i.red { background: var(--red); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.grid2 > *, .stats > *, .plans > * { min-width: 0; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: left; padding: 12px 10px 8px; text-transform: uppercase; letter-spacing: .04em; }
table.t td { padding: 11px 10px; border-top: 1px solid var(--border); color: var(--text-2); }
table.t td:first-child { color: var(--text); font-weight: 500; }
table.t th:not(:first-child), table.t td:not(:first-child) { text-align: center; }
table.t .pro { background: color-mix(in srgb, var(--brand) 6%, transparent); color: var(--brand); font-weight: 600; }
table.t th.pro { color: var(--brand); }
table.t .cur { background: color-mix(in srgb, var(--green) 8%, transparent); }
table.t th .you { display: block; font-size: 10px; color: var(--green); letter-spacing: .04em; }
.yes { color: var(--green); font-weight: 700; } .no { color: var(--muted); opacity: .6; }
.table-wrap { overflow-x: auto; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--brand-soft); }

.kv { display: grid; grid-template-columns: 130px 1fr; row-gap: 12px; column-gap: 12px; padding: 16px 22px 20px; font-size: 13.5px; }
.kv span { color: var(--muted); } .kv b { font-weight: 500; word-break: break-word; }
.empty { padding: 26px 22px; text-align: center; color: var(--muted); }
.empty svg.i { width: 28px; height: 28px; color: var(--muted); margin-bottom: 6px; }
.links { padding: 8px; }
.links a, .links button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border-radius: 10px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; }
.links a:hover, .links button:hover { background: var(--surface-2); }
.links .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.links .ic svg.i { width: 17px; height: 17px; }
.links div { flex: 1; } .links small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.links .chev { width: 16px; height: 16px; color: var(--muted); }
.links > * + * { border-top: 1px solid var(--border); border-radius: 0 !important; }
.ic.brand { background: var(--brand-soft); color: var(--brand); } .ic.green { background: var(--green-soft); color: var(--green); } .ic.amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- billing */
.toggle { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.toggle button { border: 0; background: none; padding: 7px 16px; border-radius: 9px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.toggle button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.save { color: var(--green); font-size: 12px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { padding: 22px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.pop { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.plan .ribbon { position: absolute; top: -11px; left: 22px; }
.plan h4 { margin: 0; font-size: 15px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 7px; color: var(--text-2); font-size: 13px; }
.plan li { display: flex; gap: 8px; } .plan li svg.i { width: 16px; height: 16px; color: var(--green); margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.form.two { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.fld label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.fld .hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.inp { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea.inp { height: auto; min-height: 150px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.inp[readonly] { background: var(--surface-2); color: var(--text-2); }
.fld.err .inp { border-color: var(--red); } .fld .err-msg { color: var(--red); font-size: 12.5px; margin-top: 5px; }
.form-foot { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.pw-wrap { position: relative; } .pw-wrap .inp { padding-right: 42px; }
.pw-wrap button { position: absolute; right: 4px; top: 4px; height: 34px; width: 34px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.meter { height: 5px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; } .meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.avatar-row { display: flex; align-items: center; gap: 18px; }
.counter { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- modal & toast */
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fade .15s ease; }
.modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-h h3 { margin: 0; font-size: 17px; } .modal-h p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.modal-h .btn { margin-left: auto; }
.modal-b { padding: 18px 22px 22px; }
.success { text-align: center; padding: 26px 22px 28px; }
.success .ring { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success .ring svg.i { width: 28px; height: 28px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 12px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 500; animation: fade .2s ease; }
.toast.err { background: var(--red); color: #fff; }

/* ---------- responsive */
@media (max-width: 1180px) { .stats { grid-template-columns: repeat(2, 1fr); } .plans { grid-template-columns: repeat(2, 1fr); } .hero .art { display: none; } }
@media (max-width: 980px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(15,23,42,.4); z-index: 25; }
  .menu-toggle { display: inline-flex !important; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px 40px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .stats, .plans, .form.two { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; } .hero h2 { font-size: 20px; }
  .alert { flex-wrap: wrap; }
  .kv { grid-template-columns: 1fr; row-gap: 2px; } .kv b { margin-bottom: 10px; }
  .upsell { flex-direction: column; align-items: flex-start; }
  .toasts { left: 16px; right: 16px; } .toast { max-width: none; }
}

/* ---------- sign-in screens: same design as the original cloud.dashboardbuilder.net login/signup */
.db-topnav { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: #f8f8f8; border-bottom: 1px solid #e7e7e7; }
.db-topnav-logo img { height: 40px; display: block; }
.db-topnav-right { display: flex; align-items: center; gap: 16px; font-size: 13px; }
.db-topnav-right a { color: #777; }
.db-topnav-right a:hover { color: #333; }
.db-lang { height: 26px; font-size: 12px; border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #333; padding: 0 4px; }

.db-auth-page { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; background: #eef1f6; padding: 40px 20px; display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 50px); color: #0f172a; }
.db-auth-card { width: 100%; max-width: 180vh; min-height: 80vh; background: #fff; border-radius: 18px; box-shadow: 0 24px 46px -22px rgba(15,23,42,.35), 0 2px 8px rgba(15,23,42,.06); overflow: hidden; display: flex; align-items: stretch; position: relative; }
.db-auth-hero { flex: 1 1 68%; position: relative; background: #0b1626 url('auth-banner.jpg') center/cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: flex-start; padding: 22px 34px; }
.db-auth-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(9,16,32,.90) 0%, rgba(9,16,32,.68) 45%, rgba(9,16,32,.30) 100%); z-index: 0; }
.db-auth-hero-topbar, .db-auth-hero-content { position: relative; z-index: 1; }
.db-auth-hero-topbar { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.db-auth-hero-nav { display: flex; align-items: center; gap: 22px; }
.db-auth-hero-nav a { position: relative; color: rgba(255,255,255,.72); font-size: 13px; font-weight: 500; text-decoration: none; padding-bottom: 6px; transition: color .15s ease; }
.db-auth-hero-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #3b82f6; border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.db-auth-hero-nav a:hover, .db-auth-hero-nav a.db-nav-active { color: #fff; }
.db-auth-hero-nav a:hover::after, .db-auth-hero-nav a.db-nav-active::after { transform: scaleX(1); }
.db-auth-hero-content { margin-top: 30px; max-width: 400px; }
.db-auth-hero-content h1 { font-size: 30px; line-height: 1.15; font-weight: 800; margin: 0 0 10px; letter-spacing: -.4px; }
.db-auth-hero-content p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.78); max-width: 340px; margin: 0; }

.db-auth-panel { flex: 0 0 460px; max-width: 460px; padding: 20px 88px 16px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; background: #fff; box-shadow: -24px 0 44px -16px rgba(15,23,42,.25); overflow-y: auto; }
.db-tab-toggle { display: inline-flex; align-self: flex-start; background: #f1f3f7; padding: 3px; border-radius: 10px; margin-bottom: 10px; }
.db-tab-toggle .db-tab-item { padding: 6px 15px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #8b93a3; white-space: nowrap; text-decoration: none; }
.db-tab-toggle a.db-tab-item:hover { color: #0f172a; }
.db-tab-toggle .db-tab-active { background: #0f172a; color: #fff; box-shadow: 0 4px 10px rgba(15,23,42,.22); }
.db-auth-panel h2 { font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 3px; }
.db-auth-panel .db-subtitle { font-size: 12px; color: #6b7280; margin: 0 0 12px; }
.db-auth-panel .db-subtitle b { color: #0f172a; }
.db-divider { display: flex; align-items: center; gap: 10px; color: #9aa2b1; font-size: 11.5px; margin: 10px 0 8px; }
.db-divider::before, .db-divider::after { content: ''; flex: 1; height: 1px; background: #eceef2; }
.db-social-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 2px; }
.db-social-row .icon_s { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; padding: 0; position: relative; transition: box-shadow .15s ease, transform .15s ease; }
.db-social-row .icon_s:hover { box-shadow: 0 4px 10px rgba(15,23,42,.10); transform: translateY(-1px); }
.db-social-row .icon_s img { width: 15px; height: 15px; }
.g-wrap .g-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.g-wrap.ready { border: 0; width: auto; height: auto; }
.g-wrap.ready img { display: none; }
.g-wrap.ready .g-overlay { position: static; }
.db-field { margin-bottom: 8px; text-align: left; }
.db-auth-panel .db-field label { display: block; font-size: 11.5px; font-weight: 600; color: #374151; margin-bottom: 3px; }
.db-field-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.db-auth-panel .db-field-label-row label { margin-bottom: 0; }
.db-forgot-link { font-size: 11.5px; font-weight: 600; color: #2563eb; text-decoration: none; }
.db-forgot-link:hover { text-decoration: underline; }
.db-input-wrap { position: relative; }
.db-field input.form-control { width: 100%; height: 34px; border: 1px solid #dde1e8; border-radius: 9px; padding: 0 12px; font-size: 13px; background: #fff; color: #0f172a; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.db-field input[type=password].form-control { padding-right: 36px; }
.db-field input.form-control::placeholder { color: #a3aab8; }
.db-field input.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.db-field.err input.form-control { border-color: #dc2626; }
.db-field .err-msg { font-size: 11px; margin-top: 3px; color: #dc2626; }
.db-eye-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: #9aa2b1; cursor: pointer; background: none; border: 0; padding: 4px; display: grid; place-items: center; }
.db-eye-toggle svg.i { width: 15px; height: 15px; }
.db-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 36px; border-radius: 9px; background: #2563eb; border: none; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2px; box-shadow: 0 6px 14px -6px rgba(37,99,235,.55); transition: background .15s ease, transform .15s ease; margin-top: 2px; cursor: pointer; text-decoration: none; }
.db-submit-btn:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; }
.db-submit-btn[disabled] { opacity: .7; transform: none; }
.db-terms { font-size: 10px; color: #8a93a3; text-align: center; margin-top: 8px; line-height: 1.4; }
.db-terms a { color: #4b5563; text-decoration: underline; }
.db-copy { font-size: 9.5px; color: #b6bcc7; text-align: center; margin-top: 10px; }
.db-back { text-align: center; margin: 12px 0 0; }
.cf-turnstile { display: flex; justify-content: center; transform: scale(.85); transform-origin: center; margin: 0 0 2px; min-height: 65px; }
.db-ts .err-msg { text-align: center; }
.db-note { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px; }
.db-note.green { background: #e7f7f1; color: #065f46; }
.db-note.red { background: #fdecec; color: #991b1b; }
.db-note svg.i { width: 15px; height: 15px; }
.db-done { text-align: center; }
.db-done-icon { width: 46px; height: 46px; border-radius: 50%; background: #eaf1ff; color: #2563eb; display: grid; place-items: center; margin: 0 auto 12px; }
.db-done .db-submit-btn { margin-top: 10px; }
.db-auth-page ~ .toasts, .toasts { z-index: 300; }
@media (max-width: 900px) {
  .db-auth-page { align-items: flex-start; padding: 14px; }
  .db-auth-card { flex-direction: column; height: auto; min-height: 0; }
  .db-auth-hero { min-height: 180px; padding: 20px 22px; }
  .db-auth-hero-nav { display: none; }
  .db-auth-hero-content { margin-top: 14px; }
  .db-auth-hero-content h1 { font-size: 24px; }
  .db-auth-hero-content p { display: none; }
  .db-auth-panel { flex: 1 1 auto; max-width: 100%; padding: 22px 20px 20px; box-shadow: none; }
  .db-topnav-right a { display: none; }
}
