/*
 * static/frontend/styles.css
 *
 * Shared styles for the lightweight auth & portal pages.
 * The palette is aligned with transactional email templates so the
 * experience feels coherent across mediums.
 */

:root {
    color-scheme: dark;
    --font-base: 'Nunito', sans-serif;

    --color-bg: #05090e;
    --color-text: #e7edf6;
    --color-heading: #ffffff;
    --color-muted: #9aa6b6;
    --color-placeholder: rgba(231, 237, 246, 0.42);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.16);

    --accent: #ff3b30;
    --accent-strong: #d72b1d;
    --accent-soft: rgba(255, 59, 48, 0.18);
    --accent-gradient: linear-gradient(135deg, #ff6758, #ff3b30);

    --brand-badge-bg: var(--accent-gradient);

    /* Solid dark background to avoid banding */
    --app-bg: #060809; /* very dark neutral */

    --surface-radius: 28px;
    --surface-radius-inner: 22px;
    --surface-border: var(--color-border);
    --surface-shadow: 0 26px 52px rgba(6, 10, 16, 0.55);
    --surface-bg: linear-gradient(165deg, rgba(21, 27, 33, 0.96), rgba(10, 15, 21, 0.92));
    --card-gradient: var(--surface-bg);
    --surface-shadow-hover: 0 32px 60px rgba(6, 10, 16, 0.65);

    /* Legacy aliases to ease refactors */
    --brand-text: var(--color-text);
    --brand-title: var(--color-heading);
    --brand-muted: var(--color-muted);
    --brand-border: var(--color-border);
    --brand-border-strong: var(--color-border-strong);
    --brand-accent: var(--accent);
    --brand-accent-strong: var(--accent-strong);
    --brand-accent-soft: var(--accent-soft);
    --brand-radius: 14px;
    --brand-radius-small: 8px;
    --shadow-soft: var(--surface-shadow);
    --shadow-card: var(--surface-shadow);
}

:root[data-theme="light"] {
    color-scheme: light;
    --color-bg: #f6f7fb;
    --color-text: #1c222b;
    --color-heading: #0f1729;
    --color-muted: #677180;
    --color-placeholder: rgba(28, 34, 43, 0.42);
    --color-border: rgba(15, 23, 42, 0.12);
    --color-border-strong: rgba(15, 23, 42, 0.18);

    --accent: #e53935;
    --accent-strong: #c62828;
    --accent-soft: rgba(229, 57, 53, 0.18);
    --accent-gradient: linear-gradient(135deg, #ff6b5f, #e53935);

    --brand-badge-bg: var(--accent-gradient);

    /* Solid light background to avoid banding */
    --app-bg: #f6f7fb;

    --surface-border: rgba(15, 23, 42, 0.08);
    --surface-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
    --surface-bg: linear-gradient(165deg, #ffffff 0%, #f5f6fb 100%);
    --card-gradient: var(--surface-bg);
    --surface-shadow-hover: 0 26px 52px rgba(15, 23, 42, 0.16);

    --brand-text: var(--color-text);
    --brand-title: var(--color-heading);
    --brand-muted: var(--color-muted);
    --brand-border: var(--color-border);
    --brand-border-strong: var(--color-border-strong);
    --brand-accent: var(--accent);
    --brand-accent-strong: var(--accent-strong);
    --brand-accent-soft: var(--accent-soft);
}

* {
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-base);
    background: var(--app-bg);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 32px 16px 48px;
    position: relative; /* allow overlay pseudo-element */
    z-index: 0;
    padding-left: 10%;
    padding-right: 10%;
}

main.page {
    width: 100%;
    position: relative;
    z-index: 1; /* ensure content sits above the overlay */
}

/* Subtle overlay to break gradient banding in dark theme */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: none;
    background-repeat: no-repeat;
    mix-blend-mode: normal;
    opacity: 0;
    will-change: opacity;
}

:root[data-theme="light"] body::before {
    /* very subtle overlay for light theme */
    background-image: none;
    background-repeat: no-repeat;
    mix-blend-mode: normal;
    opacity: 0;
}

