:root {
  --bg: #0b1020;
  --panel: #11182d;
  --panel-2: #172036;
  --text: #e5edf7;
  --muted: #9fb0c8;
  --line: #2a3553;
  --accent: #f97316;
  --good: #22c55e;
  --danger: #ef4444;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, Arial, sans-serif; background: linear-gradient(180deg, #08101f 0%, #0f172a 100%); color: var(--text); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
#app { min-height: 100vh; }
.auth-shell, .dashboard-shell, .builder-shell { width: min(98vw, 1880px); margin: 0 auto; padding: 24px; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(960px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; background: rgba(17,24,45,.92); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.auth-hero { padding: 40px; background: radial-gradient(circle at top right, rgba(249,115,22,.3), transparent 35%), linear-gradient(135deg, #111827, #0f172a); }
.auth-form { padding: 40px; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin-bottom: 12px; }
.headline { font-size: 44px; line-height: 1.05; margin: 0 0 16px; }
.subtle { color: var(--muted); }
label { display: block; margin-bottom: 12px; }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 14px; }
input, textarea, select { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #0e1629; color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; gap: 12px; }
.btn { border: 0; background: var(--accent); color: white; padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.btn.secondary { background: transparent; border: 1px solid var(--line); }
.btn.ghost { background: rgba(255,255,255,.05); }
.btn.good { background: var(--good); }
.btn.danger { background: var(--danger); }
.btn.small { padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.stack { display: grid; gap: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.brand-title { font-size: 28px; margin: 0; }
.brand-sub { color: var(--muted); margin: 6px 0 0; }
.panel { background: rgba(17,24,45,.9); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.panel-pad { padding: 20px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; }
.project-card { padding: 20px; }
.project-card h3 { margin: 0 0 10px; font-size: 22px; }
.project-card p { color: var(--muted); min-height: 42px; }
.builder-shell { display: grid; grid-template-columns: 280px 1fr 360px; gap: 18px; min-height: 100vh; }
.sidebar, .editor, .preview-shell { min-height: calc(100vh - 48px); }
.sidebar, .editor { position: sticky; top: 24px; align-self: start; }
.sidebar .panel-pad, .editor .panel-pad, .preview-shell .panel-pad { display: grid; gap: 16px; }
.section-list, .page-list, .token-list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); background: #0d1425; border-radius: 14px; padding: 12px; }
.item.active { outline: 2px solid rgba(249,115,22,.8); }
.item h4, .item p { margin: 0; }
.item p { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; align-items: center; }
.preview-shell iframe { width: 100%; min-height: 720px; border: 0; border-radius: 18px; background: white; }
.preview-surface { background: white; border-radius: 18px; overflow: hidden; min-height: 720px; }
.preview-header { border-bottom: 1px solid #e2e8f0; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.preview-body { color: #0f172a; }
.preview-body .wrap { width: min(98%, 1680px); margin: 0 auto; padding: 0 20px; }
.preview-body .wrap.narrow { width: min(92%, 980px); max-width: 980px; }
.preview-body .site-header { background: #fff; }
.preview-body nav { display: flex; gap: 14px; flex-wrap: wrap; }
.preview-body nav a { text-decoration: none; color: inherit; }
.preview-body .section { padding: 64px 0; }
.preview-body .hero { color: white; }
.preview-body .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; opacity: .75; }
.preview-body h1, .preview-body h2, .preview-body h3 { margin-top: 0; }
.preview-body .lead { max-width: 760px; font-size: 18px; }
.preview-body .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.preview-body .card { background: white; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px; box-shadow: 0 12px 25px rgba(15,23,42,.06); }
.preview-body .btn-link { display: inline-block; padding: 12px 16px; color: white; text-decoration: none; border-radius: 14px; font-weight: 700; }
.notice { padding: 12px 14px; border-radius: 14px; background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.3); color: #c7f9d4; }
.error { padding: 12px 14px; border-radius: 14px; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fecaca; }
.muted { color: var(--muted); }
.hr { height: 1px; background: var(--line); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 1180px) {
  .builder-shell { grid-template-columns: 1fr; }
  .sidebar, .editor { position: static; }
}
@media (max-width: 860px) {
  .auth-card { grid-template-columns: 1fr; }
}


.preview-body .section.compact-section { padding: 42px 0; }
.preview-body .hero { padding: 56px 0; }
.preview-body .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.preview-body .hero-media, .preview-body .split-media { min-height: 260px; border-radius: 22px; overflow: hidden; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 16px 35px rgba(15,23,42,.18); }
.preview-body .hero-media img, .preview-body .split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-body .hero-placeholder { display: grid; place-items: center; padding: 24px; text-align: center; color: rgba(255,255,255,.88); }
.preview-body .hero-placeholder p { margin-bottom: 0; }
.preview-body .split-layout { display: grid; grid-template-columns: 1fr .95fr; gap: 24px; align-items: center; }
.preview-body .contact-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; background: white; border: 1px solid #e2e8f0; border-radius: 18px; padding: 24px; box-shadow: 0 12px 25px rgba(15,23,42,.06); }
.preview-body .contact-meta { display: grid; gap: 10px; align-content: start; }
.notice, .error { padding: 12px 14px; border-radius: 14px; }
.notice { background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.35); }
.error { background: rgba(239,68,68,.16); border: 1px solid rgba(239,68,68,.35); }
.hr { height: 1px; background: var(--line); margin: 6px 0; }
.muted { color: var(--muted); }
@media (max-width: 1200px) { .builder-shell { grid-template-columns: 250px 1fr 320px; } }
@media (max-width: 980px) {
  .builder-shell { grid-template-columns: 1fr; }
  .sidebar, .editor { position: static; min-height: auto; }
  .preview-body .hero-grid, .preview-body .split-layout, .preview-body .contact-card { grid-template-columns: 1fr; }
}


.preview-body .gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.preview-body .gallery-card { margin: 0; min-height: 180px; border-radius: 18px; overflow: hidden; background: white; border: 1px solid #e2e8f0; box-shadow: 0 12px 25px rgba(15,23,42,.06); }
.preview-body .gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-body .gallery-empty { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 18px; background: rgba(255,255,255,.8); color: #475569; }
.gallery-editor-item { display: grid; gap: 10px; }
.gallery-editor-preview { width: 100%; min-height: 120px; border-radius: 14px; overflow: hidden; background: #0b1324; border: 1px solid var(--line); display: grid; place-items: center; }
.gallery-editor-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }

.preview-header nav { display:flex; gap:10px; flex-wrap:wrap; }
.preview-nav-link { border:0; background:transparent; color:inherit; padding:6px 8px; border-radius:10px; cursor:pointer; }
.preview-nav-link.active { background: rgba(15,23,42,.08); font-weight:700; }
.preview-body .gallery-card { cursor: pointer; }
.lightbox { position: fixed; inset: 0; background: rgba(2,6,23,.84); display: grid; place-items: center; padding: 24px; z-index: 999; }
.lightbox.hidden { display: none; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.lightbox-close, .lightbox-nav { position: fixed; border: 0; background: rgba(255,255,255,.16); color: white; width: 52px; height: 52px; border-radius: 999px; font-size: 28px; cursor: pointer; }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-caption { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: white; background: rgba(15,23,42,.55); padding: 10px 14px; border-radius: 999px; }


.brand-inline { display:flex; align-items:center; gap:10px; }
.site-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 10px; }
.preview-body .media-block { margin-top: 16px; }
.preview-body .media-label { font-weight: 700; margin-bottom: 8px; }
.preview-body audio, .preview-body video { width: 100%; max-width: 100%; border-radius: 14px; background: #0f172a; }
.preview-body .media-empty { display:grid; place-items:center; text-align:center; padding:24px; color:#475569; }
.preview-body .footer-rich { padding: 24px 20px 40px; }
.preview-body .footer-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:20px; align-items:start; }
.preview-body .footer-head { font-weight: 800; margin: 0 0 8px; }
.preview-body .footer-rich a { color: inherit; }


/* UI stability + colors */
.builder-shell {
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
}
.preview-shell { min-width: 0; }
.notice, .error { word-break: break-word; overflow-wrap: anywhere; }
.sidebar .panel-pad, .editor .panel-pad {
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding-right: 10px;
}
.preview-body {
  max-height: calc(100vh - 210px);
  overflow: auto;
  scroll-behavior: auto;
}
.color-row {
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 10px;
  align-items: center;
}
.color-row input[type="color"] {
  width: 56px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: #0d1425;
}
.site-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}
.footer-logo {
  width: 72px;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
}
.preview-header {
  position: sticky;
  top: 0;
  z-index: 5;
}


.footer-rich .footer-grid > div:first-child .footer-head { display:none; }
.footer-logo { width: 64px; max-height: 64px; object-fit: contain; display:block; margin-bottom: 10px; }
.brand-inline span { display: inline-block; }


.auth-branding { display:grid; gap:16px; margin-bottom:18px; }
.auth-branding-logo { max-width: 360px; width: 100%; height: auto; display:block; }
.auth-branding-hero { width: 100%; border-radius: 20px; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.dashboard-brand { display:flex; align-items:center; gap:14px; }
.dashboard-logo { width:54px; height:54px; object-fit:contain; border-radius:14px; }


.auth-card-wide { width: min(1320px, 100%); grid-template-columns: 1.15fr .85fr; }
.pricing-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:14px; }
.plan-card { border:1px solid var(--line); background:#0d1425; border-radius:16px; padding:16px; display:grid; gap:10px; }
.plan-card.active { outline:2px solid rgba(249,115,22,.7); }
.plan-features { display:grid; gap:8px; }
.plan-feature { color: var(--muted); font-size:14px; }
.dashboard-hero-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; margin-bottom:20px; align-items:start; }
.dashboard-welcome { overflow:hidden; }
.usage-badges { display:flex; flex-wrap:wrap; gap:10px; }
.usage-pill { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:999px; border:1px solid var(--line); background:#0d1425; color:var(--text); }
@media (max-width: 980px) { .dashboard-hero-grid { grid-template-columns: 1fr; } .auth-card-wide { grid-template-columns: 1fr; } }


/* Contabo-ready auth/dashboard cleanup */
.auth-card-wide.auth-card-clean {
  width: min(98vw, 1680px);
  grid-template-columns: 1.15fr .85fr;
}
.auth-hero-bg {
  position: relative;
  background:
    linear-gradient(135deg, rgba(8,16,31,.92), rgba(15,23,42,.88)),
    url('/branding/web-debresh-auth-bg.png') center/cover no-repeat;
  min-height: 760px;
}
.auth-branding-clean { margin-bottom: 24px; }
.auth-branding-logo-compact { max-width: 280px; width: 100%; height: auto; display: block; }
.auth-subtle-strong { max-width: 760px; color: #d1ddf0; }
.auth-plan-wrap .pricing-grid { margin-top: 22px; }

.dashboard-hero-grid { grid-template-columns: .95fr 1.05fr; }
.dashboard-welcome .pricing-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.dashboard-welcome .plan-card { padding: 12px; gap: 6px; }
.dashboard-welcome .plan-card h3 { margin: 0; font-size: 26px; }
.dashboard-welcome .plan-feature { font-size: 13px; }
.dashboard-welcome .btn.small { padding: 7px 8px; font-size: 13px; }
.dashboard-welcome .muted { font-size: 14px; }
.project-card .muted { margin: 6px 0 0; }

@media (max-width: 1100px) {
  .dashboard-welcome .pricing-grid { grid-template-columns: 1fr; }
}


/* Footer + support blocks for public screens */
.support-section {
  margin-top: 22px;
  margin-bottom: 22px;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.support-card {
  border: 1px solid var(--line);
  background: #0d1425;
  border-radius: 18px;
  padding: 18px;
}
.support-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.support-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.public-footer {
  padding: 22px;
  margin-top: 0;
  background: rgba(17,24,45,.92);
}
.public-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.public-footer-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.public-footer-head {
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text);
}
.public-footer p, .public-footer a {
  color: var(--muted);
  text-decoration: none;
}
.public-footer a:hover {
  color: var(--text);
}

@media (max-width: 1100px) {
  .support-grid,
  .public-footer-grid {
    grid-template-columns: 1fr;
  }
}


.two-col-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.compact-form { gap:10px; }
.register-grid-form { gap:10px; }
.profile-grid { margin-top: 18px; margin-bottom: 20px; }
.live-url-box {
  margin: 12px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  background: linear-gradient(180deg, rgba(7,18,35,0.75), rgba(5,12,24,0.9));
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(0, 140, 255, 0.06);
}
.live-url-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:.12em; color:#7fb3ff; margin-bottom:6px; }
.live-url-link { display:inline-block; color:#9fe7ff; text-decoration:none; font-size:14px; word-break:break-all; }
.live-url-link:hover { color:#ffffff; text-shadow:0 0 10px rgba(0, 212, 255, 0.35); }
.admin-user-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap:16px; }
.admin-user-card { padding:18px; border-radius:18px; }
.admin-user-card h3 { margin:0 0 6px; }
.compact-admin-meta p { margin:0; color:var(--muted); min-height:auto; }
@media (max-width: 860px) { .two-col-grid { grid-template-columns: 1fr; } }


/* === Web Debresh cosmic background edition === */
html, body {
  background:
    linear-gradient(180deg, rgba(3,7,20,.94), rgba(8,14,28,.96)),
    url('/branding/bg-global-space.jpg') center center / cover fixed no-repeat;
}

#app {
  position: relative;
  isolation: isolate;
}

.auth-shell,
.dashboard-shell,
.builder-shell {
  position: relative;
  overflow: hidden;
}

.auth-shell::before,
.dashboard-shell::before,
.builder-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .38;
  background: url('/branding/bg-global-space.jpg') center center / cover no-repeat;
  filter: saturate(1.1) brightness(.8);
}

.auth-card,
.panel,
.sidebar,
.editor,
.preview-shell {
  position: relative;
  overflow: hidden;
}

.auth-card::after,
.panel::after,
.sidebar::after,
.editor::after,
.preview-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,12,25,.68), rgba(7,10,20,.82));
  z-index: 0;
}

.auth-card > *,
.panel > *,
.sidebar > *,
.editor > *,
.preview-shell > * {
  position: relative;
  z-index: 1;
}

.auth-hero-bg {
  background:
    linear-gradient(135deg, rgba(8,16,31,.82), rgba(15,23,42,.74)),
    url('/branding/bg-auth-hero-cosmic.jpg') center center / cover no-repeat;
}

.auth-form {
  background:
    linear-gradient(180deg, rgba(7,12,25,.88), rgba(5,9,18,.9)),
    url('/branding/bg-auth-form-neon.jpg') center center / cover no-repeat;
  background-blend-mode: overlay, normal;
}

.dashboard-shell::before {
  background: url('/branding/bg-dashboard-main.jpg') center top / cover no-repeat;
  opacity: .28;
}

.dashboard-welcome {
  background:
    linear-gradient(180deg, rgba(7,12,24,.86), rgba(7,10,18,.88)),
    url('/branding/bg-dashboard-account.jpg') center center / cover no-repeat;
}

.admin-v2 {
  background:
    linear-gradient(180deg, rgba(7,12,24,.82), rgba(7,10,18,.9)),
    url('/branding/bg-admin-panel.jpg') center center / cover no-repeat;
}

.support-card,
.public-footer,
.project-card,
.admin-user-card,
.item,
.plan-card {
  background: linear-gradient(180deg, rgba(10,16,32,.92), rgba(7,11,23,.92));
}

.builder-shell::before {
  background: url('/branding/bg-builder-editor.jpg') center center / cover no-repeat;
  opacity: .24;
}

.sidebar,
.editor,
.preview-shell {
  background:
    linear-gradient(180deg, rgba(8,12,24,.88), rgba(6,10,20,.9)),
    url('/branding/bg-builder-editor.jpg') center center / cover no-repeat;
  background-blend-mode: overlay, normal;
}

.preview-surface {
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.notice,
.error {
  backdrop-filter: blur(10px);
  background: rgba(8,12,24,.82);
  border: 1px solid rgba(122, 212, 255, 0.16);
}

.auth-card-clean,
.dashboard-welcome,
.admin-v2,
.project-card,
.support-card,
.public-footer,
.sidebar,
.editor,
.preview-shell,
.item,
.plan-card {
  box-shadow:
    0 18px 40px rgba(0,0,0,.36),
    inset 0 0 0 1px rgba(146, 220, 255, 0.04);
}

.auth-form .panel,
.auth-plan-wrap .plan-card,
.dashboard-plan-wrap .plan-card,
.project-card,
.support-card,
.admin-user-card,
.item {
  border-color: rgba(110, 179, 255, 0.15);
}


.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 20, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 820px;
  background: linear-gradient(180deg, rgba(7,18,35,0.98), rgba(5,12,24,0.98));
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

@media (max-width: 760px) {
  .modal-card {
    padding: 18px;
  }
}


.account-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.account-meta-card {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(80, 170, 255, 0.16);
  background: linear-gradient(180deg, rgba(7,18,35,0.72), rgba(5,12,24,0.88));
  box-shadow: inset 0 0 18px rgba(80, 170, 255, 0.05);
}

.account-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #7ca9f8;
  margin-bottom: 6px;
}

.account-meta-card strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 760px) {
  .account-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* === Web Debresh refreshed cosmic art backgrounds === */
.dashboard-shell::before {
  background: url('/branding/bg-debresh-dashboard-cosmic-v2.jpg') center top / cover no-repeat;
}
.builder-shell::before {
  background: url('/branding/bg-debresh-builder-cosmic-v2.jpg') center center / cover no-repeat;
}
.auth-hero-bg {
  background:
    linear-gradient(135deg, rgba(4,8,22,.58), rgba(7,12,26,.72)),
    url('/branding/bg-debresh-auth-cosmic-v2.jpg') center center / cover no-repeat;
  background-blend-mode: overlay, normal;
}
.auth-form,
.auth-card,
.panel,
.project-card,
.support-card,
.modal-card {
  backdrop-filter: blur(8px);
}


/* Debresh cosmic v3 overrides */
.dashboard-shell::before {
  background: url('/branding/bg-debresh-dashboard-cosmic-v3.jpg') center top / cover no-repeat;
}
.builder-shell::before,
.builder-preview {
  background: url('/branding/bg-debresh-builder-cosmic-v3.jpg') center center / cover no-repeat;
}
.auth-branding {
  background:
    linear-gradient(180deg, rgba(4,8,18,0.58), rgba(4,8,18,0.78)),
    url('/branding/bg-debresh-auth-cosmic-v3.jpg') center center / cover no-repeat;
}


/* Debresh cosmic compact v4 */
.dashboard-shell::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(6, 11, 28, 0.35), rgba(3, 7, 18, 0.76) 70%),
    url('/branding/bg-debresh-dashboard-cosmic-v4.jpg') center 80px / 74% auto no-repeat;
  opacity: .30;
}
.builder-shell::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(6, 11, 28, 0.30), rgba(3, 7, 18, 0.72) 70%),
    url('/branding/bg-debresh-builder-cosmic-v4.jpg') center 110px / 70% auto no-repeat;
  opacity: .28;
}
.auth-hero-bg {
  background:
    linear-gradient(135deg, rgba(4,8,22,.68), rgba(7,12,26,.78)),
    url('/branding/bg-debresh-auth-cosmic-v4.jpg') center center / 82% auto no-repeat;
  background-blend-mode: overlay, normal;
}
.auth-shell::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(12,18,42,0.12), rgba(3,8,18,0.72) 70%),
    url('/branding/bg-debresh-dashboard-cosmic-v4.jpg') center top / 88% auto no-repeat;
  opacity: .22;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 1100px) {
  .dashboard-shell::before,
  .builder-shell::before { background-size: 115% auto; background-position: center top; }
  .auth-hero-bg { background-size: cover; }
}


/* --- Debresh cosmic refresh v5 --- */
.dashboard-shell::before {
  background:
    linear-gradient(180deg, rgba(3,8,20,0.38), rgba(3,8,20,0.78)),
    url('/branding/bg-debresh-dashboard-cosmic-v5.jpg') center 90px / 64% auto no-repeat;
  opacity: 0.34;
}
.builder-shell::before {
  background:
    linear-gradient(180deg, rgba(3,8,20,0.28), rgba(3,8,20,0.76)),
    url('/branding/bg-debresh-builder-cosmic-v5.jpg') center 110px / 60% auto no-repeat;
  opacity: 0.26;
}
.auth-hero-bg {
  background:
    linear-gradient(135deg, rgba(4,9,25,0.82), rgba(6,14,35,0.72)),
    url('/branding/bg-debresh-auth-cosmic-v5.jpg') center center / 74% auto no-repeat;
}
.auth-card-clean,
.dashboard-welcome,
.preview-shell,
.editor,
.sidebar,
.project-card,
.support-card,
.account-meta-card,
.modal-card {
  backdrop-filter: blur(10px);
}
@media (max-width: 900px) {
  .dashboard-shell::before,
  .builder-shell::before {
    background-size: 108% auto;
    background-position: center top;
  }
  .auth-hero-bg {
    background-size: cover;
  }
}


/* Admin dashboard upgrade */
.admin-only-shell .dashboard-hero-grid,
.admin-only-shell .support-section,
.admin-only-shell .public-footer,
.admin-only-shell .dashboard-welcome {
  display: none;
}

.admin-dashboard-shell {
  margin-bottom: 24px;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-stat-card,
.admin-inner-card {
  background: linear-gradient(180deg, rgba(7,18,35,0.78), rgba(5,12,24,0.94));
  border: 1px solid rgba(80, 170, 255, 0.16);
  border-radius: 18px;
}

.admin-stat-card {
  padding: 18px;
  display: grid;
  gap: 8px;
}

.admin-stat-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.admin-stat-card small,
.table-sub {
  color: var(--muted);
}

.admin-analytics-grid,
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-bar-chart {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-bar-row {
  display: grid;
  gap: 8px;
}

.admin-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.admin-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 8px;
}
.admin-bar-fill.trial { background: linear-gradient(90deg, #22c55e, #4ade80); }
.admin-bar-fill.free { background: linear-gradient(90deg, #64748b, #94a3b8); }
.admin-bar-fill.pro { background: linear-gradient(90deg, #f97316, #fb923c); }
.admin-bar-fill.business { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

.admin-table-wrap {
  margin-top: 14px;
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8fb5ff;
}

.admin-actions-cell {
  min-width: 180px;
}

.admin-actions-cell .btn {
  margin-right: 8px;
  margin-bottom: 8px;
}

.admin-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.admin-mail-box {
  margin-top: 16px;
}

@media (max-width: 1100px) {
  .admin-stat-grid,
  .admin-analytics-grid,
  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-mini-grid {
    grid-template-columns: 1fr;
  }
}


.trial-banner { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.trial-banner-side { display: grid; gap: 12px; justify-items: end; text-align: right; }
.trial-banner-side strong { font-size: 34px; }
.trial-good { border-color: rgba(34,197,94,.35); }
.trial-warn { border-color: rgba(245,158,11,.45); }
.trial-danger { border-color: rgba(239,68,68,.45); }

.admin-filter-toolbar { gap: 16px; align-items: end; }
.admin-filter-controls { display: grid; grid-template-columns: minmax(240px, 320px) minmax(180px, 220px); gap: 12px; }
.admin-search-box span, .admin-sort-box span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.admin-filter-cluster { display: grid; gap: 10px; margin: 14px 0 18px; }
.admin-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter-chip { border: 1px solid var(--line); background: #0d1425; color: var(--text); padding: 8px 12px; border-radius: 999px; font-size: 13px; }
.admin-filter-chip.active { background: rgba(249,115,22,.18); border-color: rgba(249,115,22,.5); }
.admin-flag-list { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.flag-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.flag-badge.good { border-color: rgba(34,197,94,.35); color: #9ae6b4; }
.flag-badge.warn { border-color: rgba(245,158,11,.35); color: #fcd34d; }
.flag-badge.danger { border-color: rgba(239,68,68,.35); color: #fca5a5; }
.flag-badge.neutral { border-color: rgba(148,163,184,.35); color: #cbd5e1; }

@media (max-width: 980px) {
  .trial-banner, .admin-filter-toolbar { grid-template-columns: 1fr; display: grid; }
  .trial-banner-side { justify-items: start; text-align: left; }
  .admin-filter-controls { grid-template-columns: 1fr; width: 100%; }
}



/* === v12 visual refinement: safer CSS-only polish === */
:root {
  --panel-soft: rgba(9, 15, 30, 0.82);
  --line-soft: rgba(117, 155, 214, 0.16);
  --accent-soft: rgba(249,115,22,.18);
}

html {
  scroll-behavior: smooth;
}

body {
  color: #edf3ff;
}

button,
input,
select,
textarea {
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(249,115,22,.55);
  box-shadow: 0 0 0 4px rgba(249,115,22,.12), inset 0 0 0 1px rgba(249,115,22,.16);
  background: rgba(11, 20, 38, 0.98);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(249,115,22,.22);
}

.btn.secondary:hover,
.btn.ghost:hover {
  border-color: rgba(249,115,22,.36);
  background: rgba(249,115,22,.08);
  box-shadow: none;
}

.panel,
.auth-card-clean,
.project-card,
.support-card,
.public-footer,
.sidebar,
.editor,
.preview-shell,
.item,
.plan-card,
.modal-card,
.admin-stat-card,
.admin-inner-card {
  border-color: var(--line-soft);
  box-shadow:
    0 18px 48px rgba(0,0,0,.34),
    inset 0 0 0 1px rgba(255,255,255,.02);
}

.auth-shell {
  align-items: start;
  padding-top: 34px;
  padding-bottom: 34px;
}

.auth-card-wide.auth-card-clean {
  width: min(98vw, 1520px);
  grid-template-columns: 1.08fr .92fr;
  border-radius: 30px;
}

.auth-hero {
  padding: 42px 38px 34px;
}

.auth-form {
  padding: 28px 28px 24px;
}

.auth-hero-bg {
  min-height: 0;
  position: relative;
}

.auth-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(249,115,22,.18), transparent 26%),
    radial-gradient(circle at 82% 22%, rgba(96,165,250,.14), transparent 24%),
    linear-gradient(180deg, rgba(6,12,24,.08), rgba(6,12,24,.28));
  pointer-events: none;
}

.auth-branding-clean {
  margin-bottom: 18px;
}

.auth-branding-logo-compact {
  max-width: 245px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.28));
}

.kicker {
  margin-bottom: 10px;
  color: #ffa45d;
}

.headline {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 760px;
  margin-bottom: 14px;
}

.auth-subtle-strong {
  font-size: 17px;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 8px;
}

.auth-plan-wrap {
  margin-top: 20px;
}

.auth-plan-wrap .pricing-grid {
  gap: 16px;
}

.auth-plan-wrap .plan-card {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px 16px 16px;
}

.auth-plan-wrap .plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(249,115,22,.07), transparent 34%);
  pointer-events: none;
}

.auth-plan-wrap .plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.3);
}

.auth-form .panel {
  background: linear-gradient(180deg, rgba(7,14,28,.86), rgba(7,11,22,.96));
  border-radius: 20px;
}

#login-form {
  position: sticky;
  top: 18px;
  z-index: 2;
}

#login-form,
#forgot-form {
  gap: 14px;
}

#login-form h2,
#forgot-form h2,
#register-form h2 {
  font-size: 20px;
}

#register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#register-form > h2,
#register-form > button,
#register-form > p,
#register-form > .notice,
#register-form > .error {
  grid-column: 1 / -1;
}

#register-form label {
  margin-bottom: 0;
}

#register-form label:last-of-type {
  grid-column: 1 / -1;
}

.support-section {
  margin-top: 20px;
  margin-bottom: 18px;
}

.support-grid {
  gap: 18px;
}

.support-card {
  border-radius: 20px;
  padding: 22px;
}

.support-card h3 {
  font-size: 28px;
  line-height: 1.15;
  max-width: 520px;
}

.support-list {
  gap: 10px;
  line-height: 1.6;
}

.public-footer {
  padding: 22px 24px;
  border-radius: 24px;
}

.public-footer-grid {
  grid-template-columns: 1.35fr .95fr .95fr .85fr;
  gap: 18px;
}

.public-footer p,
.public-footer a {
  line-height: 1.55;
}

.table-sub,
.muted,
.subtle {
  color: #aebddb;
}

.admin-stat-card strong {
  letter-spacing: -.03em;
}

.admin-stat-card:hover,
.admin-inner-card:hover,
.project-card:hover,
.item:hover {
  border-color: rgba(249,115,22,.22);
}

@media (max-width: 1180px) {
  .auth-card-wide.auth-card-clean {
    grid-template-columns: 1fr;
  }

  #login-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .auth-shell,
  .dashboard-shell,
  .builder-shell {
    width: min(100vw, 1880px);
    padding: 12px;
  }

  .auth-hero,
  .auth-form {
    padding: 22px 18px;
  }

  .headline {
    font-size: 34px;
  }

  #register-form {
    grid-template-columns: 1fr;
  }

  .support-card h3 {
    font-size: 24px;
  }

  .public-footer {
    padding: 18px;
  }
}



/* === v13 premium polish: wider layout + subtle animation, CSS only === */
:root {
  --hero-glow-a: rgba(249,115,22,.16);
  --hero-glow-b: rgba(56,189,248,.12);
  --hero-glow-c: rgba(168,85,247,.10);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, var(--hero-glow-a), transparent 22%),
    radial-gradient(circle at 86% 16%, var(--hero-glow-b), transparent 20%),
    radial-gradient(circle at 52% 88%, var(--hero-glow-c), transparent 24%);
  opacity: .85;
  animation: ambientShift 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes ambientShift {
  0% { transform: scale(1) translate3d(0,0,0); opacity: .72; }
  100% { transform: scale(1.03) translate3d(0,-8px,0); opacity: .92; }
}

@keyframes floatSoft {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@keyframes shimmerLine {
  0% { transform: translateX(-120%); opacity: 0; }
  30% { opacity: .5; }
  100% { transform: translateX(220%); opacity: 0; }
}

.auth-shell,
.dashboard-shell,
.builder-shell {
  position: relative;
  z-index: 1;
}

.auth-card-wide.auth-card-clean {
  width: min(99vw, 1675px);
  grid-template-columns: minmax(0, 1.18fr) minmax(460px, .82fr);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.auth-hero {
  padding: 34px 34px 28px;
}

.auth-form {
  padding: 22px 22px 18px;
  position: relative;
}

.auth-hero-bg {
  min-height: 760px;
  border-right: 1px solid rgba(117, 155, 214, 0.12);
  overflow: hidden;
}

.auth-hero-bg::after {
  content: "";
  position: absolute;
  inset: auto -14% -12% 10%;
  height: 340px;
  background: radial-gradient(circle, rgba(249,115,22,.18), transparent 58%);
  filter: blur(28px);
  pointer-events: none;
  animation: ambientShift 14s ease-in-out infinite alternate;
}

.auth-branding-clean {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.auth-branding-logo-compact {
  max-width: 255px;
  animation: floatSoft 9s ease-in-out infinite;
}

.kicker {
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.headline {
  font-size: clamp(42px, 4.6vw, 72px);
  line-height: .98;
  max-width: 860px;
  text-wrap: balance;
  margin-bottom: 18px;
  text-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.auth-subtle-strong {
  max-width: 770px;
  font-size: 18px;
  color: #c9d8f4;
  margin-bottom: 18px;
}

.auth-plan-wrap {
  margin-top: 22px;
}

.auth-plan-wrap .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.auth-plan-wrap .plan-card {
  min-height: 275px;
  border-radius: 22px;
  padding: 18px 16px 16px;
  background:
    linear-gradient(180deg, rgba(11,18,34,.78), rgba(7,13,26,.94)),
    radial-gradient(circle at top right, rgba(249,115,22,.08), transparent 30%);
  position: relative;
  overflow: hidden;
}

.auth-plan-wrap .plan-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.75), transparent);
  animation: shimmerLine 5.8s linear infinite;
  opacity: .9;
}

.auth-plan-wrap .plan-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 20px 44px rgba(0,0,0,.34), 0 0 0 1px rgba(249,115,22,.10) inset;
}

.auth-plan-wrap .plan-card strong,
.auth-plan-wrap .plan-card .price,
.auth-plan-wrap .plan-card .plan-price {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -.03em;
}

.auth-form .panel {
  border-radius: 22px;
  overflow: hidden;
}

.auth-form .panel + .panel {
  margin-top: 14px;
}

#login-form {
  top: 14px;
}

#login-form,
#forgot-form,
#register-form {
  position: relative;
}

#login-form::before,
#register-form::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249,115,22,.35), transparent);
}

