:root {
    --bg: #edf3f5;
    --bg-soft: #f7f2ea;
    --paper: rgba(255, 252, 247, 0.82);
    --paper-strong: #fffaf3;
    --text: #1f1d1a;
    --muted: #6b6a66;
    --teal: #0f8a94;
    --teal-deep: #0f5f6e;
    --gold: #d7ac68;
    --line: rgba(31, 29, 26, 0.08);
    --shadow: 0 24px 60px rgba(33, 51, 64, 0.12);
    --shadow-soft: 0 10px 28px rgba(33, 51, 64, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(15, 138, 148, 0.12), transparent 24%),
        radial-gradient(circle at top right, rgba(215, 172, 104, 0.14), transparent 24%),
        linear-gradient(180deg, #eef5f6 0%, #f4eee5 34%, #eef4f5 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.24), rgba(255,255,255,0.24)),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mix-blend-mode: soft-light;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
code { font-family: ui-monospace, Consolas, monospace; }
body.lightbox-open { overflow: hidden; }

.site-shell {
    width: min(1320px, calc(100% - 28px));
    margin: 0 auto;
    padding-bottom: 40px;
}

.site-header,
.site-footer,
.hero,
.luxury-ribbon,
.service-panel,
.service-detail,
.page-hero,
.contact-section,
.dashboard-card,
.cart-row,
.summary-panel,
.empty-state,
.article-card,
.island-tile,
.auth-shell,
.gallery-card,
.calculator,
.article-body p,
.article-section {
    background: var(--paper);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 20px;
}

.glass-panel.compact { padding: 16px 18px; }

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 24px;
    margin-top: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand strong, h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: -0.03em;
}
.brand small { display: block; color: var(--muted); }
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    color: white;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(15, 138, 148, 0.25);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.main-nav a {
    color: #5c5a55;
    font-size: 0.92rem;
    transition: color 0.22s ease, transform 0.22s ease;
}
.main-nav a:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.badge, .pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(15, 138, 148, 0.08);
    color: var(--teal-deep);
    border: 1px solid rgba(15, 138, 148, 0.12);
}

.flash {
    margin-top: 16px;
    border-radius: 16px;
    padding: 14px 18px;
}
.flash-success { background: #e2f6ee; color: #0f6f52; }
.flash-error { background: #ffe4df; color: #9b3928; }

main { display: grid; gap: 26px; margin-top: 22px; }
.eyebrow {
    margin: 0 0 10px;
    color: var(--teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    font-size: 0.75rem;
    font-weight: 700;
}

.hero-luxury {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 0.95fr);
    gap: 30px;
    padding: 24px;
    border-radius: 30px;
    overflow: hidden;
    min-height: 620px;
}

.hero-backdrop {
    position: absolute;
    inset: auto auto -120px -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(15, 138, 148, 0.14), transparent 70%);
}

.hero-copy, .hero-stage { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1,
.page-hero h1,
.dashboard-head h1,
.auth-shell h1 {
    margin: 0;
    font-size: clamp(2.6rem, 5.2vw, 4.8rem);
    line-height: 0.95;
}
.hero-lead, .page-hero p, .dashboard-head p, .contact-copy p, .section-heading p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.62;
    max-width: 58ch;
}

.hero-actions,
.cart-actions,
.auth-form,
.contact-form,
.mini-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hero-actions.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    cursor: pointer;
    border: 0;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    color: white;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    box-shadow: 0 16px 34px rgba(15, 138, 148, 0.22);
}
.button-ghost,
.button-secondary {
    color: var(--text);
    background: rgba(255,255,255,0.56);
    border: 1px solid rgba(31, 29, 26, 0.08);
}

.hero-stage { min-height: 600px; }
.hero-stage-main {
    position: absolute;
    inset: 0;
    border-radius: 34px;
    overflow: hidden;
}
.hero-stage-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-quote {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: 280px;
    z-index: 2;
}
.hero-quote span,
.article-feature-card span {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal-deep);
}

