/* ═══════════════════════════════════════════════════════════════
   AMET ACCESS MANAGER — Design System
   Amet Companhia © 2026
═══════════════════════════════════════════════════════════════ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Brand */
  --c-amber:        #F5C518;
  --c-orange:       #F5A623;
  --c-orange-dark:  #E8622A;
  --c-navy:         #1E2235;

  /* Default Light Theme */
  --c-bg:           #F3F4F6;
  --c-bg-2:         #FFFFFF;
  --c-bg-card:      #FFFFFF;
  --c-bg-sidebar:   #FFFFFF;
  --c-glass:        rgba(0,0,0,0.03);
  --c-glass-hover:  rgba(0,0,0,0.06);
  --c-text:         #111827;
  --c-text-muted:   #4B5563;
  --c-text-faint:   #9CA3AF;
  --c-border:       #E5E7EB;
  --c-border-focus: rgba(245,166,35,0.5);

  /* Status */
  --c-success:      #10B981;
  --c-success-bg:   rgba(16,185,129,0.12);
  --c-danger:       #EF4444;
  --c-danger-bg:    rgba(239,68,68,0.12);
  --c-warning:      #F59E0B;
  --c-warning-bg:   rgba(245,158,11,0.12);
  --c-info:         #3B82F6;
  --c-info-bg:      rgba(59,130,246,0.12);

  /* Gradients */
  --g-brand:        linear-gradient(135deg, #F5C518 0%, #F5A623 50%, #E8622A 100%);
  --g-brand-soft:   linear-gradient(135deg, rgba(245,197,24,0.15) 0%, rgba(232,98,42,0.15) 100%);
  --g-card:         linear-gradient(145deg, #FFFFFF 0%, #F9FAFB 100%);
  --g-bg:           radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245,166,35,0.05) 0%, transparent 70%);

  /* Shadows */
  --s-sm:    0 1px 2px rgba(0,0,0,0.05);
  --s-md:    0 4px 6px -1px rgba(0,0,0,0.1);
  --s-lg:    0 10px 15px -3px rgba(0,0,0,0.1);
  --s-glow:  0 0 20px rgba(245,166,35,0.15);
  --s-card:  0 4px 12px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.03);

  /* Radius */
  --r-xs:   4px;
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast:   0.15s ease;
  --t-normal: 0.25s ease;
  --t-slow:   0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing */
  --sidebar-w: 260px;
  --topbar-h: 68px;
}

[data-theme="dark"] {
  --c-bg:           #0D1117;
  --c-bg-2:         #161B24;
  --c-bg-card:      #1A2030;
  --c-bg-sidebar:   #111622;
  --c-glass:        rgba(255,255,255,0.04);
  --c-glass-hover:  rgba(255,255,255,0.07);
  --c-text:         #E6EDF3;
  --c-text-muted:   #8B949E;
  --c-text-faint:   #484F58;
  --c-border:       rgba(255,255,255,0.08);
  --c-border-focus: rgba(245,166,35,0.5);
  --g-card:         linear-gradient(145deg, rgba(26,32,48,0.9) 0%, rgba(22,27,36,0.95) 100%);
  --s-sm:    0 1px 4px rgba(0,0,0,0.4);
  --s-md:    0 4px 16px rgba(0,0,0,0.5);
  --s-lg:    0 8px 32px rgba(0,0,0,0.6);
  --s-card:  0 2px 12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}

