* { box-sizing: border-box; }
html, body, #app { height: 100%; }
html, body { margin: 0; padding: 0; background: var(--green-900); color: var(--text-100); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
button { cursor: pointer; }

h1, h2, h3 { margin: 0 0 var(--space-4); }
p { margin: 0 0 var(--space-3); }

.hidden { display: none !important; }

.app { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; overflow: hidden; }
.library { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; }

.hud { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px var(--space-6); background: var(--green-900); z-index: var(--z-hud); flex-wrap: wrap; gap: var(--space-4); }
.hud h1 { font-weight: 700; letter-spacing: 0.5px; margin: 0; display: flex; align-items: center; }
.hud .controls { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.hud button { background: var(--green-700); color: var(--text-100); border: 1px solid rgba(255,255,255,0.08); padding: 8px 12px; border-radius: var(--radius-1); box-shadow: var(--shadow-1); }
.hud button:hover { background: var(--green-800); }

/* Icon buttons for hand cursor and voice */
.icon-btn {
  font-size: 1.5rem;
  padding: 6px 10px !important;
  line-height: 1;
  transition: all 0.2s ease;
  opacity: 0.6;
}
.icon-btn:hover {
  opacity: 0.8;
  transform: scale(1.05);
}
.icon-btn.active {
  opacity: 1;
  background: var(--accent-600) !important;
  box-shadow: 0 0 12px rgba(139,216,189,0.4);
}

.filter-group { display: flex; align-items: center; gap: var(--space-2); }
.filter-group label { font-size: 0.9rem; color: var(--text-300); }
.filter-group select {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-size: 0.9rem;
}
.filter-group select:hover { background: var(--green-800); }
.filter-group input[type="text"] {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 12px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  font-size: 0.9rem;
  width: 140px;
}
.filter-group input[type="text"]:focus {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
}

.pagination-footer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-hud);
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
}

.page-btn {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 18px;
  border-radius: var(--radius-1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.page-btn:hover:not(:disabled) {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

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

.page-info {
  font-size: 0.85rem;
  color: var(--text-100);
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 8px 12px;
  border-radius: var(--radius-1);
  backdrop-filter: blur(8px);
}

.webcam-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.85); z-index: var(--z-overlay); }
#webcam-video { max-width: 90%; max-height: 90vh; width: auto; height: auto; border-radius: var(--radius-2); box-shadow: 0 0 40px rgba(0,0,0,0.5); border: 2px solid rgba(139,216,189,0.3); }
#overlay-canvas { position: absolute; max-width: 90%; max-height: 90vh; width: auto; height: auto; pointer-events: none; border-radius: var(--radius-2); }

.close-scanner-btn {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  background: rgba(139,216,189,0.9);
  color: #000;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  z-index: calc(var(--z-overlay) + 1);
}

.close-scanner-btn:hover {
  background: rgba(139,216,189,1);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

#magic-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(139,216,189,0.9), rgba(139,216,189,0.2), rgba(139,216,189,0));
  box-shadow: 0 0 24px rgba(139,216,189,0.8);
  transform: translate(-50%, -50%);
  z-index: 2147483647;
  display: none;
  top: 0;
  left: 0;
  /* Add a subtle ring to make it more visible */
  border: 2px solid rgba(139,216,189,0.6);
  /* Ensure it's always rendered on its own layer for better performance */
  will-change: transform, left, top;
  /* Add opacity transition for smoother visibility changes */
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

@keyframes bookFlipIn {
  0% {
    transform: perspective(1000px) rotateY(-90deg) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
  }
}

#book-modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(600px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

#book-modal[open] {
  animation: bookFlipIn 0.5s ease-out;
}

#book-modal::backdrop {
  background: rgba(0,0,0,0.85);
}

#book-modal article {
  background: linear-gradient(135deg, rgba(30,30,30,0.95), rgba(20,20,20,0.95));
  border: 2px solid rgba(200,164,82,0.4);
  border-radius: var(--radius-2);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  width: 100%;
  min-height: min-content;
  color: var(--text-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  box-sizing: border-box;
}

#book-modal img.book-cover {
  width: 300px;
  height: 450px;
  max-width: 100%;
  /* Scale down image on small viewports to prevent clipping */
  max-height: min(450px, 50vh);
  object-fit: cover;
  border-radius: var(--radius-2);
  border: 3px solid rgba(200,164,82,0.3);
  box-shadow:
    0 10px 40px rgba(0,0,0,0.5),
    inset 0 0 20px rgba(0,0,0,0.2);
  flex-shrink: 1;
}

#book-modal header {
  text-align: center;
}

#book-modal .book-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 var(--space-2);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#book-modal .book-author {
  font-size: 1.2rem;
  color: rgba(200,164,82,0.9);
  margin: 0;
  font-style: italic;
}

#book-modal footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

#book-modal .delete-btn {
  background: linear-gradient(135deg, #8B0000, #A52A2A);
  border: 1px solid rgba(255,255,255,0.15);
}

