/* sHeyBK Site v3 Theme - SiteV2 Parity (High-contrast, minimal) */

:root {
  --bg0: #050509;
  --bg1: #2b2b3b;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f2f2ff;
  --muted: #c9c9dd;
  --link: #ffffff;
  --btn: rgba(255, 255, 255, 0.08);
  --btnBorder: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.70);
  --glass: rgba(15, 15, 22, 0.65);
  --glassBorder: rgba(255, 255, 255, 0.12);
  --focus: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(20, 20, 30, 0.92);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: 12px;
  --input-bg: rgba(0, 0, 0, 0.22);
  --success: #78d778;
  --warning: #ffd93d;
  --error: #ff6b6b;
  --info: #4dabf7;
}

[data-theme="mid"] {
  --bg0: #1a1a24;
  --bg1: #2d2d3f;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.15);
  --text: #e0e0f0;
  --muted: #a0a0b8;
  --link: #ffffff;
  --btn: rgba(255, 255, 255, 0.10);
  --btnBorder: rgba(255, 255, 255, 0.20);
  --shadow: rgba(0, 0, 0, 0.50);
  --glass: rgba(30, 30, 45, 0.70);
  --glassBorder: rgba(255, 255, 255, 0.18);
  --focus: rgba(255, 255, 255, 0.50);
  --glass-bg: rgba(35, 35, 50, 0.90);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: 12px;
  --input-bg: rgba(0, 0, 0, 0.30);
  --success: #78d778;
  --warning: #ffd93d;
  --error: #ff6b6b;
  --info: #4dabf7;
}

[data-theme="light"] {
  --bg0: #e8e8f0;
  --bg1: #d0d0e0;
  --card: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.18);
  --text: #1a1a2a;
  --muted: #4a4a5a;
  --link: #1a1a2a;
  --btn: rgba(0, 0, 0, 0.08);
  --btnBorder: rgba(0, 0, 0, 0.20);
  --shadow: rgba(0, 0, 0, 0.25);
  --glass: rgba(240, 240, 250, 0.80);
  --glassBorder: rgba(0, 0, 0, 0.18);
  --focus: rgba(0, 0, 0, 0.50);
  --glass-bg: rgba(235, 235, 245, 0.92);
  --glass-border: rgba(0, 0, 0, 0.20);
  --glass-blur: 12px;
  --input-bg: rgba(255, 255, 255, 0.70);
  --success: #51cf66;
  --warning: #ffd43b;
  --error: #ff6b6b;
  --info: #339af0;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  padding-top: var(--sbk-header-h, 140px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, var(--bg1), var(--bg0));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  /* Ensure header can stick properly */
  position: relative;
}

/* Layout */
.wrap {
  flex: 1 0 auto;
  max-width: 1080px;
  margin: 0 auto;
  padding: 50px 18px 25px;
  position: relative;
  z-index: 1;
}

/* Cards */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 100%;
}

.brand {
  font-weight: 900;
  letter-spacing: 0.2px;
  color: var(--text);
  text-decoration: none;
}

.spacer {
  flex: 1;
}

.navlink {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.navlink:hover {
  color: var(--text);
  background: var(--card);
}

.navlink.active {
  color: var(--text);
  background: var(--card);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: ' ▼';
  font-size: 0.8em;
  opacity: 0.7;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  z-index: 1001;
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--card);
}

/* Theme switcher */
.theme-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.2s;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: var(--btn);
  color: var(--text);
}

.theme-btn.active {
  background: var(--btnBorder);
  color: var(--text);
  font-weight: 700;
}

/* Buttons */
.btn {
  background: var(--btn);
  color: var(--text);
  border: 1px solid var(--btnBorder);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
}

.btn:hover:not(:disabled) {
  background: var(--btnBorder);
  border-color: var(--focus);
}

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

.btn-primary {
  background: var(--info);
  border-color: var(--info);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--info);
  opacity: 0.9;
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #000;
}

