:root {
    --th-yellow: #f8cd24;
    --th-yellow-hover: #e0b820;
    --th-bg-dark: #161618;
    --th-bg-card: #222224;
    --th-bg-studio: #10111a;
    --th-bg-sidebar: #1a1b26;
    --th-text-main: #ffffff;
    --th-text-muted: #9ca3af;
    --th-border: #333336;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--th-text-main);
    background-color: var(--th-bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg-base {
    background-color: var(--th-bg-dark);
}

.bg-studio {
    background-color: var(--th-bg-studio);
}

.bg-card {
    background-color: var(--th-bg-card);
}

.text-yellow {
    color: var(--th-yellow) !important;
}

.th-star-rating .th-star-btn {
    line-height: 1;
    cursor: pointer;
    color: inherit;
}

.th-star-rating .th-star-icon {
    font-size: 1.5rem;
    color: var(--th-border);
    transition: color 0.15s ease, transform 0.12s ease;
}

.th-star-rating .th-star-btn:hover .th-star-icon,
.th-star-rating .bi-star-fill.th-star-icon {
    color: var(--th-yellow);
}

.th-star-rating .th-star-btn:focus-visible {
    outline: 2px solid var(--th-yellow);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--th-yellow);
    border-color: var(--th-yellow);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--th-yellow-hover) !important;
    border-color: var(--th-yellow-hover) !important;
    color: #000 !important;
}

.logo-icon {
    background-color: var(--th-yellow);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.th-stylist-action {
    background-color: #2a2a2d;
    transition: background-color 0.15s ease, transform 0.12s ease;
}

.th-stylist-action i {
    color: var(--th-text-muted);
    transition: color 0.15s ease;
}

.th-stylist-action:hover,
.th-stylist-action:focus-visible {
    background-color: var(--th-yellow);
    transform: translateY(-1px);
}

.th-stylist-action:hover i,
.th-stylist-action:focus-visible i {
    color: #000;
}

.th-stylist-action:focus-visible {
    outline: 2px solid var(--th-yellow-hover);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Typography Helpers */
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fw-extrabold { font-weight: 800; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }

/* Custom Inputs */
.form-control, .form-select {
    background-color: #2a2a2d;
    border: 1px solid var(--th-border);
    color: var(--th-text-main);
}
.form-control:focus, .form-select:focus {
    background-color: #2a2a2d;
    border-color: var(--th-yellow);
    color: var(--th-text-main);
    box-shadow: 0 0 0 0.25rem rgba(248, 205, 36, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
}

a.logout-btn, a.logout-btn:visited {
    color: var(--th-text-muted) !important;
    transition: color 0.2s ease;
    text-decoration: none;
}

a.logout-btn:hover, a.logout-btn:focus, a.logout-btn:active {
    color: var(--th-yellow) !important;
}

/* Nav Link Hover Effects */
.nav-link-hover {
    transition: color 0.2s ease;
}

.nav-link-hover:hover {
    color: var(--th-yellow) !important;
}

/* Navbar Separator */
.nav-separator {
    width: 1px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    display: inline-block;
}

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

.btn-outline-yellow {
    color: var(--th-yellow);
    border-color: var(--th-yellow);
    transition: all 0.2s ease;
}

.btn-outline-yellow:hover {
    background-color: var(--th-yellow);
    color: #000;
}

/* Filled secondary action — sits visually back from the solid yellow primary CTA. */
.btn-soft-yellow {
    background-color: rgba(248, 205, 36, 0.12);
    border: 1px solid rgba(248, 205, 36, 0.35);
    color: var(--th-yellow);
    transition: all 0.2s ease;
}

.btn-soft-yellow:hover {
    background-color: rgba(248, 205, 36, 0.22);
    border-color: rgba(248, 205, 36, 0.55);
    color: var(--th-yellow);
}

#googleLoginBtn.login-cta-disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.disclosure-blockquote {
    border-left: 4px solid var(--th-yellow);
    padding-left: 1rem;
    margin-left: 0;
    font-size: 0.9rem;
}

/* Consent page */
.consent-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(248, 205, 36, 0.2), rgba(248, 205, 36, 0.05));
    border: 1px solid rgba(248, 205, 36, 0.3);
    color: var(--th-yellow);
    font-size: 1.75rem;
}

.consent-section {
    scroll-margin-top: 80px;
}

.consent-section + .consent-section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.consent-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.consent-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.55rem;
    border-radius: 999px;
    background-color: rgba(248, 205, 36, 0.12);
    color: var(--th-yellow);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.consent-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--th-text-main);
}

.consent-section p,
.consent-section li {
    color: #d5d7dc;
    line-height: 1.65;
}

.consent-section a {
    color: var(--th-yellow);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: normal;
}

.consent-section a:hover {
    text-decoration: underline;
}

.consent-team-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-team-table thead th {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--th-text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.consent-team-table tbody td {
    padding: 0.75rem 1rem;
    color: var(--th-text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

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

.consent-team-table tbody tr td:nth-child(2) {
    color: var(--th-text-muted);
}

.consent-callout {
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(255, 255, 255, 0.02);
}

.consent-callout-danger {
    border-color: rgba(220, 53, 69, 0.35);
    background-color: rgba(220, 53, 69, 0.06);
}

.consent-callout-success {
    border-color: rgba(40, 167, 69, 0.35);
    background-color: rgba(40, 167, 69, 0.06);
}

.consent-callout-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.consent-callout-danger .consent-callout-heading {
    color: #f28b94;
}

.consent-callout-success .consent-callout-heading {
    color: #7bd98f;
}

.consent-callout ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.consent-callout ul li {
    margin-bottom: 0.25rem;
}

.consent-callout ul li:last-child {
    margin-bottom: 0;
}

.consent-important-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(248, 205, 36, 0.08), rgba(248, 205, 36, 0.02));
    border: 1px solid rgba(248, 205, 36, 0.25);
    color: var(--th-text-main);
}

.consent-important-banner i {
    color: var(--th-yellow);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.consent-agreement-box {
    position: sticky;
    bottom: 1rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(34, 34, 36, 0.85), rgba(34, 34, 36, 0.95));
    border: 1px solid rgba(248, 205, 36, 0.3);
    backdrop-filter: blur(8px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.consent-agreement-box .btn-primary:disabled {
    background-color: rgba(248, 205, 36, 0.35) !important;
    border-color: rgba(248, 205, 36, 0.35) !important;
    color: rgba(0, 0, 0, 0.55) !important;
    cursor: not-allowed;
    opacity: 1;
}

.consent-footer-meta {
    color: var(--th-text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.consent-footer-meta a {
    color: var(--th-text-muted);
    text-decoration: underline;
}

.consent-footer-meta a:hover {
    color: var(--th-yellow);
}
.style-card.is-recommended {
  border-color: var(--th-yellow) !important;
  border-width: 2px !important;
  box-shadow: 0 0 0 3px rgba(248, 205, 36, 0.2);
  transform: translateY(-2px);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.style-card.is-recommended:hover {
  box-shadow: 0 0 0 4px rgba(248, 205, 36, 0.35);
}

/* First-visit Terms modal on /login */
.login-card {
  transition: filter 0.2s ease;
}

.login-card--blurred {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.terms-modal[hidden] {
  display: none;
}

.terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.terms-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.terms-modal__panel {
  padding: 1.75rem;
}

@media (min-width: 768px) {
  .terms-modal__panel {
    padding: 2.25rem;
  }
}
