/* ============================================================
   AETERNA — Private Wealth & Budget Manager
   Design System: Material 3 inspired, Financial / Premium / Modern
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES — Light Theme
   ============================================================ */
:root {
  --primary: #142175;
  --on-primary: #FFFFFF;
  --primary-container: #DFE0FF;
  --on-primary-container: #001452;
  --secondary: #006A66;
  --secondary-container: #6DF4EC;
  --tertiary: #2E3A8C;
  --bg: #FBF8FF;
  --surface: #FFFFFF;
  --surface-low: #F5F2FA;
  --surface-high: #EFEDF4;
  --text: #1B1B21;
  --text-secondary: #454651;
  --hint: #767682;
  --border: #C6C5D3;
  --divider: #E4E1E9;
  --error: #BA1A1A;
  --error-container: #FFDAD6;
  --on-error-container: #93000A;
  --warning: #E66000;
  --success: #006A66;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(20,33,117,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --header-height: 72px;
  --max-width: 1200px;
}

/* ============================================================
   2. DARK THEME OVERRIDES
   ============================================================ */
[data-theme="dark"] {
  --primary: #BEC2FF;
  --on-primary: #001452;
  --primary-container: #002063;
  --on-primary-container: #DFE0FF;
  --secondary: #4DD8CF;
  --secondary-container: #004F4C;
  --tertiary: #BDC2FF;
  --bg: #131318;
  --surface: #1B1B21;
  --surface-low: #1F1F26;
  --surface-high: #282830;
  --text: #E5E1EC;
  --text-secondary: #C9C5D0;
  --hint: #938F99;
  --border: #454651;
  --divider: #2C2C34;
  --error: #FFB4AB;
  --error-container: #93000A;
  --on-error-container: #FFDAD6;
  --warning: #FFB870;
  --success: #4DD8CF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.32);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.48);
}

/* ============================================================
   3. BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition), color var(--transition);
}

main {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--tertiary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* ============================================================
   4. HEADER + NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  height: var(--header-height);
  transition: background-color var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header, .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  height: var(--header-height);
  transition: background-color var(--transition), border-color var(--transition);
  box-shadow: var(--shadow-sm);
}
header nav, .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo, .site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img, .site-logo img {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
}
@media (max-width: 768px) {
  .logo img, .site-logo img {
    max-height: 36px;
    max-width: 140px;
  }
}
@media (max-width: 480px) {
  .logo img, .site-logo img {
    max-height: 32px;
    max-width: 120px;
  }
}
.logo .logo-light, .site-logo .logo-light { display: block; }
.logo .logo-dark, .site-logo .logo-dark { display: none; }
[data-theme="dark"] .logo .logo-light, [data-theme="dark"] .site-logo .logo-light { display: none; }
[data-theme="dark"] .logo .logo-dark, [data-theme="dark"] .site-logo .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  background: var(--surface-low);
  color: var(--primary);
}
.nav-links a.active {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

/* Dark Mode Toggle */
.theme-btn, #theme-toggle, #themeToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-low);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-btn:hover, #theme-toggle:hover, #themeToggle:hover {
  background: var(--primary-container);
  color: var(--primary);
}
.theme-btn .icon-sun, #theme-toggle .icon-sun, #themeToggle .icon-sun { display: none; }
.theme-btn .icon-moon, #theme-toggle .icon-moon, #themeToggle .icon-moon { display: block; }
[data-theme="dark"] .theme-btn .icon-sun, [data-theme="dark"] #theme-toggle .icon-sun, [data-theme="dark"] #themeToggle .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon, [data-theme="dark"] #theme-toggle .icon-moon, [data-theme="dark"] #themeToggle .icon-moon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

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

/* ============================================================
   5. HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  color: var(--on-primary);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
  color: var(--on-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--on-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   6. PAGE HEADER (Inner Pages)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
  color: var(--on-primary);
  padding: 56px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  color: var(--on-primary);
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   7. CONTAINER & SECTION LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}
.section-sm {
  padding: 32px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.section-title p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--hint);
}

/* ============================================================
   8. FEATURE CARDS GRID
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-container);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   9. ABOUT GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-content h2 {
  margin-bottom: 16px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
  padding: 16px;
  background: var(--surface-low);
  border-radius: var(--radius-md);
}

.about-stat .number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.about-stat .label {
  font-size: 0.8125rem;
  color: var(--hint);
  margin-top: 4px;
}

/* ============================================================
   10. LEGAL SECTION CARDS
   ============================================================ */
.legal-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin-bottom: 32px;
}

.legal-card h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}

.legal-card h3 {
  font-size: 1.125rem;
  margin: 24px 0 12px;
  color: var(--primary);
}

.legal-card p, .legal-card li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 16px;
}

.legal-card ul li {
  margin-bottom: 6px;
}

