
/* base */
/**
 * Source CSS File
 * This file is compiled into public/style.css by the build script.
 * DO NOT edit public/style.css directly!
 * Make all changes to this file and component CSS files in src/components/.
 */

/* Base styles and CSS variables */

/*
 * BREAKPOINT SYSTEM
 * 
 * The build script automatically replaces CSS variables in media queries with actual pixel values
 * for browser compatibility. This allows us to use var(--breakpoint-*) in media queries while
 * maintaining a single source of truth for breakpoint definitions.
 * 
 * Usage in CSS files:
 * @media (min-width: 600px) { ... }  →  @media (min-width: 600px) { ... }
 * @media (min-width: 768px) { ... }  →  @media (min-width: 768px) { ... }
 * @media (min-width: 1024px) { ... }  →  @media (min-width: 1024px) { ... }
 * @media (min-width: 1440px) { ... }  →  @media (min-width: 1440px) { ... }
 * 
 * This ensures:
 * - Single source of truth for breakpoints (defined here in base.css)
 * - Browser compatibility (actual pixel values in compiled CSS)
 * - Easy maintenance (change breakpoints in one place)
 * - Consistent responsive design across all components
 */

/* Body scroll lock for modals */
body.scroll-locked {
  overflow: hidden;
}

:root {
  --color-dark: #0a0d15;
  --color-light: #d4cfc6;
  --color-accent: #5543db;
  --color-success: #2ecc71;
  --color-success-bg: rgba(46, 204, 113, 0.15);
  --color-warning: #e67e22;
  --color-warning-bg: rgba(231, 76, 60, 0.15);
  --color-error: #e74c3c;
  --color-error-bg: rgba(231, 76, 60, 0.15);
  --color-danger: #e74c3c;
  --color-surface: #1a1d25;
  --color-syncing-bg: rgba(85, 67, 219, 0.15);
  
  --text-secondary: #989898;

  --spacing-base: 8px;
  --spacing-double: 16px;
  --spacing-triple: 24px;
  --spacing-quad: 32px;

  /* Font sizes */
  --font-size-xs: 0.8rem; /* 12px */
  --font-size-sm: 0.9rem; /* 14px */
  --font-size-md: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.3rem; /* 20.8px */
  --font-size-3xl: 1.5rem; /* 24px */
  --font-size-4xl: 1.75rem; /* 28px */
  --font-size-5xl: 2rem; /* 32px */
  --font-size-6xl: 2.5rem; /* 40px */
  --font-size-7xl: 3rem; /* 48px */
  --font-size-8xl: 3.5rem; /* 56px */
  --font-size-9xl: 4rem; /* 64px */
  --font-size-10xl: 4.5rem; /* 72px */
  --font-size-11xl: 5rem; /* 80px */
  --font-size-12xl: 5.5rem; /* 88px */
  --font-size-13xl: 6rem; /* 96px */
  --font-size-14xl: 6.5rem; /* 104px */
  --font-size-15xl: 7rem; /* 112px */
  --font-size-16xl: 7.5rem; /* 120px */
  --font-size-17xl: 8rem; /* 128px */
  --font-size-18xl: 8.5rem; /* 136px */
  --font-size-19xl: 9rem; /* 144px */

  /* Breakpoints - Used in media queries and replaced by build script */
  --breakpoint-sm: 600px; /* Small tablets and up */
  --breakpoint-md: 768px; /* Tablets and up */
  --breakpoint-lg: 1024px; /* Laptops/desktops and up */
  --breakpoint-xl: 1440px; /* Large desktops and up */

  --transition-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --bottom-menu-height: 64px;
  --scrollbar-width: 0px;

  /* Status icons */
  --icon-error: "⚠";
  --icon-success: "✓";
  --icon-info: "ℹ";
  --icon-selection: "⏸";
  --icon-syncing: "⟳";
  --icon-offline: "⚠";
  --icon-static: "▣";

  /* Durations tuned for UI-scale sliding (distance = screen edge to settled position) */
  --motion-duration-enter: 280ms;
  --motion-duration-exit: 220ms;
  --motion-duration-cross: 260ms; /* top->bottom handoff */

  /* Easing (Material-ish set): standard, decelerate (enter), accelerate (exit) */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --ease-accel: cubic-bezier(0.4, 0, 1, 1);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Prevent content shift when scrollbar appears/disappears */
html {
  background-color: var(--color-dark);
  overflow-y: scroll;
  overscroll-behavior: none; /* Prevent overscroll/rubber band effect on mobile */
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

body {
  background-color: var(--color-dark);
  color: var(--color-light);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-right: var(--scrollbar-width);
  overscroll-behavior: none; /* Prevent overscroll/rubber band effect on mobile */
  -webkit-overflow-scrolling: touch;
  height: 100%;
  position: relative;
  margin: 0;
}

/* When bottom sheet is active */
body.bottom-menu-active {
  overflow: hidden;
  /* Add padding to prevent content shift */
  padding-right: var(--scrollbar-width);
}

/* Main content area */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-double);
}

/* buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-double) var(--spacing-double);
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.button__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.button--primary {
  background: var(--color-accent);
  color: var(--color-light);
  box-shadow: 0 4px 16px rgba(85, 67, 219, 0.4);
}

.button--primary:hover {
  background: #6b5bff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(85, 67, 219, 0.5);
}

@media (min-width: 600px) {
  .button--primary {
    padding: 12px 24px;
    font-size: var(--font-size-lg);
  }
}

@media (min-width: 1440px) {
  .button--primary {
    padding: 14px 28px;
    font-size: var(--font-size-xl);
  }
}

/*button--discreet*/
.button--discreet {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  padding: var(--spacing-base) var(--spacing-double);
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.button--discreet:hover {
  color: var(--color-light);
  background: rgba(255, 255, 255, 0.05);
}

.button--discreet.active {
  color: var(--color-accent);
  background: rgba(85, 67, 219, 0.1);
}

@media (min-width: 600px) {
  .legal-nav__links {
    gap: var(--spacing-triple);
  }

  .button--discreet {
    font-size: var(--font-size-md);
    padding: var(--spacing-double) var(--spacing-triple);
  }
}
/*end button--discreet*/

/* close button */
.close-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-light);
}

.close-button svg {
  width: 20px;
  height: 20px;
}

.close-button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
/*end close button*/

/* end buttons*/

/* Error box styles */
.error-box {
  margin: var(--spacing-triple) 0 0 0;
  background: #c0392b;
  color: #fff;
  padding: var(--spacing-double);
  border-radius: 8px;
  text-align: center;
  font-size: var(--font-size-md);
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-double);
}

.error-message {
  margin: 0;
  line-height: 1.4;
}

.retry-button {
  margin-top: var(--spacing-base);
  padding: 8px 24px;
  font-size: var(--font-size-md);
  border-radius: 6px;
  background: #222;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  justify-content: center;
}

.retry-button:hover:not(:disabled) {
  background: #333;
}

.retry-button:active:not(:disabled) {
  transform: scale(0.98);
}

.retry-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.retry-spinner .loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-double);
  padding: 12px 0;
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-header::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-accent);
  opacity: 0.3;
}


/* landing */
/* Landing Page Component */
.landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
}

/* landing-header */
.landing-header {
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center */
    min-height: calc(72px + env(safe-area-inset-top, 0px));  /* ensures vertical centering with safe area */
    padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-base) var(--spacing-base) var(--spacing-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-header__content {
    display: flex;
    justify-content: center;  /* keep content centered */
    align-items: center;
    width: 100%;
}

.landing-header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
}

.landing-header__logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: block; /* prevents inline gap issues */
}

@media (min-width: 600px) {
    .landing-header {
        min-height: calc(80px + env(safe-area-inset-top, 0px));
        padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-double) var(--spacing-base) var(--spacing-double);
    }
    
    .landing-header__logo-image {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 1024px) {
    .landing-header {
        min-height: calc(88px + env(safe-area-inset-top, 0px));
        padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-triple) var(--spacing-base) var(--spacing-triple);
    }
    
    .landing-header__logo-image {
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 1440px) {
    .landing-header {
        min-height: calc(96px + env(safe-area-inset-top, 0px));
        padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-quad) var(--spacing-base) var(--spacing-quad);
    }
    
    .landing-header__logo-image {
        width: 48px;
        height: 48px;
    }
}
/*end landing-header*/

