:root {
  --pro-bg: #f4f7fb;
  --pro-surface: #ffffff;
  --pro-surface-2: #f8fafc;
  --pro-ink: #172033;
  --pro-muted: #64748b;
  --pro-soft: #e2e8f0;
  --pro-line: rgba(15, 23, 42, 0.1);
  --pro-primary: #123a8c;
  --pro-primary-2: #2563eb;
  --pro-primary-soft: #e8f0ff;
  --pro-gold: #f8b800;
  --pro-gold-2: #f59e0b;
  --pro-danger: #dc2626;
  --pro-success: #16a34a;
  --pro-radius-xs: 10px;
  --pro-radius: 18px;
  --pro-radius-lg: 28px;
  --pro-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --pro-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --pro-font: "Poppins", Arial, sans-serif;
}

body.dark-mode,
[data-theme="dark"] {
  --pro-bg: #071120;
  --pro-surface: #0f1b2f;
  --pro-surface-2: #111f35;
  --pro-ink: #f7fbff;
  --pro-muted: #b8c4d8;
  --pro-soft: #233656;
  --pro-line: rgba(226, 232, 240, 0.16);
  --pro-primary: #6ea8ff;
  --pro-primary-2: #3b82f6;
  --pro-primary-soft: rgba(59, 130, 246, 0.16);
  --pro-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --pro-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.25);
}

html {
  scroll-behavior: smooth;
}

body.pro-ui {
  background:
    radial-gradient(circle at 10% -10%, rgba(248, 184, 0, 0.18), transparent 28rem),
    radial-gradient(circle at 90% 6%, rgba(37, 99, 235, 0.12), transparent 30rem),
    var(--pro-bg);
  color: var(--pro-ink);
  font-family: var(--pro-font);
  letter-spacing: -0.01em;
}

body.pro-ui * {
  box-sizing: border-box;
}

body.pro-ui a {
  color: inherit;
}

body.pro-ui img {
  max-width: 100%;
}

body.pro-ui button,
body.pro-ui input,
body.pro-ui select,
body.pro-ui textarea {
  font-family: inherit;
}

.pro-ui .site-shell,
.pro-ui .wrap,
.pro-ui .layout,
.pro-ui .hero-section,
.pro-ui .market-section,
.pro-ui .showcase-panel,
.pro-ui .post-section,
.pro-ui .packages-section,
.pro-ui .contact-section,
.pro-ui .site-footer {
  width: min(1220px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.pro-ui .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--pro-line);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.dark-mode.pro-ui .site-header {
  background: rgba(7, 17, 32, 0.86);
}

.pro-ui .top-strip {
  background: linear-gradient(90deg, #0f2f73, #173d88 45%, #c48b00);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.pro-ui .brand-bar {
  margin-top: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: 24px;
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  box-shadow: var(--pro-shadow-soft);
  gap: 18px;
}

.pro-ui .brand-logo {
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--pro-line);
}

.pro-ui .brand-title h1,
.pro-ui .brand-title .brand-name {
  color: var(--pro-primary);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.pro-ui .brand-title p {
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 600;
}

.pro-ui .search-box {
  height: 54px;
  padding: 6px;
  border-radius: 18px;
  background: var(--pro-surface-2);
  border: 1px solid var(--pro-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pro-ui .search-box input {
  color: var(--pro-ink);
  font-weight: 650;
}

.pro-ui .search-box input::placeholder,
.pro-ui input::placeholder,
.pro-ui textarea::placeholder {
  color: #94a3b8;
}

.pro-ui .search-box button,
.pro-ui .primary-btn,
.pro-ui .post-submit,
.pro-ui .btn-primary {
  border: 0;
  color: #071120;
  background: linear-gradient(135deg, var(--pro-gold), #ffd84d);
  box-shadow: 0 12px 24px rgba(248, 184, 0, 0.28);
  font-weight: 900;
  border-radius: 15px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.pro-ui .search-box button:hover,
.pro-ui .primary-btn:hover,
.pro-ui .post-submit:hover,
.pro-ui .btn-primary:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 16px 32px rgba(248, 184, 0, 0.34);
}

.pro-ui .secondary-btn,
.pro-ui .ghost-btn,
.pro-ui .outline-btn,
.pro-ui .nav-actions button,
.pro-ui .nav-actions a,
.pro-ui .category-nav button,
.pro-ui .quick-chip {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--pro-line);
  background: var(--pro-surface);
  color: var(--pro-ink);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pro-ui .secondary-btn:hover,
.pro-ui .ghost-btn:hover,
.pro-ui .outline-btn:hover,
.pro-ui .nav-actions button:hover,
.pro-ui .nav-actions a:hover,
.pro-ui .category-nav button:hover,
.pro-ui .quick-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(248, 184, 0, 0.55);
  background: #fff8df;
}

.dark-mode.pro-ui .secondary-btn:hover,
.dark-mode.pro-ui .ghost-btn:hover,
.dark-mode.pro-ui .outline-btn:hover,
.dark-mode.pro-ui .nav-actions button:hover,
.dark-mode.pro-ui .nav-actions a:hover,
.dark-mode.pro-ui .category-nav button:hover,
.dark-mode.pro-ui .quick-chip:hover {
  background: rgba(248, 184, 0, 0.12);
}

.pro-ui .category-nav {
  padding: 12px 16px;
  border-radius: 22px;
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  box-shadow: var(--pro-shadow-soft);
  overflow-x: auto;
  scrollbar-width: none;
}

.pro-ui .category-nav::-webkit-scrollbar {
  display: none;
}

.pro-ui .theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--pro-line);
  background: var(--pro-surface);
  color: var(--pro-primary);
}

.pro-ui .commercial-hero {
  display: none !important;
}

.pro-ui .hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  min-height: 480px;
  margin-top: 18px;
  padding: 28px;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--pro-line);
  background:
    linear-gradient(120deg, rgba(7, 17, 32, 0.92), rgba(18, 58, 140, 0.76) 45%, rgba(248, 184, 0, 0.18)),
    var(--hero-image, url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80")) center/cover;
  box-shadow: var(--pro-shadow);
  color: #fff;
}

.pro-ui .hero-section::after {
  content: "";
  position: absolute;
  inset: auto -12% -20% 42%;
  height: 220px;
  background: radial-gradient(circle, rgba(248, 184, 0, 0.4), transparent 62%);
  pointer-events: none;
}

.pro-ui .hero-left,
.pro-ui .hero-summary {
  position: relative;
  z-index: 1;
}

.pro-ui .hero-left {
  align-self: center;
  max-width: 620px;
}

.pro-ui .hero-left .eyebrow,
.pro-ui .section-pill,
.pro-ui .panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #8a5a00;
  background: #fff7d6;
  border: 1px solid rgba(248, 184, 0, 0.5);
  font-size: 13px;
  font-weight: 900;
}

.dark-mode.pro-ui .hero-left .eyebrow,
.dark-mode.pro-ui .section-pill,
.dark-mode.pro-ui .panel-label {
  color: #ffe9a3;
  background: rgba(248, 184, 0, 0.13);
}

.pro-ui .hero-left h2,
.pro-ui .hero-left h1 {
  margin: 18px 0 14px;
  max-width: 620px;
  color: #fff;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.pro-ui .hero-left p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 650;
}

.pro-hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 22px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.22);
}

.pro-hero-search input {
  border: 0;
  outline: 0;
  min-height: 52px;
  padding: 0 16px;
  color: #0f172a;
  font-weight: 800;
  background: transparent;
}

.pro-hero-search button {
  min-width: 140px;
}

.pro-hero-chips,
.pro-category-rail,
.pro-trust-grid,
.pro-active-filters,
.pro-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pro-hero-chips {
  margin-top: 14px;
}

.pro-hero-chips button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

.pro-ui .hero-summary {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.pro-ui .hero-summary .summary-card {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.pro-ui .hero-summary .summary-card b {
  font-size: 24px;
  font-weight: 950;
}

.pro-ui .hero-summary .summary-card span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pro-section {
  width: min(1220px, calc(100% - 32px));
  margin: 18px auto;
  padding: 22px;
  border: 1px solid var(--pro-line);
  border-radius: 28px;
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow-soft);
}

.pro-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.pro-section-head h2 {
  margin: 10px 0 6px;
  color: var(--pro-ink);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.pro-section-head p {
  max-width: 520px;
  color: var(--pro-muted);
  line-height: 1.7;
  font-weight: 650;
}

.pro-category-card {
  flex: 1 1 180px;
  min-height: 132px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--pro-line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.86)),
    var(--pro-surface);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dark-mode.pro-ui .pro-category-card {
  background: linear-gradient(145deg, rgba(17, 31, 53, 0.96), rgba(15, 27, 47, 0.82));
}

.pro-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.13);
}

.pro-category-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: var(--pro-primary-soft);
  color: var(--pro-primary);
  font-size: 22px;
}

.pro-category-card h3 {
  margin: 0 0 6px;
  color: var(--pro-ink);
  font-size: 17px;
  font-weight: 950;
}

.pro-category-card p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
}

.pro-ui .market-section,
.pro-ui .showcase-panel,
.pro-ui .post-section,
.pro-ui .packages-section,
.pro-ui .contact-section,
.pro-ui .site-footer,
.pro-ui .sidebar,
.pro-ui .content {
  border: 1px solid var(--pro-line);
  border-radius: 28px;
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow-soft);
}

.pro-ui .layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.pro-ui .sidebar {
  position: sticky;
  top: 154px;
  padding: 18px;
}

.pro-ui .sidebar h2,
.pro-ui .content h2,
.pro-ui .packages-section h2,
.pro-ui .post-section h2 {
  color: var(--pro-ink);
  letter-spacing: -0.035em;
}

.pro-ui .filter-group label,
.pro-ui .form-grid label,
.pro-ui label {
  color: var(--pro-muted);
  font-weight: 850;
}

.pro-ui input,
.pro-ui select,
.pro-ui textarea {
  border: 1px solid var(--pro-line);
  border-radius: 16px;
  background: var(--pro-surface-2);
  color: var(--pro-ink);
  min-height: 48px;
  font-weight: 650;
}

.pro-ui textarea {
  min-height: 128px;
  line-height: 1.6;
}

.pro-ui input:focus,
.pro-ui select:focus,
.pro-ui textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.45);
}

.pro-active-filters {
  margin: 0 0 16px;
}

.pro-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--pro-line);
  background: var(--pro-primary-soft);
  color: var(--pro-primary);
  font-size: 13px;
  font-weight: 900;
}

.pro-filter-chip button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.1);
  color: inherit;
  cursor: pointer;
}

.pro-mobile-filter-btn {
  display: none;
  position: sticky;
  top: 82px;
  z-index: 60;
  width: calc(100% - 32px);
  margin: 12px auto;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid var(--pro-line);
  background: var(--pro-primary);
  color: #fff;
  font-weight: 950;
  box-shadow: var(--pro-shadow-soft);
}

.pro-ui .post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pro-ui .post-card,
.pro-listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--pro-line);
  background: var(--pro-surface);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pro-ui .post-card:hover,
.pro-listing-card:hover {
  transform: translateY(-3px);
  border-color: rgba(248, 184, 0, 0.54);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
}

.pro-listing-media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e2e8f0;
}

.pro-listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.002);
  transition: transform 0.28s ease;
}

.pro-listing-card:hover .pro-listing-media img {
  transform: scale(1.04);
}

.pro-badge-row {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #071120;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.pro-badge.gold {
  background: linear-gradient(135deg, var(--pro-gold), #ffe37a);
}

.pro-badge.dark {
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
}

.pro-card-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 8px;
  z-index: 3;
}

.pro-card-actions button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  cursor: pointer;
}

html[data-theme="dark"] .pro-card-actions button,
body.dark-mode .pro-card-actions button {
  background: rgba(15, 23, 42, 0.74);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

html[data-theme="dark"] .pro-card-actions button:hover,
body.dark-mode .pro-card-actions button:hover {
  background: rgba(255, 184, 0, 0.92);
  color: #111827;
  border-color: rgba(255, 184, 0, 0.96);
}

.pro-listing-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pro-listing-title {
  margin: 0;
  color: var(--pro-ink);
  font-size: 17px;
  line-height: 1.34;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.pro-price {
  color: #f43f5e;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.dark-mode.pro-ui .pro-price {
  color: #ffcd4d;
}

.pro-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pro-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pro-surface-2);
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 800;
}

.pro-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
  overflow: hidden;
  color: var(--pro-muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 650;
}

.pro-listing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pro-line);
}

.pro-seller {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 800;
}

.pro-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pro-primary), #60a5fa);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.pro-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #10213d;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.dark-mode.pro-ui .pro-card-cta {
  background: var(--pro-gold);
  color: #071120;
}

.pro-empty-state {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 1px dashed var(--pro-line);
  border-radius: 26px;
  text-align: center;
  background: var(--pro-surface-2);
}

.pro-empty-state h3 {
  margin: 0 0 8px;
  color: var(--pro-ink);
  font-size: 24px;
  font-weight: 950;
}

.pro-empty-state p {
  margin: 0 auto 18px;
  max-width: 520px;
  color: var(--pro-muted);
  line-height: 1.7;
}

.pro-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 22px;
  color: var(--pro-ink);
}

.pro-detail-gallery {
  overflow: hidden;
  border-radius: 28px;
  background: var(--pro-surface-2);
}

.pro-detail-gallery img {
  width: 100%;
  height: min(54vh, 520px);
  object-fit: cover;
}

.pro-detail-main,
.pro-detail-contact,
.pro-detail-info {
  padding: 20px;
  border: 1px solid var(--pro-line);
  border-radius: 26px;
  background: var(--pro-surface);
  box-shadow: var(--pro-shadow-soft);
}

