/* ==========================================================================
   3DFam · Futuristisches & klares 3D-Druck Portal Stylesheet
   ========================================================================== */

:root {
  --bg-deep: #060a12;
  --bg-surface: rgba(13, 21, 38, 0.78);
  --bg-surface-solid: #0d1526;
  --bg-elevated: rgba(20, 32, 56, 0.88);
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-cyan: rgba(0, 240, 255, 0.28);

  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.14);
  --violet: #7c3aed;
  --violet-dim: rgba(124, 58, 237, 0.18);
  --emerald: #10b981;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --danger: #ef4444;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-glow: 0 0 28px rgba(0, 240, 255, 0.12);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

/* --- Futuristischer Hintergrund --- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 15%, black 35%, transparent 85%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.38;
}

.bg-glow-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.42), transparent 70%);
}

.bg-glow-2 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  right: -100px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 70%);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Install Banner (Mobile) --- */
.install-banner {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.16), rgba(124, 58, 237, 0.22));
  border-bottom: 1px solid var(--border-cyan);
  backdrop-filter: blur(14px);
  padding: 10px 16px;
}

.install-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.install-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.install-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.install-banner-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.install-banner-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 18, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  background: linear-gradient(120deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: var(--border-cyan);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
}

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

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  font-weight: 600;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--violet-dim);
  border: 1px solid rgba(124, 58, 237, 0.5);
  color: #c4b5fd;
  letter-spacing: 0.06em;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-accent {
  background: rgba(245, 158, 11, 0.22);
  color: #fbbf24;
}

/* --- Demo Bar --- */
.demo-bar {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.84rem;
  padding: 8px 0;
}

.demo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* --- Main Content --- */
.main-content {
  padding-top: 28px;
  padding-bottom: 64px;
}

.view-section {
  animation: fadeSlideIn 0.24s ease-out;
}

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

.hero-header {
  margin-bottom: 24px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(110deg, var(--cyan), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
}

/* --- Glass Cards --- */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.glass-card + .glass-card {
  margin-top: 20px;
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.step-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 4px;
}

.card-hint {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Submit Layout --- */
.submit-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr;
  gap: 22px;
  align-items: start;
}

.sticky-card {
  position: sticky;
  top: 88px;
}

/* --- Forms --- */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-qty {
  display: grid;
  grid-template-columns: 165px 1fr;
  gap: 16px;
  align-items: start;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.label-row label {
  margin-bottom: 0;
}

.label-sub {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(6, 10, 18, 0.72);
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.14);
}

textarea {
  resize: vertical;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 1rem;
  line-height: 1;
}

.toggle-pw:hover {
  color: var(--cyan);
}

/* Logged in Banner Card */
.logged-in-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(13, 21, 38, 0.82));
}

.logged-in-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  color: #060a12;
  flex-shrink: 0;
}

.logged-in-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  font-weight: 700;
}

.logged-in-name {
  font-weight: 700;
  font-size: 1.02rem;
}

.logged-in-email {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* Platform Quick Buttons */
.platform-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: transform 0.16s ease, border-color 0.2s, background 0.2s;
}

.platform-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.plat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.platform-makerworld .plat-dot { background: #00ae42; box-shadow: 0 0 8px #00ae42; }
.platform-makerworld:hover { border-color: rgba(0, 174, 66, 0.6); }

.platform-printables .plat-dot { background: #fa6831; box-shadow: 0 0 8px #fa6831; }
.platform-printables:hover { border-color: rgba(250, 104, 49, 0.6); }

.platform-thingiverse .plat-dot { background: #248bfb; box-shadow: 0 0 8px #248bfb; }
.platform-thingiverse:hover { border-color: rgba(36, 139, 251, 0.6); }

.plat-ext {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.url-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

/* Quantity Stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.72);
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.qty-stepper input {
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  padding: 8px 4px;
  -moz-appearance: textfield;
}

.qty-stepper input:focus {
  box-shadow: none;
}

/* --- 1 KG Filament Spool Picker --- */
.spool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 14px;
}

.spool-grid::-webkit-scrollbar {
  width: 6px;
}
.spool-grid::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.28);
  border-radius: 999px;
}

.spool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 10, 18, 0.65);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.18s ease;
  font: inherit;
}

.spool-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(14, 24, 44, 0.85);
  transform: translateY(-2px);
}

.spool-card.selected {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.09);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.18);
}

.spool-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: #060a12;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.16s ease;
}

.spool-card.selected .spool-check {
  opacity: 1;
  transform: scale(1);
}

.spool-card-mat {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
}

.spool-card-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.spool-card-weight {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.selected-spool-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid var(--border-cyan);
  margin-bottom: 16px;
}

.selected-spool-box strong {
  display: block;
  font-size: 0.94rem;
}

.selected-spool-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  min-height: 42px;
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.82rem;
  min-height: 36px;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
  min-height: 50px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff, #3b82f6);
  color: #04101d;
  box-shadow: 0 6px 22px rgba(0, 229, 255, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 229, 255, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-cyan);
  color: var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan-dim);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

.btn-link {
  background: transparent;
  color: var(--cyan);
  padding: 4px 6px;
  min-height: auto;
}

.btn-link:hover {
  text-decoration: underline;
}

