/* ============================================================
   WEBSTROO – style.css (Optimized & Consistent)
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
}

:root {
  /* Brand */
  --primary:            #2563eb;
  --primary-dark:       #1d4ed8;
  --primary-light:      #dbeafe;
  --primary-soft:       #eff6ff;

  /* Text */
  --text-main:          #0f172a;
  --text-muted:         #64748b;
  --text-subtle:        #94a3b8;

  /* Backgrounds */
  --bg-white:           #ffffff;
  --bg-alt:             #f8fafc;
  --bg-dark:            #0f172a;

  /* Borders */
  --border:             #e2e8f0;
  --border-light:       #f1f5f9;

  /* Status */
  --success:            #10b981;
  --success-bg:         #dcfce7;
  --success-text:       #15803d;
  --warning-bg:         #fef9c3;
  --warning-text:       #854d0e;
  --danger:             #ef4444;
  --danger-bg:          #fee2e2;
  --danger-text:        #b91c1c;
  --info-bg:            #e0f2fe;
  --info-text:          #0369a1;
  --indigo-bg:          #eef2ff;
  --indigo-text:        #4338ca;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px 0 rgb(0 0 0 / .06);
  --shadow-sm:  0 1px 3px 0 rgb(0 0 0 / .08), 0 1px 2px -1px rgb(0 0 0 / .06);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / .07), 0 2px 4px -2px rgb(0 0 0 / .05);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / .07), 0 4px 6px -4px rgb(0 0 0 / .05);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / .08), 0 8px 10px -6px rgb(0 0 0 / .04);

  /* Transitions */
  --ease:       cubic-bezier(.4, 0, .2, 1);
  --t-fast:     .15s;
  --t-base:     .25s;
  --t-slow:     .4s;

  /* Layout */
  --max-w:          1100px;
  --max-w-wide:     1200px;
  --max-w-narrow:   900px;

  /* Nav height – used for sticky offsets */
  --nav-h:          64px;

  /* Spacing */
  --section-spacing: 80px;
  --section-spacing-mobile: 48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-white);
  overflow-x: hidden;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── Layout Utilities ─────────────────────────────────────── */
.container,
.main-wrapper {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-wide {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding-inline: 20px;
}

.container-narrow {
  max-width: var(--max-w-narrow);
  margin-inline: auto;
  padding-inline: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.w-full  { width: 100%; }
.mb-24   { margin-bottom: 24px; }

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ── Typography Utilities ─────────────────────────────────── */
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--text-muted); font-size: .85rem; }
.text-subtle   { color: var(--text-subtle); }
.text-center   { text-align: center; }
.text-error    { color: var(--danger); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Topbar / Header ──────────────────────────────────────── */
.topbar-modern {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 12px rgb(0 0 0 / .04);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

/* ── Desktop Nav ── */
.main-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.main-nav > a {
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}

.main-nav > a:hover {
  color: var(--text-main);
  background: var(--bg-alt);
}

.btn-nav-modern {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--r-pill) !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease) !important;
}
.btn-nav-modern:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* ── User Controls (desktop) ── */
.user-control {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--border-light);
  flex-shrink: 0;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.user-name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.user-role-badge {
  font-size: .68rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: .03em;
  margin-top: 2px;
}

.btn-logout-minimal {
  background: none;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  font-family: inherit;
}
.btn-logout-minimal:hover {
  background: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger-text);
}

/* ── Mobile Hamburger ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  color: var(--text-main);
  transition: color var(--t-fast);
}
.mobile-menu-btn:hover { color: var(--primary); }

/* ── Menu Overlay ── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / .35);
  z-index: 999;
  backdrop-filter: blur(2px);
}
.menu-overlay.active { display: block; }

/* ── Desktop breakpoint ── */
@media (min-width: 1024px) {
  .main-nav { display: flex; }
}

/* ── Mobile Nav ── */
@media (max-width: 1023px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

  .mobile-menu-btn { display: block; }

  .main-nav {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    background: var(--bg-white);
    box-shadow: -8px 0 32px rgb(0 0 0 / .12);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 25px 46px;
    gap: 4px;
    overflow-y: auto;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease);
    display: flex;
  }

  .main-nav.mobile-open { transform: translateX(0); }

  .main-nav > a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 1rem;
    border-bottom: none;
  }

  .main-nav > a:hover { background: var(--bg-alt); }

  .main-nav .user-control {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 20px;
    margin-top: 12px;
    gap: 12px;
  }

  .main-nav .user-info { align-items: flex-start; }

  .main-nav .btn-logout-minimal {
    width: 100%;
    text-align: center;
    padding: 10px;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--r-md);
  border: none;
  text-decoration: none;
  transition: all var(--t-base) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 16px -4px rgb(37 99 235 / .3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgb(37 99 235 / .4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-muted);
}