header.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 18px;
    width: 100%;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    /* width: 52px; */
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.brand-badge__img {
    /* width: 100%; */
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

/* Two logo variants: show the proper one per theme */
.brand-badge__img--light { display: none; }
.brand-badge__img--dark { display: block; }

:root[data-theme="light"] .brand-badge__img--light { display: block; }
:root[data-theme="light"] .brand-badge__img--dark { display: none; }

/* Ensure the overall page background respects theme variables */
body { background: var(--app-bg); }

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text strong {
    color: var(--brand-title);
    font-size: 40px;
    letter-spacing: 0.5px;
    font-weight: 650;
    padding-top: 3px;
}

.brand-text span {
    color: var(--brand-muted);
    font-size: 13px;
    letter-spacing: 0.4px;
}

.card {
    background: var(--surface-bg);
    border-radius: var(--surface-radius);
    border: 1px solid var(--surface-border);
    padding: 34px;
    box-shadow: var(--surface-shadow);
}

.card--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 36px;
}

.card__intro h1 {
    margin: 0 0 10px;
    font-size: 32px;
    letter-spacing: 0.6px;
    color: var(--color-heading);
}

.card__intro p {
    margin: 0;
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.6;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form__field label {
    display: block;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
}

.form__field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--brand-radius-small);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
    color: var(--color-placeholder);
    opacity: 1;
}

.form__hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-muted);
}

.form__field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--brand-radius-small);
    border: none;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    background: var(--accent-gradient);
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(255, 59, 48, 0.38);
}

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

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: none;
}

.btn--ghost:hover {
    background: var(--accent-soft);
    color: var(--color-heading);
    border-color: transparent;
}

.helper-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--color-muted);
}

.helper-links a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.helper-links a:hover {
    border-color: rgba(255,255,255,0.3);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.preferences-cluster {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.preferences-cluster--right {
    justify-content: flex-end;
}

.language-switch__link {
    color: var(--color-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.language-switch__link:hover {
    border-color: var(--accent-soft);
    color: var(--color-text);
}

.language-switch__link.is-active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    font-weight: 700;
}

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

.settings-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.settings-trigger__icon {
    width: 20px;
    height: 20px;
    fill: var(--color-text);
}

.settings-trigger:hover,
.settings-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-soft);
    transform: translateY(-1px);
    outline: none;
}

.settings-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 14, 0.7);
    backdrop-filter: blur(2px);
    z-index: 80;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.settings-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.settings-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    z-index: 90;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.settings-panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.settings-panel__surface {
    width: min(720px, 100%);
    background: var(--surface-bg);
    border-radius: var(--surface-radius);
    border: 1px solid var(--surface-border);
    box-shadow: var(--surface-shadow);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.settings-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 32px 0;
}

.settings-panel__header h2 {
    margin: 0;
    font-size: 26px;
    color: var(--color-heading);
}

.settings-panel__lead {
    margin: 6px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.settings-close {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.settings-close__icon {
    width: 18px;
    height: 18px;
    fill: var(--color-text);
}

.settings-close:hover,
.settings-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.settings-panel__body {
    padding: 24px 32px 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-panel__section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-panel__section h3 {
    margin: 0;
    font-size: 18px;
    color: var(--color-heading);
}

.settings-panel__hint,
.settings-panel__notice,
.settings-panel__guard {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.6;
}

.settings-panel__notice {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--brand-radius);
    padding: 12px 14px;
}

.settings-panel__section--danger {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.settings-avatar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.settings-avatar__preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

:root[data-theme="light"] .settings-avatar__preview {
    background: rgba(15, 23, 42, 0.04);
}

.settings-avatar__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
}

.settings-avatar__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    color: var(--color-muted);
    text-align: center;
    padding: 0 12px;
    line-height: 1.4;
}

.settings-avatar__controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-avatar__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.settings-avatar-crop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.settings-avatar-crop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.settings-avatar-crop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 9, 14, 0.76);
    backdrop-filter: blur(2px);
}

.settings-avatar-crop__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100% - 32px));
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--surface-shadow);
}

.settings-avatar-crop__canvas {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    cursor: grab;
    touch-action: none;
}

.settings-avatar-crop__canvas:active {
    cursor: grabbing;
}

.settings-avatar-crop__controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-avatar-crop__zoom {
    width: 100%;
}

.site-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

.site-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    image-rendering: optimizeQuality;
}

.site-header__avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.portal-hero__profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portal-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-heading);
    overflow: hidden;
    position: relative;
}

.portal-hero__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    inset: 0;
}

.portal-hero__avatar-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.4;
    padding: 0 14px;
    color: var(--color-muted);
}

.portal-hero__text h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.portal-hero__text p {
    margin: 0;
    color: var(--color-muted);
    max-width: 520px;
}

.form__status {
    min-height: 18px;
    font-size: 13px;
    color: var(--color-muted);
}

.form__status[data-state="pending"] {
    color: var(--color-muted);
}