.hero-orbit {
    position: absolute;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.65);
    animation: spin 18s linear infinite;
}
.orbit-a { width: 120px; height: 120px; top: 22px; right: 34px; }
.orbit-b { width: 64px; height: 64px; top: 70px; right: 162px; animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-metrics,
.ribbon-grid,
.service-showcase,
.calculator-grid,
.calculator-controls,
.islands-grid,
.article-grid,
.dashboard-grid,
.admin-grid,
.article-layout,
.checkout-layout,
.contact-section,
.auth-shell,
.service-listing,
.cart-list,
.gallery-grid,
.advantage-stack {
    display: grid;
    gap: 18px;
}

.hero-metrics {
    margin-top: 20px;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.hero-metrics div {
    padding-top: 12px;
    border-top: 1px solid rgba(31, 29, 26, 0.08);
}
.hero-metrics strong {
    display: block;
    font-size: 1.35rem;
    color: var(--teal-deep);
}
.hero-metrics span { color: var(--muted); font-size: 0.88rem; }

.luxury-ribbon {
    border-radius: 30px;
    padding: 22px;
}
.ribbon-label {
    margin-bottom: 12px;
    color: var(--teal-deep);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
}
.ribbon-grid { grid-template-columns: repeat(4, 1fr); }
.ribbon-grid.three { grid-template-columns: repeat(3, 1fr); }
.ribbon-grid article {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.44);
    border: 1px solid rgba(31, 29, 26, 0.06);
}
.ribbon-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.08rem;
}
.ribbon-grid span { color: var(--muted); line-height: 1.6; }

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.service-showcase.premium { grid-template-columns: repeat(3, 1fr); }
.service-panel,
.service-detail,
.page-hero,
.contact-section,
.dashboard-card,
.cart-row,
.summary-panel,
.empty-state,
.article-card,
.island-tile,
.auth-shell,
.gallery-card {
    border-radius: 30px;
    padding: 22px;
}

.premium-panel {
    position: relative;
    overflow: hidden;
}
.premium-panel::before {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(15, 138, 148, 0.08), transparent 66%);
}
.service-tone-1,
.service-tone-2,
.service-tone-3 {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.8), rgba(255,255,255,0.58)),
        var(--paper);
}
.service-tone-1 {
    background:
        radial-gradient(circle at top right, rgba(59, 174, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62)),
        var(--paper);
}
.service-tone-2 {
    background:
        radial-gradient(circle at top right, rgba(0, 198, 187, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62)),
        var(--paper);
}
.service-tone-3 {
    background:
        radial-gradient(circle at top right, rgba(111, 160, 255, 0.16), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.62)),
        var(--paper);
}
.service-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.service-index {
    color: rgba(15, 95, 110, 0.18);
    font-size: 2.3rem;
    font-weight: 700;
}

.service-panel h3,
.service-detail h2,
.article-card h3,
.dashboard-card h2,
.summary-panel h3,
.article-section h2 {
    margin: 10px 0;
    font-size: 1.6rem;
}
.service-panel p,
.service-detail p,
.dashboard-card p,
.article-card p,
.island-tile p,
.summary-panel p,
.empty-state p,
.auth-shell p,
.dashboard-item p,
.admin-order p {
    color: var(--muted);
    line-height: 1.68;
}
.service-panel h3 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.service-panel h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, #11a7c8, #5a8dff);
}
.service-panel .pill {
    background: linear-gradient(135deg, rgba(17, 167, 200, 0.12), rgba(90, 141, 255, 0.12));
    color: #137a94;
    border-color: rgba(19, 122, 148, 0.16);
}

