/* ---------------------------------------------------------
  GGS – Global Styles
   --------------------------------------------------------- */

:root {
  --bg-main: #020617;
  --bg-surface: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --bg-card-alt: #020617;

  --border: #1f2937;
  --border-soft: rgba(148, 163, 184, 0.25);

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --accent-strong: #16a34a;

  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.16);

  --radius-sm: 0.4rem;
  --radius-md: 0.65rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.25rem;

  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --shadow-subtle: 0 10px 25px rgba(15, 23, 42, 0.55);

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* ---------------------------------------------------------
  Base
   --------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  background: radial-gradient(circle at top, #0b1120, #020617 52%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------
  Layout containers
   --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

/* ---------------------------------------------------------
  Header + Brand + Nav (shared)
   --------------------------------------------------------- */

.site-header {
  position: relative;
  background: linear-gradient(to right, #020617, #020617);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.95), #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022c22;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
}

.brand-logo.small {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.main-nav a {
  color: var(--text-main);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--border-soft);
}

.main-nav a.active {
  border-color: var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------------------------------------------------------
  Cards & Admin Grid
   --------------------------------------------------------- */

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-header {
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), #020617 52%);
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 600;
}

.card-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.05s ease,
    background 0.1s ease, border-color 0.1s ease;
}

.btn-primary {
  background: linear-gradient(to right, #16a34a, #22c55e);
  border-color: #16a34a;
  color: #022c22;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(to right, #15803d, #22c55e);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.4);
  transform: translateY(-0.5px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--accent-soft);
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem 1.25rem;
}

label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.2rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.42rem 0.55rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

input[type="file"] {
  padding: 0.45rem 0.3rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* ---------------------------------------------------------
  Alerts
   --------------------------------------------------------- */

.alert {
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  margin-bottom: 0.9rem;
}

.alert-error {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid var(--accent);
  color: #bbf7d0;
}

/* ---------------------------------------------------------
  Tables
   --------------------------------------------------------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.table th,
.table td {
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.85);
}

.table th {
  text-align: left;
  font-weight: 500;
  color: var(--text-soft);
  background: rgba(15, 23, 42, 0.9);
}

.table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

/* ---------------------------------------------------------
  Member Panel Icon Grid
   --------------------------------------------------------- */

.panel-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.panel-icon-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.05), #020617);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
  transition: transform 0.08s ease, box-shadow 0.1s ease, border-color 0.1s ease,
    background 0.1s ease;
}

.panel-icon-tile:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
  transform: translateY(-1px);
}

.panel-icon {
  font-size: 1.35rem;
}

.panel-icon-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-icon-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------
  Profile Layout Bits
   --------------------------------------------------------- */

.profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  align-items: flex-start;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.9), #020617);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.1rem;
  font-weight: 700;
  color: #022c22;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.45);
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.profile-tagline {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

.profile-bio {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
  white-space: pre-wrap;
}

.profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.profile-socials a,
.profile-socials span {
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2rem;
}

/* ---------------------------------------------------------
  Utilities
   --------------------------------------------------------- */

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}

/* ---------------------------------------------------------
  Responsive tweaks
   --------------------------------------------------------- */

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .card {
    border-radius: var(--radius-lg);
  }

  .container {
    padding: 0 1rem;
  }
}
.tag-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tag-panel {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
}

.tag-panel-header {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tag-panel-body {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-panel-search input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.tag-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 180px;
  overflow-y: auto;
}

.tag-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tag-pill input {
  margin: 0;
}

.tag-pill span {
  font-size: 0.78rem;
}

.tag-pill:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.7);
}

.tag-pill-radio input[type="radio"] {
  accent-color: #22c55e;
}