/* ─── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── 3. TYPOGRAPHY ────────────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 0.95rem; font-weight: 600; line-height: 1.5; }
p  { font-size: 0.9375rem; }
small { font-size: 0.8125rem; }

.text-gradient {
  background: var(--g-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted { color: var(--c-text-muted); }

/* ─── 4. LOADING SCREEN ────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0;
  background: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loading-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.spin-logo { animation: logoPulse 2s ease-in-out infinite; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(245,166,35,0.3)); }
  50%       { transform: scale(1.06); filter: drop-shadow(0 0 36px rgba(245,166,35,0.6)); }
}

.loading-bar-wrap {
  width: 180px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  overflow: hidden;
}
.loading-bar {
  height: 100%;
  background: var(--g-brand);
  border-radius: var(--r-full);
  animation: loadBar 1.8s ease-in-out infinite;
}
@keyframes loadBar {
  0%   { width: 0%;   margin-left: 0%; }
  50%  { width: 70%;  margin-left: 15%; }
  100% { width: 0%;   margin-left: 100%; }
}

.loading-text { font-size: 0.875rem; color: var(--c-text-muted); font-weight: 500; }

/* ─── 5. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-size: 0.9rem; font-weight: 600;
  transition: all var(--t-normal);
  white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.07); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,166,35,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(245,166,35,0.5); transform: translateY(-1px); }

.btn-secondary {
  background: var(--c-glass);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover { background: var(--c-glass-hover); border-color: rgba(255,255,255,0.15); }

.btn-danger { background: var(--c-danger-bg); color: var(--c-danger); border: 1px solid rgba(248,81,73,0.25); }
.btn-danger:hover { background: rgba(248,81,73,0.2); }

.btn-success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid rgba(63,185,80,0.25); }
.btn-success:hover { background: rgba(63,185,80,0.2); }

.btn-ghost { background: transparent; color: var(--c-text-muted); }
.btn-ghost:hover { color: var(--c-text); background: var(--c-glass); }

.btn-sm { padding: 6px 14px; font-size: 0.8125rem; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--r-sm);
  background: var(--c-glass);
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.btn-icon:hover { color: var(--c-text); background: var(--c-glass-hover); }

/* ─── 6. INPUTS ────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.8125rem; font-weight: 600;
  color: var(--c-text-muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.9375rem;
  transition: all var(--t-fast);
  outline: none;
}
.form-input::placeholder { color: var(--c-text-faint); }
.form-input:focus {
  border-color: var(--c-orange);
  background: rgba(245,166,35,0.04);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}
.form-input:disabled { opacity: 0.5; cursor: not-allowed; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-left: 42px; }
.input-icon-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--c-text-faint); width: 18px; height: 18px;
  pointer-events: none;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.9375rem;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: all var(--t-fast);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B949E' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-select:focus { border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(245,166,35,0.12); }
.form-select option { background: var(--c-bg-2); }

.form-error { font-size: 0.8125rem; color: var(--c-danger); margin-top: 4px; display: none; }
.form-error.visible { display: block; }

/* ─── 7. BADGES & TAGS ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-success { background: var(--c-success-bg); color: var(--c-success); }
.badge-danger  { background: var(--c-danger-bg);  color: var(--c-danger); }
.badge-warning { background: var(--c-warning-bg); color: var(--c-warning); }
.badge-info    { background: var(--c-info-bg);    color: var(--c-info); }
.badge-brand   { background: var(--g-brand); color: #fff; }
.badge-muted   { background: rgba(255,255,255,0.08); color: var(--c-text-muted); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-success { background: var(--c-success); }
.dot-danger  { background: var(--c-danger); }
.dot-warning { background: var(--c-warning); }

/* ─── 8. CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--s-card);
  transition: all var(--t-normal);
}
.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: var(--s-md); }

.card-glass {
  background: var(--c-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
}

/* ─── 9. MODALS ────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn var(--t-normal);
}
.modal-overlay.hidden { display: none; }

.modal-box {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--s-lg);
  width: 100%; max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp var(--t-slow);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px 0;
}
.modal-body { padding: 20px 28px 28px; }
.modal-footer {
  padding: 16px 28px 28px;
  display: flex; gap: 12px; justify-content: flex-end;
}

/* ─── 10. TOASTS ───────────────────────────────────────────── */
#toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 10000;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  min-width: 300px; max-width: 420px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  box-shadow: var(--s-lg);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; font-weight: 500;
  pointer-events: all;
  animation: slideIn 0.3s ease;
}
.toast.removing { animation: slideOut 0.3s ease forwards; }
.toast-success { border-left: 3px solid var(--c-success); }
.toast-error   { border-left: 3px solid var(--c-danger); }
.toast-info    { border-left: 3px solid var(--c-info); }
.toast-warning { border-left: 3px solid var(--c-warning); }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ─── 11. TABLES ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--c-border); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--c-border);
  font-size: 0.75rem; font-weight: 600;
  color: var(--c-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
  text-align: left; white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── 12. AUTH PAGES ───────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Background ambient orbs */
.auth-page::before {
  content: '';
  position: absolute; top: -30%; left: -20%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(245,197,24,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: floatOrb1 12s ease-in-out infinite;
}
.auth-page::after {
  content: '';
  position: absolute; bottom: -30%; right: -20%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(232,98,42,0.07) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
  animation: floatOrb2 15s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(5%, 8%); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-6%, -5%); }
}

