:root {
    --primary: #5dade2;
    --secondary: #82e0aa;
    --accent: #f7dc6f;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.88);
    --header-bg: #b3d9e8;
    --transition: all 0.3s ease;
    --shadow-soft: 0 8px 24px rgba(25, 45, 68, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #fff;
    position: relative;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a,
button,
input,
select,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
}

#loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

#loader img {
    width: min(220px, 40vw);
    height: auto;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(4px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 340px;
    margin-right: 22px;
    position: relative;
    left: -30px;
}

.logo-image {
    width: auto;
    height: 60px;
    margin-right: 12px;
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    white-space: normal;
}

.site-title {
    display: inline-block;
    margin-bottom: 0;
    font-size: 1.4rem;
    color: #000;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
    flex: 0 1 auto;
}

.logo-text p {
    font-size: 0.78rem;
    color: #000;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}

nav {
    margin-left: auto;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
    padding-left: 18px;
    padding-right: 24px;
}

nav a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

nav a:hover,
nav a:focus-visible {
    color: var(--primary);
}

.site-auth-shell {
    display: flex;
    align-items: center;
    margin-left: 28px;
    flex-shrink: 0;
    position: relative;
    left: 10px;
}

.site-auth-guest,
.site-auth-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-auth-guest.is-hidden,
.site-auth-user.is-hidden {
    display: none !important;
}

.site-auth-link,
.site-auth-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
}

.site-auth-link {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    color: #17364c;
    box-shadow: 0 10px 20px rgba(25, 45, 68, 0.08);
}

.site-auth-cta {
    padding: 11px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d7cb8, #5dbce0);
    color: #fff;
    box-shadow: 0 12px 24px rgba(45, 124, 184, 0.24);
}

.site-auth-link:hover,
.site-auth-link:focus-visible,
.site-auth-cta:hover,
.site-auth-cta:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.site-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 8px 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(25, 45, 68, 0.1);
    text-decoration: none;
}

.site-account-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d7cb8, #5dbce0);
    color: #fff;
    font-size: 1.1rem;
    overflow: hidden;
}

.site-account-icon img,
.site-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-account-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.site-account-copy strong {
    color: #17364c;
    font-size: 0.95rem;
}

.site-account-copy small {
    color: #547082;
    font-size: 0.75rem;
}

.site-account-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 14, 26, 0.66);
    backdrop-filter: blur(6px);
}

.site-account-modal.active {
    display: flex;
}

.site-account-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 820px);
    overflow: auto;
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 255, 0.99));
    box-shadow: 0 30px 80px rgba(7, 18, 31, 0.28);
}

.site-account-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.08);
    color: var(--dark);
    cursor: pointer;
    font-size: 1.4rem;
}

.site-account-kicker {
    margin: 0 0 8px;
    color: #1f8f5f;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-account-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 18px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(44, 62, 80, 0.06);
}

.site-account-tab {
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #527082;
    font-weight: 700;
    cursor: pointer;
}

.site-account-tab.is-active {
    background: linear-gradient(135deg, #2d7cb8, #5dbce0);
    color: #fff;
}

.site-account-form {
    display: none;
}

.site-account-form.is-active {
    display: block;
}

.site-account-managed {
    display: none;
}

.site-account-managed.is-active {
    display: block;
}

.site-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.site-account-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.site-account-status-card,
.site-account-chip-card,
.site-account-booking-card,
.site-account-booking-detail,
.site-account-closure-status {
    border: 1px solid rgba(25, 45, 68, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.site-account-status-card {
    padding: 16px 18px;
}

.site-account-status-card span {
    display: block;
    color: #5a7180;
    font-size: 0.82rem;
}

.site-account-status-card strong {
    display: block;
    margin-top: 6px;
    color: #16364b;
    font-size: 1.1rem;
}

.site-account-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(25, 45, 68, 0.08);
}

.site-account-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d7cb8, #5dbce0);
    color: #fff;
    font-size: 2rem;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(45, 124, 184, 0.24);
}

.site-account-profile-copy h3,
.site-account-security h3 {
    margin-bottom: 6px;
}

.site-account-profile-copy p,
.site-account-security p {
    color: #5a7180;
    margin-bottom: 0;
}

.site-account-field {
    margin-top: 8px;
}

.site-account-field-full {
    grid-column: 1 / -1;
}

.site-account-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.site-account-checkboxes label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 600;
}