.price-line,
.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.price-line strong,
.summary-line strong {
    color: var(--teal-deep);
    font-size: 1.12rem;
}
.service-panel .price-line {
    margin-top: auto;
    padding: 14px 0 10px;
    border-top: 1px solid rgba(15, 138, 148, 0.08);
}
.service-panel .price-line strong {
    font-size: 1.9rem;
    line-height: 1;
    background: linear-gradient(135deg, #0f7f95, #2f8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.service-panel .price-line span {
    color: #51656d;
    font-weight: 600;
}
.service-panel .button-ghost {
    background: linear-gradient(135deg, rgba(17, 167, 200, 0.12), rgba(90, 141, 255, 0.12));
    border-color: rgba(17, 167, 200, 0.16);
    color: #0f6476;
    font-weight: 700;
}
.service-panel .button-ghost:hover {
    background: linear-gradient(135deg, #0f8a94, #4d8fff);
    color: #fff;
}

.immersive-block {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
}
.immersive-media,
.immersive-copy { min-height: 500px; }
.immersive-media {
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.immersive-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.calculator {
    border-radius: 30px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.calculator-grid { grid-template-columns: repeat(4, 1fr); }
.calculator-item {
    display: grid;
    gap: 8px;
    cursor: pointer;
}
.calculator-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.calculator-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.service-choice {
    position: relative;
    min-height: 138px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.service-choice:hover {
    transform: translateY(-2px);
}
.service-choice strong {
    font-size: 1rem;
}
.service-choice small,
.service-choice em {
    color: var(--muted);
    font-style: normal;
}
.service-choice em {
    color: var(--teal-deep);
    font-weight: 700;
}
.calculator-checkmark {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(15, 138, 148, 0.28);
    background: rgba(255,255,255,0.72);
}
.service-choice:has(input:checked) {
    background: linear-gradient(180deg, rgba(15, 138, 148, 0.12), rgba(255,255,255,0.76));
    border-color: rgba(15, 138, 148, 0.24);
}
.service-choice:has(input:checked) .calculator-checkmark {
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    box-shadow: inset 0 0 0 4px rgba(255,255,255,0.9);
}
.calculator-controls {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}
.calculator-controls-extended {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}
.calculator-controls-extended label {
    display: grid;
    gap: 10px;
    color: var(--muted);
}
.range-value {
    color: var(--teal-deep);
    font-size: 0.92rem;
    font-weight: 700;
}
.calculator-upgrades {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.upgrade-chip {
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 138, 148, 0.14);
    background: rgba(255,255,255,0.66);
    color: var(--text);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.upgrade-chip:hover {
    transform: translateY(-1px);
}
.upgrade-chip.is-active {
    color: white;
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
}
.calculator-breakdown {
    grid-column: span 2;
    min-height: 100%;
}
.calculator-breakdown strong {
    display: block;
    margin-bottom: 10px;
}
.calculator-breakdown ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}
.calculator-breakdown li + li {
    margin-top: 6px;
}
.calculator-result {
    min-width: 220px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 138, 148, 0.08), rgba(255,255,255,0.68));
    border: 1px solid rgba(15, 138, 148, 0.14);
}
.calculator-result strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 2rem;
}
.calculator-result small { color: var(--muted); }
.calculator-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 29, 26, 0.08);
    color: var(--muted);
    font-size: 0.92rem;
}

.premium-islands { grid-template-columns: repeat(3, 1fr); }
.island-tile {
    min-height: 210px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.gallery-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}
.gallery-card {
    overflow: hidden;
    padding: 0;
    min-height: 0;
    border-radius: 22px;
    cursor: pointer;
}
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}
.gallery-card:hover img {
    transform: scale(1.03);
}
.gallery-card-wide {
    grid-column: span 6;
    aspect-ratio: 16 / 10;
}
.gallery-card-square {
    grid-column: span 3;
    aspect-ratio: 1 / 1;
}
.gallery-card-tall {
    grid-column: span 3;
    aspect-ratio: 3 / 4;
}