/* ============================================================
   11. STATS BAR (Admin)
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-card .stat-label {
  font-size: 0.8125rem;
  color: var(--hint);
  margin-top: 4px;
}

/* ============================================================
   12. FORM STYLES
   ============================================================ */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface-low);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-container);
  background: var(--surface);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-container);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23767682' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--hint);
  margin-top: 4px;
}

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-error.visible {
  display: block;
}

/* Radio & Checkbox */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  border-radius: 4px;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 4px var(--surface);
}

.checkbox-label input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--on-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ============================================================
   13. FILE UPLOAD
   ============================================================ */
.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-low);
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.file-upload:hover,
.file-upload.dragover {
  border-color: var(--primary);
  background: var(--primary-container);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload .upload-icon {
  font-size: 2.5rem;
  color: var(--hint);
  margin-bottom: 8px;
}

.file-upload .upload-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.file-upload .upload-hint {
  font-size: 0.8125rem;
  color: var(--hint);
  margin-top: 4px;
}

/* ============================================================
   14. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(20, 33, 117, 0.25);
}
.btn-primary:hover {
  background: var(--tertiary);
  color: var(--on-primary);
  box-shadow: 0 6px 20px rgba(20, 33, 117, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(0, 106, 102, 0.2);
}
.btn-secondary:hover {
  background: #005550;
  color: var(--on-primary);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary-container);
  border-color: var(--primary);
}

.btn-play-store {
  background: #689F38;
  color: #fff;
  box-shadow: 0 4px 14px rgba(104, 159, 56, 0.35);
}
.btn-play-store:hover {
  background: #558B2F;
  color: #fff;
  box-shadow: 0 6px 20px rgba(104, 159, 56, 0.45);
  transform: translateY(-1px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

.btn-danger {
  background: var(--error-container);
  color: var(--on-error-container);
}
.btn-danger:hover {
  background: #ffc5be;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.0625rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   15. FOOTER
   ============================================================ */
footer, .site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 48px 24px 24px;
  margin-top: auto;
}

footer .footer-inner, .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--on-primary);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
}

.footer-bottom .credit {
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   16. FEEDBACK ITEM LIST (Admin)
   ============================================================ */
.feedback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-item {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition);
}
.feedback-item:hover {
  box-shadow: var(--shadow-sm);
}

.feedback-item .feedback-content {
  flex: 1;
}
.feedback-item .feedback-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.feedback-item .feedback-content .meta {
  font-size: 0.8125rem;
  color: var(--hint);
  margin-bottom: 8px;
}
.feedback-item .feedback-content .message {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feedback-item .feedback-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ============================================================
   17. DETAIL MODAL OVERLAY (Admin)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-content .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--divider);
}
.modal-content .modal-header h2 {
  font-size: 1.25rem;
}
.modal-content .modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-low);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all var(--transition);
}
.modal-content .modal-close:hover {
  background: var(--error-container);
  color: var(--error);
}

.modal-body p {
  margin-bottom: 8px;
  font-size: 0.9375rem;
}
.modal-body .detail-label {
  font-weight: 600;
  color: var(--text);
}
.modal-body .detail-value {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* ============================================================
   18. TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  animation: slideUp 0.3s ease;
  transition: all 0.3s ease;
}

.toast-success {
  border-left: 4px solid var(--success);
}
.toast-error {
  border-left: 4px solid var(--error);
}
.toast-warning {
  border-left: 4px solid var(--warning);
}
.toast-info {
  border-left: 4px solid var(--primary);
}

.toast-fadeout {
  opacity: 0;
  transform: translateX(40px);
}

/* ============================================================
   19. LOGIN SCREEN (Admin)
   ============================================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-md);
}

.login-card .login-logo {
  text-align: center;
  margin-bottom: 8px;
}
.login-card .login-logo img {
  height: 48px;
  display: inline-block;
}

.login-card h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.login-card .login-subtitle {
  text-align: center;
  color: var(--hint);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.login-card .form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   20. FILTER CHIPS
   ============================================================ */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--surface-low);
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}

.chip:hover {
  background: var(--surface-high);
}

.chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

/* ============================================================
   21. BLOG CARD
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-card .blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-low);
}

.blog-card .blog-body {
  padding: 20px;
}

.blog-card .blog-category {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-container);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card .blog-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .blog-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--hint);
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}

/* ============================================================
   22. RATING STARS
   ============================================================ */
.star-rating {
  display: flex;
  gap: 4px;
  direction: row;
}

.star-rating .star {
  font-size: 1.75rem;
  color: var(--border);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  user-select: none;
}

.star-rating .star:hover {
  transform: scale(1.15);
}

.star-rating .star.active,
.star-rating .star.hover {
  color: #f4b400;
}

.star-display {
  display: flex;
  gap: 2px;
}
.star-display .star {
  font-size: 1rem;
  color: var(--border);
}
.star-display .star.filled {
  color: #f4b400;
}

/* ============================================================
   23. LOADING SPINNER
   ============================================================ */
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  gap: 16px;
  color: var(--hint);
  font-size: 0.9375rem;
}

