/* ==========================================================================
   Sardly Web — Theme & Design System
   Mirrors lib/core/theme/app_colors.dart & lib/core/theme/app_theme.dart
   ========================================================================== */

:root {
  --bg: #0b0b0f;
  --surface: #14141b;
  --surface-high: #1d1d27;
  --surface-highest: #262633;
  --divider: #2a2a38;

  --accent: #e5b567;
  --accent-deep: #c8922f;
  --secondary: #7c5cff;

  --text-primary: #f4f4f7;
  --text-secondary: #a6a6b8;
  --text-tertiary: #6e6e82;

  --success: #3dd68c;
  --danger: #e5484d;
  --warning: #f5a524;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 20px;
  --radius-xl: 28px;

  --shadow-poster: 0 12px 28px -8px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 10px 26px -8px rgba(229, 181, 103, 0.35);
  --container-max: 1320px;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #262630 #0b0b0f;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hidden {
  display: none !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0b0f;
}
::-webkit-scrollbar-thumb {
  background: #262630;
  border-radius: 999px;
  border: 2px solid #0b0b0f;
}
::-webkit-scrollbar-thumb:hover {
  background: #e5b567;
}
::-webkit-scrollbar-corner {
  background: #0b0b0f;
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42, 42, 56, 0.8);
}

.navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-tertiary);
}

.search-wrap {
  flex: 1 1 280px;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 38px;
  background: var(--surface-high);
  border: 1px solid var(--divider);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-highest);
  box-shadow: 0 0 0 3px rgba(229, 181, 103, 0.14);
}

.search-clear {
  position: absolute;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--surface-highest);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

.search-clear:hover {
  color: var(--text-primary);
  background: var(--divider);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-m);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #1a1206;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  filter: brightness(1.06);
}

.btn-outline-gold {
  background: rgba(229, 181, 103, 0.08);
  border-color: rgba(229, 181, 103, 0.55);
  color: var(--accent);
}

.btn-outline-gold:hover {
  background: rgba(229, 181, 103, 0.16);
  border-color: var(--accent);
}

.btn-surface {
  background: var(--surface-high);
  border-color: var(--divider);
  color: var(--text-primary);
}

.btn-surface:hover {
  background: var(--surface-highest);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Search quick chips */
.suggestions-bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.suggestions-bar::-webkit-scrollbar {
  display: none;
}

.suggestions-label {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--divider);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.chip:hover,
.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(229, 181, 103, 0.1);
}

/* ==========================================================================
   Main Layout & Config Notice
   ========================================================================== */

.main-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 20px 56px;
}

.notice-banner {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: rgba(245, 165, 36, 0.1);
  border: 1px solid rgba(245, 165, 36, 0.35);
  color: var(--warning);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Hero Promo + Featured Carousel
   ========================================================================== */

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-carousel {
  position: relative;
  min-height: 330px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(229, 181, 103, 0.14), transparent 50%),
    var(--surface);
  border: 1px solid var(--divider);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-slide {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 22px;
  align-items: center;
  padding: 24px 26px 40px;
  min-height: 330px;
}

.hero-cover-frame {
  width: 185px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-high);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-poster);
  position: relative;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(229, 181, 103, 0.15);
  border: 1px solid rgba(229, 181, 103, 0.38);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
}

.hero-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-author {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(244, 244, 247, 0.25);
  transition: width 0.22s ease, background-color 0.22s ease;
}

.hero-dot.active {
  width: 24px;
  background: var(--accent);
}

.app-promo-card {
  border-radius: var(--radius-xl);
  padding: 26px;
  background: linear-gradient(155deg, rgba(124, 92, 255, 0.18), rgba(20, 20, 27, 0.96) 48%, rgba(229, 181, 103, 0.12));
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.promo-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.promo-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.promo-title {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
}

.promo-sub {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.promo-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.promo-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promo-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(42, 42, 56, 0.8);
  border-radius: 10px;
  padding: 8px 10px;
}

.promo-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.promo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section Headers & Book Shelves
   ========================================================================== */

.shelf-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accent-rule {
  width: 3.5px;
  height: 19px;
  border-radius: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.scroll-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--surface-high);
}

.see-all-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
}

.see-all-btn:hover {
  background: rgba(229, 181, 103, 0.1);
}