#login-form h2,
#forgot-form h2,
#register-form h2 {
  margin-bottom: 10px;
  font-size: 21px;
}

#register-form {
  gap: 12px 12px;
}

#register-form label span,
#login-form label span,
#forgot-form label span {
  font-size: 13px;
  color: #b8c6e1;
}

#register-form input,
#login-form input,
#forgot-form input,
#register-form select,
#login-form select,
#forgot-form select,
#register-form textarea,
#login-form textarea,
#forgot-form textarea {
  height: 44px;
}

#register-form .btn,
#login-form .btn,
#forgot-form .btn {
  min-height: 46px;
}

.support-section {
  margin-top: 18px;
}

.support-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.support-card {
  background: linear-gradient(180deg, rgba(9, 15, 30, 0.84), rgba(7, 11, 24, 0.96));
  position: relative;
  overflow: hidden;
}

.support-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(249,115,22,.0), rgba(249,115,22,.7), rgba(56,189,248,.4), rgba(249,115,22,.0));
  opacity: .55;
}

.public-footer {
  background: linear-gradient(180deg, rgba(9,15,30,.82), rgba(7,11,22,.95));
}

.public-footer-grid > * {
  min-width: 0;
}

.public-footer-brand img,
.footer-logo,
.public-footer img {
  max-width: 170px;
}

