:root {
    --drive-primary: #0066ff;
    --drive-primary-strong: #004fcb;
    --drive-dark: #0f172a;
    --drive-gray-100: #f8fafc;
    --drive-gray-200: #e2e8f0;
    --drive-text: #1e293b;
    --drive-muted: #64748b;
    --drive-surface: #ffffff;
    --drive-radius: 12px;
    --drive-font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
    --drive-font-display: system-ui, -apple-system, "Segoe UI", sans-serif;
    --drive-hero-background: radial-gradient(circle at 0% 0%, #f8fafc 0%, #ffffff 100%);
    --drive-consent-offset: 0px;
}

body {
    font-family: var(--drive-font-body);
    background-color: var(--drive-surface);
    color: var(--drive-text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--drive-consent-offset) + env(safe-area-inset-bottom, 0px));
    transition: padding-bottom 0.2s ease;
}

h1 {
    font-family: var(--drive-font-display);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--drive-dark);
}

h2 {
    font-family: var(--drive-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--drive-dark);
}

.hero-section {
    padding: 160px 0;
    background: var(--drive-hero-background);
    border-bottom: 1px solid var(--drive-gray-200);
}

.hero-section .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--drive-muted);
}

.cms-block {
    padding: 100px 0;
}

.btn {
    border-radius: var(--drive-radius);
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--drive-primary);
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: var(--drive-primary-strong);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.login-card {
    background: var(--drive-surface);
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--drive-primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

#cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--drive-gray-200);
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
}

#cookie-consent-banner.hidden {
    display: none;
}

.consent-link {
    color: var(--drive-primary-strong);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

.legal-page main {
    max-width: 920px;
}

.legal-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-page p,
.legal-page li {
    line-height: 1.65;
}

.legal-meta {
    min-width: 180px;
}

.legal-document-content {
    line-height: 1.75;
}

.legal-document-content h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-top: 2rem;
}

.shop-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(15, 123, 108, 0.04) 100%);
}

.shop-card,
.content-card,
.module-card,
.theme-card {
    background: var(--drive-surface);
    border-radius: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

.shop-price {
    color: var(--drive-primary);
    font-family: var(--drive-font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
}

.checkout-form .form-check {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
}

.checkout-form .form-check-input {
    margin-top: 0.35rem;
}

.donation-checkout-card {
    border-color: #e4ede7;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcf9 100%);
}

.donation-benefits {
    display: grid;
    gap: 0.75rem;
}

.donation-benefits__item {
    border: 1px solid #dfe9e2;
    background: #f6faf7;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    font-weight: 500;
    color: #1a3e2f;
}

.donation-provider-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.donation-provider-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.donation-provider-badge.is-available {
    background: rgba(31, 122, 79, 0.14);
    color: #145536;
}

.donation-provider-badge.is-unavailable {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.donation-form .form-label {
    font-weight: 700;
    color: #1f2937;
}

.donation-form .form-check {
    border-color: #dce8df;
    background: #ffffff;
}

.donation-form .form-check:focus-within {
    border-color: #2f7a36;
    box-shadow: 0 0 0 3px rgba(47, 122, 54, 0.1);
}

.donation-form .form-check-input:checked {
    background-color: #2f7a36;
    border-color: #2f7a36;
}

.donation-form .form-text {
    color: #4b5563;
}

.donation-form .invalid-feedback,
.donation-form .form-error-message {
    font-weight: 600;
}

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.module-pill.is-on {
    background: rgba(15, 123, 108, 0.12);
    color: var(--drive-primary-strong);
}

.module-pill.is-off {
    background: rgba(100, 116, 139, 0.12);
    color: var(--drive-muted);
}

.theme-medical .hero-section {
    position: relative;
    overflow: hidden;
}

.theme-medical .hero-section::after {
    content: "";
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(15, 123, 108, 0.18);
    border-radius: calc(var(--drive-radius) * 1.4);
    pointer-events: none;
}

.theme-compassion .hero-section {
    position: relative;
    overflow: hidden;
}

.theme-compassion .hero-section::before {
    content: "";
    position: absolute;
    inset: auto -12% -35% auto;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(47, 122, 54, 0.18) 0%, rgba(47, 122, 54, 0) 72%);
    pointer-events: none;
}

.theme-compassion .btn-primary {
    box-shadow: 0 8px 24px -12px rgba(35, 94, 41, 0.72);
}

.theme-compassion .footer {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf1 100%);
}

.theme-compassion-modern .hero-section {
    position: relative;
    overflow: hidden;
}

.theme-compassion-modern .hero-section::before {
    content: "";
    position: absolute;
    inset: auto -10% -35% auto;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(31, 122, 79, 0.2) 0%, rgba(31, 122, 79, 0) 72%);
    pointer-events: none;
}

.theme-compassion-modern .btn-primary {
    border-radius: 999px;
    box-shadow: 0 12px 30px -14px rgba(24, 95, 62, 0.75);
}

.theme-compassion-modern .btn-outline-secondary {
    border-radius: 999px;
}

.theme-compassion-modern .content-card,
.theme-compassion-modern .module-card,
.theme-compassion-modern .theme-card {
    border-radius: 28px;
    border-color: #e4ede7;
    box-shadow: 0 30px 60px -35px rgba(22, 40, 31, 0.35);
}

.theme-compassion-modern .footer {
    background: linear-gradient(180deg, #ffffff 0%, #eff8f1 100%);
}

.mobile-main-nav .btn {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    text-align: left;
}
