:root {
  --pink: #e91e8c;
  --pink-dark: #c2185b;
  --pink-light: #ff6fb5;
  --ink: #1a1024;
  --muted: #6b6478;
  --bg: #fdf9fc;
  --card: #ffffff;
  --border: #f0d9e8;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(233, 30, 140, 0.10);
  --shadow-lg: 0 24px 60px rgba(233, 30, 140, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, .brand { font-family: "Inter", sans-serif; }

.container { width: min(1160px, 92%); margin-inline: auto; }

.accent, .brand-accent { color: var(--pink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.9rem 0;
}

.brand {
  font-weight: 800; font-size: 1.05rem; text-decoration: none; color: var(--ink);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 0.65rem;
}

.brand-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff; font-family: "Inter", sans-serif; font-weight: 700; font-size: 1rem;
  display: grid; place-items: center; flex-shrink: 0;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}

/* Header DP: clickable avatar with camera hint */
.brand-avatar.has-photo { color: transparent; }
.header-avatar-hint,
.brand-avatar::after {
  content: "📷";
  position: absolute; inset: auto 0 0 0;
  height: 15px; font-size: 0.55rem;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  opacity: 0; transition: opacity 0.2s;
}
.brand-avatar:hover::after,
.brand-avatar:focus-visible::after { opacity: 1; }
.brand-avatar.has-photo:hover::after { opacity: 1; }
.brand-avatar:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.brand-info { display: flex; flex-direction: column; line-height: 1.3; }

.brand-info .brand-accent {
  font-family: "Inter", sans-serif; font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.01em; color: var(--ink);
}

.brand-name {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.01em; color: var(--pink);
}
.brand.small { font-size: 0.95rem; }

.main-nav { display: flex; gap: 1.6rem; }

.nav-link {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  position: relative; transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--pink); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.cloud-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.35rem 0.7rem; white-space: nowrap;
}
.cloud-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b6b0c2; transition: background 0.2s;
}
.cloud-pill.connected .cloud-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18); }
.cloud-pill.syncing .cloud-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }
.cloud-pill.error .cloud-dot { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18); }


.header-actions .btn { padding: 0.6rem 1.35rem; font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 0.7rem 1.5rem; border-radius: 12px; border: 2px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.02rem; }
.btn-pill { border-radius: 999px; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
}

.btn-outline {
  background: transparent; color: var(--pink); border-color: var(--pink);
}
.btn-outline:hover { background: rgba(233, 30, 140, 0.07); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 6.5rem 0 5rem; text-align: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff5fa 0%, #fdf9fc 100%);
}

.hero-glow {
  position: absolute; inset: -30% -10% auto; height: 720px;
  background:
    radial-gradient(560px 320px at 28% 30%, rgba(233, 30, 140, 0.18), transparent 70%),
    radial-gradient(520px 300px at 76% 20%, rgba(255, 111, 181, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.6rem; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; border: none;
  font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.02em;
  max-width: 100%; margin: 0 auto 1.3rem;
}
.hero-title .hero-title-plain {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: 0;
  color: var(--ink);
}

.hero-title .accent {
  display: block;
  background: linear-gradient(120deg, var(--pink), var(--pink-light));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero-subtitle {
  max-width: 92ch;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}
.hero-inner { text-align: center; }

/* Manual line breaks only on wide screens; small screens wrap naturally */
@media (max-width: 900px) {
  .hero-subtitle br { display: none; }
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-actions .btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--pink);
}

.hero-actions .btn:hover,
.hero-actions .btn.selected {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  border-color: transparent;
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.industries { background: #ffffff; }

.subscriptions { background: #f6f2fd; border-top: 1px solid var(--border); }

.promotions { background: linear-gradient(180deg, #fff8ec, #fff1dd); border-top: 1px solid var(--border); }

.owner-details {
  background: linear-gradient(180deg, #fdf9fc, #fbeef6);
  border-top: 1px solid var(--border);
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.8rem; }

.industries .section-head { max-width: 100%; }
.industries .section-title { white-space: nowrap; }

.portals .section-head { max-width: 100%; }
.portals .section-title { white-space: nowrap; }
.section-subtitle { color: var(--muted); font-size: 1.05rem; }

/* ---------- Industries ---------- */
.industry-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem;
}

.industry-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}
.industry-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pink-light);
}

.industry-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(233, 30, 140, 0.08); border-radius: 14px; margin-bottom: 1rem;
}

.industry-card h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.industry-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Category Detail (Clinic) ---------- */
.category-detail {
  position: fixed; inset: 0; z-index: 100; overflow-y: auto;
  background: linear-gradient(180deg, #fff5fa, #fdf9fc);
  transform: translateY(100%); visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s;
}
.category-detail.open { transform: translateY(0); visibility: visible; }
body.detail-open { overflow: hidden; }

.detail-header {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 4%;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.detail-back { cursor: pointer; }

.detail-hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.detail-icon { font-size: 3rem; margin-bottom: 0.9rem; }
.detail-hero h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 0.6rem; }
.detail-hero p { color: var(--muted); max-width: 62ch; margin: 0 auto; font-size: 1.05rem; }

.detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem; padding-bottom: 4rem;
}

.detail-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; transition: transform 0.2s, border-color 0.2s;
}
.detail-card:hover { transform: translateY(-4px); border-color: var(--pink-light); }

.detail-card-icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(233, 30, 140, 0.08); border-radius: 12px; margin-bottom: 0.85rem;
}
.detail-card h4 { font-size: 1.02rem; margin-bottom: 0.35rem; }
.detail-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Portals ---------- */
.portals { background: linear-gradient(180deg, #fff0f7, #ffe6f2); }

.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }

.portal-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem 1.9rem; display: flex; flex-direction: column; text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.portal-card.featured {
  border-color: var(--pink);
  background: linear-gradient(180deg, #fff, #fff5fa);
}

.portal-icon { font-size: 2.4rem; margin-bottom: 1rem; }
.portal-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.portal-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1.6rem; flex: 1; }
.portal-btn { align-self: center; min-width: 190px; }

/* ---------- Subscriptions ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; align-items: stretch; }

.plan-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.8rem; display: flex; flex-direction: column;
}
.plan-card.popular { border: 2px solid var(--pink); box-shadow: var(--shadow-lg); }

.pop-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--pink-dark)); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.9rem; border-radius: 999px;
  white-space: nowrap;
}

.plan-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.price { font-family: "Inter", sans-serif; font-size: 2.2rem; font-weight: 800; margin-bottom: 1.2rem; }
.price span { font-size: 1rem; font-weight: 500; color: var(--muted); }

.plan-card ul { list-style: none; margin-bottom: 1.6rem; flex: 1; }
.plan-card li { padding: 0.45rem 0 0.45rem 1.5rem; position: relative; color: var(--muted); font-size: 0.95rem; }
.plan-card li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }

/* ---------- Promotions ---------- */
.promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #2a1030, #4a1240); color: #fff;
  border-radius: 24px; padding: 2.8rem 3rem;
}
.promo-banner h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.promo-banner p { color: #e8d5e4; }

/* ---------- Owner Details ---------- */
.owner-profile {
  display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; margin-bottom: 1.6rem; text-align: left;
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.06);
}
.owner-profile-avatar {
  width: 92px; height: 92px; flex: 0 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; font-size: 2.4rem; font-weight: 800;
  box-shadow: none;
  background-size: cover; background-position: center;
  border: 0; cursor: pointer; position: relative;
}
.owner-profile-avatar.has-photo .owner-avatar-letter { display: none; }
.owner-profile-body { flex: 1; min-width: 260px; }
.owner-profile-name { font-size: 1.5rem; font-weight: 800; color: var(--pink-dark); margin-bottom: 0.15rem; }
.owner-profile-role { font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 0.8rem; }
.owner-profile-bio { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1rem; }
.owner-profile-skills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.owner-profile-skills span {
  background: #fff5fa; border: 1px solid var(--border); color: var(--pink-dark);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.78rem; font-weight: 600;
}
.owner-profile-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.owner-profile-actions .btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--pink);
}
.owner-profile-actions .btn:hover {
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-color: transparent;
  color: #fff;
}

