/* Shooting star effect */
.shooting-star {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #fff 70%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.85;
  border-radius: 2px;
  pointer-events: none;
  z-index: 1;
  box-shadow: 0 0 8px 2px #fff8;
  /* The angle is set by JS, so no rotate here */
  transform: translate(-100px, -100px);
  animation: shooting-star 1.1s linear forwards;
}

@keyframes shooting-star {
  0% {
    opacity: 0;
    transform: translate(var(--sx, 0vw), var(--sy, 0vh)) scaleX(0.7);
  }

  10% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(var(--ex, 100vw), var(--ey, 100vh)) scaleX(1.1);
  }
}

/*
  Ayio Women's Health App - Shared Stylesheet
  - Color palette: deep midnight blue, purple
  - Font: DM Sans (Google Fonts)
  - Subtle stars & moon background
  - Responsive, modern, calm
*/

:root {
  --midnight: #181c2f;
  --purple: #7c4dff;
  --white: #fff;
  --gray: #f5f6fa;
  --text: #22223b;
  --footer-bg: #1a1d2e;
}

html {
  box-sizing: border-box;
  font-size: 16px;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: linear-gradient(135deg, var(--midnight) 70%, var(--purple) 100%);
  min-height: 100vh;
  color: var(--white);
  position: relative;
  /* Starry night: just gradient, stars added by JS */
  background: linear-gradient(135deg, var(--midnight) 70%, var(--purple) 100%);
  overflow-x: hidden;

  /* Star element for JS-injected stars */
  .star {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    background: white;
    opacity: 0.85;
    z-index: 0;
    box-shadow: 0 0 6px 1px #fff8, 0 0 1px 0 #fff;
    animation: star-twinkle 2.5s infinite alternate;
    transition: transform 0.3s cubic-bezier(.4, 1.6, .6, 1);
  }

  @keyframes star-twinkle {

    0%,
    100% {
      opacity: 0.85;
      filter: blur(0.5px);
    }

    50% {
      opacity: 0.45;
      filter: blur(1.2px);
    }
  }
}

.container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  background: rgba(24, 28, 47, 0.95);
  box-shadow: 0 2px 8px rgba(24, 28, 47, 0.05);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  transition: max-height 0.3s;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0.7rem;
  border-radius: 0.4rem;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--purple);
  background: rgba(124, 77, 255, 0.08);
}

/* Hamburger menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Landing Section */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  position: relative;
  /* Subtle moon */
}

.landing-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
}

.landing-content p {
  font-size: 1.2rem;
  color: var(--gray);
}

/* Main Content */
.main-content {
  padding: 2.5rem 0 2rem 0;
  min-height: 50vh;
}

.about-section,
.resources-section,
.privacy-section,
.contact-section {
  background: rgba(24, 28, 47, 0.85);
  border-radius: 1.2rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(24, 28, 47, 0.08);
}

.about-section h1,
.resources-section h1,
.privacy-section h1,
.contact-section h1 {
  color: var(--purple);
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 500;
  color: var(--gray);
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  background: var(--footer-bg);
  color: var(--white);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--purple);
}

.contact-form button {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  padding: 0.8rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #5f36c7;
}

.contact-note {
  margin-top: 1.2rem;
  color: var(--gray);
  font-size: 0.98rem;
}

.hidden {
  display: none;
}