.btn-warning {
  background: var(--warning);
  border-color: var(--warning);
  color: #000;
}

.btn-error {
  background: var(--error);
  border-color: var(--error);
  color: #fff;
}

/* Inputs */
.input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input:focus {
  border-color: var(--focus);
}

textarea.input {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

/* Color picker inputs */
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
  background: transparent;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Range inputs (sliders) for color picker alpha */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

input[type="range"]::-webkit-slider-track {
  background: var(--border);
  height: 6px;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--text);
  height: 18px;
  width: 18px;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
  border: 2px solid var(--border);
  transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--focus);
}

input[type="range"]::-moz-range-track {
  background: var(--border);
  height: 6px;
  border-radius: 3px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  background: var(--text);
  height: 18px;
  width: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: background 0.2s;
}

input[type="range"]::-moz-range-thumb:hover {
  background: var(--focus);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

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

.table th {
  font-weight: 900;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}

.table tr:hover {
  background: var(--card);
}

/* Pills/Badges */
.pill {
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--btnBorder);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill-success {
  border-color: var(--success);
  color: var(--success);
}

.pill-warning {
  border-color: var(--warning);
  color: var(--warning);
}

.pill-error {
  border-color: var(--error);
  color: var(--error);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

/* Row */
.row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 16px 0;
  font-weight: 900;
  line-height: 1.2;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

/* Utility classes */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-dim { color: var(--muted); opacity: 0.7; }

/* Admin sidebar */
.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid var(--glass-border);
  min-width: 200px;
}

.admin-nav-item {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 600;
}

.admin-nav-item:hover {
  background: var(--card);
  color: var(--text);
}

.admin-nav-item.active {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.admin-content {
  flex: 1;
  padding: 24px;
}

/* Job cards with shine effect (Dashboard) */
.job-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.job-card-shine {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}

.job-card-shine:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.job-card-shine:hover::before {
  left: 100%;
}

/* App cards (SiteV2 style - title on top) */
.app-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
}

.app-card:hover {
  background: var(--input-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.app-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}

.app-card-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.app-card-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: var(--text);
}

.app-card-version {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.app-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 16px;
  line-height: 1;
}

.type-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}


.app-card-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.app-card-screenshot {
  width: 280px;
  height: 160px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.app-card-content {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.app-card-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Dashboard Welcome Banner */
.dashboard-welcome {
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-welcome-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-welcome-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dashboard-welcome-text {
  flex: 1;
  min-width: 0;
}

.dashboard-welcome-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.dashboard-meta-label {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-meta-value {
  color: var(--text);
  font-weight: 600;
}

.dashboard-meta-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-meta-badge.admin {
  background: linear-gradient(135deg, var(--success) 0%, #66c066 100%);
  color: #000;
  box-shadow: 0 2px 8px rgba(120, 215, 120, 0.3);
}

.dashboard-welcome-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Homepage Hero Section */
.homepage-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 300px);
  padding: 60px 20px;
}

.homepage-hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.homepage-title {
  font-size: 56px;
  font-weight: 900;
  margin: 0 0 24px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  text-align: center;
}

.homepage-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 40px 0;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.homepage-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
  text-align: left;
}

.homepage-feature {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.homepage-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.homepage-feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.homepage-feature h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px 0;
  color: var(--text);
}

.homepage-feature p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.homepage-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 700;
  min-width: 160px;
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--input-bg);
  border-color: var(--glass-border);
}