#book-modal .delete-btn:hover {
  background: linear-gradient(135deg, #A52A2A, #8B0000);
  box-shadow: 0 0 12px rgba(165, 42, 42, 0.4);
}

/* Utility to ensure cursor is visible on boot */
#magic-cursor { left: 50%; top: 50%; }

/* Confirm delete modal */
.confirm-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.confirm-modal[open] {
  animation: bookFlipIn 0.3s ease-out;
}

.confirm-modal::backdrop {
  background: rgba(0,0,0,0.9);
}

.confirm-content {
  background: linear-gradient(135deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
  border: 2px solid rgba(200,164,82,0.4);
  border-radius: var(--radius-2);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  max-width: 450px;
  color: var(--text-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.confirm-icon {
  font-size: 4rem;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.confirm-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0;
}

.confirm-message {
  font-size: 1rem;
  color: var(--text-300);
  margin: 0;
  line-height: 1.5;
}

.confirm-book-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(200,164,82,0.9);
  font-style: italic;
  margin: var(--space-2) 0;
}

.confirm-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.confirm-footer button {
  padding: 12px 24px;
  border-radius: var(--radius-1);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.cancel-btn {
  background: var(--green-700);
  color: var(--text-100);
}

.cancel-btn:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.confirm-delete-btn {
  background: linear-gradient(135deg, #8B0000, #A52A2A);
  color: var(--text-100);
}

.confirm-delete-btn:hover {
  background: linear-gradient(135deg, #A52A2A, #8B0000);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 42, 42, 0.5);
}

/* Hamburger Menu Button */
.menu-btn {
  font-size: 1.5rem;
  padding: 8px 16px;
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: var(--green-800);
  transform: scale(1.05);
}

/* Settings Menu Overlay */
.settings-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-settings);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.settings-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.settings-content {
  background: linear-gradient(135deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
  border: 2px solid rgba(200,164,82,0.4);
  border-radius: var(--radius-2);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  max-width: 450px;
  width: 90%;
  color: var(--text-100);
}

.settings-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 var(--space-6);
  text-align: center;
  border-bottom: 1px solid rgba(200,164,82,0.3);
  padding-bottom: var(--space-3);
}

.settings-group {
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.settings-group label {
  font-size: 0.9rem;
  color: var(--text-300);
  font-weight: 600;
}

.settings-group select {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-size: 0.95rem;
}

.settings-group select:hover {
  background: var(--green-800);
}

.settings-btn {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px 16px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.settings-btn:hover {
  background: var(--green-800);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.close-menu-btn {
  background: rgba(200,164,82,0.9);
  color: #000;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 12px 24px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  width: 100%;
  margin-top: var(--space-4);
}

.close-menu-btn:hover {
  background: rgba(200,164,82,1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,164,82,0.4);
}

/* Notification Modal */
.notification-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
}

.notification-modal[open] {
  animation: bookFlipIn 0.3s ease-out;
}

.notification-modal::backdrop {
  background: rgba(0,0,0,0.85);
}

.notification-content {
  background: linear-gradient(135deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
  border: 2px solid rgba(200,164,82,0.4);
  border-radius: var(--radius-2);
  padding: var(--space-8);
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  max-width: 400px;
  color: var(--text-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.notification-icon {
  font-size: 3rem;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.notification-message {
  font-size: 1rem;
  color: var(--text-100);
  margin: 0;
  line-height: 1.6;
}

.notification-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: var(--space-2);
}

.notification-ok-btn {
  background: rgba(200,164,82,0.9);
  color: #000;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 28px;
  border-radius: var(--radius-1);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.notification-ok-btn:hover {
  background: rgba(200,164,82,1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200,164,82,0.4);
}

/* Library Card Modal */
.library-card-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 95vh;
}

.library-card-modal[open] {
  animation: bookFlipIn 0.4s ease-out;
}

.library-card-modal::backdrop {
  background: rgba(0,0,0,0.9);
}

.library-card-content {
  background: transparent;
  padding: var(--space-6);
  position: relative;
}

.close-card-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-round);
  background: rgba(200,164,82,0.9);
  color: #000;
  border: 2px solid rgba(255,255,255,0.3);
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: all 0.2s ease;
  z-index: 100;
}

.close-card-btn:hover {
  background: rgba(200,164,82,1);
  transform: scale(1.1);
}

.library-card {
  background: linear-gradient(135deg, #f5f0e8 0%, #ebe5d9 100%);
  border: 3px solid #8b7355;
  border-radius: var(--radius-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.5);
  max-width: 600px;
  min-height: 400px;
  padding: var(--space-6);
  font-family: 'Courier New', monospace;
  color: #2c2416;
  position: relative;
}

.library-card::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(139,115,85,0.3);
  border-radius: 4px;
  pointer-events: none;
}

.card-header {
  border-bottom: 2px solid #8b7355;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: center;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c2416;
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-author {
  font-size: 1.1rem;
  color: #5c4a3a;
  margin: 0;
  font-style: italic;
}

.card-body {
  min-height: 200px;
  margin-bottom: var(--space-4);
}

.borrower-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.borrower-entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(139,115,85,0.3);
  border-radius: 4px;
  font-size: 0.95rem;
}

.borrower-name {
  font-weight: 600;
  color: #2c2416;
}

.borrower-date {
  color: #5c4a3a;
  font-size: 0.9rem;
}

.return-borrower-btn {
  background: #c44;
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.return-borrower-btn:hover {
  background: #a33;
}

.borrower-entry.returned {
  opacity: 0.6;
  background: rgba(200,200,200,0.3);
}

.borrower-entry.returned .borrower-name,
.borrower-entry.returned .borrower-date {
  color: #7a6a5a;
  text-decoration: line-through;
}

.returned-badge {
  color: #5a8a5a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 4px 12px;
  background: rgba(90,138,90,0.2);
  border-radius: 4px;
  border: 1px solid rgba(90,138,90,0.4);
}

.card-footer {
  border-top: 2px solid #8b7355;
  padding-top: var(--space-4);
}

.add-borrower-form {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.add-borrower-form input {
  flex: 1;
  min-width: 150px;
  padding: 8px 12px;
  border: 2px solid #8b7355;
  border-radius: 4px;
  background: rgba(255,255,255,0.8);
  font-family: 'Courier New', monospace;
  color: #2c2416;
  font-size: 0.95rem;
}

.add-borrower-form input:focus {
  outline: none;
  border-color: #c8a452;
  box-shadow: 0 0 8px rgba(200,164,82,0.3);
}

.add-borrower-form button {
  padding: 8px 20px;
  background: #8b7355;
  color: #f5f0e8;
  border: 2px solid #6d5a45;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.add-borrower-form button:hover {
  background: #6d5a45;
  transform: translateY(-2px);
}

.empty-card-message {
  text-align: center;
  color: #5c4a3a;
  font-style: italic;
  padding: var(--space-6);
}

/* Voice Search Button */
.voice-btn {
  font-size: 1.5rem;
  padding: 8px 16px;
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.voice-btn:hover {
  background: var(--green-800);
  transform: scale(1.05);
}

.voice-btn.listening {
  background: #c44;
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(204, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(204, 68, 68, 0);
  }
}

/* Authentication UI */
.auth-section {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-right: var(--space-4);
  border-right: 1px solid rgba(200,164,82,0.2);
}

.auth-btn {
  background: var(--green-700);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 16px;
  border-radius: var(--radius-1);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: var(--green-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.auth-btn.logout {
  background: rgba(180,60,60,0.8);
  border: 1px solid rgba(255,100,100,0.3);
}

.auth-btn.logout:hover {
  background: rgba(200,70,70,0.9);
}

.user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.user-email {
  color: rgba(200,164,82,0.9);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Sign In Welcome Modal */
.signin-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 500px;
  border-radius: var(--radius-2);
}

.signin-modal::backdrop {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
}

.signin-content {
  background: linear-gradient(135deg, rgba(30,30,30,0.98), rgba(20,20,20,0.98));
  border: 3px solid rgba(200,164,82,0.6);
  border-radius: var(--radius-2);
  padding: var(--space-8);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.8),
    0 0 40px rgba(200,164,82,0.3),
    inset 0 0 60px rgba(200,164,82,0.05);
  color: var(--text-100);
  position: relative;
  overflow: hidden;
}

.signin-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200,164,82,0.1) 0%, transparent 70%);
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(10%, 10%); opacity: 0.6; }
}

.signin-header {
  text-align: center;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.signin-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.signin-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-100);
  margin: 0 0 var(--space-2);
  text-shadow: 0 2px 8px rgba(200,164,82,0.5);
}

.signin-subtitle {
  font-size: 1.1rem;
  color: rgba(200,164,82,0.9);
  margin: 0;
  font-style: italic;
}

.signin-features {
  display: grid;
  gap: var(--space-4);
  margin: var(--space-6) 0;
  position: relative;
  z-index: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(200,164,82,0.05);
  border: 1px solid rgba(200,164,82,0.2);
  border-radius: var(--radius-1);
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(200,164,82,0.1);
  border-color: rgba(200,164,82,0.4);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-text {
  color: var(--text-100);
  font-size: 0.95rem;
}

.signin-actions {
  text-align: center;
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
}

.signin-primary-btn {
  background: linear-gradient(135deg, rgba(200,164,82,0.9), rgba(180,144,62,0.9));
  color: var(--green-900);
  border: 2px solid rgba(200,164,82,1);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-1);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(200,164,82,0.4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  justify-content: center;
}

.signin-primary-btn:hover {
  background: linear-gradient(135deg, rgba(220,184,102,1), rgba(200,164,82,1));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,164,82,0.6);
}

.signin-primary-btn:active {
  transform: translateY(0);
}

.signin-primary-btn .btn-icon {
  font-size: 1.2rem;
}

.signin-note {
  font-size: 0.8rem;
  color: rgba(200,164,82,0.7);
  margin: var(--space-4) 0 0;
  font-style: italic;
}