/* Auth split: left brand, right form */
.auth-brand {
  flex: 1.2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  position: relative; z-index: 1;
  border-right: 1px solid var(--c-border);
  background: linear-gradient(160deg, rgba(245,197,24,0.04) 0%, rgba(232,98,42,0.04) 100%);
}

.auth-brand-logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 48px;
}
.auth-brand-logo img, .auth-brand-logo svg { filter: drop-shadow(var(--s-glow)); max-height: 48px; }
.auth-brand-logo-text {
  font-size: 2rem; font-weight: 900;
  letter-spacing: -0.04em; color: var(--c-text);
}
.auth-brand-logo-text span { 
  background: var(--g-brand);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-tagline {
  font-size: 1.5rem; font-weight: 700; text-align: center;
  color: var(--c-text); line-height: 1.35; margin-bottom: 16px;
}
.auth-brand-sub {
  text-align: center; color: var(--c-text-muted);
  font-size: 0.9375rem; max-width: 400px; line-height: 1.6;
}

.systems-preview {
  margin-top: 40px;
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 380px;
}
.system-preview-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 500;
  animation: fadeSlideIn 0.5s ease both;
}
.system-preview-item:nth-child(2) { animation-delay: 0.1s; }
.system-preview-item:nth-child(3) { animation-delay: 0.2s; }
.system-preview-item:nth-child(4) { animation-delay: 0.3s; }
.sys-preview-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.auth-form-side {
  width: 480px; min-width: 400px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 40px;
  position: relative; z-index: 1;
}

.auth-form-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  backdrop-filter: blur(20px);
  box-shadow: var(--s-lg);
  animation: slideUp 0.5s cubic-bezier(0.4,0,0.2,1);
}

.auth-form-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.auth-form-sub { font-size: 0.9rem; color: var(--c-text-muted); margin-bottom: 28px; }

.auth-form-body { display: flex; flex-direction: column; gap: 18px; }

.auth-divider {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  margin: 8px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute; top: 50%;
  width: calc(50% - 32px);
  height: 1px;
  background: var(--c-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: 20px;
}
.auth-switch a { color: var(--c-orange); font-weight: 600; }
.auth-switch a:hover { color: var(--c-amber); }

/* ─── 13. MAIN APP LAYOUT ──────────────────────────────────── */
.app-layout {
  display: flex; min-height: 100vh;
  animation: fadeIn 0.3s ease;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--c-bg-sidebar);
  border-right: 1px solid var(--c-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--t-normal);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--c-border);
}
.sidebar-logo-text { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.03em; }
.sidebar-logo-badge {
  font-size: 0.6rem; font-weight: 700;
  background: var(--g-brand);
  color: #fff; padding: 2px 7px;
  border-radius: var(--r-full);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 3px;
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.67rem; font-weight: 700;
  color: var(--c-text-faint);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 10px 8px 6px;
  margin-top: 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  font-size: 0.875rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  position: relative;
}
.nav-item:hover { background: var(--c-glass-hover); color: var(--c-text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(245,197,24,0.12), rgba(232,98,42,0.12));
  color: var(--c-orange);
  border: 1px solid rgba(245,166,35,0.15);
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 0 2px 2px 0;
  background: var(--g-brand);
  margin-left: -12px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px;
  background: var(--c-danger);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 6px;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--c-border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  cursor: pointer;
  transition: all var(--t-fast);
}
.sidebar-user:hover { background: var(--c-glass-hover); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--g-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.75rem; color: var(--c-text-muted); }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Topbar */
.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(13,17,23,0.8);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}

