/* ==========================================================================
   GFXM Creative Platform — design system
   Dark charcoal surfaces, indigo accent (#6366f1), white typography.
   ========================================================================== */

:root {
  --bg: #0b0b10;
  --bg-alt: #101016;
  --surface: #15151d;
  --surface-hover: #1b1b26;
  --border: #262633;
  --border-strong: #343443;
  --text: #f4f4f8;
  --text-muted: #a7a7b8;
  --text-faint: #7c7c90;
  --accent: #6366f1;
  --accent-strong: #818cf8;
  --accent-contrast: #ffffff;
  --danger: #f43f5e;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--text);
  background: var(--surface);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 10px 16px 16px;
  display: grid;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.mobile-menu a.active,
.mobile-menu a:hover {
  background: var(--surface);
  color: var(--text);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }
  .primary-nav {
    display: none;
  }
  .mobile-menu.open {
    display: block;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
}

.btn-discord:hover {
  background: #4752c4;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 13px;
}

.btn.danger,
.btn-ghost.danger {
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.4);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title,
.page-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-sub,
.page-sub {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 40px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: grid;
  gap: 2px;
}

.hero-stats strong {
  font-size: 26px;
  color: var(--text);
}

.hero-stats span {
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Sections ---------- */

.section {
  padding: 48px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 26px;
}

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

.section-title {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
}

.page-hero {
  padding: 48px 0 30px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.page-title {
  font-size: clamp(28px, 4vw, 38px);
}

/* ---------- Grids and cards ---------- */

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-alt);
  text-decoration: none;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-faint);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(11, 11, 16, 0.85);
  border: 1px solid var(--border-strong);
}

.badge-featured {
  color: var(--accent-strong);
  border-color: var(--accent);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  flex: 1;
  border-radius: 0 0 var(--radius) var(--radius);
}

.card-category {
  margin: 0;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-strong);
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

.price {
  color: var(--text);
  font-weight: 700;
}

.version {
  color: var(--text-faint);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  margin-right: 6px;
}

/* ---------- Server cards ---------- */

.server-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.server-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.server-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.server-icon .icon { width: 30px; height: 30px; color: var(--accent-strong); }

.server-name {
  margin: 0;
  font-size: 16px;
}

.server-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  min-height: 20px;
}

/* ---------- About / services ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.about-body p,
.check-list {
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.check-list li {
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.service-icon {
  font-size: 20px;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Filters ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-search {
  flex: 1 1 220px;
  position: relative;
}

.filter-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.filter-search input:focus,
select,
input[type="text"],
input[type="number"],
textarea {
  outline: none;
  border-color: var(--accent);
}

select,
input[type="text"],
input[type="number"],
textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.filter-feature {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #0b1017;
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
}

.filter-feature input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  accent-color: var(--accent);
}

/* ---------- Forms ---------- */

label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

input[type="text"],
input[type="number"],
textarea,
select {
  background: var(--bg);
}

textarea {
  resize: vertical;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

/* ---------- Panels, account ---------- */

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}

.panel,
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.panel-title,
.admin-panel h2 {
  margin-top: 0;
  font-size: 18px;
}

.profile-card {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
}