/* landing-hero */
.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-double) var(--spacing-base);
}

.landing-hero__content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-double);
    margin: auto; /* Ensure perfect centering */
}

.landing-hero__logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-hero__logo-image {
    width: 75px;
    height: 75px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(85, 67, 219, 0.5);
}

.landing-hero__title {
    font-size: var(--font-size-8xl);
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    letter-spacing: -0.02em;
}

.landing-hero__description {
    font-size: var(--font-size-md);
    color: var(--color-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-double);
    max-width: 215px;
}

.landing-hero__description-mini {
    font-size: var(--font-size-md);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--spacing-double);
    max-width: 215px;
}

.landing-hero__button {
  width: 160px;
}

@media (min-width: 600px) {
    .landing-hero {
        padding: var(--spacing-triple) var(--spacing-double);
    }
    
    .landing-hero__logo-image {
        width: 85px;
        height: 85px;
    }
    
    .landing-hero__title {
        font-size: var(--font-size-10xl);
    }
    
    .landing-hero__description {
        font-size: var(--font-size-lg);
        max-width: 600px;
    }
    
    .landing-hero__description-mini {
        max-width: 600px;
    }

    .landing-hero__button {
      width: 150px;
    }
    
}

@media (min-width: 1024px) {
    .landing-hero {
        padding: var(--spacing-quad) var(--spacing-triple);
    }
    
    .landing-hero__title {
        font-size: var(--font-size-12xl);
    }
    
    .landing-hero__description {
        font-size: var(--font-size-xl);
    }

    .landing-hero__button {
      width: 170px;
    }
    
}

@media (min-width: 1440px) {
    .landing-hero {
        padding: var(--spacing-quad) var(--spacing-quad);
    }
    
    .landing-hero__title {
        font-size: var(--font-size-14xl);
    }
    
    .landing-hero__description {
        font-size: var(--font-size-2xl);
    }

}

/* End Landing Page Component */

/* auth */
/* Authentication Component */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1a2e 100%);
  padding: var(--spacing-base);
}

.auth__content {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth__header {
  margin-bottom: var(--spacing-double);
}

.auth__logo {
  margin-bottom: var(--spacing-base);
}

.auth__logo-image {
  width: 75px;
  height: 75px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(85, 67, 219, 0.5);
}

.auth__title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: var(--spacing-double);
  letter-spacing: -0.02em;
}

.auth__forms {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: var(--spacing-double);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth__form {
  width: 100%;
}

.auth__form-title {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: 4px;
}

.auth__form-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-light);
  opacity: 0.7;
  margin-bottom: var(--spacing-double);
}

.auth__form-group {
  margin-bottom: var(--spacing-double);
  text-align: left;
}

.auth__form-group--consent {
  margin-bottom: var(--spacing-double);
}

.auth__label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-light);
  margin-bottom: 8px;
}

.auth__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-light);
  font-size: var(--font-size-md);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.auth__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.08);
}

.auth__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.auth__consent {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: var(--color-light);
  cursor: pointer;
  padding-left: var(--spacing-base);
}

.auth__checkbox {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
}

.auth__consent-text {
  line-height: 1.4;
}

.auth__switch {
  text-align: center;
  margin-top: var(--spacing-double);
  font-size: var(--font-size-sm);
  color: var(--color-light);
  opacity: 0.8;
}

.auth__switch-link {
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  margin-left: 4px;
  font-size: var(--font-size-sm);
}

.auth__switch-link:hover {
  opacity: 0.8;
}

.auth__link {
  background: none;
  border: none;
  color: var(--color-accent);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-size: var(--font-size-sm);
}

.auth__link:hover {
  color: #6b5bff;
}

.auth-error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: var(--spacing-base);
  font-size: var(--font-size-sm);
  text-align: center;
}

/* Tablet and up */
@media (min-width: 600px) {
  .auth {
    padding: var(--spacing-double);
  }

  .auth__content {
    max-width: 450px;
  }

  .auth__title {
    font-size: var(--font-size-6xl);
  }

  .auth__forms {
    padding: 2.5rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .auth__content {
    max-width: 500px;
  }

  .auth__title {
    font-size: var(--font-size-7xl);
  }

  .auth__form-title {
    font-size: var(--font-size-4xl);
  }
}


/* legal-modal */
/* Legal Modal Component */

/*legal modal*/
.legal-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* iOS PWA safe area insets */
    padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-base) calc(var(--spacing-base) + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: opacity var(--motion-duration-enter) var(--ease-standard);
    pointer-events: none;
}

.legal-modal__overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal__panel {
    background: var(--color-dark);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    /* iOS PWA safe area insets for status bar and home indicator */
    height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2 * var(--spacing-base));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 207, 198, 0.1);
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform var(--motion-duration-enter) var(--ease-decel);
    margin: 0;
    padding: var(--spacing-base);
}

.legal-modal__panel.active {
    transform: translateY(0);
}

.legal-modal__header {
    height: 56px;
    padding: 0 var(--spacing-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    flex-shrink: 0;
}

.legal-modal__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-light);
    margin: 0 10px;
}

.legal-modal__content {
    flex: 1;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.legal-modal__content-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-base);
    color: var(--color-light);
    line-height: 1.6;
}

.legal-modal__content-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-base);
    color: var(--color-light);
    line-height: 1.6;
}

@media (min-width: 600px) {
    .legal-modal__panel {
        max-width: 700px;
        height: calc(100vh - 2 * var(--spacing-double));
        margin-top: var(--spacing-double);
    }
    
    .legal-modal__content-area {
        padding: var(--spacing-double);
    }
    
    .legal-modal__content-container {
        padding: var(--spacing-double);
    }
}

@media (min-width: 768px) {
    .legal-modal__panel {
        max-width: 800px;
        height: calc(100vh - 2 * var(--spacing-triple));
        margin-top: var(--spacing-triple);
        padding: var(--spacing-double);
    }
    
    .legal-modal__header {
        height: 64px;
        padding: 0 var(--spacing-double);
    }
    
    .legal-modal__title {
        font-size: var(--font-size-xl);
    }
    
    .legal-modal__content-area {
        padding: var(--spacing-double);
    }
    
    .legal-modal__content-container {
        padding: var(--spacing-double);
    }
}

@media (min-width: 1024px) {
    .legal-modal__panel {
        max-width: 900px;
        height: calc(100vh - 2 * var(--spacing-quad));
        margin-top: var(--spacing-quad);
    }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .legal-modal__overlay,
  .legal-modal__panel {
      transition-duration: 1ms !important;
  }
}
/*end legal modal*/

/* legal-nav */
.legal-nav {
    margin-bottom: var(--spacing-double);
    padding-bottom: var(--spacing-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-nav__links {
    display: flex;
    gap: var(--spacing-double);
    justify-content: center;
}

@media (min-width: 600px) {
    .legal-nav__links {
        gap: var(--spacing-triple);
    }
}
/*end legal-nav*/

/* legal-content */
.legal-content h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    letter-spacing: -0.02em;
}

.legal-content .last-updated {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-double);
    padding-bottom: var(--spacing-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h2 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    margin-top: var(--spacing-double);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    margin-top: var(--spacing-base);
}

.legal-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-base);
}

.legal-content ul {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-double);
}

.legal-content li {
    margin-bottom: var(--spacing-base);
}

.legal-content strong {
    color: var(--color-light);
    font-weight: 600;
}
/*end legal-content*/

/* button overrides */
.button--discreet.legal__content {
  display: inline;
  align-items: unset; 
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  color: var(--color-accent);
  width: auto;
  height: auto;
  cursor: pointer;
}

.button--discreet.legal__content:hover {
  color: var(--color-light);
  background: none;
}

.button--discreet.legal__content:focus {
  background: none;
}

.button--discreet.legal__content:active {
  color: var(--color-accent);
  background: none;
}
/*end button overrides*/

/* End Legal Modal Component */

/* feed-status */
/* Feed Status Component - Overlay for all status messages */

