/* ─── Layout Principal ─────────────────────────────────────────────────────── */

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.web-app-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.loading-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  padding: 24px;
  background: rgba(244, 239, 230, 0.96);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 12px 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(14, 165, 233, 0.14) 65%, rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid rgba(79, 70, 229, 0.18);
  position: relative;
  overflow: hidden;
}

.pwa-install-copy,
.pwa-install-actions {
  position: relative;
  z-index: 1;
}

.pwa-install-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.pwa-install-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.pwa-install-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.pwa-install-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-install-btn,
.pwa-install-dismiss {
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.pwa-install-btn {
  padding: 9px 14px;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
}

.pwa-install-dismiss {
  padding: 8px 12px;
  border: 1px solid rgba(79, 70, 229, 0.16);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.82);
}

.pwa-install-btn:hover,
.pwa-install-dismiss:hover {
  transform: translateY(-1px);
}

.pwa-install-dismiss:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Header ───────────────────────────────────────────────────────────────── */

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.panel-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}

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

.logo-fullimage {
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.auth-status {
  display: flex;
  align-items: center;
}

.auth-login-btn,
.auth-logout-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-muted);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-login-btn {
  padding: 8px 14px;
}

.auth-login-btn:hover,
.auth-logout-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.95);
}

.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
}

.auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
  display: block;
}

.auth-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0px;
}

.auth-user-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-plan-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-logout-btn {
  padding: 6px 10px;
}

.logo-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(79,70,229,0.4));
}

.logo-text {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-text strong {
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

/* ─── Tabs Navigation ──────────────────────────────────────────────────────── */

.panel-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.nav-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}

.nav-tab:hover {
  color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
}

.nav-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── Main Content ─────────────────────────────────────────────────────────── */

.web-main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page {
  display: none;
  flex: 1;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.page.active {
  display: flex;
  flex-direction: column;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
  overflow: visible;
  min-height: 0;
}

.google-login-spinner {
  margin-left: 8px;
}

.login-error {
  margin-top: var(--spacing-lg);
}
/* ─── Login Page ───────────────────────────────────────────────────────────── */

#loginPage,
#signupPage {
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
}

.login-container {
  width: 100%;
  max-width: 420px;
  padding: var(--spacing-lg);
}

.login-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.login-page {
  display: flex;
}

.login-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.login-logo {
  font-size: 48px;
  line-height: 1;
  margin-bottom: var(--spacing-lg);
}

.login-logo-image {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--spacing-lg);
}

.login-logo-fullimage {
  width: 240px;
  height: auto;
  object-fit: contain;
  margin-bottom: var(--spacing-lg);
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: var(--spacing-sm);
}

.login-brand .login-logo-image {
  width: 54px;
  height: 54px;
  margin-bottom: 0;
}

.login-brand-title {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1;
}

.login-brand-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-brand-copy {
  margin-top: var(--spacing-xs);
}

.google-login-btn {
  width: 100%;
}

.login-header h1 {
  margin-bottom: var(--spacing-sm);
}

.login-header p {
  color: var(--text-dim);
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-label {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

.form-error {
  padding: var(--spacing-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 13px;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-divider span {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  margin-bottom: var(--spacing-lg);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
}

.btn-back:hover {
  color: var(--accent);
}

/* ─── Home Page ────────────────────────────────────────────────────────────── */

.welcome-section {
  margin-bottom: var(--spacing-lg);
}

.welcome-section h1 {
  font-size: 18px;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.welcome-section p {
  font-size: 13px;
  color: var(--text-muted);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-start;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 24px;
  line-height: 1;
}

.stat-content {
  flex: 1;
  width: 100%;
}

.stat-content p:first-child {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-xs);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
}

.quick-actions {
  margin-top: var(--spacing-lg);
}

.quick-actions h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text);
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  text-decoration: none;
}

.action-card:hover {
  border-color: var(--accent);
  background: rgba(79, 70, 229, 0.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.action-icon {
  font-size: 28px;
  line-height: 1;
}

.action-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.action-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
  display: none;
}

/* ─── Library Page ─────────────────────────────────────────────────────────── */

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.library-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.library-sort {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--spacing-md);
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.library-book-cover {
  aspect-ratio: 2/3;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.book-card:hover .library-book-cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.book-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #b45309;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.96);
  transition: all var(--transition-base);
  cursor: pointer;
}

.book-card:hover .book-delete-btn,
.book-delete-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}

.book-delete-btn:hover {
  background: #fff1f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.book-meta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.book-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.book-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-badge {
  padding: 4px 8px;
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
  font-size: 10px;
  line-height: 1;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: 40px 20px;
  min-height: 300px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  line-height: 1;
  opacity: 0.3;
}

.empty-state h3 {
  margin-bottom: var(--spacing-sm);
  display: none;
}

.empty-state p {
  max-width: 300px;
  color: var(--text-muted);
}

/* ─── Profile Page ─────────────────────────────────────────────────────────── */

.profile-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 8px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg3);
  display: block;
  flex-shrink: 0;
}