@media (max-width: 1380px) {
  .auth-card-wide.auth-card-clean {
    width: min(99vw, 1540px);
    grid-template-columns: 1.08fr .92fr;
  }

  .headline {
    font-size: clamp(40px, 4vw, 62px);
  }
}

@media (max-width: 1220px) {
  .auth-card-wide.auth-card-clean {
    grid-template-columns: 1fr;
    width: min(99vw, 1200px);
  }

  .auth-hero-bg {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(117, 155, 214, 0.12);
  }

  .support-grid,
  .public-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    padding: 10px;
  }

  .auth-card-wide.auth-card-clean {
    width: min(100vw, 1000px);
    border-radius: 22px;
  }

  .auth-hero,
  .auth-form {
    padding: 18px 16px;
  }

  .headline {
    font-size: 36px;
  }

  .auth-plan-wrap .pricing-grid,
  .support-grid,
  .public-footer-grid {
    grid-template-columns: 1fr;
  }

  .auth-plan-wrap .plan-card {
    min-height: auto;
  }
}


/* === v14 color boost + background enhancement === */

body {
  background-size: cover;
  background-position: center;
}

/* stronger glowing background */
body::before {
  background:
    radial-gradient(circle at 10% 20%, rgba(249,115,22,.25), transparent 25%),
    radial-gradient(circle at 85% 15%, rgba(56,189,248,.22), transparent 25%),
    radial-gradient(circle at 50% 90%, rgba(168,85,247,.18), transparent 30%);
  opacity: 1;
}