.topbar-title { font-size: 1.125rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* Search Bar */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  min-width: 260px;
  transition: all var(--t-fast);
}
.search-bar:focus-within {
  border-color: var(--c-border-focus);
  background: rgba(245,166,35,0.04);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}
.search-bar svg { color: var(--c-text-muted); width: 16px; height: 16px; flex-shrink: 0; }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--c-text); font-size: 0.875rem;
}
.search-bar input::placeholder { color: var(--c-text-faint); }

/* Page content */
.page-content { flex: 1; padding: 32px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { margin-bottom: 6px; }
.page-header p { color: var(--c-text-muted); font-size: 0.9375rem; }

/* ─── 14. SYSTEM CARDS GRID ────────────────────────────────── */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.system-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t-normal);
  display: flex; flex-direction: column;
  box-shadow: var(--s-card);
  position: relative;
}
.system-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,166,35,0.15), var(--s-glow);
}
.system-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(245,197,24,0.03) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-normal);
}
.system-card:hover::before { opacity: 1; }

.system-card-img {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, rgba(245,197,24,0.1), rgba(232,98,42,0.1));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.system-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.system-card-img .img-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.system-card-img .img-placeholder svg {
  width: 56px; height: 56px;
  filter: drop-shadow(0 4px 16px rgba(245,166,35,0.3));
}
.system-card-badge {
  position: absolute; top: 12px; right: 12px;
}

.system-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.system-card-name { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.system-card-desc { font-size: 0.825rem; color: var(--c-text-muted); line-height: 1.5; flex: 1; }
.system-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
}
.system-card-code { font-size: 0.75rem; color: var(--c-text-faint); font-family: monospace; }

/* ─── 15. ADMIN TABS ───────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 24px;
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 0.875rem; font-weight: 600;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: flex; align-items: center; gap: 8px;
}
.tab-btn:hover { color: var(--c-text); background: var(--c-glass); }
.tab-btn.active {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
  background: rgba(245,166,35,0.06);
}
.tab-panel { display: none; animation: fadeIn 0.25s ease; }
.tab-panel.active { display: block; }

/* ─── 16. PENDING VIEW ─────────────────────────────────────── */
.pending-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background: var(--g-bg);
}
.pending-card {
  max-width: 480px; width: 100%;
  text-align: center;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  box-shadow: var(--s-lg);
  animation: slideUp 0.5s ease;
}
.pending-icon {
  width: 80px; height: 80px;
  background: var(--c-warning-bg);
  border: 2px solid rgba(210,153,34,0.3);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  animation: pendingPulse 2s ease infinite;
}
@keyframes pendingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(210,153,34,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(210,153,34,0); }
}

/* ─── 17. STATS CARDS ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  position: relative; overflow: hidden;
  transition: all var(--t-normal);
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.stat-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  background: var(--g-brand-soft);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-value.brand { background: var(--g-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-sub { font-size: 0.8rem; color: var(--c-text-muted); margin-top: 4px; }

/* ─── 18. USER AVATAR STACK ────────────────────────────────── */
.user-row { display: flex; align-items: center; gap: 12px; }
.user-row-info { flex: 1; min-width: 0; }
.user-row-name { font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-row-email { font-size: 0.8rem; color: var(--c-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── 19. EMPTY STATE ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--c-text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin: 0 auto 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1.05rem; color: var(--c-text); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; }

/* ─── 20. CHECKBOX ─────────────────────────────────────────── */
.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--c-orange);
  cursor: pointer;
}
.checkbox-label { font-size: 0.875rem; font-weight: 500; }