/* Admin Stat Tiles */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-tile {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-stat-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.admin-stat-content {
  flex: 1;
  min-width: 0;
}

.admin-stat-value {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 4px;
}

.admin-stat-value.success {
  color: var(--success);
}

.admin-stat-value.warning {
  color: var(--warning);
}

.admin-stat-value.error {
  color: var(--error);
}

.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-subtext {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  opacity: 0.8;
}

.admin-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-service-tile {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-service-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.admin-service-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.admin-service-status {
  font-size: 16px;
  font-weight: 600;
}

.admin-service-status.success {
  color: var(--success);
}

/* Job Row Hover */
.job-row:hover {
  background: var(--input-bg) !important;
}

.job-row.active {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* Hero section */
.hero {
  margin-bottom: 24px;
}

/* Customizer footer (sticky) */
.sbk-customizer-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 16px 24px;
  z-index: 999;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.sbk-customizer-footer > div {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sbk-customizer-footer__note {
  font-size: 13px;
  color: var(--muted);
}

.sbk-customizer-footer__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
/* SiteV2 Shell Layout - Header */
.sbk-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Ensure header never disappears and performs well */
  min-height: 100px;
  will-change: box-shadow;
  /* Ensure sticky works properly */
  margin: 0;
  padding: 0;
}

.sbk-header.is-scrolled {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.sbk-header-top {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: padding 0.3s ease, height 0.3s ease;
  height: 100px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sbk-header.is-scrolled .sbk-header-top {
  padding: 12px 24px;
  height: 50px;
}

@media (max-width: 899px) {
  .sbk-header-top {
    padding-left: 72px; /* Make room for hamburger button */
    padding-right: 72px; /* Make room for theme switcher */
  }
  
  .sbk-header.is-scrolled .sbk-header-top {
    padding-left: 68px;
    padding-right: 68px;
  }
  
  #logo-full {
    max-width: calc(100% - 80px); /* Prevent logo from overlapping buttons */
  }
}

.sbk-header-top .theme-switcher {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hamburger menu button */
.sbk-navbar-toggle {
  display: none;
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  justify-content: center;
  align-items: center;
}

.sbk-navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.sbk-navbar-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sbk-navbar-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.sbk-navbar-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.sbk-header.is-scrolled .sbk-navbar-toggle {
  width: 28px;
  height: 28px;
}

.sbk-header.is-scrolled .sbk-navbar-toggle span {
  width: 20px;
}

.sbk-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: padding 0.3s ease;
}

.sbk-header.is-scrolled .sbk-header-inner {
  padding: 12px 24px;
}

.sbk-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex: 1;
  position: relative;
}

/* Logo - round logo only */
#logo-full {
  height: 90px;
  width: auto;
  transition: height 0.3s ease, width 0.3s ease;
  display: block;
  object-fit: contain;
}

.sbk-header.is-scrolled #logo-full {
  height: 45px;
}

/* Navbar inside header area - sleeker design */
.sbk-navbar {
  background: transparent;
  padding: 0;
  transition: padding 0.3s ease;
  flex-shrink: 0;
  /* Ensure navbar never disappears */
  min-height: 48px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.sbk-header .sbk-navbar {
  margin-top: 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.sbk-header.is-scrolled .sbk-navbar {
  min-height: 40px;
}

.sbk-navbar-inner {
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.sbk-header.is-scrolled .sbk-navbar-inner {
  padding: 6px 24px;
}

/* Mobile menu styles (<900px) */
@media (max-width: 899px) {
  .sbk-navbar-toggle {
    display: flex;
  }

  .sbk-navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg0);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
  }
  
  /* Make mobile menu background more opaque */
  [data-theme="dark"] .sbk-navbar {
    background: rgba(5, 5, 9, 0.98);
  }
  
  [data-theme="mid"] .sbk-navbar {
    background: rgba(26, 26, 36, 0.98);
  }
  
  [data-theme="light"] .sbk-navbar {
    background: rgba(232, 232, 240, 0.98);
  }

  .sbk-navbar.is-open {
    max-height: 80vh;
    opacity: 1;
    overflow-y: auto;
  }

  .sbk-navbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
  }

  .sbk-navbar .nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border-radius: 8px;
  }

  .sbk-navbar .nav-dropdown {
    display: block;
    width: 100%;
  }

  .sbk-navbar .nav-dropdown .nav-link {
    width: 100%;
  }

  .sbk-navbar .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
    margin-top: 8px;
    padding: 8px 0;
    background: rgba(0, 0, 0, 0.2);
  }

  .sbk-navbar .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .sbk-navbar .nav-dropdown .dropdown-toggle::after {
    float: right;
    margin-top: 2px;
  }
}