.feed-status {
    position: fixed;
    /* Position below header with iOS safe area */
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    z-index: 99; /* Below header but above content */
    background: var(--color-dark);

    /* State-based visibility */
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* State: showing (transitioning in) */
.feed-status--showing {
    opacity: 1;
    transform: translateY(0);
    pointer-events: none;
}

/* State: visible (fully shown) */
.feed-status--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* State: hiding (transitioning out) */
.feed-status--hiding {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* Dark background wrapper */
.feed-status__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-dark);
    z-index: -1;
}

.feed-status__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-base); /* Mobile-first: smaller gap */
    padding: var(--spacing-base); /* Mobile-first: smaller padding */
    min-height: 48px; /* Reduced height */
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feed-status__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feed-status__text {
    font-size: var(--font-size-xs); /* Mobile-first: smaller font */
    font-weight: 500;
    color: var(--color-light);
}

.feed-status--type-online .feed-status__background {
    background: var(--color-success-bg);
}

.feed-status--type-online .feed-status__icon::before {
    content: var(--icon-success);
    color: var(--color-success);
    font-size: var(--font-size-md);
}

.feed-status--type-offline .feed-status__background {
    background: var(--color-error-bg);
}

.feed-status--type-offline .feed-status__icon::before {
    content: var(--icon-error);
    color: var(--color-error);
    font-size: var(--font-size-md);
}

.feed-status--type-syncing .feed-status__background {
    background: var(--color-syncing-bg);
}

.feed-status--type-syncing .feed-status__icon::before {
    content: var(--icon-syncing);
    color: var(--color-accent);
    font-size: var(--font-size-md);
}

.feed-status--type-synced .feed-status__background {
    background: var(--color-success-bg);
}

.feed-status--type-synced .feed-status__icon::before {
    content: var(--icon-success);
    color: var(--color-success);
    font-size: var(--font-size-md);
}

.feed-status--type-error .feed-status__background {
    background: var(--color-error-bg);
}

.feed-status--type-error .feed-status__icon::before {
    content: var(--icon-error);
    color: var(--color-error);
    font-size: var(--font-size-md);
}

/* Desktop optimizations for feed status */
@media (min-width: 601px) {
    
    .feed-status__content {
        padding: var(--spacing-base) var(--spacing-double); /* Desktop: larger padding */
        gap: var(--spacing-double); /* Desktop: larger gap */
    }
    
    .feed-status__text {
        font-size: var(--font-size-sm); /* Desktop: larger font */
    }
}


/* article-list */
/* ========================================
   ARTICLE LIST COMPONENT - MOBILE FIRST
   ======================================== */

/* ========================================
   BASE STYLES (MOBILE FIRST)
   ======================================== */

/* Article list container */
.article-list__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
  /* Add top padding to account for fixed header with iOS safe area */
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
  /* Prevent scroll chaining (page jumping) when swipe ends */
  overscroll-behavior: contain;
}

/* Article list sections */
.article-list__section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

/* Article item container */
.article-list__item-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-dark);
  margin-bottom: 2px;
}

/* Article icon */
.article-list__icon {
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s var(--transition-spring), border-color 0.2s ease,
    background-color 0.2s ease;
  border: 2px solid transparent;
  color: var(--color-light);
  font-size: var(--font-size-md);
}

/* Remove background when favicon is present */
.article-list__icon:has(.feed-favicon) {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}


.article-list__icon:hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.article-list__icon:has(.feed-favicon):hover {
  transform: scale(1.05);
  border-color: var(--color-accent);
}

.article-list__icon:active {
  transform: scale(0.95);
}

/* Article item */
.article-list__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  touch-action: pan-y; /* Allow vertical scrolling, block horizontal gestures from triggering scroll */
  transform-origin: center;
  user-select: none;
  -webkit-touch-callout: none;
  z-index: 2;
  transition: background-color 0.2s ease,
    transform 0.18s cubic-bezier(0.4, 0.8, 0.5, 1.1);
  background-color: var(--color-dark);
  will-change: transform;
}

/* Block all scroll during active swipe */
.article-list__item--swiping {
  touch-action: none;
}

.article-list__item:not(.article-list__item--swiping):hover {
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}


/* Swipe states */
.article-list__item--swiping {
  transition: none;
  background-color: var(--color-dark);
}

/* CSS compatibility: support both BEM and legacy classes while migrating */
.article-list__item--selected .article-list__icon,
.article-list__item.selected .article-list__icon {
  background-color: rgba(85, 67, 219, 0.2);
  border-color: var(--color-accent);
  border-width: 2px;
}

.article-list__item--selected .article-list__icon:has(.feed-favicon),
.article-list__item.selected .article-list__icon:has(.feed-favicon) {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-light);
  border-width: 2px;
  box-shadow: 0 0 0 1.4px var(--color-success);
}

.article-list__item--selected,
.article-list__item.selected {
  background-color: rgba(85, 67, 219, 0.15);
  border: 1px solid rgba(85, 67, 219, 0.3);
}

.article-list__item--selected:not(.article-list__item--swiping):hover,
.article-list__item.selected:not(.article-list__item--swiping):hover {
  background-color: rgba(85, 67, 219, 0.12);
  box-shadow: 0 2px 8px rgba(85, 67, 219, 0.2);
  transform: translateY(-1px);
}

.article-list__item--swiping,
.article-list__item.swiping {
  transition: none;
  background-color: var(--color-dark);
}

/* Swipe action background */
.article-list__swipe-action-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-surface);
  display: flex;
  align-items: center;
  padding-left: 10px; /* Matches SWIPE_TOGGLE_X - icon width 24 30-24 = 6 */
  z-index: 1;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  pointer-events: none;
  will-change: opacity;
}

/* Show background during swipe */
.article-list__item.swipe-right + .article-list__swipe-action-bg,
.article-list__item--swiping + .article-list__swipe-action-bg {
  opacity: 1;
}

/* Hide swipe background when item is selected */
.article-list__item.selected + .article-list__swipe-action-bg,
.article-list__item--selected + .article-list__swipe-action-bg {
  opacity: 0;
}

/* Swipe action icon */
.swipe-action-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--color-success);
  transform: translateX(-5px);
  transition: opacity 0.15s ease-out, transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  will-change: transform, opacity;
}

.article-list__item.swipe-right + .article-list__swipe-action-bg .swipe-action-icon,
.article-list__item--swiping + .article-list__swipe-action-bg .swipe-action-icon {
  opacity: 1;
  transform: translateX(0);
}

.article-list__item.swipe-threshold-met + .article-list__swipe-action-bg .swipe-action-icon,
.article-list__item--swiping.swipe-threshold-met + .article-list__swipe-action-bg .swipe-action-icon {
  transform: scale(1.1);
}

.article-list__item--unread + .article-list__swipe-action-bg .swipe-action-icon::before {
  content: "✓";
  font-size: var(--font-size-3xl);
}

.article-list__item:not(.article-list__item--unread) + .article-list__swipe-action-bg .swipe-action-icon::before {
  content: "○";
  font-size: var(--font-size-3xl);
  color: var(--color-light);
}

.article-list__item.returning,
.article-list__item--swiping.returning {
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  background-color: var(--color-dark);
}

.article-list__item.action-complete,
.article-list__item--swiping.action-complete {
  transform: translateX(0) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1);
  background-color: var(--color-dark);
}


/* Feed favicon */
.feed-favicon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Article content */
.article-list__content {
  flex-grow: 1;
  min-width: 0; /* Enables text truncation */
}

.article-list__item h2 {
  font-size: var(--font-size-md);
  margin-bottom: 0;
  color: var(--color-light);
  line-height: 1.4;
}

.article-list__item:not(.article-list__item--unread) h2 {
  opacity: 0.7;
}

.article-list__meta {
  font-size: var(--font-size-xs);
  opacity: 0.5;
  display: flex;
  gap: var(--spacing-base);
  align-items: center;
}

.article-list__separator {
  font-size: var(--font-size-xs);
}

/* Global heading styles */
h1 {
  font-size: var(--font-size-xl);
}

/* ========================================
   WELCOME SECTION (MOBILE FIRST)
   ======================================== */

.article-list__welcome {
  margin: 0;
  text-align: center;
  padding: 0 20px;
  /* Account for header with iOS safe area */
  padding-top: calc(64px + env(safe-area-inset-top, 0px));
}

.article-list__welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 500px;
  margin: 0 auto;
}

.article-list__welcome-illustration {
  margin-bottom: -20px;
}

