/**
 * Profile Page Styles
 * Extracted from user_profile.html for better maintainability
 */

/* CSS Variables for consistency with execution page */
:root {
  --accent: #4facfe;
  --accent-2: #9479ff;
  --accent-warm: #f97316;
  --success: #34d399;
  --danger: #ef4444;
  --glass-bg: rgba(6, 12, 24, 0.75);
  --glass-border: rgba(79, 172, 254, 0.22);
  --shadow-lg: 0 45px 120px rgba(15, 23, 42, 0.45);
  --text-primary: #f8fafc;
  --text-muted: rgba(248, 250, 252, 0.85);
  /* Increased from 0.7 for better accessibility */
}

/* User Profile Specific Styles */
.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(79, 172, 254, 0.45);
  box-shadow: 0 20px 45px rgba(79, 172, 254, 0.28);
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.brand-chip img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(79, 172, 254, 0.4);
}

.brand-chip-text {
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  border-radius: 32px;
  background: rgba(5, 10, 20, 0.7);
  border: 1px solid rgba(79, 172, 254, 0.25);
  box-shadow: 0 45px 110px rgba(79, 172, 254, 0.18);
}

.hero-info {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-info h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0;
  letter-spacing: -0.015em;
}

.hero-info p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(5, 10, 20, 0.65);
  color: var(--fg);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(79, 172, 254, 0.28);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Accessibility: Focus visible styles */
.btn:focus-visible,
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.profile-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05070f;
  box-shadow: 0 24px 60px rgba(148, 121, 255, 0.35);
}

.btn-outline {
  background: rgba(5, 10, 20, 0.65);
  border: 1px solid rgba(79, 172, 254, 0.35);
}

.btn-outline:hover {
  border-color: rgba(148, 121, 255, 0.5);
  box-shadow: 0 22px 52px rgba(79, 172, 254, 0.28);
}

.btn-secondary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #05070f;
  box-shadow: 0 22px 52px rgba(102, 126, 234, 0.28);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 22px 50px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 28px 60px rgba(239, 68, 68, 0.35);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .btn {
  padding-inline: 1.4rem;
}

.hero-summary {
  flex: 1 1 320px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.summary-card {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.18), rgba(148, 121, 255, 0.22));
  border: 1px solid rgba(79, 172, 254, 0.35);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: 0 15px 38px rgba(79, 172, 254, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.summary-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
}

.summary-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.summary-detail {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
}

/* Tab Navigation with ARIA support */
.profile-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.6rem;
  border-radius: 18px;
  background: rgba(5, 10, 20, 0.7);
  border: 1px solid rgba(79, 172, 254, 0.2);
  margin-bottom: 2.5rem;
}

.profile-nav-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.profile-nav-btn:hover {
  background: rgba(79, 172, 254, 0.18);
  color: #ffffff;
}

.profile-nav-btn.active,
.profile-nav-btn[aria-selected="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #05070f;
  box-shadow: 0 14px 32px rgba(79, 172, 254, 0.25);
}

.profile-section {
  display: none;
  background: rgba(5, 10, 20, 0.68);
  border-radius: 24px;
  padding: 2.4rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(79, 172, 254, 0.18);
}

.profile-section.active {
  display: block;
  animation: slideInUp 0.5s ease-out;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(79, 172, 254, 0.18);
}

