/* ==========================================================================
   Liv & Loe — CakePHP storefront
   Design system migrated from the original livloe-theme (WordPress/WooCommerce)
   ========================================================================== */

:root {
    --bg: #0d0d0c;
    --bg-panel: #141411;
    --bg-sidebar: #12120f;
    --text: #f3eee5;
    --muted: #a89f93;
    --muted-2: #8f877d;
    --muted-3: #c9c0b4;
    --gold: #c8a66b;
    --gold-dim: #9b8054;
    --border: rgba(200, 166, 107, 0.22);
    --border-soft: rgba(200, 166, 107, 0.14);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.6;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

.container { width: min(100% - 48px, 1280px); margin: 0 auto; }

/* ── Buttons ─────────────────────────────────────────────── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 52px;
    padding: 12px 28px;
    border: 1px solid var(--gold);
    background-color: var(--gold);
    color: #12100c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.button:hover { background-color: transparent; color: var(--gold); }

.button-outline {
    background-color: transparent;
    color: var(--gold);
}
.button-outline:hover { background-color: var(--gold); color: #12100c; }

.button--block { width: 100%; }

.button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Header ──────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(13, 13, 12, 0.92);
    backdrop-filter: blur(8px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.site-logo {
    color: var(--text);
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: 0.02em;
}
.site-logo span { color: var(--gold); }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav a {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--gold); }

.site-actions { display: flex; align-items: center; gap: 20px; }

.site-actions .nav-link {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background-color: var(--gold);
    color: #12100c;
    font-size: 12px;
    font-weight: 700;
}

/* ── Hero ────────────────────────────────────────────────── */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 80px 24px;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(200, 166, 107, 0.10), transparent 60%),
        linear-gradient(rgba(8, 8, 7, 0.72), rgba(8, 8, 7, 0.92)),
        var(--bg);
    text-align: center;
}

.hero-content { width: 100%; max-width: 760px; }

.hero-eyebrow {
    margin: 0 0 18px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0 0 24px;
    color: var(--text);
    font-family: var(--serif);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 400;
    line-height: 1.05;
}

.hero-description {
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--muted-3);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 600px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
}

/* ── Trust strip ─────────────────────────────────────────── */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-panel);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 110px;
    padding: 20px;
    border-right: 1px solid var(--border);
    text-align: left;
}
.trust-item:last-child { border-right: none; }

.trust-icon { color: var(--gold); font-size: 30px; }