.article-list__welcome-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  margin: 0;
  color: var(--color-light);
  line-height: 1.2;
}

.article-list__welcome-text {
  margin: 0;
  color: var(--color-light);
  opacity: 0.9;
  font-size: var(--font-size-lg);
  line-height: 1.5;
  max-width: 400px;
}

.article-list__welcome-content p {
  margin: 0;
  color: var(--color-light);
  opacity: 0.8;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 400px;
}

.article-list__button {
  padding: 10px 20px;
  font-size: var(--font-size-lg);
  border-radius: 12px;
  background: var(--color-accent);
  color: var(--color-light);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(85, 67, 219, 0.3);
}

.article-list__button:hover {
  background: var(--color-accent);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(85, 67, 219, 0.4);
}

.article-list__button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(85, 67, 219, 0.3);
}

.article-list__button--primary {
  background: var(--color-accent);
  color: var(--color-light);
}

.article-list__button--retry {
  background: var(--color-accent);
  color: var(--color-light);
}

.article-list__button-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.article-list__spinner {
  display: none;
}

.article-list__loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Quick add section */
.article-list__quick-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  max-width: 300px;
  width: 100%;
}

.article-list__quick-add p {
  margin: 0;
  color: var(--color-light);
  opacity: 0.7;
  font-size: var(--font-size-sm);
  font-weight: 500;
}

/* Chip sections */
.article-list__chip-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-list__chip-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-list__chip-section-title {
  margin: 0;
  color: var(--color-accent);
  opacity: 0.9;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.article-list__chip-section-title::before,
.article-list__chip-section-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

.article-list__chip-section-title::before {
  left: -40px;
}

.article-list__chip-section-title::after {
  right: -40px;
}

.article-list__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
}

.article-list__chip {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-light);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.article-list__chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.article-list__chip:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-list__chip:hover::before {
  left: 100%;
}

.article-list__chip:active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ERROR SECTION
   ======================================== */

.article-list__error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.article-list__error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px;
  padding: 24px;
}

.article-list__error-message {
  color: #e74c3c;
  font-size: var(--font-size-md);
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
}

/* ========================================
   ARTICLE SECTIONS
   ======================================== */

.article-list__section-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-double);
  padding: 6px 0;
  color: var(--color-accent);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-list__section-header::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-accent);
  opacity: 0.3;
}

/* ========================================
   SYNC LOADING SCREEN
   ======================================== */

.sync-loading-screen {
  background: rgba(85, 67, 219, 0.1);
  border: 1px solid rgba(85, 67, 219, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.sync-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px;
  padding: 24px;
}

.sync-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

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

.sync-header h3 {
  margin: 0;
  color: var(--color-light);
  font-size: var(--font-size-md);
  font-weight: 500;
}

.sync-header h2 {
  font-size: var(--font-size-lg);
}

.failed-feeds-list {
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
}

.failed-feed-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.failed-feed-item:last-child {
  border-bottom: none;
}

.failed-feed-item .feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.failed-feed-item .feed-title {
  color: var(--color-light);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.failed-feed-item .feed-title-spinner {
  display: inline-block;
}

.failed-feed-item .feed-error {
  color: #e74c3c;
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.sync-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}

.retry-button,
.show-articles-button {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-15px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, filter 0.2s;
  box-sizing: border-box;
}

.retry-button {
  background: var(--color-accent);
  color: var(--color-light);
}

.retry-button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.show-articles-button {
  background: #23232b;
  color: var(--color-light);
}

.show-articles-button:hover:not(:disabled) {
  background: #2d2d38;
  color: var(--color-accent);
}

.feed-retry-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e74c3c;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

.sync-error {
  text-align: center;
}

.sync-error h2 {
  margin-bottom: 16px;
}

.sync-error p {
  color: var(--color-light);
  margin-bottom: 24px;
  opacity: 0.8;
  color: #e74c3c;
}

/* ========================================
   LOADING & PAGINATION
   ======================================== */

/* Loading indicator for infinite scroll */
.loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-base);
  padding: var(--spacing-double);
  color: var(--color-light);
  opacity: 0.7;
  font-size: var(--font-size-sm);
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--color-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Load more button */
.load-more-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
  min-width: 200px;
  padding: 12px 24px;
  margin: 16px auto;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--color-light);
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.load-more-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.load-more-button:active {
  transform: translateY(0);
}

.load-more-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.load-more-count {
  font-size: var(--font-size-xs);
  opacity: 0.6;
  font-weight: 400;
}

/* Scroll to top button */
.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Hide scroll-to-top button when modal is active */
body[data-modal-active] .scroll-to-top-btn {
  display: none !important;
  opacity: 0 !important;
}

.scroll-to-top-btn:hover {
  background: var(--color-accent);
  opacity: 0.9;
  transform: translateY(0);
}

.scroll-to-top-btn:active {
  transform: translateY(2px);
}

/* Show animation */
.scroll-to-top-btn[style*="display: block"] {
  animation: slideInUp 0.3s ease forwards;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-to-top-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

/* Hide scroll-to-top button when modal is active */
body[data-modal-active] .scroll-to-top-btn {
  display: none !important;
  opacity: 0 !important;
}

.scroll-to-top-btn:hover {
  background: var(--color-accent);
  opacity: 0.9;
  transform: translateY(0);
}

.scroll-to-top-btn:active {
  transform: translateY(2px);
}

/* Show animation */
.scroll-to-top-btn[style*="display: block"] {
  animation: slideInUp 0.3s ease forwards;
}

/* ========================================
   SYNC LOADING SCREEN
   ======================================== */

.sync-loading-screen {
  background: rgba(85, 67, 219, 0.1);
  border: 1px solid rgba(85, 67, 219, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.sync-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 16px;
  padding: 24px;
}

.sync-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

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

.sync-header h3 {
  margin: 0;
  color: var(--color-light);
  font-size: var(--font-size-md);
  font-weight: 500;
}

.sync-header h2 {
  font-size: var(--font-size-lg);
}

.failed-feeds-list {
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px;
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
}

.failed-feed-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.failed-feed-item:last-child {
  border-bottom: none;
}

.failed-feed-item .feed-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.failed-feed-item .feed-title {
  color: var(--color-light);
  font-weight: 500;
  font-size: var(--font-size-sm);
}

.failed-feed-item .feed-title-spinner {
  display: inline-block;
}

.failed-feed-item .feed-error {
  color: #e74c3c;
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.sync-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}

.retry-button,
.show-articles-button {
  width: 100%;
  min-width: 0;
  padding: 14px 0;
  border: none;
  border-radius: 8px;
  font-size: var(--font-size-15px);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, filter 0.2s;
  box-sizing: border-box;
}

.retry-button {
  background: var(--color-accent);
  color: var(--color-light);
}

.retry-button:hover:not(:disabled) {
  filter: brightness(1.1);
}

.show-articles-button {
  background: #23232b;
  color: var(--color-light);
}

.show-articles-button:hover:not(:disabled) {
  background: #2d2d38;
  color: var(--color-accent);
}

.feed-retry-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e74c3c;
  border-top: 2px solid transparent;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
  animation: spin 1s linear infinite;
}

.sync-error {
  text-align: center;
}

.sync-error h2 {
  margin-bottom: 16px;
}

.sync-error p {
  color: var(--color-light);
  margin-bottom: 24px;
  opacity: 0.8;
  color: #e74c3c;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

.swipe-return {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and up */
@media (min-width: 600px) {
  .article-list__item {
    padding: 12px;
  }
  
  h1 {
    font-size: var(--font-size-3xl);
  }
  
  .preview {
    font-size: var(--font-size-md);
  }
  
  .meta {
    font-size: var(--font-size-sm);
  }
  
  /* Welcome section tablet improvements */
  .article-list__welcome {
    margin: 28px 0 0 0;
    padding: 0 32px;
  }
  
  .article-list__welcome-content {
    gap: 24px;
    max-width: 600px;
  }
  
  .article-list__welcome-illustration {
    margin-bottom: 0px;
  }
  
  .article-list__welcome-title {
    font-size: var(--font-size-6xl);
  }
  
  .article-list__welcome-text {
    font-size: var(--font-size-xl);
  }
  
  .article-list__welcome-content p {
    font-size: var(--font-size-md);
  }
  
  .article-list__button {
    padding: 14px 36px;
    font-size: var(--font-size-xl);
  }
  
  .article-list__quick-add {
    gap: 24px;
    max-width: 500px;
  }
  
  .article-list__quick-add p {
    font-size: var(--font-size-md);
  }
  
  .article-list__chip-section {
    gap: 18px;
    padding: 20px 0;
  }
  
  .article-list__chip-section-title {
    font-size: var(--font-size-sm);
    padding: 0 20px;
  }
  
  .article-list__chip-section-title::before {
    left: -50px;
    width: 30px;
  }
  
  .article-list__chip-section-title::after {
    right: -50px;
    width: 30px;
  }
  
  .article-list__chips {
    gap: 14px;
    max-width: 100%;
  }
  
  .article-list__chip {
    padding: 0.7rem 1.4rem;
    font-size: var(--font-size-sm);
    border-radius: 22px;
  }

  /* Sync screen tablet improvements */
  .sync-content {
    padding: 32px;
    margin: 24px;
  }

  .sync-header h2 {
    font-size: var(--font-size-xl);
  }

  .failed-feeds-list {
    max-height: 200px;
  }

  .sync-actions {
    flex-direction: row;
  }

  .retry-button,
  .show-articles-button {
    width: auto;
    min-width: 120px;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .article-list__welcome {
    padding: 0 40px;
  }
  
  .article-list__welcome-content {
    gap: 26px;
    max-width: 700px;
  }
  
  .article-list__welcome-illustration {
    margin-bottom: -4px;
  }
  
  .article-list__welcome-title {
    font-size: var(--font-size-7xl);
  }
  
  .article-list__welcome-text {
    font-size: var(--font-size-2xl);
  }
  
  .article-list__welcome-content p {
    font-size: var(--font-size-lg);
  }
  
  .article-list__button {
    padding: 16px 40px;
    font-size: var(--font-size-2xl);
  }
  
  .article-list__quick-add {
    gap: 28px;
    max-width: 600px;
  }
  
  .article-list__quick-add p {
    font-size: var(--font-size-lg);
  }
  
  .article-list__chip-section {
    gap: 20px;
    padding: 24px 0;
  }
  
  .article-list__chip-section-title {
    font-size: var(--font-size-sm);
    padding: 0 24px;
  }
  
  .article-list__chip-section-title::before {
    left: -60px;
    width: 40px;
  }
  
  .article-list__chip-section-title::after {
    right: -60px;
    width: 40px;
  }
  
  .article-list__chips {
    gap: 16px;
  }
  
  .article-list__chip {
    padding: 0.8rem 1.6rem;
    font-size: var(--font-size-sm);
    border-radius: 24px;
  }
}

/* bottom-menu */
/* Bottom Context Menu */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-menu-height);
    background-color: transparent;
    transform: translateY(100%);
    transition: transform 0.3s var(--transition-spring);
    z-index: 1001;
    /* iOS PWA safe area inset for home indicator */
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--bottom-menu-height) + env(safe-area-inset-bottom));
}