.btn-dark {
  background: var(--bg-dark);
  color: #fff;
  box-shadow: 0 4px 8px -2px rgb(0 0 0 / .2);
}
.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 700;
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-1px);
}

.btn-large { padding: 16px 36px; font-size: 1.05rem; }

.btn-modern {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  font-family: inherit;
}
.btn-modern:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-add {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast), transform var(--t-fast);
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-add:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-create-modern {
  background: var(--bg-dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 8px -2px rgb(0 0 0 / .2);
  text-decoration: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-create-modern:hover { background: #1e293b; transform: translateY(-1px); }

.btn-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: inherit;
  white-space: nowrap;
}
.btn-search:hover { background: var(--primary-dark); }

.btn-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: opacity var(--t-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-link:hover { opacity: .7; }

.btn-reset {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 9px 20px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t-fast);
  font-family: inherit;
}
.btn-reset:hover { background: var(--border-light); }

.btn-save-modern {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  margin-top: 8px;
  font-family: inherit;
}
.btn-save-modern:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-delete { border-color: var(--danger-bg); color: var(--danger); }
.btn-delete:hover { background: var(--danger-bg); border-color: var(--danger); }

.btn-delete-mini {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.btn-delete-mini:hover { color: var(--danger); background: var(--danger-bg); }

.btn-cancel,
.btn-cancel-text,
.btn-cancel-link {
  color: var(--text-muted);
  font-weight: 700;
  font-size: .9rem;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--t-fast);
  font-family: inherit;
}
.btn-cancel:hover,
.btn-cancel-text:hover,
.btn-cancel-link:hover { color: var(--text-main); }

.btn-submit-dark,
.btn-save {
  background: var(--bg-dark);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 32px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast);
  box-shadow: 0 4px 10px -2px rgb(0 0 0 / .2);
  font-family: inherit;
}
.btn-submit-dark:hover,
.btn-save:hover { background: #1e293b; transform: translateY(-1px); }

.btn-link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--bg-white);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.btn-link-back:hover {
  color: var(--text-main);
  border-color: var(--text-muted);
  background: var(--bg-alt);
}
.btn-link-back::before { content: '←'; margin-right: 2px; }

.btn-outline-support {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.btn-outline-support:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-purchase {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 8px 16px -4px rgb(37 99 235 / .3);
  font-family: inherit;
}
.btn-purchase:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgb(37 99 235 / .4);
}

.btn-action-table {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: .78rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-main);
  transition: background var(--t-fast), border-color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.btn-action-table:hover { background: var(--bg-alt); }

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: .93rem;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  border: none;
  font-family: inherit;
}
.btn-action.btn-save {
  background: var(--bg-dark);
  color: #fff;
  flex-grow: 1;
  justify-content: center;
}
.btn-action.btn-save:hover { background: #1e293b; transform: translateY(-1px); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.card-modern {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-xs);
}

.card-highlight {
  background: var(--primary-soft);
  border-color: rgb(37 99 235 / .12);
}

.card-modern-form {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  padding: 40px;
}