/* Social icons revealed by the Contact Owner button */
.owner-socials {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: 1.1rem;
  animation: socials-in 0.28s ease;
}
.owner-socials[hidden] { display: none; }

@keyframes socials-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.social-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: #fff; border: 1.5px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}
.social-icon svg { width: 22px; height: 22px; fill: currentColor; display: block; }
.social-icon:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  border-color: transparent; color: #fff;
}

/* ---------- Portfolio preview panel ---------- */
.portfolio-panel {
  margin-top: 1.4rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  animation: socials-in 0.28s ease;
}
.portfolio-panel[hidden] { display: none; }

.portfolio-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.8rem; flex-wrap: wrap;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(135deg, rgba(233, 30, 140, 0.07), rgba(255, 111, 181, 0.07));
  border-bottom: 1px solid var(--border);
}
.portfolio-title { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.portfolio-head-actions { display: flex; align-items: center; gap: 0.7rem; }
.portfolio-link {
  font-size: 0.82rem; font-weight: 600; color: var(--pink-dark);
  text-decoration: none; white-space: nowrap;
}
.portfolio-link:hover { text-decoration: underline; }
.portfolio-close {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--muted); font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center;
}
.portfolio-close:hover { background: var(--pink); color: #fff; }

.portfolio-frame-wrap { position: relative; background: #fff; }
.portfolio-frame-wrap iframe {
  width: 100%; height: 620px; border: 0; display: block;
}
.portfolio-loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #fff; color: var(--muted); font-size: 0.9rem; font-weight: 600;
}
.portfolio-loader[hidden] { display: none; }

@media (max-width: 700px) {
  .portfolio-frame-wrap iframe { height: 480px; }
  .portfolio-head { padding: 0.6rem 0.7rem; }
}

/* ========== Ratings & Comments ========== */
.reviews {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: 0 10px 30px rgba(233, 30, 140, 0.06);
}
.reviews-head { margin-bottom: 1.5rem; }
.reviews-title { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 0.35rem; }
.reviews-sub { color: var(--muted); font-size: 0.94rem; }

/* Summary: average + distribution */
.reviews-summary {
  display: flex; flex-wrap: wrap; gap: 2rem;
  padding: 1.4rem 1.5rem; margin-bottom: 1.7rem;
  background: #fff5fa; border: 1px solid var(--border); border-radius: 16px;
}
.reviews-score { text-align: center; min-width: 130px; }
.reviews-avg { font-size: 2.6rem; font-weight: 800; color: var(--pink-dark); line-height: 1; }
.reviews-stars-static { color: #f5a623; font-size: 1.15rem; letter-spacing: 0.12em; margin: 0.3rem 0 0.25rem; }
.reviews-count { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

.reviews-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 0.35rem; justify-content: center; }
.rv-bar-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--muted); }
.rv-bar-lbl { width: 38px; font-weight: 600; white-space: nowrap; }
.rv-bar-track { flex: 1; height: 8px; border-radius: 999px; background: #f0dbe6; overflow: hidden; }
.rv-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--pink), var(--pink-light)); transition: width 0.35s ease; }
.rv-bar-val { width: 26px; text-align: right; font-weight: 700; color: var(--ink); }

/* Form */
.review-form {
  padding: 1.4rem 1.5rem; margin-bottom: 1.7rem;
  background: #fff; border: 1px dashed var(--pink); border-radius: 16px;
}
.review-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.review-form .field { margin-bottom: 0.9rem; }
.review-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.review-form input[type="text"],
.review-form textarea {
  width: 100%; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  padding: 0.65rem 0.9rem; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1); }
.review-form input.invalid, .review-form textarea.invalid { border-color: #ef4444; }

.star-picker { display: flex; align-items: center; gap: 0.15rem; }
.star-picker .star {
  background: none; border: 0; cursor: pointer; padding: 0 0.08rem;
  font-size: 1.75rem; line-height: 1; color: #ddd;
  transition: color 0.15s, transform 0.15s;
}
.star-picker .star:hover { transform: scale(1.12); }
.star-picker .star.on { color: #f5a623; }
.star-value { margin-left: 0.6rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }

.review-form-actions { display: flex; justify-content: flex-end; }

/* Review list */
.review-list { display: flex; flex-direction: column; gap: 0.9rem; }
.review-item {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.2rem; position: relative;
}
.review-item-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--pink-light));
  color: #fff; font-weight: 700; font-size: 0.95rem;
  display: grid; place-items: center;
}
.review-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.review-date { font-size: 0.78rem; color: var(--muted); margin-left: auto; }
.review-stars { color: #f5a623; font-size: 0.95rem; letter-spacing: 0.08em; }
.review-comment { color: var(--muted); font-size: 0.93rem; line-height: 1.65; white-space: pre-wrap; }
.review-del {
  position: absolute; top: 0.75rem; right: 0.8rem;
  background: none; border: 0; cursor: pointer; color: #c8c8c8;
  font-size: 1.05rem; line-height: 1;
}
.review-del:hover { color: #ef4444; }

@media (max-width: 700px) {
  .reviews { padding: 1.5rem 1.15rem; }
  .reviews-summary { gap: 1.2rem; padding: 1.2rem 1.1rem; }
  .review-form { padding: 1.15rem 1.1rem; }
  .review-form-row { grid-template-columns: 1fr; }
  .review-form-actions .btn { width: 100%; }
}

/* ========== Guides & Updates ========== */
.articles-filter {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin-bottom: 2rem;
}
.art-filter {
  background: #fff; border: 1.5px solid var(--border); cursor: pointer;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted);
  padding: 0.5rem 1.25rem; border-radius: 999px;
  transition: all 0.18s;
}
.art-filter:hover { border-color: var(--pink); color: var(--pink-dark); }
.art-filter.active {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-color: transparent; color: #fff;
}

.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}
.article-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.45rem; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.article-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--pink), var(--pink-light));
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(233, 30, 140, 0.12);
  border-color: rgba(233, 30, 140, 0.28);
}

