:root {
  --bg: #0b0c0f;
  --light-bg: #1a2131;
  --panel: #111317;
  --panel-2: #151821;
  --text: #e6e8ef;
  --text-inverse: #0b0c0f;
  --muted: #9aa3b2;
  --accent: #17b26a;
  --accent-2: #4cc38a;
  --outline: #1f2430;
  --border-outline: #374151;
  --warning: #f79009;
  --button-background-light: #c7c7c7;
  --error-message: #b91c1c;
  --success-message: #16a34a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(80% 80% at 80% -10%, #18302666, transparent 80%),
    radial-gradient(80% 60% at -20% -20%, #18304666, transparent 50%), var(--bg);
  background-repeat: no-repeat;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  direction: horizontal;
  gap: 10px;
  font-weight: 700;
}

.logo-mark {
  width: auto;
  height: auto;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2));
  border-radius: 6px;
  box-shadow:
    0 0 0 1px #1a1f2b,
    0 8px 24px #0d1410;
}

.logo-name {
  font-size: 26px;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn {
  appearance: none;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: #1a1f2b;
  color: var(--text);
  box-shadow: 0 0 0 1px #242a38 inset;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover {
  filter: brightness(1.2);
}

.btn.accent {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #0b140f;
  box-shadow:
    0 0 0 1px #1b2b22 inset,
    0 8px 24px #0a1d1433;
}

.btn.accent:hover {
  filter: brightness(1.2);
}

.btn.login {
  background: transparent;
  box-shadow: none;
  color: var(--accent-2);
  font-weight: 600;
}

.btn.login:hover {
  filter: brightness(1.2);
  text-decoration: underline;
  font-weight: 800;
}

.forgot-password-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: right;
}

.forgot-password-link {
  font-size: 15px;
  text-decoration: none;
  font-weight: 500;
}

.forgot-password-link:hover {
  filter: brightness(1.2);
  text-decoration: underline;
}

.remember-me-checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 17px;
  margin-top: 1.5rem;
  color: var(--text);
}

.checkbox:checked {
  accent-color: var(--accent-2);
}

.nav-buttons-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
}

.profile-btn {
  display: none;
  align-items: center;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.profile-btn svg {
  width: 39px;
  height: 39px;
}

/* .profile-btn:hover svg {
  width: 39px;
  height: 39px;
} */

.profile-btn svg path {
  fill: var(--text);
  transition: fill 0.3s ease;
}

.profile-btn:hover svg path {
  fill: var(--accent-2);
  filter: brightness(1.2);
  transition: fill 0.3s ease;
}

.profile-btn svg g line {
  stroke: var(--text);
  transition: fill 0.3s ease;
}

.profile-btn:hover svg g line {
  stroke: var(--accent-2);
  filter: brightness(1.2);
  transition: fill 0.3s ease;
}

.profile-dropdown {
  display: inline-block;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  margin-right: 1rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--panel);
  right: 0%;
  top: 100%;
  min-width: 8rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--outline);
  background: linear-gradient(180deg, #141824, #0f1218);
  border-radius: 10px;
  margin-top: 0.1rem;
  z-index: 10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-content a {
  color: var(--text);
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
}

/* .profile-dropdown:hover .profile-btn svg path {
  fill: var(--accent-2);
  filter: brightness(1.2);
  transition: fill 0.3s ease;
} */

.dropdown-content a:hover {
  background-color: var(--accent-2);
  color: var(--light-bg);
  transition: fill 0.3s ease;
  cursor: pointer;
}

#hamburger-menu {
  display: none;
}

@media screen and (max-width: 900px) {
  .nav-buttons-container {
    display: none;
  }

  #hamburger-menu {
    display: inline-block;
  }
}

.btn.active {
  background: linear-gradient(180deg, var(--accent-2), #3ddc84);
  color: #0b140f;
  box-shadow:
    0 0 0 1px #1b2b22 inset,
    0 6px 18px #0a1d1433;
  font-weight: bold;
}

.hero {
  padding: 40px 0 60px;
  position: relative;
}

.hero-content {
  margin-bottom: 40px;
}

.hero-text {
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  line-height: 1.05;
  margin: 16px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 2.6vw, 19px);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-2);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 600px) {
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

  .stat-number {
    font-size: 20px;
  }
}