.site-account-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.site-account-field input,
.site-account-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(32, 61, 82, 0.12);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
    box-shadow: inset 0 1px 2px rgba(22, 54, 75, 0.04);
    color: #15364b;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-account-field input:focus,
.site-account-field select:focus {
    border-color: rgba(45, 124, 184, 0.45);
    box-shadow: 0 0 0 4px rgba(93, 188, 224, 0.12);
    background: #fff;
    outline: none;
}

.site-account-submit,
.site-account-logout,
.site-account-ghost {
    margin-top: 20px;
    padding: 13px 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.site-account-submit {
    background: linear-gradient(135deg, #2d7cb8, #5dbce0);
    color: #fff;
}

.site-account-submit:disabled,
.site-account-submit.is-disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
    filter: saturate(0.7);
}

.site-account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.site-account-ghost {
    background: rgba(45, 124, 184, 0.08);
    color: #1f567f;
}

.site-account-security {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(25, 45, 68, 0.08);
}

.site-account-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(25, 45, 68, 0.08);
}

.site-account-status-banner {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(240, 180, 41, 0.14);
    color: #855b08;
    font-weight: 700;
}

.site-account-section-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.site-account-section-header p {
    margin: 0;
    color: #5a7180;
}

.site-account-history-counters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #527082;
    font-size: 0.9rem;
}

.site-account-booking-list,
.site-account-saved-guests,
.site-account-support-links {
    display: grid;
    gap: 12px;
}

.site-account-operations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.site-account-booking-card,
.site-account-chip-card {
    padding: 16px 18px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(25, 45, 68, 0.06);
}

.site-account-booking-card {
    width: 100%;
    cursor: pointer;
}

.site-account-booking-card.is-detail,
.site-account-booking-detail {
    padding: 18px 20px;
}

.site-account-booking-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.site-account-booking-topline span {
    color: #527082;
    font-weight: 700;
}

.site-account-detail-actions,
.site-account-detail-grid,
.site-account-inline-form,
.site-account-support-links {
    display: grid;
    gap: 12px;
}

.site-account-detail-actions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 16px 0;
}

.site-account-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.site-account-inline-form {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 14px;
}

.site-account-inline-form input,
.site-account-inline-form button {
    width: 100%;
}

.site-account-inline-form input {
    padding: 10px 12px;
    border: 1px solid rgba(32, 61, 82, 0.12);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.98));
    box-shadow: inset 0 1px 2px rgba(22, 54, 75, 0.04);
    color: #15364b;
}

.site-account-inline-form input:focus {
    border-color: rgba(45, 124, 184, 0.45);
    box-shadow: 0 0 0 4px rgba(93, 188, 224, 0.12);
    background: #fff;
    outline: none;
}

.site-account-support-links a {
    display: inline-flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(93, 173, 226, 0.08);
    color: #17364c;
    text-decoration: none;
    font-weight: 700;
}

.site-account-logout {
    background: rgba(214, 69, 69, 0.1);
    color: #b03a2e;
}

.site-account-feedback {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(214, 69, 69, 0.1);
    color: #a93024;
    font-weight: 600;
}

.site-account-feedback[data-tone="success"] {
    background: rgba(31, 143, 95, 0.1);
    color: #176b47;
}

.account-page-main {
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--site-header-height, 96px) + 28px);
    padding-bottom: 72px;
    background:
        radial-gradient(circle at top left, rgba(93, 188, 224, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(31, 143, 95, 0.12), transparent 30%),
        linear-gradient(180deg, #f6fbff 0%, #ffffff 48%, #f3f7fb 100%);
}

.account-page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 24px;
}

.account-page-copy h1 {
    max-width: 13ch;
    margin-bottom: 16px;
}

.account-page-copy p {
    max-width: 64ch;
    color: #486171;
    font-size: 1.02rem;
}

.account-page-card {
    padding: 24px 24px 20px;
    border: 1px solid rgba(25, 45, 68, 0.08);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 255, 0.92));
    box-shadow: 0 18px 44px rgba(21, 49, 69, 0.09);
}