.form__status[data-state="success"] {
    color: #36d399;
}

.form__status[data-state="error"] {
    color: #ff7168;
}

.btn--danger {
    border-color: rgba(255, 59, 48, 0.35);
    color: #ffb4af;
}

.btn--danger:hover,
.btn--danger:focus-visible {
    background: rgba(255, 59, 48, 0.18);
    color: #ffffff;
    border-color: transparent;
}

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


.appearance-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 4px;
}

.appearance-switch__btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--color-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.appearance-switch__btn:hover {
    color: var(--color-text);
}

.appearance-switch__btn.is-active {
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
}

.notice {
    padding: 12px 14px;
    border-radius: var(--brand-radius-small);
    background: rgba(255, 88, 78, 0.15);
    border: 1px solid rgba(255, 88, 78, 0.3);
    color: #ffc3c0;
    font-size: 14px;
}

.notice--success {
    background: rgba(76, 201, 141, 0.12);
    border-color: rgba(76, 201, 141, 0.28);
    color: #b7f4d3;
}

.portal-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    align-items: start;
}

.portal-hero__intro h1 {
    margin: 0 0 12px;
    font-size: 30px;
    letter-spacing: 0.8px;
    color: var(--color-heading);
}

.portal-hero__intro p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 15px;
}

.portal-hero__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-start;
}

.service-section {
    margin-top: 42px;
}

.service-section header {
    margin-bottom: 20px;
}

.service-section h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.6px;
    color: var(--color-heading);
}

.service-section__count {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--color-muted);
    letter-spacing: 0.3px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

/* clickable card wrapper */
.service-card {
    position: relative;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 16px;
    border-radius: var(--surface-radius);
    border: 1px solid var(--surface-border);
    background: var(--card-gradient, var(--surface-bg));
    box-shadow: var(--surface-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-height: 240px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--surface-shadow-hover);
    border-color: var(--color-border-strong);
}

.service-card__top {
    position: relative;
    border-radius: var(--surface-radius-inner);
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Keep visuals consistent across services */
    aspect-ratio: 16 / 9;
}

 .service-card__top::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--service-cover, linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02)));
    background-size: cover;
    background-position: center;
    opacity: 0.94;
}

/* Full-card clickable overlay */
.service-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-indent: -9999px;
    background: transparent;
}

/* Hide the logo inner content if we actually have a cover image (logo becomes redundant) */
.service-card[style*="--service-cover"] .service-card__logo img {
    display: none;
}

/* If a cover is present, do not display the inner logo to avoid doubling the OG image */

.service-card__logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 16px;
}

.service-card__bottom {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.4px;
    color: var(--color-heading);
}

.service-card__description {
    margin: 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.6;
    min-height: 50px;
}

.service-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 12px;
    color: var(--color-muted);
}

.service-card__actions {
    display: none;
}

.service-card__url {
    font-size: 12px;
    letter-spacing: 0.3px;
    color: rgba(210, 220, 230, 0.82);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-services {
    margin-top: 24px;
    color: var(--color-muted);
    font-size: 15px;
}

footer.site-footer {
    margin-top: 42px;
    text-align: center;
    color: var(--color-muted);
    font-size: 13px;
}

@media (max-width: 880px) {
    .card--split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    header.site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card__intro h1 {
        font-size: 28px;
    }
    
    .form {
        gap: 16px;
    }
}

/* Responsive tweaks for service grid */
@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 26px;
    }
}

@media (max-width: 680px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
    .service-card {
        min-height: 200px;
        padding: 14px;
    }
    
    .card__intro h1 {
        font-size: 24px;
    }
    
    .card__intro p {
        font-size: 14px;
    }
    
    .form__field label {
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    body {
        padding: 24px 14px 40px;
    }

    .card {
        padding: 26px 22px;
        border-radius: 20px;
    }

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

    .button-row {
        width: 100%;
    }
    
    .card__intro h1 {
        font-size: 22px;
    }
    
    .form__field input {
        padding: 11px 12px;
        font-size: 15px;
    }
    
    .form__status {
        font-size: 13px;
    }
}

:root[data-theme="light"] .appearance-switch {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .appearance-switch__btn {
    color: var(--color-muted);
}

:root[data-theme="light"] .service-card {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .service-card__top {
    background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .service-card__top::before {
    opacity: 0.85;
}

:root[data-theme="light"] .service-card__logo {
    background: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .form__field input {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .btn--ghost {
    border-color: rgba(15, 23, 42, 0.14);
}