/* ── Feature Cards ────────────────────────────────────────── */
.feature-card {
  padding: 36px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  transition: all var(--t-slow) var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 100px; height: 100px;
  background: var(--primary-light);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0;
  transition: opacity var(--t-slow);
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.feature-card:hover::after { opacity: .35; }

.card-label {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.card-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast);
}
.card-link:hover { gap: 10px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.badge-default  { background: var(--bg-alt);       color: var(--text-muted); }
.badge-primary  { background: var(--primary);       color: #fff; }
.badge-success  { background: var(--success-bg);    color: var(--success-text); }
.badge-info     { background: var(--info-bg);       color: var(--info-text); }
.badge-warning  { background: var(--warning-bg);    color: var(--warning-text); }
.badge-danger   { background: var(--danger-bg);     color: var(--danger-text); }
.badge-indigo   { background: var(--indigo-bg);     color: var(--indigo-text); }

.badge-modern {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  font-size: .82rem;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--indigo-text);
  background: var(--indigo-bg);
  padding: 3px 9px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.status-pill,
.project-status,
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}

.status-pill.status-lead,
.status-lead         { background: var(--bg-alt);       color: var(--text-muted); }
.status-pill.status-on_progress,
.status-on_progress  { background: var(--info-bg);       color: var(--info-text); }
.status-pill.status-done,
.status-done         { background: var(--success-bg);    color: var(--success-text); }
.status-pill.status-revision,
.status-revision     { background: var(--warning-bg);    color: var(--warning-text); }
.status-pill.status-cancelled,
.status-cancelled    { background: var(--danger-bg);     color: var(--danger-text); }
.status-pill.status-other,
.status-other        { background: var(--bg-alt);        color: var(--text-muted); }

.status-pill.published { background: var(--success-bg); color: var(--success-text); }
.status-pill.draft     { background: var(--bg-alt);     color: var(--text-muted); }

.admin-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  vertical-align: middle;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-group,
.form-group-modern,
.form-row { margin-bottom: 20px; }

.form-row label,
.form-group-modern label,
.label-modern {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 7px;
}

.input-modern,
.select-modern,
.textarea-modern,
.form-control-modern,
.form-row input,
.form-row select,
.form-row textarea,
.input-search-modern {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: .95rem;
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.input-modern:focus,
.select-modern:focus,
.textarea-modern:focus,
.form-control-modern:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus,
.input-search-modern:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.input-modern::placeholder,
.input-search-modern::placeholder,
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--text-subtle); }

.select-modern,
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

textarea.input-modern,
.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.bg-notes {
  background: #fffbeb !important;
  border-color: #fef3c7 !important;
}
.bg-notes:focus {
  background: var(--bg-white) !important;
  border-color: var(--primary) !important;
}

.input-group {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.input-addon {
  padding: 12px 14px;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.input-group input { border: none; border-radius: 0; box-shadow: none; }
.input-group input:focus { box-shadow: none; }

.helper-text {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  color: var(--text-subtle);
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  cursor: pointer;
}
.check input[type="radio"],
.check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--bg-dark);
  height: 6px;
  cursor: pointer;
}
.range-modern { width: 100%; accent-color: var(--bg-dark); cursor: pointer; }

input[type="file"] {
  padding: 10px;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  width: 100%;
}

.source-row { display: flex; gap: 8px; align-items: stretch; }
.source-row .select-modern { flex: 1; }
.source-row .input-modern  { width: 110px; flex-shrink: 0; }

.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.form-footer,
.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.form-section-title {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin: 28px 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}
.form-section-title:first-of-type { margin-top: 0; }

.progress-container-input,
.progress-container-form {
  background: var(--bg-alt);
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

.info-box-modern {
  padding: 14px 16px;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .875rem;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ── Auth Layouts ─────────────────────────────────────────── */
.auth-container-modern,
.login-container-modern {
  display: flex;
  min-height: calc(100vh - 160px);
  width: 100%;
  gap: 20px;
}

.brand-panel-modern {
  flex: 1;
  background: var(--bg-dark);
  color: #fff;
  display: none;
  padding: 60px 52px;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--r-xl);
  margin: 20px 0;
  overflow: hidden;
  position: relative;
}
.brand-panel-modern::before {
  content: '';
  position: absolute;
  top: -120px; right: -100px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgb(37 99 235 / .18), transparent 70%);
  pointer-events: none;
}

.title-xl {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}

.brand-subtitle {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 36px;
}

.feature-list-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.f-item-modern {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.stats-grid-modern { display: flex; gap: 36px; }
.stat-box-modern .num {
  font-size: 2rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-box-modern .lab {
  font-size: .7rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .04em; margin-top: 4px;
}

.form-panel-modern {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card-modern,
.auth-card-modern {
  width: 100%;
  max-width: 420px;
}

.login-header,
.auth-header { margin-bottom: 28px; }

.login-header h1,
.auth-header h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.login-header p,
.auth-header p { color: var(--text-muted); font-size: .95rem; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-muted);
}
.link-modern { color: var(--primary); font-weight: 600; }
.link-modern:hover { text-decoration: underline; }

@media (min-width: 1024px) {
  .brand-panel-modern { display: flex; }
}

/* ── Page Head ────────────────────────────────────────────── */
.page-head {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.page-head h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-main);
  margin-bottom: 12px;
}
.page-head p { color: var(--text-muted); font-size: 1.1rem; }

.page-head-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.page-head-modern h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.page-head-modern .subtitle { color: var(--text-muted); font-size: .95rem; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 4px;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  padding: 96px 0 56px;
  text-align: center;
  position: relative;
}

.hero-h1 {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 72px 0;
}

@media (min-width: 640px) {
  .cta-group { flex-direction: row; }
}

/* ── Seller Banner ────────────────────────────────────────── */
.seller-banner {
  background: var(--bg-dark);
  border-radius: var(--r-xl);
  padding: 56px 40px;
  color: #fff;
  text-align: center;
  margin: var(--section-spacing) 0;
  position: relative;
  overflow: hidden;
}
.seller-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left,    rgb(37 99 235 / .12), transparent 60%),
    radial-gradient(ellipse at bottom right, rgb(37 99 235 / .08), transparent 60%);
  pointer-events: none;
}

