/* ==========================================================================
   Website Cloner — Admin Panel Design System
   Material palette carried from the legacy landing page:
   primary #1976d2, green #43a047, gradients #accbee -> #e7f0fd
   ========================================================================== */

:root {
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #e3f2fd;
  --green: #43a047;
  --green-dark: #2e7d32;
  --red: #e53935;
  --amber: #fb8c00;
  --ink: #1c2022;
  --ink-soft: #5f6b76;
  --line: #e4e9f0;
  --bg: #f3f6fb;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(25, 60, 100, .08), 0 4px 16px rgba(25, 60, 100, .06);
  --shadow-lg: 0 8px 30px rgba(25, 60, 100, .14);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
  margin: 0 0 .5em;
}

h1 {
  font-size: 1.7rem;
  font-weight: 300;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
}

svg {
  display: inline-block;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .1s ease, box-shadow .2s ease;
  background: transparent;
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-success {
  color: #fff;
  background: var(--green);
}

.btn-success:hover {
  background: var(--green-dark);
}

.btn-danger {
  color: #fff;
  background: var(--red);
}

.btn-danger:hover {
  background: #c62828;
}

.btn-outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost {
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(25, 118, 210, .08);
  color: var(--primary);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
  border-radius: 10px;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field .hint {
  font-size: .75rem;
  color: var(--ink-soft);
  margin-top: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, .14);
}

.field select,
.field textarea {
  appearance: auto;
}

.toolbar select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .85rem;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.toolbar select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(25, 118, 210, .12);
}

.field .error-text {
  color: var(--red);
  font-size: .78rem;
  margin-top: 5px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group > input {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card + .card {
  margin-top: 18px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Layout — sidebar shell
   -------------------------------------------------------------------------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0d2c54 0%, #123d73 100%);
  color: #d7e6fb;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-weight: 500;
}

.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand small {
  display: block;
  color: #8fb4e4;
  font-size: .72rem;
  font-weight: 400;
}

.nav {
  padding: 14px 12px;
  flex: 1;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 4px;
  border-radius: 9px;
  color: #bcd3f0;
  font-size: .92rem;
  transition: background-color .15s ease, color .15s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.nav a.active {
  background: var(--primary);
  color: #fff;
}

.nav .badge {
  margin-left: auto;
  background: rgba(255, 255, 255, .2);
  border-radius: 20px;
  font-size: .72rem;
  padding: 2px 8px;
}

.sidebar-foot {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .72rem;
  color: #7fa7d9;
  line-height: 1.6;
}

.sidebar-foot strong {
  color: #bcd3f0;
}

.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar .breadcrumb {
  color: var(--ink-soft);
  font-size: .85rem;
}

.topbar .spacer {
  flex: 1;
}

.topbar .user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
}

.topbar .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

.content {
  padding: 26px;
  flex: 1;
}

.page-title {
  margin-bottom: 20px;
}

.page-title h1 {
  margin-bottom: 4px;
}

.page-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Hero banner (dashboard home)
   -------------------------------------------------------------------------- */

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 24px;
  color: #fff;
  background: linear-gradient(120deg, #0d47a1 0%, #1976d2 48%, #43a047 130%);
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .18), transparent 38%),
    radial-gradient(circle at 6% 100%, rgba(255, 255, 255, .10), transparent 42%);
  pointer-events: none;
}

.hero-card-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .14), transparent 62%);
  bottom: -220px;
  right: -60px;
  pointer-events: none;
}

.hero-card-content {
  position: relative;
  padding: 34px 30px 30px;
}

.hero-card .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  margin-bottom: 14px;
}

.hero-card h1 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.hero-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  max-width: 620px;
  line-height: 1.55;
}

.hero-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-input {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.hero-input svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa3c3;
}

.hero-input input {
  width: 100%;
  padding: 15px 18px 15px 44px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: 0 8px 24px rgba(8, 28, 62, .22);
}

