/* ---------------------------------------------------------------------------
   VIP area styling.

   Deliberately does NOT use the shop's .bg-primary / .masthead / .text-secondary
   classes. .bg-primary is rgba(115, 189, 33, 0.2) - a near-white green - and the
   masthead paints white text on it, which is unreadable. Everything below is
   self contained so the VIP pages keep proper contrast whatever the shop theme
   does next.
   --------------------------------------------------------------------------- */

:root {
  --vip-ink: #1c2b17;
  --vip-ink-soft: #5d6b58;
  --vip-line: #dde4d9;
  --vip-bg: #f4f7f2;
  --vip-card: #ffffff;
  --vip-green: #2f7d1a;
  --vip-green-dark: #1d5312;
  --vip-green-bright: #4fbc23;
  --vip-gold: #e8a712;
  --vip-danger: #b03a2e;
}

body.vip-page {
  background: var(--vip-bg);
  color: var(--vip-ink);
}

/* --- header ------------------------------------------------------------- */

.vip-topbar {
  background: var(--vip-green-dark);
  padding: 0;
}

.vip-topbar .vip-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.vip-brand {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 17px;
}

.vip-brand:hover { color: #fff; text-decoration: none; opacity: 0.85; }

.vip-topbar-link {
  color: #cfe6c2;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.vip-topbar-link:hover { color: #fff; text-decoration: none; }

.vip-header {
  /* Dark enough that white text sits at a comfortable contrast ratio. */
  background: linear-gradient(135deg, var(--vip-green) 0%, #17400d 100%);
  color: #fff;
  padding: 34px 0 30px 0;
  text-align: center;
}

.vip-header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.vip-header .vip-header-sub {
  margin: 8px 0 0 0;
  font-size: 16px;
  color: #d6ecc9;
}

.vip-header .vip-header-rule {
  width: 60px;
  height: 3px;
  background: var(--vip-green-bright);
  border-radius: 2px;
  margin: 14px auto 0 auto;
}

.vip-section-title {
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vip-ink);
  margin: 0 0 4px 0;
}

/* --- generic surfaces --------------------------------------------------- */

.vip-panel {
  background: var(--vip-card);
  border: 1px solid var(--vip-line);
  border-radius: 10px;
}

.vip-note { color: var(--vip-ink-soft); font-size: 14px; }

.vip-btn {
  background: var(--vip-green);
  border: 1px solid var(--vip-green);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  padding: 8px 16px;
}

.vip-btn:hover:not(:disabled) { background: var(--vip-green-dark); border-color: var(--vip-green-dark); color: #fff; }
.vip-btn:disabled { opacity: 0.6; }

.vip-btn-ghost {
  background: #fff;
  border: 1px solid var(--vip-line);
  color: var(--vip-ink);
  border-radius: 6px;
  font-weight: 600;
  padding: 6px 14px;
}

.vip-btn-ghost:hover { border-color: var(--vip-green); color: var(--vip-green); }

.vip-form-card { max-width: 480px; margin: 0 auto; }
.vip-form-card .card-header {
  background: var(--vip-green-dark);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: center;
  border-radius: 9px 9px 0 0;
}
.vip-form-card label { font-weight: 600; color: var(--vip-ink); margin-bottom: 3px; }
.vip-form-card .form-control:focus {
  border-color: var(--vip-green-bright);
  box-shadow: 0 0 0 0.15rem rgba(79, 188, 35, 0.2);
}

.vip-link { color: var(--vip-green); font-weight: 600; }
.vip-link:hover { color: var(--vip-green-dark); }

/* --- portal toolbar ----------------------------------------------------- */

.vip-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--vip-card);
  border-bottom: 1px solid var(--vip-line);
  padding: 12px 0;
  box-shadow: 0 2px 6px rgba(28, 43, 23, 0.06);
}

.vip-search-wrap { position: relative; }
.vip-search-wrap .fa-search {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--vip-ink-soft); pointer-events: none;
}
#vip-search {
  padding-left: 34px;
  border: 1px solid var(--vip-line);
  border-radius: 6px;
  height: 42px;
}
#vip-search:focus {
  border-color: var(--vip-green-bright);
  box-shadow: 0 0 0 0.15rem rgba(79, 188, 35, 0.2);
}