/* hero stronger overlay */
.auth-hero-bg::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(249,115,22,.25), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(56,189,248,.20), transparent 30%),
    linear-gradient(180deg, rgba(6,12,24,.2), rgba(6,12,24,.4));
}

/* login/register panels more vivid */
.auth-form .panel {
  background:
    linear-gradient(180deg, rgba(10,18,35,.92), rgba(7,12,24,.98)),
    radial-gradient(circle at top right, rgba(249,115,22,.12), transparent 40%);
  border: 1px solid rgba(249,115,22,.18);
}

/* input glow stronger */
input:focus,
textarea:focus {
  box-shadow:
    0 0 0 4px rgba(249,115,22,.18),
    0 0 12px rgba(249,115,22,.25);
}

/* button more alive */
.btn {
  background: linear-gradient(90deg, #ff7a18, #ff9a3c);
  box-shadow: 0 10px 25px rgba(249,115,22,.35);
}

.btn:hover {
  background: linear-gradient(90deg, #ff8a2a, #ffb15a);
  box-shadow: 0 14px 35px rgba(249,115,22,.45);
}

/* plan cards more contrast */
.plan-card {
  background:
    linear-gradient(180deg, rgba(12,20,40,.9), rgba(8,14,28,.95)),
    radial-gradient(circle at top right, rgba(249,115,22,.15), transparent 40%);
}

/* subtle animated color shimmer */
@keyframes colorPulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

.auth-card-wide {
  animation: colorPulse 6s ease-in-out infinite;
}



/* === v15 banner + image fit enhancement === */

/* HERO IMAGE FIT */
.auth-hero-bg img,
.auth-hero-bg video,
.auth-hero-bg canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* HERO BACKGROUND STRONGER & CLEAN */
.auth-hero-bg {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat;
  border-radius: 28px 0 0 28px;
  overflow: hidden;
}

/* AUTO DARK GRADIENT FOR TEXT READABILITY */
.auth-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5,10,20,.85) 0%,
    rgba(5,10,20,.55) 40%,
    rgba(5,10,20,.2) 100%
  );
  z-index: 1;
}