/* Bottom sheet background that spans full width */
.bottom-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--color-surface);
    z-index: -1;
}

/* Bottom sheet content container */
.bottom-menu > div {
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-double);
}

.bottom-menu.active {
    transform: translateY(0);
}

.bottom-menu__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-base);
}

.bottom-menu__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s, transform 0.2s;
}

.bottom-menu__button:hover {
    background-color: rgba(212, 207, 198, 0.1);
}

.bottom-menu__button:active {
    transform: scale(0.95);
}

.bottom-menu__button svg {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.bottom-menu__button:hover svg {
    opacity: 1;
}

.bottom-menu__count {
    font-size: var(--font-size-md);
    opacity: 0.7;
}


/* action-modal */
/* Action Modal Component*/

/* Overlay */
.action-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--motion-duration-enter) var(--ease-standard);
}

.action-modal__overlay.active {
  opacity: 1;
}

/* Panel Base Styles */
.action-modal__panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  /* iOS PWA safe area insets for status bar and home indicator */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--color-dark);
  border-bottom: 1px solid rgba(212, 207, 198, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--motion-duration-enter) var(--ease-decel);
  will-change: transform;
  backface-visibility: hidden;
  touch-action: pan-y;
}

/* Top Modal (action-menu) - slides from top */
.action-modal__panel--top {
  transform: translateY(-100%);
  transition: transform var(--motion-duration-enter) var(--ease-decel);
}

.action-modal__panel--top.active {
  transform: translateY(0);
}

.action-modal__panel--top.slide-out-to-top {
  transform: translateY(-100%);
}

/* Bottom Modal (feed-adder, feed-manager, page-adder) - slides from bottom */
.action-modal__panel--bottom {
  transform: translateY(100%);
  transition: transform var(--motion-duration-enter) var(--ease-decel);
}

.action-modal__panel--bottom.active {
  transform: translateY(0);
}

.action-modal__panel--bottom.slide-out-to-bottom {
  transform: translateY(100%);
}

/* Exiting states get exit easing & exit duration */
.action-modal__panel--top.exiting,
.action-modal__panel--bottom.exiting {
  transition-duration: var(--motion-duration-exit);
  transition-timing-function: var(--ease-accel);
}

/* ===== Synchronized "push" handoff (top → bottom) ===== */

/* Handoff scene flag on a shared parent (e.g., body or .modal-stage) */
.modal-handoff--bottom-from-top .action-modal__panel--bottom {
  z-index: 1001; /* above the top panel (which is 1000) during the handoff */
}

/* When entering during handoff, give bottom a tiny head start */
.modal-handoff--bottom-from-top .action-modal__panel--bottom.entering {
  transition-duration: var(--motion-duration-cross) !important;
  transition-timing-function: var(--ease-decel) !important;
  transition-delay: 20ms !important; /* creates the 'push' feel */
  transform: translateY(0) !important;
}

/* Top exits in sync (no delay), accelerates out */
.modal-handoff--bottom-from-top .action-modal__panel--top.exiting {
  transition-duration: var(--motion-duration-cross);
  transition-timing-function: var(--ease-accel);
  transform: translateY(-100%);
}

/* Optional micro-push: nudge top briefly before it fully exits (keyframe) */
@keyframes push-away-up {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-10%); } /* small nudge up */
  100% { transform: translateY(-100%); }
}

/* Use this variant if you want a stronger push gesture */
.modal-handoff--bottom-from-top .action-modal__panel--top.exiting.pushed {
  animation: push-away-up var(--motion-duration-cross) var(--ease-accel) forwards;
  transition: none; /* keyframe controls it */
}

/* Keep the overlay steady during handoff */
.modal-handoff--bottom-from-top .action-modal__overlay {
  opacity: 1; /* pinned on during the cross animation */
}

/* ===== Reverse handoff (bottom → top) ===== */

/* Handoff scene flag for bottom → top transition */
.modal-handoff--top-from-bottom .action-modal__panel--top {
  z-index: 1001; /* above the bottom panel (which is 1000) during the handoff */
}

/* When entering during handoff, give top a tiny head start */
.modal-handoff--top-from-bottom .action-modal__panel--top.entering {
  transition-duration: var(--motion-duration-cross) !important;
  transition-timing-function: var(--ease-decel) !important;
  transition-delay: 20ms !important; /* creates the 'push' feel */
  transform: translateY(0) !important;
}

/* Bottom exits in sync (no delay), accelerates out */
.modal-handoff--top-from-bottom .action-modal__panel--bottom.exiting {
  transition-duration: var(--motion-duration-cross);
  transition-timing-function: var(--ease-accel);
  transform: translateY(100%);
}

/* Optional micro-push: nudge bottom briefly before it fully exits (keyframe) */
@keyframes push-away-down {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(10%); } /* small nudge down */
  100% { transform: translateY(100%); }
}

/* Use this variant if you want a stronger push gesture */
.modal-handoff--top-from-bottom .action-modal__panel--bottom.exiting.pushed {
  animation: push-away-down var(--motion-duration-cross) var(--ease-accel) forwards;
  transition: none; /* keyframe controls it */
}

/* Keep the overlay steady during reverse handoff */
.modal-handoff--top-from-bottom .action-modal__overlay {
  opacity: 1; /* pinned on during the cross animation */
}