.account-page-card-label {
    margin-bottom: 12px;
    color: #1f8f5f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.account-page-card ul {
    margin: 0;
    padding-left: 20px;
    color: #294759;
}

.account-page-card li + li {
    margin-top: 10px;
}

.account-page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(248, 252, 255, 0.97));
    box-shadow: 0 26px 76px rgba(7, 18, 31, 0.12);
}

.account-page-shell {
    display: block;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

.backdrop-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transition: opacity 0.9s ease;
    transform: translateZ(0) scale(1.02);
    will-change: opacity, transform;
}

.backdrop-slide.active {
    opacity: 1;
}

.page-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 18, 29, 0.38), rgba(7, 18, 29, 0.54)),
        linear-gradient(120deg, rgba(8, 30, 54, 0.3), rgba(20, 70, 78, 0.12));
}

body > main,
body > footer {
    position: relative;
    z-index: 1;
}

.account-page .site-account-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-menu-btn {
    display: none;
    padding: 6px 10px;
    border: 2px solid #000;
    border-radius: 6px;
    background: none;
    color: #000;
    cursor: pointer;
    font-size: 1.3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #f39c12);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    filter: brightness(1.03);
}

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

.section-shell {
    padding: 96px 0 90px;
    scroll-margin-top: 110px;
}

body:not(.home-page):not(.account-page):not(.library-page) main {
    padding-top: calc(var(--site-header-height, 96px) + 26px);
}

body:not(.home-page):not(.account-page):not(.library-page) main > .section-shell:first-child {
    padding-top: 48px;
}

.section-title {
    margin: 20px 0 50px;
    text-align: center;
}

.section-title h1,
.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-size: 2.5rem;
    color: var(--primary);
}

.section-title h1::after,
.section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70px;
    height: 3px;
    background: var(--secondary);
    transform: translateX(-50%);
}

footer {
    background: var(--header-bg);
    color: #000;
    padding: 60px 0 30px;
}

.floating-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #1fbf5b, #128c48);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow:
        0 14px 30px rgba(18, 140, 72, 0.32),
        0 0 0 0 rgba(37, 211, 102, 0.45);
    animation: whatsappGlow 2.2s ease-in-out infinite;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-whatsapp i {
    font-size: 1.5rem;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    transform: translateY(-3px) scale(1.02);
    filter: brightness(1.03);
}

@keyframes whatsappGlow {
    0% {
        box-shadow:
            0 14px 30px rgba(18, 140, 72, 0.28),
            0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    70% {
        box-shadow:
            0 14px 30px rgba(18, 140, 72, 0.34),
            0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow:
            0 14px 30px rgba(18, 140, 72, 0.28),
            0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(150px, 1fr));
    gap: 24px;
    align-items: start;
    margin-bottom: 28px;
}

.footer-links h3,
.footer-services h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 14px;
    font-size: 1.05rem;
    color: #000;
}

.footer-links h3::after,
.footer-services h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 8px;
    font-size: 0.94rem;
}