.auth-switch-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.auth-switch-button.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(36, 39, 31, .07); }
.auth-providers { display: grid; grid-template-columns: 1fr; gap: 9px; }
.auth-provider { width: 100%; padding-inline: 12px; font-size: 13px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-faint); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-form label { color: var(--text); font-size: 13px; font-weight: 600; }
.auth-form input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #f7f6f1; color: var(--text); font: inherit; }
.auth-form input:focus { outline: 2px solid rgba(130, 158, 41, .28); border-color: #829e29; }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-message { min-height: 22px; margin: 12px 0 0; color: var(--text-muted); font-size: 13px; }

@media (max-width: 520px) {
  .auth-providers { grid-template-columns: 1fr; }
}

.engagement-section { padding-block: 0 54px; }
.engagement-content { max-width: 980px; }
.engagement-toolbar { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 9px 0 14px; border-bottom: 1px solid rgba(142,160,188,.12); }
.engagement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.engagement-action { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 5px 7px; border: 0; border-radius: 7px; background: transparent; color: var(--text-faint); font: inherit; font-size: 12px; cursor: pointer; transition: background .16s ease,color .16s ease; }
.engagement-action:hover:not(:disabled),.engagement-action.liked { background: rgba(127,104,255,.08); color: #b7afff; }
.engagement-action:disabled { cursor: default; opacity: .75; }
.engagement-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.engagement-action.liked svg { fill: currentColor; }
.engagement-signin { border: 0; background: transparent; color: #aaa2ff; font: inherit; font-size: 11px; cursor: pointer; }
.engagement-loading,.engagement-empty,.engagement-login-note { color: var(--text-faint); font-size: 12px; }
.engagement-comments { padding-top: 15px; }
.engagement-comments-heading { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.engagement-comments-heading h3 { margin: 0; font-size: 14px; }
.engagement-comments-heading > span { color: var(--text-faint); font-size: 11px; }
.engagement-comment-list { display: grid; gap: 9px; }
.engagement-comment { padding: 11px 0; border-bottom: 1px solid rgba(142,160,188,.1); }
.engagement-comment > div { display: flex; align-items: center; gap: 10px; }
.engagement-comment strong { color: var(--text); font-size: 12px; }
.engagement-comment time { color: var(--text-faint); font-size: 10px; }
.engagement-comment p { margin: 7px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.engagement-comment-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 10px; margin-top: 14px; }
.engagement-comment-form textarea { width: 100%; min-height: 76px; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 11px; background: #090e15; color: var(--text); font: inherit; font-size: 13px; resize: vertical; }
.engagement-comment-form textarea:focus { outline: 2px solid rgba(129,118,255,.23); border-color: #766cff; }
.engagement-comment-form .btn { min-height: 42px; }
@media (max-width: 620px) { .engagement-toolbar { align-items: flex-start; flex-direction: column; } .engagement-comment-form { grid-template-columns: 1fr; } .engagement-comment-form .btn { justify-self: end; } }

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-upload-actions { margin: 10px 0 18px; }
.avatar-upload-actions .auth-message { margin: 6px 0 0; }
.media-editor-list { display: grid; gap: 8px; margin: 10px 0 16px; }
.media-editor-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.media-editor-item span { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.support-workspace { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.support-sidebar { padding: 18px; }
.support-sidebar-heading,.support-ticket-option-top,.support-thread-header,.support-message header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-sidebar-heading h2,.support-thread-header h2 { margin: 0; }
.support-live-note,.support-ticket-requester,.support-ticket-date { display: block; margin: 5px 0 0; color: var(--text-faint); font-size: 11px; }
.support-create-form { display: grid; gap: 12px; margin: 20px 0; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.support-create-form label { display: grid; gap: 6px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.support-create-form input,.support-create-form textarea,.support-reply-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #090d12; color: var(--text); font: inherit; resize: vertical; }
.support-ticket-list { display: grid; gap: 8px; max-height: 48vh; overflow-y: auto; }
.support-ticket-option { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #0b1017; color: var(--text); text-align: left; cursor: pointer; }
.support-ticket-option.active { border-color: var(--accent); background: var(--surface); }
.support-ticket-option-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-status { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; background: rgba(127, 104, 255, .12); color: var(--accent); font-size: 10px; text-transform: capitalize; }
.support-thread { display: flex; min-height: 600px; flex-direction: column; padding: 20px; }
.support-empty { display: grid; min-height: 550px; place-content: center; justify-items: center; color: var(--text-faint); text-align: center; }
.support-empty .icon { width: 30px; height: 30px; color: var(--accent); }
.support-empty h2 { margin: 16px 0 5px; color: var(--text); }
.support-empty p { margin: 0; }
.support-thread-header { padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.support-thread-header .eyebrow { margin: 0 0 6px; font-size: 10px; }
.support-thread-header h2 { font-size: 20px; }
.support-thread-actions { display: flex; align-items: center; gap: 8px; }
.support-status-picker { position: relative; min-width: 164px; }
.support-status-trigger { display: flex; width: 100%; min-height: 38px; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 11px; border: 1px solid var(--border-strong); border-radius: 10px; background: linear-gradient(180deg,#151d29,#0d131d); color: var(--text); font: inherit; font-size: 12px; text-align: left; text-transform: capitalize; cursor: pointer; transition: border-color .16s ease,background .16s ease; }
.support-status-trigger:hover,.support-status-trigger[aria-expanded="true"] { border-color: rgba(129,118,255,.75); background: #171d2b; }
.support-status-trigger .icon { width: 14px; height: 14px; color: var(--text-faint); transition: transform .16s ease; }
.support-status-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
.support-status-menu { position: absolute; z-index: 30; top: calc(100% + 7px); right: 0; left: 0; display: grid; gap: 3px; padding: 5px; border: 1px solid rgba(129,118,255,.3); border-radius: 12px; background: #111823; box-shadow: 0 16px 42px rgba(0,0,0,.48); }
.support-status-menu[hidden] { display: none; }
.support-status-menu button { width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; text-align: left; text-transform: capitalize; cursor: pointer; }
.support-status-menu button:hover,.support-status-menu button:focus-visible { outline: none; background: rgba(127,104,255,.13); color: var(--text); }
.support-status-menu button.selected { background: rgba(127,104,255,.2); color: #b7b0ff; }
.support-thread-actions [data-support-delete-ticket] { border-color: rgba(255,90,110,.25); color: #ff8290; }
.support-thread-actions [data-support-delete-ticket]:hover { border-color: rgba(255,90,110,.65); background: rgba(255,90,110,.09); }
.support-messages { display: grid; align-content: start; gap: 12px; min-height: 360px; max-height: 55vh; overflow-y: auto; padding: 18px 2px; }
.support-message { max-width: min(82%, 620px); justify-self: start; padding: 11px 13px; border: 1px solid var(--border); border-radius: 12px 12px 12px 3px; background: #111722; }
.support-message.own { justify-self: end; border-color: rgba(127, 104, 255, .32); border-radius: 12px 12px 3px 12px; background: rgba(127, 104, 255, .09); }
.support-message header { justify-content: flex-start; font-size: 11px; }
.support-message time { color: var(--text-faint); font-size: 10px; }
.support-message p { margin: 7px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.support-reply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.support-reply-form .btn { min-height: 44px; }
.support-guest { padding: 24px; }

@media (max-width: 760px) {
  .support-workspace { grid-template-columns: 1fr; }
  .support-thread { min-height: 480px; }
  .support-empty { min-height: 420px; }
  .support-messages { min-height: 280px; }
}
@media (max-width: 520px) {
  .support-thread { padding: 14px; }
  .support-thread-header { align-items: flex-start; flex-direction: column; }
  .support-reply-form { grid-template-columns: 1fr; }
  .support-reply-form .btn { justify-self: end; }
  .support-message { max-width: 94%; }
}

.profile-handle {
  margin: 0;
  color: var(--text-faint);
}

.profile-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 10px 0;
}

.profile-facts dt {
  color: var(--text-faint);
}

.profile-facts dd {
  margin: 0;
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.order-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.order-item header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-status {
  color: var(--text-muted);
}

.order-items {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Product / project detail ---------- */

.project-detail,
.product-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 860px) {
  .project-detail,
  .product-detail,
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.project-gallery,
.product-gallery {
  display: grid;
  gap: 12px;
}

.media-figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}

.media-figure img,
.media-figure video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-description,
.product-description {
  display: grid;
  gap: 16px;
}

.rich-text h2,
.rich-text h3,
.rich-text h4,
.rich-text h5 {
  margin-top: 26px;
  font-size: 20px;
}

.rich-text code {
  background: var(--surface-hover);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 13px;
}

.rich-text ul {
  padding-left: 22px;
  color: var(--text-muted);
}

.product-price-large {
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 700;
}

.version-info,
.version-notes {
  color: var(--text-muted);
}

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

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  color: var(--text);
}

/* ---------- CTA ---------- */

.cta {
  padding: 48px 0;
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.cta p {
  margin: 0;
  color: var(--text-muted);
  max-width: 520px;
}

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

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

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

.footer-blurb {
  color: var(--text-muted);
  max-width: 360px;
}

.footer-nav ul,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
}

.footer-nav a,
.social-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover,
.social-list a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Music player ---------- */

.player-expanded {
  display: none;
}

.music-player:not(.minimized) .player-expanded {
  display: grid;
}

.music-player.minimized .player-expanded,
.music-player.minimized .player-body {
  display: none;
}

.music-player {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.player-minimized {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.music-icon-pulse {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.player-title {
  font-size: 14px;
  font-weight: 600;
}

.player-expanded {
  padding: 14px;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.now-playing-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.minimize-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.player-body {
  display: grid;
  gap: 10px;
}

.album-art-container {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.vinyl-record img {
  width: 100%;
}

.track-info h3 {
  margin: 0;
  font-size: 15px;
}

.track-info p {
  margin: 0;
  color: var(--text-faint);
  font-size: 13px;
}

.progress-area {
  display: grid;
  gap: 6px;
}

.progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
}

.time-info {
  display: flex;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 12px;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.control-btn {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.play-btn-main {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- Toasts ---------- */

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  max-width: 340px;
}

.toast-success {
  border-color: rgba(34, 197, 94, 0.5);
}

.toast-error {
  border-color: rgba(244, 63, 94, 0.5);
}

.toast-hidden {
  opacity: 0;
}

/* ---------- Modals ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 10, 0.75);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-container {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.modal-content h2 {
  margin-top: 0;
}

/* ---------- Admin ---------- */

.admin-auth {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.admin-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}

.admin-tab.active {
  color: var(--text);
  border-color: var(--accent);
}

.admin-panel-section {
  display: grid;
  gap: 16px;
}

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

.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.stat strong {
  display: block;
  font-size: 26px;
}

.stat span {
  color: var(--text-faint);
  font-size: 13px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border-strong);
}

.status-published {
  color: var(--success);
  border-color: rgba(34, 197, 94, 0.5);
}

.status-draft {
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.5);
}

.status-archived {
  color: var(--text-muted);
}

.admin-orders-filter {
  max-width: 420px;
}

.admin-overview-block { display: grid; gap: 14px; }
.admin-overview-block + .admin-overview-block { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--border); }
.admin-overview-block .section-head { margin-bottom: 0; }
.admin-overview-block .section-head h2 { margin-bottom: 5px; }
.admin-orders-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.admin-order-search { position: relative; display: flex; align-items: center; flex: 1 1 320px; min-width: min(100%, 240px); }
.admin-order-search > .icon { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--text-faint); pointer-events: none; }
.admin-order-search input { width: 100%; min-height: 42px; padding: 10px 13px 10px 40px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #0b1017; color: var(--text); font: inherit; }
.admin-order-status { display: grid; gap: 5px; color: var(--text-muted); font-size: 12px; }
.admin-order-status select { min-width: 158px; min-height: 42px; margin: 0; }
.admin-order-count { flex: 1 0 100%; margin: 0; color: var(--text-faint); font-size: 12px; }
.admin-table td { vertical-align: top; }
.order-reference { display: block; font-variant-numeric: tabular-nums; }
.order-date { display: block; margin-top: 4px; color: var(--text-faint); font-size: 11px; white-space: nowrap; }
.order-buyer { display: block; max-width: 240px; overflow-wrap: anywhere; }
.admin-order-items { display: grid; gap: 4px; min-width: 140px; margin: 0; padding-left: 17px; color: var(--text-muted); }
.status-verified_paid { color: var(--success); border-color: rgba(34,197,94,.45); text-transform: capitalize; }
.status-pending { color: var(--warning); border-color: rgba(245,158,11,.45); text-transform: capitalize; }
.status-failed, .status-cancelled, .status-refunded { color: #ff9292; border-color: rgba(255,100,100,.4); text-transform: capitalize; }

@media (max-width: 600px) {
  .admin-orders-toolbar { align-items: stretch; }
  .admin-order-search { flex-basis: 100%; }
  .admin-order-status { flex: 1; }
  .admin-order-status select { width: 100%; }
  .admin-overview-block .section-head.split { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 760px) {
  .section {
    padding: 32px 0;
  }
  .hero {
    padding: 48px 0 40px;
  }
}

/* ---------- GFXM dark gaming system ---------- */
:root {
  color-scheme: dark;
  --bg: #080a0e;
  --bg-alt: #0c1017;
  --surface: #111722;
  --surface-hover: #17212d;
  --border: #202b38;
  --border-strong: #324253;
  --text: #f1f5f9;
  --text-muted: #9ba9b8;
  --text-faint: #6f7d8d;
  --accent: #7167ff;
  --accent-strong: #938bff;
  --accent-contrast: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
}

html { background: var(--bg); }
body {
  background: radial-gradient(ellipse at 50% -18%, rgba(49, 72, 100, .22), transparent 48%), var(--bg);
  color: var(--text);
  letter-spacing: -.012em;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header {
  background: rgba(8, 10, 14, .88);
  border-color: rgba(171, 192, 214, .1);
  backdrop-filter: blur(18px);
}
.site-header-inner { min-height: 74px; }
.brand { gap: 11px; letter-spacing: 0; }
.brand-logo {
  display: block;
  width: 148px;
  height: 48px;
  object-fit: cover;
  object-position: center 48%;
  filter: drop-shadow(0 0 12px rgba(104, 105, 255, .15));
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; position: relative; overflow: hidden;
  background: var(--accent); color: var(--accent-contrast); font-size: 0;
  box-shadow: 0 0 24px rgba(113, 103, 255, .18);
}
.brand-mark::before {
  content: ""; position: absolute; inset: 9px; border: 2px solid var(--accent-contrast);
  border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg);
}
.brand-mark::after {
  content: ""; position: absolute; width: 8px; height: 2px; background: var(--accent-contrast);
  right: 8px; top: 18px;
}
.brand::after { content: none; }
.primary-nav { margin-left: 20px; }
.primary-nav ul { gap: 5px; }
.primary-nav a { padding: 9px 13px; border-radius: 9px; font-size: 13px; }
.primary-nav a:hover, .primary-nav a.active { background: #151d27; color: var(--text); }
.mobile-menu { background: #0b0f15; border-color: var(--border); }
.mobile-menu a.active, .mobile-menu a:hover { background: #151d27; color: var(--text); }
.nav-toggle { align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }

.icon {
  display: inline-block; width: 1.15em; height: 1.15em; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -.17em;
}
.icon-discord, .icon-github, .icon-behance { fill: currentColor; stroke: none; }
.btn { border-radius: 10px; padding: 11px 17px; }
.btn-primary { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 0 24px rgba(113, 103, 255, .16); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: rgba(255,255,255,.015); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-hover); border-color: rgba(113, 103, 255, .55); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }

.hero {
  position: relative; overflow: hidden; padding: clamp(82px, 11vw, 142px) 0 64px; border: 0;
  background:
    linear-gradient(rgba(120, 151, 181, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 151, 181, .035) 1px, transparent 1px),
    radial-gradient(ellipse at 76% 14%, rgba(113, 103, 255, .13), transparent 34%),
    transparent;
  background-size: 48px 48px, 48px 48px, auto, auto;
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}
.hero::after {
  content: "G"; position: absolute; z-index: 0; top: 6%; right: max(3vw, calc((100vw - 1120px) / 2));
  color: rgba(113, 103, 255, .055); font-size: clamp(260px, 38vw, 520px); font-weight: 800;
  line-height: .9; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .15em; }
.hero-title, .page-title {
  max-width: 900px; font-size: clamp(44px, 7.5vw, 84px); line-height: .98;
  letter-spacing: -.065em; font-weight: 600;
}
.hero-sub, .page-sub { max-width: 600px; color: var(--text-muted); font-size: 16px; line-height: 1.75; }
.hero-actions { margin-top: 28px; gap: 10px; }
.hero-stats { max-width: 700px; gap: clamp(25px, 6vw, 70px); margin-top: 62px; padding-top: 23px; border-color: var(--border); }
.hero-stats strong { font-size: 24px; letter-spacing: -.04em; }
.hero-stats span { font-size: 12px; }
.section { padding: clamp(50px, 7vw, 84px) 0; }
.section-alt { background: linear-gradient(115deg, rgba(16, 24, 34, .9), rgba(10, 14, 20, .96)); border-color: rgba(171, 192, 214, .08); }
.section-title { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.045em; font-weight: 600; }
.section-head { margin-bottom: 30px; }
.page-hero { padding: 72px 0 42px; background: transparent; border-bottom: 1px solid var(--border); }
.page-hero .page-title { font-size: clamp(40px, 6vw, 66px); margin-bottom: 12px; }
.card, .service-card, .server-card, .panel, .admin-panel, .admin-auth, .filter-bar {
  background: linear-gradient(155deg, rgba(19, 27, 38, .96), rgba(14, 19, 27, .98));
  border-color: var(--border); border-radius: var(--radius); box-shadow: 0 5px 22px rgba(0,0,0,.12);
}
.card:hover { border-color: rgba(113, 103, 255, .48); box-shadow: var(--shadow); }
.card-media { background: #0b1118; }
.card-media-placeholder { color: var(--text-faint); }
.card-body { padding: 20px; }
.card-category { color: var(--accent); letter-spacing: .1em; }
.card-footer { border-color: var(--border); }
.badge { background: rgba(7, 10, 14, .9); color: var(--text); border-color: var(--border-strong); }
.badge-featured { color: var(--accent-strong); border-color: rgba(113, 103, 255, .5); }
.tag { background: #151d27; border-color: var(--border); color: var(--text-muted); }
.server-icon { border: 1px solid var(--border); }
.service-card { padding: 23px; }
.service-icon { width: 42px; height: 42px; padding: 10px; color: var(--accent-strong); background: rgba(113,103,255,.1); border: 1px solid rgba(113,103,255,.22); border-radius: 12px; margin-bottom: 14px; }
.check-list li::before { color: var(--accent); }
.filter-bar { padding: 12px; }
.category-filter-bar {
  display: grid;
  gap: 14px;
}
.category-filter-bar .filter-search { width: min(100%, 420px); }
.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding: 1px 1px 4px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: #0b1017;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.category-tab:hover { color: var(--text); border-color: var(--accent); }
.category-tab.active { color: var(--text); border-color: var(--accent); background: rgba(113, 103, 255, .14); }
.rich-editor-field, .media-upload-field { display: grid; gap: 9px; }
.rich-editor { overflow: hidden; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #0b1017; }
.rich-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113, 103, 255, .12); }
.rich-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.rich-editor-toolbar button { min-width: 34px; min-height: 32px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text-muted); cursor: pointer; }
.rich-editor-toolbar button:hover { color: var(--text); border-color: var(--accent); }
.rich-editor-surface { min-height: 220px; padding: 16px; outline: none; color: var(--text); line-height: 1.7; }
.rich-editor-surface:empty::before { content: attr(data-placeholder); color: var(--text-faint); pointer-events: none; }
.rich-editor-surface h2, .rich-editor-surface h3 { margin: 1.1em 0 .45em; }
.rich-editor-surface p { margin: .55em 0; }
.rich-editor-surface ul, .rich-editor-surface ol { padding-left: 1.5em; }
.rich-editor-surface blockquote { margin: 1em 0; padding: 8px 14px; border-left: 2px solid var(--accent); color: var(--text-muted); background: rgba(113,103,255,.06); }
.media-dropzone { display: grid; justify-items: center; gap: 8px; padding: 26px 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: rgba(255,255,255,.015); color: var(--text-muted); text-align: center; transition: border-color .18s ease, background .18s ease; }
.media-dropzone > .icon { width: 26px; height: 26px; color: var(--accent); }
.media-dropzone strong { color: var(--text); }
.media-dropzone small { font-size: 12px; }
.media-dropzone.is-dragging { border-color: var(--accent); background: rgba(113,103,255,.1); }
.media-pending-list, .media-editor-list { display: grid; gap: 7px; }
.media-pending-item, .media-editor-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,.02); }
.media-file-kind { color: var(--accent); font-size: 10px; letter-spacing: .08em; }
.media-file-name, .media-editor-item > span { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; }
.media-file-size { color: var(--text-faint); font-size: 12px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--accent-strong); font: inherit; cursor: pointer; }
.category-manager-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.category-manager-card { display: grid; align-content: start; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.02); }
.category-manager-card h3 { margin: 0; }
.category-create-form { display: grid; gap: 10px; }
.category-create-form label { display: grid; gap: 6px; color: var(--text-muted); font-size: 13px; }
.category-create-form input { width: 100%; }
.category-manager-list { display: grid; gap: 8px; }
.category-manager-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.category-manager-item code { display: block; margin-top: 4px; color: var(--text-faint); font-size: 11px; }
.category-manager-item p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.category-manager-actions { display: flex; gap: 6px; }
@media (max-width: 700px) { .category-manager-grid { grid-template-columns: 1fr; } .media-file-size { display: none; } }
.page-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.page-heading-row > div { min-width: 0; }
.page-heading-row .page-sub { margin-bottom: 0; }
.page-heading-row > [data-admin-new-project], .page-heading-row > [data-admin-new-product] { flex: 0 0 auto; }
.content-editor-modal {
  width: min(1040px, calc(100vw - 40px));
  max-height: min(92vh, 1100px);
  padding: clamp(24px, 3.5vw, 42px);
  border-radius: 18px;
  box-shadow: 0 28px 100px rgba(0,0,0,.62);
}
.content-editor-modal .modal-content { padding: 4px; }
.content-editor-modal .modal-content h2 { margin: 0 38px 22px 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.content-editor-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.content-editor-form > label:not(.checkbox) { display: grid; align-content: start; gap: 7px; color: var(--text); font-size: 13px; font-weight: 600; }
.content-editor-form > label:nth-of-type(3),
.content-editor-form > .rich-editor-field,
.content-editor-form > .media-upload-field,
.content-editor-form > .media-editor-list,
.content-editor-form > [type="submit"] { grid-column: 1 / -1; }
.content-editor-form > label input,
.content-editor-form > label textarea,
.content-editor-form > label select { width: 100%; }
.content-editor-form > .rich-editor-field { display: grid; gap: 8px; }
.content-editor-form > .rich-editor-field > small { color: var(--text-faint); }
.content-editor-form > [type="submit"] { justify-self: start; min-width: 180px; min-height: 46px; margin-top: 6px; }
.content-editor-form select,
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ba9b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 13px center;
  background-repeat: no-repeat;
  background-size: 15px;
}
select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113,103,255,.14); }
select option { background: #111722; color: var(--text); }
.checkbox-featured {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(113,103,255,.09), rgba(17,23,34,.8));
  cursor: pointer;
}
.checkbox-featured:hover { border-color: rgba(113,103,255,.65); }
.checkbox-featured input[type="checkbox"] {
  appearance: none;
  display: grid;
  flex: 0 0 21px;
  place-content: center;
  width: 21px;
  height: 21px;
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #0a0e14;
  cursor: pointer;
}
.checkbox-featured input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border: solid white;
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .12s ease;
}
.checkbox-featured input[type="checkbox"]:checked { border-color: var(--accent); background: var(--accent); }
.checkbox-featured input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
.checkbox-featured > span { display: grid; gap: 2px; }
.checkbox-featured strong { color: var(--text); font-size: 13px; }
.checkbox-featured small { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.chip-editor-field { display: grid; gap: 7px; min-width: 0; }
.chip-editor-field > label { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; }
.chip-editor-field > small { color: var(--text-faint); font-size: 12px; }
.chip-editor-control { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #0b1017; }
.chip-editor-control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(113,103,255,.12); }
.chip-list { display: contents; }
.tag-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px 4px 10px; border: 1px solid rgba(113,103,255,.32); border-radius: 999px; background: rgba(113,103,255,.12); color: var(--text); font-size: 12px; }
.tag-chip button { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.tag-chip button:hover { background: rgba(255,255,255,.12); color: white; }
.chip-editor-control input[data-chip-entry] { flex: 1 1 140px; min-width: 120px; width: auto; padding: 5px 2px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; box-shadow: none; }
.chip-editor-control input[data-chip-entry]::placeholder { color: var(--text-faint); }
.tag-software { background: rgba(113,103,255,.07); }
.card-software { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-software > span:first-child { color: var(--text-faint); font-size: 11px; }
.badge-draft, .badge-archived { color: var(--warning); border-color: rgba(245,158,11,.5); }
.badge-archived { color: var(--text-muted); border-color: var(--border-strong); }
.listing-admin-menu { position: absolute; z-index: 4; top: 10px; right: 10px; }
.listing-admin-menu > summary { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; list-style: none; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(7, 10, 16, .84); color: #f5f7fb; backdrop-filter: blur(12px); cursor: pointer; transition: border-color 150ms ease, background 150ms ease, color 150ms ease; }
.listing-admin-menu > summary::-webkit-details-marker { display: none; }
.listing-admin-menu > summary::marker { content: ""; }
.listing-admin-menu > summary:hover, .listing-admin-menu[open] > summary { border-color: var(--accent); background: rgba(17, 20, 32, .96); color: var(--accent-strong); }
.listing-admin-menu > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.listing-admin-menu > summary svg { width: 18px; height: 18px; fill: currentColor; }
.listing-admin-menu-panel { position: absolute; top: calc(100% + 8px); right: 0; display: grid; min-width: 158px; padding: 5px; border: 1px solid var(--border-strong); border-radius: 12px; background: #101721; box-shadow: 0 16px 40px rgba(0,0,0,.48); }
.listing-admin-menu-panel button { width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.listing-admin-menu-panel button:hover, .listing-admin-menu-panel button:focus-visible { outline: none; background: rgba(255,255,255,.07); }
.listing-admin-menu-panel button.danger { color: #ff6678; }
.listing-admin-menu-panel button.danger:hover { background: rgba(255,102,120,.1); }
@media (max-width: 700px) {
  .page-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .page-heading-row > [data-admin-new-project], .page-heading-row > [data-admin-new-product] { align-self: flex-start; }
  .content-editor-modal { width: calc(100vw - 20px); max-height: calc(100vh - 20px); padding: 22px 18px; }
  .content-editor-form { grid-template-columns: 1fr; gap: 14px; }
  .content-editor-form > label:nth-of-type(3), .content-editor-form > .rich-editor-field,
  .content-editor-form > .media-upload-field, .content-editor-form > .media-editor-list,
  .content-editor-form > .chip-editor-field, .content-editor-form > [type="submit"],
  .content-editor-form > .checkbox-featured { grid-column: 1; }
}
.filter-search input, select, input[type="text"], input[type="number"], textarea,
input[type="email"], input[type="password"] {
  background-color: #0b1017; border-color: var(--border-strong); color: var(--text);
}
.filter-search input:focus, select:focus, input:focus, textarea:focus { border-color: var(--accent); }
.cta { padding: 68px 0; background: radial-gradient(ellipse at 85% 50%, rgba(113,103,255,.12), transparent 35%), #0d131a; border-color: var(--border); }
.cta h2 { max-width: 580px; font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.05em; }
.site-footer { background: #07090d; border-color: var(--border); }
.footer-bottom { border-color: var(--border); }
.social-list a { display: inline-flex; align-items: center; gap: 9px; }
.social-list .icon { width: 17px; height: 17px; color: var(--accent); }
.auth-switch { background: #0b1017; border-color: var(--border); }
.auth-switch-button.active { background: #1a2430; color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.auth-provider { background: #0c1118; }
.auth-divider { color: var(--text-faint); }
.auth-divider::before, .auth-divider::after { background: var(--border); }
.auth-form label { color: var(--text); }
.auth-form input { background: #0b1017; border-color: var(--border-strong); color: var(--text); }
.auth-form input:focus { outline: 2px solid rgba(113, 103, 255, .24); border-color: var(--accent); }
.auth-message { color: var(--text-muted); }
.profile-avatar { border: 1px solid var(--border-strong); }
.modal-overlay { background: rgba(2, 4, 7, .82); }
.modal-container { background: var(--surface); border-color: var(--border-strong); }
.admin-tab { background: #0c1118; border-color: var(--border); }
.admin-tab.active { border-color: var(--accent); color: var(--accent); }
.stat { background: #0b1017; border-color: var(--border); }
.admin-table th, .admin-table td { border-color: var(--border); }
.progress-bar { background: var(--accent); }
.toast { background: #121923; border-color: var(--border-strong); }

/* Signed-in account menu */
[hidden] { display: none !important; }
.account-menu { position: relative; }
.profile-menu { position: relative; }
.profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 10px 4px 5px;
  color: var(--text);
  border: 1px solid rgba(113, 103, 255, .46);
  border-radius: 999px;
  background: rgba(17, 23, 34, .92);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.profile-menu-trigger:hover,
.profile-menu-trigger[aria-expanded="true"] { border-color: var(--accent-strong); background: rgba(113,103,255,.12); box-shadow: 0 0 0 3px rgba(113,103,255,.1); }
.account-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.account-icon-button:hover,
.account-icon-button[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
.account-icon-button .icon { width: 20px; height: 20px; }
.profile-menu-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(147, 139, 255, .78);
  background: #141823;
  color: var(--accent-contrast);
  font-size: 14px;
  font-weight: 700;
}
.profile-menu-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu-chevron { display: grid; place-items: center; width: 14px; height: 14px; color: #c3bfff; transition: transform .18s ease, color .18s ease; }
.profile-menu-trigger[aria-expanded="true"] .profile-menu-chevron { transform: rotate(180deg); color: var(--accent-strong); }
.profile-menu-dropdown {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #111720;
  box-shadow: var(--shadow);
}
.profile-menu-dropdown a,
.profile-menu-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.profile-menu-dropdown a:hover,
.profile-menu-dropdown button:hover { background: var(--surface-hover); color: var(--text); }
.profile-menu-dropdown [data-auth="logout"] { color: #ff8585; }
.guest-menu { position: relative; }
.guest-menu .profile-menu-dropdown { min-width: 170px; }

/* Account settings with sidebar navigation */
.account-settings-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.account-settings-sidebar,
.account-settings-panel {
  background: linear-gradient(155deg, rgba(19, 27, 38, .96), rgba(14, 19, 27, .98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 5px 22px rgba(0,0,0,.12);
}
.account-settings-sidebar { position: sticky; top: 96px; padding: 14px; }
.settings-eyebrow { margin: 4px 10px 12px; color: var(--text-faint); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.account-settings-tabs { display: grid; gap: 4px; }
.account-settings-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.account-settings-tab .icon { width: 17px; height: 17px; }
.account-settings-tab:hover { background: var(--surface-hover); color: var(--text); }
.account-settings-tab.active { border-color: rgba(113,103,255,.34); background: rgba(113,103,255,.12); color: var(--accent-strong); }
.account-settings-content { min-width: 0; }
.account-settings-panel { padding: clamp(18px, 3vw, 28px); }
.account-settings-panel .panel-title { margin-bottom: 20px; }
.account-settings-panel .section-sub { margin-top: -10px; margin-bottom: 20px; }
.profile-card-actions,.connected-account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.connected-identities { display: grid; gap: 10px; margin-bottom: 18px; }
.connected-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #0b1017;
}
.connected-identity > div { display: grid; gap: 2px; }
.connected-identity strong { text-transform: capitalize; }
.connected-identity span { color: var(--text-muted); font-size: 13px; }
.settings-form { max-width: 560px; padding-block: 6px 18px; }
.settings-form + .settings-form { border-top: 1px solid var(--border); padding-top: 22px; }
.auth-modal { z-index: 100; padding: 18px; overflow-y: auto; }
.auth-modal-container {
  width: min(440px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.auth-modal-container::-webkit-scrollbar { display: none; }
.auth-modal-container .modal-content { padding-top: 14px; }
.auth-modal-container .modal-content > .eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.auth-modal-container h2 { margin-top: 0; margin-bottom: 22px; }

@media (max-width: 760px) {
  .account-settings-layout { grid-template-columns: 1fr; }
  .account-settings-sidebar { position: static; padding: 10px; }
  .account-settings-tabs { display: flex; overflow-x: auto; }
  .account-settings-tab { flex: 0 0 auto; white-space: nowrap; }
  .settings-eyebrow { margin-bottom: 8px; }
}

@media (max-width: 760px) {
  .site-header-inner { min-height: 66px; }
  .hero { padding-top: 70px; }
  .hero::after { top: 11%; right: -24%; }
  .hero-stats { gap: 22px 34px; margin-top: 46px; }
  .hero-stats strong { font-size: 22px; }
  .page-hero { padding-top: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Refined GFXM gaming identity ---------- */
:root {
  --bg: #080a0f;
  --bg-alt: #0c1018;
  --surface: #101620;
  --surface-hover: #151e2a;
  --border: #202a38;
  --border-strong: #344255;
  --text: #f3f5fb;
  --text-muted: #a3afc0;
  --text-faint: #758398;
  --accent: #7167ff;
  --accent-strong: #a29aff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 55px rgba(0, 0, 0, .42);
}

body {
  background:
    radial-gradient(ellipse at 50% -26%, rgba(83, 91, 161, .17), transparent 52%),
    var(--bg);
  line-height: 1.65;
}

.container { width: min(1160px, calc(100% - 48px)); }
.site-header { border-bottom-color: rgba(160, 178, 204, .12); }
.primary-nav a { color: #a8b3c2; font-weight: 500; }
.primary-nav a:hover, .primary-nav a.active { background: #141c28; color: #fff; }
.hero {
  background:
    linear-gradient(rgba(149, 164, 191, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 164, 191, .022) 1px, transparent 1px),
    radial-gradient(ellipse at 76% 18%, rgba(113, 103, 255, .12), transparent 36%);
  background-size: 56px 56px, 56px 56px, auto;
}
.hero::after { color: rgba(113, 103, 255, .035); }
.hero-title, .page-title { font-weight: 650; }
.eyebrow { color: var(--accent-strong); font-weight: 700; }
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(115deg, rgba(13, 18, 27, .94), rgba(8, 10, 15, .2) 72%);
}
.page-hero::after {
  position: absolute;
  top: -95px;
  right: max(3vw, calc((100vw - 1160px) / 2));
  width: 260px;
  height: 260px;
  border: 1px solid rgba(147, 139, 255, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(147, 139, 255, .025), 0 0 0 58px rgba(147, 139, 255, .018);
  content: "";
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.section { padding-block: clamp(48px, 6vw, 76px); }
.section-title { font-weight: 650; }
.card, .service-card, .server-card, .panel, .admin-panel, .admin-auth, .filter-bar {
  background: linear-gradient(150deg, rgba(17, 24, 35, .98), rgba(12, 17, 25, .98));
  border-color: rgba(132, 151, 180, .17);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
.card { overflow: visible; }
.card:hover { border-color: rgba(147, 139, 255, .5); }
.card-media { border-radius: 0; }
.card-body { padding: 19px 20px 21px; }
.card-category {
  width: fit-content;
  margin: 0 0 2px;
  padding: 4px 9px;
  border: 1px solid rgba(147, 139, 255, .2);
  border-radius: 999px;
  background: rgba(113, 103, 255, .08);
  color: #b0aaff;
  font-size: 10px;
  letter-spacing: .11em;
}
.card-title { font-weight: 620; letter-spacing: -.025em; }
.tag { border-color: rgba(132, 151, 180, .17); background: #141d29; }
.filter-bar { padding: 16px; }
.category-filter-bar { gap: 16px; }
.category-tab { background: rgba(8, 12, 18, .72); }
.category-tab.active { background: rgba(113, 103, 255, .17); box-shadow: inset 0 0 0 1px rgba(162, 154, 255, .08); }
.project-detail, .product-detail { gap: clamp(24px, 4vw, 48px); }
.project-gallery, .product-gallery { gap: 16px; }
.media-figure { border-color: rgba(132, 151, 180, .2); border-radius: 18px; box-shadow: 0 14px 42px rgba(0,0,0,.25); }
.media-figure img, .media-figure video { aspect-ratio: 16 / 10; }
.project-description, .product-description { gap: 20px; }
.project-description .rich-text, .product-description .rich-text {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(132, 151, 180, .15);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(17, 24, 35, .82), rgba(10, 14, 20, .82));
}
.project-meta {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid rgba(132, 151, 180, .15);
  border-radius: 16px;
  background: rgba(13, 18, 27, .82);
}
.project-meta p { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0; color: var(--text-muted); }
.project-meta p strong { min-width: 94px; color: var(--text); font-size: 13px; }
.project-meta .project-meta-category { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.product-detail-category { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 0; color: var(--text-muted); font-size: 13px; }
.product-detail-category > span:first-child { color: var(--text); font-weight: 600; }
.tag-category { color: #c3bdff; border-color: rgba(147, 139, 255, .3); background: rgba(113, 103, 255, .12); }
.btn-primary { background: linear-gradient(135deg, #786eff, #6258e7); box-shadow: 0 8px 24px rgba(101, 91, 238, .2); }
.btn-primary:hover { background: linear-gradient(135deg, #9088ff, #7167ff); }
.btn-ghost { background: rgba(255,255,255,.025); }
.modal-container, .content-editor-modal { border-color: rgba(132, 151, 180, .22); box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.site-footer { border-top-color: rgba(160, 178, 204, .12); }

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1160px); }
  .page-hero { padding-block: 48px 32px; }
  .page-hero::after { right: -170px; opacity: .55; }
  .filter-bar { padding: 12px; }
  .project-meta { padding: 17px; }
}

/* Homepage art direction: an editorial studio portfolio, adapted to GFXM. */
.home-main { display: flex; flex-direction: column; }
.home-main > .hero { order: 0; }
.home-main > #featured-projects { order: 1; }
.home-main > #featured-products-shop { order: 2; }
.home-main > #about { order: 3; }
.home-main > #services { order: 4; }
.home-main > #live-servers { order: 5; }
.home-main > .cta { order: 6; }
.hero { min-height: 650px; display: flex; align-items: center; padding-block: clamp(76px, 9vw, 116px) 70px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr); align-items: center; gap: clamp(34px, 6vw, 82px); }
.hero-inner { max-width: 640px; }
.hero-title { max-width: 700px; font-size: clamp(46px, 6.2vw, 78px); line-height: .98; }
.hero-sub { max-width: 530px; font-size: 15px; }
.hero-stats { gap: clamp(20px, 3vw, 38px); margin-top: 48px; }
.hero-stats li { min-width: 0; }
.hero-stats strong { font-size: 22px; }
.hero-stats span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.hero-feature {
  position: relative;
  display: block;
  min-height: 450px;
  overflow: hidden;
  border: 1px solid rgba(160, 178, 204, .2);
  border-radius: 20px;
  background: linear-gradient(145deg, #171a2b, #0e121a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 80px rgba(113, 103, 255, .1);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.hero-feature[hidden] { display: none; }
.hero-feature > img, .hero-feature-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-feature > img { object-fit: cover; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.hero-feature:hover > img { transform: scale(1.035); }
.hero-feature-placeholder { display: grid; place-items: center; color: rgba(183, 178, 255, .58); font-size: 64px; }
.hero-feature-shade { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(6,8,13,.1) 0%, rgba(6,8,13,.04) 34%, rgba(6,8,13,.88) 100%); }
.hero-feature-top, .hero-feature-caption { position: absolute; z-index: 2; right: 24px; left: 24px; display: flex; justify-content: space-between; gap: 14px; }
.hero-feature-top { top: 22px; align-items: center; }
.hero-feature-kicker, .hero-feature-index { padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(8,10,15,.55); backdrop-filter: blur(14px); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-feature-index { color: rgba(255,255,255,.72); font-family: var(--mono); font-weight: 400; }
.hero-feature-caption { bottom: 24px; align-items: flex-end; flex-wrap: wrap; }
.hero-feature-caption > span:first-child { width: 100%; color: #c4beff; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-feature-caption strong { max-width: 70%; font-size: clamp(24px, 3vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
.hero-feature-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: rgba(8,10,15,.58); font-size: 12px; font-weight: 600; backdrop-filter: blur(12px); }
.hero-feature-link .icon { color: var(--accent-strong); }
.home-main #featured-projects { background: transparent; border-block: 1px solid rgba(160,178,204,.1); }
#featured-projects .section-head { align-items: flex-end; margin-bottom: 26px; }
#featured-projects .section-title { font-size: clamp(30px, 4vw, 48px); }
#featured-projects .card-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(215px, 22vw); gap: 15px; }
#featured-projects .card { grid-column: span 5; min-height: 0; }
#featured-projects .card:nth-child(1), #featured-projects .card:nth-child(4) { grid-column: span 7; }
#featured-projects .card:nth-child(2), #featured-projects .card:nth-child(3), #featured-projects .card:nth-child(5), #featured-projects .card:nth-child(6) { grid-column: span 5; }
#featured-projects .card-media { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
#featured-projects .card-media img { transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
#featured-projects .card:hover .card-media img { transform: scale(1.035); }
#featured-projects .card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 13px 16px; }
#featured-projects .card-category { grid-column: 1 / -1; border: 0; padding: 0; background: none; }
#featured-projects .card-title { font-size: 16px; }
#featured-projects .card-software { justify-content: flex-end; font-size: 11px; }
#featured-projects .card-software > span:first-child { display: none; }
#featured-projects .card-footer { grid-column: 1 / -1; min-height: 0; margin-top: 3px; padding-top: 7px; border-top: 1px solid rgba(160,178,204,.12); }
#featured-projects .tag { padding: 3px 8px; font-size: 10px; }
#featured-products-shop .card-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
#about { border-bottom: 1px solid rgba(160,178,204,.1); }
#about .section-title { max-width: 520px; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
#services .service-grid { gap: 14px; }
#services .service-card { min-height: 210px; border-top: 2px solid rgba(147,139,255,.55); }
.cta { background: radial-gradient(ellipse at 78% 50%, rgba(113,103,255,.15), transparent 38%), #0c1017; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .88fr); gap: 28px; }
  .hero-feature { min-height: 390px; }
  #featured-projects .card-grid { grid-auto-rows: minmax(200px, 27vw); }
}
@media (max-width: 700px) {
  .hero { padding-block: 68px 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 30px; }
  .hero-inner { max-width: none; }
  .hero-title { max-width: 600px; font-size: clamp(42px, 12vw, 64px); }
  .hero-stats { justify-content: space-between; gap: 14px; margin-top: 34px; }
  .hero-stats strong { font-size: 19px; }
  .hero-feature { min-height: 340px; }
  #featured-projects .card-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  #featured-projects .card, #featured-projects .card:nth-child(n) { grid-column: 1; min-height: 330px; }
  #featured-projects .card-media { min-height: 230px; }
  #featured-projects .section-head { align-items: flex-start; flex-direction: column; }
}

/* GFXM visual refresh — one compact, consistent system across every page. */
:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-alt: #0c1017;
  --surface: #101620;
  --surface-hover: #171f2b;
  --border: #202a38;
  --border-strong: #35445a;
  --text: #f3f5fb;
  --text-muted: #a4afbf;
  --text-faint: #758296;
  --accent: #756bff;
  --accent-strong: #aaa3ff;
  --accent-contrast: #fff;
  --danger: #ff647b;
  --success: #54d49a;
  --warning: #f2bd62;
  --radius: 15px;
  --radius-sm: 10px;
  --shadow: 0 18px 52px rgba(0, 0, 0, .38);
}

html { background: var(--bg); scroll-padding-top: 90px; }
body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% -28%, rgba(73, 82, 149, .16), transparent 48%), var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.01em;
}
body, button, input, textarea, select { font-family: var(--font); }
body.modal-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1140px, calc(100% - 48px)); }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 15, .88);
  border-bottom: 1px solid rgba(153, 169, 194, .13);
  backdrop-filter: blur(18px);
}
.site-header-inner { min-height: 66px; }
.brand-logo { width: 132px; height: 42px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(117, 107, 255, .12)); }
.primary-nav { margin-left: auto; }
.primary-nav ul { gap: 4px; }
.primary-nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #9ca8ba;
  font-size: 12px;
  font-weight: 550;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.primary-nav a:hover, .primary-nav a.active {
  border-color: rgba(149, 141, 255, .15);
  background: rgba(117, 107, 255, .1);
  color: #f6f5ff;
}
.header-actions { gap: 12px; }
.nav-toggle, .account-icon-button, .profile-menu-trigger {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: #101620;
  color: var(--text);
}
.account-icon-button:hover, .profile-menu-trigger:hover { border-color: var(--accent); background: #17172a; }
.profile-menu-dropdown {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #111722;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.profile-menu-dropdown a, .profile-menu-dropdown button { min-height: 38px; font-size: 12px; }
.mobile-menu { border-color: var(--border); background: rgba(12,16,23,.98); }

/* Type, sections, and page headers */
.eyebrow { margin-bottom: 10px; color: var(--accent-strong); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.section { padding-block: clamp(38px, 4.4vw, 58px); }
.section-alt { border-color: rgba(153,169,194,.1); background: rgba(12,16,23,.64); }
.section-head { margin-bottom: 20px; }
.section-title { margin-bottom: 4px; font-size: clamp(23px, 3vw, 32px); font-weight: 650; letter-spacing: -.045em; }
.section-sub { color: var(--text-muted); font-size: 13px; }
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(38px, 5.3vw, 60px) 28px;
  border-bottom: 1px solid rgba(153,169,194,.12);
  background: linear-gradient(105deg, rgba(15,20,30,.9), rgba(8,10,15,.25) 74%);
}
.page-hero::after {
  position: absolute;
  top: -130px;
  right: max(3vw, calc((100vw - 1140px)/2));
  width: 280px;
  height: 280px;
  border: 1px solid rgba(149,141,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(149,141,255,.025), 0 0 0 58px rgba(149,141,255,.018);
  content: "";
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-title { margin-bottom: 8px; font-size: clamp(34px, 5vw, 58px); font-weight: 650; line-height: 1.02; letter-spacing: -.065em; }
.page-sub { max-width: 620px; margin-bottom: 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.page-heading-row { align-items: flex-end; gap: 24px; }
.page-heading-row > div { max-width: 720px; }
.back-link { color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--accent-strong); }

/* Buttons and fields */
.btn { min-height: 40px; padding: 9px 14px; border-radius: 10px; font-size: 12px; font-weight: 650; transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { border: 1px solid rgba(173,167,255,.3); background: linear-gradient(135deg, #786eff, #6259e5); color: white; box-shadow: 0 7px 20px rgba(101,91,238,.18); }
.btn-primary:hover { background: linear-gradient(135deg, #9189ff, #7167f4); }
.btn-ghost { border: 1px solid var(--border-strong); background: rgba(255,255,255,.02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(149,141,255,.58); background: rgba(117,107,255,.09); }
.btn-sm { min-height: 34px; padding: 7px 10px; font-size: 11px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], textarea, select {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #0a0e14;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
textarea { min-height: 100px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #667489; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: 3px solid rgba(117,107,255,.13); }
label { margin-bottom: 12px; color: var(--text-muted); font-size: 12px; font-weight: 600; }

/* Shared cards and media */
.card, .service-card, .server-card, .panel, .admin-panel, .admin-auth, .filter-bar, .account-settings-sidebar, .account-settings-panel {
  border: 1px solid rgba(142,160,188,.16);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(17,24,35,.98), rgba(12,17,25,.98));
  box-shadow: 0 8px 25px rgba(0,0,0,.16);
}
.card { overflow: visible; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(149,141,255,.48); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 10; border-radius: 14px 14px 0 0; background: #0c1118; }
.card-media img { transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.025); }
.card-body { gap: 7px; padding: 15px 16px 16px; }
.card-category { width: fit-content; margin: 0; padding: 3px 8px; border: 1px solid rgba(149,141,255,.18); border-radius: 999px; background: rgba(117,107,255,.08); color: #b3adff; font-size: 9px; letter-spacing: .12em; }
.card-title { font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.card-text { color: var(--text-muted); font-size: 13px; }
.card-footer { gap: 7px; border-color: rgba(142,160,188,.13); }
.tag { padding: 4px 9px; border-color: rgba(142,160,188,.17); border-radius: 999px; background: #151d29; color: #b5c0cf; font-size: 10px; }
.badge { border-color: rgba(142,160,188,.28); border-radius: 999px; background: rgba(7,10,15,.82); font-size: 10px; }
.badge-featured { color: #c0bbff; border-color: rgba(149,141,255,.5); }
.listing-admin-menu > summary { width: 35px; height: 35px; border-radius: 10px; background: rgba(8,10,15,.9); }
.listing-admin-menu-panel { border-color: var(--border-strong); border-radius: 11px; background: #111722; }
.filter-bar { gap: 12px; padding: 12px; }
.category-filter-bar { gap: 12px; }
.category-filter-bar .filter-search { width: min(100%, 360px); }
.category-tabs { gap: 6px; }
.category-tab { min-height: 34px; padding: 6px 12px; border-radius: 999px; background: #0b1017; font-size: 11px; }
.category-tab.active { border-color: rgba(149,141,255,.72); background: rgba(117,107,255,.16); color: white; }
.category-filter-bar { gap: 12px; margin-bottom: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.empty-hint { color: var(--text-muted); font-size: 13px; }

/* Home: contained hero, tidy work grid, balanced service rows */
.home-main { display: flex; flex-direction: column; }
.home-main > .hero { order: 0; }
.home-main > #featured-projects { order: 1; }
.home-main > #featured-products-shop { order: 2; }
.home-main > #about { order: 3; }
.home-main > #services { order: 4; }
.home-main > #live-servers { order: 5; }
.home-main > .cta { order: 6; }
.hero {
  display: flex;
  min-height: 0;
  align-items: center;
  padding-block: clamp(48px, 6vw, 76px) 44px;
  overflow: hidden;
  border-bottom: 1px solid rgba(153,169,194,.1);
  background: linear-gradient(rgba(149,164,191,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(149,164,191,.018) 1px, transparent 1px), radial-gradient(ellipse at 76% 18%, rgba(117,107,255,.12), transparent 36%);
  background-size: 56px 56px, 56px 56px, auto;
}
.hero::after { color: rgba(117,107,255,.025); }
.hero-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: clamp(24px,4vw,50px); }
.hero-inner { max-width: 620px; }
.hero-title { max-width: 660px; margin-bottom: 12px; font-size: clamp(42px,5.5vw,68px); font-weight: 650; line-height: .99; letter-spacing: -.068em; }
.hero-sub { max-width: 530px; margin-bottom: 20px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.hero-actions { gap: 8px; }
.hero-stats { gap: clamp(18px,2.8vw,32px); margin-top: 27px; padding-top: 14px; border-color: rgba(153,169,194,.14); }
.hero-stats strong { font-size: 20px; letter-spacing: -.04em; }
.hero-stats span { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.hero-feature { min-height: 340px; border-color: rgba(160,178,204,.2); border-radius: 17px; box-shadow: 0 22px 55px rgba(0,0,0,.36), 0 0 50px rgba(117,107,255,.08); }
.hero-feature-caption strong { font-size: clamp(22px,2.8vw,34px); }
.home-main #featured-projects { padding-block: 42px; border-block: 1px solid rgba(153,169,194,.1); background: rgba(12,16,23,.42); }
#featured-projects .section-head { align-items: flex-end; margin-bottom: 17px; }
#featured-projects .section-title { font-size: clamp(27px,3vw,38px); }
#featured-projects .card-grid, #featured-products-shop .card-grid { grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: auto; gap: 14px; }
#featured-projects .card, #featured-projects .card:nth-child(n) { grid-column: auto; min-height: 0; }
#featured-projects .card-media { flex: initial; min-height: 0; aspect-ratio: 16 / 10; }
#featured-projects .card-body { display: flex; gap: 6px; padding: 13px 15px 14px; }
#featured-projects .card-software { justify-content: flex-start; }
#featured-projects .card-software > span:first-child { display: none; }
#featured-projects .card-footer { min-height: 0; margin-top: 2px; padding-top: 7px; }
#featured-projects .tag { padding: 3px 8px; font-size: 9px; }
#featured-products-shop .card-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
#about .about-grid { gap: clamp(24px,5vw,64px); }
#about .section-title { max-width: 520px; font-size: clamp(28px,3.4vw,42px); line-height: 1.1; }
#services .service-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#services .service-card { min-height: 0; padding: 18px; border-top: 2px solid rgba(149,141,255,.5); }
.cta { padding-block: 42px; background: radial-gradient(ellipse at 78% 50%, rgba(117,107,255,.14), transparent 38%), #0c1017; }
.cta h2 { font-size: clamp(22px,3vw,30px); letter-spacing: -.04em; }

/* Portfolio/shop and full item pages */
.card-grid[data-projects-grid], .card-grid[data-products-grid] { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.page-heading-row > [data-admin-new-project], .page-heading-row > [data-admin-new-product] { align-self: flex-end; }
.project-detail, .product-detail { grid-template-columns: minmax(0,1.4fr) minmax(280px,.8fr); gap: clamp(22px,3vw,36px); }
.project-gallery, .product-gallery { gap: 13px; }
.media-figure { border-color: rgba(142,160,188,.2); border-radius: 15px; background: #0d121a; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.project-description, .product-description { gap: 13px; }
.project-description .rich-text, .product-description .rich-text { padding: 20px; border: 1px solid rgba(142,160,188,.14); border-radius: 14px; background: rgba(15,21,31,.72); }
.project-meta { gap: 10px; padding: 16px; border: 1px solid rgba(142,160,188,.14); border-radius: 14px; background: rgba(15,21,31,.72); }
.project-meta p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 12px; }
.project-meta p strong { min-width: 86px; color: var(--text); }
.project-meta .project-meta-category { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.product-detail-category { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 12px; }
.product-detail-category > span:first-child { color: var(--text); font-weight: 650; }
.tag-category { border-color: rgba(149,141,255,.32); background: rgba(117,107,255,.12); color: #c4bfff; }

/* Account and authentication */
.account-settings-layout { grid-template-columns: 215px minmax(0,1fr); gap: 16px; }
.account-settings-sidebar { position: sticky; top: 82px; padding: 10px; }
.settings-eyebrow { margin: 5px 9px 9px; }
.account-settings-tabs { gap: 3px; }
.account-settings-tab { min-height: 39px; padding: 8px 10px; border-radius: 9px; font-size: 12px; }
.account-settings-tab.active { border-color: rgba(149,141,255,.25); background: rgba(117,107,255,.12); color: #c4bfff; }
.account-settings-panel { padding: clamp(17px,2.5vw,24px); }
.account-settings-panel .panel-title { margin-bottom: 15px; font-size: 19px; }
.profile-card { grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px 16px; }
.profile-card .profile-avatar { grid-row: span 3; width: 76px; height: 76px; border: 1px solid rgba(149,141,255,.4); box-shadow: 0 0 22px rgba(117,107,255,.1); }
.profile-card h3, .profile-card .profile-handle, .profile-card .profile-facts { margin: 0; }
.profile-card .avatar-upload-actions { grid-column: 1 / -1; margin: 8px 0; }
.connected-identity, .order-item { border-color: rgba(142,160,188,.15); border-radius: 11px; background: #0d131c; }
.auth-modal-container { border-color: rgba(149,141,255,.25); border-radius: 16px; background: #101620; }
.auth-modal-container .modal-content { padding: 6px; }
.auth-switch { border-color: var(--border); background: #090d13; }
.auth-switch-button.active { background: #1a2230; box-shadow: inset 0 0 0 1px rgba(142,160,188,.16); }
.auth-provider { border-color: var(--border-strong); background: #0d131c; }
.auth-form input { background: #0a0e14; color: var(--text); }
.auth-form input:focus { outline: 2px solid rgba(117,107,255,.2); border-color: var(--accent); }
.auth-form-intro { margin: -6px 0 4px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.auth-forgot-password,.auth-back-link { width: fit-content; padding: 0; border: 0; background: transparent; color: #aaa2ff; font: inherit; font-size: 12px; cursor: pointer; }
.auth-forgot-password { display: block; margin: -4px 0 10px auto; }
.auth-forgot-password:hover,.auth-back-link:hover { color: #d0cbff; text-decoration: underline; }
.auth-back-link { margin: 2px auto 0; }

/* Support workspace */
.support-workspace { grid-template-columns: minmax(280px,.75fr) minmax(0,1.5fr); gap: 14px; align-items: stretch; }
.support-sidebar { padding: 15px; }
.support-sidebar-heading h2 { font-size: 17px; }
.support-create-form { gap: 9px; margin: 14px 0; padding-bottom: 13px; }
.support-create-form textarea { min-height: 82px; }
.support-ticket-list { max-height: 42vh; gap: 6px; }
.support-ticket-option { padding: 10px; background: #0b1017; }
.support-thread { min-height: 480px; padding: 17px; }
.support-empty { min-height: 430px; }
.support-messages { min-height: 290px; max-height: 48vh; }
.support-message { border-color: rgba(142,160,188,.16); background: #141b26; }
.support-message.own { border-color: rgba(149,141,255,.3); background: rgba(117,107,255,.11); }

/* Admin dashboard */
.admin-auth { margin-bottom: 16px; padding: 16px; }
.admin-panel { padding: 14px; }
.admin-tabs { gap: 5px; margin-bottom: 14px; padding: 4px; border: 1px solid rgba(142,160,188,.12); border-radius: 12px; background: #0b1017; }
.admin-tab { min-height: 36px; padding: 7px 11px; border-color: transparent; border-radius: 9px; background: transparent; font-size: 11px; }
.admin-tab.active { border-color: rgba(149,141,255,.28); background: rgba(117,107,255,.12); color: #c4bfff; }
.admin-panel-body { padding: 7px; }
.admin-panel-section { gap: 13px; }
.admin-overview-block + .admin-overview-block { margin-top: 12px; padding-top: 15px; }
.admin-overview-block .section-head h2, .admin-panel-section > .section-head h2 { font-size: 18px; }
.stat-grid { gap: 10px; }
.stat { padding: 13px 14px; border-color: rgba(142,160,188,.14); border-radius: 12px; background: #0d131c; }
.stat strong { font-size: 23px; }
.category-manager-grid { gap: 12px; }
.category-manager-card { gap: 10px; padding: 14px; border-color: rgba(142,160,188,.15); border-radius: 13px; background: rgba(11,16,23,.5); }
.admin-orders-toolbar { gap: 10px; padding: 11px; border-color: rgba(142,160,188,.14); border-radius: 12px; background: #0d131c; }
.admin-table { font-size: 12px; }
.admin-table th, .admin-table td { padding: 9px 10px; border-color: rgba(142,160,188,.12); }
.admin-table th { color: var(--text-faint); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.status-pill { padding: 3px 8px; font-size: 10px; }
.content-editor-modal { width: min(900px, calc(100vw - 32px)); max-height: min(88vh, 900px); padding: 24px; border-color: rgba(149,141,255,.24); border-radius: 17px; background: #101620; }

/* Footer and details */
.site-footer { padding-block: 30px 18px; border-top-color: rgba(153,169,194,.12); background: #080a0f; }
.footer-grid { gap: 20px; }
.footer-grid h3 { margin: 4px 0 10px; font-size: 12px; }
.footer-blurb, .footer-nav a, .social-list a { font-size: 12px; }
.footer-bottom { margin-top: 20px; padding-top: 12px; font-size: 11px; }
.modal-container { border-color: rgba(149,141,255,.22); border-radius: 15px; background: #101620; box-shadow: 0 24px 72px rgba(0,0,0,.58); }
.toast { border-color: rgba(142,160,188,.2); border-radius: 11px; background: #151d29; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .card-grid[data-projects-grid], .card-grid[data-products-grid] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-layout { grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 22px; }
  .hero-feature { min-height: 300px; }
  #featured-projects .card-grid, #featured-products-shop .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #services .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-detail, .product-detail { grid-template-columns: minmax(0,1.15fr) minmax(260px,.85fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 1140px); }
  .primary-nav { display: none; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-inner { max-width: 680px; }
  .hero-feature { min-height: 290px; }
  .account-settings-layout { grid-template-columns: 1fr; gap: 10px; }
  .account-settings-sidebar { position: static; padding: 8px; }
  .account-settings-tabs { display: flex; overflow-x: auto; }
  .account-settings-tab { flex: 0 0 auto; white-space: nowrap; }
  .settings-eyebrow { display: none; }
  .support-workspace { grid-template-columns: 1fr; }
  .support-thread { min-height: 410px; }
  .support-empty { min-height: 340px; }
  .support-messages { min-height: 250px; }
  .page-heading-row { align-items: flex-start; flex-direction: column; gap: 13px; }
  .page-heading-row > [data-admin-new-project], .page-heading-row > [data-admin-new-product] { align-self: flex-start; }
  .footer-grid { grid-template-columns: 1.2fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .site-header-inner { min-height: 60px; }
  .brand-logo { width: 112px; height: 38px; }
  .hero { padding-block: 42px 32px; }
  .hero-title { font-size: clamp(38px,11vw,54px); }
  .hero-stats { justify-content: space-between; gap: 8px; margin-top: 20px; }
  .hero-stats strong { font-size: 17px; }
  .hero-stats span { max-width: 80px; font-size: 8px; }
  .hero-feature { min-height: 250px; }
  .hero-feature-top, .hero-feature-caption { right: 15px; left: 15px; }
  .hero-feature-caption { bottom: 16px; }
  .hero-feature-caption strong { max-width: 100%; width: 100%; font-size: 25px; }
  .hero-feature-link { padding: 7px 9px; }
  .section { padding-block: 34px; }
  .section-head.split { align-items: flex-start; flex-direction: column; }
  .page-hero { padding-block: 38px 22px; }
  .page-title { font-size: clamp(32px,10vw,44px); }
  .card-grid[data-projects-grid], .card-grid[data-products-grid], #featured-projects .card-grid,
  #featured-products-shop .card-grid, #services .service-grid { grid-template-columns: 1fr; }
  #featured-projects .card-media { aspect-ratio: 16 / 9; }
  .project-detail, .product-detail { grid-template-columns: 1fr; }
  .project-meta p strong { min-width: 76px; }
  .support-thread { min-height: 360px; padding: 13px; }
  .support-empty { min-height: 280px; }
  .support-thread-header { align-items: flex-start; flex-direction: column; }
  .support-reply-form { grid-template-columns: 1fr; }
  .support-reply-form .btn { justify-self: end; }
  .admin-panel { padding: 9px; }
  .admin-panel-body { padding: 3px; }
  .admin-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-tab { justify-content: center; }
  .category-manager-grid { grid-template-columns: 1fr; }
  .content-editor-modal { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); padding: 17px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

.faq-hero { padding-bottom: 38px; }
.faq-hero .page-title { max-width: 760px; }
.faq-search { display: flex; width: min(100%,540px); min-height: 48px; align-items: center; gap: 11px; margin-top: 24px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: #0b1017; color: var(--text-faint); }
.faq-search .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.faq-search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; box-shadow: none; }
.faq-search:focus-within { border-color: rgba(129,118,255,.7); box-shadow: 0 0 0 3px rgba(113,103,255,.1); }
.faq-layout { display: grid; grid-template-columns: minmax(0,1fr) 270px; align-items: start; gap: clamp(26px,5vw,64px); }
.faq-groups { display: grid; gap: 30px; }
.faq-group > .eyebrow { margin: 0 0 8px; color: #aaa2ff; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.faq-item { border-bottom: 1px solid rgba(142,160,188,.14); }
.faq-item[hidden] { display: none; }
.faq-item summary { position: relative; display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 34px 14px 0; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.45; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { position: absolute; top: 50%; right: 4px; display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(142,160,188,.18); border-radius: 50%; color: #aaa2ff; content: "+"; font-size: 15px; font-weight: 400; transform: translateY(-50%); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: #c9c4ff; }
.faq-item summary:focus-visible { border-radius: 7px; outline: 2px solid rgba(129,118,255,.65); outline-offset: 2px; }
.faq-item > div { max-width: 720px; padding: 0 32px 17px 0; }
.faq-item p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.75; }
.faq-item a,.faq-empty a { color: #b2aaff; text-decoration: underline; text-decoration-color: rgba(178,170,255,.35); text-underline-offset: 3px; }
.faq-contact-panel { position: sticky; top: 100px; padding: 20px; border: 1px solid rgba(142,160,188,.15); border-radius: 15px; background: linear-gradient(145deg,rgba(17,24,35,.85),rgba(10,15,23,.82)); }
.faq-contact-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 18px; border: 1px solid rgba(129,118,255,.25); border-radius: 12px; background: rgba(113,103,255,.1); color: #aaa2ff; }
.faq-contact-icon .icon { width: 19px; height: 19px; }
.faq-contact-panel .eyebrow { margin: 0 0 8px; color: #aaa2ff; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.faq-contact-panel h2 { margin: 0 0 8px; font-size: 21px; letter-spacing: -.035em; }
.faq-contact-panel > p:not(.eyebrow) { margin: 0 0 17px; color: var(--text-muted); font-size: 12px; line-height: 1.65; }
.faq-contact-panel .btn { width: 100%; justify-content: center; }
.faq-contact-panel .btn .icon { width: 15px; height: 15px; }
.faq-empty { padding: 20px 0; color: var(--text-muted); font-size: 13px; }
@media (max-width: 820px) { .faq-layout { grid-template-columns: 1fr; } .faq-contact-panel { position: static; max-width: 480px; } }

/* Borderless surfaces: keep hierarchy through spacing, tone and dividers. */
.card, .service-card, .server-card, .panel, .admin-panel, .admin-auth,
.account-settings-sidebar, .account-settings-panel, .category-manager-card,
.settings-control-section, .faq-contact-panel {
  border: 0;
  box-shadow: none;
}
.card, .panel, .admin-panel, .admin-auth, .account-settings-sidebar,
.account-settings-panel, .faq-contact-panel { background: transparent; }
.service-card, .server-card, .category-manager-card, .settings-control-section {
  background: rgba(16,22,32,.46);
}
.project-description .rich-text, .product-description .rich-text,
.project-meta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.support-ticket-option { border-color: transparent; background: transparent; }
.support-ticket-option.active { border-color: transparent; background: rgba(117,107,255,.09); }

/* Homepage is intentionally a single-column studio intro; server management
   lives on its own directory page. */
.home-main .hero-layout { display: block; }
.home-main .hero-inner { max-width: 820px; }
.servers-directory-section { min-height: 40vh; }
.servers-directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.servers-directory-grid .server-card { min-height: 104px; }
.servers-directory-grid .server-card-actions { display: flex; grid-column: 3; grid-row: 1 / 3; gap: 7px; }
.servers-empty { grid-column: 1 / -1; padding: 28px; border: 1px dashed rgba(142,160,188,.24); border-radius: 14px; text-align: center; }
.servers-empty .section-sub { margin: 5px 0 0; }
.server-editor-dialog { width: min(540px,calc(100% - 28px)); max-width: 540px; padding: 0; overflow: visible; border: 1px solid var(--border); border-radius: 18px; color: var(--text); background: #101722; box-shadow: 0 24px 90px rgba(0,0,0,.6); }
.server-editor-dialog::backdrop { background: rgba(2,5,10,.76); backdrop-filter: blur(5px); }
.server-editor-dialog form { display: grid; gap: 17px; padding: 24px; }
.server-dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.server-dialog-heading .eyebrow { margin: 0 0 6px; }
.server-dialog-heading h2 { margin: 0; font-size: 24px; }
.server-dialog-heading .icon-button { border: 0; color: var(--text-muted); background: transparent; font-size: 26px; cursor: pointer; }
.server-editor-dialog label { display: grid; gap: 7px; margin: 0; }
.server-editor-dialog input { width: 100%; }
.server-editor-dialog label small { color: var(--text-faint); font-size: 11px; }
.server-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 5px; }
@media (max-width: 700px) { .servers-directory-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .servers-directory-grid .server-card-actions { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Visible dashboard controls and a more purposeful live-status composition. */
.home-main #live-servers {
  display: grid;
  grid-template-columns: minmax(220px,.72fr) minmax(0,1.28fr);
  align-items: center;
  gap: 24px clamp(24px,5vw,64px);
  padding-block: 42px;
}
.home-main #live-servers > .container { display: contents; }
.home-main #live-servers .section-head { grid-column: 1; grid-row: 1; margin: 0; }
.home-main #live-servers .section-title { font-size: clamp(24px,3vw,34px); }
.home-main #live-servers .server-grid { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 9px; }
.server-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 14px;
  min-height: 92px;
  padding: 14px 16px;
  overflow: hidden;
  border-color: rgba(142,160,188,.16);
  border-radius: 13px;
  background: linear-gradient(105deg, rgba(19,27,40,.98), rgba(12,17,25,.98));
}
.server-card::before { position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg,#aaa3ff,#5d55dd); content: ""; }
.server-icon { grid-column: 1; grid-row: 1 / 3; width: 50px; height: 50px; border-color: rgba(149,141,255,.2); border-radius: 12px; background: rgba(117,107,255,.08); }
.server-name { grid-column: 2; grid-row: 1; font-size: 15px; }
.server-status { grid-column: 2; grid-row: 2; min-height: 0; font-size: 11px; }
.server-status strong { color: #b5afff; font-size: 11px; }
.server-card > .btn { grid-column: 3; grid-row: 1 / 3; }
.server-card .btn:hover { border-color: var(--accent); }

.settings-control-section { display: grid; gap: 13px; padding: 17px; border: 1px solid rgba(142,160,188,.15); border-radius: 14px; background: rgba(10,15,22,.56); }
.settings-control-section + .settings-control-section { margin-top: 3px; }
.settings-control-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.settings-control-heading h3 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.settings-control-heading p { margin: 3px 0 0; color: var(--text-muted); font-size: 11px; }
.site-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.site-feature-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(142,160,188,.13);
  border-radius: 11px;
  background: rgba(18,25,36,.7);
  cursor: pointer;
}
.site-feature-toggle > span { display: grid; gap: 1px; }
.site-feature-toggle strong { color: var(--text); font-size: 11px; }
.site-feature-toggle small { color: var(--text-faint); font-size: 10px; font-weight: 400; }
.site-feature-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.site-feature-toggle i { position: relative; flex: 0 0 36px; width: 36px; height: 21px; border: 1px solid #405068; border-radius: 999px; background: #202a38; transition: background .18s ease,border-color .18s ease; }
.site-feature-toggle i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #a6b0c0; content: ""; transition: transform .18s ease,background .18s ease; }
.site-feature-toggle input:checked + i { border-color: #776cff; background: #6259df; }
.site-feature-toggle input:checked + i::after { transform: translateX(15px); background: white; }
.site-feature-toggle input:focus-visible + i { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.live-server-editor-list { display: grid; gap: 8px; }
.live-server-editor-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid rgba(142,160,188,.13); border-radius: 11px; background: rgba(18,25,36,.7); }
.live-server-editor-row label { margin: 0; }
.live-server-editor-row input { width: 100%; margin-top: 4px; }
.live-server-editor-row > button { margin-bottom: 1px; }
.form-hint { margin: 0; color: var(--text-faint); font-size: 10px; }
.form-hint code { color: #b5afff; }

@media (max-width: 760px) {
  .home-main #live-servers { grid-template-columns: 1fr; gap: 15px; padding-block: 34px; }
  .home-main #live-servers .section-head, .home-main #live-servers .server-grid { grid-column: 1; grid-row: auto; }
  .site-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .server-card { grid-template-columns: 46px minmax(0,1fr); gap: 2px 11px; min-height: 78px; padding: 11px; }
  .server-icon { width: 42px; height: 42px; }
  .server-card > .btn { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 6px; }
  .live-server-editor-row { grid-template-columns: 1fr; }
  .live-server-editor-row > button { justify-self: start; }
  .settings-control-section { padding: 12px; }
  .settings-control-heading { align-items: flex-start; flex-direction: column; }
}

/* Minimal surface pass: large content areas rely on spacing and tone instead of frames. */
.card, .panel, .admin-panel, .admin-auth, .account-settings-sidebar,
.account-settings-panel, .category-manager-card, .settings-control-section,
.faq-contact-panel, .support-panel, .support-ticket-card, .ticket-panel {
  border-color: transparent;
  box-shadow: none;
}
.card, .panel, .admin-panel, .admin-auth, .account-settings-sidebar,
.account-settings-panel, .faq-contact-panel, .support-panel, .ticket-panel {
  background: transparent;
}
.service-card, .server-card, .category-manager-card, .settings-control-section,
.support-ticket-card {
  border-color: transparent;
  background: rgba(16,22,32,.38);
  box-shadow: none;
}
.card:hover { border-color: transparent; box-shadow: none; transform: translateY(-2px); }
.project-description .rich-text, .product-description .rich-text, .project-meta {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.project-visual-column { display: grid; min-width: 0; align-content: start; gap: 22px; }
.project-content { grid-column: auto; max-width: 100%; margin-top: 2px; }
.project-content h2 { margin: 0 0 12px; color: #e8edf6; font-size: 18px; font-weight: 650; }
.project-content .rich-text { max-width: 920px; color: var(--text-muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.project-content .rich-text p { margin: 0 0 1em; }
.project-content .rich-text div + div { margin-top: .75em; }
.project-content .rich-text h2, .project-content .rich-text h3 { margin: 1.5em 0 .55em; color: #e8edf6; }
.project-detail { grid-template-columns: minmax(0,1.4fr) minmax(260px,.8fr); grid-template-areas: "gallery overview" "content content"; }
.project-visual-column { grid-area: gallery; }
.project-overview { grid-area: overview; display: grid; align-content: start; gap: 14px; min-width: 0; }
.project-overview > .eyebrow { margin: 0; }
.project-overview-title { margin: 0; color: #f0f2f7; font-size: clamp(27px,3.2vw,42px); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.project-overview-summary { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.project-meta { grid-area: auto; }
.project-content { grid-area: content; }
@media (max-width: 860px) {
  .project-detail { grid-template-columns: minmax(0,1fr); grid-template-areas: "gallery" "overview" "content"; }
}
.category-filter-bar { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

.supported-games {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 26px;
}
.supported-games-label { margin: 0; color: var(--text-faint); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.supported-games-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: clamp(14px,2.5vw,26px); margin: 0; padding: 0; list-style: none; }
.supported-games-list li { display: inline-flex; align-items: center; gap: 9px; color: var(--text-muted); font-size: 12px; font-weight: 600; transition: color .18s ease; }
.supported-games-list li:hover { color: var(--text); }

/* Personal About page */
.about-me-hero .page-title { max-width: 780px; font-size: clamp(42px,7vw,76px); }
.about-me-hero .page-sub { max-width: 700px; }
.about-me-content { display: grid; gap: clamp(38px,6vw,68px); max-width: 1050px; }
.about-me-intro { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 48px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid rgba(153,169,194,.12); }
.about-me-intro .eyebrow, .about-block-heading .eyebrow, .about-skill-group .eyebrow, .about-availability .eyebrow { margin: 0 0 10px; color: #9d92ff; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.about-me-intro h2, .about-block-heading h2, .about-skill-group h2, .about-availability h2 { margin: 0; color: #edf0f6; font-size: clamp(22px,3vw,32px); line-height: 1.2; letter-spacing: -.035em; }
.about-me-intro > p, .about-availability > div > p:last-child { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.about-me-block { display: grid; gap: 22px; }
.about-game-list { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.about-game-list li { display: inline-flex; align-items: center; gap: 10px; color: #d7deea; font-size: 13px; font-weight: 600; }
.about-game-list img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.about-skills-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(28px,6vw,72px); padding-top: 30px; border-top: 1px solid rgba(153,169,194,.12); }
.about-skill-group h2 { margin-bottom: 16px; }
.about-skill-note { margin: -7px 0 14px; color: var(--text-muted); font-size: 12px; }
.about-skill-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.about-skill-list li { padding: 8px 12px; border: 1px solid rgba(142,160,188,.14); border-radius: 999px; background: rgba(16,22,32,.48); color: #c3ccda; font-size: 12px; }
.about-availability { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 26px 0 4px; border-top: 1px solid rgba(153,169,194,.12); }
.about-availability h2 { margin-bottom: 8px; }
.about-availability > div > p:last-child { max-width: 620px; }
.about-availability .btn { flex: 0 0 auto; }
@media (max-width: 700px) {
  .about-me-intro { grid-template-columns: 1fr; gap: 18px; }
  .about-skills-grid { grid-template-columns: 1fr; gap: 34px; }
  .about-availability { align-items: flex-start; flex-direction: column; }
}
.supported-games-list img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; opacity: .8; transition: opacity .18s ease, transform .18s ease; }
.supported-games-list li:hover img { opacity: 1; transform: translateY(-2px); }
@media (max-width: 640px) {
  .supported-games { gap: 10px; margin-top: 22px; }
  .supported-games-list { gap: 10px 17px; }
}

/* A quiet edge and soft lift give portfolio and shop cards clearer shape. */
.card {
  border: 1px solid rgba(142,160,188,.16);
  background: linear-gradient(155deg,rgba(17,24,35,.72),rgba(10,14,21,.84));
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  animation: card-enter .32s cubic-bezier(.2,.7,.25,1) both;
}
.card:hover {
  border-color: rgba(149,141,255,.38);
  box-shadow: 0 16px 34px rgba(0,0,0,.32),0 0 0 1px rgba(117,107,255,.06);
}
.card-grid > .card:nth-child(2) { animation-delay: 35ms; }
.card-grid > .card:nth-child(3) { animation-delay: 70ms; }
.card-grid > .card:nth-child(4) { animation-delay: 105ms; }
@keyframes card-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-skeleton {
  overflow: hidden;
  border: 1px solid rgba(142,160,188,.12);
  border-radius: var(--radius);
  background: rgba(16,22,32,.48);
}
.card-skeleton-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg,#101620 20%,#1a2331 38%,#101620 56%);
  background-size: 220% 100%;
  animation: card-skeleton-shimmer 1.5s ease-in-out infinite;
}
.card-skeleton-body { display: grid; gap: 11px; padding: 16px; }
.card-skeleton-line {
  display: block;
  width: 58%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(100deg,#111923 20%,#202b3a 38%,#111923 56%);
  background-size: 220% 100%;
  animation: card-skeleton-shimmer 1.5s ease-in-out infinite;
}
.card-skeleton-line.short { width: 30%; height: 8px; }
.card-skeleton-line.title { width: 48%; height: 15px; }
@keyframes card-skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .card-skeleton-media, .card-skeleton-line { animation: none; }
}

/* Give the header mark a crop sized for its wide logo artwork. */
.site-header .brand-logo {
  width: 172px;
  height: 56px;
  object-fit: cover;
  object-position: center 48%;
}
.site-header .account-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 42px;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
}
.site-header .account-icon-button .icon { width: 17px; height: 17px; }
.site-header .account-icon-button span { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
@media (max-width: 560px) {
  .site-header .brand-logo { width: 146px; height: 48px; }
  .site-header .account-icon-button { height: 40px; min-height: 40px; padding-inline: 11px; }
}

/* Give the footer brand and navigation a compact, deliberate layout. */
.footer-grid {
  grid-template-columns: minmax(0,1.4fr) minmax(150px,.8fr) minmax(150px,.8fr);
  max-width: 1020px;
  margin-inline: auto;
  gap: 26px;
}
.brand-footer { margin-bottom: 10px; }
.brand-footer .brand-logo {
  width: 184px;
  height: 60px;
  object-fit: cover;
  object-position: center 48%;
}
.footer-blurb { max-width: 330px; line-height: 1.65; }
.footer-grid h3 { margin-bottom: 13px; }
.footer-nav ul { gap: 9px; }
.social-list .icon { width: 19px; height: 19px; }
@media (max-width: 760px) {
  .footer-grid { max-width: none; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 18px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand-footer .brand-logo { width: 168px; height: 54px; }
  .footer-grid { gap: 18px 14px; }
}

/* Refined footer: clear brand, quick links, and a visible social action. */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-block: 42px 20px;
  border-top-color: rgba(153,169,194,.1);
  background: radial-gradient(ellipse at 16% 0%,rgba(117,107,255,.09),transparent 34%),#080a0f;
}
.site-footer::before {
  position: absolute;
  top: 0;
  left: max(24px,calc((100% - 1050px)/2));
  width: min(1050px,calc(100% - 48px));
  height: 1px;
  background: linear-gradient(90deg,rgba(117,107,255,.02),rgba(137,126,255,.5) 28%,rgba(137,126,255,.12) 72%,rgba(117,107,255,.02));
  content: "";
}
.footer-grid {
  grid-template-columns: minmax(0,1.35fr) minmax(200px,.8fr) minmax(180px,.65fr);
  max-width: 1050px;
  gap: 34px;
  padding-bottom: 30px;
}
.brand-footer { margin-bottom: 12px; }
.brand-footer .brand-logo { width: 184px; height: 60px; object-fit: cover; object-position: center 48%; }
.footer-blurb { max-width: 300px; margin: 0; color: #8995a8; font-size: 12px; line-height: 1.7; }
.footer-blurb::before {
  display: block;
  margin-bottom: 8px;
  color: #9c92ff;
  content: "PLAY  /  CODE  /  CREATE";
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.footer-grid h3 { margin: 8px 0 14px; color: #e9edf5; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-nav ul { grid-template-columns: repeat(2,minmax(82px,max-content)); align-content: start; gap: 10px 24px; }
.footer-nav a { color: #8995a8; font-size: 12px; transition: color .18s ease,transform .18s ease; }
.footer-nav a:hover { color: #c4bfff; transform: translateX(3px); }
.social-list { gap: 9px; }
.social-list a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(142,160,188,.15);
  border-radius: 11px;
  background: rgba(16,22,32,.62);
  color: #c0c9d7;
  font-size: 11px;
  transition: border-color .18s ease,background .18s ease,color .18s ease,transform .18s ease;
}
.social-list a:hover { transform: translateY(-2px); border-color: rgba(149,141,255,.38); background: rgba(117,107,255,.1); color: white; }
.social-list .icon { width: 17px; height: 17px; color: #a49aff; }
.social-list:not([data-social-links]) a::after { content: "Discord"; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1050px;
  margin-top: 0;
  padding-top: 15px;
  border-top-color: rgba(153,169,194,.1);
  color: #667286;
  font-size: 10px;
}
.footer-bottom p { margin: 0; }
.footer-bottom::after { color: #737e91; content: "GFXM  ·  PERSONAL PORTFOLIO"; font-size: 9px; font-weight: 600; letter-spacing: .12em; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 24px 18px; padding-bottom: 24px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-nav ul { grid-template-columns: repeat(2,minmax(72px,max-content)); gap: 9px 18px; }
}
@media (max-width: 560px) {
  .site-footer { padding-block: 32px 16px; }
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px 12px; }
  .brand-footer .brand-logo { width: 164px; height: 54px; }
  .footer-bottom::after { font-size: 8px; }
}
.site-footer .social-list a {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.site-footer .social-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.site-footer .social-list a:hover { transform: none; background: transparent; color: #c4bfff; }
.site-footer .social-list a span,
.site-footer .social-list:not([data-social-links]) a::after { display: none; }

/* Admin visual editor for footer social links */
.admin-social-settings { display: grid; gap: 14px; margin-top: 8px; }
.admin-social-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-social-heading strong { display: block; color: var(--text); font-size: 14px; }
.admin-social-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; }
.admin-social-list { display: grid; gap: 10px; }
.admin-social-row { display: grid; grid-template-columns: minmax(120px,.7fr) minmax(220px,1.4fr) minmax(150px,.8fr) auto; align-items: end; gap: 12px; padding: 14px; border: 1px solid rgba(142,160,188,.14); border-radius: 12px; background: rgba(15,20,29,.55); }
.admin-social-row label { display: grid; gap: 6px; color: var(--text-muted); font-size: 11px; }
.admin-social-row input, .admin-social-row select { min-width: 0; width: 100%; }
.admin-social-empty { margin: 0; color: var(--text-muted); font-size: 12px; }
.external-link-dialog { width: min(440px,calc(100vw - 32px)); padding: 28px; border: 1px solid rgba(151,142,255,.32); border-radius: 18px; background: linear-gradient(145deg,#121925,#090c12 72%); color: var(--text); box-shadow: 0 24px 90px rgba(0,0,0,.62),0 0 40px rgba(117,107,255,.1); }
.external-link-dialog::backdrop { background: rgba(3,5,9,.78); backdrop-filter: blur(5px); }
.external-link-dialog .external-link-mark { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 20px; border: 1px solid rgba(139,128,255,.25); border-radius: 12px; background: rgba(117,107,255,.1); color: #a49aff; }
.external-link-dialog .external-link-mark .icon { width: 19px; height: 19px; }
.external-link-dialog .eyebrow { margin: 0 0 8px; color: #a49aff; font-size: 10px; font-weight: 700; letter-spacing: .15em; }
.external-link-dialog h2 { margin: 0; font-size: clamp(21px,4vw,26px); }
.external-link-copy { margin: 12px 0 24px; color: var(--text-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.external-link-copy strong { color: var(--text); }
.external-link-actions { display: flex; justify-content: flex-end; gap: 10px; }
.external-link-actions .icon { width: 15px; height: 15px; margin-left: 5px; vertical-align: middle; }
@media (max-width: 680px) { .admin-social-row { grid-template-columns: 1fr 1fr; } .admin-social-row label:nth-child(2) { grid-column: 1 / -1; } }