/* Footer - Centered Layout */
.footer {
  background: linear-gradient(135deg, #0f1119 0%, #1a1d2e 50%, #1e1535 100%);
  color: var(--gray);
  padding: 3.5rem 0 0 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(124, 77, 255, 0.2);
  position: relative;
  text-align: center;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0.5;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
  margin: 0 0 0.5rem 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-nav-links,
.footer-legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav-links a,
.footer-legal-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding: 0.3rem 0.5rem;
}

.footer-nav-links a::after,
.footer-legal-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.footer-nav-links a:hover,
.footer-legal-links a:hover {
  color: var(--purple);
  transform: translateY(-2px);
}

.footer-nav-links a:hover::after,
.footer-legal-links a:hover::after {
  width: 100%;
}

.footer-copyright {
  text-align: center;
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(245, 246, 250, 0.6);
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 700px) {
  .container {
    width: 98%;
    max-width: 100vw;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(24, 28, 47, 0.98);
    width: 100vw;
    max-height: 0;
    overflow: hidden;
    gap: 0;
    box-shadow: 0 8px 24px rgba(24, 28, 47, 0.12);
    border-radius: 0 0 1rem 1rem;
    transition: max-height 0.3s;
  }

  .nav-links.open {
    max-height: 400px;
    padding-bottom: 1rem;
    gap: 0.5rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0;
  }

  .landing-content h1 {
    font-size: 1.5rem;
  }

  .landing-content p {
    font-size: 1rem;
  }

  .main-content {
    padding: 1rem 0 0.5rem 0;
  }

  .about-section,
  .resources-section,
  .privacy-section,
  .contact-section {
    padding: 1rem 0.5rem;
  }

  /* Footer mobile styles */
  .footer {
    padding: 2.5rem 0 0 0;
    margin-top: 2rem;
  }

  .footer-container {
    gap: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-heading {
    font-size: 0.8rem;
  }

  .footer-nav-links,
  .footer-legal-links {
    gap: 1rem;
  }

  .footer-nav-links a,
  .footer-legal-links a {
    font-size: 0.9rem;
  }

  .footer-copyright p {
    font-size: 0.75rem;
  }
}

/* For hamburger menu JS: add .open to .nav-links when menu is open */

/* Decorative moon (top right) */
body::after {
  content: '';
  position: fixed;
  top: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 60% 40%, #fff 60%, transparent 100%);
  opacity: 0.13;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* Accessibility: focus outline for links */
a:focus {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* About Page - Feature Cards */
.about-intro {
  font-size: 1.35rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 3rem;
  color: var(--white);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.2), transparent 70%);
  z-index: 0;
}

.features-grid:hover .feature-card:not(:hover) {
  opacity: 0.7;
  transform: scale(0.95);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.3);
  border-color: rgba(124, 77, 255, 0.5);
  z-index: 1;
  opacity: 1 !important;
  /* Override the dimming */
}

.feature-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-card p {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

  .about-intro {
    font-size: 1.1rem;
  }

  .feature-card {
    min-height: auto;
    padding: 2rem 1.5rem;
  }
}

/* Ayio Solution Section */
.ayio-solution {
  margin-top: 4rem;
  padding-top: 0;
}

.solution-header {
  margin-bottom: 3rem;
  max-width: 800px;
}

.subheading {
  color: var(--purple);
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.solution-header h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--white);
  margin: 0;
}

.highlight {
  color: #ff4081;
  /* Pink/Red color for 'everyone' */
  font-weight: 700;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.placeholder-img {
  background-color: #ddd;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.solution-card h3 {
  font-size: 1.3rem;
  color: #181c2f;
  /* Dark text for title as per image, or maybe keep white if theme dictates? Image shows dark text on light bg, but this is a dark theme site. I will stick to site theme (white) for now, or check generic styles. The existing cards use white. I will use white to match the dark theme consistency. */
  color: var(--white);
  margin: 0;
}

.solution-card p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.5;
  margin: 0;
}

.solution-card p em {
  font-style: italic;
  color: var(--purple);
  /* Highlight emphasized text slightly */
}

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

  .solution-header h2 {
    font-size: 1.8rem;
  }
}

/* Phone Mockup Section */
.phone-mockup-section {
  margin-top: 5rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.phone-content-left,
.phone-content-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}

.phone-content-left p,
.phone-content-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

.phone-placeholder {
  background-color: #8b7fc8;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 2rem;
  margin: 0 auto;
  max-width: 350px;
}

@media (max-width: 768px) {
  .phone-mockup-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .phone-placeholder {
    order: 2;
  }

  .phone-content-left {
    order: 1;
  }

  .phone-content-right {
    order: 3;
  }

  .tech-heading {
    font-size: 0.7rem;
  }

  .phone-content-left p,
  .phone-content-right p {
    font-size: 1rem;
  }
}

/* Feature text styling for phone sections */
.feature-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--gray);
  margin: 0;
}

/* Ayio Intent Section - Light Background, 2-column Layout */
.ayio-intent-section {
  margin-top: 5rem;
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, #e8e4f3 0%, #d8d0ed 100%);
  padding: 4rem 3rem;
  border-radius: 1.5rem;
}

.intent-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intent-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0;
}

.intent-title {
  font-size: 2.2rem;
  line-height: 1.3;
  color: #1a1a2e;
  margin: 0;
  font-weight: 700;
}

.phone-placeholder-intent {
  background-color: #8b7fc8;
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 2rem;
  margin: 0 auto;
  max-width: 320px;
}