/* HERO CONTENT ABOVE IMAGE */
.auth-hero > * {
  position: relative;
  z-index: 2;
}

/* HEADER BANNER (web.debresh.ch area) */
.dashboard-brand {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

/* AUTO GENERATED BANNER STYLE */
.dashboard-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(249,115,22,.25), transparent 60%),
    radial-gradient(circle at right, rgba(56,189,248,.18), transparent 40%);
  z-index: 1;
}

/* BACKGROUND IMAGE STRETCH */
.dashboard-brand img {
  position: relative;
  z-index: 2;
  max-height: 48px;
}

/* OPTIONAL BACKGROUND BANNER LAYER */
.dashboard-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('/branding/bg-dashboard-main.jpg') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
}

/* PLAN CARD IMAGE BALANCE */
.plan-card {
  overflow: hidden;
  position: relative;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(249,115,22,.12), transparent 60%);
  z-index: 0;
}

/* ensure text above */
.plan-card * {
  position: relative;
  z-index: 1;
}



/* === v16 banner upgrade === */

/* make banner look like real branded strip */
.dashboard-brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  background:
    linear-gradient(90deg, rgba(10,18,35,.9), rgba(10,18,35,.6)),
    url('/branding/bg-debresh-builder-cosmic-v5.jpg') center/cover no-repeat;
  border: 1px solid rgba(249,115,22,.25);
}

/* glow line under banner */
.dashboard-brand::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff7a18, #38bdf8, transparent);
  opacity: .6;
}

/* logo spacing */
.dashboard-logo {
  max-height: 40px;
  margin-right: 12px;
}

/* title stronger */
.brand-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

/* subtle animation */
.dashboard-brand {
  transition: all .3s ease;
}

.dashboard-brand:hover {
  border-color: rgba(249,115,22,.5);
  box-shadow: 0 8px 25px rgba(249,115,22,.25);
}



/* === v17 real custom banner image === */
.dashboard-brand {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,10,18,.32), rgba(6,10,18,.12)),
    url('/branding/banner-main.png') center/cover no-repeat !important;
  border: 1px solid rgba(80, 160, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}

.dashboard-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,10,20,.28) 0%, rgba(5,10,20,.06) 38%, rgba(5,10,20,.16) 100%);
  pointer-events: none;
  z-index: 0;
}

.dashboard-brand::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.85), rgba(249,115,22,.75), transparent);
  opacity: .75;
  z-index: 1;
}

.dashboard-brand > * {
  position: relative;
  z-index: 2;
}

.dashboard-logo {
  max-height: 40px;
  margin-right: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.35));
}

.brand-title,
.dashboard-brand .brand-title {
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.brand-sub,
.dashboard-brand .brand-sub {
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

@media (max-width: 760px) {
  .dashboard-brand {
    height: 66px;
    padding: 0 12px;
    background-position: center;
  }

  .dashboard-logo {
    max-height: 34px;
  }
}


/* === v18 fix: real banner on auth page top strip === */
.auth-branding.auth-branding-clean {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(88, 152, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(4,10,18,.36), rgba(4,10,18,.12)),
    url('/branding/banner-main.png') center/cover no-repeat !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}

.auth-branding.auth-branding-clean::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,10,20,.22) 0%, rgba(5,10,20,.04) 42%, rgba(5,10,20,.14) 100%);
  z-index: 0;
  pointer-events: none;
}

.auth-branding.auth-branding-clean::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.9), rgba(249,115,22,.82), transparent);
  opacity: .75;
  z-index: 1;
}

.auth-branding.auth-branding-clean > * {
  position: relative;
  z-index: 2;
}

.auth-branding.auth-branding-clean .auth-branding-logo-compact {
  max-width: 215px;
  width: auto;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* remove old extra spacing so strip looks intentional */
.auth-branding-clean {
  margin-bottom: 16px !important;
}

/* keep the large left hero image independent */
.auth-hero-bg {
  background-size: cover !important;
  background-position: center !important;
}

@media (max-width: 820px) {
  .auth-branding.auth-branding-clean {
    min-height: 64px;
    padding: 10px 14px;
    background-position: center;
  }

  .auth-branding.auth-branding-clean .auth-branding-logo-compact {
    max-width: 180px;
    height: 36px;
  }
}


/* === v22 dashboard glass refinement === */

/* top planstatus more premium / glass */
.dashboard-shell > .panel:first-of-type,
.plan-status-card,
.trial-banner,
.plan-banner,
.plan-status {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(115, 175, 255, 0.20) !important;
  background:
    linear-gradient(180deg, rgba(12,18,34,.56), rgba(8,12,24,.72)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 16px 40px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 24px rgba(56,189,248,.05);
}

.dashboard-shell > .panel:first-of-type::before,
.plan-status-card::before,
.trial-banner::before,
.plan-banner::before,
.plan-status::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(56,189,248,.10), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(249,115,22,.12), transparent 22%),
    linear-gradient(100deg, rgba(255,255,255,.03), transparent 32%);
  pointer-events: none;
}

.dashboard-shell > .panel:first-of-type::after,
.plan-status-card::after,
.trial-banner::after,
.plan-banner::after,
.plan-status::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.72), rgba(249,115,22,.72), transparent);
  opacity: .72;
}

/* account + new project row more balanced */
.dashboard-grid,
.dashboard-two-col,
.overview-grid {
  grid-template-columns: minmax(340px, 0.88fr) minmax(440px, 1.12fr) !important;
  gap: 18px !important;
}

