@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0a0f1c;
  --bg-soft: #111a2b;
  --card: #111c30;
  --card-strong: #16233b;
  --text: #f4f7fb;
  --muted: #9fb0c7;
  --accent: #ffb347;
  --accent-2: #2dd4bf;
  --accent-3: #f97316;
  --danger: #ff6b6b;
  --success: #6ee7b7;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(3, 10, 24, 0.55);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(52, 83, 146, 0.35), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(45, 212, 191, 0.25), transparent 55%),
    linear-gradient(160deg, #0a0f1c 0%, #0b1326 55%, #0a0f1c 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }

header {
  padding: 24px 0 16px;
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 26px;
  letter-spacing: 0.6px;
}

.nav-shell {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.device-badge {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  border-color: rgba(255, 179, 71, 0.4);
  color: var(--text);
  transform: translateY(-1px);
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 32px 0 10px;
  animation: fadeUp 0.6s ease;
}

.services-shell {
  display: grid;
  gap: 16px;
}

.service-hero {
  gap: 14px;
}

.service-directory-grid,
.service-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.service-plan-card {
  display: grid;
  gap: 12px;
}

.service-feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-highlight {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(248, 193, 86, 0.24);
  background: rgba(248, 193, 86, 0.08);
  color: #f7e4b3;
}

.dashboard-section-nav {
  margin-top: 16px;
}

.dashboard-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.dashboard-quick-grid .btn {
  justify-content: center;
}

.dashboard-section {
  scroll-margin-top: 92px;
}

.card {
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: cardIn 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 179, 71, 0), rgba(255, 179, 71, 0.8), rgba(45, 212, 191, 0.6), rgba(255, 179, 71, 0));
  opacity: 0.6;
}

.card h2 {
  margin-top: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #2a1500;
  box-shadow: 0 12px 24px rgba(255, 179, 71, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  color: var(--text);
}

.btn:hover { transform: translateY(-1px); }

.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}

.table-wrap .table {
  min-width: 720px;
}

.table th,
.table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 179, 71, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.15);
}

.field textarea { min-height: 120px; }

.section-title {
  font-size: 22px;
  margin: 24px 0 12px;
  font-family: "Fraunces", serif;
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(93, 214, 194, 0.15);
  border: 1px solid rgba(93, 214, 194, 0.3);
  color: var(--text);
  margin-bottom: 16px;
}

.notice.error {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.3);
}

.notice.warn {
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.3);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 12px;
  margin-top: 8px;
}

.checkbox-grid label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.muted {
  color: var(--muted);
}

.footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  color: var(--muted);
}

.footer iframe {
  display: block;
  max-width: 100%;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(17, 28, 48, 0.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow);
  z-index: 40;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: var(--muted);
}

.cookie-banner a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 980px) {
  header {
    padding: 16px 0 12px;
  }

  .container {
    width: min(100%, calc(100vw - 24px));
  }

  .nav {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .brand-link {
    width: 100%;
  }

  .nav-shell {
    width: 100%;
    margin-left: 0;
    display: grid;
    gap: 10px;
  }

  .nav-controls {
    justify-content: space-between;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(14, 21, 36, 0.94);
  }

  .nav-shell[data-open="true"] .nav-links {
    display: grid;
  }

  .nav-links a,
  .nav-links .btn,
  .nav-links .badge {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links .badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 14px;
  }

  .admin-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .admin-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .card {
    padding: 18px;
    border-radius: 16px;
  }

  .hero,
  .grid-2,
  .grid-3,
  .service-directory-grid,
  .service-plan-grid,
  .dashboard-quick-grid {
    grid-template-columns: 1fr;
  }

  .inline,
  .row,
  .service-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .inline .btn,
  .row .btn,
  .service-actions .btn {
    width: 100%;
  }

  .table-wrap {
    margin: 0 -2px;
  }

  .table-wrap .table {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 22px;
  }

  body[data-device="mobile"] .field input,
  body[data-device="mobile"] .field select,
  body[data-device="mobile"] .field textarea {
    font-size: 16px;
    min-height: 48px;
  }

  body[data-device="mobile"] .btn,
  body[data-device="mobile"] .nav-toggle {
    min-height: 46px;
  }

  .footer {
    text-align: center;
  }
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  scroll-padding: 12px;
}

.admin-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,0.04);
}

.admin-nav a.active {
  background: var(--card-strong);
  color: var(--text);
}

.inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.application-shell {
  display: grid;
  gap: 18px;
}