.pro-detail-main {
  margin-top: 18px;
}

.pro-detail-title {
  margin: 12px 0;
  color: var(--pro-ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.pro-detail-price {
  color: #f43f5e;
  font-size: 30px;
  font-weight: 950;
}

.pro-detail-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.pro-info-item {
  padding: 14px;
  border-radius: 18px;
  background: var(--pro-surface-2);
}

.pro-info-item span {
  display: block;
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 850;
}

.pro-info-item b {
  display: block;
  margin-top: 5px;
  color: var(--pro-ink);
  font-size: 15px;
  font-weight: 950;
}

.pro-detail-contact {
  position: sticky;
  top: 128px;
  align-self: start;
}

.pro-contact-card h3 {
  margin: 12px 0 4px;
  color: var(--pro-ink);
  font-size: 22px;
  font-weight: 950;
}

.pro-contact-card p {
  color: var(--pro-muted);
  line-height: 1.65;
}

.pro-contact-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.pro-contact-actions a,
.pro-contact-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 15px;
  border: 0;
  text-decoration: none;
  font-weight: 950;
}

.pro-contact-actions .call {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}

.pro-contact-actions .zalo {
  background: #2563eb;
  color: #fff;
}

.pro-contact-actions .light {
  background: var(--pro-surface-2);
  color: var(--pro-ink);
  border: 1px solid var(--pro-line);
}

.pro-ui .modal-content {
  background: var(--pro-surface);
  color: var(--pro-ink);
  border: 1px solid var(--pro-line);
  border-radius: 28px;
  box-shadow: var(--pro-shadow);
}

.pro-ui .modal-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pro-surface-2);
  color: var(--pro-ink);
}

.pro-post-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 22px;
}

.pro-step {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--pro-line);
  border-radius: 18px;
  background: var(--pro-surface-2);
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 850;
}

.pro-step b {
  display: block;
  color: var(--pro-ink);
  font-size: 14px;
  margin-bottom: 4px;
}

.pro-step.active {
  background: linear-gradient(135deg, var(--pro-primary), #2563eb);
  color: rgba(255, 255, 255, 0.86);
}

.pro-step.active b {
  color: #fff;
}

.pro-form-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.pro-preview-card {
  position: sticky;
  top: 130px;
  align-self: start;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid var(--pro-line);
  background: var(--pro-surface-2);
}

.pro-preview-card h3 {
  margin: 0 0 10px;
  color: var(--pro-ink);
}

.pro-preview-card p {
  color: var(--pro-muted);
  line-height: 1.6;
  font-weight: 650;
}

.pro-preview-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.pro-preview-head h3 {
  margin: 0;
  font-size: 18px;
}

.pro-preview-head p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}

.pro-preview-listing {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: var(--pro-surface);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.pro-preview-image {
  position: relative;
  min-height: 150px;
  background:
    linear-gradient(135deg, rgba(15, 33, 61, 0.72), rgba(29, 78, 216, 0.36)),
    radial-gradient(circle at 20% 20%, rgba(248, 184, 0, 0.28), transparent 34%),
    #dbe4ef;
}

.pro-preview-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.pro-preview-image span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pro-preview-image.is-empty {
  display: grid;
  place-items: center;
}

.pro-preview-image.is-empty span {
  position: static;
  background: rgba(255, 255, 255, 0.86);
  color: #10213d;
}

.pro-preview-content {
  padding: 15px;
}

.pro-preview-title {
  color: var(--pro-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.32;
  margin-bottom: 8px;
}

.pro-preview-price {
  color: #f43f5e;
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 10px;
}

.pro-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.pro-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 700;
}

.pro-preview-content p {
  margin: 0;
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

body.pro-ui #postSection .ai-compose-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

body.pro-ui #postSection .ai-compose-sub {
  color: var(--pro-muted);
  font-size: 13px;
  line-height: 1.55;
}

body.pro-ui #postSection .ai-compose-trigger {
  flex: 0 0 auto;
  min-height: 50px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(79, 70, 229, 0.18) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #ffffff, #eef2ff) !important;
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.12) !important;
}

body.pro-ui #postSection .ai-trigger-badge {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, #6d5dfc, #2563eb);
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.26);
}

body.pro-ui #postSection .ai-support-panel {
  position: relative;
  overflow: hidden;
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(99, 102, 241, 0.18) !important;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(239,246,255,.92)) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

body.pro-ui #postSection .ai-support-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #6d5dfc, #f8b800);
}

body.pro-ui #postSection .ai-support-header,
body.pro-ui #postSection .ai-result-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.pro-ui #postSection .ai-support-header > div,
body.pro-ui #postSection .ai-result-head > div {
  display: grid;
  gap: 3px;
}

body.pro-ui #postSection .ai-support-header strong,
body.pro-ui #postSection .ai-result-head strong {
  color: var(--pro-ink) !important;
  font-size: 16px !important;
  line-height: 1.25;
}

body.pro-ui #postSection .ai-support-header small,
body.pro-ui #postSection .ai-result-head small {
  color: var(--pro-muted);
  font-size: 12.5px;
  font-weight: 600;
}

body.pro-ui #postSection .ai-support-copy {
  margin: 0;
  max-width: 720px;
  color: var(--pro-muted) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  font-weight: 500;
}

body.pro-ui #postSection .ai-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.pro-ui #postSection .ai-support-actions span,
body.pro-ui #postSection .ai-tag-row b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}

body.pro-ui #postSection .ai-tip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.pro-ui #postSection .ai-tip-card {
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.76);
}

body.pro-ui #postSection .ai-tip-card.primary {
  background: linear-gradient(135deg, rgba(16, 33, 61, 0.98), rgba(37, 99, 235, 0.92));
  color: #fff;
}

body.pro-ui #postSection .ai-tip-card.wide {
  grid-column: 1 / -1;
}

body.pro-ui #postSection .ai-tip-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--pro-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.pro-ui #postSection .ai-tip-card.primary span {
  color: rgba(255, 255, 255, 0.72);
}

body.pro-ui #postSection .ai-tip-card strong {
  color: inherit !important;
  font-size: 14px !important;
  line-height: 1.45;
}

body.pro-ui #postSection .ai-tip-card p,
body.pro-ui #postSection .ai-tip-card li {
  margin: 0;
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

body.pro-ui #postSection .ai-tip-card ul {
  margin: 0;
  padding-left: 18px;
}

body.pro-ui #postSection .ai-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

body.pro-ui #postSection .ai-skeleton-line {
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(148,163,184,.22), rgba(99,102,241,.22), rgba(148,163,184,.22));
  background-size: 220% 100%;
  animation: aiLineLoading 1.2s ease-in-out infinite;
}

body.pro-ui #postSection .ai-skeleton-line.short {
  width: 64%;
}

@keyframes aiLineLoading {
  0% { background-position: 0 0; }
  100% { background-position: -220% 0; }
}

@media (max-width: 760px) {
  body.pro-ui #postSection .ai-compose-row {
    align-items: stretch;
    flex-direction: column;
  }

  body.pro-ui #postSection .ai-compose-trigger {
    width: 100%;
    justify-content: flex-start !important;
  }

  body.pro-ui #postSection .ai-tip-list {
    grid-template-columns: 1fr;
  }
}

.pro-ui .package-groups,
.pro-ui .plan-grid {
  gap: 16px;
}

.pro-ui .plan-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--pro-line);
  background: linear-gradient(180deg, var(--pro-surface), var(--pro-surface-2));
  box-shadow: var(--pro-shadow-soft);
}

.pro-ui .plan-card.recommended,
.pro-ui .plan-card[data-pro-recommended="true"] {
  border-color: rgba(248, 184, 0, 0.7);
  box-shadow: 0 22px 52px rgba(248, 184, 0, 0.16);
}

.pro-plan-benefits {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--pro-muted);
  font-size: 13px;
  font-weight: 700;
}

.pro-plan-benefits li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--pro-success);
  font-weight: 950;
}

.pro-ui .contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  padding: 26px;
}

.pro-ui .contact-copy {
  padding: 24px;
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(18, 58, 140, 0.92), rgba(7, 17, 32, 0.94)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80") center/cover;
  color: #fff;
}

.pro-ui .contact-copy h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

.pro-ui .contact-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.pro-ui .contact-form {
  padding: 24px;
  border-radius: 26px;
  background: var(--pro-surface-2);
}

.pro-ui .site-footer {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 26px;
}

.pro-ui .site-footer,
.pro-ui .footer-grid {
  color: var(--pro-ink);
}

.pro-ui .footer-grid p,
.pro-ui .footer-grid a,
.pro-ui .footer-grid li {
  color: var(--pro-muted);
}

.pro-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: 18px;
  background: #10213d;
  color: #fff;
  box-shadow: var(--pro-shadow);
  font-weight: 850;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pro-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.pro-skeleton {
  position: relative;
  min-height: 240px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--pro-surface-2), rgba(148, 163, 184, 0.14), var(--pro-surface-2));
  background-size: 220% 100%;
  animation: pro-shimmer 1.1s infinite linear;
}

@keyframes pro-shimmer {
  to {
    background-position: -220% 0;
  }
}

.fade-in {
  animation: pro-fade 0.25s ease both;
}

@keyframes pro-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.pro-ui .showcase-dots {
  display: none !important;
}

.pro-ui .showcase-nav {
  opacity: 0.9;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.15);
}

body.dark-mode.pro-ui .market-section,
body.dark-mode.pro-ui .showcase-panel,
body.dark-mode.pro-ui .post-section,
body.dark-mode.pro-ui .packages-section,
body.dark-mode.pro-ui .contact-section,
body.dark-mode.pro-ui .site-footer,
body.dark-mode.pro-ui .sidebar,
body.dark-mode.pro-ui .content,
body.dark-mode.pro-ui .pro-section {
  background: var(--pro-surface);
  color: var(--pro-ink);
}

body.dark-mode.pro-ui .plan-card,
body.dark-mode.pro-ui .post-card,
body.dark-mode.pro-ui .pro-listing-card,
body.dark-mode.pro-ui .pro-detail-main,
body.dark-mode.pro-ui .pro-detail-contact,
body.dark-mode.pro-ui .pro-detail-info {
  background: #101c30;
}

body.dark-mode.pro-ui .pro-ui-text-fix,
body.dark-mode.pro-ui h1,
body.dark-mode.pro-ui h2,
body.dark-mode.pro-ui h3,
body.dark-mode.pro-ui h4,
body.dark-mode.pro-ui p,
body.dark-mode.pro-ui label,
body.dark-mode.pro-ui span,
body.dark-mode.pro-ui td,
body.dark-mode.pro-ui th {
  color: inherit;
}

@media (max-width: 1100px) {
  .pro-ui .layout,
  .pro-detail,
  .pro-ui .contact-section,
  .pro-form-shell {
    grid-template-columns: 1fr;
  }

  .pro-ui .sidebar,
  .pro-detail-contact,
  .pro-preview-card {
    position: static;
  }

  .pro-ui .post-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pro-ui .site-shell,
  .pro-ui .wrap,
  .pro-ui .layout,
  .pro-ui .hero-section,
  .pro-ui .market-section,
  .pro-ui .showcase-panel,
  .pro-ui .post-section,
  .pro-ui .packages-section,
  .pro-ui .contact-section,
  .pro-ui .site-footer,
  .pro-section {
    width: min(100% - 18px, 680px);
  }

  .pro-ui .brand-bar {
    grid-template-columns: 56px 1fr;
    padding: 12px;
    border-radius: 22px;
  }

  .pro-ui .search-box {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pro-ui .nav-actions {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .pro-ui .category-nav {
    border-radius: 18px;
  }

  .pro-ui .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 20px;
    border-radius: 26px;
  }

  .pro-ui .hero-left h2,
  .pro-ui .hero-left h1 {
    font-size: 38px;
  }

  .pro-hero-search {
    grid-template-columns: 1fr;
  }

  .pro-hero-search button {
    width: 100%;
  }

  .pro-ui .hero-summary {
    grid-template-columns: 1fr 1fr;
  }

  .pro-section-head {
    display: block;
  }

  .pro-ui .layout {
    display: block;
  }

  .pro-mobile-filter-btn {
    display: block;
  }

  .pro-ui .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 120;
    max-height: 82vh;
    overflow-y: auto;
    width: 100%;
    border-radius: 26px 26px 0 0;
    transform: translateY(110%);
    transition: transform 0.24s ease;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.2);
  }

  .filter-sheet-open .pro-ui .sidebar,
  body.filter-sheet-open.pro-ui .sidebar {
    transform: translateY(0);
  }

  body.filter-sheet-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 119;
    background: rgba(15, 23, 42, 0.44);
  }

  .pro-filter-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-bottom: 12px;
    border: 0;
    border-radius: 16px;
    background: var(--pro-surface-2);
    color: var(--pro-ink);
    font-weight: 950;
  }

  .pro-listing-media {
    height: 188px;
  }

  .pro-detail-gallery img {
    height: 320px;
  }

  .pro-detail-info,
  .pro-post-stepper {
    grid-template-columns: 1fr;
  }

  .pro-ui .contact-section {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .pro-ui .hero-summary {
    grid-template-columns: 1fr;
  }

  .pro-ui .hero-left h2,
  .pro-ui .hero-left h1 {
    font-size: 32px;
  }

  .pro-listing-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .pro-card-cta {
    width: 100%;
  }
}

/* Product polish pass: lighter marketplace feel, tighter listing scan, cleaner support actions. */
body.pro-ui:not(.dark-mode) {
  --pro-bg: #f7f8f2;
  --pro-surface: #ffffff;
  --pro-surface-2: #f6f8fb;
  --pro-ink: #182233;
  --pro-muted: #657386;
  --pro-line: rgba(24, 34, 51, 0.1);
  --pro-shadow: 0 20px 52px rgba(22, 32, 50, 0.1);
  --pro-shadow-soft: 0 10px 26px rgba(22, 32, 50, 0.07);
}

