/*
 * Application styles
 */

:root {
  --sidebar-width: 250px;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-color: #f8fafc;
  --sidebar-bg: #1e293b;
  --sidebar-text: #e2e8f0;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
  --btn-submit-bg: #3b82f6;
  --btn-submit-hover: #2563eb;
  --warning: #f59e0b;
  --bg-secondary: #f1f5f9;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-google {
  background-color: var(--primary-color);
  color: white;
}

.btn-google:hover {
  background-color: var(--primary-hover);
}

.btn-logout-small {
  background: transparent;
  border: 1px solid var(--sidebar-text);
  color: var(--sidebar-text);
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-logout-small button:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Landing page */
.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-color);
}

.landing-logo {
  height: 40px;
  width: auto;
}

.landing-nav {
  display: flex;
  gap: 24px;
}

.landing-nav a {
  color: var(--text-color);
  font-size: 14px;
}

.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.landing-main h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.landing-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.5;
}

.landing-footer {
  padding: 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.landing-cta-details {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

.landing-trust {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}

.btn-google {
  padding: 14px 28px;
  font-size: 17px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Landing page responsive */
@media (max-width: 768px) {
  .landing-header {
    padding: 16px 20px;
  }

  .landing-nav {
    gap: 16px;
  }

  .landing-main {
    padding: 32px 20px;
  }

  .landing-main h1 {
    font-size: 32px;
  }

  .landing-subtitle {
    font-size: 17px;
  }

  .landing-footer {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .landing-main h1 {
    font-size: 26px;
  }

  .landing-subtitle {
    font-size: 16px;
  }

  .btn-google {
    width: 100%;
    max-width: 300px;
  }
}

/* Authenticated layout */
.authenticated-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
}

.sidebar-header {
  display:flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
  height: 32px;
  width: auto;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.sidebar-link.active {
  background: rgba(255, 255, 255, 0.15);
  border-left: 3px solid var(--primary-color);
}

.sidebar-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.sidebar-username {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  background: var(--bg-color);
  padding: 32px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
}

.page-header-content {
  flex: 1;
}

.page-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 600px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  animation: toast-in 0.3s ease;
  max-width: 360px;
}

.toast-success {
  background: #166534;
  color: white;
}

.toast-error {
  background: #991b1b;
  color: white;
}

.toast-hide {
  animation: toast-out 0.5s ease forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Legal pages */
.container.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.container.legal h1 {
  margin-bottom: 16px;
}

.container.legal h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
}

.container.legal p {
  margin-bottom: 12px;
}

/* Page header with actions */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

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

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 600;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb-sep {
  color: #cbd5e1;
  font-weight: 400;
}

.breadcrumb-current {
  color: var(--text-color);
}

/* Filters bar */
.filters-bar {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.filters-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.filter-clear-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
}

.filter-clear-btn:hover {
  color: #64748b;
  background: #f1f5f9;
}

.search-input {
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  width: 280px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.filter-select-multi {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  min-width: 200px;
  min-height: 38px;
}

.filter-select-multi:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Sortable headers */
.sortable-header {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.sortable-header:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.sortable-header.active {
  color: var(--primary-color);
}

/* Buttons extended */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-color);
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #cbd5e1;
  text-decoration: none;
}

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

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 12px;
  min-width: 28px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon i {
  display: inline-flex;
  flex-shrink: 0;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background-color: #d97706;
}

/* Status action buttons */
.btn-status-submit {
  background-color: var(--btn-submit-bg);
  color: white;
}

.btn-status-submit:hover {
  background-color: var(--btn-submit-hover);
}

.btn-status-reopen {
  background-color: #f59e0b;
  color: white;
}

.btn-status-reopen:hover {
  background-color: #d97706;
}

.btn-status-close {
  background-color: #6b7280;
  color: white;
}

.btn-status-close:hover {
  background-color: #4b5563;
}

/* Profiles grid */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1200px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.profile-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.profile-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
}

.profile-card-header:hover {
  background-color: #f8fafc;
  text-decoration: none;
}

.profile-card-header h3 {
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  color: var(--text-color);
}

.profile-card-body {
  padding: 20px 24px;
  flex: 1;
}

.profile-job-title {
  font-weight: 500;
  margin-bottom: 8px;
}

.profile-location {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 8px;
}

.profile-availability {
  font-size: 14px;
  color: #64748b;
}

.profile-stats {
  display: flex;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

a.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 2px;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

a.profile-stat:hover {
  background-color: #f1f5f9;
  text-decoration: none;
}

.profile-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-stat-value i,
.profile-stat-value svg {
  display: inline-flex;
  vertical-align: middle;
}

.profile-stat-pending {
  color: #92400e;
}

.profile-stat-submitted {
  color: #1e40af;
}

.profile-stat-closed {
  color: #64748b;
}

.profile-stat-label {
  font-size: 12px;
  color: #94a3b8;
}

.profile-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  text-decoration: none;
  transition: gap 0.2s;
}

.btn-view-profile:hover {
  text-decoration: none;
  gap: 12px;
}

.btn-view-profile .btn-arrow {
  transition: transform 0.2s;
}

.btn-view-profile:hover .btn-arrow {
  transform: translateX(2px);
}

/* Dropdown */
.dropdown {
  position: relative;
  margin-left: auto;
}

.dropdown-toggle {
  min-width: 36px;
  padding: 8px 12px;
  font-size: 16px;
  line-height: 1;
}

.btn-icon-only {
  background: none;
  border: none;
  color: #64748b;
  padding: 8px;
  min-width: 32px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-only:hover {
  background: #f1f5f9;
  color: var(--text-color);
}

.dropdown-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  margin-bottom: 4px;
  z-index: 10;
  display: none;
  overflow: hidden;
}

.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.2s;
}

.dropdown-item:hover {
  background: #f8fafc;
  text-decoration: none;
}

.dropdown-item-danger {
  color: #ef4444;
}

.dropdown-item-danger:hover {
  background: #fef2f2;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
}

.badge-success {
  background-color: #dcfce7;
  color: #166534;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-profile {
  background-color: #ede9fe;
  color: #6d28d9;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.empty-state p {
  margin-bottom: 12px;
  color: #64748b;
}

.empty-state .btn {
  margin-top: 16px;
}

/* Forms */
.profile-form {
  max-width: 800px;
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.form-errors {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 16px 20px;
  border-bottom: 1px solid #fca5a5;
}

.form-errors h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.form-errors ul {
  margin-left: 20px;
}

.form-errors li {
  font-size: 14px;
}

.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-hint {
  color: #64748b;
  font-size: 14px;
  margin-top: -12px;
  margin-bottom: 20px;
}

.optional-badge {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.count-badge {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group select.multi-select {
  height: 120px;
}

/* Phone input */
.phone-input {
  display: flex;
  gap: 8px;
}

.phone-input .phone-country {
  width: 120px;
  flex-shrink: 0;
}

.phone-input .phone-number {
  flex: 1;
}

/* Searchable select */
.searchable-select {
  position: relative;
  width: 120px;
  flex-shrink: 0;
}

.searchable-select-trigger {
  width: 100%;
  padding: 10px 12px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  text-align: left;
}

.searchable-select-trigger:hover {
  border-color: #9ca3af;
}

.searchable-select-arrow {
  font-size: 10px;
  color: #6b7280;
}

.searchable-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  min-width: 180px;
}

.searchable-select-dropdown.open {
  display: block;
}

.searchable-select-search {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  outline: none;
}

.searchable-select-options {
  max-height: 200px;
  overflow-y: auto;
}

.searchable-select-option {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
}

.searchable-select-option:hover {
  background: #f3f4f6;
}

.searchable-select-option.selected {
  background: #eff6ff;
  color: #2563eb;
}

.form-hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group-small {
  flex: 0 0 140px;
}

.form-group-large {
  flex: 1;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radio-group input[type="radio"] {
  width: auto;
  margin-left: 12px;
}

.radio-group input[type="radio"]:first-child {
  margin-left: 0;
}

.radio-group label {
  display: inline;
  font-weight: 400;
  margin-bottom: 0;
  cursor: pointer;
}

/* File picker */
.file-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-picker-current {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 14px;
}

.file-picker-icon {
  font-size: 18px;
}

.file-picker-name {
  flex: 1;
  font-weight: 500;
  color: #166534;
}

.file-picker-view {
  color: #16a34a;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.file-picker-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.file-picker-replace {
  padding: 5px 12px;
  font-size: 13px;
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-picker-replace:hover {
  color: #1d4ed8;
}

.file-picker-cancel {
  padding: 6px 12px;
  font-size: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  align-self: center;
}

.file-picker-cancel:hover {
  color: #374151;
  text-decoration: underline;
}

.file-picker-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
}

.file-picker-dropzone:hover {
  border-color: var(--primary-color);
  background: #eff6ff;
}

.file-picker-dropzone.dragover {
  border-color: var(--primary-color);
  background: #dbeafe;
}

.file-picker-dropzone.loading {
  pointer-events: none;
  background: #f8fafc;
  border-color: #cbd5e1;
}

.file-picker-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 14px;
}

.file-picker-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.file-picker-icon-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  font-size: 18px;
  color: #94a3b8;
}

.file-picker-selected {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
  font-size: 14px;
}

.file-picker-filename {
  font-weight: 500;
}

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

.form-actions {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-actions-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* Profile show page */
.profile-show {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.show-section {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}

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

.show-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #64748b;
}

.info-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 24px;
}

.info-grid dt {
  font-weight: 500;
  color: #64748b;
  font-size: 14px;
}

.info-grid dd {
  font-size: 14px;
}

.text-muted {
  color: #94a3b8;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-color);
}

.experience-summary {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.experience-summary h3 {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 8px;
}

.experience-summary p {
  font-size: 14px;
  white-space: pre-wrap;
}

/* Custom fields */
.custom-field-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 6px;
}

.custom-field-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.custom-field-label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: #64748b;
}

.custom-field-row .remove-field {
  flex-shrink: 0;
  align-self: flex-end;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

textarea.auto-grow {
  resize: none;
  overflow: hidden;
  min-height: 38px;
  line-height: 1.4;
}

.custom-field-add {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}

.custom-field-add .form-row {
  margin-bottom: 12px;
}

/* ATS Score */
.badge-ats-good {
  background-color: #dcfce7;
  color: #166534;
}

.badge-ats-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-ats-bad {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-ats-unknown {
  background-color: #f1f5f9;
  color: #64748b;
}

.ats-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ATS Analysis Box */
.ats-analysis-box {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.ats-analysis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ats-analysis-title {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ats-score-badge {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.ats-score-badge.ats-good {
  background: #dcfce7;
  color: #166534;
}

.ats-score-badge.ats-warning {
  background: #fef3c7;
  color: #92400e;
}

.ats-score-badge.ats-bad {
  background: #fee2e2;
  color: #991b1b;
}

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

.ats-checklist li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.ats-checklist li:last-child {
  border-bottom: none;
}

.ats-checklist .ats-ok {
  color: #166534;
}

.ats-checklist .ats-warn {
  color: #92400e;
}

.ats-checklist .ats-fail {
  color: #991b1b;
}

.profile-badges {
  display: flex;
  gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 4px 0;
  }

  .info-grid dt {
    margin-top: 12px;
  }

  .info-grid dd {
    margin-bottom: 0;
  }
}

/* CV Extraction Status */
.cv-extraction-status {
  margin: 12px 0;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 6px;
}

.extraction-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.extraction-text {
  font-size: 14px;
  color: #64748b;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-processing {
  background-color: #dbeafe;
  color: #1e40af;
  animation: pulse 1.5s infinite;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-failed {
  background-color: #fee2e2;
  color: #991b1b;
}

.error-link {
  margin-left: 8px;
  font-size: 13px;
}

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

/* New Profile Page */
.new-profile-container {
  max-width: 560px;
}

.new-profile-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 32px;
}

.new-profile-card h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.new-profile-intro {
  color: #64748b;
  margin-bottom: 24px;
  font-size: 15px;
}

.new-profile-form .form-group {
  margin-bottom: 24px;
}

.new-profile-form .form-actions {
  padding: 0;
  border-top: none;
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ATS Details */
.ats-details {
  margin-top: 12px;
}

.ats-details summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--primary-color);
  padding: 4px 0;
}

.ats-details summary:hover {
  text-decoration: underline;
}

/* Form value (read-only display) */
.form-value {
  font-size: 14px;
  color: var(--text-color);
  padding: 10px 0;
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* CV Content */
.cv-content-textarea {
  font-family: monospace;
  font-size: 13px;
  line-height: 1.5;
  background: #f8fafc;
  resize: vertical;
}

.cv-content-details {
  margin-top: 12px;
}

.cv-content-details summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-color);
  padding: 8px 0;
}

.cv-content-details summary:hover {
  text-decoration: underline;
}

.cv-content-details .form-group {
  margin-top: 12px;
}

/* Checkbox group */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.checkbox-label {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-color);
}

.checkbox-label:hover {
  color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle;
  accent-color: var(--primary-color);
}

.checkbox-label:has(input:checked) {
  color: var(--primary-color);
}

/* Language list */
.languages-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.language-tag {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
}

.language-tag .language-name {
  font-weight: 500;
  color: var(--text-color);
  width: 100px;
}

.language-level-inline {
  flex: 1;
  padding: 2px 4px;
  font-size: 13px;
  border: none !important;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.language-level-inline:hover {
  color: var(--primary-color);
}

.language-remove {
  background: none;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  padding: 0 0 0 8px;
  line-height: 1;
  transition: color 0.15s;
}

.language-remove:hover {
  color: #ef4444;
}

.language-add-select {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px dashed var(--border-color);
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.language-add-select:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: white;
}

.language-add-select option[disabled] {
  color: #cbd5e1;
}

.btn-remove-language {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-remove-language:hover {
  color: #ef4444;
}

/* Tag Selector - Multi-select with tags */
.tag-selector {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: white;
  min-height: 44px;
}

.tag-selector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  min-height: 28px;
}

.tag-selector-tags:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-size: 14px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  font-size: 13px;
  color: #1e40af;
}

.tag-item-remove {
  background: none;
  border: none;
  color: #60a5fa;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.tag-item-remove:hover {
  background: #dbeafe;
  color: #1e40af;
}

.tag-selector-dropdown {
  position: relative;
  border-top: 1px solid var(--border-color);
}

.tag-selector-input {
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  background: #f8fafc;
}

.tag-selector-input:focus {
  outline: none;
  background: white;
}

.tag-selector-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tag-selector-options.show {
  display: block;
}

.tag-selector-option {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.tag-selector-option:last-child {
  border-bottom: none;
}

.tag-selector-option:hover {
  background: #f8fafc;
}

.tag-selector-option.selected {
  display: none;
}

.tag-selector-empty {
  padding: 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

/* Inline tag selector (for filters) */
.tag-selector-inline {
  position: relative;
  min-height: auto;
  border: none;
}

.tag-selector-inline .tag-selector-tags {
  padding: 6px 10px;
  min-height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  background: white;
  min-width: 200px;
  align-items: center;
}

.tag-selector-inline .tag-selector-tags:not(.has-tags)::before {
  content: attr(data-placeholder);
  color: #94a3b8;
  font-size: 14px;
}

.tag-selector-inline .tag-selector-tags:hover {
  border-color: var(--primary-color);
}

.tag-selector-inline .tag-item {
  padding: 2px 6px 2px 8px;
  font-size: 12px;
}

.tag-selector-inline .tag-item-remove {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.tag-selector-inline .tag-selector-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-top: 4px;
  display: none;
  z-index: 100;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tag-selector-inline .tag-selector-dropdown.show {
  display: block;
}

.tag-selector-inline .tag-selector-input {
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--border-color);
}

.tag-selector-inline .tag-selector-options {
  position: static;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0 0 6px 6px;
}

/* Tabs */
.tabs {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--text-color);
  background: #f8fafc;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: white;
}

.tab-count {
  display: inline-block;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  margin-left: 6px;
}

.tab-btn.active .tab-count {
  background: #eff6ff;
  color: var(--primary-color);
}

.tabs-content {
  padding: 20px;
}

.tab-panel.hidden {
  display: none;
}

/* Data Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
}

.data-table td {
  font-size: 14px;
}

.data-table tbody tr:hover {
  background: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.job-url {
  color: var(--text-color);
  font-weight: 500;
}

.job-url:hover {
  color: var(--primary-color);
}

.table-actions {
  white-space: nowrap;
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.action-buttons form {
  display: contents;
}

.action-buttons form button {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-buttons button.btn-status-submit,
.action-buttons form button.btn-status-submit {
  background-color: var(--btn-submit-bg);
  color: white;
}

.action-buttons button.btn-status-submit:hover,
.action-buttons form button.btn-status-submit:hover {
  background-color: var(--btn-submit-hover);
}

.action-buttons button.btn-status-reopen,
.action-buttons form button.btn-status-reopen {
  background-color: #f59e0b;
  color: white;
}

.action-buttons button.btn-status-reopen:hover,
.action-buttons form button.btn-status-reopen:hover {
  background-color: #d97706;
}

.action-buttons button.btn-status-close,
.action-buttons form button.btn-status-close {
  background-color: #6b7280;
  color: white;
}

.action-buttons button.btn-status-close:hover,
.action-buttons form button.btn-status-close:hover {
  background-color: #4b5563;
}

.action-buttons button.btn-danger,
.action-buttons form button.btn-danger {
  background-color: #ef4444;
  color: white;
}

.action-buttons button.btn-danger:hover,
.action-buttons form button.btn-danger:hover {
  background-color: #dc2626;
}

.action-buttons a.btn {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-buttons a.btn-secondary {
  background-color: #e2e8f0;
  color: var(--text-color);
}

.action-buttons a.btn-secondary:hover {
  background-color: #cbd5e1;
}

/* Empty state small */
.empty-state-small {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.pagy {
  display: flex;
  gap: 4px;
}

.pagy a,
.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  background: white;
}

.pagy a:hover {
  background: #f8fafc;
  text-decoration: none;
}

.pagy a[aria-current="page"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.pagy a[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Status badges */
.badge-status-unsubmitted {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-status-submitted {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-status-closed {
  background-color: #f1f5f9;
  color: #64748b;
}

/* Simple form container */
.simple-form-container {
  max-width: 600px;
}

.page-header-inline {
  margin-bottom: 24px;
}

.page-header-inline h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.page-intro {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.page-intro-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--warning);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
}

.page-intro-tip svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: var(--warning);
}

.simple-form {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.simple-form .form-section {
  padding: 24px;
}

.simple-form .form-section + .form-section {
  border-top: 1px solid var(--border-color);
}

.simple-form .form-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.simple-form .form-static {
  margin: 0;
  padding: 10px 0;
  color: #64748b;
  font-size: 14px;
}

.simple-form .form-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Saved Answers */
.saved-answers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.saved-answer-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}

.saved-answer-question {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.saved-answer-response {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.saved-answer-response p {
  margin: 0 0 8px 0;
}

.saved-answer-response p:last-child {
  margin-bottom: 0;
}

.saved-answer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.saved-answer-date {
  font-size: 12px;
  color: #94a3b8;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

/* Profile Layout with Sidebar */
.profile-layout ~ .page-header,
.page-header:has(+ .profile-layout) {
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 10;
  margin: -32px -32px 16px -32px;
  padding: 32px 32px 16px 32px;
}

.profile-layout {
  display: flex;
  gap: 32px;
  max-width: 1200px;
}

.profile-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 110px;
  height: fit-content;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.profile-nav {
  padding: 8px 0;
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.profile-nav-link:hover {
  background: #f8fafc;
  text-decoration: none;
}

.profile-nav-link.active {
  background: #eff6ff;
  border-left-color: var(--primary-color);
  color: var(--primary-color);
}

.profile-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 50vh;
}

/* Card-style sections */
.profile-content .form-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 16px;
}

.profile-content .form-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

/* Remove container styles when using layout */
.profile-layout .profile-form {
  background: transparent;
  border: none;
  max-width: none;
}

/* Responsive */
@media (max-width: 900px) {
  .profile-layout {
    flex-direction: column;
  }

  .profile-sidebar {
    position: static;
    width: 100%;
    max-height: none;
  }

  .profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }

  .profile-nav-link {
    padding: 8px 12px;
    border-left: none;
    border-radius: 6px;
    font-size: 12px;
  }

  .profile-nav-link.active {
    border-left: none;
    background: var(--primary-color);
    color: white;
  }
}

/* Dashboard */
.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.dashboard-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 24px;
}

.dashboard-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-card .card-header h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.card-link {
  font-size: 13px;
  color: var(--primary-color);
}

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

.btn-edit-goal {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
}

.btn-edit-goal:hover {
  text-decoration: underline;
}

/* Objectives */
.dashboard-objectives {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-color: #bfdbfe;
}

.objectives-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.progress-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.objective-main {
  display: flex;
  flex-direction: column;
}

.objective-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.objective-label {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

.objective-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.breakdown-item {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.breakdown-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
}

.breakdown-label {
  font-size: 13px;
  color: #64748b;
}

.progress-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
}

.progress-count {
  font-size: 13px;
  color: #64748b;
}

.progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-fill-daily {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.progress-fill-weekly {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.progress-fill-monthly {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-item-complete {
  background: #f0fdf4;
  padding: 12px;
  margin: -12px;
  border-radius: 8px;
}

.progress-success {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 8px;
}

/* Goal Form */
.goal-setup p {
  color: #64748b;
  margin-bottom: 16px;
}

.goal-form .form-group {
  margin-bottom: 16px;
}

.goal-input {
  width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
}

.goal-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* Stats Cards */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon-today {
  background: #dbeafe;
  color: #2563eb;
}

.stat-icon-week {
  background: #ede9fe;
  color: #7c3aed;
}

.stat-icon-month {
  background: #d1fae5;
  color: #059669;
}

.stat-icon-pending {
  background: #fef3c7;
  color: #d97706;
}

.stat-icon-submitted {
  background: var(--btn-submit-bg);
  color: white;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

/* Application Lists */
.dashboard-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.application-item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.application-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.application-item:first-child {
  padding-top: 0;
}

.application-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.application-title {
  font-size: 14px;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.application-company {
  font-size: 13px;
  color: #64748b;
}

.application-date {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: 12px;
}

.empty-list {
  text-align: center;
  padding: 24px;
  color: #94a3b8;
}

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

/* Clickable application links */
.application-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
  gap: 12px;
}

.application-link:hover {
  text-decoration: none;
}

.application-link:hover .application-title {
  color: var(--primary-color);
}

.btn-mark-submitted {
  background: var(--btn-submit-bg);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
  transition: background 0.2s;
}

.btn-mark-submitted:hover {
  background: var(--btn-submit-hover);
}

/* Research list */
.dashboard-research {
  display: flex;
  flex-direction: column;
}

.research-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
}

.research-item {
  border-bottom: 1px solid var(--border-color);
}

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

.research-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}

.research-link:hover {
  text-decoration: none;
}

.research-link:hover .research-title {
  color: var(--primary-color);
}

.research-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.research-date {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  margin-left: 12px;
}

/* Onboarding Checklist */
.onboarding-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.onboarding-header h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.onboarding-header p {
  color: #64748b;
  font-size: 14px;
}

.onboarding-progress-badge {
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.onboarding-step.completed {
  opacity: 0.7;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: #e2e8f0;
  color: #64748b;
  flex-shrink: 0;
}

.onboarding-step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-content {
  flex: 1;
}

.step-title {
  font-weight: 500;
  margin-bottom: 2px;
}

.step-description {
  font-size: 13px;
  color: #64748b;
}

.step-action {
  flex-shrink: 0;
}

.onboarding-footer {
  margin-top: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.onboarding-footer-separator {
  color: #cbd5e1;
}

.btn-text {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 14px;
}

.btn-text:hover {
  text-decoration: underline;
}

.btn-text-muted {
  color: #94a3b8;
  font-size: 13px;
}

/* Onboarding Minimized Bar */
.onboarding-minimized {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #e0e7ff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 24px;
}

.onboarding-minimized-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.onboarding-minimized-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

/* Onboarding Modal */
.onboarding-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.onboarding-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.onboarding-modal-large {
  max-width: 600px;
}

.onboarding-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.onboarding-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #1e293b;
}

.onboarding-modal-body {
  padding: 24px;
}

.onboarding-modal-body p {
  margin-bottom: 16px;
  color: #64748b;
}

.onboarding-modal-body ol {
  margin: 0 0 24px 20px;
  color: #1e293b;
}

.onboarding-modal-body ol li {
  margin-bottom: 8px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.modal-actions-spaced {
  justify-content: space-between;
}

/* Extension Features */
.extension-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.extension-feature {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  flex-shrink: 0;
}

.feature-icon-primary {
  background: #3b82f6;
  color: white;
}

.feature-tip {
  margin: 12px 0;
  padding: 10px 12px;
  background: #fef3c7;
  border-radius: 4px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.5;
}

.feature-tip svg {
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
  margin-top: -2px;
}

.feature-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-content p {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.feature-content p.feature-tip {
  margin: 12px 0;
}

/* Extension Pin Guide */
.extension-pin-guide {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.extension-pin-guide p {
  margin-bottom: 8px;
  color: #166534;
}

.extension-pin-guide ol {
  margin: 0 0 0 20px;
  color: #166534;
}

.extension-pin-guide ol li {
  margin-bottom: 4px;
}

/* Extension Detection Status */
.extension-detection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  padding: 12px;
  background: #eff6ff;
  border-radius: 6px;
  color: #1e40af;
  font-size: 14px;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

.spinner-small {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.btn-loading {
  pointer-events: none;
  opacity: 0.8;
}

/* Modal Fallback */
.modal-fallback {
  margin-top: 16px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* Onboarding Completed */
.onboarding-completed {
  display: none;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f0fdf4;
  border-radius: 8px;
}

.onboarding-completed-icon {
  width: 48px;
  height: 48px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.onboarding-completed-icon svg {
  stroke: #16a34a;
}

.onboarding-completed-content {
  flex: 1;
}

.onboarding-completed-content p {
  color: #166534;
  font-weight: 500;
  margin: 0;
}

.onboarding-completed-subtitle {
  font-weight: 400 !important;
  font-size: 14px;
  color: #15803d !important;
  margin-top: 4px !important;
}

.onboarding-completed-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.onboarding-progress-badge.completed {
  background: #16a34a;
}

/* ========================================
   Landing Page Styles
   ======================================== */

.lp {
  min-height: 100vh;
  background: white;
}

.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.lp-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
}

.lp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-logo {
  height: 36px;
  width: auto;
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.lp-nav a {
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.lp-nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.lp-nav .btn {
  margin-left: 8px;
}

/* Hero Section */
.lp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  min-height: calc(100vh - 69px);
}

.lp-hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 24px;
}

.lp-hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 40px;
}

.lp-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Make button_to forms behave like inline elements in hero section only */
.lp-hero .lp-hero-ctas form {
  display: contents;
}

.lp-hero .lp-hero-ctas form .btn,
.lp-hero .lp-hero-ctas > a.btn {
  flex: 1;
  min-width: fit-content;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-large svg {
  flex-shrink: 0;
}

/* Hero Visual / Mockup */
.lp-hero-visual {
  display: flex;
  justify-content: center;
}

.lp-hero-mockup {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.lp-mockup-browser {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.lp-mockup-dots {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.lp-mockup-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2e8f0;
}

.lp-mockup-dots span:first-child { background: #fca5a5; }
.lp-mockup-dots span:nth-child(2) { background: #fcd34d; }
.lp-mockup-dots span:last-child { background: #86efac; }

.lp-mockup-content {
  padding: 24px;
  position: relative;
}

.lp-mockup-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-mockup-field {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
}

.lp-field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lp-field-value {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 500;
}

.lp-field-filled {
  background: #eff6ff;
  border-color: var(--primary-color);
}

.lp-field-filled .lp-field-value {
  color: var(--primary-color);
}

.lp-field-filling {
  background: #fef3c7;
  border-color: #f59e0b;
  animation: pulse-border 1.5s ease-in-out infinite;
}

@keyframes pulse-border {
  0%, 100% { border-color: #f59e0b; }
  50% { border-color: #fbbf24; }
}

.lp-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #f59e0b;
}

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

.lp-mockup-widget {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--sidebar-bg);
  border-radius: 8px;
  padding: 12px 16px;
  min-width: 200px;
}

.lp-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.lp-widget-logo {
  height: 20px;
  width: auto;
}

.lp-widget-status {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-bottom: 8px;
}

.lp-widget-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.lp-widget-progress-fill {
  height: 100%;
  width: 60%;
  background: var(--primary-color);
  border-radius: 2px;
  animation: progress-fill 2s ease-in-out infinite;
}

@keyframes progress-fill {
  0% { width: 20%; }
  50% { width: 80%; }
  100% { width: 20%; }
}

/* Problem Section */
.lp-problem {
  background: var(--bg-color);
  padding: 80px 0;
}

.lp-problem h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text-color);
}

.lp-problem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.lp-problem-grid .lp-problem-item {
  flex: 0 1 280px;
}

.lp-problem-item {
  text-align: center;
  padding: 32px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.lp-problem-icon {
  width: 56px;
  height: 56px;
  background: #fee2e2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #dc2626;
}

.lp-problem-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-problem-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Steps Section */
.lp-steps {
  padding: 80px 0;
  background: white;
}

.lp-steps h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

.lp-section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

.lp-steps-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 24px;
}

.lp-step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.lp-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lp-step-content p {
  margin-top: auto;
}

.lp-step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.lp-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.lp-step-arrow {
  color: var(--border-color);
  flex-shrink: 0;
  align-self: center;
}

/* Features Section */
.lp-features {
  padding: 80px 0;
  background: var(--bg-color);
}

.lp-features h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

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

.lp-feature-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, border-color 0.2s;
}

.lp-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.lp-feature-icon {
  width: 48px;
  height: 48px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.lp-feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Preview Section */
.lp-preview {
  padding: 80px 0;
  background: white;
}

.lp-preview-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.lp-preview-text h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
}

.lp-preview-text > p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

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

.lp-preview-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-color);
}

.lp-preview-list svg {
  color: #10b981;
  flex-shrink: 0;
}

.lp-dashboard-mockup {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 24px;
}

.lp-dash-header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.lp-dash-stat {
  flex: 1;
  text-align: center;
  padding: 16px;
  background: var(--bg-color);
  border-radius: 8px;
}

.lp-dash-stat-value {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.lp-dash-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.lp-dash-progress {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.lp-dash-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 8px;
}

.lp-dash-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.lp-dash-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
}

.lp-dash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-dash-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-color);
  border-radius: 8px;
}

.lp-dash-item-title {
  font-size: 14px;
  font-weight: 500;
}

.lp-dash-item-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.lp-status-submitted {
  background: #dbeafe;
  color: #1e40af;
}

.lp-status-pending {
  background: #fef3c7;
  color: #92400e;
}

/* Testimonials Section */
.lp-testimonials {
  padding: 80px 0;
  background: var(--bg-color);
}

.lp-testimonials h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}

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

.lp-testimonial {
  background: white;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.lp-testimonial-stars {
  display: flex;
  gap: 4px;
  color: #fbbf24;
  margin-bottom: 16px;
}

.lp-testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 24px 0;
  font-style: italic;
}

.lp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-testimonial-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.lp-testimonial-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.lp-testimonial-location {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Pricing Section */
.lp-pricing {
  padding: 80px 0;
  background: white;
}

.lp-pricing-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-radius: 16px;
  border: 1px solid #bfdbfe;
}

.lp-pricing-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lp-pricing-card h2 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lp-pricing-card > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.lp-pricing-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  text-align: left;
}

.lp-pricing-column h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-color);
}

.lp-pricing-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-pricing-column li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-color);
}

.lp-pricing-column li svg {
  color: #10b981;
  flex-shrink: 0;
}

.lp-pricing-premium {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.lp-pricing-premium h4 {
  color: var(--primary-color);
}

/* FAQ Section */
.lp-faq {
  padding: 80px 0;
  background: var(--bg-color);
}

.lp-faq h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
}

.lp-faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.lp-faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.lp-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.lp-faq-question:hover {
  background: var(--bg-color);
}

.lp-faq-question svg {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.lp-faq-item.open .lp-faq-question svg {
  transform: rotate(180deg);
}

.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lp-faq-item.open .lp-faq-answer {
  max-height: 200px;
}

.lp-faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Final CTA Section */
.lp-final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  text-align: center;
}

.lp-final-cta h2 {
  font-size: 36px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.lp-final-cta p {
  font-size: 18px;
  color: #94a3b8;
  margin-bottom: 32px;
}

.lp-final-cta .lp-hero-ctas {
  justify-content: center;
}

/* Footer */
.lp-footer {
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
}

.lp-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lp-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lp-footer-logo {
  height: 28px;
  width: auto;
}

.lp-footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.lp-footer-nav {
  display: flex;
  gap: 24px;
}

.lp-footer-nav a {
  font-size: 14px;
  color: var(--text-secondary);
}

.lp-footer-nav a:hover {
  color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1024px) {
  .lp-hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 24px;
    min-height: auto;
  }

  .lp-hero h1 {
    font-size: 42px;
  }

  .lp-hero-visual {
    order: -1;
  }

  .lp-steps-grid {
    flex-wrap: wrap;
  }

  .lp-step-arrow {
    display: none;
  }

  .lp-preview-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lp-preview-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .lp-nav {
    display: none;
  }

  .lp-hero h1 {
    font-size: 32px;
  }

  .lp-hero-subtitle {
    font-size: 16px;
  }

  .lp-hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .lp-hero-ctas > a.btn,
  .lp-hero-ctas form .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }

  .lp-problem-grid,
  .lp-features-grid,
  .lp-testimonials-grid {
    grid-template-columns: 1fr;
  }

  .lp-steps-grid {
    flex-direction: column;
  }

  .lp-step {
    max-width: 100%;
  }

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

  .lp-footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .lp-footer-brand {
    flex-direction: column;
  }

  .lp-mockup-widget {
    position: static;
    margin-top: 16px;
  }
}

/* Header Brand */
.lp-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-color);
}

/* Extension Mockup (V2 - matches actual extension) */
.lp-extension-mockup {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 380px;
}

.lp-ext-header {
  background: #1e293b;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-ext-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-ext-logo {
  height: 20px;
  width: auto;
}

.lp-ext-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.lp-ext-header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.lp-ext-profile-select {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 12px;
}

.lp-ext-profile-select svg {
  opacity: 0.7;
}

.lp-ext-header-right {
  display: flex;
  gap: 8px;
}

.lp-ext-btn {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1;
  cursor: default;
}

.lp-ext-body {
  background: #f8fafc;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-ext-field {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
}

.lp-ext-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.lp-ext-field-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lp-ext-field-check {
  color: #10b981;
}

.lp-ext-field-value {
  font-size: 14px;
  color: var(--text-color);
  font-weight: 500;
}

.lp-ext-field-done {
  background: #f0fdf4;
  border-color: #86efac;
}

.lp-ext-field-done .lp-ext-field-value {
  color: #166534;
}

.lp-ext-field-active {
  background: #fefce8;
  border-color: #fde047;
}

.lp-ext-typing::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #ca8a04;
}

.lp-ext-progress-section {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
}

.lp-ext-progress-text {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.lp-ext-progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.lp-ext-progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 3px;
  animation: progress-fill-ext 2s ease-in-out infinite;
}

@keyframes progress-fill-ext {
  0% { width: 50%; }
  50% { width: 85%; }
  100% { width: 50%; }
}

.lp-ext-progress-percent {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
}

/* Problem Section Updates */
.lp-problem-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

.lp-problem-positive {
  border-color: #86efac;
}

.lp-icon-positive {
  background: #dcfce7;
  color: #16a34a;
}

/* Feature Icon AI variant */
.lp-feature-icon-ai {
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  color: #4f46e5;
}

/* Dashboard Mockup V2 */
.lp-dashboard-mockup-v2 {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
}

.lp-dash-goals {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-radius: 10px;
  margin-bottom: 20px;
}

.lp-dash-goals-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.lp-dash-goals-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.lp-dash-goals-current {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
}

.lp-dash-goals-separator {
  font-size: 28px;
  color: #94a3b8;
}

.lp-dash-goals-target {
  font-size: 28px;
  font-weight: 600;
  color: #64748b;
}

.lp-dash-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.lp-dash-progress-item {
  padding: 0 4px;
}

.lp-dash-progress-item-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 6px;
}