.banner-h2 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 14px;
  position: relative;
}

.banner-p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 28px;
  line-height: 1.6;
  position: relative;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}
.footer-copy { color: var(--text-muted); font-size: .875rem; }

.footer-modern {
  padding: 48px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  margin-top: 60px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand h3 { font-weight: 800; font-size: 1rem; }
.footer-brand p  { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }
.footer-links a {
  color: var(--text-muted);
  font-size: .8rem;
  font-weight: 600;
  margin-left: 20px;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--text-main); }

/* ── Flash Alerts ─────────────────────────────────────────── */
.alert,
.alert-modern {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: .9rem;
}
.alert-success,
.alert-modern.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #bbf7d0;
}
.alert-error,
.alert-modern.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  border: 1px solid #fecaca;
}
.alert-info {
  background: var(--info-bg);
  color: var(--info-text);
  border: 1px solid #bae6fd;
}

/* ── Section Helpers ──────────────────────────────────────── */
.section { margin-bottom: var(--section-spacing); }

.section-header-centered {
  text-align: center;
  margin-bottom: 40px;
}
.section-header-centered h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.section-header-centered p { color: var(--text-muted); font-size: 1rem; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title h2 { font-size: 1.1rem; font-weight: 700; }

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--primary);
  margin-bottom: 8px;
}

.view-all {
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--t-fast), gap var(--t-fast);
}
.view-all:hover { color: var(--primary-dark); gap: 10px; }

/* ── Services Page ────────────────────────────────────────── */
.services-container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 40px 20px;
}

.pricing-card { display: flex; flex-direction: column; }
.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.04);
  z-index: 2;
}
.pricing-price-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 14px 0 4px;
}
.pricing-features { list-style: none; padding: 0; margin: 20px 0; flex-grow: 1; }
.pricing-features li {
  font-size: .875rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg-alt);
  color: var(--text-main);
  display: flex;
  align-items: center;
}
.pricing-features li::before {
  content: '–';
  margin-right: 10px;
  color: var(--primary);
  font-weight: 700;
}

.cta-container {
  background: var(--primary-soft);
  border: 1px solid rgb(37 99 235 / .1);
  border-radius: var(--r-xl);
  padding: 64px 32px;
  text-align: center;
}
.cta-container h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}

/* ── Contact Page ─────────────────────────────────────────── */
.contact-container {
  display: grid;
  gap: 28px;
  align-items: flex-start;
}

.form-card {
  border-radius: var(--r-xl);
  overflow: hidden;
}
.card-header-gradient {
  padding: 24px 28px;
  background: var(--bg-dark);
  color: #fff;
}
.card-header-gradient h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.card-header-gradient p  { color: #94a3b8; font-size: .9rem; }

.p-28 { padding: 28px; }

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.info-icon {
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  flex-shrink: 0;
}
.info-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.info-item p  { color: var(--text-muted); font-size: .875rem; }

.feature-list { list-style: none; padding: 0; }
.feature-list li {
  padding: 7px 0;
  font-size: .875rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
.feature-list li:last-child { border: none; }

.secure-text,
.secure-note {
  text-align: center;
  margin-top: 12px;
  font-size: .78rem;
  color: var(--text-subtle);
  line-height: 1.55;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
}

.icon-inline { flex-shrink: 0; }
.icon-large  { font-size: 2rem; display: block; margin-bottom: 10px; }

/* ── Portfolio ────────────────────────────────────────────── */
.portfolio-section { padding: 40px 0; }

.portfolio-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.portfolio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}
.portfolio-card p {
  font-size: .93rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}
.portfolio-meta {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
}
.meta-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 600;
}
.meta-value { color: var(--text-main); font-weight: 700; }