.tag-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
}
/* Admin notes / utility */
.admin-note-muted {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.section-title-sm {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.section-divider {
  border-color: var(--border);
  margin: 0.8rem 0;
}

.muted-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Compact table + forms */
.table-compact th,
.table-compact td {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.inline-form {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.inline-input {
  max-width: 160px;
}

.btn-xs {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
}

.form-grid-compact {
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 0.5rem;
}

.form-actions-inline {
  align-self: end;
}

.form-actions-wide {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

.table-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* Visibility radio stack */
.visibility-options {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
}

/* Tag selector layout */
.tag-filter-wrapper {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.tag-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.tag-panel {
  background: #020617;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 0.6rem 0.7rem;
}

.tag-panel-header {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.tag-panel-body {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-panel-search input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.tag-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 180px;
  overflow-y: auto;
}

.tag-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tag-pill input {
  margin: 0;
}

.tag-pill span {
  font-size: 0.78rem;
}

.tag-pill:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.7);
}

.tag-pill-radio input[type="radio"] {
  accent-color: #22c55e;
}

.tag-empty {
  font-size: 0.78rem;
  color: var(--text-muted);
}
/* Admin dashboard tiles */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-tile {
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left,
            rgba(34, 197, 94, 0.09),
            #020617);
  padding: 1rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
  color: inherit;
}

.admin-tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(34, 197, 94, 0.7);
}

.admin-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85);
}

.admin-tile-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.admin-tile-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.admin-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-tile-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
/* Admin dashboard tiles (existing) */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.admin-tile {
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid var(--border);
  background: radial-gradient(circle at top left,
            rgba(34, 197, 94, 0.09),
            #020617);
  padding: 1rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
  color: inherit;
}

.admin-tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(34, 197, 94, 0.7);
}

.admin-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.85);
}

.admin-tile-title {
  font-weight: 600;
  font-size: 0.98rem;
}

.admin-tile-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1 1 auto;
}

.admin-tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-tile-footer span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Admin stats widget */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.admin-stat-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #020617;
  padding: 0.7rem 0.8rem;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-stat-value {
  font-size: 1.3rem;
  font-weight: 600;
}

.admin-stat-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
  GLOBAL NAVIGATION / SITE HEADER
------------------------------------------------------------- */

.site-header {
    width: 100%;
    background: #020617; /* deep slate */
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
}

.site-header-top {
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

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

/* -------------------------------------------------------------
  BRANDING
------------------------------------------------------------- */

.site-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    color: var(--text-normal);
}

.site-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.site-brand-fallback {
    width: 42px;
    height: 42px;
    border-radius: 0.5rem;
    background: radial-gradient(circle at top left, rgba(34,197,94,0.15), #0f172a);
    border: 1px solid rgba(148,163,184,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
    color: var(--text-highlight);
}

.site-brand-title {
    font-size: 1rem;
    font-weight: 700;
}

.site-brand-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
  NAV LINKS
------------------------------------------------------------- */

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    padding: 0.35rem 0.4rem;
    text-decoration: none;
    color: var(--text-normal);
    transition: color 0.15s ease;
}

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

.nav-link-active {
    color: var(--text-highlight);
    font-weight: 600;
}

.nav-link-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-green, #22c55e);
}

/* -------------------------------------------------------------
  AUTH AREA (Login button / User display)
------------------------------------------------------------- */

.site-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-user-chip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: var(--shadow-subtle);
}

.site-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, rgba(34,197,94,0.2), #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-highlight);
    border: 1px solid rgba(148,163,184,0.45);
}

.site-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-user-name {
    font-size: 0.82rem;
    font-weight: 600;
}