.hero-input input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .4), 0 8px 24px rgba(8, 28, 62, .22);
}

.btn-hero {
  padding: 15px 26px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: #0d47a1;
  background: #fff;
  box-shadow: 0 8px 24px rgba(8, 28, 62, .22);
}

.btn-hero:hover {
  background: #e3f2fd;
}

.hero-alert {
  margin-top: 16px;
  max-width: 720px;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.stat .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat .stat-icon.blue {
  background: rgba(25, 118, 210, .12);
  color: var(--primary);
}

.stat .stat-icon.green {
  background: rgba(67, 160, 71, .12);
  color: var(--green);
}

.stat .stat-icon.amber {
  background: rgba(251, 140, 0, .14);
  color: var(--amber);
}

.stat .stat-icon.red {
  background: rgba(229, 57, 53, .12);
  color: var(--red);
}

.stat .stat-icon.violet {
  background: rgba(94, 53, 177, .12);
  color: #5e35b1;
}

.stat .stat-body .stat-value {
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
}

.stat .stat-body .stat-label {
  color: var(--ink-soft);
  font-size: .8rem;
  margin-top: 3px;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:hover td {
  background: #f8fafc;
}

.table .domain-cell {
  font-weight: 500;
  color: var(--primary-dark);
}

.domain-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   Badges & pills
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.badge.completed {
  background: rgba(67, 160, 71, .12);
  color: var(--green-dark);
}

.badge.downloading,
.badge.running,
.badge.processing {
  background: rgba(25, 118, 210, .12);
  color: var(--primary-dark);
}

.badge.failed {
  background: rgba(229, 57, 53, .12);
  color: var(--red);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .45;
    transform: scale(.8);
  }
}

.badge.running .dot,
.badge.downloading .dot,
.badge.processing .dot {
  animation: pulse-dot 1.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: .88rem;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid transparent;
}

.alert.success {
  background: rgba(67, 160, 71, .1);
  border-color: rgba(67, 160, 71, .28);
  color: var(--green-dark);
}

.alert.error {
  background: rgba(229, 57, 53, .08);
  border-color: rgba(229, 57, 53, .28);
  color: var(--red);
}

.alert.info {
  background: rgba(25, 118, 210, .08);
  border-color: rgba(25, 118, 210, .28);
  color: var(--primary-dark);
}

.alert .icon {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pagination-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.page-link {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .85rem;
  font-weight: 500;
}

.page-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.page-link.disabled {
  opacity: .45;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Progress / log console
   -------------------------------------------------------------------------- */

.progress-shell {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0b1a30;
}

.progress-meta {
  display: flex;
  gap: 18px;
  padding: 12px 16px;
  color: #cfe3f8;
  font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  flex-wrap: wrap;
}

.progress-meta span strong {
  color: #fff;
}

.log-console {
  height: 260px;
  overflow-y: auto;
  padding: 14px 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .78rem;
  line-height: 1.6;
  color: #9dceff;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-console::-webkit-scrollbar {
  width: 8px;
}

.log-console::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .18);
  border-radius: 8px;
}

.struct-list {
  max-height: 320px;
  overflow-y: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .78rem;
  line-height: 1.9;
  color: var(--text, #263238);
  background: rgba(25, 118, 210, .045);
  border: 1px solid rgba(25, 118, 210, .12);
  border-radius: 10px;
  padding: 6px 0;
}

.struct-list::-webkit-scrollbar {
  width: 8px;
}

.struct-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .18);
  border-radius: 8px;
}