.pro-ui .site-shell {
  padding-bottom: 14px;
}

.pro-ui .brand-bar {
  display: grid !important;
  grid-template-columns: auto minmax(180px, 0.72fr) minmax(320px, 1.35fr) auto !important;
  align-items: center !important;
  min-height: 98px;
}

.pro-ui .brand-title h1,
.pro-ui .brand-title .brand-name {
  font-size: clamp(24px, 2.5vw, 36px) !important;
}

.pro-ui .brand-title p {
  max-width: 360px;
  line-height: 1.35;
}

.pro-ui .nav-actions {
  justify-content: flex-end;
}

.pro-ui .nav-actions .primary-btn,
.pro-ui .nav-actions .post-btn,
.pro-ui .nav-actions [onclick*="scrollToPost"] {
  background: #10213d !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(16, 33, 61, 0.14) !important;
}

.pro-ui .main-nav,
.pro-ui .category-nav {
  align-items: center;
  gap: 8px;
}

.pro-ui .category-nav a,
.pro-ui .category-nav button,
.pro-ui .main-nav a,
.pro-ui .main-nav button {
  min-height: 38px !important;
  padding: 0 15px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

.pro-ui .hero-section {
  min-height: 430px;
  padding: clamp(22px, 4vw, 46px);
  background:
    linear-gradient(90deg, rgba(12, 28, 53, 0.86) 0%, rgba(18, 58, 140, 0.66) 43%, rgba(255, 255, 255, 0.08) 100%),
    var(--hero-image, url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80")) center/cover !important;
}

.pro-ui .hero-left h1,
.pro-ui .hero-left h2 {
  max-width: 680px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 0.98;
}

.pro-ui .hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pro-ui .hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.pro-ui .hero-cta {
  margin-top: 18px;
}

.pro-ui .hero-summary .summary-card {
  box-shadow: none;
}

.pro-region-section .pro-category-rail {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
}

.pro-region-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--pro-line);
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: var(--pro-shadow-soft);
  cursor: pointer;
}

.pro-region-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(248, 184, 0, 0.22);
}

.pro-region-card strong {
  display: block;
  color: var(--pro-ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.pro-region-card span {
  display: inline-flex;
  margin: 14px 0 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff7d6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 900;
}

.pro-region-card p {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin: 0;
  color: var(--pro-muted);
  line-height: 1.6;
  font-weight: 700;
}

.pro-ui .market-section {
  padding: 24px !important;
}

.pro-ui .market-card {
  border-radius: 22px !important;
  background: var(--pro-surface-2) !important;
  border: 1px solid var(--pro-line) !important;
  box-shadow: none !important;
}

.pro-ui .market-card strong {
  color: var(--pro-ink) !important;
}

.pro-ui .showcase-panel {
  padding: 22px !important;
}

.pro-ui .showcase-track {
  gap: 14px !important;
}

.pro-ui .showcase-card,
.pro-ui .showcase-card.is-primary {
  width: 340px !important;
  min-width: 340px !important;
  flex-basis: 340px !important;
  border-radius: 22px !important;
  background: var(--pro-surface) !important;
  border: 1px solid var(--pro-line) !important;
  box-shadow: var(--pro-shadow-soft) !important;
}

.pro-ui .showcase-card .post-image,
.pro-ui .showcase-card .card-media,
.pro-ui .showcase-card .showcase-image {
  height: 190px !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

.pro-ui .showcase-card .post-title,
.pro-ui .showcase-card .card-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 42px;
  overflow: hidden;
  color: var(--pro-ink) !important;
  font-size: 16px !important;
  line-height: 1.32 !important;
  font-weight: 950 !important;
}

.pro-ui .showcase-card .post-price,
.pro-ui .showcase-card .card-price {
  color: #f43f5e !important;
  font-size: 17px !important;
  font-weight: 950 !important;
}

.pro-ui .post-list,
.pro-ui #postList.cards-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
}

@media (min-width: 980px) {
  .pro-ui #postList .pro-listing-card {
    display: grid !important;
    grid-template-columns: 230px minmax(0, 1fr) !important;
    min-height: 218px !important;
  }

  .pro-ui #postList .pro-listing-media {
    height: 100% !important;
    min-height: 218px !important;
  }

  .pro-ui #postList .pro-listing-body {
    padding: 14px 16px !important;
  }
}

.pro-ui #postList .pro-listing-card {
  border-radius: 22px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.075) !important;
}

.pro-ui #postList .pro-listing-title {
  font-size: 17px !important;
  line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pro-ui #postList .pro-desc {
  min-height: auto !important;
  -webkit-line-clamp: 1;
}

.pro-ui #postList .pro-listing-footer {
  margin-top: auto;
  padding-top: 10px !important;
}

.pro-ui #postList .pro-meta {
  min-height: 28px;
  padding: 5px 9px;
}

.pro-ui #postList .pro-card-cta[href^="tel"] {
  display: none;
}

.pro-ui .post-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px auto 6px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(215, 226, 239, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.pro-ui .post-page-set {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pro-ui .post-page-btn,
.pro-ui .post-page-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #243247;
  font-family: var(--pro-font);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pro-ui .post-page-btn {
  padding: 0 16px;
}

.pro-ui .post-page-nav {
  width: 40px;
  padding: 0;
  font-size: 22px;
}

.pro-ui .post-page-btn:hover,
.pro-ui .post-page-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 0, 0.75);
  background: #fff8dd;
  color: #7a4f00;
}

.pro-ui .post-page-btn.is-active {
  border-color: rgba(255, 184, 0, 0.92);
  background: linear-gradient(180deg, #ffd34d 0%, #ffb800 100%);
  color: #2a1b00;
  box-shadow: 0 10px 20px rgba(255, 184, 0, 0.22);
}

.pro-ui .post-page-nav:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pro-ui .post-page-summary {
  flex-basis: 100%;
  text-align: center;
  color: var(--pro-muted);
  font-size: 12px;
  font-weight: 700;
}

.dark-mode.pro-ui .post-pagination,
html[data-theme="dark"] body.pro-ui .post-pagination {
  border-color: rgba(93, 120, 158, 0.72);
  background: rgba(16, 28, 48, 0.92);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.dark-mode.pro-ui .post-page-btn,
.dark-mode.pro-ui .post-page-nav,
html[data-theme="dark"] body.pro-ui .post-page-btn,
html[data-theme="dark"] body.pro-ui .post-page-nav {
  border-color: rgba(93, 120, 158, 0.86);
  background: #15243b;
  color: #e8eef8;
}

.dark-mode.pro-ui .post-page-btn:hover,
.dark-mode.pro-ui .post-page-nav:hover:not(:disabled),
html[data-theme="dark"] body.pro-ui .post-page-btn:hover,
html[data-theme="dark"] body.pro-ui .post-page-nav:hover:not(:disabled) {
  border-color: rgba(255, 196, 57, 0.9);
  background: rgba(255, 196, 57, 0.14);
  color: #ffe7a3;
}

.dark-mode.pro-ui .post-page-btn.is-active,
html[data-theme="dark"] body.pro-ui .post-page-btn.is-active {
  border-color: rgba(255, 196, 57, 0.94);
  background: linear-gradient(180deg, #ffd85a 0%, #ffb800 100%);
  color: #081321;
}

.pro-ui .sidebar .panel,
.pro-ui .sidebar section,
.pro-ui .filter-box {
  border-radius: 20px !important;
  border: 1px solid var(--pro-line) !important;
  background: var(--pro-surface) !important;
  box-shadow: none !important;
}

.pro-ui .sidebar input,
.pro-ui .sidebar select {
  min-height: 42px;
  border-radius: 13px;
}

.pro-ui .plan-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.pro-ui .plan-card {
  min-height: 190px !important;
  padding: 18px !important;
}

.pro-ui .plan-card strong {
  color: var(--pro-ink) !important;
  font-size: 18px !important;
  font-weight: 950 !important;
}

.pro-ui .plan-price {
  color: var(--pro-primary) !important;
  font-size: 30px !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em;
}

.pro-ui .plan-card.recommended::before,
.pro-ui .plan-card[data-pro-recommended="true"]::before {
  content: "Đề xuất";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #10213d;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.pro-ui .contact-section {
  align-items: stretch;
  padding: 20px !important;
}

.pro-ui .contact-copy,
.pro-ui .contact-form {
  min-height: 420px;
}

.pro-ui .contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pro-ui .contact-form {
  display: grid;
  align-content: center;
}

.pro-ui .site-footer {
  display: grid !important;
  grid-template-columns: 1.05fr 1.55fr !important;
  gap: 28px !important;
  background: #fff !important;
}

.pro-ui .footer-brand {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
}

.pro-ui .footer-logo {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
  border-radius: 20px !important;
  background: #fff;
  border: 1px solid var(--pro-line);
}

.pro-ui .footer-brand strong {
  color: var(--pro-primary) !important;
  font-size: 24px !important;
  font-weight: 950 !important;
}

.pro-ui .footer-cols {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.pro-ui .footer-cols h4 {
  color: var(--pro-ink) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pro-ui .footer-cols a {
  display: block;
  margin-top: 9px;
  color: var(--pro-muted) !important;
  text-decoration: none;
  font-weight: 750;
}

.pro-ui .floating-actions {
  right: 16px !important;
  bottom: 16px !important;
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  z-index: 90 !important;
}

.pro-ui .floating-btn {
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  font-size: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16) !important;
}

.pro-ui .floating-btn::before {
  font-size: 18px;
  font-weight: 950;
}

.pro-ui .floating-zalo::before {
  content: "Z";
}

.pro-ui .floating-messenger::before {
  content: "💬";
}

.pro-ui .floating-call::before {
  content: "☎";
}

.pro-ui .chat-popup-pro {
  right: 84px !important;
  bottom: 18px !important;
  border-radius: 22px !important;
  border: 1px solid var(--pro-line) !important;
  box-shadow: var(--pro-shadow) !important;
}

.dark-mode.pro-ui .pro-region-card,
.dark-mode.pro-ui .site-footer {
  background: #0f1b2f !important;
}

.dark-mode.pro-ui .showcase-card,
.dark-mode.pro-ui #postList .pro-listing-card,
.dark-mode.pro-ui .plan-card {
  background: #101c30 !important;
}

@media (max-width: 1100px) {
  .pro-ui .brand-bar {
    grid-template-columns: auto 1fr !important;
  }

  .pro-ui .search-box,
  .pro-ui .nav-actions {
    grid-column: 1 / -1;
  }

  .pro-region-section .pro-category-rail,
  .pro-ui .plan-grid,
  .pro-ui .site-footer {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .pro-ui .hero-section {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(12, 28, 53, 0.88), rgba(18, 58, 140, 0.72)),
      var(--hero-image, url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80")) center/cover !important;
  }

  .pro-ui .hero-points {
    display: none;
  }

  .pro-ui .showcase-card,
  .pro-ui .showcase-card.is-primary {
    width: 78vw !important;
    min-width: 78vw !important;
    flex-basis: 78vw !important;
  }

  .pro-ui .showcase-card .post-image,
  .pro-ui .showcase-card .card-media,
  .pro-ui .showcase-card .showcase-image {
    height: 160px !important;
  }

  .pro-ui .footer-brand,
  .pro-ui .footer-cols {
    grid-template-columns: 1fr !important;
  }

  .pro-ui .floating-actions {
    right: 10px !important;
    bottom: 74px !important;
  }

  .pro-ui .floating-btn {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
  }

  .pro-ui .chat-popup-pro {
    left: 10px !important;
    right: 10px !important;
    bottom: 132px !important;
    width: auto !important;
  }
}

/* Featured listings spacing fix: keep cards compact like a marketplace rail. */
.pro-ui .showcase-carousel-shell {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pro-ui .showcase-viewport {
  overflow: hidden !important;
  padding: 0 !important;
}

.pro-ui .showcase-track,
body.pro-ui .showcase-track,
html body.pro-ui .showcase-track#showcaseTrack {
  display: flex !important;
  grid-auto-flow: unset !important;
  grid-auto-columns: unset !important;
  grid-template-columns: none !important;
  justify-content: flex-start !important;
  justify-items: stretch !important;
  align-items: stretch !important;
  gap: 20px !important;
  column-gap: 20px !important;
  row-gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 2px 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
}

.pro-ui .showcase-card,
.pro-ui .showcase-card.is-primary,
body.pro-ui .showcase-track .showcase-card,
html body.pro-ui .showcase-track#showcaseTrack > .showcase-card {
  flex: 0 0 calc((100% - 40px) / 3) !important;
  width: calc((100% - 40px) / 3) !important;
  min-width: 300px !important;
  max-width: 380px !important;
  margin: 0 !important;
  scroll-snap-align: start !important;
}

@media (max-width: 980px) {
  .pro-ui .showcase-track,
  body.pro-ui .showcase-track,
  html body.pro-ui .showcase-track#showcaseTrack {
    gap: 18px !important;
    column-gap: 18px !important;
  }

  .pro-ui .showcase-card,
  .pro-ui .showcase-card.is-primary,
  body.pro-ui .showcase-track .showcase-card,
  html body.pro-ui .showcase-track#showcaseTrack > .showcase-card {
    flex-basis: min(360px, 76vw) !important;
    width: min(360px, 76vw) !important;
    min-width: min(300px, 76vw) !important;
    max-width: min(360px, 76vw) !important;
  }
}

@media (max-width: 520px) {
  .pro-ui .showcase-track,
  body.pro-ui .showcase-track,
  html body.pro-ui .showcase-track#showcaseTrack {
    gap: 16px !important;
    column-gap: 16px !important;
  }

  .pro-ui .showcase-card,
  .pro-ui .showcase-card.is-primary,
  body.pro-ui .showcase-track .showcase-card,
  html body.pro-ui .showcase-track#showcaseTrack > .showcase-card {
    flex-basis: 82vw !important;
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 82vw !important;
  }
}