.trust-item h2 {
    margin: 0 0 6px;
    color: var(--text);
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.trust-item p { margin: 0; color: #9e968a; font-size: 13px; }

@media (max-width: 900px) {
    .trust-strip { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: none; }
    .trust-item:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 560px) {
    .trust-strip { grid-template-columns: 1fr; }
    .trust-item { justify-content: flex-start; border-right: none; border-bottom: 1px solid var(--border); }
    .trust-item:last-child { border-bottom: none; }
}

/* ── Page shell ──────────────────────────────────────────── */

.page-section { padding: 72px 0 100px; }
.page-section--tight { padding: 56px 0 80px; }

.page-heading {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.page-heading .eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.page-heading h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 400;
    line-height: 1.1;
}
.page-heading p { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 16px; }

.prose { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.8; }
.prose h2 {
    margin: 40px 0 14px;
    color: var(--text);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }

/* ── Shop intro (from original theme) ────────────────────── */

.shop-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.shop-intro__eyebrow {
    margin: 0 0 16px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.shop-intro h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 400;
    line-height: 1.1;
}
.shop-intro__description { max-width: 560px; margin: 0 auto; color: var(--muted); font-size: 16px; }

/* ── Category filter ─────────────────────────────────────── */

.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 56px;
}

.filter-chip {
    padding: 9px 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.filter-chip:hover { border-color: var(--gold); color: var(--gold); }
.filter-chip.is-active { background-color: var(--gold); border-color: var(--gold); color: #12100c; }

/* ── Product grid ────────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
    gap: 48px;
}

.product-card { text-align: center; }

.product-card__media {
    display: block;
    margin: 0 0 26px;
    border: 1px solid var(--border);
    background-color: var(--bg-panel);
    aspect-ratio: 1 / 1;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card:hover .product-card__media { transform: translateY(-4px); border-color: rgba(200, 166, 107, 0.65); }

.product-card h2 {
    margin: 0 0 10px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
}

.product-card .price { display: block; margin: 0 0 24px; color: var(--gold); font-size: 15px; font-weight: 600; }

/* ── Shop search ─────────────────────────────────────────── */

.shop-search {
    width: min(100%, 680px);
    margin: 42px auto 56px;
}

.shop-search__field {
    display: flex;
    width: 100%;
}

.shop-search input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 20px;

    border: 1px solid var(--border);
    border-right: 0;
    border-radius: 0;

    background-color: var(--bg-panel);
    color: var(--text);

    font-family: inherit;
    font-size: 14px;

    outline: none;
}

.shop-search input::placeholder {
    color: var(--muted);
}

.shop-search input:focus {
    border-color: var(--gold);
}

.shop-search button {
    min-width: 130px;
    height: 54px;
    padding: 0 24px;

    border: 1px solid var(--gold);
    border-radius: 0;

    background-color: var(--gold);
    color: #11110f;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.shop-search button:hover {
    background-color: transparent;
    color: var(--gold);
}

/* ── Shop empty state ────────────────────────────────────── */

.shop-empty-state {
    max-width: 620px;
    margin: 40px auto 80px;
    padding: 56px 32px;

    border: 1px solid var(--border);

    text-align: center;
}

.shop-empty-state__eyebrow {
    margin: 0 0 14px;

    color: var(--gold);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shop-empty-state h2 {
    margin: 0 0 14px;

    color: var(--text);

    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px;
    font-weight: 500;
}

.shop-empty-state p:not(.shop-empty-state__eyebrow) {
    margin: 0 0 28px;
    color: var(--muted);
}

/* ── Product detail ──────────────────────────────────────── */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.product-detail__gallery img {
    width: 100%;
    border: 1px solid var(--border);
    background-color: var(--bg-panel);
}

.product-detail__info { padding-top: 30px; }

.product-detail__info h1 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    line-height: 1.08;
}

.product-detail__price { margin: 0 0 32px; color: var(--gold); font-size: 20px; font-weight: 600; }

.product-detail__excerpt { margin-bottom: 36px; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Variation picker */
.variation-picker { margin-bottom: 22px; }

.variation-picker > label,
.qty-row > label {
    display: block;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.variation-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.variation-option {
    position: relative;
    cursor: pointer;
}

.variation-option input { position: absolute; opacity: 0; pointer-events: none; }

.variation-option__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    background-color: var(--bg-panel);
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.variation-option__card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; margin-bottom: 8px; }
.variation-option__card span {
    display: block;
    min-height: 34px;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.variation-option input:checked + .variation-option__card {
    border-color: var(--gold);
    background-color: rgba(200, 166, 107, 0.08);
}
.variation-option input:checked + .variation-option__card span { color: var(--gold); }
.variation-option input:focus-visible + .variation-option__card { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Add to cart row */
.add-to-cart-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.qty-input {
    width: 76px;
    min-height: 52px;
    padding: 0 10px;
    border: 1px solid rgba(200, 166, 107, 0.45);
    border-radius: 0;
    background-color: var(--bg-panel);
    color: var(--text);
    text-align: center;
}

.product-detail__meta {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
    color: #7f776e;
    font-size: 13px;
}
.product-detail__meta a { color: var(--muted); }

.product-detail__description {
    grid-column: 1 / -1;
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid var(--border);
    max-width: 800px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}
.product-detail__description h2 {
    color: var(--text);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
}

@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 50px; }
    .product-detail__info { padding-top: 0; }
}

/* ── Forms ───────────────────────────────────────────────── */

.form-field { margin-bottom: 18px; }

.form-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid rgba(200, 166, 107, 0.4);
    border-radius: 0;
    background-color: var(--bg-panel);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
}
.form-field textarea { min-height: 130px; padding: 12px 14px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #746d65; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    border-color: var(--gold);
    outline: none;
}

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.error-message {
    margin-top: 8px;
    padding-left: 20px;
    color: #f0a6a6;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
}

.error-message::before {
    content: "!";
    position: absolute;
    left: 0;
    top: 1px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    border-radius: 50%;
    background-color: #d9534f;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

/* Invalid inputs: server-side flag (.is-invalid / CakePHP .input.error),
   plus native browser validation (:user-invalid) so empty required fields
   turn red as soon as the visitor tries to submit. */
.form-field input.is-invalid,
.form-field .input.error input,
.form-field input:user-invalid {
    border-color: #d9534f;
    box-shadow: 0 0 0 1px rgba(217, 83, 79, 0.45);
    background-color: rgba(217, 83, 79, 0.05);
}

.form-field input.is-invalid:focus,
.form-field .input.error input:focus,
.form-field input:user-invalid:focus {
    border-color: #c9302c;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.35);
    outline: none;
}

.forgot-link {
    margin: -6px 0 0;
    text-align: right;
    font-size: 13px;
}

.forgot-link a {
    color: var(--gold);
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}

.field-note {
    margin: 6px 0 0;
    color: var(--muted-2);
    font-size: 12px;
}

.form-actions { margin-top: 26px; }

/* ── Cart ────────────────────────────────────────────────── */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 70px;
    align-items: start;
}

.cart-table { width: 100%; border-collapse: collapse; }

.cart-table thead th {
    padding: 16px 0;
    border-bottom: 1px solid rgba(200, 166, 107, 0.25);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
}
.cart-table thead th:last-child { text-align: right; }

.cart-table tbody tr { border-bottom: 1px solid rgba(200, 166, 107, 0.18); }
.cart-table td { padding: 24px 0; color: var(--muted); vertical-align: top; }
.cart-table td.cart-item__total { text-align: right; color: var(--gold); font-weight: 600; }

.cart-item { display: flex; gap: 20px; align-items: flex-start; }
.cart-item__image { flex: 0 0 96px; }
.cart-item__image img { width: 90px; height: 90px; object-fit: cover; border: 1px solid var(--border); background-color: var(--bg-panel); }

.cart-item__name { color: var(--text); font-family: var(--serif); font-size: 18px; }
.cart-item__name:hover { color: var(--gold); }
.cart-item__variation { margin-top: 6px; color: var(--muted-2); font-size: 13px; }
.cart-item__price { margin-top: 6px; color: var(--gold); font-size: 14px; }

.qty-form { display: inline-flex; align-items: stretch; gap: 8px; margin-top: 14px; }
.qty-form .qty-input { width: 64px; min-height: 42px; }
.qty-form .button { min-width: 0; min-height: 42px; padding: 8px 14px; font-size: 11px; }

.remove-form { margin-top: 10px; }
.remove-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--muted-2);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
}
.remove-link:hover { color: var(--gold); }