.struct-empty {
  padding: 10px 16px;
  color: var(--muted, #546e7a);
  font-style: italic;
}

.struct-line {
  padding: 2px 14px;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}

.struct-line:nth-child(odd) {
  background: rgba(25, 118, 210, .04);
}

.struct-line.is-new {
  animation: structIn .9s ease;
  background: rgba(25, 118, 210, .16);
}

@keyframes structIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
    background: rgba(67, 160, 71, .35);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.struct-ico {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 8px;
  vertical-align: baseline;
}

.struct-html { background: #e65100; }
.struct-css  { background: #1565c0; }
.struct-js   { background: #f9a825; }
.struct-img  { background: #43a047; }
.struct-font { background: #8e24aa; }
.struct-file { background: #90a4ae; }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #1565c0;
  background: rgba(25, 118, 210, .1);
  border: 1px solid rgba(25, 118, 210, .25);
  border-radius: 999px;
  vertical-align: middle;
}

.live-badge.processing {
  color: #e65100;
  background: rgba(230, 81, 0, .1);
  border-color: rgba(230, 81, 0, .3);
}

.live-badge.done {
  color: #2e7d32;
  background: rgba(46, 125, 50, .1);
  border-color: rgba(46, 125, 50, .3);
}

.live-badge.failed {
  color: #c62828;
  background: rgba(198, 40, 40, .1);
  border-color: rgba(198, 40, 40, .3);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1976d2;
  box-shadow: 0 0 0 0 rgba(25, 118, 210, .45);
  animation: livePulse 1.4s infinite;
}

.live-badge.done .live-dot,
.live-badge.failed .live-dot {
  animation: none;
}

.live-badge.done .live-dot { background: #2e7d32; }
.live-badge.failed .live-dot { background: #c62828; }
.live-badge.processing .live-dot { background: #e65100; }

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(25, 118, 210, .5); }
  70% { box-shadow: 0 0 0 7px rgba(25, 118, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
}

.preview-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}

.preview-now {
  font-size: .8rem;
  color: var(--muted, #546e7a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-now::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green, #43a047);
  vertical-align: middle;
  animation: livePulse 1.4s infinite;
}

.badge-wayback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
  color: #e65100;
  background: rgba(230, 81, 0, .1);
  border: 1px solid rgba(230, 81, 0, .3);
  border-radius: 999px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.preview-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: .78rem;
  color: var(--muted, #546e7a);
  background: #fff;
  border: 1px solid rgba(25, 118, 210, .12);
  border-radius: 10px;
}

.preview-stat b {
  margin-left: auto;
  font-size: .95rem;
  color: var(--text, #263238);
}

.stat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.stat-dot.html { background: #e65100; }
.stat-dot.css  { background: #1565c0; }
.stat-dot.js   { background: #f9a825; }
.stat-dot.img  { background: #43a047; }
.stat-dot.font { background: #8e24aa; }
.stat-dot.file { background: #90a4ae; }

.progress-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, .12);
  border-radius: 8px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--primary), #42a5f5);
  transition: width .5s ease;
}

.file-count {
  display: inline-block;
  min-width: 90px;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Guest screens (setup / login) — gradient hero like the original page
   -------------------------------------------------------------------------- */

.guest-body {
  position: relative;
  background: linear-gradient(135deg, #e8f1fb 0%, #eef8ec 55%, #e3f2fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
}

.guest-body::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(25, 118, 210, .16), transparent 65%);
  top: -140px;
  right: -120px;
  pointer-events: none;
}

.guest-body::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(67, 160, 71, .16), transparent 65%);
  bottom: -140px;
  left: -110px;
  pointer-events: none;
}

.guest-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 470px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(25, 60, 100, .08), 0 18px 48px rgba(25, 60, 100, .18);
  padding: 38px 36px;
}

.guest-card.wide {
  max-width: 540px;
}

.guest-hero {
  text-align: center;
  margin-bottom: 26px;
}

.guest-hero .hero-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guest-hero h1 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.guest-hero p {
  color: var(--ink-soft);
  font-size: .86rem;
  margin: 0;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 24px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .76rem;
  color: var(--ink-soft);
}

.step .num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .75rem;
}

.step.done .num {
  background: var(--green);
  color: #fff;
}

.credit-line {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  text-align: center;
  font-size: .76rem;
  color: var(--ink-soft);
}

.credit-line strong {
  color: var(--primary);
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  font-size: .84rem;
  color: var(--ink-soft);
}

.auth-switch a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--ink-soft);
}

.empty .empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty p {
  margin: 0 0 4px;
  font-size: .92rem;
}

.empty small {
  font-size: .8rem;
}

/* Misc */
.muted {
  color: var(--ink-soft);
}

.row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.row > .card {
  flex: 1;
  min-width: 260px;
}

.mt {
  margin-top: 18px;
}

.mb {
  margin-bottom: 18px;
}

.small {
  font-size: .78rem;
}

.table-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(25, 118, 210, .1);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform .2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-push {
    padding-left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .content {
    padding: 16px;
  }

  .guest-card {
    padding: 28px 24px;
  }
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

@media (min-width: 861px) {
  .menu-btn {
    display: none !important;
  }
}

.overlay {
  display: none;
}

@media (max-width: 860px) {
  .overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 40, .45);
    z-index: 90;
  }
}

/* --------------------------------------------------------------------------
   Small button variant + check rows
   -------------------------------------------------------------------------- */

.btn-sm {
  padding: 8px 14px;
  font-size: .78rem;
  border-radius: 7px;
}

.premium-grant {
  background: linear-gradient(135deg, #f9a825, #f57f17);
  color: #fff;
  border: none;
  font-weight: 600;
}

.premium-grant:hover {
  background: linear-gradient(135deg, #f57f17, #ef6c00);
  color: #fff;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  margin: 6px 0 6px;
  cursor: pointer;
}

.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.spacer {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Public landing, pricing and checkout pages
   -------------------------------------------------------------------------- */

.public-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f6f9fd;
}

.public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.public-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.public-brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.public-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.public-links > a:not(.btn) {
  color: var(--ink-soft);
  font-size: .9rem;
  padding: 8px 10px;
  border-radius: 8px;
}

.public-links > a:not(.btn):hover,
.public-links > a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.public-main {
  flex: 1;
  width: 100%;
}

.public-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.public-footer strong {
  color: var(--primary);
}

.public-footer-right {
  text-align: right;
}

.landing-hero {
  background: linear-gradient(135deg, #0d2c54 0%, #1565c0 48%, #2e7d32 130%);
  color: #fff;
  padding: 84px 22px 64px;
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .14), transparent 60%);
  top: -220px;
  right: -140px;
}

.landing-hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.landing-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  margin-bottom: 18px;
}

.landing-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 18px;
}

.landing-hero h1 span {
  background: linear-gradient(90deg, #8fd0ff, #a5f3ae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-hero p {
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.landing-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  background: transparent;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .12);
}

.landing-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.landing-stats div strong {
  display: block;
  font-size: .98rem;
  font-weight: 600;
}

.landing-stats div span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
}

.landing-section {
  padding: 60px 22px;
}

.landing-section.pricing-page {
  padding-top: 44px;
}

.landing-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.landing-section-head h1 {
  font-size: 1.9rem;
  font-weight: 400;
  margin-bottom: 8px;
}

.landing-section-head p {
  color: var(--ink-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 34px rgba(25, 118, 210, .2);
}

.price-card .price-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.price-card .price {
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}

.price-card .price .currency {
  font-size: 1.3rem;
  vertical-align: super;
  color: var(--green);
}

.price-card .price small {
  font-size: .82rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.price-card .clone-limit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--green);
  margin: -10px 0 18px;
}

.price-card .clone-limit svg {
  flex-shrink: 0;
}

.price-features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: .9rem;
  color: var(--ink-soft);
}

.price-features svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Checkout */
.checkout-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 22px;
}

.checkout-summary .checkout-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.checkout-plan h3 {
  margin: 0 0 4px;
  font-weight: 500;
}

.checkout-plan p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .84rem;
}

.checkout-plan-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
}