/* Global typography system: one Vietnamese-safe commercial font stack everywhere. */
:root {
  --font-body: "Poppins", Arial, sans-serif !important;
  --font-display: "Poppins", Arial, sans-serif !important;
  --pro-font: "Poppins", Arial, sans-serif !important;
}

html,
body,
body.pro-ui,
body.pro-ui *,
body.pro-ui *::before,
body.pro-ui *::after {
  font-family: var(--pro-font) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.pro-ui {
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.006em;
}

body.pro-ui h1,
body.pro-ui h2,
body.pro-ui h3,
body.pro-ui h4,
body.pro-ui h5,
body.pro-ui h6,
body.pro-ui .brand,
body.pro-ui #siteName,
body.pro-ui .brand-name,
body.pro-ui .section-title,
body.pro-ui .pricing-title,
body.pro-ui .post-title,
body.pro-ui .card-title,
body.pro-ui .pro-listing-title,
body.pro-ui .pro-detail-title,
body.pro-ui .footer-brand strong {
  font-family: var(--pro-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.028em !important;
  line-height: 1.16 !important;
}

body.pro-ui h1,
body.pro-ui .hero-left h1,
body.pro-ui .hero-left h2 {
  font-weight: 700 !important;
  letter-spacing: -0.038em !important;
}

body.pro-ui p,
body.pro-ui li,
body.pro-ui td,
body.pro-ui th,
body.pro-ui label,
body.pro-ui small,
body.pro-ui span,
body.pro-ui a,
body.pro-ui input,
body.pro-ui select,
body.pro-ui textarea {
  font-family: var(--pro-font) !important;
  line-height: 1.55;
}

body.pro-ui p,
body.pro-ui li,
body.pro-ui td,
body.pro-ui input,
body.pro-ui select,
body.pro-ui textarea {
  font-weight: 400;
}

body.pro-ui label,
body.pro-ui th,
body.pro-ui .pro-meta,
body.pro-ui .pro-badge,
body.pro-ui .section-pill,
body.pro-ui .panel-label,
body.pro-ui .tiny-title,
body.pro-ui .soft-badge {
  font-weight: 600 !important;
  letter-spacing: -0.004em !important;
}

body.pro-ui button,
body.pro-ui .btn,
body.pro-ui .primary-btn,
body.pro-ui .secondary-btn,
body.pro-ui .ghost-btn,
body.pro-ui .outline-btn,
body.pro-ui .pro-card-cta,
body.pro-ui .floating-btn {
  font-family: var(--pro-font) !important;
  font-weight: 600 !important;
  letter-spacing: -0.006em !important;
}

body.pro-ui strong,
body.pro-ui b,
body.pro-ui .pro-price,
body.pro-ui .plan-price,
body.pro-ui .post-price,
body.pro-ui .card-price {
  font-family: var(--pro-font) !important;
  font-weight: 700 !important;
}

/* Dark mode final pass: keep forms readable without bright white blocks. */
html[data-theme="dark"] body.pro-ui :is(#postSection, .panel, .contact-form) :is(input, select, textarea),
body.dark-mode.pro-ui :is(#postSection, .panel, .contact-form) :is(input, select, textarea) {
  background: #16243d !important;
  background-image: none !important;
  border: 1px solid #435a78 !important;
  color: #f4f8ff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 8px 20px rgba(0,0,0,.16) !important;
  caret-color: #fbbf24 !important;
}

html[data-theme="dark"] body.pro-ui :is(#postSection, .panel, .contact-form) :is(input, textarea)::placeholder,
body.dark-mode.pro-ui :is(#postSection, .panel, .contact-form) :is(input, textarea)::placeholder {
  color: #8ea1bc !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui select option,
body.dark-mode.pro-ui select option {
  background: #111a2e !important;
  color: #eef4ff !important;
}

html[data-theme="dark"] body.pro-ui #postSection :is(label, .field-hint, .ai-compose-sub, .ai-support-copy),
body.dark-mode.pro-ui #postSection :is(label, .field-hint, .ai-compose-sub, .ai-support-copy) {
  color: #c9d6ea !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui #postSection .ai-compose-trigger,
body.dark-mode.pro-ui #postSection .ai-compose-trigger,
html[data-theme="dark"] body.pro-ui #postSection .ai-support-panel,
body.dark-mode.pro-ui #postSection .ai-support-panel,
html[data-theme="dark"] body.pro-ui #postSection .ai-tip-card,
body.dark-mode.pro-ui #postSection .ai-tip-card {
  background: #14213a !important;
  background-image: none !important;
  border-color: #314764 !important;
  color: #eaf1ff !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24) !important;
}

html[data-theme="dark"] body.pro-ui .pro-preview-card,
body.dark-mode.pro-ui .pro-preview-card {
  background: #101a2e !important;
  border: 1px solid #314764 !important;
}

html[data-theme="dark"] body.pro-ui .pro-preview-listing,
body.dark-mode.pro-ui .pro-preview-listing {
  background: #16243d !important;
  border-color: #314764 !important;
}

html[data-theme="dark"] body.pro-ui .pro-preview-image.is-empty span,
body.dark-mode.pro-ui .pro-preview-image.is-empty span {
  background: #223554 !important;
  color: #f8fbff !important;
  border: 1px solid #4b6388 !important;
}

html[data-theme="dark"] body.pro-ui .pro-preview-title,
body.dark-mode.pro-ui .pro-preview-title {
  color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui .pro-preview-content p,
html[data-theme="dark"] body.pro-ui .pro-preview-meta span,
body.dark-mode.pro-ui .pro-preview-content p,
body.dark-mode.pro-ui .pro-preview-meta span {
  color: #d7e2f2 !important;
}

html[data-theme="dark"] body.pro-ui .wallet-card .empty-state,
body.dark-mode.pro-ui .wallet-card .empty-state {
  background: #16243d !important;
  color: #eaf1ff !important;
  border: 1px solid #314764 !important;
}

/* Hard override for the two dark-mode hot spots reported by users. */
html[data-theme="dark"] body.pro-ui #postForm input,
html[data-theme="dark"] body.pro-ui #postForm select,
html[data-theme="dark"] body.pro-ui #postForm textarea,
body.dark-mode.pro-ui #postForm input,
body.dark-mode.pro-ui #postForm select,
body.dark-mode.pro-ui #postForm textarea {
  background: #1b2942 !important;
  background-color: #1b2942 !important;
  background-image: linear-gradient(180deg, #1f2f4b, #17243b) !important;
  border: 1px solid #526987 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.18) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui #postForm input::placeholder,
html[data-theme="dark"] body.pro-ui #postForm textarea::placeholder,
body.dark-mode.pro-ui #postForm input::placeholder,
body.dark-mode.pro-ui #postForm textarea::placeholder {
  color: #b6c4d8 !important;
  -webkit-text-fill-color: #b6c4d8 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui #postForm input:-webkit-autofill,
html[data-theme="dark"] body.pro-ui #postForm textarea:-webkit-autofill,
html[data-theme="dark"] body.pro-ui #postForm select:-webkit-autofill,
body.dark-mode.pro-ui #postForm input:-webkit-autofill,
body.dark-mode.pro-ui #postForm textarea:-webkit-autofill,
body.dark-mode.pro-ui #postForm select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #1b2942 inset !important;
  -webkit-text-fill-color: #f8fbff !important;
  caret-color: #fbbf24 !important;
}

html[data-theme="dark"] body.pro-ui #postForm select option,
body.dark-mode.pro-ui #postForm select option {
  background: #101a2e !important;
  color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui #postForm label,
html[data-theme="dark"] body.pro-ui #postForm .field-hint,
html[data-theme="dark"] body.pro-ui #postForm .ai-compose-sub,
body.dark-mode.pro-ui #postForm label,
body.dark-mode.pro-ui #postForm .field-hint,
body.dark-mode.pro-ui #postForm .ai-compose-sub {
  color: #d7e2f2 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui .showcase-panel :is(.filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-locations button),
body.dark-mode.pro-ui .showcase-panel :is(.filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-locations button),
html[data-theme="dark"] body.pro-ui .filter-pill-row .filter-pill,
body.dark-mode.pro-ui .filter-pill-row .filter-pill {
  background: #1c2940 !important;
  background-image: none !important;
  border: 1px solid #415674 !important;
  color: #eaf1ff !important;
  -webkit-text-fill-color: #eaf1ff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.pro-ui .showcase-panel :is(.filter-pill.active, .tab-btn.active, .category-tab.active, .showcase-tab.active, .quick-locations button.active),
body.dark-mode.pro-ui .showcase-panel :is(.filter-pill.active, .tab-btn.active, .category-tab.active, .showcase-tab.active, .quick-locations button.active),
html[data-theme="dark"] body.pro-ui .filter-pill-row .filter-pill.active,
body.dark-mode.pro-ui .filter-pill-row .filter-pill.active {
  background: #fbbf24 !important;
  border-color: #fbbf24 !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
}

html[data-theme="dark"] body.pro-ui .showcase-panel .tiny-title,
html[data-theme="dark"] body.pro-ui .showcase-panel .soft-badge,
body.dark-mode.pro-ui .showcase-panel .tiny-title,
body.dark-mode.pro-ui .showcase-panel .soft-badge {
  background: #223554 !important;
  border-color: #536b8d !important;
  color: #ffe49b !important;
}

/* Mobile final pass: compact marketplace layout without touching desktop. */
@media (max-width: 768px) {
  html,
  body.pro-ui {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.pro-ui {
    background:
      radial-gradient(circle at 0% 0%, rgba(248, 184, 0, 0.16), transparent 18rem),
      linear-gradient(180deg, #f7f8f2 0%, #eef3f8 46%, #f8fafc 100%) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  body.dark-mode.pro-ui,
  html[data-theme="dark"] body.pro-ui {
    background:
      radial-gradient(circle at 0% 0%, rgba(248, 184, 0, 0.12), transparent 18rem),
      linear-gradient(180deg, #071120 0%, #0b1628 48%, #071120 100%) !important;
  }

  body.pro-ui :is(.site-shell, .wrap, .layout, .hero-section, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer, .panel, .pro-section) {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.pro-ui :is(.panel, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer) {
    padding: 16px !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  }

  body.dark-mode.pro-ui :is(.panel, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer) {
    background: #0f1b2f !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24) !important;
  }

  body.pro-ui .site-shell {
    padding: 10px 0 18px !important;
  }

  body.pro-ui .site-header,
  body.pro-ui .top-strip {
    position: relative !important;
    top: auto !important;
  }

  body.pro-ui .topbar,
  body.pro-ui header.topbar,
  body.pro-ui .brand-bar {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    align-items: center !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    min-height: 0 !important;
    margin: 10px auto 10px !important;
    padding: 12px !important;
    border-radius: 22px !important;
    background: var(--pro-surface) !important;
    border: 1px solid var(--pro-line) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1) !important;
  }

  body.pro-ui .topbar .brand-wrap,
  body.pro-ui .brand-wrap {
    display: contents !important;
  }

  body.pro-ui .topbar .site-logo,
  body.pro-ui .site-logo,
  body.pro-ui .brand-logo {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    padding: 7px !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    background: #fff !important;
    border: 1px solid rgba(226, 232, 240, 0.96) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
  }

  body.pro-ui .topbar .brand-text,
  body.pro-ui .brand-title {
    min-width: 0 !important;
  }

  body.pro-ui .topbar .brand,
  body.pro-ui #siteName,
  body.pro-ui .brand-name,
  body.pro-ui .brand-title h1 {
    display: block !important;
    max-width: 100% !important;
    color: var(--pro-primary) !important;
    font-size: clamp(21px, 6.2vw, 26px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.045em !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.pro-ui .topbar .brand-sub,
  body.pro-ui #siteSlogan,
  body.pro-ui .brand-title p {
    display: block !important;
    max-width: 26ch !important;
    margin-top: 4px !important;
    color: var(--pro-muted) !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
  }

  body.pro-ui .theme-toggle {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 999px !important;
  }

  body.pro-ui .topbar .search-large,
  body.pro-ui .search-box {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: 1fr 92px !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 4px 0 0 !important;
    padding: 5px !important;
    border-radius: 16px !important;
    background: var(--pro-surface-2) !important;
    border: 1px solid var(--pro-line) !important;
  }

  body.pro-ui .topbar .search-large input,
  body.pro-ui .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 12px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--pro-ink) !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
  }

  body.pro-ui .topbar .search-large .btn,
  body.pro-ui .search-box button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 0 10px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
  }

  body.pro-ui .topbar :is(.top-actions, #guestActions, #userActions),
  body.pro-ui .nav-actions {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 2px 0 0 !important;
    overflow: visible !important;
  }

  body.pro-ui .topbar :is(.top-actions, #guestActions, #userActions).hidden,
  body.pro-ui .topbar :is(#adminLink.hidden, .hidden) {
    display: none !important;
  }

  body.pro-ui .topbar :is(.btn, a, .welcome-pill),
  body.pro-ui .nav-actions :is(button, a) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.pro-ui #userActions .welcome-pill {
    grid-column: 1 / -1 !important;
  }

  body.pro-ui .main-nav,
  body.pro-ui .category-nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    margin: 0 auto 12px !important;
    padding: 10px !important;
    border-radius: 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    background: var(--pro-surface) !important;
  }

  body.pro-ui .main-nav::-webkit-scrollbar,
  body.pro-ui .category-nav::-webkit-scrollbar,
  body.pro-ui .showcase-track::-webkit-scrollbar {
    display: none !important;
  }

  body.pro-ui .main-nav a,
  body.pro-ui .category-nav :is(a, button) {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--pro-line) !important;
    background: var(--pro-surface-2) !important;
    color: var(--pro-ink) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    scroll-snap-align: start;
  }

  body.pro-ui .commercial-hero,
  body.pro-ui .hero-section {
    min-height: auto !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }

  body.pro-ui .hero-slider,
  body.pro-ui .hero-slides,
  body.pro-ui .hero-slide {
    min-height: 390px !important;
    height: 390px !important;
    border-radius: 24px !important;
  }

  body.pro-ui .hero-slide {
    align-items: flex-end !important;
    background-position: center !important;
  }

  body.pro-ui .hero-slide-content {
    width: 100% !important;
    max-width: none !important;
    padding: 24px 18px 72px !important;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.72) 28%, rgba(15, 23, 42, 0.9) 100%) !important;
  }

  body.pro-ui .hero-slide-content h1,
  body.pro-ui .hero-left h1,
  body.pro-ui .hero-left h2 {
    max-width: 12ch !important;
    color: #fff !important;
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.03 !important;
    letter-spacing: -0.05em !important;
  }

  body.pro-ui .hero-slide-content p,
  body.pro-ui .hero-left p {
    max-width: 31ch !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }

  body.pro-ui .hero-cta-row,
  body.pro-ui .hero-cta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 280px !important;
  }

  body.pro-ui .hero-cta-row .btn,
  body.pro-ui .hero-cta .btn {
    width: 100% !important;
    min-height: 46px !important;
  }

  body.pro-ui .hero-slider-dots {
    bottom: 18px !important;
  }

  body.pro-ui .section-header,
  body.pro-ui .section-head,
  body.pro-ui .pro-section-head {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
    margin-bottom: 14px !important;
  }

  body.pro-ui .section-header h2,
  body.pro-ui .section-head h2,
  body.pro-ui .panel h2,
  body.pro-ui .market-section h2,
  body.pro-ui .post-section h2,
  body.pro-ui .contact-section h2 {
    font-size: clamp(22px, 7vw, 30px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.04em !important;
    margin: 0 !important;
  }

  body.pro-ui .section-header p,
  body.pro-ui .section-head p,
  body.pro-ui .panel p {
    max-width: 100% !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
  }

  body.pro-ui .market-grid,
  body.pro-ui .category-grid,
  body.pro-ui .quick-grid,
  body.pro-ui .stats-grid,
  body.pro-ui .hero-summary,
  body.pro-ui .plan-grid,
  body.pro-ui .pricing-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.pro-ui .filter-pill-row,
  body.pro-ui .quick-locations,
  body.pro-ui .tab-row {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding: 2px 0 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  body.pro-ui :is(.filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-locations button) {
    flex: 0 0 auto !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  body.pro-ui .showcase-carousel-shell,
  body.pro-ui .showcase-viewport {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body.pro-ui .showcase-track,
  body.pro-ui #showcaseTrack {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 0 2px 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
  }

  body.pro-ui .showcase-card,
  body.pro-ui .showcase-card.is-primary,
  body.pro-ui #showcaseTrack > .showcase-card {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    min-width: 78vw !important;
    max-width: 340px !important;
    min-height: 0 !important;
    border-radius: 20px !important;
    margin: 0 !important;
    scroll-snap-align: start !important;
    overflow: hidden !important;
  }

  body.pro-ui .showcase-card :is(.post-image, .card-media, .showcase-image, img) {
    height: 168px !important;
    min-height: 168px !important;
    border-radius: 0 !important;
    object-fit: cover !important;
  }

  body.pro-ui .showcase-card :is(.post-title, .card-title, h3) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    min-height: 40px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }

  body.pro-ui .showcase-card :is(.post-price, .card-price, .pro-price) {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  body.pro-ui .showcase-nav,
  body.pro-ui .showcase-prev,
  body.pro-ui .showcase-next {
    display: flex !important;
    position: absolute !important;
    top: 46% !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 999px !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0f172a !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14) !important;
    z-index: 8 !important;
  }

  body.pro-ui .showcase-prev {
    left: 4px !important;
  }

  body.pro-ui .showcase-next {
    right: 4px !important;
  }

  body.pro-ui .showcase-dots {
    display: none !important;
  }

  body.pro-ui #postList,
  body.pro-ui .post-list,
  body.pro-ui .cards-grid:not(#showcaseList) {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.pro-ui #postList .pro-listing-card,
  body.pro-ui #postList .post-card,
  body.pro-ui .pro-listing-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  body.pro-ui .pro-listing-media,
  body.pro-ui #postList .post-image,
  body.pro-ui #postList .card-media {
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    border-radius: 0 !important;
  }

  body.pro-ui .pro-listing-content,
  body.pro-ui #postList .card-body,
  body.pro-ui #postList .post-content {
    padding: 14px !important;
  }

  body.pro-ui .pro-listing-title,
  body.pro-ui #postList :is(.post-title, .card-title, h3) {
    font-size: 16px !important;
    line-height: 1.35 !important;
    letter-spacing: -0.025em !important;
  }

  body.pro-ui .pro-listing-desc,
  body.pro-ui #postList :is(.post-desc, .card-desc, p) {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  body.pro-ui .pro-listing-footer,
  body.pro-ui #postList .card-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  body.pro-ui .pro-card-cta,
  body.pro-ui #postList .btn {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
  }

  body.pro-ui .pro-listing-actions,
  body.pro-ui .card-floating-actions {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    z-index: 6 !important;
  }

  body.pro-ui .pro-listing-actions :is(button, a),
  body.pro-ui .showcase-heart,
  body.pro-ui .favorite-btn,
  body.pro-ui .share-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 999px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12) !important;
  }

  body.pro-ui .layout,
  body.pro-ui .content-grid,
  body.pro-ui .pro-form-shell,
  body.pro-ui .contact-section,
  body.pro-ui .site-footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.pro-ui .sidebar {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    transform: none !important;
    border-radius: 22px !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
  }

  body.pro-ui #postForm,
  body.pro-ui .form-grid,
  body.pro-ui .contact-form .form-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.pro-ui #postForm > *,
  body.pro-ui .form-grid > *,
  body.pro-ui .full-col {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
  }

  body.pro-ui #postForm label,
  body.pro-ui .contact-form label {
    display: block !important;
    margin: 0 0 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: var(--pro-muted) !important;
  }

  body.pro-ui #postForm :is(input, select, textarea),
  body.pro-ui .contact-form :is(input, select, textarea),
  body.pro-ui .panel :is(input, select, textarea) {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    padding: 0 15px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  body.pro-ui #postForm textarea,
  body.pro-ui .contact-form textarea {
    min-height: 132px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  body.pro-ui .form-actions,
  body.pro-ui .contact-actions,
  body.pro-ui .upload-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.pro-ui .form-actions .btn,
  body.pro-ui .contact-actions .btn,
  body.pro-ui .upload-actions .btn {
    width: 100% !important;
    min-height: 48px !important;
  }

  body.pro-ui .ai-compose-row,
  body.pro-ui .ai-support-panel,
  body.pro-ui .ai-tip-card,
  body.pro-ui .ai-compose-trigger {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    border-radius: 18px !important;
  }

  body.pro-ui .ai-compose-trigger {
    padding: 14px !important;
  }

  body.pro-ui .ai-compose-trigger .ai-badge,
  body.pro-ui .ai-support-panel .ai-badge {
    width: 42px !important;
    height: 42px !important;
  }

  body.pro-ui .pro-preview-card {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 14px !important;
    border-radius: 22px !important;
  }

  body.pro-ui .pro-preview-listing {
    width: 100% !important;
    border-radius: 18px !important;
  }

  body.pro-ui .pricing-hero,
  body.pro-ui .payment-box-pro,
  body.pro-ui .plan-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }

  body.pro-ui .contact-section {
    min-height: auto !important;
  }

  body.pro-ui .contact-copy {
    min-height: auto !important;
    padding: 4px !important;
  }

  body.pro-ui .contact-copy h2 {
    color: var(--pro-ink) !important;
    max-width: 100% !important;
  }

  body.dark-mode.pro-ui .contact-copy h2,
  body.dark-mode.pro-ui .contact-copy p,
  body.dark-mode.pro-ui .site-footer :is(strong, h4, p, a, span) {
    color: #eaf1ff !important;
  }

  body.pro-ui .footer-brand,
  body.pro-ui .footer-cols {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.pro-ui .footer-logo {
    width: 110px !important;
    height: auto !important;
  }

  body.pro-ui .floating-actions {
    right: 10px !important;
    bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    gap: 8px !important;
  }

  body.pro-ui .floating-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 15px !important;
    font-size: 18px !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16) !important;
  }

  body.pro-ui .chat-popup-pro {
    left: 10px !important;
    right: 10px !important;
    bottom: calc(132px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 22px !important;
  }

  html[data-theme="dark"] body.pro-ui #postForm :is(input, select, textarea),
  body.dark-mode.pro-ui #postForm :is(input, select, textarea),
  html[data-theme="dark"] body.pro-ui .contact-form :is(input, select, textarea),
  body.dark-mode.pro-ui .contact-form :is(input, select, textarea),
  html[data-theme="dark"] body.pro-ui .panel :is(input, select, textarea),
  body.dark-mode.pro-ui .panel :is(input, select, textarea) {
    background: #17243a !important;
    background-color: #17243a !important;
    background-image: none !important;
    border-color: #3b506d !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
    caret-color: #fbbf24 !important;
  }

  html[data-theme="dark"] body.pro-ui #postForm :is(input, textarea)::placeholder,
  body.dark-mode.pro-ui #postForm :is(input, textarea)::placeholder,
  html[data-theme="dark"] body.pro-ui .contact-form :is(input, textarea)::placeholder,
  body.dark-mode.pro-ui .contact-form :is(input, textarea)::placeholder {
    color: #91a4bf !important;
    -webkit-text-fill-color: #91a4bf !important;
    opacity: 1 !important;
  }

  html[data-theme="dark"] body.pro-ui #postForm label,
  body.dark-mode.pro-ui #postForm label {
    color: #cbd8ea !important;
  }
}

@media (max-width: 420px) {
  body.pro-ui .topbar,
  body.pro-ui header.topbar,
  body.pro-ui .brand-bar {
    grid-template-columns: 52px minmax(0, 1fr) 40px !important;
    padding: 10px !important;
  }

  body.pro-ui .topbar .site-logo,
  body.pro-ui .site-logo,
  body.pro-ui .brand-logo {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
  }

  body.pro-ui .topbar .brand,
  body.pro-ui #siteName,
  body.pro-ui .brand-name,
  body.pro-ui .brand-title h1 {
    font-size: 21px !important;
  }

  body.pro-ui .topbar .search-large,
  body.pro-ui .search-box {
    grid-template-columns: 1fr !important;
  }

  body.pro-ui .showcase-card,
  body.pro-ui .showcase-card.is-primary,
  body.pro-ui #showcaseTrack > .showcase-card {
    flex-basis: 84vw !important;
    width: 84vw !important;
    min-width: 84vw !important;
    max-width: 84vw !important;
  }

  body.pro-ui .hero-slider,
  body.pro-ui .hero-slides,
  body.pro-ui .hero-slide {
    min-height: 370px !important;
    height: 370px !important;
  }

  body.pro-ui .pro-listing-media,
  body.pro-ui #postList .post-image,
  body.pro-ui #postList .card-media {
    height: 190px !important;
    min-height: 190px !important;
  }
}