.application-hero {
  padding: 20px 22px;
  border-color: rgba(95, 129, 214, 0.32);
  background: linear-gradient(150deg, rgba(24, 35, 64, 0.92), rgba(12, 20, 39, 0.95));
}

.application-path {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8bbd8;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.application-empty {
  border: 1px dashed rgba(159, 176, 199, 0.34);
  border-radius: 14px;
  padding: 18px;
  background: rgba(11, 18, 33, 0.58);
}

.application-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: rgba(255, 179, 71, 0.24);
}

.application-business-card,
.application-business-spotlight {
  position: relative;
  overflow: hidden;
}

.application-business-card::before,
.application-business-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(93, 214, 194, 0.12), transparent 40%),
    radial-gradient(circle at bottom left, rgba(255, 179, 71, 0.12), transparent 48%);
  pointer-events: none;
}

.application-business-card > *,
.application-business-spotlight > * {
  position: relative;
  z-index: 1;
}

.application-business-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.application-business-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.application-business-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ec5ff;
}

.application-business-name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #f6d48c;
}

.application-business-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.application-business-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.application-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.application-business-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #f4f8ff;
  letter-spacing: 0.08em;
}

.application-business-logo-hero {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.application-business-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.application-business-summary,
.application-business-panel {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(159, 176, 199, 0.18);
  background: rgba(8, 14, 26, 0.44);
  backdrop-filter: blur(8px);
}

.application-business-summary h3,
.application-business-panel h3 {
  margin: 0 0 10px;
}

.application-business-summary p,
.application-business-panel p {
  margin: 0;
  line-height: 1.65;
}

.application-business-highlight {
  margin-top: 12px !important;
  padding: 10px 12px;
  border-left: 3px solid rgba(255, 179, 71, 0.72);
  border-radius: 10px;
  background: rgba(255, 179, 71, 0.08);
  color: #fff0d0;
}

.application-business-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.application-business-panel {
  display: grid;
  gap: 12px;
}

.application-business-detail {
  display: grid;
  gap: 16px;
}

.application-section-stack {
  display: grid;
  gap: 18px;
}

.application-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.application-brand-bds {
  border-color: rgba(248, 193, 86, 0.4);
  background:
    linear-gradient(145deg, rgba(42, 30, 12, 0.92), rgba(16, 22, 35, 0.96)),
    rgba(12, 18, 32, 0.96);
}

.application-brand-bds .application-business-label {
  color: #ffd38a;
}

.application-brand-bds .application-business-name {
  color: #fff0cc;
}

.application-brand-bds .application-business-logo {
  background: linear-gradient(160deg, rgba(255, 244, 218, 0.94), rgba(255, 255, 255, 0.8));
}

.application-card:hover {
  border-color: rgba(45, 212, 191, 0.42);
  transform: translateY(-2px);
}

.application-card-head {
  display: grid;
  gap: 8px;
}

.application-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.application-card-title h2 {
  margin: 0;
  font-size: 21px;
}

.application-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.application-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(159, 176, 199, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #d6e4f8;
  font-size: 12px;
}

.application-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.application-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.application-form-card {
  display: grid;
  gap: 14px;
}

.application-message-panel {
  padding: 16px 18px;
  border: 1px solid rgba(95, 129, 214, 0.28);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(17, 26, 47, 0.9), rgba(9, 15, 28, 0.94));
}

.application-message-panel h3 {
  margin: 0 0 10px;
}

.application-message-copy {
  color: var(--text);
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.application-form-header {
  display: grid;
  gap: 8px;
}

.application-form-header h2 {
  margin: 0;
}

.application-form-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.application-form-grid {
  display: grid;
  gap: 12px;
}

@media (max-width: 880px) {
  .application-business-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .application-business-header {
    flex-direction: column;
  }
}

.app-question {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(159, 176, 199, 0.26);
  border-radius: 12px;
  background: rgba(9, 16, 29, 0.52);
}

.app-question > label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: #e7efff;
}

.app-question .app-question-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.app-question .app-question-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.app-required {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 179, 71, 0.18);
  border: 1px solid rgba(255, 179, 71, 0.45);
  color: #ffe0b6;
}

