/* ==========================================================================
   pratter.casa — Nutrition & Macro Dashboard Stylesheet
   Modern Athletic Aesthetic | Glassmorphism | Fast Mobile UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --bg-dark: #07090c;
  --bg-surface: rgba(14, 18, 25, 0.75);
  --bg-surface-elevated: rgba(22, 29, 40, 0.88);
  --bg-surface-input: rgba(10, 13, 19, 0.95);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(229, 184, 105, 0.4);

  --text-primary: #f5f6f8;
  --text-secondary: #9aa4b2;
  --text-muted: #647082;

  --accent-gold: #e5b869;
  --accent-gold-soft: rgba(229, 184, 105, 0.12);

  --macro-protein: #34d399; /* Emerald Green */
  --macro-carbs: #fbbf24;   /* Warm Amber */
  --macro-fat: #f87171;     /* Soft Coral Red */
  --water-cyan: #38bdf8;    /* Water Blue */

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --blur-card: blur(20px);
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(229, 184, 105, 0.06), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(52, 211, 153, 0.05), transparent 45%);
  background-attachment: fixed;
}

/* Ambient CAD Grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Top App Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.75rem 1.4rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.brand-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-gold-soft);
  border: 1px solid var(--border-accent);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-title span {
  color: var(--accent-gold);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-bright);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--macro-protein);
  cursor: pointer;
}

.auth-badge.locked {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Date Navigator Bar */
.date-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  margin-bottom: 1.75rem;
}

.date-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.date-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.date-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
}

.today-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--accent-gold-soft);
  color: var(--accent-gold);
  border: 1px solid var(--border-accent);
}

/* Hero Metrics Section */
.hero-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.calorie-card {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.calorie-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.calorie-visual-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0;
}

.calorie-number {
  font-family: var(--font-mono);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
}

.calorie-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.calorie-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 1rem;
}

.calorie-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-gold), #f59e0b);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Macros Card */
.macros-card {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.macro-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1rem 0;
}

.macro-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.macro-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.macro-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.macro-name.protein { color: var(--macro-protein); }
.macro-name.carbs { color: var(--macro-carbs); }
.macro-name.fat { color: var(--macro-fat); }

.macro-numbers {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.macro-numbers strong {
  color: var(--text-primary);
}

.macro-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.macro-fill.protein { background: var(--macro-protein); }
.macro-fill.carbs { background: var(--macro-carbs); }
.macro-fill.fat { background: var(--macro-fat); }

/* Quick Presets / Favoriten */
.presets-section {
  margin-bottom: 2rem;
}

.presets-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  display: block;
}

.presets-scroll-shelf {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
}

.preset-chip:hover {
  background: var(--accent-gold-soft);
  border-color: var(--border-accent);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Meals Section */
.meals-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.meal-block {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition);
}

.meal-block:hover {
  border-color: var(--border-bright);
}

.meal-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.meal-category-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.meal-calories-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold);
}

.food-entries-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.food-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.food-left {
  display: flex;
  flex-direction: column;
}

.food-name {
  font-weight: 500;
  color: var(--text-primary);
}

.food-grams {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.food-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.food-macros-preview {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-remove-food {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color var(--transition);
}

.btn-remove-food:hover {
  color: #ef4444;
}

.empty-meal-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-style: italic;
}

.btn-add-food-trigger {
  width: 100%;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-add-food-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--accent-gold);
}

/* Modals & Forms */
dialog.app-modal {
  margin: auto;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  padding: 2.2rem;
  max-width: 480px;
  width: 90vw;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

dialog.app-modal::backdrop {
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(8px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.modal-title {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.input-field {
  background: var(--bg-surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: all var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px var(--accent-gold-soft);
}

.form-row-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-gold), #cf9d45);
  color: #07090c;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all var(--transition);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* Toast */
.toast-shelf {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: rgba(14, 20, 28, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   Fettabbau-Kinetik & Lifestyle Tracker (Fettabbau.xlsx System)
   ========================================================================== */
.kinetics-card {
  background: linear-gradient(135deg, rgba(22, 29, 40, 0.95), rgba(14, 18, 25, 0.85));
  backdrop-filter: var(--blur-card);
  -webkit-backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.kinetics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--macro-protein), var(--accent-gold), transparent);
}

.kinetics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kinetics-tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--macro-protein);
}

.kinetics-formula-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
}

.kinetics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  text-align: center;
}

.kinetic-metric-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.kinetic-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.kinetic-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}

.kinetic-value.deficit-positive {
  color: var(--macro-protein);
}

.kinetic-value.deficit-negative {
  color: #ef4444;
}

.kinetic-subtext {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Lifestyle & Regeneration Tracker Grid */
.lifestyle-section {
  margin-bottom: 2.2rem;
}

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

.lifestyle-card {
  background: var(--bg-surface);
  backdrop-filter: var(--blur-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
}

.lifestyle-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.lifestyle-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.lifestyle-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lifestyle-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lifestyle-input-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.lifestyle-number-input {
  width: 90px;
  background: var(--bg-surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
}

.lifestyle-number-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.lifestyle-unit {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.quick-buttons-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.btn-micro-chip {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-micro-chip:hover {
  background: var(--accent-gold-soft);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* Day Note Box */
.day-note-wrapper {
  margin-top: 1rem;
}

.day-note-input {
  width: 100%;
  background: var(--bg-surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 52px;
}

.day-note-input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

/* History Import Banner */
.history-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.history-banner-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.history-banner-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.history-banner-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.btn-import-history {
  background: var(--macro-protein);
  color: #07090c;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-import-history:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-summary-grid {
    grid-template-columns: 1fr;
  }

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

/* Withings Smart Scale Integration */
.withings-sync-btn {
  cursor: pointer;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
}

.withings-sync-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.withings-sync-btn.connected {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.btn-withings-chip {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

.btn-withings-chip:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  color: #ffffff;
}

/* ==========================================================================
   Full-Screen Security Gate / Lock Screen
   ========================================================================== */
.lock-screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(circle at 50% 25%, #151d28 0%, #07090c 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lock-card {
  background: rgba(18, 23, 32, 0.9);
  border: 1px solid rgba(229, 184, 105, 0.3);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(229, 184, 105, 0.08);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.lock-icon-badge {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(229, 184, 105, 0.1);
  border: 1px solid rgba(229, 184, 105, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 30px rgba(229, 184, 105, 0.18);
}

.lock-title {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.lock-title span {
  color: var(--accent-gold);
}

.lock-subtitle {
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.lock-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.lock-tabs {
  display: flex;
  background: rgba(10, 13, 19, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 1.5rem;
  gap: 4px;
}

.lock-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.lock-tab-btn.active {
  background: rgba(229, 184, 105, 0.18);
  color: var(--accent-gold);
  font-weight: 600;
}

.lock-input-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.lock-input-group label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.lock-input {
  width: 100%;
  background: rgba(10, 13, 19, 0.95);
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: all var(--transition);
  box-sizing: border-box;
}

.lock-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(229, 184, 105, 0.25);
}

.lock-error-msg {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 0.82rem;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  text-align: left;
}

.btn-lock-submit {
  width: 100%;
  background: linear-gradient(135deg, #e5b869, #b88a3b);
  color: #07090c;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(229, 184, 105, 0.25);
}

.btn-lock-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 184, 105, 0.4);
}

.lock-return-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color var(--transition);
}

.lock-return-link:hover {
  color: var(--text-primary);
}

/* Header Lock Button */
.btn-lock-header {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition);
}

.btn-lock-header:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}