/* ── Progress Bars ────────────────────────────────────────── */
.progress-track,
.progress-bar-modern,
.progress-container-lg {
  height: 8px;
  background: var(--border-light);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.progress-fill,
.progress-fill-modern,
.progress-fill-lg {
  height: 100%;
  background: var(--bg-dark);
  border-radius: var(--r-pill);
  transition: width .5s var(--ease);
}

.progress-bar { height: 100%; background: var(--primary); border-radius: var(--r-pill); transition: width .5s var(--ease); }

/* ── UMKM Directory ───────────────────────────────────────── */
.directory-container { padding-bottom: 60px; }

.search-container { max-width: 680px; margin: 0 auto 44px; }

.search-wrapper {
  display: flex;
  gap: 10px;
  background: var(--bg-white);
  padding: 8px;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast);
}
.search-wrapper:focus-within { border-color: var(--primary); }
.search-wrapper input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: .97rem;
  outline: none;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
}
.search-wrapper.in-toolbar { flex: 1; min-width: 200px; }

.umkm-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  color: var(--text-main);
}
.umkm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgb(0 0 0 / .1);
  border-color: var(--primary);
}
.umkm-thumb {
  height: 180px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.umkm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.umkm-content { padding: 22px; display: flex; flex-direction: column; flex-grow: 1; }
.umkm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.umkm-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}
.umkm-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}
.umkm-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.product-count {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.view-link { color: var(--primary); font-weight: 700; font-size: .87rem; }

.empty-state {
  text-align: center;
  padding: 72px 40px;
  background: var(--bg-white);
  border-radius: var(--r-md);
  border: 2px dashed var(--border);
}

.cta-banner {
  background: var(--primary-soft);
  border: 1px solid rgb(37 99 235 / .1);
  padding: 28px;
  border-radius: var(--r-md);
  text-align: center;
  margin-top: 44px;
}

/* ── Marketplace ──────────────────────────────────────────── */
.toolbar-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 22px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
.label-mini {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.marketplace-card-link { display: block; text-decoration: none; color: inherit; }

.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.thumb-container {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.price-badge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: var(--text-main);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.product-info,
.product-content { padding: 20px; }

.meta-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.version-tag {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.availability-tag {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--success-text);
  background: var(--success-bg);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}
.btn-text {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary);
}

#emptyState {
  display: none;
  text-align: center;
  padding: 60px 40px;
  grid-column: 1 / -1;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  border: 2px dashed var(--border);
}
#emptyState h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
#emptyState p  { color: var(--text-muted); margin-bottom: 16px; }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard-container,
.container-modern {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: 32px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-xs);
}
.stat-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-subtle);
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-value.success { color: var(--success); }

.project-section,
.product-section {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: 26px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-xs);
}

.project-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.project-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
  color: var(--text-main);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border);
}

/* ── Projects List ────────────────────────────────────────── */
.project-title-link {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 18px;
  line-height: 1.4;
}

.meta-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-bottom: 20px;
}
.info-item label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 4px;
  letter-spacing: .03em;
}
.info-item span { font-size: .93rem; font-weight: 700; color: #334155; }

.deadline-urgent { color: var(--danger) !important; }

.progress-box { margin-top: auto; }
.progress-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}
.progress-label-row span { font-size: .75rem; font-weight: 700; color: var(--text-muted); }

.card-footer-modern {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: .7rem;
  color: var(--text-subtle);
  font-weight: 600;
}

.empty-state-modern {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 80px 40px;
  text-align: center;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }

/* ── Project Detail ───────────────────────────────────────── */
.container-detail {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: 20px;
}