.cart-summary {
    width: 100%;
    padding: 32px;
    border: 1px solid var(--border);
    background-color: var(--bg-sidebar);
}

.cart-summary h2 {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
}

.cart-summary .totals-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    color: var(--muted);
}
.cart-summary .totals-row--final { border-bottom: 0; color: var(--text); font-size: 20px; }
.cart-summary .totals-row--final .amount { color: var(--gold); }

.cart-summary .button { margin-top: 18px; width: 100%; }

.cart-empty { text-align: center; padding: 90px 24px; }
.cart-empty h1 { font-family: var(--serif); font-weight: 400; font-size: 42px; }

@media (max-width: 950px) {
    .cart-layout { grid-template-columns: 1fr; gap: 45px; }
}

/* ── Checkout ────────────────────────────────────────────── */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 64px;
    align-items: start;
}

.checkout-form-section {
    padding-bottom: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--border-soft);
}
.checkout-form-section h2 {
    margin: 0 0 6px;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
}
.checkout-form-section p.section-hint { margin: 0 0 22px; color: var(--muted-2); font-size: 13px; }

.order-summary { padding: 30px; border: 1px solid var(--border); background-color: var(--bg-sidebar); }
.order-summary h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 25px; font-weight: 400; }

.summary-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
}
.summary-item img { width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--border); }
.summary-item__name { color: var(--text); font-family: var(--serif); font-size: 15px; }
.summary-item__meta { color: var(--muted); font-size: 12px; }
.summary-item__price { margin-left: auto; color: var(--gold); font-size: 14px; }