@media (max-width: 768px) {
  .ayio-intent-section {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem 1.5rem;
  }

  .intent-title {
    font-size: 1.6rem;
  }

  .feature-text {
    font-size: 1rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1d2e 0%, #0f1119 100%);
  border-top: 1px solid rgba(124, 77, 255, 0.3);
  padding: 1.5rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease-out;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.cookie-banner p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-link {
  color: var(--purple);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.cookie-link:hover {
  color: #9d7bff;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-accept-btn {
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'DM Sans', Arial, sans-serif;
  white-space: nowrap;
  flex: 1;
  min-width: 200px;
}

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

.cookie-btn-primary:hover {
  background: #5f36c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.4);
}

.cookie-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.cookie-accept-btn:active {
  transform: translateY(0);
}

@media (max-width: 700px) {
  .cookie-banner {
    padding: 1.2rem 0;
  }

  .cookie-banner-content {
    gap: 1rem;
  }

  .cookie-banner p {
    font-size: 0.9rem;
    text-align: left;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .cookie-accept-btn {
    width: 100%;
    min-width: auto;
  }
}

/* ============================================================
   NAV AUTH BUTTONS (Log In / Sign Up)
   ============================================================ */
.nav-auth-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: 1rem;
}

.btn-nav-login {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid rgba(124, 77, 255, 0.7);
  border-radius: 0.45rem;
  color: var(--white);
  background: transparent;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-nav-login:hover {
  background: rgba(124, 77, 255, 0.15);
  border-color: var(--purple);
  color: var(--purple);
}

.btn-nav-signup {
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--purple);
  border-radius: 0.45rem;
  color: var(--white);
  background: var(--purple);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn-nav-signup:hover {
  background: #5f36c7;
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.45);
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .nav-auth-btns {
    order: 3;
    width: 100%;
    justify-content: center;
    padding: 0.7rem 0 0.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0;
  }

  .btn-nav-login,
  .btn-nav-signup {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   FLOATING "START NOW" BUTTON (Index page only)
   ============================================================ */
.btn-start-now {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--purple) 0%, #5f36c7 100%);
  color: var(--white);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3rem;
  box-shadow: 0 6px 24px rgba(124, 77, 255, 0.5);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  animation: start-now-pulse 3s ease-in-out infinite;
}

.btn-start-now:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(124, 77, 255, 0.65);
  animation: none;
}

.btn-start-now::before {
  content: '✦';
  font-size: 0.85rem;
  opacity: 0.85;
}

@keyframes start-now-pulse {

  0%,
  100% {
    box-shadow: 0 6px 24px rgba(124, 77, 255, 0.5);
  }

  50% {
    box-shadow: 0 6px 32px rgba(124, 77, 255, 0.8);
  }
}

@media (max-width: 700px) {
  .btn-start-now {
    bottom: 1.2rem;
    right: 1rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
  }
}

/* ============================================================
   PROFILE PAGE ENHANCEMENTS
   ============================================================ */
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.25rem 0 0.1rem;
}

.profile-email-sub {
  font-size: 0.9rem;
  color: rgba(245, 246, 250, 0.6);
  margin-bottom: 1.2rem;
}

/* Icon action buttons (settings / data) */
.profile-icon-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.8rem 0 1.2rem;
}

.profile-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.8rem;
  padding: 0.7rem 1.2rem;
  color: var(--gray);
  cursor: pointer;
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.profile-icon-btn:hover {
  background: rgba(124, 77, 255, 0.15);
  border-color: rgba(124, 77, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.profile-icon-btn .icon {
  font-size: 1.4rem;
}

/* Inline panels for settings / data */
.profile-panel {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8rem;
  padding: 1.5rem;
  text-align: left;
  margin-top: 1rem;
  animation: panel-fade-in 0.25s ease;
}

.profile-panel.open {
  display: block;
}

@keyframes panel-fade-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.profile-panel h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.profile-panel label {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.profile-panel input[type="text"] {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  color: var(--white);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.profile-panel input[type="text"]:focus {
  outline: 2px solid var(--purple);
}

.btn-panel-save {
  background: var(--purple);
  color: var(--white);
  border: none;
  border-radius: 0.45rem;
  padding: 0.55rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-panel-save:hover {
  background: #5f36c7;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  color: var(--gray);
}

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

.data-item strong {
  color: var(--white);
}

.btn-clear-data {
  margin-top: 1.2rem;
  background: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 0.45rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-clear-data:hover {
  background: rgba(220, 38, 38, 0.25);
}

.panel-success-msg {
  font-size: 0.85rem;
  color: #86efac;
  margin-top: 0.5rem;
  display: none;
}