/* ─── 21. SYSTEM GRID LABEL ────────────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.section-header h2 { font-size: 1.1rem; }

/* ─── 22. ANIMATIONS ───────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}

/* ─── 23. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .auth-page { flex-direction: column; }
  .auth-brand { 
    border-right: none; 
    border-bottom: 1px solid var(--c-border); 
    padding: 48px 24px;
    flex: none;
  }
  .systems-preview { display: none; } /* Hide large previews on tablet/mobile */
  .auth-form-side { 
    width: 100%; min-width: unset; 
    padding: 32px 24px; 
    flex: 1;
  }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); width: 260px; }
  .main-content { margin-left: 0; }
  .page-content { padding: 20px 16px; }
  .topbar { padding: 0 16px; }
  .systems-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .auth-form-card { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .systems-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-box { border-radius: var(--r-lg); }
  .auth-brand-logo-text { font-size: 1.5rem; }
  .auth-brand-tagline { font-size: 1.25rem; }
}

/* ─── 24. SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ─── 25. UTILITIES ────────────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font-mono { font-family: 'Courier New', monospace; }

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.12);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  left: 3px; top: 3px;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: var(--s-sm);
}
.toggle input:checked + .toggle-slider { background: var(--c-success); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* Spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider */
.divider { height: 1px; background: var(--c-border); margin: 20px 0; }

/* --- 21. CATALOG VENDY STYLE ------------------------------- */
.catalog-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.catalog-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  padding: 16px 32px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: var(--s-sm);
}

.catalog-top {
  display: flex; align-items: center; justify-content: space-between;
}
.catalog-brand { display: flex; align-items: center; gap: 12px; }
.catalog-brand img, .catalog-brand svg { max-height: 36px; }
.catalog-brand-text { font-size: 1.5rem; font-weight: 800; color: var(--c-orange); letter-spacing: -0.04em; }

.catalog-actions { display: flex; align-items: center; gap: 16px; }
.btn-theme {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-glass); color: var(--c-text-muted);
  border: 1px solid var(--c-border);
}
.btn-theme:hover { background: var(--c-glass-hover); color: var(--c-text); }

.catalog-search-wrap {
  display: flex; justify-content: center;
}
.catalog-search-bar {
  max-width: 800px; width: 100%;
  position: relative;
  display: flex; align-items: center; gap: 12px;
}
.catalog-search-bar input {
  flex: 1; padding: 14px 24px 14px 44px;
  border-radius: var(--r-full); border: 1px solid var(--c-border);
  background: var(--c-bg-2); color: var(--c-text); font-size: 0.95rem;
}
.catalog-search-bar input:focus { border-color: var(--c-orange); box-shadow: 0 0 0 3px rgba(245,166,35,0.12); }
.catalog-search-bar svg { position: absolute; left: 16px; color: var(--c-text-faint); }

.catalog-content {
  flex: 1;
  padding: 32px;
  max-width: 1400px; margin: 0 auto; width: 100%;
}