.section-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(148, 121, 255, 0.25));
  border: 1px solid rgba(79, 172, 254, 0.35);
  box-shadow: inset 0 0 18px rgba(79, 172, 254, 0.15);
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.section-description {
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
  margin: 0.45rem 0 0 0;
  font-size: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 600px;
  /* Restrict width for better layout on desktop */
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

@media (max-width: 600px) {

  .form-input,
  .form-select,
  .form-textarea {
    max-width: 100%;
  }
}

/* Profile page specific overrides - high specificity to beat global styles.css */
.profile-container .form-select,
.profile-section .form-select,
.voice-settings .form-select,
.emotion-settings .form-select,
.notification-settings .form-select {
  max-width: 400px !important;
  width: 100% !important;
}

.profile-container .form-input,
.profile-section .form-input,
.voice-settings .form-input {
  max-width: 400px !important;
  width: 100% !important;
}

@media (max-width: 600px) {

  .profile-container .form-select,
  .profile-container .form-input {
    max-width: 100% !important;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Validation states */
.form-input:invalid:not(:placeholder-shown),
.form-select:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.form-input:valid:not(:placeholder-shown) {
  border-color: var(--success);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.avatar-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.avatar-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  display: block;
  margin: 0 auto 1rem auto;
}

.avatar-under-label {
  margin-bottom: 0.5rem;
}

.avatar-controls {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
}

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

.avatar-input-group {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.avatar-input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-solid);
  color: var(--fg);
}

.file-input {
  display: none;
}

.file-input-label {
  padding: 0.5rem 1rem;
  background: var(--border);
  color: var(--fg);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.file-input-label:hover {
  background: var(--accent);
  color: white;
}

.notification-settings {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(134, 239, 172, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.notification-settings h3 {
  color: #22c55e;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.voice-settings {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 197, 253, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.voice-settings h3 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.emotion-settings {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), rgba(196, 181, 253, 0.05));
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.emotion-settings h3 {
  color: #a855f7;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.emotion-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  max-width: 1000px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.checkbox-label:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
  accent-color: #a855f7;
}

.voice-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

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

.character-card {
  background: linear-gradient(145deg, rgba(79, 172, 254, 0.15), rgba(148, 121, 255, 0.2));
  border: 1px solid rgba(79, 172, 254, 0.3);
  border-radius: 16px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(79, 172, 254, 0.28);
  border-color: rgba(148, 121, 255, 0.45);
}

.character-card h4 {
  margin: 0 0 0.75rem 0;
  color: #f8fafc;
  font-size: 1.15rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(5, 10, 20, 0.55);
  border: 1px solid rgba(79, 172, 254, 0.35);
  box-shadow: inset 0 0 12px rgba(79, 172, 254, 0.15);
  font-size: 1.6rem;
}

.card-title-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
}

.card-subtitle {
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
  font-size: 0.9rem;
}

.card-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(5, 10, 20, 0.65);
  border: 1px solid rgba(79, 172, 254, 0.35);
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.9);
  /* Improved contrast */
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-fieldset {
  gap: 1.25rem;
}

.card-tip {
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
  margin: 0;
}

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

.preference-category {
  background: rgba(5, 10, 20, 0.75);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: 18px;
  padding: 1.6rem;
  transition: all 0.3s ease;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.preference-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(79, 172, 254, 0.22);
}

.preference-category h4 {
  margin: 0 0 0.75rem 0;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
}

.preference-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.85);
  /* Improved contrast */
}

.preference-details {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.preference-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.1rem;
}

.success-message {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 600;
  animation: slideIn 0.3s ease-out;
}

.error-message {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 600;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .profile-container {
    padding: 1rem;
  }

  .profile-hero {
    padding: 2rem 1.5rem;
    border-radius: 26px;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .profile-tabs {
    flex-direction: column;
  }

  .profile-nav-btn {
    width: 100%;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .avatar-controls {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .character-grid,
  .preferences-grid {
    grid-template-columns: 1fr;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .card-pill {
    width: 100%;
    max-width: none;
  }

  .preference-pair {
    grid-template-columns: 1fr;
  }
}

/* How-to guide overlay */
.guide-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(8, 13, 24, 0.82);
  backdrop-filter: blur(18px);
  z-index: 12000;
}

.guide-overlay.active {
  display: flex;
}

.guide-modal {
  width: min(960px, 100%);
  max-height: min(85vh, 760px);
  background: linear-gradient(145deg, rgba(11, 16, 32, 0.96), rgba(14, 23, 45, 0.92));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.55);
  color: rgba(226, 232, 240, 0.94);
  position: relative;
  overflow-y: auto;
}

.guide-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(248, 250, 252, 0.85);
  border-radius: 14px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.guide-close:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.guide-header {
  padding: clamp(1.8rem, 3vw, 2.6rem);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.guide-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(129, 140, 248, 0.9);
  display: inline-block;
  margin-bottom: 0.6rem;
}

.guide-header h2 {
  margin: 0 0 0.6rem 0;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #f8fafc;
}

.guide-header p {
  margin: 0;
  font-size: 1rem;
  color: rgba(203, 213, 225, 0.82);
}

.guide-body {
  padding: 0 clamp(1.8rem, 3vw, 2.6rem) clamp(2.2rem, 4vw, 2.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.8rem, 4vw, 2.5rem);
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guide-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: clamp(1.4rem, 3vw, 1.8rem);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.guide-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(99, 102, 241, 0.9), rgba(56, 189, 248, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.guide-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.2rem;
  color: #f8fafc;
}

.guide-card p {
  margin: 0 0 0.9rem 0;
  color: rgba(203, 213, 225, 0.82);
  line-height: 1.55;
}

.guide-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.guide-card-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.95rem;
}

.guide-card-list span {
  font-size: 1.1rem;
}

.guide-steps {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 22px;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  display: grid;
  gap: 0.9rem;
}

.guide-steps h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
}

.guide-steps ol {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.95rem;
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.guide-stat {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(129, 140, 248, 0.22);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.35rem;
}

.guide-stat-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(148, 163, 184, 0.85);
  /* Improved contrast */
}

.guide-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f8fafc;
}

.guide-stat-detail {
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.85);
  /* Improved contrast */
}

.guide-quick-actions {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.75rem;
}

.guide-quick-actions h4 {
  margin: 0;
  font-size: 1rem;
  color: #f1f5f9;
}

.guide-action-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 64, 175, 0.32);
  color: #dbeafe;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.guide-action-btn:hover {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.35);
}

.guide-resources {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: rgba(203, 213, 225, 0.85);
  /* Improved contrast */
}

.guide-resources a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
}

.guide-resources a:hover {
  text-decoration: underline;
}

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

  .guide-sidebar {
    order: -1;
  }
}

@media (max-width: 640px) {
  .guide-modal {
    border-radius: 24px;
  }

  .guide-body {
    gap: 1.4rem;
    padding: 0 1.4rem 1.8rem;
  }

  .guide-card {
    flex-direction: column;
  }

  .guide-card-icon {
    width: 44px;
    height: 44px;
  }

  .guide-action-btn {
    font-size: 0.95rem;
  }

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

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

  .hero-summary {
    grid-template-columns: 1fr;
  }
}

/* Profile Footer */
.profile-footer {
  background: #2c3e50;
  color: white;
  padding: 1rem;
  text-align: center;
  margin-top: auto;
}

.profile-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.profile-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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