/* =========================================================
   SKN Service Providers — White Marketplace Theme
   Angi-inspired (clean, bright, warm orange)
========================================================= */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --surface: #f8fafc;
  --surface2: #fff7f2; /* warm tint */
  --border: rgba(15, 23, 42, 0.10);

  --text: #0f172a;
  --muted: #475569;

  /* Brand accents (Angi-like warm coral/orange) */
  --accent: #ff5a3d;   /* primary coral */
  --accent2: #ff8a3d;  /* warm orange */
  --accent3: #f97316;  /* deeper orange for hover */
  --danger: #ef4444;

  --radius: 16px;
  --maxw: 1120px;

  --shadow-sm: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-md: 0 12px 34px rgba(15,23,42,0.10);
  --shadow-lg: 0 22px 70px rgba(15,23,42,0.14);

  --ring: 0 0 0 4px rgba(255, 90, 61, 0.18);
}

/* =========================
   Base / Reset
========================= */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  padding: 20px;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* =========================
   Layout Container
========================= */
.container {
  width: 100%;
  max-width: var(--maxw);
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

/* =========================
   Header / Brand
========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(255, 90, 61, 0.22);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.brand .small {
  font-size: 12px;
  color: var(--muted);
}

/* =========================
   Navigation
========================= */
nav {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

nav a,
nav button {
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}

nav a:hover,
nav button:hover {
  background: rgba(255, 90, 61, 0.08);
  border-color: rgba(255, 90, 61, 0.20);
}

nav a.active {
  background: rgba(255, 90, 61, 0.12);
  border-color: rgba(255, 90, 61, 0.25);
}

/* =========================
   Typography Helpers
========================= */
h2, h3, h4 {
  margin: 0 0 10px;
  font-weight: 900;
  color: var(--text);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 600;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
  opacity: 0.95;
}

/* =========================
   Hero
========================= */
.hero {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(
    90deg,
    rgba(255, 90, 61, 0.10),
    rgba(255, 138, 61, 0.10)
  );
  border: 1px solid rgba(15,23,42,0.08);
  margin-bottom: 14px;
}

.hero h2 { margin: 0; }
.hero p { margin-top: 8px; }

/* =========================
   Sections / Grid / Cards
========================= */
.section {
  margin-top: 14px;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.card h4 {
  margin-bottom: 8px;
}

/* =========================
   Notices
========================= */
.notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: var(--surface2);
}

/* =========================
   Forms
========================= */
label.small {
  display: block;
  margin-top: 10px;
  margin-bottom: 6px;
  font-weight: 800;
}

.input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: rgba(255, 90, 61, 0.50);
  box-shadow: var(--ring);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================
   Buttons (Unified)
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1f0b07;
  font-weight: 900;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 10px 22px rgba(255, 90, 61, 0.22);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn:active {
  transform: translateY(0px);
}

.btn.secondary {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 90, 61, 0.06);
  border-color: rgba(255, 90, 61, 0.22);
}

.btn.bad {
  background: #ffffff;
  border: 1px solid rgba(239,68,68,0.35);
  color: #7f1d1d;
  box-shadow: none;
}

/* small button helper */
.btn.small { padding: 8px 12px; font-size: 12px; }

/* =========================
   Auth Grid
========================= */
.auth-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-grid > .card {
  flex: 1;
  min-width: 320px;
}

/* =========================
   Dropdown Menu
========================= */
.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: 250px;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 20;
}

.dropdown.open .dropdown-panel {
  display: block;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.dropdown-panel a:hover {
  background: rgba(255, 90, 61, 0.08);
}

/* =========================
   Wizard Stepper
========================= */
.stepper {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.stepdot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.25);
}

.stepdot.on {
  background: var(--accent);
}

/* =========================
   Tables (Invoices/Admin)
========================= */
table.invoice {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

table.invoice th,
table.invoice td {
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
}

table.invoice th {
  background: rgba(255, 90, 61, 0.12);
  color: #3b120b;
}

table.invoice td {
  background: #ffffff;
  border-top: 1px solid var(--border);
}

/* =========================
   Footer
========================= */
footer {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

/* =========================
   Responsive
========================= */
@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav { width: 100%; }
}

/* =========================
   Angi-style Category Tiles
========================= */

.category-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.category-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 61, 0.25);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 61, 0.10);
  border: 1px solid rgba(255, 90, 61, 0.15);
  color: #3b120b;
  font-weight: 900;
  font-size: 16px;
}

.category-meta { flex: 1; min-width: 0; }

.category-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.2;
}

.category-sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.category-cta {
  margin-top: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
  font-weight: 800;
  font-size: 12px;
}

.category-tile:hover .category-cta {
  border-color: rgba(255, 90, 61, 0.22);
  background: rgba(255, 90, 61, 0.08);
}

/* Directory compact tiles */
.category-grid.compact {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 12px;
}

.category-tile.compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-tile.compact:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 61, 0.25);
  box-shadow: var(--shadow-md);
}

.category-icon.sm {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 90, 61, 0.10);
  border: 1px solid rgba(255, 90, 61, 0.15);
  color: #3b120b;
  font-weight: 900;
  font-size: 13px;
  flex: 0 0 38px;
}

.category-meta.compact { min-width: 0; flex: 1; }

.category-title.compact {
  margin: 0;
  font-weight: 900;
  color: var(--text);
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-sub.compact {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-arrow {
  font-weight: 900;
  color: rgba(15, 23, 42, 0.40);
  margin-left: 6px;
}
.category-tile.compact:hover .category-arrow {
  color: rgba(255, 90, 61, 0.85);
}

/* Avatar (initials) */
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: 0.5px;
  background: rgba(255, 90, 61, 0.12);
  border: 1px solid rgba(255, 90, 61, 0.22);
  color: var(--text);
}

.avatar-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bell { position: relative; }

.bell-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#ff6a3d;     /* Angi-like orange */
  color:#fff;
  font-size:12px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:2px solid #fff;
}