/* Premium visual polish pass: more refined marketplace surfaces and stronger readability. */
body.pro-ui {
  --pro-card-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  --pro-card-shadow-hover: 0 24px 58px rgba(15, 23, 42, 0.16);
  --pro-ring: rgba(37, 99, 235, 0.16);
  background-attachment: fixed;
}

/* Final Vietnamese typography guard: keep all commercial copy on a font with full Vietnamese glyphs. */
html,
body,
body.pro-ui,
body.pro-ui :where(button, input, select, textarea, table, nav, section, article, aside, header, footer, div, span, p, a, label, small, strong, b, h1, h2, h3, h4, h5, h6) {
  font-family: "Poppins", Arial, sans-serif !important;
  font-synthesis: none;
}

body.pro-ui :where(p, li, span, small, label, input, select, textarea, td, th) {
  letter-spacing: -0.004em !important;
}

body.pro-ui .listing-category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body.pro-ui .listing-category-tab {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #243247;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.pro-ui .listing-category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 184, 0, 0.75);
  background: #fff8dd;
  color: #7a4f00;
}

body.pro-ui .listing-category-tab.is-active {
  border-color: rgba(255, 184, 0, 0.95);
  background: linear-gradient(180deg, #ffd34d 0%, #ffb800 100%);
  color: #211700;
  box-shadow: 0 12px 22px rgba(255, 184, 0, 0.2);
}

html[data-theme="dark"] body.pro-ui .listing-category-tab,
body.dark-mode.pro-ui .listing-category-tab {
  border-color: rgba(93, 120, 158, 0.86);
  background: #15243b;
  color: #e8eef8;
}

html[data-theme="dark"] body.pro-ui .listing-category-tab:hover,
body.dark-mode.pro-ui .listing-category-tab:hover {
  border-color: rgba(255, 196, 57, 0.9);
  background: rgba(255, 196, 57, 0.14);
  color: #ffe7a3;
}

html[data-theme="dark"] body.pro-ui .listing-category-tab.is-active,
body.dark-mode.pro-ui .listing-category-tab.is-active {
  border-color: rgba(255, 196, 57, 0.95);
  background: linear-gradient(180deg, #ffd85a 0%, #ffb800 100%);
  color: #081321;
}

body.pro-ui .page-noise {
  opacity: 0.34;
  pointer-events: none;
}

body.pro-ui .top-strip {
  background: linear-gradient(90deg, #0b1f46 0%, #123a8c 54%, #b98200 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

body.pro-ui .topbar,
body.pro-ui .brand-bar {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.9)),
    var(--pro-surface) !important;
}

body.pro-ui .topbar::before,
body.pro-ui .brand-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 184, 0, 0.18), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, 0.12), transparent 34%);
  opacity: 0.95;
}