.nav-link {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  background: transparent;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-link:hover {
  color: var(--text) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
  color: var(--text) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.nav-link-disabled:hover {
  background: transparent !important;
  color: var(--muted) !important;
}

/* Legacy nav-pill-link for backward compatibility */
.nav-pill-link {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-block;
}

.nav-pill-link:hover {
  color: var(--text) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.nav-pill-link.active {
  color: var(--text) !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Nav dropdown for admin menu */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.sbk-navbar .nav-dropdown {
  position: relative;
}

.sbk-navbar .nav-link.dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown .dropdown-toggle::after {
  content: ' ▼';
  font-size: 0.8em;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  z-index: 1001;
  padding: 8px 0;
  margin-top: 0;
}

.sbk-navbar .nav-dropdown-menu {
  top: calc(100% + 2px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  display: block;
}

.sbk-navbar .nav-dropdown:hover .nav-dropdown-menu,
.sbk-navbar .nav-dropdown-menu:hover {
  display: block;
}

/* Keep dropdown visible when hovering over the gap */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 1000;
}

.nav-dropdown-menu .dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
  font-weight: 600;
}

.nav-dropdown-menu .dropdown-item:hover {
  background: var(--card);
  color: var(--text);
}

.nav-dropdown-menu .dropdown-item.active {
  background: var(--card);
  color: var(--text);
  border-left: 2px solid var(--info);
}

.nav-dropdown-menu .dropdown-item.nav-link-disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.nav-dropdown-menu .dropdown-item.nav-link-disabled:hover {
  background: transparent !important;
  color: var(--muted) !important;
}

/* Nested dropdown submenu */
.nav-dropdown-submenu {
  position: relative;
}

.nav-dropdown-submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 4px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  min-width: 180px;
  z-index: 1002;
  padding: 8px 0;
}

.nav-dropdown-submenu:hover .nav-dropdown-submenu-content,
.nav-dropdown-submenu-content:hover {
  display: block;
}

/* SiteV2 Shell Layout - Main Content */
.sbk-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 20px 40px;
  position: relative;
}

/* SiteV2 Shell Layout - Footer */
.sbk-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 20px;
  z-index: 100;
}

.sbk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.sbk-footer-inner a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.sbk-footer-inner a:hover {
  color: var(--text);
  text-decoration: underline;
}

.sbk-footer-dot {
  color: var(--muted);
  opacity: 0.5;
}

/* Profile page grid layout */
.sbk-profile-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 24px;
  align-items: start;
}

.sbk-profile-col {
  /* Left column - Profile / Preferences */
}

.sbk-profile-sticky {
  position: sticky;
  top: calc(var(--sbk-header-h, 140px) + 16px);
  align-self: start;
}

.sbk-builds-col {
  /* Right column - Your Builds */
  min-width: 0; /* Prevent overflow */
}

@media (max-width: 1100px) {
  .sbk-profile-grid {
    grid-template-columns: 1fr;
  }
  
  .sbk-profile-sticky {
    position: static;
  }
}

/* Homepage Hero Styles */
.homepage-hero {
  padding: 60px 20px;
  text-align: center;
}

.homepage-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hardurl-welcome {
  margin-bottom: 48px;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.hardurl-logo-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hardurl-logo {
  max-width: 300px;
  max-height: 120px;
  height: auto;
  width: auto;
  object-fit: contain;
}

.hardurl-welcome-title {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--text);
}

.hardurl-welcome-text {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.homepage-title {
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 16px 0;
  color: var(--text);
}

.homepage-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 48px 0;
  line-height: 1.6;
}

.homepage-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

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

.homepage-feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.homepage-feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.homepage-feature p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.homepage-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