/* Ensure overlays don't sit above the button */
.action-modal__overlay { 
  z-index: 999; 
  /* lower than panel */ 
}

/* Header*/
.action-modal__header {
  height: 56px;
  padding: 0 var(--spacing-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(212, 207, 198, 0.1);
  flex-shrink: 0;
}

.action-modal__header h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-light);
  margin: 0 10px;
}

/* Content - action-modal-panel width */
.action-modal__content {
  flex: 1;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Content area - has padding and handles scrolling */
.action-modal__content-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-double);
  display: flex;
  flex-direction: column;
  min-height: 0;
  /* Smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;
}

/* Container for multiple content areas */
.action-modal__content-container {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Info and tip styles - using non-BEM for compatibility with feed-adder */
.action-modal__info {
  margin-bottom: var(--spacing-double);
  padding: var(--spacing-base);
  background: rgba(85, 67, 219, 0.1);
  border-bottom: 1px solid rgba(85, 67, 219, 0.2);
  border-top: 1px solid rgba(85, 67, 219, 0.2);
}

.action-modal__info p {
  margin: 0 0 var(--spacing-base) 0 !important;
  color: var(--color-light) !important;
  font-size: var(--font-size-sm) !important;
  line-height: 1.4 !important;
}

.action-modal__info p:last-child {
  margin-bottom: 0 !important;
}

.action-modal__tip {
  font-size: var(--font-size-xs) !important;
  color: var(--color-light) !important;
  opacity: 0.7 !important;
  font-style: italic !important;
  margin-top: var(--spacing-base) !important;
}

/* Common input styles for all content components */
.input-wrapper {
  margin-bottom: var(--spacing-double);
}

.input-wrapper input {
  width: 100% !important;
  padding: 12px 16px !important;
  background: var(--color-surface) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: var(--color-light) !important;
  font-size: var(--font-size-md) !important;
  transition: border-color 0.2s ease !important;
  box-sizing: border-box !important;
}

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

.input-wrapper input::placeholder {
  color: var(--text-secondary);
}

/* Common form styles for all content components */
#feed-adder-form,
#page-adder-form,
#feed-manager-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: var(--spacing-base);
}

/* Common validation styles for all inputs */
#feed-url-input.valid,
#page-url-input.valid {
  border-color: var(--color-success) !important;
}

#feed-url-input.invalid,
#page-url-input.invalid {
  border-color: var(--color-warning) !important;
}

/* Common checkbox styles */
input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  margin: 0;
}

/* Footer*/
.action-modal__footer {
  border-top: 1px solid rgba(212, 207, 198, 0.1);
  background: var(--color-dark);
  flex-shrink: 0;
  position: relative;
  z-index: 1002; /* Higher than scroll-to-top button (1000) */
}

/* Hide footer for action-menu (top modal) */
.action-modal__panel--top .action-modal__footer {
  display: none;
}

/* Status message - mimicking feed-status styling */
.action-modal__status {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-left: none;
  border-right: none;
  border-radius: 0;
  padding: var(--spacing-base) var(--spacing-base) var(--spacing-base) var(--spacing-base);
  animation: slideDown 0.3s ease-out;
}

/* Error status */
.action-modal__status.error {
  background: rgba(231, 76, 60, 0.1);
  border-top: 1px solid rgba(231, 76, 60, 0.3);
  border-bottom: 1px solid rgba(231, 76, 60, 0.3);
}

.action-modal__status.error .action-modal__status-icon {
  color: var(--color-danger);
}

.action-modal__status.error #status-message-top,
.action-modal__status.error #status-message-bottom {
  color: var(--color-danger);
}

/* Success status */
.action-modal__status.success {
  background: rgba(46, 204, 113, 0.1);
  border-top: 1px solid rgba(46, 204, 113, 0.3);
  border-bottom: 1px solid rgba(46, 204, 113, 0.3);
}

.action-modal__status.success .action-modal__status-icon {
  color: var(--color-success);
}

.action-modal__status.success #status-message-top,
.action-modal__status.success #status-message-bottom {
  color: var(--color-success);
}

/* Info status - matching feed-status syncing style */
.action-modal__status.info {
  background: rgba(85, 67, 219, 0.1);
  border-top: 1px solid rgba(85, 67, 219, 0.3);
  border-bottom: 1px solid rgba(85, 67, 219, 0.3);
}

.action-modal__status.info .action-modal__status-icon {
  color: var(--color-accent);
}

.action-modal__status.info #status-message-top,
.action-modal__status.info #status-message-bottom {
  color: var(--color-light);
}

/* Syncing status - matching feed-status syncing style */
.action-modal__status.syncing {
  background: rgba(85, 67, 219, 0.1);
  border-top: 1px solid rgba(85, 67, 219, 0.3);
  border-bottom: 1px solid rgba(85, 67, 219, 0.3);
}
.action-modal__status.syncing .action-modal__status-icon {
  color: var(--color-accent);
}
.action-modal__status.syncing #status-message-top,
.action-modal__status.syncing #status-message-bottom {
  color: var(--color-light);
}

/* Selection status - for feed selection counters */
.action-modal__status.selection {
  background: rgba(85, 67, 219, 0.1);
  border-top: 1px solid rgba(85, 67, 219, 0.3);
  border-bottom: 1px solid rgba(85, 67, 219, 0.3);
}

.action-modal__status.selection .action-modal__status-icon {
  color: var(--color-accent);
}

.action-modal__status.selection #status-message-top,
.action-modal__status.selection #status-message-bottom {
  color: var(--color-light);
}

.action-modal__status-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-base);
  min-height: 25px;
}

.action-modal__status-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-md);
  color: var(--color-accent);
}

#status-message-top,
#status-message-bottom {
  color: var(--color-light);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.action-modal__info {
  margin-bottom: var(--spacing-double);
  padding: var(--spacing-base);
  background: rgba(85, 67, 219, 0.1);
  border: 1px solid rgba(85, 67, 219, 0.2);
  border-radius: 8px;
}

.action-modal__info p {
  margin: 0 0 var(--spacing-base) 0;
  color: var(--color-light);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.action-modal__info p:last-child {
  margin-bottom: 0;
}

.action-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-base);
  margin: var(--spacing-base) 0;
  padding: var(--spacing-base) var(--spacing-base) calc(var(--spacing-double) + env(safe-area-inset-bottom, 0px)) var(--spacing-base);
}

.action-modal__button--primary {
  background: var(--color-accent) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: var(--font-size-md) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  min-width: 120px !important;
  margin: 0 !important;
  box-shadow: 0 4px 12px rgba(85, 67, 219, 0.3) !important;
}

.action-modal__button--primary:hover:not(:disabled) {
  background: var(--color-accent-dark, #4a3bc7);
}

.action-modal__button--primary:disabled {
  background: rgba(85, 67, 219, 0.3) !important;
  color: rgba(255, 255, 255, 0.6) !important;
  cursor: not-allowed !important;
  border: 1px solid rgba(85, 67, 219, 0.2) !important;
  box-shadow: none !important;
}

/* Make button clickable when enabled */
#primary-button-top:not([disabled]),
#primary-button-bottom:not([disabled]) {
  pointer-events: auto;
}

.action-modal__button--primary.danger {
  background: var(--color-danger);
}

.action-modal__button--primary.danger:hover:not(:disabled) {
  background: #c0392b;
}

.action-modal__button--primary.loading {
  position: relative;
  color: transparent;
}

.action-modal__button--primary.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: action-modal-spin 1s linear infinite;
}

@keyframes action-modal-spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

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

/* ===== Accessibility: prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  .action-modal__panel,
  .action-modal__overlay,
  .action-modal__panel--top.exiting,
  .action-modal__panel--bottom.exiting {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* Small tablets and up */
@media only screen and (min-width: 576px) {
  .action-modal__info {
    margin-bottom: var(--spacing-double);
    padding: var(--spacing-double);
  }
  
  .action-modal__tip {
    font-size: var(--font-size-sm);
  }
  
  .action-modal__status {
    padding: var(--spacing-base) var(--spacing-double);
  }
  
  #status-message-top,
  #status-message-bottom {
    font-size: var(--font-size-xs);
  }
  
  .action-modal__actions {
    margin-top: var(--spacing-double);
    padding-bottom: var(--spacing-double);
  }
  
  .action-modal__button--primary {
    padding: var(--spacing-base) var(--spacing-double);
    min-width: 100px;
  }
}