/* generic card glass */
.account-card,
.profile-card,
.project-create-card,
.projects-card,
.dashboard-shell .panel,
.dashboard-shell .project-card,
.dashboard-shell .item {
  background:
    linear-gradient(180deg, rgba(9,14,28,.58), rgba(7,11,22,.78)) !important;
  border: 1px solid rgba(104, 149, 214, 0.16) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* dein konto optically smaller / calmer */
.dashboard-shell .panel h2,
.account-card h2,
.profile-card h2 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.dashboard-shell .panel .section-title,
.dashboard-shell .eyebrow,
.dashboard-shell .kicker {
  color: #ff9e57;
  letter-spacing: .18em;
}

.dashboard-shell .stats-grid,
.account-meta-grid,
.account-grid {
  gap: 10px !important;
}

.dashboard-shell .stats-grid > *,
.account-meta-grid > *,
.account-grid > * {
  background: linear-gradient(180deg, rgba(10,18,34,.52), rgba(8,14,26,.74));
  border: 1px solid rgba(92, 139, 212, 0.14);
  border-radius: 16px;
  min-height: 74px;
}

/* buttons a bit more alive but restrained */
.dashboard-shell .btn.primary,
.dashboard-shell .btn:not(.secondary):not(.ghost) {
  box-shadow: 0 10px 26px rgba(249,115,22,.24);
}

.dashboard-shell .btn.secondary,
.dashboard-shell .btn.ghost {
  background: rgba(10,18,34,.56);
  border-color: rgba(104,149,214,.18);
}

/* neues projekt can breathe more */
.project-create-card,
.dashboard-shell form,
.dashboard-shell .create-project-card {
  min-height: 100%;
}

.dashboard-shell textarea {
  min-height: 110px;
}

/* projects section subtle glow */
.projects-card,
.dashboard-shell .projects-section,
.dashboard-shell .projects-list-panel {
  position: relative;
  overflow: hidden;
}

.projects-card::before,
.dashboard-shell .projects-section::before,
.dashboard-shell .projects-list-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(56,189,248,.08), transparent 24%),
    radial-gradient(circle at 12% 86%, rgba(249,115,22,.08), transparent 22%);
  pointer-events: none;
}

.projects-card::after,
.dashboard-shell .projects-section::after,
.dashboard-shell .projects-list-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.55), rgba(249,115,22,.55), transparent);
  opacity: .55;
}

.dashboard-shell .project-card:hover,
.dashboard-shell .item:hover {
  border-color: rgba(249,115,22,.20) !important;
  box-shadow:
    0 18px 44px rgba(0,0,0,.28),
    0 0 20px rgba(56,189,248,.05);
}

/* mobile fallback */
@media (max-width: 980px) {
  .dashboard-grid,
  .dashboard-two-col,
  .overview-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === v23 direct account card refinement === */

/* main two-column area: account smaller, project wider */
.dashboard-grid,
.dashboard-two-col,
.overview-grid,
.dashboard-shell .grid-2,
.dashboard-shell .dashboard-main-grid {
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr) !important;
  gap: 18px !important;
}

/* DEIN KONTO card itself */
.dashboard-shell .panel.account-card,
.dashboard-shell .panel.profile-card,
.dashboard-shell .panel:has(.account-grid),
.dashboard-shell .panel:has(.stats-grid),
.dashboard-shell .panel:has(.account-meta-grid) {
  padding: 22px 18px 16px !important;
}

/* make title area calmer / smaller */
.dashboard-shell .panel.account-card h2,
.dashboard-shell .panel.profile-card h2,
.dashboard-shell .panel:has(.account-grid) h2,
.dashboard-shell .panel:has(.stats-grid) h2,
.dashboard-shell .panel:has(.account-meta-grid) h2 {
  font-size: clamp(28px, 2.3vw, 34px) !important;
  line-height: 1.04 !important;
  margin-bottom: 8px !important;
  letter-spacing: -.03em;
}

/* smaller paragraph under user name */
.dashboard-shell .panel.account-card p,
.dashboard-shell .panel.profile-card p,
.dashboard-shell .panel:has(.account-grid) p,
.dashboard-shell .panel:has(.stats-grid) p,
.dashboard-shell .panel:has(.account-meta-grid) p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin-bottom: 14px !important;
  color: #bcc9e3 !important;
}

/* compact stat tiles inside account card */
.dashboard-shell .stats-grid,
.dashboard-shell .account-grid,
.dashboard-shell .account-meta-grid {
  gap: 8px !important;
}

.dashboard-shell .stats-grid > *,
.dashboard-shell .account-grid > *,
.dashboard-shell .account-meta-grid > * {
  min-height: 64px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
}

.dashboard-shell .stats-grid strong,
.dashboard-shell .account-grid strong,
.dashboard-shell .account-meta-grid strong {
  font-size: 13px !important;
}

.dashboard-shell .stats-grid span,
.dashboard-shell .account-grid span,
.dashboard-shell .account-meta-grid span,
.dashboard-shell .stats-grid b,
.dashboard-shell .account-grid b,
.dashboard-shell .account-meta-grid b {
  font-size: 14px !important;
}

/* buttons under account card more compact */
.dashboard-shell .panel.account-card .row,
.dashboard-shell .panel.profile-card .row,
.dashboard-shell .panel:has(.account-grid) .row,
.dashboard-shell .panel:has(.stats-grid) .row,
.dashboard-shell .panel:has(.account-meta-grid) .row {
  gap: 10px !important;
  margin-top: 14px !important;
}

.dashboard-shell .panel.account-card .btn,
.dashboard-shell .panel.profile-card .btn,
.dashboard-shell .panel:has(.account-grid) .btn,
.dashboard-shell .panel:has(.stats-grid) .btn,
.dashboard-shell .panel:has(.account-meta-grid) .btn {
  min-height: 42px !important;
  padding: 0 18px !important;
  font-size: 15px !important;
}

/* project card gets more width and better textarea height */
.dashboard-shell .project-create-card,
.dashboard-shell .panel:has(textarea),
.dashboard-shell .panel:has(select) {
  padding: 20px 18px 18px !important;
}

.dashboard-shell textarea {
  min-height: 96px !important;
}

@media (max-width: 980px) {
  .dashboard-grid,
  .dashboard-two-col,
  .overview-grid,
  .dashboard-shell .grid-2,
  .dashboard-shell .dashboard-main-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === v24 banner login text below + narrower account card === */
.topbar {
  align-items: start;
}

.topbar > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

.brand-sub-below {
  display: block;
  margin: 8px 0 0 10px !important;
  font-size: 14px;
  line-height: 1.35;
  color: #b8c8e4 !important;
  opacity: .94;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* keep banner cleaner */
.dashboard-brand {
  margin-bottom: 0;
}

/* make left account area visibly slimmer so project card breathes more */
.dashboard-grid,
.dashboard-two-col,
.overview-grid,
.dashboard-shell .grid-2,
.dashboard-shell .dashboard-main-grid {
  grid-template-columns: minmax(290px, 0.76fr) minmax(580px, 1.24fr) !important;
  gap: 18px !important;
}

/* tighten account block a bit more */
.dashboard-shell .panel.account-card,
.dashboard-shell .panel.profile-card,
.dashboard-shell .panel:has(.account-grid),
.dashboard-shell .panel:has(.stats-grid),
.dashboard-shell .panel:has(.account-meta-grid) {
  max-width: 100%;
  padding: 20px 16px 15px !important;
}

.dashboard-shell .panel.account-card h2,
.dashboard-shell .panel.profile-card h2,
.dashboard-shell .panel:has(.account-grid) h2,
.dashboard-shell .panel:has(.stats-grid) h2,
.dashboard-shell .panel:has(.account-meta-grid) h2 {
  font-size: clamp(26px, 2vw, 32px) !important;
}

.dashboard-shell .stats-grid > *,
.dashboard-shell .account-grid > *,
.dashboard-shell .account-meta-grid > * {
  min-height: 60px !important;
  padding: 11px 13px !important;
}

/* give new project a touch more width */
.dashboard-shell .project-create-card,
.dashboard-shell .panel:has(textarea),
.dashboard-shell .panel:has(select) {
  padding: 20px 18px 16px !important;
}

@media (max-width: 980px) {
  .brand-sub-below {
    margin-left: 4px !important;
  }

  .dashboard-grid,
  .dashboard-two-col,
  .overview-grid,
  .dashboard-shell .grid-2,
  .dashboard-shell .dashboard-main-grid {
    grid-template-columns: 1fr !important;
  }
}


/* === v25 fix: banner back to cleaner proportions === */

/* STARTSEITE / LOGIN: banner back to the nicer 65% size */
.auth-branding.auth-branding-clean {
  min-height: 74px !important;
  padding: 12px 18px !important;
  background:
    linear-gradient(90deg, rgba(5,10,20,.18), rgba(5,10,20,.06)),
    url('/branding/banner-main.png') center / 65% auto no-repeat !important;
  background-color: #050a14 !important;
  border: 1px solid rgba(88, 152, 255, 0.22) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.30) !important;
}

.auth-branding.auth-branding-clean .auth-branding-logo-compact {
  display: none !important;
}

.auth-branding.auth-branding-clean::before {
  opacity: .82 !important;
}

.auth-branding.auth-branding-clean::after {
  opacity: .72 !important;
}

/* DASHBOARD / LOGIN AFTER AUTH: make top banner smaller again, not stretched */
.dashboard-brand {
  height: 64px !important;
  min-height: 64px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(90deg, rgba(5,10,20,.22), rgba(5,10,20,.08)),
    url('/branding/banner-main.png') center / 65% auto no-repeat !important;
  background-color: #050a14 !important;
  border: 1px solid rgba(88, 152, 255, 0.18) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.24) !important;
}