.app-required.app-optional {
  background: rgba(45, 212, 191, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
  color: #bffaf2;
}

.app-choice-grid {
  display: grid;
  gap: 8px;
}

.app-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.app-choice input {
  margin-top: 2px;
}

.app-identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.app-identity-question .field {
  margin-bottom: 0;
}

.application-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.discord-chat-shell {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(8, 14, 28, 0.58);
  padding: 12px;
}

.discord-chat-log {
  max-height: 58vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.discord-chat-log::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.discord-chat-log::-webkit-scrollbar-thumb {
  background: rgba(159, 176, 199, 0.34);
  border-radius: 999px;
}

.discord-empty {
  padding: 8px 2px;
}

.discord-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.discord-msg.self {
  flex-direction: row-reverse;
}

.discord-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #d9e4ff;
  border: 1px solid rgba(148, 177, 255, 0.36);
  background: linear-gradient(150deg, rgba(52, 83, 146, 0.8), rgba(17, 27, 48, 0.9));
}

.discord-bubble-wrap {
  max-width: min(70ch, 100%);
  display: grid;
  gap: 4px;
}

.discord-msg.self .discord-bubble-wrap {
  justify-items: end;
}

.discord-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 20px;
}

.discord-msg.self .discord-meta {
  justify-content: flex-end;
}

.discord-author {
  font-weight: 600;
  font-size: 13px;
}

.discord-time {
  font-size: 11px;
  color: var(--muted);
}

.discord-bubble {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 34, 56, 0.9);
  padding: 10px 12px;
  line-height: 1.45;
  font-size: 14px;
  word-break: break-word;
}

.discord-msg.self .discord-bubble {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(12, 52, 63, 0.88);
}

.discord-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discord-attachment {
  border: 1px solid rgba(148, 177, 255, 0.3);
  background: rgba(18, 30, 49, 0.72);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #c8d9ff;
}

.discord-attachment:hover {
  border-color: rgba(45, 212, 191, 0.55);
  color: #dcfffb;
}

.discord-composer {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.discord-composer textarea {
  min-height: 110px;
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.78);
}

.discord-composer-closed {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.store-shell {
  display: grid;
  gap: 10px;
}

.store-scroll {
  max-height: 74vh;
  overflow: auto;
  padding-right: 6px;
}

.store-scroll::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.store-scroll::-webkit-scrollbar-thumb {
  background: rgba(159, 176, 199, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 22, 0.8);
}

.store-grid.store-grid-scroll {
  margin-top: 0;
  align-content: start;
  padding-bottom: 8px;
}

.store-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  border-color: rgba(255, 179, 71, 0.2);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.store-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 18px 34px rgba(3, 10, 24, 0.45);
}

.store-card-media {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.store-business-card {
  border-color: rgba(248, 193, 86, 0.3);
  background:
    linear-gradient(150deg, rgba(30, 24, 11, 0.9), rgba(12, 20, 34, 0.94)),
    rgba(10, 16, 28, 0.94);
}

.store-business-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.store-business-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-business-copy h2 {
  margin: 0;
}

.store-business-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, rgba(255, 244, 218, 0.94), rgba(255, 255, 255, 0.8));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.store-business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-business-logo span {
  font-size: 24px;
  font-weight: 800;
  color: #141b27;
  letter-spacing: 0.08em;
}

.store-business-logo-hero {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.store-business-hero {
  display: grid;
  gap: 16px;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.store-card-header h2 {
  margin: 0;
  font-size: 20px;
}

.store-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.store-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.price-pill.usd {
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.16);
}

.price-pill.robux {
  border-color: rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.18);
}

.price-pill.unavailable {
  border-style: dashed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.btn-robux {
  background: linear-gradient(120deg, #22c55e, #16a34a);
  color: #07140b;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.28);
}

.store-item-layout {
  display: grid;
  gap: 14px;
}

.store-item-main .price-pills {
  margin-top: 6px;
}

.store-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.store-payment-panel {
  min-height: 100%;
}

.store-payment-panel h3 {
  margin-top: 0;
}

.store-payment-focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 20px 36px rgba(22, 163, 74, 0.2);
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.payment-method-card {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
}

.payment-method-card .btn {
  width: 100%;
}

.payment-method-heading {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.payment-method-card-paypal {
  border-color: rgba(255, 193, 7, 0.44);
  background: linear-gradient(180deg, rgba(255, 210, 96, 0.1), rgba(255, 186, 8, 0.03));
}

.paypal-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.paypal-panel #paypal-button-container {
  max-width: 420px;
}

.gpay-panel {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.gpay-button-wrap {
  padding: 12px;
  border-radius: 12px;
  background: rgba(8, 12, 22, 0.35);
}

#google-pay-button {
  width: min(100%, 460px);
  margin: 0 auto;
}

.payment-processor-list {
  display: grid;
  gap: 4px;
}

.payment-processor-note {
  margin: 0;
}

.success { color: var(--success); }
.error { color: var(--danger); }

.rv-redirect-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(52, 83, 146, 0.36), transparent 62%),
    radial-gradient(700px 460px at 85% 8%, rgba(45, 212, 191, 0.24), transparent 56%),
    rgba(4, 8, 20, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  backdrop-filter: blur(4px);
}

.rv-redirect-modal {
  width: min(720px, calc(100% - 28px));
  background: linear-gradient(180deg, rgba(20, 30, 52, 0.96), rgba(12, 20, 36, 0.98));
  border: 1px solid rgba(142, 165, 255, 0.34);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(2, 8, 22, 0.6);
}

.rv-redirect-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rv-redirect-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(140deg, rgba(255, 179, 71, 0.3), rgba(249, 115, 22, 0.24));
  border: 1px solid rgba(255, 179, 71, 0.42);
}