.shelf-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shelf-row::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   Book Card & SardlyBadge (Mirrors book_card.dart & book_cover.dart)
   ========================================================================== */

.book-card {
  flex: 0 0 144px;
  width: 144px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: right;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  transition: transform 0.18s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-card.grid-card {
  flex: initial;
  width: 100%;
}

.cover-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-high);
  box-shadow: var(--shadow-poster);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease;
}

.cover-img.contain {
  object-fit: contain;
}

.cover-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--surface-high) 25%,
    var(--surface-highest) 50%,
    var(--surface-high) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.cover-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
}

.cover-fallback-initial {
  font-size: 38px;
  font-weight: 800;
  color: rgba(229, 181, 103, 0.88);
  line-height: 1.1;
}

.cover-fallback-title {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-tertiary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SardlyBadge: solid opaque gold bar across bottom 13% of cover */
.sardly-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13%;
  min-height: 20px;
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-title {
  margin: 9px 0 2px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Continue Reading Card (16:10 wide card matching book_card.dart) */
.continue-card {
  flex: 0 0 210px;
  width: 210px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: right;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.continue-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-high);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.continue-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  gap: 6px;
}

.continue-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.progress-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
}

/* ==========================================================================
   Books Grid (Search & Section View)
   ========================================================================== */

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 20px 14px;
}

.pagination-bar {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.pagination-info {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ==========================================================================
   States (Skeleton, Error, Empty)
   ========================================================================== */

.skeleton-card {
  flex: 0 0 144px;
  width: 144px;
}

.skeleton-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-m);
  background: var(--surface-high);
  position: relative;
  overflow: hidden;
}

.skeleton-line {
  height: 12px;
  margin-top: 10px;
  border-radius: 6px;
  background: var(--surface-high);
}

.skeleton-line.short {
  width: 65%;
  height: 10px;
  margin-top: 6px;
}

.state-box {
  margin: 40px auto;
  max-width: 460px;
  padding: 32px 24px;
  text-align: center;
  border-radius: var(--radius-l);
  background: var(--surface);
  border: 1px solid var(--divider);
}

.state-box h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.state-box p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Book Detail Modal (Mirrors book_detail_screen.dart)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 5, 8, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #262630 #0b0b0f;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.detail-header {
  position: relative;
  padding: 46px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
}

.detail-blur-bg {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(36px) brightness(0.32);
  transform: scale(1.2);
  z-index: 0;
}

.detail-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0.3), var(--bg));
  z-index: 1;
}

.detail-top-actions {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 11, 15, 0.65);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.circle-btn:hover {
  background: var(--surface-high);
  border-color: var(--accent);
}

.detail-poster {
  position: relative;
  z-index: 2;
  width: 162px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--surface-high);
  box-shadow: var(--shadow-poster);
  margin-bottom: 16px;
}

.detail-title {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.3;
}

.detail-author {
  position: relative;
  z-index: 2;
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-body {
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-high);
  border: 1px solid var(--divider);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.meta-chip.accent {
  color: var(--accent);
  border-color: rgba(229, 181, 103, 0.4);
}

.detail-cta-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-cta-stack .btn {
  padding: 13px 16px;
  width: 100%;
}

.detail-section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.detail-description {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.detail-description.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-link-btn {
  border: none;
  background: transparent;
  padding: 4px 0;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
}

.details-table {
  border-radius: var(--radius-m);
  background: var(--surface);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--divider);
}

.details-row:last-child {
  border-bottom: none;
}

.details-key {
  color: var(--text-tertiary);
}

.details-val {
  color: var(--text-primary);
  font-weight: 700;
  text-align: left;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--surface);
  padding: 32px 20px;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-blurb {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  white-space: pre-line;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-link {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-copy {
  max-width: var(--container-max);
  margin: 22px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

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

@media (max-width: 680px) {
  .navbar-inner {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-actions {
    order: 2;
    margin-right: auto;
  }

  .search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .btn-download-text-short {
    display: none;
  }

  .main-container {
    padding: 14px 14px 44px;
  }

  .hero-slide {
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 18px 16px 38px;
    min-height: 240px;
  }

  .hero-cover-frame {
    width: 120px;
  }

  .hero-title {
    font-size: 18px;
  }

  .promo-features {
    grid-template-columns: 1fr;
  }

  .detail-cta-stack {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .scroll-btn {
    display: none;
  }
}