.project-header-modern {
  background: var(--bg-white);
  padding: 28px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.breadcrumb-modern {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-subtle);
  margin-bottom: 10px;
  display: block;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.title-xl-modern {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
  letter-spacing: -.025em;
}

.action-group { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-back    { background: var(--border-light); color: var(--text-muted); border: none; }
.btn-edit    { background: var(--bg-dark); color: #fff; border: none; }
.btn-success-modern { background: var(--success-bg); color: var(--success-text); border: none; }

.detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
}

.sidebar-card {
  background: var(--bg-white);
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  height: fit-content;
}

.stat-item { margin-bottom: 22px; }
.stat-item label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 7px;
  letter-spacing: .04em;
}

.status-badge-lg {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-section {
  background: var(--bg-white);
  padding: 28px 32px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  margin-bottom: 22px;
}

.section-title-modern {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-body { color: var(--text-muted); line-height: 1.7; font-size: .97rem; }

.internal-note-box {
  background: var(--bg-alt);
  border-left: 3px solid var(--border);
  padding: 14px 16px;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-top: 18px;
}

.task-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  margin-bottom: 10px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.task-row:hover { border-color: var(--border); background: var(--bg-alt); }
.task-row.is-done .task-text { text-decoration: line-through; color: var(--text-subtle); }

.task-check-btn {
  background: none;
  border: 2px solid var(--border);
  width: 22px; height: 22px;
  border-radius: 6px;
  margin-right: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.task-row.is-done .task-check-btn { background: var(--success); border-color: var(--success); color: #fff; }

.nav-back { margin: 28px 0 24px; }

/* ── Digital Products Admin Table ─────────────────────────── */
.grid-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.card-table {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
}
.table-modern thead tr {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.table-modern th {
  padding: 13px 18px;
  text-align: left;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.table-modern td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
  font-size: .9rem;
  vertical-align: middle;
}
.table-modern tr:last-child td { border-bottom: none; }
.table-modern tr:hover td { background: var(--bg-alt); }

.img-preview {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
}
.price-tag { font-weight: 700; color: var(--primary); }

/* ── Finance Dashboard ────────────────────────────────────── */
.finance-container {
  max-width: var(--max-w-wide);
  margin-inline: auto;
  padding: 32px 20px;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card-modern {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
}
.stat-card-modern label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.stat-card-modern .amount {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-main);
}
.stat-card-modern.income .amount  { color: var(--primary); }
.stat-card-modern.expense .amount { color: var(--danger); }
.stat-card-modern.profit .amount  { color: var(--success); }

.finance-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.card-title-modern {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entry-list { display: flex; flex-direction: column; gap: 10px; }

.entry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--r-md);
  border: 1px solid var(--border-light);
  transition: background var(--t-fast);
}
.entry-item:hover { background: var(--border-light); }

.entry-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.entry-icon.income  { background: var(--success-bg); color: var(--success-text); }
.entry-icon.expense { background: var(--danger-bg);  color: var(--danger-text); }

.entry-details { flex: 1; min-width: 0; }
.entry-desc {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.entry-meta {
  display: block;
  font-size: .75rem;
  color: var(--text-subtle);
  margin-top: 2px;
}
.entry-value { text-align: right; flex-shrink: 0; }
.val-amount { display: block; font-weight: 700; font-size: .93rem; }
.val-amount.income  { color: var(--success); }
.val-amount.expense { color: var(--danger); }

/* ── Marketplace Detail ───────────────────────────────────── */
.grid-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 80px;
}

.product-main-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 20px;
}

.image-viewport {
  width: 100%;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
  max-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-body { padding: 32px; }

.badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.badge-group .badge-modern { margin-bottom: 0; font-size: .72rem; }

.product-body .product-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 24px;
}

.section-label {
  display: block;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-subtle);
  margin-bottom: 12px;
}

.prose {
  font-size: .97rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.features-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 32px;
}
.features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.features-list li {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.features-list li::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.sticky-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.price-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-subtle);
  margin-bottom: 6px;
}
.price-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1;
}

.support-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px 24px;
}
.support-card h4 { font-size: .97rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.support-card p  { font-size: .85rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 16px; }

/* ── Homepage Profile Card ────────────────────────────────── */
.profile-card-section {
  background: var(--bg-white);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin: 2rem 0 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: box-shadow var(--t-base);
}
.profile-card-section:hover { box-shadow: var(--shadow-xl); }

.profile-left {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1 1 60%;
}
.profile-left > div:first-child {
  flex-shrink: 0;
  background: var(--bg-alt);
  border-radius: 50%;
  padding: .25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.profile-details h3 {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-main);
  margin-bottom: .2rem;
  line-height: 1.2;
}
.profile-details .badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: .9rem;
  font-weight: 600;
  padding: .3rem 1.2rem;
  border-radius: 40px;
  margin: .5rem 0 .2rem;
  border: 1px solid var(--primary-light);
}
.profile-details p { font-size: 1rem; line-height: 1.6; color: var(--text-muted); }

.profile-button {
  background: var(--bg-dark);
  color: #fff;
  padding: .9rem 2.2rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  border: 1px solid #1e293b;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgb(15 23 42 / .1);
}
.profile-button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgb(15 23 42 / .15);
}
.profile-button .arrow-symbol {
  font-size: 1.3rem;
  transition: transform var(--t-fast);
}
.profile-button:hover .arrow-symbol { transform: translateX(4px); }

/* ── Demo Grid ────────────────────────────────────────────── */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
  margin-top: .5rem;
}