.catalog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.catalog-card {
  background: var(--c-bg-card); border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; transition: all 0.3s;
  box-shadow: var(--s-card);
}
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--s-md); border-color: var(--c-orange); }
.catalog-card-icon { height: 160px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.catalog-card-icon img { max-width: 120px; max-height: 120px; object-fit: contain; filter: drop-shadow(var(--s-sm)); }
.catalog-card-sku { font-size: 0.75rem; font-weight: 700; color: var(--c-orange); background: var(--c-warning-bg); padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; }
.catalog-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.catalog-card-desc { font-size: 0.875rem; color: var(--c-text-muted); flex: 1; margin-bottom: 20px; }
.catalog-card-btn-primary { width: 100%; background: var(--g-brand); color: #fff; padding: 12px; border-radius: var(--r-md); font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; margin-bottom: 8px; text-decoration: none; }
.catalog-card-btn-primary:hover { filter: brightness(1.1); box-shadow: var(--s-glow); color: #fff; }
.catalog-card-btn-secondary { width: 100%; background: transparent; color: var(--c-text-muted); border: 1px solid var(--c-border); padding: 12px; border-radius: var(--r-md); font-weight: 600; text-align: center; display: block; transition: 0.2s; }
.catalog-card-btn-secondary:hover { background: var(--c-glass); color: var(--c-text); border-color: var(--c-text-muted); }


/* ─────────────────────────────────────────────────────────────
   VENDY DESIGN SYSTEM — EXTENSION FOR PORTAL AMET
───────────────────────────────────────────────────────────── */

:root {
  --c-orange:       #FF7A00;
  --c-orange-dark:  #E06C00;
  --c-orange-light: #FF9E43;
}

/* Light theme adjustments */
body {
  background: var(--c-bg);
}

/* 1. Header Top Navbar */
.vendy-header {
  background: var(--c-bg-card);
  border-bottom: 1px solid var(--c-border);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.vendy-header-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vendy-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.vendy-brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--c-orange);
  letter-spacing: -0.02em;
}

/* Nav Pills */
.vendy-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vendy-pill {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.vendy-pill:hover {
  background: var(--c-glass);
  color: var(--c-text);
}
.vendy-pill.active {
  background: rgba(255, 122, 0, 0.09);
  color: var(--c-orange);
}
.vendy-pill-admin {
  border: 1px dashed rgba(255, 122, 0, 0.3);
}

/* Header Actions */
.vendy-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.vendy-theme-toggle {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
}
.vendy-theme-toggle:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.08);
}
.vendy-theme-toggle svg {
  transition: transform var(--t-fast) ease;
}
.vendy-theme-toggle:hover svg {
  transform: rotate(15deg);
}
.vendy-user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vendy-username-lbl {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--c-text);
  background: var(--c-glass);
  padding: 6px 14px;
  border-radius: 20px;
  text-transform: uppercase;
}

/* 2. Subbar */
.vendy-subbar {
  background: var(--c-bg-2);
  border-bottom: 1px solid var(--c-border);
  padding: 10px 0;
  font-size: 0.85rem;
}
.vendy-subbar-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.user-greeting {
  color: var(--c-text-muted);
}
.user-role-badge, .guest-badge {
  background: var(--c-glass);
  color: var(--c-text-muted);
  padding: 3px 10px;
  border-radius: var(--r-xs);
  font-weight: 600;
  font-size: 0.775rem;
}
.user-role-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--c-success);
}
.vendy-back-link {
  transition: transform var(--t-fast);
}
.vendy-back-link:hover {
  transform: translateX(-4px);
}

/* 3. Alerts */
.vendy-alert-container {
  max-width: 1200px;
  margin: 16px auto 0 auto;
  padding: 0 24px;
}
.vendy-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
}
.vendy-alert.warning {
  background: var(--c-warning-bg);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--c-warning);
}
.alert-text {
  flex: 1;
}

/* 4. Content Containers */
.vendy-content-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* Search Card */
.vendy-search-card {
  background: var(--c-bg-card);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: var(--s-sm);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.vendy-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.vendy-search-input-wrap .search-icon {
  position: absolute;
  left: 14px;
  color: var(--c-text-faint);
  font-size: 1.05rem;
}
.vendy-search-input-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border: none;
  background: var(--c-glass);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--c-text);
  transition: all var(--t-fast);
}
.vendy-search-input-wrap input:focus {
  background: var(--c-bg-card);
  box-shadow: 0 0 0 2px var(--c-orange);
  outline: none;
}
.vendy-filter-btn {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}
.vendy-filter-btn:hover {
  background: var(--c-glass);
  color: var(--c-text);
}