/* Tablets and up */
@media only screen and (min-width: 768px) {
  .action-modal__panel {
    left: auto;
    width: 500px;
    max-width: 50vw;
    border-left: 1px solid rgba(212, 207, 198, 0.1);
    border-bottom: none;
  }
  
  .action-modal__header {
    height: 64px;
    padding: 0 var(--spacing-double);
  }
  
  .action-modal__header h2 {
    font-size: var(--font-size-xl);
  }
  
  .action-modal__content-area {
    padding: var(--spacing-double);
  }
  
  .action-modal__info {
    padding: var(--spacing-double);
  }
  
  .action-modal__info {
    padding: var(--spacing-double);
  }
  
  .action-modal__actions {
    padding: var(--spacing-double);
  }
}

/* Desktop and up */
@media only screen and (min-width: 1024px) {
  .action-modal__panel {
    width: 600px;
    max-width: 40vw;
  }
}

/* action-modal/action-menu */
/* Action Menu Content Component for Action Modal */

/* Menu container */
.action-menu__container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}

/* Scrollable menu sections */
.action-menu__scrollable {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-base) 0;
}

/* Menu sections */
.action-menu__section {
  margin-bottom: var(--spacing-double);
}

.action-menu__section:last-child {
  margin-bottom: 0;
}

/* Section titles */
.action-menu__section-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(212, 207, 198, 0.6);
  margin: 0 0 var(--spacing-base) 0;
  padding: 0 var(--spacing-double);
}

/* Menu items */
.action-menu__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
  width: 100%;
  padding: calc(var(--spacing-base) * 1.5) var(--spacing-double);
  background: none;
  border: none;
  color: var(--color-light);
  font-size: var(--font-size-md);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin: 2px 0;
}

.action-menu__item:hover {
  background: rgba(212, 207, 198, 0.1);
}

.action-menu__item:active {
  background: rgba(212, 207, 198, 0.15);
}

.action-menu__item svg {
  flex-shrink: 0;
  color: var(--color-light);
}

.action-menu__label {
  flex: 1;
  font-size: var(--font-size-md);
  color: var(--color-light);
}

.action-menu__item--danger {
  color: var(--color-danger);
}

.action-menu__item--danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

.action-menu__item--danger:active {
  background: rgba(255, 107, 107, 0.15);
}

.action-menu__item--danger svg {
  color: var(--color-danger);
}

.action-menu__item--danger .action-menu__label {
  color: var(--color-danger);
}

.action-menu__divider {
  height: 1px;
  background: rgba(212, 207, 198, 0.1);
  margin: var(--spacing-base) 0;
}

.action-menu__footer {
  flex-shrink: 0;
  padding: var(--spacing-base) 0;
}

.action-menu__legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--spacing-base) * 0.5);
  padding: 0 var(--spacing-base);
}

.action-menu__legal-link {
  background: none;
  border: none;
  color: rgba(212, 207, 198, 0.6);
  font-size: var(--font-size-xs);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.action-menu__legal-separator {
  color: rgba(212, 207, 198, 0.4);
  font-size: var(--font-size-xs);
  margin: 0 calc(var(--spacing-base) * 0.5);
}

@media (min-width: 768px) {
  .action-menu__container {
    padding: var(--spacing-double) 0;
  }
}

/* header */
/* Header Component */

/* Header block */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--color-dark);
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    z-index: 100;
    padding-right: calc(var(--spacing-double) + var(--scrollbar-width));
    width: 100%;
    /* iOS PWA safe area inset for status bar */
    padding-top: env(safe-area-inset-top);
    height: calc(64px + env(safe-area-inset-top));
}

/* Navigation element */
.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-double);
}

/* Navigation sections */
.header__section {
    display: flex;
    align-items: center;
}

.header__section--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Logo element */
.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header__logo-image {
    border-radius: 5px;
}

/* Button elements */
.header__button {
    background: none;
    border: none;
    color: var(--color-light);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.header__button:hover {
    background-color: rgba(212, 207, 198, 0.1);
}

.header__button--filter {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header__button--filter:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.header__button--settings {
    padding: 8px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.header__button--settings:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.header__button--settings svg {
    width: 20px;
    height: 20px;
}

/* Connection status elements */
.header__connection-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    transition: all 0.3s ease;
}

.header__connection-status--offline {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.header__connection-status--online {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.header__status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

.header__status-text {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Legacy support - remove after full migration */
#refresh-feeds-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* action-modal/feed-adder */
/* Feed Adder Component */

.feed-adder__discovery {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--color-surface);
  border-radius: 8px;
  border: 1px solid rgba(212, 207, 198, 0.1);
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
}

.feed-adder__discovery-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-base);
  padding: var(--spacing-double);
  color: var(--color-light);
  opacity: 0.8;
}

.feed-adder__discovery-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-accent);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.feed-adder__discovery-icon {
  font-size: var(--font-size-md);
  color: var(--color-accent);
  margin-right: var(--spacing-base);
}

.feed-adder__discovery-results {
  color: var(--color-light);
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.feed-adder__results {
  padding: var(--spacing-base) var(--spacing-double);
  color: var(--color-light);
}

.feed-adder__results-header {
  margin-bottom: var(--spacing-base) var(--spacing-double);
}

.feed-adder__results-header h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin: 0 0 var(--spacing-base) 0;
  color: var(--color-light);
}

.feed-adder__results-header p {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  margin: 0;
  color: var(--color-light);
}

.feed-adder__options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-base);
}

.feed-adder__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--spacing-base) var(--spacing-double);
  background: var(--color-surface);
  border: 1px solid rgba(212, 207, 198, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 2px;
}

.feed-adder__option input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  margin: 0;
}

.feed-adder__option-url {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-light);
  word-break: break-all;
}

.feed-adder__option--unchecked {
  opacity: 0.5;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(212, 207, 198, 0.05);
}

.feed-adder__option--unchecked .feed-adder__option-url {
  color: rgba(212, 207, 198, 0.4);
}

.feed-adder__option--unchecked:hover {
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 207, 198, 0.1);
}

.feed-adder__unchecked-indicator {
  font-size: var(--font-size-xs);
  color: rgba(212, 207, 198, 0.4);
  font-style: italic;
  margin-left: var(--spacing-small);
}

.feed-adder__loading-indicator {
  padding: var(--spacing-base) var(--spacing-double);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.feed-adder__loading-indicator .loading {
  padding: var(--spacing-base) 0;
  justify-content: flex-start;
  opacity: 0.8;
}

.feed-adder__loading-indicator .loading p {
  font-size: var(--font-size-sm);
  margin: 0;
}

.feed-adder__no-feeds-message {
  padding: var(--spacing-base) var(--spacing-double);
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(212, 207, 198, 0.1);
}

.feed-adder__no-feeds-message .info-message {
  padding: var(--spacing-base) 0;
}

.feed-adder__no-feeds-message .info-message p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: rgba(212, 207, 198, 0.7);
  line-height: 1.4;
}

.feed-adder__loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(212, 207, 198, 0.1);
  border-top-color: var(--color-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.feed-adder__discovery-empty {
  padding: var(--spacing-double);
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.feed-adder__discovery-empty p {
  margin: 0;
  opacity: 0.7;
}

@media only screen and (min-width: 576px) {
  #feed-url-input {
    font-size: var(--font-size-md);
  }
  
  .feed-adder__discovery-item {
    padding: var(--spacing-double);
  }
}
/*End Feed Adder Component*/

/* action-modal/feed-manager */
/* Feed Manager Component*/

.feed-manager__container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feed-manager__list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: var(--spacing-base);
}

.feed-manager__item {
  display: flex;
  align-items: center;
  padding: var(--spacing-base);
  margin-bottom: var(--spacing-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.feed-manager__item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
}

.feed-manager__item-info {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.feed-manager__item-icon {
  width: 32px;
  height: 32px;
  margin-right: var(--spacing-base);
  border-radius: 6px;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.feed-manager__item-icon img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
}

.feed-manager__item-details {
  flex: 1;
  min-width: 0;
}

.feed-manager__item-title {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.feed-manager__item-url {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-manager__static-indicator {
  font-size: var(--font-size-xs);
  margin-left: 4px;
}

.feed-manager__item-actions {
  margin: 0 var(--spacing-base);
}

.feed-manager__item-checkbox {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  accent-color: var(--color-accent);
}

.feed-manager__error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 6px;
  padding: var(--spacing-base);
  margin-bottom: var(--spacing-base);
}

.feed-manager__error-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-base);
}

.feed-manager__error-icon {
  font-size: var(--font-size-md);
  flex-shrink: 0;
  color: var(--color-danger);
}

#feed-manager-error-message {
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.feed-manager__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-double);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.feed-manager__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-double);
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