.dashboard-brand .dashboard-logo {
  display: none !important;
}

.dashboard-brand .brand-title {
  display: none !important;
}

.brand-sub-below {
  margin: 6px 0 0 6px !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.topbar {
  gap: 8px;
}

@media (max-width: 980px) {
  .auth-branding.auth-branding-clean {
    min-height: 68px !important;
    background:
      linear-gradient(90deg, rgba(5,10,20,.24), rgba(5,10,20,.08)),
      url('/branding/banner-main.png') center / 82% auto no-repeat !important;
  }

  .dashboard-brand {
    height: 58px !important;
    min-height: 58px !important;
    background:
      linear-gradient(90deg, rgba(5,10,20,.24), rgba(5,10,20,.08)),
      url('/branding/banner-main.png') center / 82% auto no-repeat !important;
  }
}


/* === v26 fix: dashboard top banner was vertically cropped / stretched === */
.dashboard-brand {
  height: 66px !important;
  min-height: 66px !important;
  padding: 0 14px !important;
  overflow: hidden !important;
  background:
    linear-gradient(90deg, rgba(5,10,20,.24), rgba(5,10,20,.10)),
    url('/branding/banner-main.png') center / auto 72% no-repeat !important;
  background-color: #050a14 !important;
  border: 1px solid rgba(88, 152, 255, 0.18) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.24) !important;
}

/* keep dashboard banner clean and stop old content from competing */
.dashboard-brand .dashboard-logo,
.dashboard-brand .brand-title {
  display: none !important;
}

/* improve the strip look so empty sides feel intentional */
.dashboard-brand::before {
  content: "" !important;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5,10,20,.34) 0%,
      rgba(5,10,20,.10) 18%,
      rgba(5,10,20,.02) 50%,
      rgba(5,10,20,.10) 82%,
      rgba(5,10,20,.34) 100%);
  pointer-events: none;
}

.dashboard-brand::after {
  content: "" !important;
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56,189,248,.72), rgba(249,115,22,.72), transparent);
  opacity: .6;
}

/* logged-in text sits cleaner below */
.brand-sub-below {
  margin: 6px 0 0 8px !important;
  font-size: 14px !important;
}

/* mobile */
@media (max-width: 980px) {
  .dashboard-brand {
    height: 58px !important;
    min-height: 58px !important;
    background:
      linear-gradient(90deg, rgba(5,10,20,.28), rgba(5,10,20,.12)),
      url('/branding/banner-main.png') center / auto 78% no-repeat !important;
  }
}


/* === v27 ONLY: account box narrower (clean fix) === */

/* main layout: left smaller, right bigger */
.dashboard-grid,
.dashboard-two-col,
.overview-grid,
.dashboard-shell .grid-2,
.dashboard-shell .dashboard-main-grid {
  grid-template-columns: minmax(260px, 0.68fr) minmax(640px, 1.32fr) !important;
}

/* ensure account card doesn't stretch visually */
.dashboard-shell .panel.account-card,
.dashboard-shell .panel.profile-card {
  max-width: 100%;
}

/* optional: tighten inner spacing slightly */
.dashboard-shell .panel.account-card {
  padding: 18px 14px !important;
}



/* === v30 text_media dropdown editor upgrade === */
.text-media-adder {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  background: linear-gradient(180deg, rgba(8,14,28,.58), rgba(6,10,22,.78));
}

.text-media-editor-list {
  gap: 12px;
}

