/* ── Settings Modal ────────────────────────────────────────────
   Inspired by settings/ reference component
   ──────────────────────────────────────────────────────────── */

/* ── Settings view ───────────────────────────────────────────── */
.st-view {
  background: #ffffff;
}

/* ── Inner layout ────────────────────────────────────────────── */
.st-modal {
  display:     flex;
  width:       100%;
  height:      100%;
  background:  #ffffff;
  overflow:    hidden;
  font-family: 'Manrope', system-ui, sans-serif;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.st-sidebar {
  flex:         0 0 360px;
  display:      flex;
  flex-direction: column;
  padding:      40px 8px 40px 40px;
}

.st-nav-box {
  flex:          1;
  background:    #f6f9fe;
  border:        2px solid #000000;
  border-radius: 24px;
  padding:       8px;
  display:       flex;
  flex-direction: column;
}

.st-nav-spacer {
  flex: 1;
}

.st-tab {
  width:         100%;
  padding:       14px 20px;
  border-radius: 18px;
  border:        none;
  background:    transparent;
  font-family:   'Manrope', system-ui, sans-serif;
  font-size:     18px;
  font-weight:   500;
  color:         #000000;
  text-align:    center;
  cursor:        pointer;
  transition:    background 0.15s, color 0.15s;
}
.st-tab:hover {
  background: rgba(255,255,255,0.6);
}
.st-tab.active {
  background:  #ffffff;
  border:      3px solid #58C1B9;
  color:       #58C1B9;
  font-weight: 700;
}

.st-logout {
  width:         100%;
  padding:       14px 20px;
  border-radius: 18px;
  border:        none;
  background:    transparent;
  font-family:   'Manrope', system-ui, sans-serif;
  font-size:     18px;
  font-weight:   700;
  color:         #E852AC;
  text-align:    center;
  cursor:        pointer;
  transition:    opacity 0.15s;
  flex-shrink:   0;
}
.st-logout:hover { opacity: 0.7; }

/* ── Main content area ───────────────────────────────────────── */
.st-content {
  flex:       1;
  display:    flex;
  flex-direction: column;
  padding:    56px 48px 40px;
  overflow-y: auto;
  position:   relative;
}

.st-close {
  position:   absolute;
  top:        28px;
  right:      32px;
  width:      40px;
  height:     40px;
  background: none;
  border:     none;
  cursor:     pointer;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    0;
  opacity:    0.85;
  transition: opacity 0.15s;
}
.st-close:hover { opacity: 1; }
.st-close img {
  width:  30px;
  height: 30px;
  filter: brightness(0) saturate(100%) invert(72%) sepia(19%) saturate(758%) hue-rotate(133deg) brightness(93%) contrast(90%);
}

.st-title {
  font-size:     40px;
  font-weight:   700;
  color:         #0b0f1d;
  margin:        0 0 40px;
  line-height:   1.1;
}

/* ── Panels ──────────────────────────────────────────────────── */
.st-panel { display: block; }
.st-panel.hidden { display: none; }

/* Subscription panel fills the full st-content height */
.st-panel[data-panel="subscription"] {
  display:        flex;
  flex-direction: column;
  flex:           1;
  min-height:     0;
  padding-bottom: 80px;
}

/* Section heading */
.st-section-title {
  font-size:   32px;
  font-weight: 700;
  color:       #0b0f1d;
  margin:      0 0 24px;
}

/* Cards */
.st-card {
  background:    #ffffff;
  border:        2px solid #f6f9fe;
  border-radius: 16px;
  padding:       24px;
  margin-bottom: 24px;
}

.st-card-title {
  font-size:   20px;
  font-weight: 700;
  color:       #0b0f1d;
  margin:      0 0 16px;
}

.st-field {
  margin-bottom: 14px;
}
.st-field:last-child { margin-bottom: 0; }

.st-field-label {
  font-size:   14px;
  font-weight: 500;
  color:       #6b7280;
  margin:      0 0 4px;
}

.st-field-value {
  font-size:   18px;
  font-weight: 500;
  color:       #0b0f1d;
  margin:      0;
}

.st-field-value.accent { color: #58C1B9; }

/* Manage subscription button — matches .st-contact-btn */
.st-manage-btn {
  display:         inline-block;
  align-self:      flex-start;
  padding:         14px 28px;
  background:      #58C1B9;
  color:           #ffffff;
  border:          none;
  border-radius:   10px;
  font-family:     'Manrope', system-ui, sans-serif;
  font-size:       16px;
  font-weight:     700;
  cursor:          pointer;
  transition:      background 0.15s;
  text-decoration: none;
}
.st-manage-btn:hover { background: #3fa9a1; }
.st-manage-btn:disabled {
  opacity: 0.6;
  cursor:  not-allowed;
}


/* Greeting */
.st-greeting {
  font-size:   18px;
  font-weight: 500;
  color:       #000000;
  margin:      0 0 32px;
  line-height: 1.3;
}
.st-greeting strong {
  font-weight: 700;
}

/* Free plan badge */
.st-free-badge {
  display:       inline-block;
  padding:       4px 12px;
  background:    #f6f9fe;
  border-radius: 99px;
  font-size:     14px;
  font-weight:   600;
  color:         #6b7280;
}

/* Contact Us panel */
.st-contact-subtitle {
  font-size:   18px;
  font-weight: 500;
  color:       #0b0f1d;
  margin:      0 0 24px;
}

.st-contact-btn {
  display:         inline-block;
  padding:         14px 28px;
  background:      #58C1B9;
  color:           #ffffff;
  font-family:     'Manrope', system-ui, sans-serif;
  font-size:       16px;
  font-weight:     700;
  border-radius:   10px;
  text-decoration: none;
  transition:      background 0.15s;
}
.st-contact-btn:hover { background: #3fa9a1; }

/* Loading / error states */
.st-loading {
  font-size:   16px;
  color:       #6b7280;
  font-style:  italic;
}

/* ── Subscription panel ──────────────────────────────────────── */
.st-sub-info {
  display:     flex;
  gap:         180px;
  margin:      0 0 64px;
  align-items: flex-start;
}

.st-sub-info-label {
  font-size:   16px;
  font-weight: 600;
  color:       #b9bfd9;
  margin:      0 0 6px;
}

.st-sub-info-value {
  font-size:   18px;
  font-weight: 800;
  color:       #110d4f;
  margin:      0;
}

.st-plan-badge-free {
  display:       inline-block;
  padding:       4px 12px;
  background:    #e852ac;
  border-radius: 8px;
  font-size:     18px;
  font-weight:   800;
  color:         #ffffff;
}

.st-plan-badge-pro {
  display:       inline-block;
  padding:       4px 12px;
  background:    #E852AC;
  border-radius: 8px;
  font-size:     18px;
  font-weight:   800;
  color:         #ffffff;
}

.st-plan-name-pro {
  font-size:   22px;
  font-weight: 800;
  color:       #110d4f;
}

/* PRO card — height fills remaining space, width follows aspect ratio */
.st-pro-card {
  position:            relative;
  border-radius:       22px;
  overflow:            hidden;
  background-image:    url('../assets/asset-plan-mobile.webp');
  background-size:     cover;
  background-position: center;
  flex:                1;
  aspect-ratio:        1 / 1;
  align-self:          flex-start;
  min-height:          0;
}

.st-pro-card-content {
  position:        absolute;
  inset:           0;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
  padding:         28px 44px 36px;
}

.st-pro-top {
  display:        flex;
  flex-direction: column;
}

.st-pro-card-title {
  font-size:   28px;
  font-weight: 800;
  color:       #ffffff;
  margin:      0 0 16px;
  position:    relative;
  z-index:     1;
}

.st-pro-feature {
  position:    relative;
  z-index:     1;
  display:     flex;
  align-items: center;
  gap:         16px;
  padding:     14px 0;
  border-bottom: 1px solid rgba(234, 235, 243, 0.35);
}


.st-pro-check {
  width:           32px;
  height:          32px;
  border-radius:   50%;
  background:      #278b84;
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
}

.st-pro-check svg {
  width:  14px;
  height: 11px;
}

.st-pro-feature-text {
  font-size:   18px;
  font-weight: 600;
  color:       #ffffff;
  margin:      0;
}

/* Go PRO button (inside card) */
.st-gopro-btn {
  display:         flex;
  align-items:     center;
  justify-content: center;
  padding:         14px 24px;
  width:           56.5%;
  background:      #ff71c6;
  color:           #ffffff;
  border:          none;
  border-radius:   12px;
  font-family:     'Manrope', system-ui, sans-serif;
  font-size:       18px;
  font-weight:     700;
  cursor:          pointer;
  transition:      background 0.15s;
  margin-top:      24px;
}
.st-gopro-btn:hover { background: #ff5ab8; }


/* ── Mobile layout ───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Stack sidebar above content */
  .st-modal {
    flex-direction: column;
    overflow-y:     auto;
    position:       relative;
  }

  /* Close button: same size/style as home gear button, scrolls with content */
  .st-close {
    position:        absolute;
    top:             24px;
    right:           12px;
    z-index:         10;
    width:           40px;
    height:          40px;
    display:         flex;
    align-items:     center;
    justify-content: center;
    background:      none;
    border:          none;
    padding:         0;
    opacity:         1;
  }

  .st-close img {
    width:  24px;
    height: 24px;
  }

  /* Hide section title on mobile */
  .st-title {
    display: none;
  }

  /* Sidebar: compact, only as tall as its content */
  .st-sidebar {
    flex:        0 0 auto;
    width:       100%;
    padding:     96px 16px 12px;
    box-sizing:  border-box;
  }

  /* Nav box: no longer stretches to full height, thinner border */
  .st-nav-box {
    flex:         0 0 auto;
    border-width: 1px;
  }

  .st-tab {
    font-size: 15px;
    padding:   11px 16px;
  }

  /* Active tab: full pill shape */
  .st-tab.active {
    border-radius: 999px;
  }

  /* Collapse spacer so logout sits tight below tabs */
  .st-nav-spacer {
    flex: 0;
    height: 4px;
  }

  .st-logout {
    font-size: 15px;
    padding:   11px 16px;
  }

  /* Content: sits below sidebar, no inner scroll */
  .st-content {
    flex:       0 0 auto;
    padding:    16px 16px 40px;
    overflow-y: visible;
    position:   static;
  }

  /* Subscription panel: no longer fills height */
  .st-panel[data-panel="subscription"] {
    flex:    0 0 auto;
    padding-bottom: 0;
  }

  /* Sub-info columns: side by side on mobile */
  .st-sub-info {
    flex-direction: row;
    gap:            100px;
    margin-bottom:  24px;
  }

  /* Pro card: full width, auto height */
  .st-pro-card {
    width:        100%;
    aspect-ratio: unset;
    min-height:   340px;
    align-self:   stretch;
  }

  .st-gopro-btn {
    width: 100%;
  }


  .st-pro-feature-text {
    font-size: 13px;
  }

  .st-pro-check {
    width:  22px;
    height: 22px;
  }

  .st-pro-check svg {
    width:  10px;
    height: 8px;
  }

  .st-title {
    font-size:  28px;
    margin-bottom: 24px;
  }

  .st-section-title {
    font-size: 24px;
  }
}