.lp-dash-progress-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.lp-dash-progress-bar-blue {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 4px;
}

.lp-dash-progress-bar-purple {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 4px;
}

.lp-dash-progress-bar-green {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 4px;
}

.lp-dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.lp-dash-stat-card {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.lp-dash-stat-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

.lp-dash-stat-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
}

.lp-dash-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.lp-dash-top-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.lp-dash-top-row .lp-dash-goals {
  flex: 1;
  margin-bottom: 0;
}

.lp-dash-top-row .lp-dash-progress-list {
  margin-bottom: 0;
  margin-top: 16px;
}

.lp-dash-top-row .lp-dash-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 100px;
}

.lp-dash-top-row .lp-dash-stat-card {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.lp-dash-top-row .lp-dash-stat-value {
  font-size: 18px;
  min-width: 28px;
}

.lp-dash-top-row .lp-dash-stat-label {
  font-size: 10px;
}

.lp-dash-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lp-dash-list {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 12px;
}

.lp-dash-list-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.lp-dash-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
}

.lp-dash-list-item:last-child {
  border-bottom: none;
}

.lp-dash-list-date {
  color: var(--text-secondary);
  font-size: 10px;
}

/* Shared Pricing Section */
.pricing-section {
  margin-bottom: 2rem;
}

.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 0.75rem;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.toggle-btn.active {
  background: white;
  color: var(--text-color);
}