.text-media-editor-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: linear-gradient(180deg, rgba(7,12,24,.62), rgba(6,10,20,.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.text-media-editor-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.text-media-blocks-empty {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(96, 165, 250, 0.18);
  color: #aebddb;
  background: rgba(8, 14, 28, 0.34);
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: center;
}

.media-inline-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.media-inline-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.media-inline-card p {
  margin: 0;
}

.media-inline-image {
  overflow: hidden;
  padding: 0;
}

.media-inline-image img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.media-inline-actions {
  display: flex;
  margin-top: 14px;
}

.media-inline-actions.center {
  justify-content: center;
}

.media-inline-actions.right {
  justify-content: flex-end;
}

.media-inline-link {
  margin-top: 12px;
}

.media-inline-link a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* === v31 services image/button + safer media preview === */
.service-item-editor-card {
  gap: 10px;
}

.service-editor-preview,
.upload-preview {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  background: rgba(8, 14, 28, 0.34);
}

.service-editor-preview img,
.upload-preview img,
.text-media-editor-card img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 180px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
}

.text-media-editor-card video,
.text-media-editor-card audio {
  width: 100%;
  max-width: 100%;
}

.preview-body .service-card-extended {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-body .service-card-media {
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.preview-body .service-card-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.preview-body .service-card-media.media-size-small img {
  height: 120px;
}

.preview-body .service-card-media.media-size-medium img {
  height: 170px;
}

.preview-body .service-card-media.media-size-large img {
  height: 220px;
}

.preview-body .service-card-actions {
  margin-top: 4px;
}

/* exported pages use same class names */
.service-card-extended {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card-media {
  overflow: hidden;
  border-radius: 14px;
  background: #e5e7eb;
}

.service-card-media img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.service-card-media.media-size-small img {
  height: 120px;
}

.service-card-media.media-size-medium img {
  height: 170px;
}

.service-card-media.media-size-large img {
  height: 220px;
}

.service-card-actions {
  margin-top: 4px;
}


/* === v33 service image positioning fix === */
.preview-body .service-card-media img,
.service-card-media img {
  object-position: center top !important;
}

/* portrait-friendly defaults */
.preview-body .service-card-media.media-size-small img,
.service-card-media.media-size-small img {
  height: 120px;
  object-position: center 18% !important;
}

.preview-body .service-card-media.media-size-medium img,
.service-card-media.media-size-medium img {
  height: 170px;
  object-position: center 16% !important;
}

.preview-body .service-card-media.media-size-large img,
.service-card-media.media-size-large img {
  height: 220px;
  object-position: center 14% !important;
}


/* === v34 service image cover centered === */
.preview-body .service-card-media img,
.service-card-media img {
  object-fit: cover !important;
  object-position: center center !important;
}

.preview-body .service-card-media.media-size-small img,
.service-card-media.media-size-small img {
  height: 120px !important;
}

.preview-body .service-card-media.media-size-medium img,
.service-card-media.media-size-medium img {
  height: 170px !important;
}

.preview-body .service-card-media.media-size-large img,
.service-card-media.media-size-large img {
  height: 220px !important;
}


/* === v40 services/features card image frame + action polish === */

/* cards stay balanced even with mixed content */
.preview-body .service-card-extended,
.service-card-extended {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.preview-body .service-card-extended p,
.service-card-extended p {
  flex: 1 1 auto;
}

/* fixed image frame so every card looks equally clean */
.preview-body .service-card-media,
.service-card-media {
  width: 100%;
  height: 180px !important;
  overflow: hidden;
  border-radius: 14px;
  background: #e8eaee;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.preview-body .service-card-media.media-size-small,
.service-card-media.media-size-small {
  height: 150px !important;
}

.preview-body .service-card-media.media-size-medium,
.service-card-media.media-size-medium {
  height: 180px !important;
}

.preview-body .service-card-media.media-size-large,
.service-card-media.media-size-large {
  height: 220px !important;
}

.preview-body .service-card-media img,
.service-card-media img {
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover !important;
  object-position: center center !important;
}

/* nicer action area for direct contact buttons */
.preview-body .service-card-actions,
.service-card-actions {
  margin-top: auto;
  padding-top: 2px;
}

.preview-body .service-card-actions .btn-link,
.service-card-actions .btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(249,115,22,.18);
}

/* editor previews should stay contained and never cover everything */
.service-editor-preview,
.upload-preview {
  max-width: 100%;
  overflow: hidden;
}

.service-editor-preview img,
.upload-preview img,
.text-media-editor-card img {
  width: 100%;
  max-width: 260px;
  max-height: 180px;
  object-fit: cover;
  object-position: center center;
}

/* slightly nicer spacing for card editor extras */
.service-item-editor-card .muted {
  margin: -2px 0 2px;
}

.service-item-editor-card .btn.secondary.small {
  align-self: flex-start;
}


/* === v41 global card/export parity fix === */

/* Global service/feature card rules so export + live = editor */
.service-card-extended {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  height: 100% !important;
}

.service-card-extended p {
  flex: 1 1 auto;
}

.service-card-media {
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #e8eaee !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.service-card-media.media-size-small {
  height: 150px !important;
}

.service-card-media.media-size-medium {
  height: 180px !important;
}

.service-card-media.media-size-large {
  height: 220px !important;
}

.service-card-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.service-card-actions {
  margin-top: auto !important;
  padding-top: 4px;
}

.service-card-actions .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(249,115,22,.18);
}

/* Keep editor preview matching final output */
.preview-body .service-card-extended {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  height: 100% !important;
}

.preview-body .service-card-extended p {
  flex: 1 1 auto;
}

.preview-body .service-card-media {
  width: 100% !important;
  height: 180px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #e8eaee !important;
}

.preview-body .service-card-media.media-size-small {
  height: 150px !important;
}

.preview-body .service-card-media.media-size-medium {
  height: 180px !important;
}

.preview-body .service-card-media.media-size-large {
  height: 220px !important;
}

.preview-body .service-card-media img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.preview-body .service-card-actions {
  margin-top: auto !important;
  padding-top: 4px;
}

.preview-body .service-card-actions .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}


/* === v42 service card images smaller like gallery thumbs === */
.service-card-extended,
.preview-body .service-card-extended {
  align-items: flex-start !important;
}

.service-card-media,
.preview-body .service-card-media {
  width: min(160px, 100%) !important;
  height: 110px !important;
  margin: 0 0 6px 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #e8eaee !important;
  flex: 0 0 auto !important;
}

.service-card-media.media-size-small,
.preview-body .service-card-media.media-size-small {
  width: min(130px, 100%) !important;
  height: 90px !important;
}

.service-card-media.media-size-medium,
.preview-body .service-card-media.media-size-medium {
  width: min(160px, 100%) !important;
  height: 110px !important;
}

.service-card-media.media-size-large,
.preview-body .service-card-media.media-size-large {
  width: min(190px, 100%) !important;
  height: 130px !important;
}

.service-card-media img,
.preview-body .service-card-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.service-card-actions,
.preview-body .service-card-actions {
  margin-top: 10px !important;
}


/* === v43 stronger export/live selectors for service cards === */
.section.services .cards .card.service-card-extended,
.section.features .cards .card.service-card-extended,
.cards .card.service-card-extended {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.section.services .cards .card.service-card-extended .service-card-media,
.section.features .cards .card.service-card-extended .service-card-media,
.cards .card.service-card-extended .service-card-media {
  width: 160px !important;
  max-width: 100% !important;
  height: 110px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  margin: 0 0 8px 0 !important;
  flex: 0 0 auto !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-small,
.section.features .cards .card.service-card-extended .service-card-media.media-size-small,
.cards .card.service-card-extended .service-card-media.media-size-small {
  width: 130px !important;
  height: 90px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-medium,
.section.features .cards .card.service-card-extended .service-card-media.media-size-medium,
.cards .card.service-card-extended .service-card-media.media-size-medium {
  width: 160px !important;
  height: 110px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-large,
.section.features .cards .card.service-card-extended .service-card-media.media-size-large,
.cards .card.service-card-extended .service-card-media.media-size-large {
  width: 190px !important;
  height: 130px !important;
}

.section.services .cards .card.service-card-extended .service-card-media img,
.section.features .cards .card.service-card-extended .service-card-media img,
.cards .card.service-card-extended .service-card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* fallback if some exported cards render direct img without wrapper */
.section.services .cards .card > img,
.section.features .cards .card > img {
  width: 160px !important;
  height: 110px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 14px !important;
  display: block !important;
}


/* === v44 export card image safety === */
.service-card-media {
  width: 100%;
}

.service-card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  object-fit: cover;
}


/* === v45 service card image fit correction === */
/* show the whole image inside the small service frame instead of cropping faces/heads */
.section.services .cards .card.service-card-extended,
.section.features .cards .card.service-card-extended,
.cards .card.service-card-extended,
.preview-body .service-card-extended {
  align-items: flex-start !important;
}

.section.services .cards .card.service-card-extended .service-card-media,
.section.features .cards .card.service-card-extended .service-card-media,
.cards .card.service-card-extended .service-card-media,
.preview-body .service-card-media {
  width: 160px !important;
  max-width: 100% !important;
  height: 110px !important;
  padding: 8px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  background: #eef1f5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-small,
.section.features .cards .card.service-card-extended .service-card-media.media-size-small,
.cards .card.service-card-extended .service-card-media.media-size-small,
.preview-body .service-card-media.media-size-small {
  width: 130px !important;
  height: 90px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-medium,
.section.features .cards .card.service-card-extended .service-card-media.media-size-medium,
.cards .card.service-card-extended .service-card-media.media-size-medium,
.preview-body .service-card-media.media-size-medium {
  width: 160px !important;
  height: 110px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-large,
.section.features .cards .card.service-card-extended .service-card-media.media-size-large,
.cards .card.service-card-extended .service-card-media.media-size-large,
.preview-body .service-card-media.media-size-large {
  width: 190px !important;
  height: 130px !important;
}

.section.services .cards .card.service-card-extended .service-card-media img,
.section.features .cards .card.service-card-extended .service-card-media img,
.cards .card.service-card-extended .service-card-media img,
.preview-body .service-card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}


/* === v46 service image size dropdown fix === */
/* final override so Klein / Mittel / Groß visibly changes both preview and export */
.section.services .cards .card.service-card-extended .service-card-media.media-size-small,
.section.features .cards .card.service-card-extended .service-card-media.media-size-small,
.cards .card.service-card-extended .service-card-media.media-size-small,
.preview-body .service-card-media.media-size-small,
.service-card-media.media-size-small {
  width: 110px !important;
  height: 90px !important;
  padding: 6px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-medium,
.section.features .cards .card.service-card-extended .service-card-media.media-size-medium,
.cards .card.service-card-extended .service-card-media.media-size-medium,
.preview-body .service-card-media.media-size-medium,
.service-card-media.media-size-medium {
  width: 160px !important;
  height: 110px !important;
  padding: 8px !important;
}

.section.services .cards .card.service-card-extended .service-card-media.media-size-large,
.section.features .cards .card.service-card-extended .service-card-media.media-size-large,
.cards .card.service-card-extended .service-card-media.media-size-large,
.preview-body .service-card-media.media-size-large,
.service-card-media.media-size-large {
  width: 220px !important;
  height: 150px !important;
  padding: 10px !important;
}


/* === v47 service card button style restore === */
.service-card-actions,
.preview-body .service-card-actions,
.section.services .cards .card.service-card-extended .service-card-actions,
.section.features .cards .card.service-card-extended .service-card-actions {
  margin-top: 10px !important;
  padding-top: 2px !important;
}

.service-card-actions .btn-link,
.preview-body .service-card-actions .btn-link,
.section.services .cards .card.service-card-extended .service-card-actions .btn-link,
.section.features .cards .card.service-card-extended .service-card-actions .btn-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #f97316, #fb923c) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border: 0 !important;
  box-shadow: 0 10px 24px rgba(249,115,22,.22) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

.service-card-actions .btn-link:hover,
.preview-body .service-card-actions .btn-link:hover,
.section.services .cards .card.service-card-extended .service-card-actions .btn-link:hover,
.section.features .cards .card.service-card-extended .service-card-actions .btn-link:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.02) !important;
  box-shadow: 0 14px 28px rgba(249,115,22,.28) !important;
}

.service-card-actions .btn-link:visited,
.preview-body .service-card-actions .btn-link:visited,
.section.services .cards .card.service-card-extended .service-card-actions .btn-link:visited,
.section.features .cards .card.service-card-extended .service-card-actions .btn-link:visited {
  color: #ffffff !important;
}



/* === v48 auth icons + guide link === */
.auth-howto {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 18px;
  background: rgba(7, 16, 40, 0.44);
  backdrop-filter: blur(6px);
}

.auth-howto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.howto-mini-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(3, 10, 28, 0.72);
  border: 1px solid rgba(249,115,22,.16);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
}

.howto-mini-card h3 { margin: 0 0 8px 0; font-size: 18px; }
.howto-mini-card p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.5; }

.howto-mini-icon {
  width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 24px;
  background: linear-gradient(135deg, rgba(249,115,22,.25), rgba(249,115,22,.08));
  border: 1px solid rgba(249,115,22,.24);
}

.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(249,115,22,.36); box-shadow: none; }
.btn.ghost:hover { background: rgba(249,115,22,.12); }

@media (max-width: 980px) {
  .auth-howto-grid { grid-template-columns: 1fr; }
  .auth-howto-head { flex-direction: column; align-items: flex-start; }
}