.demo-card {
  background: var(--bg-white);
  border-radius: var(--r-xl);
  padding: 1.8rem 1.2rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.demo-card:hover {
  transform: translateY(-6px);
  border-color: var(--border);
  box-shadow: var(--shadow-xl);
  background: #fcfdff;
}

.demo-logo {
  width: 90px; height: 90px;
  background: var(--bg-alt);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-main);
  letter-spacing: -.02em;
  border: 1px solid var(--border);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-transform: uppercase;
}
.demo-card:hover .demo-logo {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.demo-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--text-main);
  letter-spacing: -.01em;
}
.demo-info .demo-path {
  font-size: .78rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  background: var(--bg-alt);
  padding: .25rem .8rem;
  border-radius: var(--r-pill);
  display: inline-block;
  border: 1px solid var(--border-light);
  transition: background var(--t-fast);
  word-break: break-word;
}
.demo-card:hover .demo-path {
  background: var(--indigo-bg);
  border-color: var(--primary-light);
}

/* ── Why Choose Us ────────────────────────────────────────── */
.why-us {
  padding: 4rem 2rem;
  background: var(--bg-white);
  text-align: center;
  border-radius: 2rem;
  margin: 2rem 0;
}
.why-us .section-heading {
  font-size: 2.2rem;
  justify-content: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: .75rem;
  display: inline-flex;
}
.why-us .section-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: 4px;
}

.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--max-w-wide);
  margin: 0 auto;
}

.feature-item {
  background: var(--bg-alt);
  border-radius: 32px;
  padding: 2.5rem 1.8rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 20px -8px rgb(0 0 0 / .04);
  transition: all var(--t-slow) var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.feature-item:hover {
  transform: translateY(-8px);
  background: var(--bg-white);
  border-color: var(--border);
  box-shadow: var(--shadow-xl);
}
.feature-icon {
  margin-bottom: 1.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px; height: 100px;
  background: var(--indigo-bg);
  border-radius: 30px;
  transition: background var(--t-base), transform var(--t-fast);
  border: 1px solid var(--primary-light);
  flex-shrink: 0;
}
.feature-item:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.05);
}
.feature-icon lord-icon { display: block; width: 100px; height: 100px; }
.feature-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.feature-item p { font-size: .97rem; line-height: 1.7; color: var(--text-muted); margin: 0; }

/* ── Clients Marquee ──────────────────────────────────────── */
.clients-section {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.clients-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-main);
  margin-bottom: 2.5rem;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: fit-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-content:hover { animation-play-state: paused; }

.client-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  opacity: .8;
  transition: opacity var(--t-fast);
}
.client-logo:hover { opacity: 1; }
.client-logo img {
  height: 32px;
  width: auto;
  filter: grayscale(100%);
  transition: filter var(--t-fast);
}
.client-logo:hover img { filter: grayscale(0%); }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .4s var(--ease) both; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Optimized breakpoints
   ══════════════════════════════════════════════════════════ */

/* ── 1100px ── wide containers adjust ── */
@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ── 1024px ── tablet landscape ── */
@media (max-width: 1023px) {
  .stats-grid      { grid-template-columns: repeat(2, 1fr); }
  .grid-stats      { grid-template-columns: repeat(2, 1fr); }
  .finance-grid    { grid-template-columns: 1fr; }
  .detail-grid     { grid-template-columns: 1fr; }
  .sticky-sidebar  { position: static; }
  .pricing-card.featured { transform: scale(1); }
  .features-grid-3 { gap: 1.5rem; }
}