.order-summary .totals-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 15px;
}
.order-summary .totals-row--final { border-bottom: 0; color: var(--text); font-size: 18px; font-weight: 600; }
.order-summary .totals-row--final .amount { color: var(--gold); font-size: 20px; }

.order-summary .button { width: 100%; min-height: 56px; margin-top: 20px; }

@media (max-width: 950px) {
    .checkout-layout { grid-template-columns: 1fr; gap: 45px; }
}

/* ── Order success ───────────────────────────────────────── */

.success-panel {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid var(--border);
    background-color: var(--bg-sidebar);
    text-align: center;
}
.success-panel .success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 32px;
    margin-bottom: 22px;
}
.success-panel h1 { font-family: var(--serif); font-weight: 400; font-size: 38px; margin: 0 0 12px; }
.success-panel p { color: var(--muted); }
.success-panel .order-number { color: var(--gold); font-weight: 700; letter-spacing: 0.06em; }
.success-panel .button { margin-top: 26px; }

/* ── Auth ────────────────────────────────────────────────── */

.auth-wrap { display: flex; justify-content: center; padding: 90px 24px 120px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border: 1px solid var(--border);
    background-color: var(--bg-sidebar);
}
.auth-card h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; text-align: center; }
.auth-card .auth-hint { margin: 0 0 28px; color: var(--muted); font-size: 14px; text-align: center; }

/* ── Prominent inline auth error ─────────────────────────── */

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 83, 79, 0.65);
    border-left: 4px solid #d9534f;
    background-color: rgba(217, 83, 79, 0.12);
    color: #f5c6c6;
    font-size: 13px;
    line-height: 1.5;
}

.auth-alert__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 50%;
    background-color: #d9534f;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
}

.auth-alert strong { color: #ffd9d9; }

.auth-card--shake {
    animation: auth-shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes auth-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

/* ── Flash messages ──────────────────────────────────────── */

.flash-container {
    width: min(100% - 48px, 560px);
    margin: 28px auto 0;
}

.message {
    position: relative;
    margin: 0;
    padding: 18px 24px 18px 54px;

    border: 1px solid var(--border);
    background-color: #151512;

    color: var(--muted-3);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;

    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);

    cursor: pointer;
}

.message::before {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);

    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
}

.message.success {
    border-color: rgba(200, 166, 107, 0.45);
}

.message.success::before {
    content: "✓";
}

.message.error {
    border: 1px solid rgba(217, 83, 79, 0.65);
    border-left: 4px solid #d9534f;
    background-color: rgba(217, 83, 79, 0.12);
    color: #f5c6c6;
    font-weight: 600;
}

.message.error::before {
    content: "!";
    color: #f0a6a6;
    font-size: 20px;
}

.message.info::before {
    content: "i";
}

.message.warning::before {
    content: "!";
}

.message + .message {
    margin-top: 12px;
}

.message.hidden {
    display: none;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
    border-top: 1px solid var(--border-soft);
    background-color: var(--bg-panel);
    padding: 56px 0 44px;
}
.footer-inner { text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.footer-nav { display: flex; justify-content: center; gap: 26px; margin-bottom: 22px; }
.footer-nav a { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-nav a:hover { color: var(--gold); }
.footer-note { margin: 0; color: var(--muted-2); font-size: 12px; }
.site-footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
}

.site-footer__social a {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__social a:hover {
    color: var(--gold);
}