/* ============================================================
   24. EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state .empty-icon {
  font-size: 4rem;
  color: var(--hint);
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 0.9375rem;
  color: var(--hint);
  max-width: 400px;
  margin: 0 auto 24px;
}

/* ============================================================
   25. IMPROVEMENTS SECTION
   ============================================================ */
.improvements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.improvement-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.improvement-item:hover {
  box-shadow: var(--shadow-sm);
}

.improvement-item .imp-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary-container);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.improvement-item .imp-content {
  flex: 1;
}
.improvement-item .imp-content h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.improvement-item .imp-content p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.improvement-item .imp-status {
  flex-shrink: 0;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.imp-status.planned {
  background: var(--primary-container);
  color: var(--primary);
}
.imp-status.in-progress {
  background: #fff3e0;
  color: var(--warning);
}
.imp-status.completed {
  background: #e0f2f1;
  color: var(--success);
}

/* ============================================================
   26. EXCEL GUIDE PAGE
   ============================================================ */
.guide-screenshot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin: 24px 0;
}
.guide-screenshot img {
  width: 100%;
  display: block;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  align-items: flex-start;
}

.step-card .step-number {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-card .step-content {
  flex: 1;
}
.step-card .step-content h4 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}
.step-card .step-content p,
.step-card .step-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-card .step-content ol,
.step-card .step-content ul {
  padding-left: 20px;
  margin-bottom: 8px;
}
.step-card .step-content li {
  margin-bottom: 4px;
}

.download-box {
  background: var(--surface-low);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}
.download-box h4 {
  margin-bottom: 8px;
}
.download-box p {
  font-size: 0.875rem;
  color: var(--hint);
  margin-bottom: 20px;
}

/* ============================================================
   27. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet & below */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-image {
    order: -1;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.25rem; }
  .page-header h1 { font-size: 1.75rem; }
  .section { padding: 48px 0; }
  .grid-2,
  .grid-1 {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 999;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 56px 16px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 1rem;
  }

  .page-header {
    padding: 40px 16px;
  }
  .page-header h1 {
    font-size: 1.5rem;
  }

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

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

  .legal-card {
    padding: 24px;
  }

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

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .about-stat {
    padding: 12px 8px;
  }
  .about-stat .number {
    font-size: 1.25rem;
  }

  .step-card {
    flex-direction: column;
    gap: 12px;
  }

  .modal-content {
    padding: 24px;
    margin: 16px;
    border-radius: var(--radius-lg);
  }

  .login-card {
    padding: 24px;
  }

  .footer-links {
    gap: 4px 16px;
  }
  .footer-links a {
    font-size: 0.8125rem;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }

  .container {
    padding: 0 16px;
  }
  .section {
    padding: 32px 0;
  }

  .benefit-row {
    flex-direction: column !important;
    text-align: left !important;
  }
  .hero-content .flex.justify-center.gap-6 {
    flex-wrap: wrap;
    justify-content: center;
  }
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .legal-card td {
    word-break: break-word;
  }
  .hero .mt-8.flex.justify-center.gap-6 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .feedback-item {
    flex-direction: column;
  }
  .feedback-item .feedback-actions {
    align-self: flex-end;
  }
  a[href^="mailto:"] {
    word-break: break-all;
    font-size: 0.85rem;
    white-space: normal;
  }
  .legal-card table td {
    font-size: 0.8rem;
    padding: 8px 6px !important;
    white-space: normal;
    word-break: break-word;
  }
  .legal-card table td:first-child {
    width: auto !important;
    min-width: 80px;
  }
  .about-grid .legal-card > div[style*="flex-direction:column"] {
    gap: 0;
  }
  .legal-card > div[style*="flex-direction:column"] > div[style*="justify-content:space-between"] {
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }
  .download-box {
    padding: 24px 16px;
  }
  .plugin-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   28. DARK MODE TOGGLE ICON TRANSITION
   ============================================================ */
#theme-toggle {
  position: relative;
}
#theme-toggle .icon-sun,
#theme-toggle .icon-moon {
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ============================================================
   29. ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.slide-up {
  animation: slideUp 0.4s ease forwards;
}

/* ============================================================
   30. UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 4px; }
.mt-2  { margin-top: 8px; }
.mt-3  { margin-top: 12px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 4px; }
.mb-2  { margin-bottom: 8px; }
.mb-3  { margin-bottom: 12px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 4px; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.w-full { width: 100%; }
.hidden { display: none; }

.rounded-sm  { border-radius: var(--radius-sm); }
.rounded-md  { border-radius: var(--radius-md); }
.rounded-lg  { border-radius: var(--radius-lg); }
.rounded-xl  { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-hint { color: var(--hint); }
.text-error { color: var(--error); }
.text-success { color: var(--success); }

.bg-surface { background: var(--surface); }
.bg-low { background: var(--surface-low); }