.checkout-coupon {
  margin-bottom: 16px;
}

.checkout-lines {
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 2px;
  color: var(--ink-soft);
  font-size: .9rem;
}

.checkout-line.discount {
  color: var(--green-dark);
}

.checkout-line.total {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.bkash-btn {
  background: #e2136e;
  color: #fff;
  gap: 10px;
  font-size: 1rem;
}

.bkash-btn:hover {
  background: #c00f5e;
}

.checkout-secure {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: .78rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

/* Payment result */
.payment-result {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
}

.payment-result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-result-icon.ok {
  background: rgba(67, 160, 71, .14);
  color: var(--green);
}

.payment-result-icon.fail {
  background: rgba(229, 57, 53, .12);
  color: var(--red);
}

.payment-result h1 {
  font-weight: 500;
  margin-bottom: 8px;
}

.payment-result > p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.payment-result-details {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 18px;
  margin: 0 0 24px;
}

.payment-result-details div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}

.payment-result-details div:last-child {
  border-bottom: 0;
}

.payment-result-details span {
  color: var(--ink-soft);
}

.payment-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Feature grid */
.landing-features {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 10px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.feature-icon.blue {
  background: rgba(25, 118, 210, .12);
  color: var(--primary);
}

.feature-icon.green {
  background: rgba(67, 160, 71, .12);
  color: var(--green);
}

.feature-icon.violet {
  background: rgba(94, 53, 177, .12);
  color: #5e35b1;
}

.feature-icon.amber {
  background: rgba(251, 140, 0, .14);
  color: var(--amber);
}

.feature h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.feature p {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 620px) {
  .landing-hero {
    padding: 56px 18px 44px;
  }

  .landing-stats {
    gap: 18px;
  }

  .price-card {
    padding: 24px 18px;
  }
}

.badge.pending {
  background: rgba(251, 140, 0, .14);
  color: var(--amber);
}

.badge.expired,
.badge.cancelled {
  background: rgba(95, 107, 118, .15);
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Home page — hero decoration, how-it-works, FAQ, CTA band
   -------------------------------------------------------------------------- */

#pricing {
  scroll-margin-top: 20px;
}

.feature-icon.teal {
  background: rgba(0, 151, 167, .12);
  color: #00897b;
}

.feature-icon.rose {
  background: rgba(230, 74, 105, .12);
  color: #d81b60;
}

/* Floating decorative blobs behind the hero content */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
  z-index: 0;
}

.hero-blob-1 {
  width: 340px;
  height: 340px;
  left: -120px;
  top: -120px;
  background: radial-gradient(circle at center, rgba(143, 208, 255, .28), transparent 62%);
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: -110px;
  background: radial-gradient(circle at center, rgba(165, 243, 174, .24), transparent 62%);
}

.landing-hero-inner {
  z-index: 1;
}

/* Floating glass chips that bat around the hero */
.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(8, 28, 62, .18);
  animation: heroFloat 4.5s ease-in-out infinite;
}