.rv-redirect-title {
  margin: 0;
  font-size: 20px;
}

.rv-redirect-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
}

.rv-redirect-destination {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(152, 180, 255, 0.26);
  background: rgba(6, 12, 24, 0.55);
  color: #a8c0ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  word-break: break-all;
}

.rv-redirect-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.rv-redirect-note.safe {
  border-color: rgba(110, 231, 183, 0.28);
  background: rgba(110, 231, 183, 0.08);
  color: #d6fff0;
}

.rv-redirect-note.warn {
  border-color: rgba(255, 179, 71, 0.32);
  background: rgba(255, 179, 71, 0.1);
  color: #ffe2b6;
}

.rv-redirect-note.blocked {
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
  color: #ffd1d1;
}

.rv-redirect-countdown {
  margin: 0;
  color: var(--muted);
}

.rv-redirect-countdown strong {
  color: var(--text);
}

.rv-redirect-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.rv-redirect-progress > span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.35);
  transition: width 0.22s linear;
}

.rv-redirect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rv-redirect-page {
  max-width: 760px;
  margin: 24px auto;
}

body.desktop-device .btn,
body.admin-page .btn {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  letter-spacing: 0.01em;
}

body.desktop-device .btn:focus-visible,
body.admin-page .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.28), 0 10px 22px rgba(0, 0, 0, 0.35);
}

body.desktop-device .btn[disabled],
body.desktop-device .btn:disabled,
body.admin-page .btn[disabled],
body.admin-page .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

body.desktop-device .btn-primary,
body.admin-page .btn-primary {
  box-shadow: 0 10px 22px rgba(255, 179, 71, 0.28);
}

body.desktop-device .btn-ghost,
body.admin-page .btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

body.desktop-device .btn-ghost:hover,
body.admin-page .btn-ghost:hover {
  border-color: rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.1);
}

body.desktop-device .nav-links a,
body.desktop-device .admin-nav a,
body.admin-page .admin-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.desktop-device .nav-links a {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

body.desktop-device .nav-links a:hover {
  border-color: rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.1);
}

body.desktop-device .table td .btn,
body.desktop-device .table td form .btn,
body.admin-page .table td .btn,
body.admin-page .table td form .btn {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 12px;
}

body.desktop-device .table td form,
body.desktop-device .table td a.btn,
body.admin-page .table td form,
body.admin-page .table td a.btn {
  margin: 0 4px 4px 0;
}

body.desktop-device .table td form,
body.admin-page .table td form {
  display: inline-flex;
}

body.admin-page form[action*="/delete"] .btn,
body.admin-page form[action*="/remove"] .btn,
body.admin-page form[action*="/revoke"] .btn,
body.admin-page form[action*="/terminate"] .btn,
body.admin-page form[action*="/deny"] .btn,
body.admin-page form[action*="/block"] .btn,
body.admin-page form[action*="/suspend"] .btn {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.14);
  color: #ffd6d6;
}

body.admin-page form[action*="/delete"] .btn:hover,
body.admin-page form[action*="/remove"] .btn:hover,
body.admin-page form[action*="/revoke"] .btn:hover,
body.admin-page form[action*="/terminate"] .btn:hover,
body.admin-page form[action*="/deny"] .btn:hover,
body.admin-page form[action*="/block"] .btn:hover,
body.admin-page form[action*="/suspend"] .btn:hover {
  border-color: rgba(255, 107, 107, 0.65);
  background: rgba(255, 107, 107, 0.2);
}

@media (max-width: 720px) {
  .rv-redirect-modal {
    padding: 18px;
    border-radius: 15px;
  }
  .rv-redirect-title {
    font-size: 18px;
  }
  .application-grid {
    grid-template-columns: 1fr;
  }
  .application-submit-row .btn {
    width: 100%;
  }
}

.service-upload-card {
  overflow: hidden;
}

.service-upload-preview {
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 12px;
}

.service-upload-preview-media {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