body.dark-mode.pro-ui .topbar,
body.dark-mode.pro-ui .brand-bar {
  background:
    linear-gradient(135deg, rgba(15, 27, 47, 0.96), rgba(9, 20, 38, 0.92)),
    #0f1b2f !important;
}

body.pro-ui .site-logo,
body.pro-ui .brand-logo {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body.pro-ui .site-logo:hover,
body.pro-ui .brand-logo:hover {
  transform: translateY(-1px) scale(1.015);
}

body.pro-ui .brand,
body.pro-ui #siteName,
body.pro-ui .brand-name,
body.pro-ui .brand-title h1 {
  text-wrap: balance;
}

body.pro-ui .search-large,
body.pro-ui .search-box {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.pro-ui .search-large:focus-within,
body.pro-ui .search-box:focus-within {
  border-color: rgba(37, 99, 235, 0.38) !important;
  box-shadow: 0 0 0 5px var(--pro-ring), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode.pro-ui .search-large:focus-within,
body.dark-mode.pro-ui .search-box:focus-within {
  border-color: rgba(110, 168, 255, 0.48) !important;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.pro-ui :is(.btn, button, .primary-btn, .secondary-btn, .ghost-btn, .outline-btn, .pro-card-cta) {
  cursor: pointer;
}

body.pro-ui :is(.btn, .primary-btn, .secondary-btn, .ghost-btn, .outline-btn, .pro-card-cta):active {
  transform: translateY(0) scale(0.99) !important;
}

body.pro-ui .main-nav,
body.pro-ui .category-nav {
  backdrop-filter: blur(18px);
}

body.pro-ui .main-nav a,
body.pro-ui .category-nav :is(a, button),
body.pro-ui :is(.filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-locations button) {
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

body.pro-ui .main-nav a:hover,
body.pro-ui .category-nav :is(a, button):hover,
body.pro-ui :is(.filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-locations button):hover {
  transform: translateY(-1px);
  border-color: rgba(248, 184, 0, 0.5) !important;
}

body.pro-ui .commercial-hero,
body.pro-ui .hero-slider,
body.pro-ui .hero-slide {
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.18);
}

body.pro-ui .hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.16) 50%, rgba(15, 23, 42, 0.4)),
    radial-gradient(circle at 18% 22%, rgba(248, 184, 0, 0.2), transparent 26%);
}

body.pro-ui .hero-slide-content {
  position: relative;
  z-index: 2;
}

body.pro-ui .hero-badge,
body.pro-ui .mini-badge,
body.pro-ui .tiny-title,
body.pro-ui .section-pill,
body.pro-ui .panel-label {
  width: fit-content;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.pro-ui .hero-slider-dots button {
  transition: width 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

body.pro-ui .hero-slider-dots button.active {
  width: 34px !important;
  border-radius: 999px !important;
}

body.pro-ui :is(.panel, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer, .summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card) {
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.pro-ui :is(.summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card) {
  box-shadow: var(--pro-card-shadow) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.pro-ui :is(.summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card):hover {
  transform: translateY(-3px);
  box-shadow: var(--pro-card-shadow-hover) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

body.dark-mode.pro-ui :is(.summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card):hover {
  border-color: rgba(110, 168, 255, 0.32) !important;
}

body.pro-ui .showcase-card,
body.pro-ui .pro-listing-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98)),
    var(--pro-surface) !important;
}

body.dark-mode.pro-ui .showcase-card,
body.dark-mode.pro-ui .pro-listing-card {
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(12, 23, 41, 0.98)),
    #101c30 !important;
}

body.pro-ui :is(.showcase-card, .pro-listing-card) :is(.post-image, .card-media, .showcase-image, .pro-listing-media) {
  position: relative;
  background: #dbe4ef;
}

body.pro-ui :is(.showcase-card, .pro-listing-card) img {
  transition: transform 0.35s ease, filter 0.35s ease;
}

body.pro-ui :is(.showcase-card, .pro-listing-card):hover img {
  transform: scale(1.035);
  filter: saturate(1.05) contrast(1.02);
}

body.pro-ui .pro-card-actions button,
body.pro-ui .showcase-heart,
body.pro-ui .favorite-btn,
body.pro-ui .share-btn {
  backdrop-filter: blur(12px);
}

body.pro-ui .pro-card-actions button:hover,
body.pro-ui .showcase-heart:hover,
body.pro-ui .favorite-btn:hover,
body.pro-ui .share-btn:hover {
  background: #fff7db !important;
  color: #9a6700 !important;
  border-color: rgba(248, 184, 0, 0.55) !important;
}

body.pro-ui .pro-listing-meta span,
body.pro-ui .pro-preview-meta span,
body.pro-ui .showcase-card :is(.meta-pill, .card-meta span, .post-location) {
  background: rgba(241, 245, 249, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  color: #475569;
}

body.dark-mode.pro-ui .pro-listing-meta span,
body.dark-mode.pro-ui .pro-preview-meta span,
body.dark-mode.pro-ui .showcase-card :is(.meta-pill, .card-meta span, .post-location) {
  background: rgba(30, 41, 59, 0.78) !important;
  border-color: rgba(71, 85, 105, 0.8) !important;
  color: #dbeafe !important;
}

body.pro-ui .post-price,
body.pro-ui .card-price,
body.pro-ui .pro-price,
body.pro-ui .plan-price {
  letter-spacing: -0.025em !important;
}

body.pro-ui .plan-card {
  position: relative;
  overflow: hidden;
}

body.pro-ui .plan-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--pro-gold), var(--pro-primary-2));
  opacity: 0.72;
}

body.pro-ui .plan-card.active,
body.pro-ui .plan-card.is-featured,
body.pro-ui .plan-card.recommended {
  border-color: rgba(248, 184, 0, 0.62) !important;
  box-shadow: 0 22px 58px rgba(248, 184, 0, 0.16), var(--pro-card-shadow) !important;
}

body.pro-ui #postForm,
body.pro-ui .contact-form,
body.pro-ui .payment-box-pro {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92)),
    var(--pro-surface) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 24px !important;
  padding: 18px !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08) !important;
}

body.dark-mode.pro-ui #postForm,
body.dark-mode.pro-ui .contact-form,
body.dark-mode.pro-ui .payment-box-pro {
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.96), rgba(12, 23, 41, 0.96)),
    #101c30 !important;
  border-color: rgba(71, 85, 105, 0.58) !important;
}

body.pro-ui #postForm :is(input, select, textarea),
body.pro-ui .contact-form :is(input, select, textarea),
body.pro-ui .panel :is(input, select, textarea) {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.pro-ui #postForm :is(input, select, textarea):focus,
body.pro-ui .contact-form :is(input, select, textarea):focus,
body.pro-ui .panel :is(input, select, textarea):focus {
  border-color: rgba(37, 99, 235, 0.46) !important;
  box-shadow: 0 0 0 5px var(--pro-ring) !important;
  outline: 0 !important;
}

body.dark-mode.pro-ui #postForm :is(input, select, textarea):focus,
body.dark-mode.pro-ui .contact-form :is(input, select, textarea):focus,
body.dark-mode.pro-ui .panel :is(input, select, textarea):focus {
  border-color: rgba(110, 168, 255, 0.58) !important;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.16) !important;
}

body.pro-ui .ai-compose-trigger,
body.pro-ui .ai-support-panel,
body.pro-ui .ai-tip-card {
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(245, 243, 255, 0.95)) !important;
  border-color: rgba(147, 197, 253, 0.4) !important;
}

body.dark-mode.pro-ui .ai-compose-trigger,
body.dark-mode.pro-ui .ai-support-panel,
body.dark-mode.pro-ui .ai-tip-card {
  background:
    linear-gradient(135deg, rgba(20, 33, 58, 0.98), rgba(25, 35, 65, 0.98)) !important;
}

body.pro-ui .contact-section {
  position: relative;
  overflow: hidden;
}

body.pro-ui .contact-section::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248, 184, 0, 0.18), transparent 68%);
  pointer-events: none;
}

body.pro-ui .site-footer {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
    var(--pro-surface) !important;
}

body.dark-mode.pro-ui .site-footer {
  background:
    linear-gradient(135deg, rgba(15, 27, 47, 0.96), rgba(9, 20, 38, 0.92)),
    #0f1b2f !important;
}

body.pro-ui .floating-btn {
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.pro-ui .floating-btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.08);
}

@media (max-width: 768px) {
  body.pro-ui .top-strip {
    display: none !important;
  }

  body.pro-ui .topbar,
  body.pro-ui header.topbar,
  body.pro-ui .brand-bar {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
  }

  body.pro-ui .hero-slide::after {
    background:
      linear-gradient(180deg, rgba(15, 23, 42, 0.18) 0%, rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.94) 100%),
      radial-gradient(circle at 20% 30%, rgba(248, 184, 0, 0.18), transparent 34%);
  }

  body.pro-ui .hero-badge {
    font-size: 11px !important;
    padding: 7px 10px !important;
  }

  body.pro-ui .showcase-card,
  body.pro-ui .showcase-card.is-primary,
  body.pro-ui #showcaseTrack > .showcase-card {
    max-width: 330px !important;
  }

  body.pro-ui #postForm,
  body.pro-ui .contact-form,
  body.pro-ui .payment-box-pro {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  body.pro-ui .pro-card-actions button,
  body.pro-ui .showcase-heart,
  body.pro-ui .favorite-btn,
  body.pro-ui .share-btn {
    background: rgba(255, 255, 255, 0.84) !important;
  }

  body.dark-mode.pro-ui .pro-card-actions button,
  body.dark-mode.pro-ui .showcase-heart,
  body.dark-mode.pro-ui .favorite-btn,
  body.dark-mode.pro-ui .share-btn {
    background: rgba(15, 27, 47, 0.86) !important;
    color: #f8fbff !important;
    border-color: rgba(148, 163, 184, 0.34) !important;
  }

  body.pro-ui :is(.summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card):hover {
    transform: none;
  }
}

/* Detail modal polish: cleaner listing detail page after tapping "Xem chi tiết". */
body.pro-ui #detailModal {
  padding: 18px !important;
  align-items: flex-start !important;
  overflow-y: auto !important;
  background: rgba(15, 23, 42, 0.54) !important;
  backdrop-filter: blur(14px);
}

body.pro-ui #detailModal .large-modal,
body.pro-ui #detailModal .modal-box {
  width: min(1120px, calc(100vw - 36px)) !important;
  max-height: none !important;
  margin: 18px auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24) !important;
}

body.dark-mode.pro-ui #detailModal .large-modal,
body.dark-mode.pro-ui #detailModal .modal-box,
html[data-theme="dark"] body.pro-ui #detailModal .large-modal,
html[data-theme="dark"] body.pro-ui #detailModal .modal-box {
  background: #071120 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.46) !important;
}

body.pro-ui #detailModal .modal-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
  min-height: 60px !important;
  padding: 14px 18px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  backdrop-filter: blur(14px);
}

body.dark-mode.pro-ui #detailModal .modal-head,
html[data-theme="dark"] body.pro-ui #detailModal .modal-head {
  background: rgba(7, 17, 32, 0.92) !important;
  border-bottom-color: rgba(148, 163, 184, 0.18) !important;
}

body.pro-ui #detailModal .modal-head h3 {
  margin: 0 !important;
  color: var(--pro-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

body.pro-ui #detailModal .modal-head button {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
}

body.dark-mode.pro-ui #detailModal .modal-head button,
html[data-theme="dark"] body.pro-ui #detailModal .modal-head button {
  background: #101c30 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, 0.26) !important;
}

body.pro-ui #detailContent {
  padding: 18px !important;
}

body.pro-ui #detailContent .pro-detail {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 18px !important;
  align-items: start !important;
}

body.pro-ui #detailContent .pro-detail > div {
  min-width: 0 !important;
}

body.pro-ui #detailContent .pro-detail-gallery {
  border-radius: 24px !important;
  overflow: hidden !important;
  background: #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12) !important;
}

body.dark-mode.pro-ui #detailContent .pro-detail-gallery,
html[data-theme="dark"] body.pro-ui #detailContent .pro-detail-gallery {
  background: #101c30 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

body.pro-ui #detailContent .pro-detail-gallery img {
  display: block !important;
  width: 100% !important;
  height: clamp(280px, 38vw, 430px) !important;
  object-fit: cover !important;
}

body.pro-ui #detailContent .pro-detail-main {
  margin-top: 16px !important;
  padding: 22px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08) !important;
}

body.dark-mode.pro-ui #detailContent .pro-detail-main,
html[data-theme="dark"] body.pro-ui #detailContent .pro-detail-main {
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(12, 23, 41, 0.98)),
    #101c30 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22) !important;
}

body.pro-ui #detailContent .pro-badge-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

body.pro-ui #detailContent .pro-badge {
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

body.pro-ui #detailContent .pro-detail-title {
  max-width: 760px !important;
  margin: 8px 0 8px !important;
  color: var(--pro-ink) !important;
  font-size: clamp(26px, 3.2vw, 38px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
}

body.pro-ui #detailContent .pro-detail-price {
  margin: 0 0 18px !important;
  color: #f43f5e !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
}

body.dark-mode.pro-ui #detailContent .pro-detail-price,
html[data-theme="dark"] body.pro-ui #detailContent .pro-detail-price {
  color: #fbbf24 !important;
}