.article-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.article-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
  text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 999px;
  background: #fff5fa; color: var(--pink-dark); border: 1px solid var(--border);
}
.article-tag[data-tag="Guide"]  { background: #eef6ff; color: #1d6fb8; }
.article-tag[data-tag="Update"] { background: #edfbf1; color: #1f8a4c; }
.article-date { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.article-pinned { font-size: 0.7rem; font-weight: 700; color: var(--pink-dark); margin-left: auto; }

.article-title { font-size: 1.12rem; font-weight: 800; color: var(--ink); margin-bottom: 0.6rem; line-height: 1.35; }
.article-body {
  color: var(--muted); font-size: 0.93rem; line-height: 1.7;
  white-space: pre-wrap; flex: 1;
}
.article-actions { display: flex; gap: 0.9rem; margin-top: 1rem; align-items: center; }
.article-link {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 0.86rem; font-weight: 700; color: var(--pink-dark);
}
.article-link:hover { text-decoration: underline; }

.articles-empty {
  text-align: center; color: var(--muted); font-size: 0.94rem;
  padding: 2rem 1rem; background: var(--card); border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.articles-empty[hidden] { display: none; }

.articles-pager { display: flex; justify-content: center; align-items: center; gap: 0.45rem; margin-top: 2rem; flex-wrap: wrap; }
.articles-pager:empty { display: none; }
.page-dot, .page-nav {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1.5px solid var(--border);
  font-family: inherit; font-size: 0.86rem; font-weight: 700; color: var(--muted);
  transition: all 0.18s; display: grid; place-items: center;
}
.page-nav { font-size: 1.15rem; line-height: 1; }
.page-dot:hover, .page-nav:hover:not(:disabled) { border-color: var(--pink); color: var(--pink-dark); }
.page-dot.active {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-color: transparent; color: #fff;
}
.page-nav:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 700px) {
  .articles-grid { grid-template-columns: 1fr; }
}

.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.owner-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; border-left: 4px solid var(--pink);
}
.owner-card h4 { margin-bottom: 0.4rem; font-size: 1.05rem; }
.owner-card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- Owner Account Modal ---------- */
.owner-modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
  background: rgba(26, 16, 36, 0.55); backdrop-filter: blur(4px);
}
.owner-modal.open { display: flex; }

.owner-modal-box {
  position: relative; width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 22px; border: 1px solid var(--border);
  padding: 2rem 1.8rem; text-align: center;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: 0; font-size: 1.6rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.modal-close:hover { color: var(--pink); }

.modal-icon { font-size: 2.4rem; margin-bottom: 0.5rem; }
.owner-modal-box h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }

.field { text-align: left; margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--ink); }
.field input, .field select {
  width: 100%; padding: 0.65rem 0.85rem; font-family: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: border-color 0.18s;
}
.field input:focus, .field select:focus { border-color: var(--pink); }
.field input.invalid, .field select.invalid { border-color: #e53935; background: #fff6f6; }

.field-error { display: block; min-height: 1rem; font-size: 0.76rem; color: #e53935; margin-top: 0.25rem; }

.btn-block { display: block; width: 100%; margin-top: 0.4rem; }

/* CEO panel */
.ceo-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.1rem;
}
.ceo-stat {
  background: #fff5fa; border: 1px solid var(--border); border-radius: 12px;
  padding: 0.6rem 0.5rem; text-align: center;
}
.ceo-stat span { display: block; font-size: 0.68rem; color: var(--muted); margin-bottom: 0.15rem; }
.ceo-stat strong { font-size: 0.86rem; color: var(--pink-dark); word-break: break-word; }

.ceo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1rem; }
.ceo-actions .btn { padding: 0.65rem 0.6rem; font-size: 0.86rem; text-align: center; }

#ceoAddForm {
  text-align: left; border-top: 1px solid var(--border); padding-top: 1rem; margin-bottom: 0.6rem;
}

.ceo-note { font-size: 0.8rem; color: var(--muted); }