.footer-links a,
.footer-services a {
    color: #000;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-location-link i {
    color: var(--primary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 16px rgba(25, 45, 68, 0.08);
    font-weight: 600;
    font-size: 0.84rem;
}

.social-link i {
    width: 15px;
    text-align: center;
    color: var(--primary);
    font-size: 0.9rem;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    color: #000;
    font-size: 0.9rem;
    text-align: center;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 0.92rem;
}

.footer-legal a {
    color: #000;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: var(--primary);
}

.footer-legal-separator {
    color: rgba(0, 0, 0, 0.45);
}

.footer-description {
    margin-top: 15px;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-content > div:first-child .logo {
    align-items: flex-start;
    margin-right: 0;
    flex: 0 1 auto;
}

.footer-content > div:first-child .logo-image {
    height: 52px;
}

.footer-content > div:first-child .logo-text {
    display: block;
    white-space: normal;
}

.footer-content > div:first-child .site-title {
    display: block;
    max-width: 6ch;
    line-height: 0.95;
}

.footer-content > div:first-child .logo-text p {
    margin-top: 10px;
    max-width: 22ch;
}

@media (max-width: 1200px) {
    .header-container {
        gap: 10px;
    }

    .logo {
        flex-basis: 290px;
        margin-right: 12px;
        left: -22px;
    }

    .site-title {
        font-size: 1.28rem;
    }

    nav ul {
        gap: 16px;
    }

    nav a {
        font-size: 0.94rem;
    }

    nav {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-auth-shell {
        margin-left: 20px;
        left: 12px;
    }

    .site-auth-guest,
    .site-auth-user {
        gap: 8px;
    }

    .site-auth-link {
        padding: 10px 13px;
    }

    .site-auth-cta {
        padding: 10px 15px;
    }

    .footer-content {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        background: transparent;
    }

    .page-backdrop {
        inset: -2%;
    }

    .page-backdrop::after {
        background:
            linear-gradient(180deg, rgba(7, 18, 29, 0.22), rgba(7, 18, 29, 0.4)),
            linear-gradient(120deg, rgba(8, 30, 54, 0.16), rgba(20, 70, 78, 0.08));
    }

    .container {
        width: min(100%, calc(100% - 32px));
    }

    .account-page-main {
        padding-top: calc(var(--site-header-height, 104px) + 28px);
    }

    .account-page-hero-grid {
        grid-template-columns: 1fr;
    }

    .account-page-shell {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }

    .header-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: 6px;
        padding: 8px 0;
    }

    .logo {
        min-width: 0;
        max-width: none;
        order: 1;
        flex: none;
        left: 0;
        margin-right: 0;
    }

    .logo-text {
        display: block;
        min-width: 0;
        max-width: 11ch;
        white-space: normal;
    }

    .logo-image {
        height: 38px;
        margin-right: 7px;
    }

    .site-title {
        display: block;
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.04;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .logo-text p {
        max-width: 100%;
        font-size: 0.6rem;
        line-height: 1.15;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-menu-btn {
        display: block;
        order: 3;
        margin-left: auto;
        flex-shrink: 0;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid rgba(23, 54, 76, 0.16);
        border-radius: 16px;
        background:
            linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(235, 248, 255, 0.9)),
            radial-gradient(circle at top left, rgba(93, 173, 226, 0.4), transparent 45%);
        color: #17364c;
        box-shadow: 0 12px 24px rgba(25, 45, 68, 0.12);
        transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:focus-visible,
    .mobile-menu-btn[aria-expanded="true"] {
        transform: translateY(-1px);
        background: linear-gradient(135deg, #2d7cb8, #5dbce0);
        color: #fff;
        box-shadow: 0 16px 30px rgba(45, 124, 184, 0.26);
    }

    .site-auth-shell {
        order: 2;
        width: auto;
        justify-content: center;
        margin-left: 0;
        flex: 0 0 auto;
        left: 0;
        justify-self: end;
    }

    .site-auth-guest {
        gap: 6px;
    }

    .site-auth-link,
    .site-auth-cta {
        width: 38px;
        height: 38px;
        padding: 0;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .site-auth-link span,
    .site-auth-cta span {
        display: none;
    }

    .site-account-trigger {
        width: 38px;
        height: 38px;
        justify-content: center;
        padding: 3px;
        gap: 0;
    }

    .site-account-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .site-account-copy {
        display: none;
    }

    nav {
        order: 4;
        width: 0;
        margin-left: 0;
    }

    .site-account-copy small {
        display: none;
    }

    .site-account-dialog {
        padding: 24px 20px;
    }

    .site-account-grid {
        grid-template-columns: 1fr;
    }

    .site-account-profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-account-status-grid,
    .site-account-detail-grid {
        grid-template-columns: 1fr;
    }

    .account-page .site-account-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav ul {
        position: fixed;
        top: var(--site-header-height, 104px);
        right: 16px;
        left: auto;
        width: min(330px, calc(100vw - 32px));
        max-height: calc(100vh - var(--site-header-height, 104px));
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        border-radius: 24px;
        background:
            linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(235, 247, 252, 0.96)),
            radial-gradient(circle at top right, rgba(93, 173, 226, 0.28), transparent 38%);
        box-shadow:
            0 26px 60px rgba(12, 34, 55, 0.24),
            inset 0 1px 0 rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        overflow-y: auto;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top right;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    }

    nav ul::before {
        content: "Pages";
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 6px;
        padding: 0 2px 10px;
        border-bottom: 1px solid rgba(25, 45, 68, 0.08);
        color: #1f8f5f;
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.16em;
        text-transform: uppercase;
    }

    nav ul li {
        width: 100%;
        opacity: 0;
        transform: translateY(-4px);
    }

    nav ul a {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 13px 14px;
        border: 1px solid transparent;
        border-radius: 16px;
        color: #17364c;
        background: rgba(255, 255, 255, 0.48);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    }

    nav ul a::before {
        content: "";
        width: 9px;
        height: 9px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: linear-gradient(135deg, #2d7cb8, #82e0aa);
        box-shadow: 0 0 0 4px rgba(93, 173, 226, 0.12);
    }

    nav ul a:hover,
    nav ul a:focus-visible {
        background: linear-gradient(135deg, rgba(45, 124, 184, 0.12), rgba(130, 224, 170, 0.12));
        border-color: rgba(93, 173, 226, 0.24);
        color: #0d324f;
    }

    nav ul.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    nav ul.active li {
        animation: menuItemReveal 0.22s ease forwards;
    }

    nav ul.active li:nth-child(1) {
        animation-delay: 0.02s;
    }

    nav ul.active li:nth-child(2) {
        animation-delay: 0.04s;
    }

    nav ul.active li:nth-child(3) {
        animation-delay: 0.06s;
    }

    nav ul.active li:nth-child(4) {
        animation-delay: 0.08s;
    }

    nav ul.active li:nth-child(5) {
        animation-delay: 0.1s;
    }

    nav ul.active li:nth-child(6) {
        animation-delay: 0.12s;
    }

    nav ul.active li:nth-child(7) {
        animation-delay: 0.14s;
    }

    nav ul.active li:nth-child(8) {
        animation-delay: 0.16s;
    }

    body.site-menu-open::after {
        content: "";
        position: fixed;
        inset: var(--site-header-height, 104px) 0 0;
        z-index: 998;
        background: rgba(8, 20, 32, 0.18);
        backdrop-filter: blur(2px);
    }

    .section-shell {
        padding: calc(var(--site-header-height, 104px) + 36px) 0 70px;
    }

    .footer-content > div:first-child .logo {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        left: 0;
    }

    .footer-content > div:first-child .logo-text {
        max-width: none;
    }

    .footer-content > div:first-child .site-title {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 0.98;
    }
}

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

@media (max-width: 480px) {
    .container {
        width: min(100%, calc(100% - 24px));
    }

    .header-container {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 4px;
    }

    .logo-image {
        height: 34px;
        margin-right: 6px;
    }

    .logo-text {
        max-width: 10ch;
    }

    .site-title {
        font-size: 0.92rem;
    }

    .site-auth-guest {
        width: auto;
        display: flex;
        justify-content: center;
        gap: 5px;
    }

    .site-auth-link {
        width: 34px;
        height: 34px;
        padding: 0;
        font-size: 0.86rem;
    }

    .site-auth-cta {
        width: 34px;
        height: 34px;
        padding: 0;
        font-size: 0.86rem;
    }

    .site-account-trigger {
        width: 34px;
        height: 34px;
        justify-content: center;
    }

    .logo-text p {
        font-size: 0.52rem;
    }

    .mobile-menu-btn {
        width: 34px;
        height: 34px;
        border-radius: 13px;
        font-size: 1rem;
    }

    .site-account-icon {
        width: 28px;
        height: 28px;
        font-size: 0.84rem;
    }

    nav ul {
        right: 12px;
        width: min(310px, calc(100vw - 24px));
    }

    .btn {
        width: 100%;
        padding: 12px 18px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-content > div:first-child .site-title {
        font-size: 1rem;
    }

    .footer-legal {
        gap: 8px;
        font-size: 0.88rem;
        justify-content: flex-start;
    }

    .footer-legal-separator {
        display: none;
    }

    .social-link {
        font-size: 0.82rem;
        padding: 7px 10px;
    }

    .site-account-tabs {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 16px;
        padding: 13px 15px;
    }

    .floating-whatsapp span {
        display: none;
    }
}