.hero-chip svg {
  color: #a5f3ae;
}

.chip-a {
  top: 22%;
  left: 5%;
  animation-delay: 0s;
}

.chip-b {
  top: 13%;
  right: 5%;
  animation-delay: 1.2s;
}

.chip-c {
  bottom: 16%;
  left: 8%;
  animation-delay: 2.2s;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* How-it-works section */
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  max-width: 1000px;
  margin: 0 auto;
}

.howto-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 30px 24px 26px;
  text-align: center;
}

.howto-step {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #42a5f5);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .03em;
}

.howto-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.howto-icon.url {
  background: rgba(25, 118, 210, .12);
  color: var(--primary);
}

.howto-icon.mirror {
  background: rgba(67, 160, 71, .12);
  color: var(--green);
}

.howto-icon.zip {
  background: rgba(94, 53, 177, .12);
  color: #5e35b1;
}

.howto-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 6px;
}

.howto-card p {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* FAQ section */
.landing-faq {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform .2s ease;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Bottom CTA band */
.cta-band {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(120deg, #0d47a1 0%, #1976d2 48%, #43a047 130%);
  color: #fff;
  text-align: center;
  padding: 52px 26px 48px;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-band-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .16), transparent 42%),
    radial-gradient(circle at 90% 100%, rgba(165, 243, 174, .2), transparent 46%);
  pointer-events: none;
}

.cta-band h2 {
  position: relative;
  color: #fff;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 500;
  margin: 0 0 10px;
}

.cta-band p {
  position: relative;
  color: rgba(255, 255, 255, .88);
  font-size: .95rem;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.cta-band .btn-hero {
  position: relative;
}

/* Admin-editable limits strip on the member dashboard hero */
.hero-limits {
  display: inline-block;
  margin: -8px 0 20px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .95);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  line-height: 1.55;
}

.hero-limits strong {
  color: #a5f3ae;
}

/* Responsive tweaks */
@media (max-width: 760px) {
  .hero-chip {
    display: none;
  }

  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Announcement popup (auto-shows after the admin-configured delay)
   -------------------------------------------------------------------------- */

.announcement-popup {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 380px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}

.announcement-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.announcement-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(8, 28, 62, .22);
  padding: 22px 20px 20px;
}

.announcement-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.announcement-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.announcement-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 24px;
}