.premium-articles { grid-template-columns: repeat(4, 1fr); }
.article-card {
    overflow: hidden;
    padding: 0;
}
.article-card img {
    width: 100%;
    aspect-ratio: 4 / 3.2;
    object-fit: cover;
}
.article-card div { padding: 18px; }
.news-grid {
    grid-template-columns: repeat(3, 1fr);
}
.news-card {
    padding: 0;
}
.news-card div {
    display: grid;
    gap: 10px;
    min-height: 100%;
}
.news-card small {
    color: var(--muted);
    margin-top: auto;
}
.weather-grid article {
    display: grid;
    gap: 10px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(125, 196, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 255, 0.96));
    border: 1px solid rgba(73, 133, 180, 0.12);
    box-shadow: 0 16px 32px rgba(52, 91, 128, 0.08);
}
.weather-head,
.weather-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.weather-label {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.weather-temp {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--teal-deep);
}
.weather-icon {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, #eef8ff, #dcefff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 12px 24px rgba(94, 152, 210, 0.14);
}
.weather-icon span,
.weather-icon::before,
.weather-icon::after {
    position: absolute;
    content: "";
}
.weather-icon-sun span {
    inset: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6b2, #ffc74d 65%, #ffac33);
    box-shadow: 0 0 0 6px rgba(255, 199, 77, 0.18);
}
.weather-icon-partly span {
    top: 12px;
    left: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff6b2, #ffc74d 65%, #ffac33);
    box-shadow: 0 0 0 5px rgba(255, 199, 77, 0.14);
}
.weather-icon-partly::before,
.weather-icon-cloud span,
.weather-icon-cloud::before,
.weather-icon-cloud::after,
.weather-icon-rain span,
.weather-icon-rain::before,
.weather-icon-rain::after,
.weather-icon-storm span,
.weather-icon-storm::before,
.weather-icon-fog span {
    background: linear-gradient(180deg, #ffffff, #d9e6f2);
}
.weather-icon-partly::before,
.weather-icon-cloud span,
.weather-icon-rain span,
.weather-icon-storm span {
    left: 12px;
    right: 10px;
    bottom: 16px;
    height: 16px;
    border-radius: 999px;
}
.weather-icon-partly::after,
.weather-icon-cloud::before,
.weather-icon-rain::before,
.weather-icon-storm::before {
    left: 16px;
    bottom: 23px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}
.weather-icon-cloud::after,
.weather-icon-rain::after,
.weather-icon-storm::after {
    right: 15px;
    bottom: 22px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}
.weather-icon-rain {
    overflow: hidden;
}
.weather-icon-rain i,
.weather-icon-storm i,
.weather-icon-fog i {
    display: none;
}
.weather-icon-rain::after {
    background: linear-gradient(180deg, #ffffff, #d9e6f2);
    box-shadow: -16px 15px 0 -7px #4b9de8, -2px 18px 0 -7px #4b9de8, 12px 15px 0 -7px #4b9de8;
}
.weather-icon-storm::after {
    background: linear-gradient(180deg, #ffffff, #d9e6f2);
    box-shadow: none;
}
.weather-icon-storm span {
    left: 11px;
    right: 11px;
}
.weather-icon-storm::before {
    left: 19px;
}
.weather-icon-storm::after {
    right: 12px;
    bottom: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 5px solid transparent;
    border-top: 18px solid #ffbf2f;
    background: transparent;
    border-radius: 0;
    transform: skewX(-12deg);
}
.weather-icon-fog span {
    left: 12px;
    right: 12px;
    top: 18px;
    height: 8px;
    border-radius: 999px;
    box-shadow: 0 12px 0 0 rgba(217, 230, 242, 0.95), 0 24px 0 0 rgba(217, 230, 242, 0.88);
}
.weather-line strong,
.currency-line strong {
    color: var(--teal-deep);
}
.weather-line {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 247, 252, 0.98));
    border: 1px solid rgba(73, 133, 180, 0.12);
}

.contact-luxury,
.checkout-layout,
.auth-shell {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.contact-form label,
.auth-form label,
.mini-form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
}
input, textarea, select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(31, 29, 26, 0.08);
    background: rgba(255,255,255,0.7);
    color: var(--text);
    outline: none;
}
input::placeholder, textarea::placeholder { color: #8a8985; }

.page-hero.small,
.empty-state,
.dashboard-head { padding: 26px; }

.service-listing { gap: 22px; }
.service-detail {
    display: grid;
    gap: 20px;
}
.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: start;
}
.service-cover {
    width: 100%;
    max-width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 0;
}
.service-detail-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}
.service-detail-main {
    min-width: 0;
}
.service-detail ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}
.service-detail-cta {
    display: grid;
    align-content: start;
    gap: 12px;
    justify-items: stretch;
    padding: 20px;
    border-radius: 26px;
    position: sticky;
    top: 18px;
}
.service-detail-cta .button {
    width: 100%;
    min-height: 64px;
    border-radius: 24px;
    font-size: 1.05rem;
}
.service-detail-cta strong {
    font-size: 1.9rem;
    line-height: 1;
    background: linear-gradient(135deg, #0f7f95, #2f8cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.service-detail-cta span {
    color: #4d5e66;
    font-weight: 600;
}
.service-detail-cta small {
    color: var(--muted);
}
.service-detail h2 {
    margin-top: 6px;
}

.summary-panel {
    display: grid;
    gap: 10px;
    align-content: start;
}
.summary-line {
    padding: 10px 0;
    border-bottom: 1px solid rgba(31, 29, 26, 0.08);
}
.summary-line.total {
    border-top: 1px solid rgba(31, 29, 26, 0.08);
    padding-top: 14px;
}

.dashboard-grid,
.admin-grid { grid-template-columns: repeat(2, 1fr); }
.dashboard-card { display: grid; gap: 12px; align-content: start; }
.dashboard-sortable {
    align-items: start;
}
.dashboard-sortable .dashboard-card {
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.dashboard-sortable .dashboard-card:hover {
    transform: translateY(-2px);
}
.dashboard-tile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dashboard-tile-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(82, 152, 215, 0.10);
    color: var(--teal-deep);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.dashboard-drag-handle {
    border: 0;
    border-radius: 12px;
    padding: 6px 10px;
    background: rgba(18, 120, 142, 0.10);
    color: var(--teal-deep);
    cursor: grab;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0.16em;
}
.dashboard-drag-handle:active {
    cursor: grabbing;
}
.dashboard-sorting .dashboard-drag-handle {
    cursor: grabbing;
}
.dashboard-card.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
    border-color: rgba(18, 120, 142, 0.32);
    box-shadow: 0 22px 46px rgba(18, 120, 142, 0.16);
}
.mailbox-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 16px;
}
.mailbox-list {
    display: grid;
    gap: 10px;
    align-content: start;
}
.mailbox-link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: rgba(247, 251, 255, 0.95);
    border: 1px solid rgba(73, 133, 180, 0.12);
}
.mailbox-link.is-active {
    border-color: rgba(18, 120, 142, 0.34);
    box-shadow: 0 14px 28px rgba(18, 120, 142, 0.12);
}
.mailbox-link span,
.mailbox-link small {
    color: var(--muted);
}
.mailbox-preview {
    min-height: 240px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.92);
    border: 1px solid rgba(73, 133, 180, 0.12);
}
.mailbox-body {
    margin-top: 12px;
    line-height: 1.7;
    color: var(--text);
    white-space: pre-wrap;
}
.dashboard-card-stat {
    min-height: 150px;
}
.dashboard-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--teal-deep);
}
.game-card {
    overflow: hidden;
}
.dashboard-item,
.admin-order {
    padding: 14px 0;
    border-bottom: 1px solid rgba(31, 29, 26, 0.08);
}
.dashboard-item:last-child,
.admin-order:last-child,
.summary-line:last-child { border-bottom: 0; }