.profile-user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.profile-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.plan-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.plan-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.plan-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.plan-badge.pro {
  background: rgba(79, 70, 229, 0.15);
  color: var(--accent);
}

.plan-description {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.feature-item.disabled {
  opacity: 0.5;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
}

.subscribe-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(14, 165, 233, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.subscribe-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.subscribe-header h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.subscribe-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.price-period {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.subscribe-benefits {
  list-style: none;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.subscribe-benefits li {
  margin: 0;
}

.subscribe-btn {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.subscription-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.info-label {
  color: var(--text-muted);
}

.info-value {
  font-weight: 500;
  color: var(--text);
}

.info-value.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.1);
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.cancel-subscription-btn {
  width: 100%;
  padding: 10px 16px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-subscription-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  gap: var(--spacing-md);
}

.plan-header h4 {
  margin: 0;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.feature {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: var(--text-muted);
  font-size: 14px;
}

.feature svg {
  flex-shrink: 0;
  color: var(--success);
}

.preference-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.preference-info h4 {
  margin-bottom: var(--spacing-xs);
}

.preference-info p {
  font-size: 13px;
  margin: 0;
}

.toggle-switch {
  display: flex;
  align-items: center;
  width: 50px;
  height: 28px;
  background: var(--text-dim);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  display: block;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  transition: all var(--transition-base);
}

.toggle-switch input:checked + .toggle-slider {
  left: calc(100% - 26px);
}

.toggle-switch input:checked {
  display: none;
}

.toggle-switch:has(input:checked) {
  background: var(--accent);
}

.danger-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.danger-content > div h4 {
  margin-bottom: var(--spacing-xs);
}

.danger-content > div p {
  margin: 0;
  font-size: 13px;
}

/* ─── Modal ────────────────────────────────────────────────────────────────── */

.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.error-modal-panel {
  max-width: 400px;
}

.upgrade-btn-full,
.error-confirm-btn {
  width: 100%;
}

.upgrade-footer-note {
  margin-top: var(--spacing-lg);
  font-size: 12px;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
  padding: 0;
}

.modal-close {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
}

.modal-close:hover {
  color: var(--text);
  transform: rotate(90deg);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
  justify-content: center;
}

.btn-danger {
  background-color: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
  background-color: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--bg3);
  border-color: var(--accent);
  color: var(--accent);
}

.upgrade-modal,
.error-modal {
  padding: 40px;
  text-align: center;
}

.upgrade-header {
  margin-bottom: var(--spacing-2xl);
}

.upgrade-icon,
.error-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: var(--spacing-lg);
}

.upgrade-header h2 {
  margin-bottom: var(--spacing-sm);
}

.plan-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-lg);
  background: var(--bg);
  border-radius: 0;
}

.comparison-item {
  text-align: center;
}

.comparison-item h4 {
  margin-bottom: var(--spacing-md);
}

.compare-free,
.compare-pro {
  font-size: 14px;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.compare-free {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dim);
}

.compare-pro {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}

.upgrade-price {
  margin: var(--spacing-2xl) 0;
  padding: var(--spacing-xl);
  background: var(--accent-light);
  border-radius: 0;
}

.price-label {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.price-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.price-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--spacing-sm);
}

.error-modal {
  padding: var(--spacing-2xl);
}

.error-modal h3 {
  margin: var(--spacing-lg) 0 var(--spacing-md);
}

.error-modal p {
  margin-bottom: var(--spacing-lg);
}

/* ─── Summary Reader / Mini Player ───────────────────────────────────────── */

.summary-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  width: 100%;
  background: var(--bg);
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
}

/* ─── Collapsing Book Header ─────────────────────────────────────────────── */
.book-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px max(20px, calc((100% - 1200px) / 2 + 20px));
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 200px;
}

.book-info.collapsed {
  padding: 12px max(20px, calc((100% - 1200px) / 2 + 20px));
  gap: 0;
  max-height: 64px;
}