/* 5. Product Grid */
.vendy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* 6. Product Card (Vendy style) */
.vendy-card {
  background: var(--c-bg-card);
  border-radius: 20px;
  border: 1px solid var(--c-border);
  box-shadow: var(--s-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.vendy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--s-md);
  border-color: var(--c-orange);
}
.vendy-card-image-wrap {
  height: 200px;
  background: #FFFFFF; /* Mandatory white center area for products */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  user-select: none;
}
.vendy-card-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--t-normal);
}
.vendy-card:hover .vendy-card-img {
  transform: scale(1.05);
}
.vendy-card-details {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vendy-card-meta-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.vendy-card-sku {
  background: rgba(255, 122, 0, 0.08);
  color: var(--c-orange);
  font-size: 0.725rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.vendy-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--t-fast);
}
.vendy-card-title:hover {
  color: var(--c-orange);
}
.vendy-card-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vendy-card-footer {
  padding: 0 20px 20px 20px;
}

/* Orange Buttons */
.vendy-btn-orange {
  background: var(--c-orange) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(255, 122, 0, 0.2);
  transition: all var(--t-fast);
}
.vendy-btn-orange:hover {
  background: var(--c-orange-dark) !important;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
  transform: translateY(-1px);
}
.vendy-btn-orange:active {
  transform: translateY(0);
}

/* 7. Project Details Layout */
.project-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}
@media (max-width: 768px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }
}
.project-info-card, .project-action-card {
  background: var(--c-bg-card);
  border-radius: 24px;
  padding: 36px;
  border: 1px solid var(--c-border);
  box-shadow: var(--s-sm);
}
.project-logo-large {
  width: 110px;
  height: 110px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-bottom: 24px;
}
.project-logo-large img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.project-meta-top {
  margin-bottom: 12px;
}
.project-title-large {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.project-desc-large {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.65;
}

/* Access Action Box */
.access-box {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.05);
}
.access-box.success {
  background: var(--c-success-bg);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--c-success);
}
.access-box.warning {
  background: var(--c-warning-bg);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--c-warning);
}
.access-box.info {
  background: var(--c-info-bg);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--c-info);
}
.access-box-title {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.access-box-desc {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  line-height: 1.5;
}

/* Inline auth styles */
.inline-auth-form {
  margin-top: 8px;
}
.inline-auth-form input {
  border-radius: 12px;
  border: 1px solid var(--c-border);
  height: 42px;
  font-size: 0.9rem;
}
.inline-auth-form input:focus {
  border-color: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.12);
}

/* Dark mode overrides for Vendy specific white elements */
[data-theme="dark"] .vendy-card-image-wrap,
[data-theme="dark"] .project-logo-large {
  background: #E6EDF3; /* Soft grey in dark mode so white logo backgrounds blend nicely */
  border-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .vendy-pill.active {
  background: rgba(255, 122, 0, 0.15);
}

/* Centered Admin Login Styles */
.auth-page-centered {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--c-bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 122, 0, 0.04) 0%, transparent 70%);
}
.auth-form-card-centered {
  max-width: 450px;
  width: 100%;
  background: var(--c-bg-card);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--c-border);
  box-shadow: var(--s-lg);
  animation: authCardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes authCardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Circular Bordered Logout Button styling */
.vendy-logout-btn {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-danger);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
}
.vendy-logout-btn:hover {
  border-color: var(--c-danger);
  background: rgba(239, 68, 68, 0.05);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.vendy-logout-btn svg {
  transition: transform var(--t-fast) ease;
}
.vendy-logout-btn:hover svg {
  transform: translateX(1px);
}

/* Resize logo on login page */
.login-brand-logo-wrap svg {
  width: 64px !important;
  height: 64px !important;
}

/* Circular Bordered Admin Button styling */
.vendy-admin-btn {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t-fast);
  padding: 0;
  text-decoration: none;
}
.vendy-admin-btn:hover {
  border-color: var(--c-orange);
  color: var(--c-orange);
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.08);
}
.vendy-admin-btn.active {
  border-color: var(--c-orange);
  color: var(--c-orange);
  background: rgba(255, 122, 0, 0.06);
}
.vendy-admin-btn svg {
  transition: transform var(--t-fast) ease;
}
.vendy-admin-btn:hover svg {
  transform: rotate(15deg);
}