.memory-game {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(31, 29, 26, 0.06);
}
.memory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.memory-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.memory-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.15;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    min-width: 0;
}
.memory-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    backface-visibility: hidden;
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-soft);
}
.memory-card-back {
    background: linear-gradient(135deg, var(--teal-deep), var(--teal));
    color: white;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.memory-card-front {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
}
.memory-card-front::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.52) 100%);
}
.memory-card-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    color: white;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 700;
}
.memory-card.is-open .memory-card-back,
.memory-card.is-matched .memory-card-back {
    transform: rotateY(180deg);
}
.memory-card.is-open .memory-card-front,
.memory-card.is-matched .memory-card-front {
    transform: rotateY(360deg);
}
.memory-card.is-matched .memory-card-front {
    box-shadow: 0 0 0 3px rgba(15, 138, 148, 0.18), var(--shadow-soft);
}

.article-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 20px;
    align-items: start;
}
.article-intro-media {
    min-width: 0;
}
.article-cover {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    box-shadow: var(--shadow);
}
.article-intro-copy {
    display: grid;
    gap: 16px;
    align-content: start;
}
.article-feature-card {
    position: static;
    max-width: none;
    background: rgba(255, 251, 246, 0.88);
    border: 1px solid rgba(255,255,255,0.82);
}
.article-feature-card strong {
    display: block;
    line-height: 1.28;
}
.article-feature-card p,
.article-meta-card p {
    color: #4b555a;
    line-height: 1.65;
}
.article-meta-card strong {
    display: block;
    margin-bottom: 8px;
}
.article-layout {
    grid-template-columns: minmax(0, 0.98fr) 320px;
    align-items: start;
}
.article-body { display: grid; gap: 18px; }
.article-body p,
.article-section {
    border-radius: 24px;
    padding: 22px;
    line-height: 1.78;
}
.article-section p {
    margin: 0 0 14px;
    color: var(--muted);
}
.article-section p:last-child {
    margin-bottom: 0;
}
.article-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.8;
}
.article-section li + li {
    margin-top: 8px;
}
.faq-list { display: grid; gap: 12px; }
.article-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
}