.site-user-role {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------
  BANNER IMAGE
------------------------------------------------------------- */

.site-banner {
    width: 100%;
    border-top: 1px solid rgba(148,163,184,0.1);
    border-bottom: 1px solid rgba(148,163,184,0.1);
    background: #000;
}

.site-banner-inner {
    max-height: 240px;
    overflow: hidden;
}

.site-banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* -------------------------------------------------------------
  RESPONSIVE BEHAVIOUR
------------------------------------------------------------- */

@media (max-width: 900px) {
    .site-header-inner {
        flex-wrap: wrap;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        margin-top: 0.5re
}
}
/* ----------------------------------------------------------
   PROFILE PAGE MODULES
---------------------------------------------------------- */

/* Video grid layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

/* Video card */
.video-card {
    display: block;
    background: var(--card-bg, #1b1d1f);
    border: 1px solid var(--border-color, #2a2d31);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}

/* Thumbnail */
.video-thumb-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}
.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video meta text */
.video-meta {
    padding: 0.75rem 0.9rem 1rem 0.9rem;
}
.video-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}
.video-date {
    font-size: 0.8rem;
}

/* ----------------------------------------------------------
   BADGES
---------------------------------------------------------- */

.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
}

/* Colours */
.badge-success {
    background: #2ecc71;
    color: #0c331d;
}
.badge-muted {
    background: #4a4d52;
    color: #d1d1d1;
}
.badge-pill {
    background: #36393f;
    border: 1px solid #4f545c;
    color: #cccccc;
    border-radius: 999px;
}

/* ----------------------------------------------------------
   PROFILE CONTENT LIST
---------------------------------------------------------- */

.profile-content-list {
    display: grid;
    gap: 1.25rem;
}

.profile-content-item {
    padding: 1.25rem;
    border: 1px solid var(--border-color, #2a2d31);
    background: var(--card-bg, #1b1d1f);
    border-radius: 8px;
}

/* Header (type badge + date) */
.profile-content-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

/* Content title */
.profile-content-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.profile-content-title a {
    color: inherit;
    text-decoration: none;
}
.profile-content-title a:hover {
    text-decoration: underline;
}

/* Post body preview */
.profile-content-body {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--muted-text-color, #c7c7c7);
    margin-top: 0.5rem;
    white-space: pre-wrap;
}

/* ----------------------------------------------------------
  CARD STRUCTURE REINFORCEMENT (optional)
---------------------------------------------------------- */

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
}
.card-sub {
    font-size: 0.85rem;
    color: var(--muted-text-color, #c7c7c7);
}
.section-title-xs {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.85;
}

/* For horizontal separators inside cards */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-color, #2a2d31);
    margin: 1.25rem 0;
}
/* ----------------------------------------------------------
   TWITCH EMBED
---------------------------------------------------------- */

.twitch-embed {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.twitch-embed iframe {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    border: none;
    background: #000;
}

.twitch-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.twitch-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.twitch-viewers {
    font-size: 0.8rem;
}

/* Stack on small screens */
@media (max-width: 768px) {
    .twitch-embed {
        grid-template-columns: 1fr;
    }
    .twitch-embed iframe {
        height: 180px;
    }
}

/* ----------------------------------------------------------
   INLINE VIDEO THUMB IN PROFILE CONTENT
---------------------------------------------------------- */

.profile-inline-video-thumb {
    display: block;
    margin: 0.4rem 0 0.75rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color, #2a2d31);
    text-decoration: none;
}
.profile-inline-video-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.15s ease;
}
.profile-inline-video-thumb:hover img {
    transform: scale(1.02);
}

/* ----------------------------------------------------------
   READ MORE / SHOW LESS BUTTON
---------------------------------------------------------- */

.content-readmore-toggle {
    margin-top: 0.4rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--border-color, #2a2d31);
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.content-readmore-toggle:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--accent-color, #4b8cff);
}
/* ----------------------------------------------------------
   PROFILE LINK STYLES
   (Scoped to card content so we don't affect the main nav)
---------------------------------------------------------- */

.card-body a {
    color: var(--accent-color, #4b8cff);
    text-decoration: none;
    font-weight: 500;
}

.card-body a:hover {
    text-decoration: underline;
}

/* Links inside muted text (e.g. Twitch "View on Twitch") */
.card-body .muted-text a {
    color: var(--accent-color, #4b8cff);
    text-decoration: none;
}
.card-body .muted-text a:hover {
    text-decoration: underline;
}

/* Profile content titles already look like headings; keep them tidy */
.profile-content-title a {
    color: inherit;
    text-decoration: none;
}
.profile-content-title a:hover {
    text-decoration: underline;
}

/* Buttons linking out (e.g. "Watch on Twitch") already have .btn styles,
   but this keeps them consistent in small form */
.btn.btn-xs,
.btn.btn-secondary.btn-xs {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}
/* ----------------------------------------------------------
   MEMBERS DIRECTORY
---------------------------------------------------------- */

.directory-sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.directory-sort-label {
    font-size: 0.85rem;
    color: var(--muted-text-color, #c7c7c7);
}

.directory-sort-select {
    padding: 0.25rem 0.6rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-color, #2a2d31);
    background: #111317;
    color: inherit;
}

/* Grid of user cards */
.user-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Individual user card */
.user-card {
    border-radius: 10px;
    border: 1px solid var(--border-color, #2a2d31);
    background: var(--card-bg, #1b1d1f);
    padding: 0.9rem 1rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    border-color: var(--accent-color, #4b8cff);
}

/* Header */
.user-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.user-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.user-card-title a {
    color: inherit;
    text-decoration: none;
}
.user-card-title a:hover {
    text-decoration: underline;
}
.user-card-sub {
    font-size: 0.8rem;
}

/* Meta rows */
.user-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.25rem 0 0.5rem 0;
}
.user-card-meta div {
    min-width: 0;
}
.user-card-meta dt {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted-text-color, #b0b0b0);
    margin-bottom: 0.1rem;
}
.user-card-meta dd {
    margin: 0;
    font-size: 0.85rem;
}

/* Footer buttons */
.user-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.btn.btn-xs,
.btn.btn-ghost.btn-xs {
    padding: 0.2rem 0.55rem;
    font-size: 0.75rem;
    border-radius: 999px;
}
/* ----------------------------------------------------------
   MEMBERS DIRECTORY – TABLE LAYOUT
---------------------------------------------------------- */

.directory-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.directory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.directory-table thead tr {
    background: #16181c;
}

.directory-table th,
.directory-table td {
    padding: 0.45rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #2a2d31);
    white-space: nowrap;
}

.directory-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text-color, #b0b0b0);
}

.directory-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.01);
}

.directory-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.directory-table td a {
    color: var(--accent-color, #4b8cff);
    text-decoration: none;
}
.directory-table td a:hover {
    text-decoration: underline;
}

.directory-links-cell {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

/* Tiny pills for link buttons */
.directory-links-cell .btn.btn-xs,
.directory-links-cell .btn.btn-ghost.btn-xs {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 999px;
}
/* ----------------------------------------------------------
   TILE LINK STYLE FIX
   Remove default hyperlink underline inside dashboard tiles
---------------------------------------------------------- */

/* Remove underline on all links inside tiles */
.tile a,
.tile a:visited {
    text-decoration: none;
}

/* Remove underline on hover too */
.tile a:hover,
.tile a:active,
.tile a:focus {
    text-decoration: none;
}

/* Optional: ensure no blue colouring overrides theme */
.tile a,
.tile a:hover {
    color: inherit; /* keeps text colour consistent with tile design */
}

/* ----------------------------------------------------------
   TILE LINKS (admin + member dashboards)
   Make the whole tile clickable, but never show link underline
---------------------------------------------------------- */

/* Tiles where the <a> tag IS the tile */
a.tile,
a.admin-tile,
a.member-tile,
a.dashboard-tile,
a.tile-link,
a.tile-card {
    color: inherit;
    text-decoration: none !important;
}

/* Hover / focus states for clickable tiles */
a.tile:hover,
a.tile:focus,
a.admin-tile:hover,
a.admin-tile:focus,
a.member-tile:hover,
a.member-tile:focus,
a.dashboard-tile:hover,
a.dashboard-tile:focus,
a.tile-link:hover,
a.tile-link:focus,
a.tile-card:hover,
a.tile-card:focus {
    color: inherit;
    text-decoration: none !important;
    outline: none;
}

/* Ensure auth area aligns with the main nav */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Navigation links */
.site-nav .nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.site-nav .nav-link:hover {
    color: var(--accent-color, #4b8cff);
    text-decoration: underline;
}

/* Active nav link */
.nav-link-active {
    color: var(--accent-color, #4b8cff);
}

/* Auth area login link – re-use same style */
.site-auth .nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}
.site-auth .nav-link:hover {
    color: var(--accent-color, #4b8cff);
    text-decoration: underline;
}

/* Keep login aligned nicely when no user chip is shown */
.site-auth {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
/* ----------------------------------------------------------
   PROFILE MINI-SITES
---------------------------------------------------------- */

.profile-hero {
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.8));
}

.profile-hero-has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.profile-hero-has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    border-radius: inherit;
}
.profile-hero > .card {
    position: relative;
    z-index: 1;
    background: rgba(10, 12, 16, 0.92);
    backdrop-filter: blur(8px);
}

.profile-social-links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.featured-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 0.5rem;
}
.featured-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Pinned content */
.profile-content-item.pinned {
    border: 1px solid var(--accent-color, #4b8cff);
    box-shadow: 0 0 0 1px rgba(75, 140, 255, 0.3);
}
.profile-content-item .pinned-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: rgba(75, 140, 255, 0.12);
    color: var(--accent-color, #4b8cff);
    margin-right: 0.4rem;
}
.profile-tabs {
      display: flex;
      gap: 0.5rem;
      border-bottom: 1px solid var(--border-subtle, #333);
      margin-bottom: 1rem;
      flex-wrap: wrap;
    }
    .profile-tab-button {
      border: none;
      background: transparent;
      padding: 0.5rem 0.9rem;
      cursor: pointer;
      font: inherit;
      border-radius: 0.3rem 0.3rem 0 0;
    }
    .profile-tab-button.active {
      background: var(--card-bg-strong, #222);
      border-bottom: 2px solid var(--accent, #4b8cff);
      font-weight: 600;
    }
    .profile-tab {
      display: none;
    }
    .profile-tab.active {
      display: block;
}

/* Base tab bar */
.profile-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* All tab buttons */
.profile-tab-button {
  border: none;
  background: transparent;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
  font: inherit;
  border-radius: 0.375rem 0.375rem 0 0;
  /* make inactive text clearly visible */
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid transparent;
}

/* Hover state (inactive) */
.profile-tab-button:hover:not(.active) {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
}

/* Active tab – keep your bright outline feel */
.profile-tab-button.active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-bottom-color: var(--accent, #00ff7f); /* or your green */
  font-weight: 600;
}

/* Remove mouse-click focus outline */
.profile-tab-button:focus {
  outline: none;
  box-shadow: none;
}

/* KEEP focus ring for keyboard navigation (Tab/Shift+Tab) */
.profile-tab-button:focus-visible {
  outline: 2px solid var(--accent, #00ff7f); /* or your accent */
  outline-offset: 2px;
}

/* -------- Profile theme picker (edit page) -------- */
.profile-theme-picker {
  display: grid;
  gap: 0.5rem;
}

.theme-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.theme-option input[type="radio"] {
  margin-top: 0.2rem;
}

.theme-option-body {
  display: flex;
  flex-direction: column;
}

.theme-option-title {
  font-weight: 600;
}

.theme-option-sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.theme-option:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}

/* ============================
   PROFILE GRID LAYOUT
   ============================ */

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Default mobile behaviour: stacked */
.profile-grid-hero,
.profile-grid-featured,
.profile-grid-youtube,
.profile-grid-content {
  width: 100%;
}

/* Base layout – simple vertical stack on desktop too */
@media (min-width: 960px) {
  .profile-layout-base .profile-grid {
    display: flex;
    flex-direction: column;
  }
}

/* Streamer layout – two-column dashboard on desktop */
@media (min-width: 960px) {
  .profile-layout-streamer .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    grid-template-areas:
      "hero featured"
      "hero youtube"
      "content content";
    gap: 1.5rem;
  }

  .profile-layout-streamer .profile-grid-hero {
    grid-area: hero;
  }
  .profile-layout-streamer .profile-grid-featured {
    grid-area: featured;
  }
  .profile-layout-streamer .profile-grid-youtube {
    grid-area: youtube;
  }
  .profile-layout-streamer .profile-grid-content {
    grid-area: content;
  }
}

/* Gallery layout – big hero + grid of content, no side cards */
@media (min-width: 960px) {
  .profile-layout-gallery .profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
    grid-template-areas:
      "hero hero"
      "content content";
    gap: 1.5rem;
  }

  .profile-layout-gallery .profile-grid-hero {
    grid-area: hero;
  }

  .profile-layout-gallery .profile-grid-content {
    grid-area: content;
  }

  /* Hide side cards in gallery layout for a very different feel */
  .profile-layout-gallery .profile-grid-featured,
  .profile-layout-gallery .profile-grid-youtube {
    display: none;
  }

  /* Make profile content more 'gallery-like' */
  .profile-layout-gallery .profile-content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }

  .profile-layout-gallery .profile-content-item {
    height: 100%;
  }
}

/* ----------------------------
   Base styles (shared)
   ---------------------------- */

.profile-hero {
  margin-bottom: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.9));
}

.profile-hero-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.profile-hero-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
  border-radius: inherit;
}

.profile-hero > .card {
  position: relative;
  z-index: 1;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(10px);
}

.profile-header-main {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.profile-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-banner {
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.profile-banner-image {
  width: 100%;
  display: block;
}

/* Featured video embed */
.featured-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}
.featured-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Twitch embed */
.twitch-embed {
  margin-top: 0.75rem;
}
.twitch-embed iframe {
  width: 100%;
  height: 220px;
}
@media (min-width: 960px) {
  .profile-layout-streamer .twitch-embed iframe {
    height: 260px;
    border-radius: 0.75rem;
  }
}
.twitch-meta {
  margin-top: 0.4rem;
}

/* Profile social links */
.profile-social-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Pinned content styling */
.profile-content-item.pinned {
  border: 1px solid var(--profile-accent, #4b8cff);
  box-shadow: 0 0 0 1px rgba(75, 140, 255, 0.3);
}
.pinned-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(75, 140, 255, 0.12);
  color: var(--profile-accent, #4b8cff);
  margin-right: 0.4rem;
}

/* Colour themes – give each a different vibe */

.profile-color-ggs-default .profile-hero > .card {
  border-color: rgba(255,255,255,0.08);
  --profile-accent: #4b8cff;
}

.profile-color-neon-dreams .profile-hero {
  background: radial-gradient(circle at top, #1b0033, #02040a);
}
.profile-color-neon-dreams .profile-hero > .card {
  border-color: rgba(255,69,255,0.4);
}
.profile-color-neon-dreams .profile-content-item.pinned {
  border-color: #ff45ff;
  box-shadow: 0 0 0 1px rgba(255,69,255,0.45);
  --profile-accent: #ff45ff;
}

.profile-color-overworld-dawn .profile-hero {
  background: linear-gradient(135deg, #0b2436, #153a52);
}
.profile-color-overworld-dawn .profile-hero > .card {
  border-color: rgba(255, 213, 107, 0.4);
}
.profile-color-overworld-dawn .profile-content-item.pinned {
  border-color: #ffd56b;
  --profile-accent: #ffd56b;
}

.profile-color-nether-ember .profile-hero {
  background: radial-gradient(circle at top, #2b0505, #050000);
}
.profile-color-nether-ember .profile-hero > .card {
  border-color: rgba(255,102,51,0.5);
}
.profile-color-nether-ember .profile-content-item.pinned {
  border-color: #ff6633;
  --profile-accent: #ff6633;
}
/* =======================================
   GGS PROFILE LAYOUT THEMES (STRONG RULES)
   ======================================= */

/* Base: keep stacked layout (no special overrides needed) */


/* STREAMER LAYOUT
   - Hero on the left
   - Featured + YouTube stacked on the right
   - Content full-width underneath
*/
@media (min-width: 960px) {
  .profile-layout-streamer .profile-grid {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .profile-layout-streamer .profile-grid-hero {
    flex: 0 0 60%;
    max-width: 60%;
  }

  .profile-layout-streamer .profile-grid-featured,
  .profile-layout-streamer .profile-grid-youtube {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .profile-layout-streamer .profile-grid-content {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


/* GALLERY LAYOUT
   - Hero at the top
   - Hide Featured + YouTube sections entirely
   - Content becomes a card grid
*/
.profile-layout-gallery .profile-grid-featured,
.profile-layout-gallery .profile-grid-youtube {
  display: none !important;
}

@media (min-width: 960px) {
  .profile-layout-gallery .profile-grid {
    display: flex !important;
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-layout-gallery .profile-grid-content .profile-content-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }

  .profile-layout-gallery .profile-grid-content .profile-content-item {
    height: 100%;
  }
}

/* Shared hero tweaks so every theme looks a bit more "profile-ish" */
.profile-hero {
  margin-bottom: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.9));
}
.profile-hero-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.profile-hero-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
  border-radius: inherit;
}
.profile-hero > .card {
  position: relative;
  z-index: 1;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(10px);
}
.profile-header-main {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.profile-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}
/* =========================================================
   GGS – Profile layout & styles
   ========================================================= */

.profile-page {
  margin-top: 1.5rem;
}

/* Base layout container: hero + side + content */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-hero-column,
.profile-side-column {
  width: 100%;
}

/* Desktop layout for classic */
@media (min-width: 960px) {
  .profile-style-classic .profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
    gap: 1.5rem;
  }

  .profile-style-classic .profile-hero-column {
    grid-column: 1;
  }
  .profile-style-classic .profile-side-column {
    grid-column: 2;
  }
}

/* Shared hero & cards */
.profile-hero-wrapper {
  margin-bottom: 0;
  padding: 0.75rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top, rgba(255,255,255,0.06), rgba(0,0,0,0.9));
}

.profile-hero-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.profile-hero-has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.95));
  border-radius: inherit;
}

.profile-hero-card {
  position: relative;
  z-index: 1;
  background: rgba(10, 12, 16, 0.94);
  backdrop-filter: blur(10px);
}

.profile-header-main {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.profile-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
}

.profile-banner {
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  overflow: hidden;
}
.profile-banner-image {
  width: 100%;
  display: block;
}

/* Twitch embed */
.twitch-embed {
  margin-top: 0.75rem;
}
.twitch-embed iframe {
  width: 100%;
  height: 220px;
}
@media (min-width: 960px) {
  .profile-style-streamer .twitch-embed iframe {
    height: 260px;
    border-radius: 0.75rem;
  }
}

/* Featured video */
.featured-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
}
.featured-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.video-card {
  text-decoration: none;
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-thumb-wrapper {
  overflow: hidden;
}
.video-thumb {
  width: 100%;
  display: block;
}
.video-meta {
  padding: 0.5rem 0.75rem 0.6rem;
}

/* Profile content list */
.profile-content-card {
  margin-top: 1.5rem;
}
.profile-content-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-content-item {
  border-radius: 0.9rem;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0.9rem;
}
.profile-content-header {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}
.profile-content-title {
  margin: 0 0 0.4rem 0;
}
.profile-inline-video-thumb img {
  width: 100%;
  max-width: 360px;
  border-radius: 0.6rem;
}

/* Pinned styling (accent colour) */
.profile-content-item.pinned {
  border-color: #4b8cff;
  box-shadow: 0 0 0 1px rgba(75, 140, 255, 0.5);
}
.pinned-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(75, 140, 255, 0.18);
  color: #4b8cff;
}

/* Profile social links row */
.profile-social-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* --------------------------------------
   STYLE: STREAMER
   -------------------------------------- */

/* Streamer – strong 2-column dashboard on desktop */
@media (min-width: 960px) {
  .profile-style-streamer .profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.7fr);
    gap: 1.5rem;
  }

  .profile-style-streamer .profile-hero-column {
    grid-column: 1;
  }
  .profile-style-streamer .profile-side-column {
    grid-column: 2;
  }
}

/* Streamer colour palette */
.profile-style-streamer {
  background: radial-gradient(circle at 10% 0%, #31005b 0%, #050016 45%, #00161f 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9);
}

.profile-style-streamer .card {
  background: rgba(8, 6, 24, 0.96);
  border-color: rgba(255, 69, 255, 0.35);
}

.profile-style-streamer .profile-hero-card {
  border-image: linear-gradient(90deg, #ff45ff, #47f3ff) 1;
}

.profile-style-streamer .profile-content-item.pinned {
  border-color: #47f3ff;
  box-shadow: 0 0 0 1px rgba(71,243,255,0.7);
}
.profile-style-streamer .pinned-label {
  background: rgba(71,243,255,0.2);
  color: #47f3ff;
}

/* --------------------------------------
   STYLE: GALLERY – NEON
   -------------------------------------- */

/* Hide side column, big grid of content */
.profile-style-gallery-neon .profile-side-column {
  display: none;
}

@media (min-width: 960px) {
  .profile-style-gallery-neon .profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-style-gallery-neon .profile-content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
}

/* Neon gallery colours */
.profile-style-gallery-neon {
  background: radial-gradient(circle at 10% 0%, #1b0033 0%, #050016 45%, #00161f 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 25px 80px rgba(0,0,0,0.9);
}

.profile-style-gallery-neon .card {
  background: rgba(8, 6, 24, 0.96);
  border-color: rgba(255, 69, 255, 0.35);
}

.profile-style-gallery-neon .profile-content-item.pinned {
  border-color: #ff45ff;
  box-shadow: 0 0 0 1px rgba(255,69,255,0.7);
}
.profile-style-gallery-neon .pinned-label {
  background: rgba(255,69,255,0.2);
  color: #ff8dff;
}

/* --------------------------------------
   STYLE: GALLERY – EMBER
   -------------------------------------- */

.profile-style-gallery-ember .profile-side-column {
  display: none;
}

@media (min-width: 960px) {
  .profile-style-gallery-ember .profile-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .profile-style-gallery-ember .profile-content-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
  }
}

.profile-style-gallery-ember {
  background: radial-gradient(circle at 0% 0%, #3f0505 0%, #050103 55%, #160000 100%);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.9);
}

.profile-style-gallery-ember .card {
  background: rgba(15, 6, 8, 0.96);
  border-color: rgba(255, 102, 51, 0.4);
}

.profile-style-gallery-ember .profile-content-item.pinned {
  border-color: #ff6633;
  box-shadow: 0 0 0 1px rgba(255,102,51,0.7);
}
.profile-style-gallery-ember .pinned-label {
  background: rgba(255,102,51,0.2);
  color: #ffb38a;
}

/* --------------------------------------
   STYLE: CLASSIC (mostly uses default site styling)
   -------------------------------------- */

.profile-style-classic {
  background: radial-gradient(circle at top, rgba(60,90,255,0.18), rgba(2,4,16,0.98));
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 1.75rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.8);
}

.profile-style-classic .card {
  background: rgba(8, 10, 18, 0.98);
  border-color: rgba(255,255,255,0.08);
}