body.pro-ui #detailContent .pro-detail-info {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 16px 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pro-ui #detailContent .pro-info-item {
  min-width: 0 !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body.dark-mode.pro-ui #detailContent .pro-info-item,
html[data-theme="dark"] body.pro-ui #detailContent .pro-info-item {
  background: #16243d !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

body.pro-ui #detailContent .pro-info-item span {
  display: block !important;
  margin-bottom: 5px !important;
  color: var(--pro-muted) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.025em !important;
}

body.pro-ui #detailContent .pro-info-item b {
  display: block !important;
  color: var(--pro-ink) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}

body.pro-ui #detailContent .pro-detail-main h3 {
  margin: 20px 0 8px !important;
  color: var(--pro-ink) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
}

body.pro-ui #detailContent .pro-detail-main p {
  max-width: 74ch !important;
  margin: 0 !important;
  color: #475569 !important;
  font-size: 15px !important;
  line-height: 1.75 !important;
  font-weight: 500 !important;
}

body.dark-mode.pro-ui #detailContent .pro-detail-main p,
html[data-theme="dark"] body.pro-ui #detailContent .pro-detail-main p {
  color: #d6e2f2 !important;
}

body.pro-ui #detailContent .pro-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

body.pro-ui #detailContent .pro-meta {
  width: 100% !important;
  justify-content: flex-start !important;
  text-align: left !important;
  padding: 12px 14px !important;
  min-height: 44px !important;
  border-radius: 14px !important;
  color: var(--pro-ink) !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  font-weight: 700 !important;
}

body.dark-mode.pro-ui #detailContent .pro-meta,
html[data-theme="dark"] body.pro-ui #detailContent .pro-meta {
  background: #16243d !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  color: #eaf1ff !important;
}

body.pro-ui #detailContent .pro-detail-contact {
  position: sticky !important;
  top: 76px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.pro-ui #detailContent .pro-contact-card {
  padding: 20px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #fff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1) !important;
}

body.dark-mode.pro-ui #detailContent .pro-contact-card,
html[data-theme="dark"] body.pro-ui #detailContent .pro-contact-card {
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(12, 23, 41, 0.98)),
    #101c30 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24) !important;
}

body.pro-ui #detailContent .pro-contact-card .pro-avatar {
  width: 54px !important;
  height: 54px !important;
  font-size: 17px !important;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22) !important;
}

body.pro-ui #detailContent .pro-contact-card h3 {
  margin: 12px 0 4px !important;
  color: var(--pro-ink) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
}

body.pro-ui #detailContent .pro-contact-card p {
  margin: 0 !important;
  color: var(--pro-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  font-weight: 600 !important;
}

body.dark-mode.pro-ui #detailContent .pro-contact-card p,
html[data-theme="dark"] body.pro-ui #detailContent .pro-contact-card p {
  color: #cbd8ea !important;
}

body.pro-ui #detailContent .pro-contact-actions {
  display: grid !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

body.pro-ui #detailContent .pro-contact-actions :is(a, button) {
  min-height: 46px !important;
  width: 100% !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

body.pro-ui #detailContent .pro-contact-actions .call {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.2) !important;
}

body.pro-ui #detailContent .pro-contact-actions .zalo {
  background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2) !important;
}

body.pro-ui #detailContent .pro-contact-actions .light {
  background: #f8fafc !important;
  color: #172033 !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
}

body.dark-mode.pro-ui #detailContent .pro-contact-actions .light,
html[data-theme="dark"] body.pro-ui #detailContent .pro-contact-actions .light {
  background: #16243d !important;
  color: #eaf1ff !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

@media (max-width: 980px) {
  body.pro-ui #detailContent .pro-detail {
    grid-template-columns: 1fr !important;
  }

  body.pro-ui #detailContent .pro-detail-contact {
    position: static !important;
  }

  body.pro-ui #detailContent .pro-contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  body.pro-ui #detailModal {
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.pro-ui #detailModal .large-modal,
  body.pro-ui #detailModal .modal-box {
    width: 100vw !important;
    min-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
  }

  body.pro-ui #detailModal .modal-head {
    min-height: 56px !important;
    padding: 10px 12px !important;
  }

  body.pro-ui #detailContent {
    padding: 12px !important;
  }

  body.pro-ui #detailContent .pro-detail {
    gap: 12px !important;
  }

  body.pro-ui #detailContent .pro-detail-gallery {
    border-radius: 18px !important;
  }

  body.pro-ui #detailContent .pro-detail-gallery img {
    height: 235px !important;
  }

  body.pro-ui #detailContent .pro-detail-main {
    margin-top: 12px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  body.pro-ui #detailContent .pro-detail-title {
    font-size: 26px !important;
    line-height: 1.12 !important;
  }

  body.pro-ui #detailContent .pro-detail-price {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  body.pro-ui #detailContent .pro-detail-info {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.pro-ui #detailContent .pro-info-item {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  body.pro-ui #detailContent .pro-detail-main p {
    font-size: 14px !important;
    line-height: 1.68 !important;
  }

  body.pro-ui #detailContent .pro-contact-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  body.pro-ui #detailContent .pro-contact-actions {
    grid-template-columns: 1fr !important;
  }
}

/* Auto image upload field: choose file once, no separate upload button. */
body.pro-ui #postSection .auto-upload-field {
  display: grid !important;
  gap: 8px !important;
}

body.pro-ui #postSection .auto-upload-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 251, 235, 0.82)),
    #f8fafc !important;
  border: 1px dashed rgba(37, 99, 235, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

body.dark-mode.pro-ui #postSection .auto-upload-row,
html[data-theme="dark"] body.pro-ui #postSection .auto-upload-row {
  background:
    linear-gradient(135deg, rgba(23, 36, 58, 0.98), rgba(30, 41, 59, 0.88)),
    #17243a !important;
  border-color: rgba(110, 168, 255, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

body.pro-ui #postSection #postImageFile {
  width: 100% !important;
  min-height: 48px !important;
  padding: 8px !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #172033 !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  font-weight: 700 !important;
}

body.dark-mode.pro-ui #postSection #postImageFile,
html[data-theme="dark"] body.pro-ui #postSection #postImageFile {
  background: #101c30 !important;
  color: #f8fbff !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

body.pro-ui #postSection #postImageFile::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: #10213d;
  color: #fff;
  font-family: var(--pro-font);
  font-weight: 800;
  cursor: pointer;
}

body.dark-mode.pro-ui #postSection #postImageFile::file-selector-button,
html[data-theme="dark"] body.pro-ui #postSection #postImageFile::file-selector-button {
  background: #fbbf24;
  color: #172033;
}

body.pro-ui #postSection .auto-upload-copy {
  color: var(--pro-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

body.pro-ui #postSection #uploadStatus {
  min-height: 20px !important;
  color: #2563eb !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.dark-mode.pro-ui #postSection #uploadStatus,
html[data-theme="dark"] body.pro-ui #postSection #uploadStatus {
  color: #93c5fd !important;
}

/* Final dark-mode readability pass: remove bright surfaces and normalize text contrast site-wide. */
html[data-theme="dark"],
html[data-theme="dark"] body,
body.dark-mode.pro-ui {
  color-scheme: dark;
  --pro-bg: #071120 !important;
  --pro-surface: #0f1b2f !important;
  --pro-surface-2: #14213a !important;
  --pro-ink: #f4f8ff !important;
  --pro-muted: #c7d3e6 !important;
  --pro-soft: #243653 !important;
  --pro-line: rgba(148, 163, 184, 0.24) !important;
  --pro-primary: #8bb9ff !important;
  --pro-primary-2: #60a5fa !important;
  --pro-primary-soft: rgba(96, 165, 250, 0.16) !important;
  background: #071120 !important;
}