.book-cover-wrapper {
  flex-shrink: 0;
  width: 72px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg3);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: scale(1);
}

.book-info.collapsed .book-cover-wrapper {
  width: 0;
  height: 0;
  margin-right: 0;
  opacity: 0;
  transform: scale(0.5);
}

.summary-book-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  transition: all 0.3s ease;
}

.book-info.collapsed .book-meta {
  gap: 0;
}

.book-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 0;
}

.book-info.collapsed .book-title {
  font-size: 13px;
}

.book-author {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-info.collapsed .book-author {
  font-size: 11px;
}

.book-edition {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 0;
}

.book-info.collapsed .book-edition {
  display: none;
}

/* ─── Summary Toolbar ────────────────────────────────────────────────────── */
.summary-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px max(20px, calc((100% - 1200px) / 2 + 20px));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  margin: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  flex-wrap: wrap;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  flex: 0 0 auto;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toolbar-back-btn {
  font-weight: 600;
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.18);
  background: rgba(79, 70, 229, 0.07);
}

.toolbar-back-btn:hover {
  background: rgba(79, 70, 229, 0.12);
  border-color: var(--accent);
}

#toolbarRegenerateBtn {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  padding: 0;
}

#toolbarDownloadEpubBtn,
#toolbarDownloadPdfBtn {
  width: 92px;
  min-width: 92px;
  max-width: 92px;
}

#toolbarPremiumAudioBtn {
  width: 140px;
  min-width: 140px;
  max-width: 140px;
}

.toolbar-btn:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.toolbar-btn:disabled,
.audio-btn:disabled,
.audio-rate-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none !important;
  box-shadow: none !important;
}

.text-btn {
  white-space: nowrap;
}

.premium-btn {
  font-weight: 600 !important;
}

.toolbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.summary-reader {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  flex: 1;
  position: relative;
}

.summary-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 max(20px, calc((100% - 1200px) / 2 + 20px)) 120px;
}

.summary-container::-webkit-scrollbar {
  width: 4px;
}

.summary-container::-webkit-scrollbar-track {
  background: transparent;
}

.summary-container::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 16px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.summary-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
  transform: translateY(8px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.summary-section:last-child {
  border-bottom: none;
}

.summary-section-title {
  font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.summary-section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.8;
}

.summary-section-body p {
  font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0 0 20px;
}

.summary-section-body p:last-child {
  margin-bottom: 0;
}

.summary-empty {
  padding: 36px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--text-dim);
  background: rgba(255,255,255,0.5);
}

.summary-player {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #3e3023;
  color: #f4efe6;
  padding: 12px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  z-index: 1200;
  width: min(calc(100% - 32px), 760px);
  justify-content: space-between;
  overflow: visible;
  isolation: isolate;
}

.audio-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.audio-label {
  font-size: 10px;
  color: #a39587;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audio-chapter {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-btn {
  background: transparent;
  border: none;
  color: #f4efe6;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.1s ease;
}

.audio-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.1);
}

.audio-btn:active {
  transform: scale(0.95);
}

.play-btn {
  background: var(--accent);
  color: white;
  width: 36px;
  height: 36px;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.play-btn:hover {
  background: #4338ca;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.5);
  transform: scale(1.05);
}

.play-btn:active {
  transform: scale(0.95);
}

.audio-rate-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: #f4efe6;
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: 4px;
  transition: all 0.2s ease;
}

.audio-rate-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
  transform: scale(1.05);
}

.audio-rate-btn:active {
  transform: scale(0.95);
}

.voice-btn {
  margin-left: 4px;
}