.surface {
  background: linear-gradient(180deg, #141824, #0f1218);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px #05070a66;
}

.component-selector {
  display: flex;
  flex-direction: row;
  margin: 1rem 0rem 1rem 0rem;
  align-items: center;
}

.component-selector-menu {
  width: 10rem;
  height: 2rem;
  margin-left: 1rem;
  background: black;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 8px;
  padding: 0.3rem
}

.no-background {
  background: none;
}

.no-border {
  border: none;
}

.surface-features {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.upload {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.upload-surface-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.post-upload-container {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.drop {
  display: grid;
  place-items: center;
  min-height: 220px;
  outline: 1.5px dashed #263046;
  outline-offset: -8px;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

.file-list {
  background: transparent;
  display: flex;
  gap: 1rem;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #1a2131; /* A color from the page */
  padding: 0rem 0.5rem;
  border: 0.7px solid var(--outline);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.file-item .file-entity {
  max-width: 10rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
  margin: 0;
  padding: 0.15rem 0.15rem 0.15rem 0.15rem;
}

.file-item:hover {
  background-color: var(--button-background-light);
}

.file-item:hover .file-entity {
  color: var(--text-inverse);
  padding-right: 1rem;
}

.file-item .close-btn {
  background-color: var(--text-inverse); /* A dark gray */
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
}

.progressbar-container {
  width: min(30vw, 15rem);
  height: 0.35rem;
  /* Fallback for browsers that don't support gradients */
  background-color: #8f8f8f;
  /* Creates the striped effect */
  background-image: repeating-linear-gradient(
    45deg,
    #a9a9a9,
    #a9a9a9 10px,
    #8f8f8f 10px,
    #8f8f8f 20px
  );
  border-radius: 100px;
  margin: 0.5rem 0;
}

.progressbar {
  width: 0%;
  height: 0.35rem;
  background: linear-gradient(
    to right,
    var(--accent-2-color, #4f46e5),
    var(--accent-color, #3b82f6)
  );
  border-radius: 100px;
  margin: 0.5rem 0;
}

/* EDA Tool Selector */
.eda-selector {
  margin-top: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--outline);
  border-radius: 12px;
}

.eda-selector-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
  text-align: center;
}

.eda-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eda-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.eda-option:hover {
  border-color: var(--accent);
  background: rgba(23, 178, 106, 0.1);
}

.eda-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.eda-option input[type="radio"]:checked {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.eda-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--bg);
  border-radius: 50%;
}

.eda-option:has(input[type="radio"]:checked) {
  border-color: var(--accent);
  background: rgba(23, 178, 106, 0.15);
}

.eda-option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 600px) {
  .eda-options {
    gap: 8px;
  }

  .eda-option {
    padding: 8px 12px;
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }
}

.file-item:hover .close-btn {
  display: flex;
}

.file-item .close-btn:hover {
  filter: brightness(1.5);
}

.close-btn p {
  text-align: center;
  align-items: center;
}

.drop input {
  display: none;
}

.hint {
  font-size: 12px;
  color: #8b94a7;
  margin-top: 8px;
}

.bullets {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: #b6bdca;
}

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

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 3px #163523;
}

/* Formats Section */
.formats-section {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
  margin: 40px 0;
}

.formats-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.formats-grid {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.format-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.format-item:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.format-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 12px;
}

.format-icon svg {
  color: var(--accent-2);
}

.format-name {
  font-size: 16px;
  font-weight: 600;
}

/* How It Works Section */
.how-it-works {
  padding: 60px 0 40px;
}

.section-title {
  font-size: clamp(24px, 4vw, 36px);
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

.features {
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 28px 24px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: linear-gradient(180deg, #12161f, #0f1218);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(23, 178, 106, 0.15), rgba(76, 195, 138, 0.1));
  border: 1px solid rgba(23, 178, 106, 0.3);
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-icon svg {
  color: var(--accent-2);
}

.feature-step {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.feature h3 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--text);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  margin-top: 60px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(23, 178, 106, 0.05));
  border-top: 1px solid var(--outline);
  border-radius: 24px 24px 0 0;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 16px;
  color: var(--text);
}

.cta-content p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 14px 28px;
  font-size: 16px;
}

/* Footer */
.footer {
  background: var(--panel);
  color: var(--muted);
  padding: 48px 0 24px;
  border-top: 1px solid var(--outline);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.logo-mark-sm {
  padding: 4px;
}

.logo-name-sm {
  font-size: 20px;
}

.footer-tagline {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-links-grid {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  text-align: center;
}

@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links-grid {
    gap: 40px;
  }
}

/* Legacy footer links (for other pages) */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Preview Section */
.preview-section {
  padding: 60px 0 40px;
}

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

.download-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  background: #0c0e13;
  border: 1px solid var(--light-bg);
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0e1418;
  border: 1px solid #20303a;
  color: #a4b1bf;
  font-size: 12px;
}

.badge .led {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #97f3c2, #17b26a);
  box-shadow: 0 0 8px #17b26a66;
}

/* Pricing Page */
.pricing-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.pricing-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 16px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 18px);
  max-width: 500px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.pricing-card {
  position: relative;
  background: linear-gradient(180deg, #141824, #0f1218);
  border: 1px solid var(--outline);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #162420, #0f1218);
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #0b140f;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-card h2 {
  font-size: 24px;
  margin: 0 0 4px 0;
  color: var(--text);
}

.pricing-card-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.pricing-card-price {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--outline);
}

.price-amount {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-2);
}

.price-period {
  font-size: 16px;
  color: var(--muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  color: var(--muted);
  font-size: 15px;
  text-align: left;
  flex-grow: 1;
}

.pricing-card ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-card ul li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317b26a' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
  padding: 14px;
}

/* Page Hero (for secondary pages) */
.page-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.page-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero p {
  color: var(--muted);
  font-size: clamp(16px, 2.5vw, 18px);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* FAQ Section */
.faq {
  margin-bottom: 60px;
  background: linear-gradient(180deg, #141824, #0f1218);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--outline);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 20px 24px;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-arrow {
  font-size: 14px;
  color: var(--accent-2);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

.about-card {
  background: linear-gradient(180deg, #141824, #0f1218);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.about-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(23, 178, 106, 0.15), rgba(76, 195, 138, 0.1));
  border: 1px solid rgba(23, 178, 106, 0.3);
  border-radius: 14px;
  margin-bottom: 20px;
  color: var(--accent-2);
}

.about-card h3 {
  font-size: 20px;
  margin: 0 0 12px 0;
  color: var(--text);
}

.about-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 10px;
}

.about-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317b26a' stroke-width='2.5'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

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

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

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

  .formats-grid {
    gap: 24px;
  }

  .cta-section {
    padding: 60px 0;
  }
}

.password-field-container {
  width: 100%;
  align-items: center;
  vertical-align: center;
  position: relative;
  display: inline-block;
}

.password-eye-icon {
  width: 1.5rem;
  height: auto;
  position: absolute;
  top: 50%; /* vertically center */
  right: 8px; /* stick to inner right edge */
  transform: translateY(-50%);
  display: inline-block;
  cursor: pointer;
}

.eye-icon {
  fill: var(--text);
}

.eye-icon:hover {
  fill: var(--accent-2);
}

/* Profile page related */
.profile-container {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.profile-sidebar {
  flex: 0 0 220px;
  text-align: center;
  border: 2px solid var(--border-outline);
  border-radius: var(--border-radius, 8px);
  padding: 24px;
}

/* Responsive layout for smaller screens */
@media (max-width: 900px) {
  .profile-container {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-sidebar {
    flex-basis: auto;
  }
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  margin-bottom: 20px;
  background-color: var(--avatar-bg-color, #eee);
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.profile-main {
  flex-grow: 1;
}

.profile-card {
  border: 2px solid var(--border-outline);
  border-radius: var(--border-radius, 8px);
  padding: 24px;
  margin-bottom: 24px;
}

.profile-card-svg {
  margin: 0 1rem 0 1rem;
  fill: var(--accent-2);
  cursor: pointer;
}

.profile-card-svg:hover {
  filter: brightness(1.2);
}

.profile-card h2 {
  display: flex;
  justify-content: left;
  align-items: center;
  margin-top: 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

/* Form Error & Success Messages */
.error-message {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 1rem 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fca5a5;
  background: rgba(185, 28, 28, 0.15);
  border: 1px solid rgba(185, 28, 28, 0.4);
  border-radius: 10px;
  animation: slideIn 0.3s ease-out;
}

.error-message.visible {
  display: flex;
}

.error-message::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.success-message-box {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 1rem 0;
  font-size: 14px;
  line-height: 1.5;
  color: #86efac;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.4);
  border-radius: 10px;
  animation: slideIn 0.3s ease-out;
}

.success-message-box.visible {
  display: flex;
}

.success-message-box::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386efac' stroke-width='2'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

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

.credits-display {
  font-size: 3em;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.credits-text {
  margin-top: 8px;
  color: var(--text-secondary-color, #6b7280);
}

/* .profile-details {
  display: inline-block;
  max-width: 25rem;
  display: grid;
  grid-template-columns: 20% 5% 75%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-details p {
  color: var(--text-strong-color);
  margin: 1.5rem 0;
  font-size: 1.1em;
}

.profile-details strong {
  display: inline-block;
  width: 120px;
  color: var(--text-strong-color, #374151);
} */

.profile-details {
  /* display: grid; */
  width: auto; /* adjust as needed */
}
.profile-details p {
  display: grid;
  grid-template-columns: 7rem 1rem auto; /* label | colon | value */
  align-items: center;
}

.profile-details-input {
  display: none;
  width: 15rem;
  border: 1px solid var(--border-outline);
  background-color: var(--light-bg);
  color: #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.profile-details-input:focus {
  outline: none;
  border-color: var(--accent-2);
  /* Accent color */
  box-shadow: 0 0 0 1.5px var(--accent);
}

.profile-details span:first-child {
  text-align: left;
  padding-right: 4px;
}

.profile-details span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card .btn.accent {
  margin-top: 20px;
}

#profile-update-btn {
  display: none;
}

#profile-update-cancel-btn {
  /* display: none; */
  color: var(--error-message);
}

/* === Login & Form Styles === */

.login-container {
  display: flex;
  justify-content: center;
  padding: 2rem 0rem;
  min-height: 75vh;
  align-items: center;
}

.login-container .profile-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid var(--outline);
  border-radius: 20px;
  background: linear-gradient(180deg, #141824, #0f1218);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.login-container .profile-card p {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  border: none;
  padding: 0;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 !important;
}

.login-signup-form {
  margin-top: 1rem;
}

.resend-btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 0;
  margin-bottom: 0;
}

.otp-resend-text {
  text-align: left;
}

#resend-otp {
  margin: 0 auto 0 auto;
  font-size: 1rem;
}

#success-step {
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-outline);
  /* A bit lighter than bg */
  background-color: var(--light-bg);
  color: #e5e7eb;
  /* Light gray text */
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-2);
  /* Accent color */
  box-shadow: 0 0 0 1.5px var(--accent);
}

.login-signup-form .btn.accent {
  margin-top: 1.5rem;
  /* Creates 1.5rem total space after last input */
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1rem;
}

.login-signup-form.no-margin {
  margin-top: 0;
}

.reset-password-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.signup-prompt {
  text-align: center;
  margin-top: 1.5rem;
}

.signup-prompt a {
  color: #6366f1;
  text-decoration: none;
}

.separator-line {
  width: 100%;
  height: 0;
  border-top: 1px solid var(--border-outline);
  /* Adjust color, thickness, and style (solid, dashed, dotted) */
  margin: 1.5rem 0;
  /* Adjust vertical spacing */
}

.signup-prompt a:hover {
  text-decoration: underline;
}

.profile-card > .btn {
  margin-top: 20px;
}

.btn-google-container {
  display: flex;
  justify-content: center;
  margin: 0.75rem;
}

.btn-google {
  display: flex;
  width: 90%;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  background-color: transparent;
  color: var(--text);
  border: 1px solid #ddd;
  font-weight: 800;
  text-decoration: none;
  padding: 1.1rem auto 1.1rem auto;
}

.btn-google-logo {
  height: 20px;
  width: 20px;
}

.btn-google:hover {
  background-color: var(--button-background-light);
  color: var(--text-inverse);
}

.btn-google span {
  color: var(--text);
  font-size: 18px;
}

.btn-google:hover span {
  color: var(--text-inverse);
}

.btn-google:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.login-redirect-text:hover {
  filter: brightness(1.1);
  text-decoration: underline;
}

.credits-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
  text-align: left;
  margin-bottom: 2rem; /* Add spacing below the table */
}

.credits-table th,
.credits-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-outline);
}