.vip-chip {
  display: inline-block;
  border: 1px solid var(--vip-line);
  background: #fff;
  color: var(--vip-ink-soft);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 0 6px 6px 0;
  user-select: none;
}

.vip-chip:hover { border-color: var(--vip-green); color: var(--vip-green); }
.vip-chip.on { background: var(--vip-green); border-color: var(--vip-green); color: #fff; }

.vip-count { color: var(--vip-ink-soft); font-size: 14px; white-space: nowrap; }

/* --- order groups ------------------------------------------------------- */

.vip-order {
  background: var(--vip-card);
  border: 1px solid var(--vip-line);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}

.vip-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 16px;
  background: #eef4ea;
  border-bottom: 1px solid var(--vip-line);
  cursor: pointer;
}

.vip-order-head:hover { background: #e6efe1; }

.vip-order-date {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--vip-ink);
}

.vip-order-meta { margin: 0; font-size: 13px; color: var(--vip-ink-soft); }

.vip-order-caret { color: var(--vip-green); transition: transform 0.15s ease; }
.vip-order.collapsed .vip-order-caret { transform: rotate(-90deg); }
.vip-order.collapsed .vip-order-body { display: none; }

.vip-order-body { padding: 0; }

/* --- one plant row ------------------------------------------------------ */

.vip-row { border-bottom: 1px solid var(--vip-line); }
.vip-row:last-child { border-bottom: none; }

.vip-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
}

.vip-thumb {
  width: 52px; height: 52px; flex-shrink: 0;
  object-fit: cover; border-radius: 6px;
  background: #e8ede5;
  display: flex; align-items: center; justify-content: center;
  color: #9bb08f;
}

.vip-row-name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--vip-ink);
}

.vip-row-meta { margin: 0; font-size: 12.5px; color: var(--vip-ink-soft); }

.vip-row-grow { flex: 1 1 auto; min-width: 0; }

.vip-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 11px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vip-tag-reviewed { background: #e2f2d9; color: var(--vip-green-dark); }
.vip-tag-todo { background: #fdf1d8; color: #8a6100; }
.vip-tag-photos { background: #e6eef7; color: #245079; }

.vip-row-stars { color: var(--vip-gold); font-size: 13px; white-space: nowrap; }

/* --- inline review editor ----------------------------------------------- */

.vip-editor {
  display: none;
  padding: 0 16px 16px 16px;
  background: #fafcf9;
  border-top: 1px dashed var(--vip-line);
}

.vip-row.open .vip-editor { display: block; }
.vip-row.open .vip-row-head { background: #fafcf9; }

.vip-editor label { font-weight: 600; font-size: 13px; margin-bottom: 2px; color: var(--vip-ink); }

.vip-star { cursor: pointer; font-size: 22px; color: #d7dbd4; }
.vip-star.on { color: var(--vip-gold); }

.vip-photo-strip { display: flex; flex-wrap: wrap; margin-top: 10px; }

.vip-photo { position: relative; width: 84px; height: 84px; margin: 0 8px 8px 0; }
.vip-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; border: 1px solid var(--vip-line); }

.vip-photo-del {
  position: absolute; top: -6px; right: -6px;
  background: var(--vip-danger); color: #fff;
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: 12px; line-height: 1; cursor: pointer;
}

.vip-empty {
  background: var(--vip-card);
  border: 1px solid var(--vip-line);
  border-radius: 10px;
  padding: 26px;
  text-align: center;
}

.vip-footer {
  background: var(--vip-green-dark);
  color: #cfe6c2;
  text-align: center;
  padding: 18px;
  margin-top: 40px;
  font-size: 14px;
}

@media (max-width: 575px) {
  .vip-header h1 { font-size: 26px; }
  .vip-row-head { flex-wrap: wrap; }
  .vip-count { width: 100%; }
}