@media only screen and (min-width: 576px) {
  
  .feed-manager__item-icon {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-md);
  }
  
  .feed-manager__delete-section {
    padding: var(--spacing-double);
  }
  
  .feed-manager__selection-info {
    font-size: var(--font-size-md);
  }
}

@media only screen and (min-width: 768px) {
  .feed-manager__item-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }
  
  .feed-manager__item-title {
    font-size: var(--font-size-md);
  }
  
  .feed-manager__item-url {
    font-size: var(--font-size-sm);
  }
}

/* action-modal/page-adder */


/* feed-filter */
/* Feed Filter Panel */
.feed-filter__panel {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 500px;
    width: 100%;
    /* iOS PWA safe area inset for status bar and home indicator */
    height: 100vh;
    max-height: 100vh;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background-color: var(--color-dark);
    border-right: 1px solid rgba(212, 207, 198, 0.1);
    transform: translateX(-100%);
    transition: transform var(--motion-duration-enter) var(--ease-decel);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.feed-filter__panel.active {
    transform: translateX(0);
}

.feed-filter__header {
    /* Account for iOS safe area at top */
    min-height: 64px;
    padding: 0 var(--spacing-double);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    background-color: var(--color-dark);
}

.feed-filter__header h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-light);
}

.feed-filter__button {
    background: none;
    border: none;
    color: var(--color-light);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.feed-filter__button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.feed-filter__list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    gap: 0;
}

.feed-filter__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--color-light);
    width: 100%;
    text-align: left;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    font: inherit;
    box-shadow: none;
    outline: none;
    margin: var(--spacing-base) 0;
}

.feed-filter__item:active,
.feed-filter__item:focus {
    outline: 2px solid var(--color-accent);
}

.feed-filter__item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.feed-filter__item.active {
    background-color: rgba(85, 67, 219, 0.1);
}

.feed-filter__icon {
    width: 32px;
    height: 32px;
    background-color: var(--color-accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
    color: var(--color-light);
    font-size: var(--font-size-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feed-filter__icon:has(.feed-favicon) {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.2);
}

.feed-favicon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.feed-filter__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.feed-name {
    font-weight: 500;
    color: var(--color-light);
    font-size: var(--font-size-md);
}

.feed-filter__meta {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.feed-filter__count {
    font-size: var(--font-size-xs);
    opacity: 0.7;
    color: var(--color-light);
}

.feed-filter__sync-time {
    font-size: var(--font-size-xs);
    opacity: 0.5;
    color: var(--color-light);
}

.feed-filter__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-duration-enter) var(--ease-standard);
    z-index: 1000;
}

.feed-filter__overlay.active {
    opacity: 1;
    pointer-events: auto;
} 

.error-message {
  padding: var(--spacing-double);
  color: var(--color-light);
  opacity: 0.7;
  text-align: center;
  font-size: var(--font-size-sm);
}

.static-indicator {
  font-size: var(--font-size-xs);
  opacity: 0.7;
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .feed-filter__panel,
  .feed-filter__overlay {
    transition-duration: 1ms !important;
  }
}

/* support-modal */
/* Support Modal Component */

/*support modal*/
.support-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /* iOS PWA safe area insets */
    padding: calc(var(--spacing-base) + env(safe-area-inset-top, 0px)) var(--spacing-base) calc(var(--spacing-base) + env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transition: opacity var(--motion-duration-enter) var(--ease-standard);
    pointer-events: none;
    overflow: hidden;
    touch-action: none;
}

.support-modal__overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.support-modal__panel {
    background: var(--color-dark);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    /* iOS PWA safe area insets for status bar and home indicator */
    height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2 * var(--spacing-base));
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 207, 198, 0.1);
    overflow: hidden;
    transform: translateY(-100%);
    transition: transform var(--motion-duration-enter) var(--ease-decel);
    margin: 0;
    padding: var(--spacing-base);
}

.support-modal__panel.active {
    transform: translateY(0);
}

.support-modal__header {
    height: 56px;
    padding: 0 var(--spacing-base);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(212, 207, 198, 0.1);
    flex-shrink: 0;
}

.support-modal__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-light);
    margin: 0 10px;
}

.support-modal__content {
    flex: 1;
    background: var(--color-dark);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.support-modal__content-area {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-base);
    color: var(--color-light);
    line-height: 1.6;
    touch-action: pan-y;
}

.support-modal__content-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-base);
    color: var(--color-light);
    line-height: 1.6;
    touch-action: pan-y;
}

@media (min-width: 600px) {
    .support-modal__panel {
        max-width: 700px;
        height: calc(100vh - 2 * var(--spacing-double));
        margin-top: var(--spacing-double);
    }
    
    .support-modal__content-area {
        padding: var(--spacing-double);
    }
    
    .support-modal__content-container {
        padding: var(--spacing-double);
    }
}

@media (min-width: 768px) {
    .support-modal__panel {
        max-width: 800px;
        height: calc(100vh - 2 * var(--spacing-triple));
        margin-top: var(--spacing-triple);
        padding: var(--spacing-double);
    }
    
    .support-modal__header {
        height: 64px;
        padding: 0 var(--spacing-double);
    }
    
    .support-modal__title {
        font-size: var(--font-size-xl);
    }
    
    .support-modal__content-area {
        padding: var(--spacing-double);
    }
    
    .support-modal__content-container {
        padding: var(--spacing-double);
    }
}

@media (min-width: 1024px) {
    .support-modal__panel {
        max-width: 900px;
        height: calc(100vh - 2 * var(--spacing-quad));
        margin-top: var(--spacing-quad);
    }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .support-modal__overlay,
  .support-modal__panel {
      transition-duration: 1ms !important;
  }
}
/*end support modal*/

/* support-nav */
.support-nav {
    margin-bottom: var(--spacing-double);
    padding-bottom: var(--spacing-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-nav__links {
    display: flex;
    gap: var(--spacing-double);
    justify-content: center;
}

@media (min-width: 600px) {
    .support-nav__links {
        gap: var(--spacing-triple);
    }
}
/*end support-nav*/

/* support-content */
.support-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-double);
    margin-top: var(--spacing-triple);
}

.support-content h3:first-of-type {
    margin-top: 0;
    margin-bottom: var(--spacing-triple);
}

.support-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-double);
    margin-top: var(--spacing-double);
}

.support-content h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-light);
    margin-bottom: var(--spacing-base);
    margin-top: var(--spacing-base);
}

.support-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-base);
}

.support-content ul {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-base);
    padding-left: var(--spacing-double);
}

.support-content li {
    margin-bottom: var(--spacing-base);
}

.support-content strong {
    color: var(--color-light);
    font-weight: 600;
}

.support-content a {
    color: var(--color-accent);
    text-decoration: none;
}

.support-content a:hover {
    color: var(--color-light);
    text-decoration: underline;
}

/* support-faq */
.support-faq {
    margin-bottom: var(--spacing-double);
}

.support-faq__item {
    margin-bottom: var(--spacing-double);
    padding: var(--spacing-base);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
}

.support-faq__item h5 {
    margin-top: 0;
    margin-bottom: var(--spacing-base);
    color: var(--color-light);
}

.support-faq__item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.8);
}
/*end support-faq*/
/*end support-content*/

/* button overrides */
.button--discreet.support__content {
  display: inline;
  align-items: unset; 
  border: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
  color: var(--color-accent);
  width: auto;
  height: auto;
  cursor: pointer;
}

.button--discreet.support__content:hover {
  color: var(--color-light);
  background: none;
}

.button--discreet.support__content:focus {
  background: none;
}

.button--discreet.support__content:active {
  color: var(--color-accent);
  background: none;
}
/*end button overrides*/

/* End Support Modal Component */