/* CEO remove button on category cards */
.card-remove { display: none !important; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; transform: translate(-50%, 140%);
  background: var(--ink); color: #fff; padding: 0.75rem 1.4rem; border-radius: 999px;
  font-size: 0.9rem; z-index: 300; transition: transform 0.3s ease; max-width: 90vw; text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { background: #c62828; }

/* Locked category cards (owner access) */
.industry-card { position: relative; }
.industry-card.locked { opacity: 0.55; filter: grayscale(0.5); }
.industry-card.locked::after {
  content: "🔒"; position: absolute; top: 0.9rem; right: 1rem; font-size: 1.05rem;
}
.industry-card.allowed { border-color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 1.8rem 0; background: #f9f4f8; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Mobile nav ---------- */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .nav-link { padding: 0.9rem 5%; border-top: 1px solid var(--border); }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .btn-pill { padding: 0.6rem 1.2rem; font-size: 0.88rem; }
}

@media (max-width: 560px) {
  .header-actions .btn-pill { display: none; }
  .cloud-pill #cloudPillText { display: none; }
  .cloud-pill { padding: 0.4rem 0.5rem; }
  .promo-banner { padding: 2rem 1.6rem; }
  .industries .section-title,
  .portals .section-title { white-space: normal; }
}


/* ---------- Feature panels (per detail-card CRUD) ---------- */
.detail-card { cursor: pointer; }

.feature-modal {
  position: fixed; inset: 0; z-index: 150;
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
  background: rgba(26, 16, 36, 0.55); backdrop-filter: blur(4px);
}
.feature-modal.open { display: flex; }

.feature-panel {
  position: relative; width: min(820px, 100%); max-height: 88vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 1.9rem 1.7rem; text-align: left;
  animation: modalIn 0.28s ease;
}

.feature-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.feature-title { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.3rem;
  background: rgba(233, 30, 140, 0.08); border-radius: 12px; flex-shrink: 0;
}
.feature-title h3 { font-size: 1.18rem; line-height: 1.25; }
.feature-sub { color: var(--muted); font-size: 0.85rem; }
.feature-head .btn { padding: 0.55rem 1.15rem; font-size: 0.88rem; }

.f-empty {
  text-align: center; color: var(--muted); font-size: 0.95rem;
  border: 1px dashed var(--border); background: #fff7fb;
  border-radius: 14px; padding: 2.4rem 1.2rem;
}
.f-empty strong { color: var(--pink); }
.f-muted { color: var(--muted); }

.f-table-wrap { overflow-x: auto; }
.f-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.f-table th, .f-table td {
  padding: 0.6rem 0.55rem; border-bottom: 1px solid var(--border);
  text-align: left; vertical-align: top; word-break: break-word;
}
.f-table th {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted); background: #fff7fb; white-space: nowrap;
}
.f-table tbody tr:hover td { background: #fffafd; }
.f-table .f-act-cell { text-align: right; white-space: nowrap; }

.f-actions { display: inline-flex; gap: 0.4rem; }
.f-btn {
  border: 0; cursor: pointer; border-radius: 8px; padding: 0.35rem 0.7rem;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
.f-btn.edit { background: rgba(233, 30, 140, 0.1); color: var(--pink-dark); }
.f-btn.del { background: #ffebee; color: #c62828; }
.f-btn.edit:hover { background: var(--pink); color: #fff; }
.f-btn.del:hover { background: #c62828; color: #fff; }

.f-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 1rem; }
.f-form-grid .field { margin-bottom: 0.85rem; }
.f-form-grid .field textarea {
  width: 100%; padding: 0.65rem 0.85rem; font-family: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--ink); outline: none; resize: vertical; transition: border-color 0.18s;
}
.f-form-grid .field textarea:focus { border-color: var(--pink); }
.f-form-grid .field textarea.invalid { border-color: #e53935; background: #fff6f6; }
.req-star { color: var(--pink); }

.f-form-actions {
  display: flex; justify-content: flex-end; gap: 0.7rem;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.f-form-actions .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

@media (max-width: 560px) {
  .feature-panel { padding: 1.5rem 1.1rem; }
  .feature-head .btn { width: 100%; }
  .f-form-actions { flex-direction: column-reverse; }
  .f-form-actions .btn { width: 100%; }
}

/* ---------- Feature count badges on detail cards ---------- */
.f-count {
  position: absolute; top: 0.9rem; right: 1rem;
  min-width: 24px; height: 24px; padding: 0 0.45rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink); color: #fff; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
}
.detail-card { position: relative; }

/* ---------- My Data browser (per-category sheet view) ---------- */
.detail-data-btn { cursor: pointer; font-size: 0.85rem; padding: 0.5rem 1rem; white-space: nowrap; }
.detail-header .detail-data-btn { margin: 0 0.25rem; }
.detail-admin-btn { cursor: pointer; font-size: 0.85rem; padding: 0.5rem 1rem; white-space: nowrap; }
.detail-header .detail-admin-btn { margin: 0 0.25rem; }

.data-head-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.data-head-actions .btn { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

.data-search { margin-bottom: 1.1rem; }
.data-search input {
  width: 100%; padding: 0.7rem 0.95rem; font-family: inherit; font-size: 0.93rem;
  border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  color: var(--ink); outline: none; transition: border-color 0.18s;
}
.data-search input:focus { border-color: var(--pink); }

.sheet-section {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 1.2rem; overflow: hidden; background: #fff;
}
.sheet-sec-head {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.65rem 1rem; background: #fff7fb; border-bottom: 1px solid var(--border);
}
.sheet-sec-icon { font-size: 1.05rem; }
.sheet-sec-head h4 { flex: 1; font-size: 0.95rem; }
.data-cat-total {
  font-size: 0.75rem; font-weight: 700; color: var(--pink-dark);
  background: rgba(233, 30, 140, 0.1); padding: 0.2rem 0.6rem; border-radius: 999px;
}

.sheet-table { min-width: 480px; }
.sheet-table th {
  position: sticky; top: 0; z-index: 1;
  background: #fdf2f8; box-shadow: inset 0 -1px 0 var(--border);
}
.sheet-table tbody tr:nth-child(even) td { background: #fdfbfc; }
.sheet-table tbody tr:hover td { background: #fff0f7; }

@media (max-width: 560px) {
  .data-head-actions { width: 100%; }
  .data-head-actions .btn { flex: 1; }
  .detail-data-btn { font-size: 0.78rem; padding: 0.45rem 0.8rem; }
  .detail-header .brand.small { display: none; }
}

/* ---------- Mobile responsive polish ---------- */
@media (max-width: 900px) {
  .container { width: 92%; }

  .header-inner { gap: 0.7rem; }
  .brand-info .brand-accent { font-size: 0.68rem; }
  .brand-name { font-size: 0.95rem; }

  .hero { padding: 4.5rem 0 3.5rem; }
  .hero-badge { font-size: 0.95rem; padding: 0.5rem 1.2rem; }

  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.2rem; }

  .promo-banner { padding: 2.2rem 1.8rem; }
}

@media (max-width: 600px) {
  .container { width: 94%; }

  .header-inner { padding: 0.75rem 0; }
  .brand-avatar { width: 36px; height: 36px; font-size: 0.9rem; }
  .header-actions .btn { padding: 0.55rem 1rem; font-size: 0.85rem; }
  .brand-info { display: none; }
  .brand-profile { gap: 0; }

  .hero { padding: 3.4rem 0 2.8rem; }
  .hero-badge { font-size: 0.82rem; padding: 0.45rem 1rem; margin-bottom: 1rem; }
  .hero-title { line-height: 1.15; margin-bottom: 1rem; }
  .hero-subtitle { font-size: 0.98rem; margin-bottom: 1.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 3.2rem 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 0.95rem; }
  .industries .section-title, .portals .section-title { white-space: normal; }

  .industry-grid, .detail-grid { grid-template-columns: 1fr; gap: 1rem; }
  .industry-card { padding: 1.4rem 1.2rem; }
  .industry-icon { width: 46px; height: 46px; font-size: 1.35rem; }

  .portal-grid, .plan-grid, .owner-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .portal-card { padding: 1.7rem 1.3rem; }
  .plan-card { padding: 1.6rem 1.3rem; }

  .promo-banner { padding: 1.8rem 1.3rem; text-align: center; }
  .promo-banner .btn { width: 100%; }

  .footer-inner { flex-direction: column; text-align: center; }

  .detail-hero { padding: 2.4rem 0 1.8rem; }
  .detail-hero p { font-size: 0.96rem; }
  .detail-card { padding: 1.3rem 1.15rem; }

  /* Modals fill the screen comfortably */
  .owner-modal, .feature-modal { padding: 0.6rem; }
  .owner-modal-box { padding: 1.6rem 1.2rem; border-radius: 18px; max-height: 94vh; }
  .feature-panel { padding: 1.4rem 1.05rem; border-radius: 18px; max-height: 94vh; }

  .ceo-stats { grid-template-columns: 1fr; }
  .ceo-actions { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .detail-header { gap: 0.55rem; padding: 0.75rem 4%; }
  .detail-back { font-size: 0.82rem; padding: 0.5rem 0.9rem; }
  .detail-data-btn { order: 3; width: 100%; margin: 0.2rem 0 0; }

  .feature-title { gap: 0.55rem; }
  .feature-icon { width: 40px; height: 40px; font-size: 1.15rem; }
  .feature-title h3 { font-size: 1.05rem; }

  /* Keep sheets usable on small screens */
  .f-table, .sheet-table { min-width: 440px; font-size: 0.85rem; }
  .f-table th, .f-table td { padding: 0.5rem 0.45rem; }

  .sheet-sec-head { padding: 0.55rem 0.8rem; }
  .sheet-sec-head h4 { font-size: 0.88rem; }

  .f-form-actions { flex-direction: column-reverse; }
  .f-form-actions .btn { width: 100%; }

  .toast { left: 4%; right: 4%; transform: translateY(140%); max-width: none; width: auto; }
  .toast.show { transform: translateY(0); }
}

@media (max-width: 380px) {
  .header-actions .btn { padding: 0.5rem 0.8rem; font-size: 0.8rem; }
  .hero-title { font-size: 1.85rem; }
  .f-table, .sheet-table { min-width: 400px; }
}

/* ---------- Super Admin Panel ---------- */
.admin-panel { width: min(1040px, 100%); }

.admin-tabs {
  display: flex; gap: 0.25rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin-bottom: 1.3rem;
}
.admin-tab {
  border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: 0.86rem; font-weight: 600; color: var(--muted);
  padding: 0.6rem 0.85rem; border-bottom: 2px solid transparent; margin-bottom: -1px;
  border-radius: 8px 8px 0 0; transition: color 0.15s, background 0.15s;
}
.admin-tab:hover { color: var(--pink-dark); background: #fff5fa; }
.admin-tab.active { color: var(--pink); border-bottom-color: var(--pink); }

.admin-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem; margin-bottom: 1.3rem;
}
.admin-stat {
  background: linear-gradient(160deg, #fff5fa, #fdeaf4);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 1rem 0.9rem; text-align: center;
}
.admin-stat .admin-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--pink-dark); line-height: 1.05; }
.admin-stat-grid .admin-stat-num { word-break: break-word; }
.admin-stat .admin-stat-lbl { font-size: 0.73rem; color: var(--muted); margin-top: 0.3rem; font-weight: 600; letter-spacing: 0.02em; }

.admin-section-title {
  font-size: 0.95rem; font-weight: 700; margin: 1.4rem 0 0.7rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.admin-hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; line-height: 1.5; }
.admin-note {
  background: #fffaf0; border: 1px solid #f3e2c0; color: #9a6a1a;
  border-radius: 10px; padding: 0.6rem 0.9rem; font-size: 0.82rem; margin-bottom: 1rem;
}

/* --- Owner cards --- */
.admin-owner-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.1rem;
  margin-bottom: 0.8rem; background: #fff; text-align: left;
  transition: box-shadow 0.15s;
}
.admin-owner-card:hover { box-shadow: 0 6px 20px rgba(233, 30, 140, 0.08); }
.admin-owner-head { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.admin-owner-id { display: flex; align-items: center; gap: 0.7rem; }
.admin-owner-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink); color: #fff; font-weight: 800; font-size: 1.05rem;
}
.admin-owner-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.admin-owner-meta { color: var(--muted); font-size: 0.82rem; margin-top: 0.15rem; }
.admin-owner-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.admin-owner-count {
  font-size: 0.74rem; font-weight: 700; color: var(--pink-dark);
  background: #fff5fa; border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.65rem;
}
.admin-role-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--pink-dark); background: #ffe3f1; border-radius: 999px; padding: 0.15rem 0.5rem;
}

.admin-cat-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.admin-cat-chip {
  border: 1px solid var(--border); background: #fff; border-radius: 999px;
  padding: 0.32rem 0.8rem; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--muted); font-family: inherit; transition: all 0.15s;
}
.admin-cat-chip.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.admin-cat-chip:hover { border-color: var(--pink-light); transform: translateY(-1px); }

.admin-empty {
  text-align: center; color: var(--muted); font-size: 0.92rem;
  border: 1px dashed var(--border); background: #fff7fb;
  border-radius: 14px; padding: 2rem 1.2rem;
}

/* --- Category rows --- */
.admin-cat-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.95rem;
  margin-bottom: 0.5rem; background: #fff; flex-wrap: wrap;
}
.admin-cat-row-left { display: flex; align-items: center; gap: 0.65rem; }
.admin-cat-row-icon { font-size: 1.25rem; }
.admin-cat-row-name { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.4rem; }
.admin-cat-row-meta { color: var(--muted); font-size: 0.76rem; }
.admin-cat-badge {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #6a1b9a; background: #f3e5f5; border-radius: 999px; padding: 0.1rem 0.45rem;
}
.admin-locked-tag { font-size: 0.76rem; font-weight: 600; color: var(--muted); }

/* --- Buttons --- */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.admin-ghost-btn {
  border: 1px solid var(--pink-light); background: #fff; cursor: pointer;
  border-radius: 8px; padding: 0.4rem 0.85rem; font-family: inherit;
  font-size: 0.78rem; font-weight: 600; color: var(--pink-dark); transition: all 0.15s;
}
.admin-ghost-btn:hover { background: var(--pink); color: #fff; border-color: var(--pink); }
.admin-danger-btn {
  border: 0; cursor: pointer; border-radius: 8px; padding: 0.42rem 0.85rem;
  font-family: inherit; font-size: 0.78rem; font-weight: 600;
  background: #ffebee; color: #c62828; transition: all 0.15s;
}
.admin-danger-btn:hover { background: #c62828; color: #fff; }

/* --- Data filters --- */
.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.admin-filter {
  border: 1px solid var(--border); background: #fff; cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.78rem; font-weight: 600; color: var(--muted);
  transition: all 0.15s;
}
.admin-filter:hover { border-color: var(--pink-light); color: var(--pink-dark); }
.admin-filter.active { background: var(--pink); color: #fff; border-color: var(--pink); }

/* --- Recent activity --- */
.admin-recent { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.admin-recent-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 0.7rem;
  align-items: center; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border);
  font-size: 0.83rem; background: #fff;
}
.admin-recent-row:last-child { border-bottom: 0; }
.admin-recent-icon { font-size: 1.05rem; }
.admin-recent-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-recent-cat { color: var(--pink-dark); font-weight: 600; font-size: 0.76rem; }
.admin-recent-date { color: var(--muted); font-size: 0.74rem; }

/* --- Reports --- */
.admin-report-table td:first-child { white-space: nowrap; }
.admin-bars { display: flex; flex-direction: column; gap: 0.5rem; }
.admin-bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 4fr auto; gap: 0.7rem; align-items: center; }
.admin-bar-lbl { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-bar-track { background: #f3e3ee; border-radius: 999px; height: 12px; overflow: hidden; }
.admin-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--pink-light), var(--pink)); border-radius: 999px; }
.admin-bar-val { font-size: 0.78rem; font-weight: 700; color: var(--pink-dark); min-width: 1.6rem; text-align: right; }

/* --- Settings --- */
.admin-setting-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.55rem; background: #fff;
}
.admin-setting-name { font-weight: 600; font-size: 0.9rem; }
.admin-setting-sub { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
.admin-pill {
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.28rem 0.7rem;
  background: #f0f0f0; color: #555;
}
.admin-pill.ok { background: #e6f7ec; color: #1b7a3d; }
.admin-pill.off { background: #fdecec; color: #c62828; }

@media (max-width: 600px) {
  .admin-tab { font-size: 0.78rem; padding: 0.5rem 0.6rem; }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-owner-head { align-items: flex-start; }
  .admin-owner-actions { width: 100%; justify-content: space-between; }
  .admin-cat-row { flex-direction: column; align-items: flex-start; }
  .admin-cat-row .admin-ghost-btn { width: 100%; }
  .admin-recent-row { grid-template-columns: auto 1fr; }
  .admin-recent-cat, .admin-recent-date { grid-column: 2; }
  .admin-bar-row { grid-template-columns: 1fr auto; }
  .admin-bar-track { grid-column: 1 / -1; order: 3; }
}

/* ========== Business Registration ========== */
.biz-reg { background: linear-gradient(180deg, #fffafd 0%, #ffffff 100%); }

/* --- Register CTA card --- */
.reg-cta-card {
  position: relative; overflow: hidden;
  max-width: 880px; margin: 0 auto;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 2.8rem 2.4rem;
  box-shadow: 0 18px 48px rgba(233, 30, 140, 0.1);
}
.reg-cta-glow {
  position: absolute; top: -120px; right: -120px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(233, 30, 140, 0.16), transparent 68%);
  pointer-events: none;
}
.reg-cta-body { position: relative; text-align: center; }
.reg-cta-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  background: #fff5fa; color: var(--pink-dark);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.95rem; margin-bottom: 1rem;
}
.reg-cta-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800;
  color: var(--ink); line-height: 1.25; margin-bottom: 0.8rem;
}
.reg-cta-text {
  font-size: 0.96rem; color: var(--muted); line-height: 1.7;
  max-width: 620px; margin: 0 auto 1.4rem;
}
.reg-cta-list {
  list-style: none; padding: 0; margin: 0 auto 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.4rem;
  max-width: 680px;
}
.reg-cta-list li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.88rem; color: var(--muted); line-height: 1.5;
}
.reg-cta-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--pink); font-weight: 800;
}
.reg-cta-plans {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem;
  margin-bottom: 1.8rem;
}
.reg-cta-plan {
  display: flex; align-items: baseline; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  background: #fffafd; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 0.5rem 1.1rem;
}
.reg-cta-plan strong { font-size: 1.05rem; font-weight: 800; color: var(--pink-dark); }
.reg-cta-plan.popular { border-color: var(--pink); background: #fff5fa; box-shadow: 0 6px 18px rgba(233, 30, 140, 0.13); }
.reg-cta-btn { min-width: 240px; }

/* --- Registration modal --- */
.reg-modal {
  position: fixed; inset: 0; z-index: 60;
  display: none; align-items: flex-start; justify-content: center;
  background: rgba(26, 16, 36, 0.55);
  padding: 2.5rem 1rem; overflow-y: auto;
}
.reg-modal.open { display: flex; }
.reg-modal-box {
  position: relative; width: min(780px, 100%);
  background: var(--card); border-radius: 22px;
  padding: 2rem 1.9rem 2.2rem;
  box-shadow: 0 24px 60px rgba(26, 16, 36, 0.28);
  animation: modalIn 0.22s ease;
}
.reg-modal-close {
  position: absolute; top: 0.7rem; right: 0.9rem;
  background: none; border: 0; font-size: 1.7rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.reg-modal-close:hover { color: var(--pink); }
.reg-modal-head { margin-bottom: 1.4rem; padding-right: 2rem; }
.reg-form-title-modal { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }
.reg-modal-sub { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* --- Mini plan picker --- */
.plan-mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.plan-mini {
  position: relative; cursor: pointer; font-family: inherit; text-align: left;
  display: flex; flex-direction: column; gap: 0.2rem;
  background: #fff; border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1rem 0.9rem; transition: all 0.18s;
}
.plan-mini:hover { border-color: rgba(233, 30, 140, 0.4); }
.plan-mini.featured { border-color: var(--pink); }
.plan-mini.selected {
  border-color: var(--pink); border-width: 2px; background: #fff5fa;
  box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.13);
}
.plan-mini-name { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.plan-mini-price { font-size: 0.78rem; color: var(--muted); }
.plan-mini-price strong { font-size: 1.15rem; font-weight: 800; color: var(--pink-dark); }
.plan-mini-note { font-size: 0.72rem; color: var(--muted); }
.plan-mini-ribbon {
  position: absolute; top: -9px; right: 0.7rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.18rem 0.55rem; border-radius: 999px;
}
.reg-optional {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--muted);
  background: #f4f4f6; border-radius: 999px; padding: 0.15rem 0.55rem;
  vertical-align: middle; margin-left: 0.35rem;
}

/* --- Form shell --- */
.reg-form {
  background: transparent; border: 0; border-radius: 0;
  padding: 0; box-shadow: none;
}
.reg-form-title {
  font-size: 1rem; font-weight: 800; color: var(--ink);
  margin: 1.6rem 0 0.9rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  display: flex; align-items: center;
}
.reg-form-title:first-child { margin-top: 0; }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.reg-form .field { margin-bottom: 0.85rem; }
.reg-form label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 0.3rem; }
.reg-form input[type="text"],
.reg-form input[type="tel"],
.reg-form input[type="url"],
.reg-form textarea,
.reg-form select {
  width: 100%; font-family: inherit; font-size: 0.9rem; color: var(--ink);
  padding: 0.6rem 0.8rem; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; outline: none; transition: border-color 0.18s, box-shadow 0.18s;
  resize: vertical;
}
.reg-form input:focus, .reg-form textarea:focus, .reg-form select:focus {
  border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}
.reg-form input.invalid, .reg-form textarea.invalid, .reg-form select.invalid { border-color: #ef4444; }
.field-hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.field-error { display: block; font-size: 0.76rem; color: #ef4444; font-weight: 600; margin-top: 0.25rem; min-height: 0.9em; }

/* --- Media upload --- */
.reg-media-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; margin-top: -0.6rem; }
.reg-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.media-box {
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 1.1rem;
  background: #fffafd;
}
.media-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; }
.media-box input[type="file"] {
  width: 100%; font-family: inherit; font-size: 0.82rem; color: var(--muted);
  padding: 0.5rem; border: 1px solid var(--border); border-radius: 9px; background: #fff;
}
.media-box input[type="file"]::file-selector-button {
  font-family: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer;
  border: 0; border-radius: 7px; padding: 0.4rem 0.8rem; margin-right: 0.7rem;
  background: var(--pink); color: #fff;
}
.media-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
.media-thumb {
  position: relative; width: 68px; height: 68px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
}
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb .media-kind {
  position: absolute; bottom: 0; left: 0; right: 0; text-align: center;
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
  background: rgba(26, 16, 36, 0.72); color: #fff; padding: 0.1rem 0;
}
.media-empty { font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* --- Selected plan summary --- */
.reg-plan-summary {
  border: 1.5px solid var(--border); border-radius: 14px; padding: 1.1rem 1.2rem;
  background: #fffafd; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; align-items: center;
}
.reg-plan-none { font-size: 0.9rem; color: var(--muted); font-style: italic; }
.reg-plan-item { display: flex; flex-direction: column; gap: 0.15rem; }
.reg-plan-item span { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.reg-plan-item strong { font-size: 1rem; font-weight: 800; color: var(--pink-dark); }

/* --- Payment: contact the owner --- */
.pay-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  flex-wrap: wrap; margin-top: 1rem;
  background: linear-gradient(135deg, #fff5fa, #fff);
  border: 1.5px solid var(--pink); border-radius: 16px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 10px 26px rgba(233, 30, 140, 0.11);
}
.pay-contact-info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 220px; }
.pay-contact-label { font-size: 0.86rem; font-weight: 700; color: var(--ink); line-height: 1.5; }
.pay-contact-number {
  font-size: 1.5rem; font-weight: 800; color: var(--pink-dark);
  letter-spacing: 0.01em; text-decoration: none;
}
.pay-contact-number:hover { text-decoration: underline; }
.pay-contact-sub { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.pay-contact-btn { white-space: nowrap; }

/* --- Note just above the submit button --- */
.reg-before-submit {
  background: #fff5fa; border: 1.5px solid var(--border); border-left: 4px solid var(--pink);
  border-radius: 14px; padding: 1rem 1.2rem; margin: 1.2rem 0 0.2rem;
}
.reg-before-submit strong { display: block; font-size: 0.92rem; font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }
.reg-before-submit p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; margin: 0; }

.pay-note {
  display: flex; gap: 0.9rem; align-items: flex-start;
  background: #fffaf0; border: 1.5px solid #f3dcae; border-radius: 14px;
  padding: 1.1rem 1.2rem; margin-top: 1rem; margin-bottom: 0.4rem;
}
.pay-note-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: #d97706; color: #fff; font-size: 0.82rem; font-weight: 800;
  display: grid; place-items: center;
}
.pay-note strong { display: block; font-size: 0.92rem; font-weight: 700; color: #92500a; margin-bottom: 0.25rem; }
.pay-note p { font-size: 0.85rem; color: #8a6212; line-height: 1.65; margin: 0; }

/* --- Terms + actions --- */
.reg-terms {
  display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.5rem 0 0.3rem;
  font-size: 0.88rem; color: var(--muted); cursor: pointer; line-height: 1.55;
}
.reg-terms input { margin-top: 0.22rem; accent-color: var(--pink); width: 16px; height: 16px; flex-shrink: 0; }
.reg-actions { display: flex; gap: 0.8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.reg-actions .btn { flex: 1; min-width: 190px; }

/* --- Submitted list --- */
.reg-list-wrap { max-width: 880px; margin: 2.4rem auto 0; }
.reg-list-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 1rem; }
.reg-list { display: flex; flex-direction: column; gap: 0.9rem; }
.reg-item {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--pink);
  border-radius: 14px; padding: 1.1rem 1.2rem;
}
.reg-item-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.reg-item-name { font-weight: 800; font-size: 0.98rem; color: var(--ink); }
.reg-item-plan {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: #fff5fa; color: var(--pink-dark); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.25rem 0.7rem;
}
.reg-item-status {
  font-size: 0.72rem; font-weight: 700; border-radius: 999px; padding: 0.25rem 0.7rem;
  background: #fff7e8; color: #a86a00;
}
.reg-item-status.live { background: #e6f7ec; color: #1b7a3d; }
.reg-item-status.s-paid { background: #eaf2ff; color: #1d4ed8; }
.reg-item-status.s-expired, .reg-item-status.s-stopped { background: #f3f3f5; color: #6b6478; }
.reg-item-meta { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }
.reg-item-meta strong { color: var(--ink); font-weight: 600; }
.reg-item-del {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 0.8rem; font-weight: 600; color: #b9b9b9; margin-left: auto;
}
.reg-item-del:hover { color: #ef4444; }

/* --- CEO Business Ads panel --- */
.admin-close {
  position: absolute; top: 0.9rem; right: 1rem;
  background: none; border: 0; font-size: 1.7rem; line-height: 1;
  color: var(--muted); cursor: pointer;
}
.admin-close:hover { color: var(--pink); }
.admin-title { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin-bottom: 0.3rem; }
.admin-empty {
  text-align: center; color: var(--muted); font-size: 0.9rem; font-style: italic;
  padding: 2rem 1rem; border: 1.5px dashed var(--border); border-radius: 14px;
}

.biz-ad-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.4rem 0 1.1rem; }
.biz-ad-filter {
  cursor: pointer; font-family: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 0.45rem 0.95rem; border-radius: 999px;
  border: 1.5px solid var(--border); background: #fff; color: var(--muted);
  transition: all 0.18s;
}
.biz-ad-filter:hover { border-color: rgba(233, 30, 140, 0.4); color: var(--pink-dark); }
.biz-ad-filter.active {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  border-color: transparent; color: #fff;
}

.biz-ad-list { display: flex; flex-direction: column; gap: 0.9rem; }
.biz-ad {
  border: 1.5px solid var(--border); border-left: 4px solid var(--pink);
  border-radius: 14px; padding: 1.1rem 1.2rem; background: #fff;
}
.biz-ad-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.biz-ad-name { font-weight: 800; font-size: 1rem; color: var(--ink); }
.biz-ad-plan {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  background: #fff5fa; color: var(--pink-dark); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.22rem 0.65rem;
}
.biz-ad-amount { margin-left: auto; font-weight: 800; font-size: 0.92rem; color: var(--pink-dark); }
.biz-ad-status {
  font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.22rem 0.7rem;
}
.biz-ad-status.s-pending { background: #fff7e8; color: #a86a00; }
.biz-ad-status.s-paid { background: #eaf2ff; color: #1d4ed8; }
.biz-ad-status.s-live { background: #e6f7ec; color: #1b7a3d; }
.biz-ad-status.s-expired, .biz-ad-status.s-stopped { background: #f3f3f5; color: #6b6478; }

.biz-ad-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem 1rem; margin-bottom: 0.6rem;
}
.biz-ad-grid > div { display: flex; flex-direction: column; gap: 0.1rem; }
.biz-ad-grid span {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted);
}
.biz-ad-grid strong { font-size: 0.86rem; font-weight: 600; color: var(--ink); word-break: break-word; }
.biz-ad-about { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.7rem; }
.biz-ad-links { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; margin-bottom: 0.7rem; }
.biz-ad-link {
  font-size: 0.76rem; font-weight: 600; text-decoration: none;
  color: var(--pink-dark); background: #fff5fa;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.biz-ad-link:hover { border-color: var(--pink); }
.biz-ad-link.plain { color: var(--muted); background: #f7f7f9; cursor: default; }

.biz-ad-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.biz-ad-btn {
  cursor: pointer; font-family: inherit; font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 0.9rem; border-radius: 9px;
  border: 1.5px solid var(--border); background: #fff; color: var(--ink);
  transition: all 0.18s;
}
.biz-ad-btn:hover { border-color: var(--pink); color: var(--pink-dark); }
.biz-ad-btn.go { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); border-color: transparent; color: #fff; }
.biz-ad-btn.ok { background: #eaf2ff; border-color: #c7dbff; color: #1d4ed8; }
.biz-ad-btn.stop { color: #a86a00; border-color: #f3dcae; }
.biz-ad-btn.del { color: #b9b9b9; margin-left: auto; }
.biz-ad-btn.del:hover { color: #ef4444; border-color: #ef4444; }

@media (max-width: 800px) {
  .reg-grid, .reg-media { grid-template-columns: 1fr; }
  .reg-actions .btn { min-width: 100%; }
  .biz-ad-amount { margin-left: 0; }
  .biz-ad-btn.del { margin-left: 0; }
  .plan-mini-grid { grid-template-columns: 1fr; }
  .reg-cta-card { padding: 2rem 1.3rem; }
  .reg-cta-btn { width: 100%; min-width: 0; }
  .reg-modal { padding: 1rem 0.6rem; }
  .reg-modal-box { padding: 1.6rem 1.1rem 1.8rem; border-radius: 18px; }
  .reg-cta-plan { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
  .pay-contact { padding: 1.1rem; }
  .pay-contact-btn { width: 100%; text-align: center; }
  .pay-contact-number { font-size: 1.3rem; }
}

/* ========== LIVE BUSINESS ADS (Fiverr style) ========== */
.live-ads { background: linear-gradient(180deg, #ffffff 0%, #fffafd 100%); }
.fiverr-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.fiverr-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(26, 16, 36, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fiverr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(233, 30, 140, 0.12);
  border-color: rgba(233, 30, 140, 0.4);
}
.fiverr-cover {
  height: 110px;
  background: radial-gradient(circle at top, rgba(233,30,140,0.18), transparent 70%), linear-gradient(135deg, #fff5fa, #f8f0f7);
  position: relative;
}
.fiverr-logo {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(233, 30, 140, 0.25);
  border: 3px solid #fff;
}
.fiverr-body {
  padding: 2.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.fiverr-title {
  text-align: center;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.fiverr-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.fiverr-badge {
  background: #fff5fa;
  color: var(--pink-dark);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-weight: 600;
}
.fiverr-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}
.fiverr-desc {
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.2rem 0 0.4rem;
}
.fiverr-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.fiverr-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.fiverr-links a {
  color: var(--pink-dark);
  text-decoration: none;
  font-weight: 600;
}
.fiverr-links a:hover { text-decoration: underline; }
.fiverr-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.fiverr-btn {
  flex: 1;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.6rem 0.8rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.fiverr-btn.call {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--ink);
}
.fiverr-btn.wa {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
}
.live-ads-empty {
  text-align: center;
  color: var(--muted);
  margin-top: 1.4rem;
}

/* ========== LIVE BUSINESS ADS (Fiverr Style) ========== */
.live-ads { background: #fff; }
.fiverr-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.fiverr-gig-card {
  background: #fff;
  border: 1px solid #e4e5e7;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.fiverr-gig-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.fiverr-gig-thumb {
  height: 180px;
  background: linear-gradient(135deg, #fff0f7 0%, #fef3f2 50%, #f3f4f6 100%);
  position: relative;
}
.fiverr-gig-thumb-inner {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 30% 40%, rgba(233, 30, 140, 0.15), transparent 50%),
                    radial-gradient(circle at 70% 60%, rgba(194, 24, 91, 0.12), transparent 50%);
}
.fiverr-gig-content {
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.fiverr-gig-seller {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.fiverr-gig-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e91e8c, #c2185b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.fiverr-gig-seller-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.fiverr-gig-seller-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #222325;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fiverr-gig-seller-badge {
  font-size: 0.75rem;
  color: #62646a;
}
.fiverr-gig-title {
  font-size: 0.95rem;
  font-weight: 400;
  color: #404145;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6rem;
}
.fiverr-gig-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.8rem;
  color: #62646a;
}
.fiverr-gig-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.fiverr-gig-address {
  font-size: 0.8rem;
  color: #62646a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fiverr-gig-links {
  font-size: 0.78rem;
  color: #62646a;
}
.fiverr-gig-links a {
  color: #1dbf73;
  text-decoration: none;
  font-weight: 500;
}
.fiverr-gig-links a:hover { text-decoration: underline; }
.fiverr-gig-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  margin-top: auto;
  border-top: 1px solid #efeff0;
}
.fiverr-gig-price {
  display: flex;
  flex-direction: column;
}
.fiverr-gig-price-label {
  font-size: 0.72rem;
  color: #74767e;
  text-transform: uppercase;
}
.fiverr-gig-price-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #404145;
}
.fiverr-gig-price-plan {
  font-size: 0.72rem;
  color: #62646a;
}
.fiverr-gig-contact {
  background: #1dbf73;
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.fiverr-gig-contact:hover {
  background: #19a463;
}
.live-ads-empty {
  text-align: center;
  color: #62646a;
  margin-top: 2rem;
}
@media (max-width: 640px) {
  .fiverr-ads-grid {
    grid-template-columns: 1fr;
  }
}