/* --- Section Header --- */
.section-header-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* --- Request Cards & 5-Step Status Timeline --- */
.requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.request-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.request-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.request-title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 700;
}

.request-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.status-submitted { background: rgba(148, 163, 184, 0.16); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.35); }
.status-viewed { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(59, 130, 246, 0.4); }
.status-in_progress { background: rgba(245, 158, 11, 0.18); color: #fcd34d; border-color: rgba(245, 158, 11, 0.42); }
.status-printed { background: rgba(0, 240, 255, 0.16); color: var(--cyan); border-color: var(--border-cyan); }
.status-completed { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.45); }

.request-filament-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.55);
  border: 1px solid var(--border-subtle);
}

.request-notes-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--violet);
  font-size: 0.88rem;
  color: #cbd5e1;
}

.admin-note-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 240, 255, 0.07);
  border-left: 3px solid var(--cyan);
  font-size: 0.88rem;
}

.retention-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* 5-Step Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding-top: 6px;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 11px;
  left: -50%;
  right: 50%;
  height: 2px;
  background: rgba(148, 163, 184, 0.22);
  z-index: 0;
}

.timeline-step:first-child::before {
  display: none;
}

.timeline-step.done::before,
.timeline-step.active::before {
  background: linear-gradient(90deg, var(--cyan), #60a5fa);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: var(--bg-surface-solid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.timeline-step.done .timeline-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04101d;
}

.timeline-step.active .timeline-dot {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.18);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.timeline-label {
  font-size: 0.68rem;
  line-height: 1.15;
  color: var(--text-dim);
  font-weight: 600;
}

.timeline-step.done .timeline-label,
.timeline-step.active .timeline-label {
  color: var(--text-main);
}

.request-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

/* --- Admin Dashboard --- */
.admin-retention-hint {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--cyan);
}

.admin-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.subtab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.18s;
}

.subtab.active {
  color: var(--cyan);
  background: var(--cyan-dim);
  border-color: var(--border-cyan);
}

.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--cyan);
  color: #04101d;
  border-color: var(--cyan);
}

.search-box {
  min-width: 240px;
  flex: 1;
  max-width: 340px;
}

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

.admin-status-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.status-switch-btn {
  padding: 7px 4px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(6, 10, 18, 0.65);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.status-switch-btn:hover {
  border-color: var(--cyan);
  color: var(--text-main);
}

.status-switch-btn.current {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

.admin-note-inline {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-note-inline input {
  padding: 8px 10px;
  font-size: 0.85rem;
}

/* Filament Admin */
.filament-admin-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
  align-items: start;
}

.filament-preview-stage {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 18, 0.72);
  border: 1px solid var(--border-cyan);
  margin-bottom: 16px;
}

.spool-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 2px 8px;
  border-radius: 999px;
}

.preview-hex {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.color-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

input[type="color"] {
  width: 56px;
  height: 44px;
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(6, 10, 18, 0.8);
  cursor: pointer;
}

.quick-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition: transform 0.14s, border-color 0.14s;
}

.swatch:hover {
  transform: scale(1.14);
  border-color: #fff;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  cursor: pointer;
  font-weight: 500;
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
}

.admin-filaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.admin-filament-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid var(--border-subtle);
}

.admin-filament-item.out-of-stock {
  opacity: 0.62;
}

.admin-filament-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}

.admin-filament-actions .btn {
  flex: 1;
}

/* Users List */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid var(--border-subtle);
}

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

.user-row-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
}

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

/* Empty States */
.empty-state {
  text-align: center;
  padding: 42px 24px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 18px;
}

.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card-lg {
  max-width: 680px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.95rem;
}

.modal-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.75);
}

.auth-tab {
  padding: 9px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--cyan-dim);
  color: var(--cyan);
}

.install-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.install-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.install-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 18, 0.65);
  border: 1px solid var(--border-subtle);
}

.install-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-text {
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Toasts --- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(13, 21, 38, 0.96);
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeSlideIn 0.2s ease;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.6);
  background: rgba(42, 12, 18, 0.95);
  color: #fecaca;
}

.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.6);
}

/* --- Mobile Bottom Nav --- */
.mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Smartphone)
   ========================================================================== */
@media (max-width: 960px) {
  .submit-layout {
    grid-template-columns: 1fr;
  }

  .sticky-card {
    position: static;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filament-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .user-pill,
  #btn-open-auth,
  #btn-logout {
    display: none;
  }

  .navbar-inner {
    min-height: 60px;
  }

  .main-content {
    padding-top: 18px;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .glass-card {
    padding: 18px 15px;
    border-radius: var(--radius-md);
  }

  .form-grid-2,
  .form-grid-qty,
  .platform-buttons {
    grid-template-columns: 1fr;
  }

  .requests-grid,
  .admin-orders-grid {
    grid-template-columns: 1fr;
  }

  .admin-status-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-label {
    font-size: 0.62rem;
  }

  .toast-container {
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom));
    left: 14px;
    right: 14px;
    max-width: none;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(6, 10, 18, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--border-subtle);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .mob-nav-btn {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
  }

  .mob-nav-btn.active {
    color: var(--cyan);
  }

  .mob-nav-icon {
    font-size: 1.15rem;
    line-height: 1.1;
  }

  .mob-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 22px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cyan);
    color: #04101d;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