.credits-table th {
  background-color: var(--panel);
  color: var(--text);
  font-weight: 600;
}

.credits-table td {
  background-color: var(--light-bg);
  color: var(--muted);
}

.credits-table tr:nth-child(0) td {
  background-color: var(--panel-2);
}

.credits-table tr:hover td {
  background-color: var(--panel);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.email {
  color: var(--accent-2);
  text-decoration: underline;
}

#success-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Profile Card Header */
.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--outline);
  padding-bottom: 1rem;
}

.profile-card-header h2 {
  margin: 0;
  border: none;
  padding: 0;
}

.refresh-btn {
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s ease;
}

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

.refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.refresh-btn svg {
  display: block;
}

/* Message styles */
.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.message.error {
  background: rgba(185, 28, 28, 0.1);
  color: var(--error-message);
  border: 1px solid var(--error-message);
}

.message.success {
  background: rgba(22, 163, 74, 0.1);
  color: var(--success-message);
  border: 1px solid var(--success-message);
}

.message.hidden {
  display: none;
}

/* Subscription Section */
.subscription-section {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--panel);
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--outline);
}

.subscription-section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.5rem;
}

.subscription-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subscription-label {
  color: var(--muted);
  font-size: 0.875rem;
}

.scheduled-text {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 1rem;
  margin: 0;
}