html[data-theme="dark"] body.pro-ui,
body.dark-mode.pro-ui {
  background:
    radial-gradient(circle at 8% 0%, rgba(248, 184, 0, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 8%, rgba(96, 165, 250, 0.1), transparent 30rem),
    linear-gradient(180deg, #071120 0%, #0a1424 45%, #071120 100%) !important;
  color: #f4f8ff !important;
}

html[data-theme="dark"] body.pro-ui :is(.topbar, .brand-bar, .main-nav, .category-nav, .home-announcement, .panel, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer, .sidebar, .content, .pro-section, .summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card, .post-card, .info-card, .account-card, .wallet-card, .chat-shell, .chat-window, .conversation-box, .favorite-box, .profile-preview, .modal-box, .announcement-popup-card),
body.dark-mode.pro-ui :is(.topbar, .brand-bar, .main-nav, .category-nav, .home-announcement, .panel, .market-section, .showcase-panel, .post-section, .packages-section, .contact-section, .site-footer, .sidebar, .content, .pro-section, .summary-card, .market-card, .stat-box, .plan-card, .pro-listing-card, .showcase-card, .post-card, .info-card, .account-card, .wallet-card, .chat-shell, .chat-window, .conversation-box, .favorite-box, .profile-preview, .modal-box, .announcement-popup-card) {
  background:
    linear-gradient(180deg, rgba(16, 28, 48, 0.98), rgba(11, 22, 40, 0.98)),
    #0f1b2f !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  color: #f4f8ff !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body.pro-ui :is(h1, h2, h3, h4, h5, h6, strong, b, label, th, .brand, #siteName, .brand-name, .section-title, .pricing-title, .post-title, .card-title, .pro-listing-title, .pro-detail-title, .footer-brand strong, .plan-card strong, .info-card div),
body.dark-mode.pro-ui :is(h1, h2, h3, h4, h5, h6, strong, b, label, th, .brand, #siteName, .brand-name, .section-title, .pricing-title, .post-title, .card-title, .pro-listing-title, .pro-detail-title, .footer-brand strong, .plan-card strong, .info-card div) {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui :is(p, li, td, small, span, a, .muted-text, .brand-sub, #siteSlogan, .section-header p, .section-head p, .post-desc, .card-desc, .pro-listing-desc, .plan-card p, .footer-cols a, .footer-cols p, .field-hint, .ai-compose-sub, .contact-copy p),
body.dark-mode.pro-ui :is(p, li, td, small, span, a, .muted-text, .brand-sub, #siteSlogan, .section-header p, .section-head p, .post-desc, .card-desc, .pro-listing-desc, .plan-card p, .footer-cols a, .footer-cols p, .field-hint, .ai-compose-sub, .contact-copy p) {
  color: #cbd8ea !important;
  -webkit-text-fill-color: #cbd8ea !important;
}

html[data-theme="dark"] body.pro-ui :is(.tiny-title, .mini-badge, .section-pill, .panel-label, .soft-badge, .plan-badge, .pro-badge),
body.dark-mode.pro-ui :is(.tiny-title, .mini-badge, .section-pill, .panel-label, .soft-badge, .plan-badge, .pro-badge) {
  background: #20314d !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #ffe49b !important;
  -webkit-text-fill-color: #ffe49b !important;
}

html[data-theme="dark"] body.pro-ui :is(.btn-light, .secondary-btn, .ghost-btn, .outline-btn, .welcome-pill, .main-nav a, .category-nav a, .category-nav button, .filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-chip, .quick-locations button, .pro-mobile-filter-btn),
body.dark-mode.pro-ui :is(.btn-light, .secondary-btn, .ghost-btn, .outline-btn, .welcome-pill, .main-nav a, .category-nav a, .category-nav button, .filter-pill, .tab-btn, .category-tab, .showcase-tab, .quick-chip, .quick-locations button, .pro-mobile-filter-btn) {
  background: #14213a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #eaf1ff !important;
  -webkit-text-fill-color: #eaf1ff !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.pro-ui :is(.btn-primary, .primary-btn, .post-submit, .search-box button),
body.dark-mode.pro-ui :is(.btn-primary, .primary-btn, .post-submit, .search-box button) {
  background: linear-gradient(135deg, #fbbf24, #facc15) !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  border-color: transparent !important;
  box-shadow: 0 14px 30px rgba(251, 191, 36, 0.18) !important;
}

html[data-theme="dark"] body.pro-ui :is(input, select, textarea),
body.dark-mode.pro-ui :is(input, select, textarea) {
  background: #16243d !important;
  background-color: #16243d !important;
  background-image: none !important;
  border: 1px solid #415674 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  caret-color: #fbbf24 !important;
}

html[data-theme="dark"] body.pro-ui :is(input, textarea)::placeholder,
body.dark-mode.pro-ui :is(input, textarea)::placeholder {
  color: #93a4bd !important;
  -webkit-text-fill-color: #93a4bd !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui :is(table, thead, tbody, tr, td, th),
body.dark-mode.pro-ui :is(table, thead, tbody, tr, td, th) {
  background: transparent !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

html[data-theme="dark"] body.pro-ui :is(.pro-listing-meta span, .pro-preview-meta span, .meta-pill, .card-meta span, .post-location, .pro-info-item),
body.dark-mode.pro-ui :is(.pro-listing-meta span, .pro-preview-meta span, .meta-pill, .card-meta span, .post-location, .pro-info-item) {
  background: #17243a !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  color: #dbeafe !important;
  -webkit-text-fill-color: #dbeafe !important;
}

html[data-theme="dark"] body.pro-ui :is(.showcase-card img, .pro-listing-card img, .post-image, .detail-image, .pro-detail-gallery img),
body.dark-mode.pro-ui :is(.showcase-card img, .pro-listing-card img, .post-image, .detail-image, .pro-detail-gallery img) {
  filter: brightness(0.82) contrast(1.04) saturate(0.96);
}

html[data-theme="dark"] body.pro-ui .contact-copy,
body.dark-mode.pro-ui .contact-copy {
  background:
    linear-gradient(135deg, rgba(15, 27, 47, 0.88), rgba(16, 28, 48, 0.94)),
    #0f1b2f !important;
}

/* Dark login/toast hardening: keep modal readable without bright white inputs. */
html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) .modal-box,
body.dark-mode.pro-ui :is(#loginModal, #registerModal) .modal-box {
  background: linear-gradient(180deg, #101c30, #0b1628) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48) !important;
  color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) :is(h3, label),
body.dark-mode.pro-ui :is(#loginModal, #registerModal) :is(h3, label) {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  letter-spacing: -0.01em !important;
}

html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) input,
body.dark-mode.pro-ui :is(#loginModal, #registerModal) input {
  background: #17243a !important;
  background-color: #17243a !important;
  border: 1px solid #506783 !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  caret-color: #fbbf24 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 0 0 9999px #17243a inset !important;
}

html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) input::placeholder,
body.dark-mode.pro-ui :is(#loginModal, #registerModal) input::placeholder {
  color: #9fb0c8 !important;
  -webkit-text-fill-color: #9fb0c8 !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) input:-webkit-autofill,
body.dark-mode.pro-ui :is(#loginModal, #registerModal) input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 9999px #17243a inset !important;
  -webkit-text-fill-color: #f8fbff !important;
  caret-color: #fbbf24 !important;
}

html[data-theme="dark"] body.pro-ui :is(#loginModal, #registerModal) .modal-head button,
body.dark-mode.pro-ui :is(#loginModal, #registerModal) .modal-head button {
  background: #20314d !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

body.pro-ui .toast,
body.pro-ui .pro-toast {
  min-width: min(360px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  padding: 13px 18px !important;
  border-radius: 16px !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  letter-spacing: -0.01em !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #2563eb !important;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.34) !important;
  z-index: 99999 !important;
}

html[data-theme="dark"] body.pro-ui .toast,
html[data-theme="dark"] body.pro-ui .pro-toast,
body.dark-mode.pro-ui .toast,
body.dark-mode.pro-ui .pro-toast {
  background: #1d4ed8 !important;
  border: 1px solid rgba(147, 197, 253, 0.34) !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
  text-shadow: none !important;
}

@media (max-width: 640px) {
  body.pro-ui .toast,
  body.pro-ui .pro-toast {
    left: 16px !important;
    right: 16px !important;
    bottom: 18px !important;
    width: auto !important;
    transform: translateY(14px) !important;
  }

  body.pro-ui .toast.show,
  body.pro-ui .pro-toast.show {
    transform: translateY(0) !important;
  }
}

body.pro-ui .package-quick-btn {
  border-color: rgba(248, 184, 0, 0.34) !important;
  background: #fff8df !important;
  color: #8a5a00 !important;
}

body.pro-ui #postSection.post-form-collapsed {
  display: none !important;
}

body.pro-ui #contactSection {
  display: none !important;
}

body.pro-ui #postLauncher.post-launcher-compact {
  display: none !important;
}

body.pro-ui .post-launcher-panel {
  padding: 22px !important;
  border-radius: 28px !important;
  background:
    radial-gradient(circle at top left, rgba(248, 184, 0, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)) !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
}

body.pro-ui .post-launcher-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
}

body.pro-ui .post-launcher-content h2 {
  margin: 8px 0 8px !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  color: var(--pro-ink) !important;
}

body.pro-ui .post-launcher-content p {
  max-width: 680px !important;
  margin: 0 !important;
  color: var(--pro-muted) !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
  font-weight: 650 !important;
}

body.pro-ui .post-section-tools {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

html[data-theme="dark"] body.pro-ui .post-launcher-panel,
body.dark-mode.pro-ui .post-launcher-panel {
  background:
    radial-gradient(circle at top left, rgba(248, 184, 0, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(19, 34, 57, 0.98), rgba(14, 27, 47, 0.96)) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] body.pro-ui .post-launcher-content h2,
body.dark-mode.pro-ui .post-launcher-content h2 {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui .post-launcher-content p,
body.dark-mode.pro-ui .post-launcher-content p {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

@media (max-width: 720px) {
  body.pro-ui .post-launcher-panel {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  body.pro-ui .post-launcher-content {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.pro-ui .post-launcher-content .btn {
    width: 100% !important;
  }

  body.pro-ui .post-section-tools {
    justify-content: flex-start !important;
  }
}

body.pro-ui #packagesSection,
body.pro-ui #paymentPanel,
body.pro-ui #walletSection,
body.pro-ui #myPostsSection,
body.pro-ui #mySubscriptionsSection {
  display: none !important;
}

body.pro-ui .account-management-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 18px !important;
}

body.pro-ui .account-management-card {
  padding: 18px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: rgba(248, 250, 252, 0.92) !important;
}

body.pro-ui .account-management-card h3 {
  margin: 10px 0 14px !important;
  color: var(--pro-ink) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

html[data-theme="dark"] body.pro-ui .account-management-card,
body.dark-mode.pro-ui .account-management-card {
  background: #101c30 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

@media (max-width: 760px) {
  body.pro-ui .account-management-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Account modal polish */
body.pro-ui #accountModal {
  padding: 18px !important;
}

body.pro-ui #accountModal .account-modal-box {
  width: min(980px, calc(100vw - 36px)) !important;
  max-width: min(980px, calc(100vw - 36px)) !important;
  max-height: min(88vh, 920px) !important;
  overflow: auto !important;
  padding: 22px !important;
  border-radius: 28px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18) !important;
}

body.pro-ui #accountModal .modal-head {
  position: sticky !important;
  top: -22px !important;
  z-index: 3 !important;
  margin: -22px -22px 16px !important;
  padding: 18px 22px 14px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82) !important;
  backdrop-filter: blur(14px) !important;
}

body.pro-ui #accountModal .modal-head h3 {
  margin: 0 !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

body.pro-ui #accountModal .modal-head button {
  width: 40px !important;
  height: 40px !important;
  border-radius: 999px !important;
  background: #eef2f7 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  border: 1px solid rgba(203, 213, 225, 0.85) !important;
  box-shadow: none !important;
}

body.pro-ui #accountModal .account-modal-content .account-section-embedded {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr) !important;
  gap: 16px !important;
  align-items: stretch !important;
}

body.pro-ui #accountModal .account-modal-content .panel,
body.pro-ui #accountModal .account-management-card {
  min-height: auto !important;
  padding: 18px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(226, 232, 240, 0.88) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
    #ffffff !important;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.055) !important;
}

body.pro-ui #accountModal .tiny-title {
  width: max-content !important;
  max-width: 100% !important;
  margin-bottom: 10px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

body.pro-ui #accountModal h2,
body.pro-ui #accountModal .account-management-card h3 {
  margin: 0 0 14px !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

body.pro-ui #accountModal label {
  margin-bottom: 7px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

body.pro-ui #accountModal .form-grid {
  gap: 14px !important;
}

body.pro-ui #accountModal input,
body.pro-ui #accountModal textarea,
body.pro-ui #accountModal select {
  min-height: 46px !important;
  padding: 12px 14px !important;
  border-radius: 15px !important;
  border: 1px solid rgba(203, 213, 225, 0.95) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.pro-ui #accountModal textarea {
  min-height: 98px !important;
  resize: vertical !important;
}

body.pro-ui #accountModal input::placeholder,
body.pro-ui #accountModal textarea::placeholder {
  color: #94a3b8 !important;
  -webkit-text-fill-color: #94a3b8 !important;
}

body.pro-ui #accountModal #profilePreview .info-list {
  gap: 10px !important;
}

body.pro-ui #accountModal .info-card {
  padding: 12px 14px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.88) !important;
}

body.pro-ui #accountModal .info-card strong {
  margin-bottom: 5px !important;
  color: #475569 !important;
  -webkit-text-fill-color: #475569 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

body.pro-ui #accountModal .info-card div,
body.pro-ui #accountModal .empty-state {
  color: #1e293b !important;
  -webkit-text-fill-color: #1e293b !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

body.pro-ui #accountModal .btn,
body.pro-ui #accountModal button.btn {
  min-height: 42px !important;
  border-radius: 999px !important;
  padding: 10px 18px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

body.pro-ui #accountModal .account-management-grid {
  gap: 16px !important;
  margin-top: 16px !important;
}

body.pro-ui #accountModal .account-management-card {
  padding: 16px !important;
}

body.pro-ui #accountModal .account-management-card h3 {
  font-size: 22px !important;
}

body.pro-ui #accountModal .my-list,
body.pro-ui #accountModal .mini-list {
  gap: 10px !important;
}

body.pro-ui #accountModal .empty-state {
  min-height: 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px dashed rgba(148, 163, 184, 0.5) !important;
  text-align: center !important;
  font-weight: 700 !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .account-modal-box,
body.dark-mode.pro-ui #accountModal .account-modal-box {
  background:
    linear-gradient(180deg, rgba(15, 27, 47, 0.98), rgba(9, 20, 36, 0.98)),
    #0f1b2f !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42) !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .modal-head,
body.dark-mode.pro-ui #accountModal .modal-head {
  background: rgba(15, 27, 47, 0.92) !important;
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .modal-head button,
body.dark-mode.pro-ui #accountModal .modal-head button {
  background: rgba(226, 232, 240, 0.12) !important;
  color: #e5e7eb !important;
  -webkit-text-fill-color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .account-modal-content .panel,
html[data-theme="dark"] body.pro-ui #accountModal .account-management-card,
body.dark-mode.pro-ui #accountModal .account-modal-content .panel,
body.dark-mode.pro-ui #accountModal .account-management-card {
  background:
    linear-gradient(180deg, rgba(19, 34, 57, 0.98), rgba(14, 27, 47, 0.96)),
    #132239 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body.pro-ui #accountModal h2,
html[data-theme="dark"] body.pro-ui #accountModal .account-management-card h3,
body.dark-mode.pro-ui #accountModal h2,
body.dark-mode.pro-ui #accountModal .account-management-card h3 {
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui #accountModal label,
body.dark-mode.pro-ui #accountModal label {
  color: #cbd5e1 !important;
  -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] body.pro-ui #accountModal input,
html[data-theme="dark"] body.pro-ui #accountModal textarea,
html[data-theme="dark"] body.pro-ui #accountModal select,
body.dark-mode.pro-ui #accountModal input,
body.dark-mode.pro-ui #accountModal textarea,
body.dark-mode.pro-ui #accountModal select {
  background: #17243a !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  color: #f8fbff !important;
  -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .info-card,
html[data-theme="dark"] body.pro-ui #accountModal .empty-state,
body.dark-mode.pro-ui #accountModal .info-card,
body.dark-mode.pro-ui #accountModal .empty-state {
  background: rgba(15, 27, 47, 0.9) !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .info-card strong,
body.dark-mode.pro-ui #accountModal .info-card strong {
  color: #aebbd0 !important;
  -webkit-text-fill-color: #aebbd0 !important;
}

html[data-theme="dark"] body.pro-ui #accountModal .info-card div,
html[data-theme="dark"] body.pro-ui #accountModal .empty-state,
body.dark-mode.pro-ui #accountModal .info-card div,
body.dark-mode.pro-ui #accountModal .empty-state {
  color: #e8eef8 !important;
  -webkit-text-fill-color: #e8eef8 !important;
}

@media (max-width: 900px) {
  body.pro-ui #accountModal .account-modal-content .account-section-embedded {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.pro-ui #accountModal {
    align-items: stretch !important;
    padding: 0 !important;
  }

  body.pro-ui #accountModal .account-modal-box {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 16px !important;
    border-radius: 0 !important;
  }

  body.pro-ui #accountModal .modal-head {
    top: -16px !important;
    margin: -16px -16px 14px !important;
    padding: 16px !important;
  }

  body.pro-ui #accountModal .account-modal-content .panel,
  body.pro-ui #accountModal .account-management-card {
    padding: 15px !important;
    border-radius: 20px !important;
  }

  body.pro-ui #accountModal h2,
  body.pro-ui #accountModal .account-management-card h3 {
    font-size: 22px !important;
    line-height: 1.12 !important;
  }

  body.pro-ui #accountModal .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body.pro-ui #accountModal input,
  body.pro-ui #accountModal textarea,
  body.pro-ui #accountModal select {
    min-height: 44px !important;
    font-size: 14px !important;
  }

  body.pro-ui #accountModal .account-management-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

body.dark-mode.pro-ui .package-quick-btn,
html[data-theme="dark"] body.pro-ui .package-quick-btn {
  background: #20314d !important;
  border-color: rgba(248, 184, 0, 0.34) !important;
  color: #ffe49b !important;
  -webkit-text-fill-color: #ffe49b !important;
}

body.pro-ui #packagesModal .packages-modal-box {
  width: min(1120px, calc(100vw - 32px)) !important;
  max-height: min(86vh, 920px) !important;
  overflow: auto !important;
  padding: 24px !important;
}

body.pro-ui #packagesModal .modal-head {
  align-items: flex-start !important;
  gap: 14px !important;
}

body.pro-ui #packagesModal .modal-head h3 {
  margin: 8px 0 0 !important;
  color: var(--pro-ink) !important;
  font-size: clamp(26px, 4vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
}

body.pro-ui .packages-modal-intro {
  max-width: 720px !important;
  margin: -4px 0 18px !important;
  color: var(--pro-muted) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
}

body.pro-ui .packages-modal-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

html[data-theme="dark"] body.pro-ui #packagesModal .packages-modal-box,
body.dark-mode.pro-ui #packagesModal .packages-modal-box {
  background: linear-gradient(180deg, #101c30, #0b1628) !important;
  border-color: rgba(148, 163, 184, 0.24) !important;
}

@media (max-width: 680px) {
  body.pro-ui #packagesModal .packages-modal-box {
    width: 100vw !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 18px 14px 28px !important;
  }

  body.pro-ui .packages-modal-grid {
    grid-template-columns: 1fr !important;
  }
}