.voice-selector {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  min-width: 240px;
  background: linear-gradient(180deg, #4a3827 0%, #36271b 100%);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
  padding: 8px 0;
  max-height: min(320px, calc(100vh - 160px));
  display: flex;
  flex-direction: column;
  z-index: 1201;
  border: 1px solid rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.voice-selector-header {
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #a39587;
  letter-spacing: 0.05em;
}

.voice-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 6px 2px;
  max-height: inherit;
  overflow-y: auto;
}

.voice-list::-webkit-scrollbar {
  width: 8px;
}

.voice-list::-webkit-scrollbar-track {
  background: transparent;
}

.voice-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.voice-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.close-voices-btn {
  background: none;
  border: none;
  color: #f4efe6;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.summary-player .audio-info {
  min-width: 0;
}

.summary-player .audio-label {
  color: #a39587;
}

.summary-player .audio-chapter {
  max-width: 220px;
}

.summary-player .audio-controls {
  position: relative;
}

.summary-player .audio-btn,
.summary-player .audio-rate-btn {
  color: #f4efe6;
}

.summary-player .play-btn {
  background: var(--accent);
  color: white;
}

.summary-player .voice-selector {
  right: 0;
  bottom: calc(100% + 12px);
}

.summary-voice-item {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: none;
  color: #f4efe6;
  cursor: pointer;
  text-align: left;
  border-radius: 10px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.summary-voice-item:hover,
.summary-voice-item.is-active {
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}

.summary-voice-name {
  font-size: 13px;
  font-weight: 600;
}

.summary-voice-lang {
  font-size: 11px;
  color: #a39587;
}

.summary-voice-empty {
  padding: 12px 16px;
  color: #a39587;
  font-size: 12px;
}

@media (max-width: 480px) {
  .voice-selector {
    width: min(100vw - 24px, 320px);
    right: 0;
    left: auto;
  }
}

/* ─── Responsivo ───────────────────────────────────────────────────────────── */

/* Loading animations */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  padding: 40px 20px;
  min-height: 300px;
}

.loading-animation {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 40px;
}

.wave-bar {
  width: 6px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { height: 10px; opacity: 0.4; }
  50% { height: 36px; opacity: 1; }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .pwa-install-banner {
    display: flex;
  }

  .header-container {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }

  .web-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: var(--spacing-md);
  }

  .logo-subtitle {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .library-controls {
    flex-direction: column;
  }

  .search-input {
    max-width: 100%;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .modal-content {
    width: 95%;
    max-height: 80vh;
  }

  .summary-toolbar {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .toolbar-btn {
    flex: 1 1 auto;
    min-width: 80px;
  }

  .summary-player {
    width: calc(100% - 24px);
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .preference-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .danger-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-cover-wrapper {
    width: 56px;
    height: 78px;
  }

  .book-info.collapsed .book-cover-wrapper {
    width: 0;
    height: 0;
  }

  .book-title {
    font-size: 16px;
  }

  .book-author {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .pwa-install-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .pwa-install-actions {
    width: 100%;
    justify-content: space-between;
  }

  .page-container {
    padding: 20px 16px;
  }

  .page-content {
    padding: 16px;
  }

  .login-card {
    padding: 30px 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .plan-comparison {
    grid-template-columns: 1fr;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .modal-content {
    width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 85vh;
  }

  .summary-container {
    padding: 0 16px 112px;
  }

  .summary-book-panel {
    padding: 20px;
  }

  .summary-player {
    bottom: 12px;
    left: 12px;
    transform: none;
    width: calc(100% - 24px);
    border-radius: 20px;
    padding: 12px;
  }
}
/* =========================================
   Landing Page Styling
   ========================================= */

.landing-page {
  display: flex !important;
  flex-direction: column !important;
  gap: 60px;
  padding: 40px 20px;
  max-width: 1100px;
  width: 100%;
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
  background: var(--bg2, #fff);
  border: 1px solid var(--border, #dfcfbc);
  border-radius: 24px;
  padding: 40px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  line-height: 1.2;
  color: var(--text, #333);
  margin: 0;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  color: var(--text-dim, #666);
  line-height: 1.6;
  max-width: 500px;
}

.cta-btn {
  align-self: flex-start;
  padding: 16px 36px;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-light, rgba(79, 70, 229, 0.2));
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.steps-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
  padding: 40px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text, #333);
}

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

.step-card {
  background: var(--bg2, #fff);
  border: 1px solid var(--border, #dfcfbc);
  border-radius: 16px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--accent, #4f46e5);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text, #333);
  line-height: 1.5;
}

/* =========================================
   Global Footer Styling
   ========================================= */

.global-footer {
  margin-top: 0;
  padding: 10px 20px 8px;
  border-top: 1px solid var(--border, #dfcfbc);
  background-color: var(--bg2, #fff);
  display: flex;
  justify-content: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  max-width: 1200px;
  width: 100%;
}

.footer-logo-section img {
  height: 24px;
  opacity: 0.8;
  filter: grayscale(10%);
  transition: opacity 0.2s, filter 0.2s;
}

.footer-logo-section img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted, #555);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--accent, #4f46e5);
  text-decoration: underline;
}

.footer-copy {
  color: var(--text-dim, #888);
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  margin-top: 0;
}

@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    
  }
  
  .cta-btn {
    align-self: center;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}
/* Styles for tab icons */
.nav-tab {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.tab-icon {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.nav-tab.active .tab-icon {
  opacity: 1;
}