.subscription-plan {
  font-weight: 600;
  color: var(--accent-2);
  font-size: 1rem;
}

.subscription-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

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

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

.btn-danger {
  background: transparent;
  color: var(--error-message);
  border: 1px solid var(--error-message);
}

.btn-danger:hover {
  background: var(--error-message);
  color: var(--text);
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #0b140f;
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

/* Payment History */
.payment-history-card {
  margin-top: 1.5rem;
}

.payments-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.payments-table th,
.payments-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid var(--outline);
}

.payments-table th {
  background: var(--panel);
  font-weight: 600;
}

.payments-table td {
  color: var(--muted);
  background: var(--light-bg);
}

.payments-table tr:hover td {
  background: var(--panel);
  color: var(--text);
}

.payments-table .no-data {
  text-align: center;
  color: var(--muted);
  font-style: italic;
}

.payment-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-type-badge.subscription {
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-2);
}

.payment-type-badge.one_time {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-message);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--outline);
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: var(--panel);
  border: 1px solid var(--outline);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--light-bg);
  border-color: var(--accent-2);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Dialog Overlay */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
  overflow-y: auto;
}

.dialog-content {
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid var(--outline);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.dialog-content-sm {
  max-width: 450px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.dialog-header h2 {
  font-size: 1.25rem;
  margin: 0;
  border: none;
  padding: 0;
}

.dialog-close-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dialog-close-btn:hover {
  color: var(--text);
  background: var(--light-bg);
}

.dialog-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.dialog-text {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.dialog-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.dialog-plan-card {
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.dialog-plan-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.dialog-plan-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.dialog-plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-2);
}

.dialog-plan-period {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.dialog-plan-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
  padding: 0;
}

.dialog-plan-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.dialog-plan-features li::before {
  content: "\2713";
  color: var(--success-message);
  font-weight: bold;
}

.dialog-plan-card .btn {
  width: 100%;
}

.dialog-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.dialog-actions .btn {
  min-width: 140px;
}

.dialog-message {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .payments-table {
    font-size: 0.875rem;
  }

  .payments-table th,
  .payments-table td {
    padding: 0.5rem;
  }

  .subscription-section-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dialog-plans {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    flex-direction: column;
  }

  .dialog-actions .btn {
    width: 100%;
  }
}