.save-badge {
  display: inline-block;
  background: #059669;
  color: white;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.yearly-promo {
  text-align: center;
  color: #059669;
  font-weight: 600;
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card-popular {
    order: -1;
  }
}

.pricing-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.pricing-card-popular {
  border: 2px solid var(--primary-color);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card-current {
  background: rgba(37, 99, 235, 0.03);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pricing-card h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.price-container {
  min-height: 3.5rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text-color);
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: #94a3b8;
}

.original-price {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 400;
  margin-right: 4px;
}

.price-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 1rem;
  min-height: 1.25rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.9rem;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  color: #10b981;
  flex-shrink: 0;
}

.pricing-features li.feature-sub {
  padding-left: 1.5rem;
  font-size: 0.825rem;
  color: #64748b;
  border-bottom: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.pricing-features li.feature-sub svg {
  color: #94a3b8;
}

.pricing-card .btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 10px;
}

.btn-disabled {
  pointer-events: none;
  opacity: 0.7;
}

.trust-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.trust-item svg {
  color: #10b981;
}

@media (max-width: 640px) {
  .trust-section {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

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

/* Language selector */
.language-selector {
  position: relative;
  display: flex;
  justify-content: center;
}

.language-selector-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.language-selector-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-selector-toggle .flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  flex-shrink: 0;
}

.language-selector-toggle .chevron-icon {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.language-selector-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 100;
  min-width: 160px;
  padding: 4px;
}

.language-selector.open .language-selector-menu {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}

.language-option:hover {
  background: var(--primary-color);
  color: #fff;
}

.language-option.active {
  font-weight: 500;
}

.language-option .flag-icon {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.language-option .language-name {
  flex: 1;
  text-align: left;
}

.language-option .check-icon {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.language-option:hover .check-icon {
  color: #fff;
}

/* Language selector in landing page header (light theme) */
.lp-header .language-selector-toggle {
  color: var(--text-color);
}

.lp-header .language-selector-toggle:hover {
  background: var(--bg-secondary);
}

.lp-header .language-selector-menu {
  bottom: auto;
  top: calc(100% + 6px);
}

/* Landing page pricing section */
.lp-pricing h2 {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 12px;
}