/* ── 900px ── tablet portrait ── */
@media (max-width: 900px) {
  .grid-detail           { grid-template-columns: 1fr; }
  .sticky-sidebar        { position: static; }
  .features-list         { grid-template-columns: 1fr; }
  .image-viewport        { max-height: 280px; }
  .contact-container     { grid-template-columns: 1fr; }
  .demo-grid             { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}

/* ── 768px ── small tablet ── */
@media (max-width: 768px) {
  :root { --section-spacing: var(--section-spacing-mobile); }

  .grid-2            { grid-template-columns: 1fr; }
  .grid-3            { grid-template-columns: repeat(2, 1fr); }
  .project-grid,
  .product-grid      { grid-template-columns: 1fr; }
  .meta-info-row     { grid-template-columns: 1fr; gap: 10px; }

  .page-head-modern  { flex-direction: column; align-items: flex-start; }
  .page-head h1      { font-size: 1.9rem; }

  .hero              { padding: 64px 0 40px; }
  .hero-p            { font-size: 1.05rem; }
  .services-grid     { grid-template-columns: 1fr; margin: 48px 0; }
  .seller-banner     { padding: 40px 24px; }
  .banner-h2         { font-size: 1.85rem; }

  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .grid-stats        { grid-template-columns: repeat(2, 1fr); }
  .finance-summary   { grid-template-columns: repeat(2, 1fr); }

  .auth-container-modern,
  .login-container-modern { flex-direction: column; min-height: auto; }
  .brand-panel-modern     { display: none; }
  .form-panel-modern      { padding: 24px 16px; }

  .cta-container     { padding: 40px 20px; }
  .cta-container h2  { font-size: 1.6rem; }

  .card, .card-modern   { padding: 20px; }
  .card-modern-form     { padding: 24px 20px; }
  .project-header-modern { padding: 20px; }
  .card-section         { padding: 20px; }
  .sidebar-card         { padding: 18px; }

  .form-footer,
  .form-footer-actions  { flex-direction: column; gap: 12px; }
  .btn-action.btn-save  { flex-grow: 0; width: 100%; }

  .toolbar-card      { flex-direction: column; align-items: stretch; }

  .profile-card-section  { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
  .profile-left          { width: 100%; gap: 1.2rem; }
  .profile-button        { width: 100%; justify-content: center; }

  .demo-grid             { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .demo-logo             { width: 75px; height: 75px; font-size: 1.7rem; border-radius: 22px; }

  .why-us                { padding: 3rem 1.5rem; }
  .why-us .section-heading { font-size: 1.9rem; }
  .features-grid-3       { grid-template-columns: repeat(2, 1fr); }
  .feature-item          { padding: 2rem 1.2rem 1.5rem; }
  .feature-icon          { width: 80px; height: 80px; border-radius: 24px; margin-bottom: 1.5rem; }
  .feature-icon lord-icon { width: 80px !important; height: 80px !important; }
  .feature-item h3       { font-size: 1.2rem; }

  .clients-section   { padding: 2.5rem 1rem; }
  .clients-title     { font-size: 1.5rem; margin-bottom: 2rem; }
  .marquee-content   { gap: 2rem; animation-duration: 25s; }
  .client-logo img   { height: 28px; }

  .section-header    { flex-direction: column; align-items: flex-start; }
}

/* ── 640px ── phone landscape ── */
@media (max-width: 640px) {
  .grid-3            { grid-template-columns: 1fr; }
  .search-wrapper    { flex-direction: column; }
  .btn-search        { width: 100%; justify-content: center; padding: 12px; }
  .services-container .grid-3 { grid-template-columns: 1fr; }
  .features-list     { grid-template-columns: 1fr; }
  .demo-grid         { grid-template-columns: repeat(2, 1fr); }
}

/* ── 480px ── phone portrait ── */
@media (max-width: 480px) {
  .hero-h1             { font-size: 2rem; }
  .banner-h2           { font-size: 1.6rem; }
  .title-xl-modern     { font-size: 1.5rem; }
  .page-head h1        { font-size: 1.75rem; }
  .page-head-modern h1 { font-size: 1.5rem; }
  .why-us .section-heading { font-size: 1.7rem; }

  .stats-grid          { grid-template-columns: 1fr; }
  .grid-stats          { grid-template-columns: 1fr; }
  .finance-summary     { grid-template-columns: 1fr; }
  .demo-grid           { grid-template-columns: 1fr; }
  .features-grid-3     { grid-template-columns: 1fr; max-width: 380px; margin-inline: auto; }

  .product-body        { padding: 18px; }
  .product-body .product-title { font-size: 1.3rem; }
  .price-value         { font-size: 1.55rem; }
  .action-card         { padding: 20px; }

  .card, .card-modern  { padding: 16px; }
  .feature-card        { padding: 24px; }

  .hero                { padding: 48px 0 32px; }
  .seller-banner       { padding: 28px 16px; margin: 48px 0; }

  .header-content      { flex-direction: column; }
  .action-group        { width: 100%; }
  .action-group .btn   { flex: 1; justify-content: center; }

  .profile-left        { flex-direction: column; align-items: flex-start; }
  .profile-details h3  { font-size: 1.6rem; }
  .feature-item        { padding: 2rem 1.5rem; }

  .marquee-content     { gap: 1.5rem; animation-duration: 20s; }
  .client-logo img     { height: 24px; }

  .mob-nav-item span   { display: none; }
  .mob-nav-item        { padding: 10px 4px; }
  .mob-nav-item svg    { width: 24px; height: 24px; }
}