.announcement-heading svg {
  flex-shrink: 0;
  color: var(--primary);
}

.announcement-heading h4 {
  margin: 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--ink);
}

.announcement-text {
  margin: 10px 0 16px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.announcement-btn {
  display: inline-block;
}

@media (max-width: 480px) {
  .announcement-popup {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

/* Community / admin panel modal dialog */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.modal.open {
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 35, .55);
  opacity: 0;
  transition: opacity .2s ease;
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(8, 28, 62, .3);
  padding: 26px 24px 22px;
  opacity: 0;
  transform: translateY(12px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.modal.open .modal-card {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
  padding-right: 32px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* --------------------------------------------------------------------------
   WhatsApp contact float — bottom-left of every public page
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(18, 140, 84, .35);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s ease, transform .15s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
}

.whatsapp-float .whatsapp-icon {
  display: inline-flex;
}

@media (max-width: 620px) {
  .whatsapp-float {
    padding: 13px 15px;
  }

  .whatsapp-float .whatsapp-label {
    display: none;
  }
}

/* ==========================================================================
   Website Doctor — chunked upload, live progress, download list
   ========================================================================== */

.doctor-progress {
  position: relative;
  height: 10px;
  border-radius: 99px;
  background: var(--line, #e2e8f0);
  overflow: hidden;
  margin-bottom: 12px;
}

.doctor-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary, #1d4ed8), var(--green, #16a34a));
  border-radius: 99px;
  transition: width .3s ease;
}

.doctor-console {
  background: #0b1222;
  color: #a5f3ae;
  font-family: Consolas, Menlo, Monaco, monospace;
  font-size: .82rem;
  line-height: 1.75;
  border: 1px solid var(--line, #334155);
  border-radius: 10px;
  padding: 14px 16px;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.doctor-console .log-line::before {
  content: "▸ ";
  color: #38bdf8;
}

.doctor-console .log-line.warn::before {
  content: "⚠ ";
  color: #fbbf24;
}

.doctor-console .log-line.warn {
  color: #fde68a;
}

.doctor-console .log-line.ok::before {
  content: "✓ ";
  color: #34d399;
}

.doctor-console .log-line.ok {
  color: #a5f3ae;
}

.doctor-console .log-line.err::before {
  content: "✕ ";
  color: #ef4444;
}

.repair-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--card, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}

.repair-item:last-child {
  margin-bottom: 0;
}

.repair-meta strong {
  display: block;
  font-size: .9rem;
}

.repair-meta small {
  color: var(--text-soft, #64748b);
  font-size: .78rem;
}