:root {
  /* Executive Elite Theme Variables */
  --bg-dark: #0a0a0c;
  --bg-panel: #151518;
  --bg-hover: #1c1c20;
  
  --text-main: #f2f2f3;
  --text-muted: #a0a0a5;
  
  --primary: #D4AF37; /* Champagne Gold */
  --primary-hover: #f3c746;
  --primary-transparent: rgba(212, 175, 55, 0.15);
  
  --danger: #e74c3c;
  --success: #2ecc71;
  --warning: #f1c40f;
  
  --border: #2a2a30;
  --border-radius: 8px; /* Sharper, more executive look */
  --border-radius-lg: 12px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.2);
  --accent-gradient: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #f3c746 100%);

  /* Typography */
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Lock Screen specific styles */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0) scale(1); }
}

.lock-screen-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(-45deg, #050508, #111116, #16121d, #0d0f14);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15), transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.orb-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.1), transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

.glass-panel {
  position: relative;
  z-index: 10;
  background: rgba(15, 15, 18, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 3.5rem 3rem;
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #a0a0a5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  margin-bottom: 0.25rem;
}

.brand-subtitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 600;
  opacity: 0.8;
}

.auth-instruction {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modern-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.modern-input-group input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 1.25rem 1rem 0.5rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.modern-input-group input:focus {
  outline: none;
  background: rgba(0,0,0,0.4);
  border-color: rgba(212, 175, 55, 0.4);
}

.modern-input-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: all 0.2s ease;
  pointer-events: none;
  font-size: 1rem;
}

.modern-input-group input:focus ~ label,
.modern-input-group input:not(:placeholder-shown) ~ label {
  top: 0.5rem;
  transform: translateY(0);
  font-size: 0.75rem;
  color: var(--primary);
}

.input-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.modern-input-group input:focus ~ .input-highlight {
  width: 100%;
}

.premium-btn {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--primary);
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.premium-btn:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.premium-btn svg {
  transition: transform 0.3s ease;
}

.premium-btn:hover svg {
  transform: translateX(4px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
  justify-content: center;
  color: var(--primary);
}

.logo h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--text-main);
}

/* Vault layout styles */
.vault-body {
  background: linear-gradient(-45deg, #050508, #111116, #16121d, #0d0f14);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
}

.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  z-index: 10;
}

.glass-panel-sidebar {
  background: rgba(15, 15, 18, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-header .logo {
  justify-content: flex-start;
  margin-bottom: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}

.nav-item {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid transparent;
  margin-bottom: 6px;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  padding-left: 1.75rem;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}

.nav-item svg {
  opacity: 0.7;
}

.nav-item.active svg {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
}

.glass-top-bar {
  background: rgba(15, 15, 18, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modern-search {
  width: 300px;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-main);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.modern-search:focus {
  outline: none;
  background: rgba(0,0,0,0.4);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.vault-grid {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 1rem;
  color: var(--border);
}

.empty-state h3 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

.full-width {
  width: 100%;
}

.mt-4 {
  margin-top: 1rem;
}

.card-logo-svg {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-logo-svg svg {
  width: 100%;
  height: 100%;
}

.fallback-initial {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f5f5f0;
  color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: var(--font-sans);
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.card-favicon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-avatar img {
  object-fit: contain;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: left 0.3s ease;
    background: rgba(10, 10, 12, 0.98);
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .sidebar-overlay.open {
    display: block;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .vault-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
  .modern-search {
    width: 100%;
    min-width: 0;
  }
  .top-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
  }
  .search-container {
    flex: 1;
    min-width: 0;
  }
  .modal-content {
    max-width: 95vw;
    margin: 1rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}