.site-footer { align-items: flex-start; margin-bottom: 22px; }
.site-footer p { color: var(--muted); line-height: 1.7; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 16px;
    padding: 28px;
    background: rgba(9, 25, 37, 0.84);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.lightbox[hidden] {
    display: none;
}
.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}
.lightbox-stage img {
    width: auto;
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 90px);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}
.lightbox-close,
.lightbox-nav {
    border: 0;
    color: #fff;
    background: rgba(255,255,255,0.14);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.22);
}
.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    font-size: 1.8rem;
    line-height: 1;
}
.lightbox-nav {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    font-size: 2rem;
    line-height: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1280px) {
    .article-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .hero-luxury,
    .immersive-block,
    .contact-luxury,
    .checkout-layout,
    .auth-shell,
    .article-intro,
    .article-layout,
    .service-detail-body,
    .service-detail,
    .cart-row {
        grid-template-columns: 1fr;
    }
    .service-showcase.premium,
    .premium-articles,
    .news-grid,
    .premium-islands,
    .ribbon-grid,
    .dashboard-grid,
    .admin-grid,
    .calculator-grid,
    .calculator-controls,
    .calculator-controls-extended {
        grid-template-columns: 1fr 1fr;
    }
    .mailbox-layout {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-card-wide,
    .gallery-card-square,
    .gallery-card-tall {
        grid-column: auto;
        aspect-ratio: 4 / 3;
    }
    .memory-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero-luxury,
    .immersive-block,
    .contact-luxury,
    .checkout-layout,
    .auth-shell,
    .article-intro,
    .article-layout,
    .service-detail-body,
    .service-detail,
    .cart-row {
        grid-template-columns: 1fr;
    }
    .hero-stage {
        min-height: 360px;
    }
    .hero-copy h1,
    .page-hero h1,
    .dashboard-head h1,
    .auth-shell h1 {
        font-size: clamp(2.2rem, 7vw, 3.4rem);
    }
}

@media (max-width: 760px) {
    .site-shell { width: min(100% - 18px, 1320px); }
    .site-header, .site-footer { flex-direction: column; align-items: flex-start; }
    .main-nav,
    .hero-metrics,
    .service-showcase.premium,
    .premium-articles,
    .news-grid,
    .premium-islands,
    .ribbon-grid,
    .dashboard-grid,
    .admin-grid,
    .calculator-grid,
    .calculator-controls,
    .calculator-controls-extended,
    .hero-actions.horizontal {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .mailbox-layout {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-luxury {
        min-height: auto;
        padding: 18px;
    }
    .hero-copy h1,
    .page-hero h1,
    .dashboard-head h1,
    .auth-shell h1 { font-size: 2.4rem; }
    .hero-stage { min-height: 360px; }
    .hero-quote { max-width: calc(100% - 44px); }
    .article-cover {
        height: 200px;
        border-radius: 24px;
    }
    .service-cover {
        max-width: 100%;
        height: 210px;
    }
    .calculator-breakdown {
        grid-column: auto;
    }
    .calculator-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-card-wide,
    .gallery-card-square,
    .gallery-card-tall {
        aspect-ratio: 4 / 3;
    }
    .memory-meta {
        align-items: stretch;
    }
    .memory-meta strong {
        font-size: 0.92rem;
    }
    .memory-meta .button {
        width: 100%;
    }
    .memory-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .memory-game {
        padding: 14px;
    }
    .dashboard-card {
        padding: 18px;
    }
    .memory-card-label {
        font-size: 0.82rem;
    }
    .service-detail-cta {
        position: static;
        padding: 18px;
    }
    .lightbox {
        grid-template-columns: 1fr;
        padding: 20px 14px;
    }
    .lightbox-stage img {
        max-height: calc(100vh - 120px);
    }
    .lightbox-nav {
        position: absolute;
        bottom: 18px;
    }
    .lightbox-prev {
        left: 18px;
    }
    .lightbox-next {
        right: 18px;
    }
}
