@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.admin-notification-form {
    display: grid;
    gap: 18px;
}

.app-notification-panel {
    max-width: 980px;
}

.emoji-insert-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    background: #fffaf0;
}

.emoji-insert-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.emoji-target-toggle {
    display: inline-flex;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px;
}

.emoji-target-toggle button {
    border: 0;
    border-radius: 999px;
    padding: 7px 12px;
    background: transparent;
    color: var(--muted);
}

.emoji-target-toggle button.active {
    background: var(--primary);
    color: #fff;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-inline-end: 4px;
}

.emoji-grid button {
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emoji-grid button:hover {
    background: #f3ead8;
    transform: translateY(-1px);
}

@font-face {
    font-family: "IBM Plex Sans Arabic";
    src: url("../fonts/IBMPlexSansArabic-Bold.ttf") format("truetype");
    font-weight: 700 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #14201f;
    --ink-soft: #3a4751;
    --muted: #6b7680;
    --line: #e8e2d3;
    --line-soft: #f1ede2;
    --line-strong: #d8d0bd;
    --paper: #f6f1e4;
    --paper-soft: #fbf7eb;
    --panel: #ffffff;
    --panel-warm: #fdfaf2;
    --accent: #0a6068;
    --accent-dark: #054149;
    --accent-soft: #e7efee;
    --gold: #f1b818;
    --gold-deep: #b58213;
    --gold-soft: #fff3d2;
    --danger: #a33a3a;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;
    --shadow-sm: 0 4px 14px rgba(20, 30, 35, .05);
    --shadow: 0 18px 44px rgba(20, 30, 35, .09);
    --shadow-strong: 0 30px 64px rgba(0, 0, 0, .18);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

::selection { background: var(--gold-soft); color: var(--ink); }

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding-top: 74px;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1100px 540px at 100% -10%, rgba(241, 184, 24, .07), transparent 60%),
        radial-gradient(900px 480px at -10% 30%, rgba(10, 96, 104, .06), transparent 60%),
        var(--paper);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -.005em;
    text-wrap: balance;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(248, 244, 232, .82);
    border-bottom: 1px solid rgba(216, 208, 189, 0);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    box-shadow: 0 0 0 rgba(23, 36, 40, 0);
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: rgba(216, 208, 189, .8);
    background: rgba(248, 244, 232, .96);
    box-shadow: 0 12px 28px rgba(23, 36, 40, .07);
}

.brand, .nav, .hero-actions, .toolbar, .oauth-row, .tabs {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    font-weight: 800;
    font-size: 18px;
}

.brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
}

.nav a, .button-link, .secondary-button, .oauth-row a, .oauth-row button, .tabs a, button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.nav a:hover, .tabs a:hover, .oauth-row a:hover, .oauth-row button:hover {
    background: var(--accent-soft);
    border-color: rgba(10, 96, 104, .25);
    color: var(--accent-dark);
}

.button-link, .primary-button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(5, 65, 73, .18);
}

.button-link:hover, .primary-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(5, 65, 73, .26);
}

.nav .button-link,
.nav .button-link:hover {
    color: #000;
}

.primary-button, .secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    letter-spacing: -.005em;
}

.secondary-button {
    background: #fff;
    color: var(--ink);
    border-color: var(--line-strong);
}

.secondary-button:hover {
    background: var(--accent-soft);
    border-color: rgba(10, 96, 104, .35);
    color: var(--accent-dark);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 64px;
}

.admin-body .container {
    width: 100vw;
    max-width: none;
    margin: 0;
    padding: 24px clamp(12px, 1.5vw, 24px) 64px;
}

.floating-share-photo {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: clamp(18px, 3vw, 30px);
    z-index: 1040;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--accent-dark);
    text-align: center;
    font-weight: 800;
    line-height: 1.1;
}

.floating-share-photo-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, .88);
    border-radius: 50%;
    background: var(--gold);
    color: var(--accent-dark);
    box-shadow: 0 16px 34px rgba(20, 30, 35, .22);
    font-size: 40px;
    font-family: Arial, sans-serif;
    line-height: 1;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

.floating-share-photo-label {
    padding: 3px 8px 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 20px rgba(20, 30, 35, .12);
    color: var(--accent-dark);
    font-size: 12px;
    white-space: nowrap;
}

.floating-share-photo:hover {
    color: var(--accent-dark);
}

.floating-share-photo:hover .floating-share-photo-icon {
    background: #ffd354;
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(20, 30, 35, .28);
}

.floating-account-button {
    display: none;
}

/* Hero */
.home-hero {
    position: relative;
    width: 100vw;
    margin: -32px calc(50% - 50vw) 0;
    min-height: 580px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 500px);
    gap: clamp(26px, 5vw, 58px);
    align-items: center;
    padding: clamp(40px, 6vw, 84px) max(24px, calc((100vw - 1180px) / 2)) clamp(40px, 6vw, 72px);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(900px 600px at 88% 10%, rgba(241, 184, 24, .18), transparent 60%),
        linear-gradient(135deg, #02272d 0%, #053f47 48%, #07666f 100%);
    border-bottom: 1px solid rgba(241, 184, 24, .25);
}

.hero-bg-stack {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-layer {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    mix-blend-mode: soft-light;
    filter: saturate(.7) contrast(.95);
    transform: scale(1.02) translate3d(0, 0, 0);
    backface-visibility: hidden;
    transition: opacity 1.6s ease-in-out;
    will-change: opacity, transform;
}

.hero-bg-layer.is-active { opacity: .55; }

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 90% at 50% 40%, transparent 30%, rgba(2, 28, 32, .28) 100%),
        linear-gradient(180deg, rgba(2, 28, 32, .12), rgba(2, 28, 32, .22));
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 80px;
    z-index: 1;
    background: linear-gradient(transparent, rgba(7, 21, 24, .38));
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 20px;
    align-content: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--gold-deep);
    font-weight: 800;
    font-size: 14px;
    margin: 0;
}

.eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.home-hero .eyebrow {
    color: var(--gold);
    font-size: 1.5rem;
    text-shadow: 0 0 14px rgba(241, 184, 24, .65), 0 0 28px rgba(241, 184, 24, .35);
}

.home-hero .eyebrow::before {
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(241, 184, 24, .15);
}

.home-hero h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(36px, 5.4vw, 66px);
    line-height: 1.14;
    letter-spacing: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .22);
}

.home-hero p {
    max-width: 690px;
    color: var(--muted);
    font-size: 18px;
}

.hero-lead {
    margin: 0;
    padding-inline-start: 18px;
    border-inline-start: 3px solid var(--gold);
    line-height: 1.85;
}

.home-hero .hero-lead,
.home-hero p {
    color: rgba(255, 255, 255, .9);
}

.home-hero .secondary-button {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    backdrop-filter: blur(8px);
}

.home-hero .secondary-button:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .65);
    color: #fff;
}

.home-hero .primary-button {
    background: var(--gold);
    border-color: var(--gold);
    color: #1f272a;
    box-shadow: 0 12px 30px rgba(241, 184, 24, .35);
}

.home-hero .primary-button:hover {
    background: #ffc835;
    border-color: #ffc835;
    color: #1f272a;
    box-shadow: 0 18px 40px rgba(241, 184, 24, .42);
}

.hero-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: #e7e1d5;
}

.home-hero .hero-image {
    z-index: 2;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}

.home-hero .hero-image::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(241, 184, 24, .55);
    border-radius: 4px;
    pointer-events: none;
    z-index: 3;
}

.hero-image img, .photo-frame img, .review-photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}

.hero-image .js-hero-card-image {
    opacity: 1;
    transition: opacity .45s var(--ease), transform .6s var(--ease);
}

.hero-image .js-hero-card-image.is-fading {
    opacity: 0;
}

.image-caption {
    position: absolute;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 4;
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .78);
    color: var(--ink);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.image-caption strong { font-weight: 700; }
.image-caption span { color: var(--muted); }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.trust-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    backdrop-filter: blur(6px);
}

.trust-strip span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(241, 184, 24, .25);
}

/* Purpose / Steps bands */
.purpose-band {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin: 36px 0 6px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.purpose-band::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--accent));
}

.home-visit-band {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 30px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(10, 96, 104, .08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .52);
}

.home-visit-title {
    flex: 0 0 auto;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.home-visit-badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.home-visit-badges span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(10, 96, 104, .1);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .65);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.home-visit-badges b {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.steps-band {
    width: 100vw;
    margin: 36px calc(50% - 50vw) 14px;
    padding: clamp(28px, 4vw, 52px) max(24px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(800px 400px at 100% 0%, rgba(10, 96, 104, .07), transparent 60%),
        linear-gradient(180deg, #f0f7f6, #ebf3f2);
    border-block: 1px solid rgba(7, 95, 104, .12);
}

.section-intro {
    display: grid;
    gap: 6px;
    margin-bottom: 22px;
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.steps-grid article {
    position: relative;
    min-height: 180px;
    padding: 26px 22px 22px;
    border: 1px solid rgba(7, 95, 104, .14);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.steps-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline-start: 22px;
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
}

.steps-grid article:hover {
    transform: translateY(-3px);
    border-color: rgba(7, 95, 104, .28);
    box-shadow: var(--shadow);
}

.steps-grid span {
    color: var(--gold-deep);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.steps-grid h3 { margin: 8px 0 6px; font-size: 19px; }
.steps-grid p { margin: 0; color: var(--muted); }

.weekly-photo-section {
    margin: 42px 0 10px;
}

.weekly-photo-feature {
    display: grid;
    grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
    gap: clamp(20px, 4vw, 38px);
    align-items: stretch;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
}

.weekly-photo-media-wrap,
.photo-detail-media {
    position: relative;
    min-width: 0;
}

.weekly-photo-media {
    position: relative;
    display: block;
    width: 100%;
    min-height: 340px;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: #e7e1d5;
}

.weekly-photo-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(15, 22, 25, .2));
    pointer-events: none;
}

.weekly-photo-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s var(--ease);
}

.weekly-photo-feature:hover .weekly-photo-media img {
    transform: scale(1.035);
}

.daily-photo-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 14px;
    border: 1px solid rgba(241, 184, 24, .7);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .92);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.weekly-photo-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
}

.weekly-photo-copy h3 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
}

.weekly-photo-copy h3 a {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0 3px;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    transition: background-size .25s var(--ease), color .25s var(--ease);
    padding-bottom: 2px;
}

.weekly-photo-copy h3 a:hover {
    background-size: 100% 3px;
    color: var(--accent-dark);
}

.weekly-photo-copy p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.weekly-photo-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.weekly-photo-meta div {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .72);
}

.weekly-photo-meta dt {
    margin: 0 0 2px;
    color: var(--gold-deep);
    font-size: 12px;
    font-weight: 800;
}

.weekly-photo-meta dd {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.weekly-photo-copy .primary-button {
    justify-self: start;
    gap: 8px;
}

.purpose-band div {
    display: grid;
    gap: 6px;
}

.purpose-band span, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-deep);
    font-weight: 800;
    font-size: 13px;
    margin: 0;
}

.purpose-band span::before, .section-kicker::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.purpose-band p {
    max-width: 850px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.purpose-band a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.purpose-band a:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

/* Toolbar / search */
.toolbar {
    justify-content: space-between;
    align-items: flex-end;
    margin: 42px 0 20px;
    gap: 18px;
}

.toolbar > div { display: grid; gap: 4px; }
.toolbar h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; }

.search-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-search {
    flex-wrap: nowrap;
    align-items: center;
}

input, textarea, select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}

input:hover, textarea:hover, select:hover {
    border-color: rgba(10, 96, 104, .35);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 96, 104, .14);
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid {
    border-color: var(--danger);
    background: rgba(178, 62, 62, .06);
    box-shadow: 0 0 0 3px rgba(178, 62, 62, .15);
}

label.has-field-error {
    color: var(--danger);
}

.search-form input { width: min(320px, 100%); }

.nav-search input {
    width: 240px;
    min-height: 38px;
    padding-block: 8px;
}

.search-form button {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 700;
    padding: 10px 22px;
    box-shadow: 0 8px 18px rgba(5, 65, 73, .15);
}

.nav-search button {
    min-height: 38px;
    padding: 8px 16px;
}

.search-form button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* Cards / Surfaces */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 20px;
}

.photo-card, .form-card, .wide-panel, .admin-panel, .detail-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.photo-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(10, 96, 104, .22);
}

.photo-frame {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e7e1d5;
    overflow: hidden;
}

.photo-view-badge,
.photo-like-badge {
    position: absolute;
    bottom: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: var(--radius-pill);
    background: rgba(15, 22, 25, .74);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    direction: ltr;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.photo-view-badge {
    left: 10px;
}

.photo-like-badge {
    right: 10px;
}

.photo-view-badge i,
.photo-like-badge i {
    color: var(--gold);
    font-size: 13px;
    line-height: 1;
}

.photo-like-badge i {
    color: #ffcfdb;
}

.photo-like-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .88);
    color: #953147;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.photo-like-button:hover,
.photo-like-button:focus {
    background: #fff;
    color: #b11d42;
    transform: translateY(-1px);
}

.photo-like-button.is-liked,
.photo-like-button:disabled {
    opacity: 1 !important;
    color: #b11d42;
    background: #fff0f4;
    cursor: default !important;
}

.photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 22, 25, .12));
    pointer-events: none;
}

.photo-card:hover .photo-frame img { transform: scale(1.05); }

.photo-card-body { padding: 16px 18px 18px; }
.photo-card h3 { margin: 10px 0 6px; line-height: 1.45; font-size: 18px; }

.photo-card h3 a {
    background-image: linear-gradient(var(--gold), var(--gold));
    background-size: 0 2px;
    background-position: 100% 100%;
    background-repeat: no-repeat;
    transition: background-size .25s var(--ease), color .25s var(--ease);
    padding-bottom: 1px;
}

.photo-card:hover h3 a {
    background-size: 100% 2px;
    color: var(--accent-dark);
}

.photo-card p, .photo-card small { color: var(--muted); }
.photo-card small { display: block; font-size: 13px; }

.photo-card-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.photo-card-footer small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-details-link {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.photo-details-link:hover,
.photo-details-link:focus {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.date-badge, .status, .category-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -.005em;
}

.category-badge {
    background: var(--gold-soft);
    color: #7c5700;
}

/* Category section */
.category-section {
    display: grid;
    gap: 20px;
    margin-top: 44px;
}

.category-row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}

.category-row:hover {
    border-color: rgba(10, 96, 104, .2);
    box-shadow: var(--shadow);
}

.category-row-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.category-row-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.category-row-head h3 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    max-width: 100%;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: 0 8px 20px rgba(5, 65, 73, .16);
}

.category-row-head h3 a {
    color: inherit;
}

.category-row-head span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(181, 130, 19, .22);
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    color: #7c5700;
    font-size: 12.5px;
    font-weight: 700;
}

.category-row-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.category-strip-wrap {
    position: relative;
    min-width: 0;
}

.strip-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: var(--radius-pill);
    border-color: rgba(10, 96, 104, .22);
    background: #fff;
    color: var(--accent-dark);
    font-size: 28px;
    line-height: 1;
    font-family: Arial, sans-serif;
    box-shadow: var(--shadow-sm);
    transform: translateY(-50%);
}

.strip-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

.strip-arrow-right { right: 10px; }
.strip-arrow-left { left: 10px; }

.category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.strip-photo {
    position: relative;
    min-height: 138px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
}

.strip-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s var(--ease);
}

.strip-photo:hover img { transform: scale(1.06); }

.strip-photo .strip-photo-title {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 24px 12px 10px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .82) 100%);
}

.strip-empty {
    display: grid;
    place-items: center;
    min-height: 138px;
    padding: 16px;
    border: 1px dashed rgba(7, 95, 104, .25);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: #f8fbfb;
    font-size: 14px;
}

.category-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
}

.category-page-head h1 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.25;
}

.category-page-head p:not(.section-kicker) {
    margin: 6px 0 0;
    color: var(--muted);
}

.category-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-photo-grid .photo-card p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pagination-nav a,
.pagination-nav span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.pagination-nav a:hover,
.pagination-nav .active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination-nav .disabled {
    color: var(--muted);
    background: var(--paper-soft);
}

/* Auth & Forms */
.auth-panel {
    width: min(540px, 100%);
    margin: 40px auto;
}

.login-panel,
.register-panel {
    display: grid;
    gap: 14px;
}

.auth-card h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    text-align: center;
}

.auth-card h1 i {
    color: var(--gold-deep);
    font-size: .95em;
}

.form-card, .upload-form {
    display: grid;
    gap: 18px;
    padding: 26px;
}

.wide-panel, .admin-panel { padding: 28px; }

.wide-panel h1, .admin-panel h1 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 30px);
}

.upload-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.upload-account-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
}

label { font-weight: 700; font-size: 14.5px; color: var(--ink-soft); }
label input, label textarea, label select { margin-top: 8px; font-weight: 400; color: var(--ink); }

.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.6;
}

.photo-dropzone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 190px;
    padding: 24px;
    border: 2px dashed rgba(10, 96, 104, .32);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fff, var(--paper-soft));
    color: var(--ink-soft);
    text-align: center;
    cursor: pointer;
    transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.photo-dropzone:hover,
.photo-dropzone:focus,
.photo-dropzone.is-dragging {
    outline: none;
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 3px rgba(10, 96, 104, .12);
}

.photo-dropzone.is-dragging {
    transform: translateY(-1px);
}

.photo-dropzone.is-invalid {
    border-color: var(--danger);
    background: rgba(178, 62, 62, .06);
    box-shadow: 0 0 0 3px rgba(178, 62, 62, .15);
}

.photo-dropzone-title {
    justify-self: stretch;
    text-align: start;
}

.photo-dropzone-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--accent);
    box-shadow: 0 12px 28px rgba(5, 65, 73, .13);
}

.photo-dropzone-icon i {
    font-size: 28px;
    line-height: 1;
}

.photo-dropzone-text {
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.photo-dropzone-hint,
.photo-dropzone-file {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
}

.photo-dropzone-file {
    max-width: 100%;
    padding: 6px 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-dropzone.has-file .photo-dropzone-file {
    color: var(--accent-dark);
    background: rgba(10, 96, 104, .1);
}

.photo-dropzone-preview {
    width: min(100%, 360px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    overflow: hidden;
    border: 1px solid rgba(10, 96, 104, .18);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: 0 14px 34px rgba(5, 65, 73, .12);
}

.photo-dropzone-preview[hidden] {
    display: none;
}

.photo-dropzone-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--paper-soft);
}

.photo-dropzone-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.required-mark {
    color: var(--danger);
    font-weight: 800;
    margin-inline-start: 3px;
}

.optional-mark {
    display: inline-flex;
    align-items: center;
    margin-inline-start: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field input {
    margin: 0;
}

.input-icon-field {
    position: relative;
    display: block;
}

.input-icon-field > i {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 18px;
    pointer-events: none;
}

.input-icon-field input {
    padding-inline-start: 44px;
}

.password-field input {
    padding-inline-end: 48px;
}

.password-toggle {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.password-toggle:hover,
.password-toggle:focus {
    background: var(--accent-soft);
    color: var(--accent-dark);
    transform: translateY(-50%);
    box-shadow: none;
}

.form-note {
    margin: -4px 0 22px;
    color: var(--muted);
    padding: 10px 14px;
    background: var(--accent-soft);
    border-inline-start: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
}

.full { grid-column: 1 / -1; }
.muted-text { color: var(--muted); }
.check {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}
.check input { width: auto; margin: 0; accent-color: var(--accent); }

.has-upload-progress {
    overflow: hidden;
}

.upload-progress-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(13, 24, 28, .48);
    backdrop-filter: blur(5px);
}

.upload-progress-dialog {
    width: min(420px, 100%);
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .64);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 24px 60px rgba(5, 28, 35, .25);
    text-align: center;
}

.upload-progress-dialog h2 {
    margin: 0;
    color: var(--ink);
    font-size: 22px;
}

.upload-progress-dialog p {
    margin: 0;
    color: var(--muted);
}

.upload-progress-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(10, 96, 104, .14);
    border-top-color: var(--accent);
    animation: upload-spin .85s linear infinite;
}

.upload-progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
}

.upload-progress-track span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--gold-deep));
    transition: width .18s var(--ease);
}

.upload-progress-percent {
    color: var(--accent-dark);
    font-size: 24px;
    line-height: 1;
}

.upload-progress-overlay.is-error .upload-progress-spinner {
    animation: none;
    border-color: rgba(178, 62, 62, .18);
    border-top-color: var(--danger);
}

@keyframes upload-spin {
    to { transform: rotate(360deg); }
}

.oauth-row { gap: 10px; margin-bottom: 14px; }
.oauth-row a,
.oauth-row button { flex: 1 1 auto; justify-content: center; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

.login-actions {
    display: grid;
    gap: 10px;
    margin: 0;
}

.login-actions a,
.login-actions button {
    width: 100%;
}

.oauth-button {
    gap: 10px;
    font-weight: 800;
}

.login-actions .oauth-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex: 0 0 auto;
}

.login-actions .google-button,
.login-actions .google-button:hover,
.login-actions .google-button:focus {
    background: #f8fbff;
    border-color: #2f80ed;
    color: #123c69;
    box-shadow: 0 8px 20px rgba(47, 128, 237, .12);
}

.login-actions .apple-button,
.login-actions .apple-button:hover,
.login-actions .apple-button:focus {
    background: #000;
    border-color: #000;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.login-actions .apple-button img {
    filter: none;
}

.create-account-link {
    background: transparent;
    border-color: var(--line-strong);
    color: var(--accent-dark);
}

/* Contact */
.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
    gap: 26px;
    align-items: stretch;
    margin: 18px 0 26px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(10, 96, 104, .14);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(10, 96, 104, .94), rgba(5, 65, 73, .98)),
        var(--accent);
    color: #fff;
    box-shadow: var(--shadow);
}

.contact-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
}

.contact-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
}

.contact-hero .section-kicker { color: var(--gold); }

.contact-cards {
    display: grid;
    gap: 10px;
}

.contact-cards a,
.contact-cards > span {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
    min-height: 86px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .1);
    transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}

.contact-cards a:hover {
    transform: translateY(-2px);
    border-color: rgba(241, 184, 24, .55);
    background: rgba(255, 255, 255, .15);
}

.contact-cards i {
    grid-row: 1 / span 2;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--gold);
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius-sm);
    font-size: 19px;
}

.contact-cards span span,
.contact-cards a span {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 700;
}

.contact-cards strong {
    align-self: end;
    color: #fff;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.contact-panel {
    background: linear-gradient(180deg, #fff, var(--panel-warm));
}

.contact-captcha {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .68);
}

.contact-captcha img {
    display: block;
    width: 112px;
    height: 46px;
    border: 1px solid rgba(10, 96, 104, .12);
    border-radius: 8px;
    background: var(--paper-soft);
}

.contact-captcha label {
    margin: 0;
}

.contact-captcha-status {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.contact-captcha.is-valid {
    border-color: rgba(10, 96, 104, .34);
}

.contact-captcha.is-valid .contact-captcha-status {
    color: var(--accent-dark);
}

/* Photo detail */
.photo-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 24px;
    align-items: start;
}

.photo-original-link {
    display: block;
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.photo-original-link img {
    width: 100%;
}

.detail-panel { padding: 26px; }
.detail-panel h1 {
    margin: 8px 0 12px;
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.35;
}

dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 10px 14px;
    margin: 18px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

dt { color: var(--muted); font-size: 14px; }
dd { margin: 0; font-weight: 500; }

.photo-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.photo-neighbor {
    display: grid;
    grid-template-columns: auto 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 98px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.photo-neighbor:hover {
    border-color: rgba(10, 96, 104, .28);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.photo-neighbor.next {
    grid-template-columns: minmax(0, 1fr) 86px auto;
    justify-self: end;
    text-align: left;
}

.photo-neighbor img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.photo-neighbor i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 18px;
}

.photo-neighbor span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.photo-neighbor small {
    color: var(--gold-deep);
    font-weight: 800;
}

.photo-neighbor strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-neighbor em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.comments-panel {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.comments-head h2 {
    margin: 6px 0 0;
    font-size: 22px;
}

.comment-form {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.photo-text-suggestion-form {
    grid-template-columns: 1fr;
}

.photo-text-suggestion-form input,
.photo-text-suggestion-form textarea {
    width: 100%;
}

.admin-text-suggestions {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.admin-text-suggestion-list {
    display: grid;
    gap: 16px;
}

.admin-text-suggestion-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.suggestion-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-card-head small,
.suggestion-review-meta {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.admin-text-suggestion-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-text-suggestion-form input,
.admin-text-suggestion-form textarea {
    width: 100%;
}

.admin-inline-reject-form {
    justify-self: start;
}

.comment-form button {
    justify-self: start;
}

.comment-review-note {
    margin: -4px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.comment-documentation-prompt {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(10, 96, 104, .18);
    border-radius: var(--radius-sm);
    background: #f7fbfa;
    color: var(--text);
}

.comment-documentation-prompt strong {
    color: var(--accent-dark);
    font-size: 16px;
}

.comment-documentation-prompt p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.comment-form-notice {
    padding: 12px 14px;
    border: 1px solid #b7dfbf;
    border-radius: var(--radius-sm);
    background: #e7f6e9;
    color: #1b6b2b;
    font-weight: 600;
}

.comment-login-note {
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.comments-list {
    display: grid;
    gap: 12px;
}

.comments-list .empty-state {
    width: 100%;
    margin: 0;
}

.comment-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: #fff;
}

.comment-item div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.comment-item time {
    color: var(--muted);
    font-size: 12.5px;
}

.comment-item p {
    margin: 0;
    color: var(--ink-soft);
}

.site-testimonials-section {
    display: grid;
    gap: 18px;
    margin: 44px 0 18px;
}

.testimonial-strip-wrap {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.testimonial-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 340px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding: 4px;
}

.testimonial-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    min-height: 190px;
    padding: 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--panel-warm);
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.testimonial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 96, 104, .25);
    box-shadow: var(--shadow-sm);
}

.testimonial-avatar {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #258c87);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.testimonial-card-body {
    min-width: 0;
}

.testimonial-card-body strong {
    display: block;
    margin-bottom: 6px;
    color: var(--accent-dark);
    font-size: 16px;
}

.testimonial-card-body p {
    display: -webkit-box;
    min-height: 84px;
    margin: 0;
    overflow: hidden;
    color: var(--ink-soft);
    line-height: 1.75;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.testimonial-card time {
    grid-column: 1 / -1;
    align-self: end;
    color: var(--muted);
    font-size: 13px;
}

.testimonial-section-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.testimonial-dialog {
    width: min(640px, calc(100vw - 28px));
    border: 0;
    border-radius: var(--radius-sm);
    padding: 0;
    background: transparent;
}

.testimonial-dialog::backdrop {
    background: rgba(7, 20, 24, .55);
    backdrop-filter: blur(3px);
}

.testimonial-dialog article,
.testimonial-form {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.dialog-close-button {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    line-height: 1;
}

.dialog-close-button i {
    display: block;
    font-size: 16px;
    line-height: 1;
}

.testimonial-dialog-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-inline-end: 44px;
}

.testimonial-dialog-head h3,
.testimonial-form h2 {
    margin: 0;
    font-size: 23px;
}

.testimonial-dialog-head time,
.testimonial-table time {
    color: var(--muted);
    font-size: 13px;
}

.testimonial-dialog article > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 16px;
}

.testimonial-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.testimonial-form h2,
.testimonial-form .full,
.testimonial-form button[type="submit"] {
    grid-column: 1 / -1;
}

.testimonial-form input,
.testimonial-form textarea {
    width: 100%;
}

.testimonial-field-note {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.6;
    font-weight: 400;
}

.testimonial-captcha {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.testimonial-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid rgba(163, 58, 58, .22);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--danger);
    font-weight: 800;
}

.testimonial-like-button.is-liked {
    background: #fbe7e7;
}

.testimonial-table-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.testimonial-table-name .testimonial-avatar {
    width: 36px;
    height: 36px;
    font-size: 17px;
}

.testimonial-table td {
    vertical-align: top;
}

.admin-inline-check {
    justify-content: flex-start;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: right;
}

thead th {
    background: var(--paper-soft);
    color: var(--ink-soft);
    font-weight: 700;
    font-size: 14px;
    border-bottom-color: var(--line);
}

tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--paper-soft); }

.mini { width: 70px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); }

.table-action {
    min-height: 38px;
    padding: 7px 13px;
    white-space: nowrap;
}

.account-page-head,
.account-photos-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.account-page-head h1,
.account-photos-head h2 {
    margin: 0 0 6px;
}

.account-page-head p {
    margin: 0;
    color: var(--muted);
}

.account-summary-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.account-summary-card div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.account-summary-card span,
.account-photo-meta dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.account-summary-card strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 18px;
}

.account-photos-head {
    align-items: center;
    margin-bottom: 14px;
}

.account-photos-head span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 800;
}

.account-photos-grid {
    display: grid;
    gap: 12px;
}

.account-photo-card {
    display: grid;
    grid-template-columns: minmax(132px, 180px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.account-photo-thumb {
    display: block;
    width: 100%;
    min-height: 0;
    height: 112px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
}

.account-photo-thumb:hover {
    transform: none;
}

.account-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-photo-body {
    display: grid;
    align-content: space-between;
    gap: 10px;
    min-width: 0;
}

.account-photo-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.account-photo-title-row h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.account-photo-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.account-photo-meta div {
    min-width: 0;
}

.account-photo-meta dd {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.account-photo-card .table-action {
    justify-self: start;
}

.account-provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.account-provider-icon {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}

.account-provider-icon img {
    display: block;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.account-provider-badge.apple .account-provider-icon {
    background: #050505;
}

.account-provider-badge.apple .account-provider-icon img {
    width: 15px;
    height: 15px;
}

.account-provider-badge.site .account-provider-icon img {
    width: 22px;
    height: 22px;
}

.empty-cell {
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

.account-edit-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.account-edit-head h1 {
    margin-bottom: 6px;
}

.account-edit-head p {
    margin: 0;
    color: var(--muted);
}

.account-edit-photo-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.account-edit-preview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px);
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.account-edit-preview img {
    width: 100%;
    height: min(46vh, 420px);
    min-height: 240px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
    box-shadow: var(--shadow-sm);
}

.account-edit-preview-meta {
    display: grid;
    align-content: center;
    gap: 8px;
}

.account-edit-preview-meta h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.45;
}

.account-edit-preview p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.account-photo-neighbors {
    grid-column: 1 / -1;
    margin-top: -4px;
}

.account-edit-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-photo-comments {
    margin-top: 24px;
}

.account-comment-item {
    align-items: start;
}

.account-comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.account-comment-actions .secondary-button {
    min-height: 38px;
    padding: 7px 13px;
}

/* Admin */
.admin-shell {
    display: block;
    width: 100%;
    min-height: calc(100vh - 160px);
}

.admin-sidebar {
    position: fixed;
    top: 88px;
    right: clamp(12px, 1.5vw, 24px);
    bottom: 24px;
    left: auto;
    z-index: 20;
    display: grid;
    align-content: start;
    gap: 18px;
    width: 270px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: var(--shadow-sm);
}

.admin-side-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-weight: 800;
}

.admin-side-nav {
    display: grid;
    gap: 8px;
}

.admin-side-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-weight: 700;
    transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.admin-side-nav a:hover,
.admin-side-nav a.active {
    background: var(--accent-soft);
    border-color: rgba(10, 96, 104, .22);
    color: var(--accent-dark);
    transform: translateX(-2px);
}

.admin-side-nav a.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(5, 65, 73, .18);
}

.nav-alert-badge,
.suggestion-alert-badge {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: var(--radius-pill);
    background: var(--danger);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(189, 58, 58, .22);
}

.admin-side-nav a.active .nav-alert-badge {
    background: #fff;
    color: var(--danger);
}

.admin-panel {
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: calc(100vh - 176px);
    margin-right: 294px;
    margin-left: 0;
}

.admin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.admin-head h1 { margin-top: 8px; }

.admin-user-detail {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.admin-user-detail h2 {
    margin: 6px 0 0;
    font-size: 22px;
}

.admin-user-detail dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
}

.admin-user-detail dl > div {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.admin-user-detail dt {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 800;
}

.admin-user-detail dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-user-password-form {
    display: grid;
    grid-template-columns: minmax(220px, 360px) auto;
    align-items: end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.admin-user-password-form button {
    min-height: 46px;
    white-space: nowrap;
}

.admin-stats-section {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.admin-stats-section + .admin-stats-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.admin-stats-section h2 {
    margin: 0;
    font-size: 20px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-stats-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stat-card {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fff, var(--paper-soft));
    box-shadow: var(--shadow-sm);
}

.admin-stats-photos .stat-card {
    border-color: rgba(10, 96, 104, .16);
    background: linear-gradient(180deg, #fff, #f1faf8);
}

.admin-stats-photos .stat-card strong {
    color: #075c64;
}

.admin-stats-visits .stat-card {
    border-color: rgba(67, 97, 238, .14);
    background: linear-gradient(180deg, #fff, #f4f7ff);
}

.admin-stats-visits .stat-card strong {
    color: #2846a8;
}

.admin-stats-messages .stat-card {
    border-color: rgba(181, 130, 19, .18);
    background: linear-gradient(180deg, #fff, #fff9e8);
}

.admin-stats-messages .stat-card strong {
    color: #8a6208;
}

.admin-stats-members .stat-card {
    border-color: rgba(104, 72, 145, .16);
    background: linear-gradient(180deg, #fff, #f8f3fc);
}

.admin-stats-members .stat-card strong {
    color: #684891;
}

.stat-card-link {
    color: inherit;
    text-decoration: none;
    transition: transform .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.stat-card-link:hover {
    transform: translateY(-2px);
    border-color: rgba(10, 96, 104, .25);
    box-shadow: var(--shadow-md);
}

.stat-card.has-alert {
    border-color: rgba(189, 58, 58, .28);
    background: linear-gradient(180deg, #fff, #fff7f7);
}

.stat-card.has-alert strong {
    color: var(--danger);
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

.stat-card strong {
    align-self: end;
    color: var(--accent-dark);
    font-size: 34px;
    line-height: 1;
}

.admin-photo-tabs {
    margin-bottom: 18px;
}

.admin-photo-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-photo-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.admin-photo-filters label {
    display: grid;
    gap: 8px;
}

.admin-photo-search-field {
    min-width: 220px;
}

.admin-photo-filters input,
.admin-photo-filters select {
    margin: 0;
}

.admin-photo-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-photo-filter-actions button,
.admin-photo-filter-actions .secondary-button {
    min-height: 46px;
    white-space: nowrap;
}

.tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    min-height: 24px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--gold-soft);
    color: var(--gold-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.tabs a.active .tab-count {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.admin-photo-tabs .alert-tab:not(.active) {
    border-color: rgba(189, 58, 58, .22);
}

.admin-photo-tabs .alert-tab:not(.active) .tab-count {
    background: #fbe7e7;
    color: var(--danger);
}

.muted-count {
    color: var(--muted);
    font-weight: 700;
}

.permission-form select {
    width: 150px;
    min-height: 38px;
    padding-block: 7px;
}

.admin-photo-table-wrap {
    width: 100%;
}

.admin-photo-table {
    min-width: 1160px;
}

.admin-photo-table td {
    vertical-align: middle;
}

.admin-comment-table {
    min-width: 1180px;
}

.admin-comment-table td {
    vertical-align: top;
}

.admin-comment-photo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    color: var(--ink);
}

.admin-comment-photo span,
.admin-comment-table td > strong,
.admin-comment-table td > small {
    display: block;
}

.admin-comment-photo small,
.admin-comment-table td > small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 3px;
}

.comment-edit-cell {
    min-width: 380px;
}

.admin-comment-edit-form {
    display: grid;
    gap: 8px;
}

.admin-comment-edit-form textarea {
    min-height: 96px;
    resize: vertical;
}

.admin-comment-edit-form button {
    justify-self: start;
}

.comment-dialog-preview {
    max-height: 140px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
    color: var(--ink-soft);
    line-height: 1.7;
    text-align: right;
}

.admin-photo-table td strong,
.admin-photo-table td small {
    display: block;
}

.admin-photo-table td small {
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
    margin-top: 3px;
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.admin-pagination a,
.admin-pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    font-weight: 700;
}

.admin-pagination a:hover,
.admin-pagination a.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.admin-pagination .disabled {
    color: var(--muted);
    background: var(--paper-soft);
    cursor: not-allowed;
}

.admin-pagination .ellipsis {
    min-width: 28px;
    border-color: transparent;
    background: transparent;
    color: var(--muted);
    padding-inline: 4px;
}

.admin-photo-thumb {
    width: 92px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
    box-shadow: var(--shadow-sm);
}

.admin-row-actions,
.dialog-actions,
.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-row-actions .secondary-button,
.admin-row-actions .danger-button {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 14px;
}

.admin-category-create-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(120px, 180px) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-category-edit-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(100px, 150px) auto auto auto;
    align-items: center;
    gap: 10px;
}

.admin-category-table td {
    vertical-align: middle;
}

.admin-category-edit-form .secondary-button {
    justify-self: start;
}

@media (max-width: 760px) {
    .admin-category-create-form,
    .admin-category-edit-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .admin-category-edit-form .secondary-button {
        justify-self: stretch;
    }
}

.danger-button {
    background: var(--danger);
    border-color: var(--danger);
    color: #fff;
    font-weight: 700;
}

.danger-button:hover {
    background: #842d2d;
    border-color: #842d2d;
    transform: translateY(-1px);
}

.delete-dialog {
    width: min(430px, calc(100% - 32px));
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.delete-dialog::backdrop {
    background: rgba(10, 18, 20, .54);
    backdrop-filter: blur(3px);
}

.delete-dialog form {
    display: grid;
    gap: 12px;
    padding: 22px;
    text-align: center;
}

.delete-dialog img {
    width: 150px;
    height: 108px;
    margin: 0 auto 4px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
}

.delete-dialog h2,
.delete-dialog p {
    margin: 0;
}

.delete-dialog p {
    color: var(--muted);
}

.dialog-actions {
    justify-content: center;
    margin-top: 8px;
}

.admin-edit-photo-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-edit-preview {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper-soft);
}

.admin-edit-preview img {
    width: 180px;
    height: 128px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
    box-shadow: var(--shadow-sm);
}

.admin-edit-preview-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-edit-preview-actions .secondary-button {
    gap: 8px;
}

.photo-crop-dialog {
    width: min(1120px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-strong);
}

.photo-crop-dialog::backdrop {
    background: rgba(10, 18, 20, .64);
    backdrop-filter: blur(3px);
}

.photo-crop-frame {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: calc(100dvh - 24px);
}

.photo-crop-form {
    display: grid;
    min-height: 0;
}

.photo-crop-head,
.photo-crop-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.photo-crop-head h2,
.photo-crop-head p {
    margin: 0;
}

.photo-crop-head h2 {
    font-size: 22px;
}

.photo-crop-head p {
    color: var(--muted);
}

.photo-crop-close {
    min-width: 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

.photo-crop-stage-wrap {
    min-height: 0;
    padding: 16px;
    overflow: auto;
    background: #1e2528;
}

.photo-crop-stage {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;
    direction: ltr;
}

.photo-crop-stage img {
    display: block;
    max-width: min(100%, 1040px);
    max-height: calc(100dvh - 230px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.photo-crop-stage svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    overflow: visible;
}

.photo-crop-polygon {
    fill: rgba(241, 184, 24, .18);
    stroke: #f1b818;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.photo-crop-handle {
    cursor: grab;
}

.photo-crop-handle:active {
    cursor: grabbing;
}

.photo-crop-handle circle {
    fill: #fff;
    stroke: #0a6068;
    stroke-width: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .34));
}

.photo-crop-handle text {
    fill: #0a6068;
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.photo-crop-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    border-bottom: 0;
}

.photo-crop-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-inline-end: auto;
}

.photo-crop-tools .secondary-button {
    gap: 8px;
}

.photo-filter-form {
    display: grid;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.photo-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.photo-filter-head strong {
    color: var(--ink);
    font-size: 16px;
}

.photo-filter-head span {
    color: var(--muted);
    font-size: 14px;
}

.photo-filter-head span.is-error {
    color: var(--danger);
}

.photo-filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.photo-filter-actions .secondary-button {
    min-height: 40px;
    padding: 8px 13px;
}

.admin-photo-pager {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.admin-photo-pager .secondary-button {
    gap: 8px;
    min-width: 230px;
    justify-content: flex-start;
    text-align: right;
}

.admin-photo-pager img {
    width: 54px;
    height: 40px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e7e1d5;
}

.admin-photo-pager strong,
.admin-photo-pager small {
    display: block;
    line-height: 1.35;
}

.admin-photo-pager small {
    max-width: 160px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-photo-pager .disabled {
    cursor: not-allowed;
    opacity: .45;
}

button:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.review-grid { display: grid; gap: 20px; }
.review-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s var(--ease);
}

.review-card:hover { box-shadow: var(--shadow); }
.review-photo-link {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e7e1d5;
}
.review-card h2 { margin: 8px 0 8px; font-size: 20px; }
.review-actions, .inline-form { display: inline-flex; gap: 8px; margin: 6px 0; }
.review-actions input { width: 260px; }

.tabs a.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.status.pending, .status.new { background: #fff3d6; color: #7a5600; }
.status.approved, .status.active, .status.read, .status.visible { background: #e7f6e9; color: #1b6b2b; }
.status.rejected, .status.suspended, .status.hidden { background: #fbe7e7; color: var(--danger); }

.trusted-badge-form {
    display: inline-flex;
    margin: 0;
}

.trusted-badge {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.trusted-badge:hover,
.trusted-badge:focus {
    box-shadow: 0 0 0 3px rgba(10, 96, 104, .12);
}

.status-toggle-form {
    margin: 0;
}

.status-toggle {
    min-height: 32px;
    padding: 6px 12px;
    border: 0;
    font-weight: 700;
    line-height: 1.2;
}

.status-toggle:hover,
.status-toggle:focus {
    box-shadow: 0 0 0 3px rgba(10, 96, 104, .12);
    transform: translateY(-1px);
}

/* Flash & Empty */
.flash, .empty-state {
    width: min(1180px, calc(100% - 32px));
    margin: 16px auto;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #e7f6e9;
    border: 1px solid #b7dfbf;
    box-shadow: var(--shadow-sm);
    font-weight: 500;
}

.flash.error { background: #fbe7e7; border-color: #e1b4b4; }
.flash.warning { background: #fff3d6; border-color: #ead08e; }
.empty-state {
    background: #fff;
    border-color: var(--line);
    text-align: center;
    color: var(--muted);
    padding: 36px 18px;
    font-size: 15px;
}

/* Footer */
.site-footer {
    margin: 36px auto 0;
    padding: 0;
    color: rgba(255, 255, 255, .76);
    background:
        radial-gradient(720px 300px at 18% 0%, rgba(241, 184, 24, .15), transparent 62%),
        linear-gradient(135deg, #06383f 0%, #092b31 58%, #171f23 100%);
    border-top: 1px solid rgba(241, 184, 24, .2);
    font-size: 14.5px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
    opacity: .55;
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(210px, .55fr) minmax(260px, .75fr);
    gap: clamp(22px, 4vw, 44px);
    padding-block: clamp(30px, 4vw, 48px);
}

.footer-main {
    display: grid;
    gap: 14px;
    align-content: start;
    position: relative;
    z-index: 1;
}

.footer-main p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.footer-logo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: contain;
    padding: 5px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-sm);
}

.site-footer .footer-brand {
    color: #fff;
    font-weight: 800;
    font-size: 18px;
}

.footer-links,
.footer-contact {
    display: grid;
    gap: 10px;
    align-content: start;
    font-style: normal;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.footer-links strong,
.footer-contact strong {
    color: var(--gold);
    margin-bottom: 4px;
    font-size: 15px;
}

.footer-links a,
.footer-contact a,
.footer-contact > span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    color: rgba(255, 255, 255, .76);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .045);
    transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), transform .2s var(--ease);
}

.footer-links i,
.footer-contact i {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    color: var(--gold);
    background: rgba(241, 184, 24, .1);
    border: 1px solid rgba(241, 184, 24, .18);
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.footer-links span,
.footer-contact > span span,
.footer-contact a span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #fff;
    transform: translateY(-1px);
    border-color: rgba(241, 184, 24, .34);
    background: rgba(255, 255, 255, .08);
}

.admin-message-table {
    min-width: 1100px;
}

.admin-message-table td {
    vertical-align: top;
}

.message-cell {
    max-width: 360px;
    color: var(--ink-soft);
}

[data-lightbox-src] {
    cursor: zoom-in;
}

.has-image-lightbox {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 44px);
    background: rgba(0, 0, 0, .82);
    opacity: 0;
    overflow: auto;
    pointer-events: none;
    touch-action: pan-x pan-y pinch-zoom;
    transition: opacity .18s var(--ease);
    -webkit-overflow-scrolling: touch;
}

.image-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-lightbox img {
    max-width: min(100%, 1200px);
    max-height: calc(100vh - 88px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
    -webkit-user-drag: none;
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-color: rgba(255, 255, 255, .35);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    font-family: Arial, sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.image-lightbox-close:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .7);
    transform: none;
}

/* Reveal animation (subtle on scroll) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity .7s var(--ease), transform .7s var(--ease);
        will-change: opacity, transform;
    }
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */
@media (max-width: 980px) {
    .upload-form { grid-template-columns: 1fr; }
    .contact-captcha { grid-template-columns: 1fr; }
    .upload-account-card { grid-template-columns: 1fr; }
    .account-edit-photo-form { grid-template-columns: 1fr; }
    .review-card { grid-template-columns: 1fr; }
    .photo-detail { grid-template-columns: 1fr; }
    .weekly-photo-feature {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }
    .weekly-photo-media {
        min-height: clamp(210px, 54vw, 280px);
        aspect-ratio: 16 / 9;
    }
    .category-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-sidebar {
        position: static;
        width: auto;
        margin-bottom: 18px;
    }
    .admin-panel {
        width: 100%;
        min-height: 0;
        margin-right: 0;
    }
    .admin-side-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-user-detail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-user-password-form { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-edit-photo-form { grid-template-columns: 1fr; }
    .admin-text-suggestion-form { grid-template-columns: 1fr; }
    .admin-photo-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer-inner { grid-template-columns: 1fr 1fr; }
    .testimonial-form { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .site-header, .home-hero, .steps-grid, .category-row, .contact-hero, .site-footer-inner {
        grid-template-columns: 1fr;
    }
    .photo-neighbors {
        grid-template-columns: 1fr;
    }
    .photo-neighbor,
    .photo-neighbor.next {
        justify-self: stretch;
        text-align: right;
    }
    .site-header { position: sticky; }
    .home-hero { min-height: auto; padding-top: 32px; padding-bottom: 32px; }
    .home-hero h1 { font-size: clamp(28px, 7vw, 40px); }
    .hero-image { aspect-ratio: 16 / 10; }
    .hero-lead { padding-inline-start: 12px; }
    .weekly-photo-meta { grid-template-columns: 1fr; }
    .weekly-photo-copy {
        gap: 12px;
        padding: 20px;
    }
    .weekly-photo-copy h3 {
        font-size: 22px;
    }
    .weekly-photo-copy p {
        font-size: 15px;
    }
    .weekly-photo-copy .primary-button {
        justify-self: stretch;
        width: 100%;
    }
    .purpose-band { align-items: stretch; flex-direction: column; }
    .purpose-band a { text-align: center; }
    .category-page-head { align-items: stretch; flex-direction: column; }
    .category-page-head .secondary-button { align-self: flex-start; }
    .nav { width: 100%; justify-content: flex-start; }
    .nav a { flex: 1 1 auto; text-align: center; min-width: 88px; }
    .nav-search { flex: 1 1 100%; }
    .toolbar { align-items: stretch; }
    .toolbar h2 { font-size: 24px; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
    .nav-search input { flex: 1 1 auto; width: auto; }
    .category-row-head { align-items: flex-start; }
    .category-row-badges { flex: 1 1 100%; }
    .category-strip { grid-auto-columns: minmax(170px, 76vw); }
    .testimonial-strip-wrap {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .testimonial-strip {
        grid-auto-columns: minmax(240px, 84vw);
    }
    .testimonial-strip-wrap .strip-arrow {
        display: none;
    }
    .testimonial-section-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .testimonial-section-actions .primary-button,
    .testimonial-section-actions .secondary-button {
        width: 100%;
        justify-content: center;
    }
    .category-photo-grid { grid-template-columns: 1fr; }
    .review-actions input { width: 100%; }
    .admin-side-nav { grid-template-columns: 1fr; }
    .admin-user-detail dl { grid-template-columns: 1fr; }
    .admin-stats-grid { grid-template-columns: 1fr; }
    .admin-photo-filters { grid-template-columns: 1fr; }
    .admin-photo-filter-actions { align-items: stretch; }
    .admin-photo-filter-actions button,
    .admin-photo-filter-actions .secondary-button { flex: 1 1 140px; justify-content: center; }
    dl { grid-template-columns: 1fr; gap: 4px 0; }
    dt { margin-top: 8px; }
}

@media (max-width: 480px) {
    .weekly-photo-section {
        margin-top: 30px;
    }

    .weekly-photo-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .weekly-photo-copy {
        padding: 16px;
    }

    .weekly-photo-meta div {
        padding: 10px 12px;
    }
}

/* Bootstrap navbar refinements */
.site-header.navbar {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    z-index: 1030;
    width: 100%;
    align-items: center;
    padding: 12px clamp(18px, 4vw, 56px);
    background:
        radial-gradient(520px 180px at 18% 0%, rgba(11, 112, 124, 1) 0%, rgba(11, 112, 124, 0) 60%),
        radial-gradient(420px 160px at 78% 20%, rgba(8, 92, 103, .95) 0%, rgba(8, 92, 103, 0) 62%),
        linear-gradient(135deg, #064f59 0%, #075f6a 30%, #04424b 66%, #032f36 100%);
    border-bottom: 1px solid rgba(241, 184, 24, .16);
    box-shadow: 0 14px 32px rgba(3, 38, 44, .16);
    backdrop-filter: saturate(145%) blur(14px);
    -webkit-backdrop-filter: saturate(145%) blur(14px);
}

.site-header.navbar.is-scrolled {
    border-bottom-color: rgba(241, 184, 24, .28);
    background:
        radial-gradient(520px 180px at 18% 0%, rgba(11, 112, 124, .75) 0%, rgba(11, 112, 124, 0) 60%),
        radial-gradient(420px 160px at 78% 20%, rgba(8, 92, 103, .72) 0%, rgba(8, 92, 103, 0) 62%),
        linear-gradient(135deg, rgba(6, 79, 89, .75) 0%, rgba(7, 95, 106, .75) 30%, rgba(4, 66, 75, .75) 66%, rgba(3, 47, 54, .75) 100%);
    box-shadow: 0 16px 34px rgba(3, 38, 44, .22);
}

.site-header .brand {
    color: #fff;
    margin: 0;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-header .brand:hover,
.site-header .brand:focus {
    color: #fff;
}

.site-navbar-collapse {
    flex-grow: 0;
}

.site-nav {
    align-items: center;
    gap: 8px;
}

.site-nav .site-nav-link,
.site-nav .site-nav-link.button-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .88);
    font-weight: 700;
    line-height: 1.3;
    box-shadow: none;
}

.site-nav .site-nav-link i {
    color: var(--gold);
    font-size: 1rem;
    line-height: 1;
}

.site-nav .site-nav-link::after {
    content: '';
    position: absolute;
    right: 14px;
    left: 14px;
    bottom: 5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 22%, #ffd86a 50%, var(--gold) 78%, transparent 100%);
    opacity: 0;
    transform: scaleX(.5);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
}

.site-nav .site-nav-link:hover,
.site-nav .site-nav-link:focus,
.site-nav .site-nav-link.active,
.site-nav .site-nav-link.button-link:hover,
.site-nav .site-nav-link.button-link:focus,
.site-nav .site-nav-link.button-link.active {
    background: transparent;
    color: #fff;
    transform: translateY(-1px);
}

.site-nav .site-nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.site-nav-toggler {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    padding: 7px 10px;
}

.site-nav-toggler:focus {
    box-shadow: 0 0 0 3px rgba(241, 184, 24, .24);
}

.nav-search {
    margin-inline: 4px;
}

.nav-search .input-group {
    flex-wrap: nowrap;
    width: min(330px, 100%);
    box-shadow: 0 10px 24px rgba(3, 38, 44, .12);
}

.nav-search .input-group-text,
.nav-search .form-control,
.nav-search .btn-nav-search {
    min-height: 42px;
    border-color: rgba(255, 255, 255, .14);
}

.nav-search .input-group-text {
    background: rgba(255, 255, 255, .12);
    color: var(--gold);
}

.nav-search .form-control {
    width: 190px;
    padding-block: 8px;
    background: rgba(255, 255, 255, .94);
}

.nav-search .btn-nav-search {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 13px;
    background: var(--gold);
    border-color: var(--gold);
    color: #172326;
    font-weight: 800;
    box-shadow: none;
}

.nav-search .btn-nav-search:hover,
.nav-search .btn-nav-search:focus {
    background: #ffd36a;
    border-color: #ffd36a;
    color: #172326;
    transform: none;
}

@media (max-width: 1199.98px) {
    .site-navbar-collapse {
        width: 100%;
        padding-top: 12px;
    }

    .site-nav {
        align-items: stretch;
        width: 100%;
    }

    .site-nav .site-nav-link,
    .site-nav .site-nav-link.button-link {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-search {
        width: 100%;
        margin: 2px 0;
    }

    .nav-search .input-group,
    .nav-search .form-control {
        width: 100%;
    }
}

/* ============================================================
   Homepage polish — refined visual aesthetics
   ============================================================ */

/* Hero: slow Ken Burns motion without resetting during cross-fades */
@media (prefers-reduced-motion: no-preference) {
    .hero-bg-layer {
        animation: heroKenBurns 24s ease-in-out infinite alternate;
    }

    .hero-bg-layer:nth-child(2) {
        animation-delay: -12s;
    }
}
@keyframes heroKenBurns {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to   { transform: scale(1.1) translate3d(-1.6%, -1.2%, 0); }
}

/* Hero: deeper gradient + softer vignette */
.home-hero {
    background:
        radial-gradient(900px 600px at 88% 10%, rgba(241, 184, 24, .22), transparent 60%),
        radial-gradient(720px 460px at 6% 96%, rgba(10, 96, 104, .35), transparent 65%),
        linear-gradient(135deg, #02272d 0%, #053f47 48%, #07666f 100%);
}

.home-hero::before {
    background:
        radial-gradient(120% 90% at 50% 40%, transparent 28%, rgba(2, 28, 32, .42) 100%),
        linear-gradient(180deg, rgba(2, 28, 32, .14), rgba(2, 28, 32, .28));
}

/* Eyebrow: balanced two-sided gold rule */
.home-hero .eyebrow {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    gap: 14px;
    color: var(--gold);
    text-shadow: 0 0 14px rgba(241, 184, 24, .55), 0 0 28px rgba(241, 184, 24, .3);
}
.home-hero .eyebrow::before {
    width: 42px;
    height: 2px;
    box-shadow: 0 0 0 3px rgba(241, 184, 24, .14);
}
.home-hero .eyebrow::after {
    content: '';
    width: 42px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 0 3px rgba(241, 184, 24, .14);
}

/* Title flourish underline */
.home-hero h1::after {
    content: '';
    display: block;
    width: clamp(80px, 11vw, 130px);
    height: 4px;
    margin-top: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, rgba(241, 184, 24, 0) 100%);
}

/* Hero image: refined double frame */
.home-hero .hero-image {
    box-shadow:
        0 38px 80px rgba(0, 0, 0, .42),
        0 0 0 1px rgba(241, 184, 24, .3),
        0 0 0 7px rgba(255, 255, 255, .04);
}
.home-hero .hero-image::after {
    inset: 14px;
    border: 1px solid rgba(241, 184, 24, .7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}

/* Hero image caption */
.home-hero .image-caption {
    border-radius: 8px;
    padding: 13px 16px 12px;
    background: rgba(255, 255, 255, .94);
    border-color: rgba(241, 184, 24, .5);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}
.home-hero .image-caption strong {
    display: block;
    font-size: 14.5px;
    color: var(--ink);
}
.home-hero .image-caption span {
    font-size: 13px;
    color: var(--muted);
}

/* Trust strip: refined chips with hover lift */
.trust-strip {
    gap: 8px;
    margin-top: 18px;
}
.trust-strip span {
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .22);
    transition: background-color .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease);
}
.trust-strip span:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(241, 184, 24, .42);
    transform: translateY(-1px);
}

/* Section heading: decorative gold underline */
.section-intro h2,
.toolbar h2 {
    position: relative;
    padding-bottom: 14px;
}
.section-intro h2::after,
.toolbar h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-deep) 100%);
    border-radius: 3px;
}

.section-intro {
    gap: 10px;
    margin-bottom: 26px;
}
.section-kicker {
    letter-spacing: .04em;
    font-size: 13.5px;
}

/* Purpose band: warmer gradient + premium CTA */
.purpose-band {
    margin-top: 56px;
    padding: clamp(24px, 3.4vw, 32px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(440px 240px at 100% 0%, rgba(241, 184, 24, .1), transparent 70%),
        radial-gradient(420px 200px at 0% 100%, rgba(10, 96, 104, .07), transparent 65%),
        linear-gradient(180deg, #fff, var(--panel-warm));
    box-shadow: 0 14px 34px rgba(20, 30, 35, .07);
}
.purpose-band p {
    font-size: 16.5px;
    line-height: 1.85;
}
.purpose-band a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: 1px solid var(--accent-dark);
    border-radius: var(--radius-sm);
    padding: 12px 26px;
    font-size: 15px;
    box-shadow: 0 14px 30px rgba(5, 65, 73, .26);
}
.purpose-band a:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #033137 100%);
    box-shadow: 0 18px 38px rgba(5, 65, 73, .34);
    transform: translateY(-2px);
}

/* Steps band: layered background + numbered medallions */
.steps-band {
    margin-top: 48px;
    padding-block: clamp(38px, 5.4vw, 64px);
    background:
        radial-gradient(900px 500px at 100% 0%, rgba(10, 96, 104, .12), transparent 60%),
        radial-gradient(640px 360px at 0% 100%, rgba(241, 184, 24, .08), transparent 60%),
        linear-gradient(180deg, #f1f8f7, #e9f2f1);
}
.steps-grid {
    gap: 24px;
}
.steps-grid article {
    padding: 30px 26px 28px;
    padding-inline-start: 94px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #fbfdfd);
    overflow: visible;
}
.steps-grid article::before {
    display: none;
}
.steps-grid > article > span {
    position: absolute;
    top: 26px;
    inset-inline-start: 22px;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: #1f272a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
    box-shadow:
        0 12px 26px rgba(241, 184, 24, .42),
        inset 0 -2px 0 rgba(0, 0, 0, .08),
        0 0 0 4px rgba(255, 255, 255, .9);
}
.steps-grid h3 {
    margin: 4px 0 8px;
    font-size: 20px;
}
.steps-grid p {
    font-size: 15px;
    line-height: 1.85;
}
.steps-grid article:hover {
    box-shadow: 0 24px 50px rgba(7, 95, 104, .16);
}
.steps-grid article:hover > span {
    transform: rotate(-4deg) scale(1.04);
    transition: transform .25s var(--ease);
}

/* Weekly photo: floating ribbon + softened shell */
.weekly-photo-section {
    margin-top: 64px;
}
.weekly-photo-feature {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 22px 48px rgba(20, 30, 35, .1);
    background:
        radial-gradient(620px 320px at 0% 100%, rgba(241, 184, 24, .08), transparent 60%),
        linear-gradient(180deg, #fff, var(--panel-warm));
}
.weekly-photo-feature::before {
    content: none;
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    z-index: 4;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    background: rgba(15, 22, 25, .82);
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: .03em;
    border: 1px solid rgba(241, 184, 24, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.weekly-photo-meta {
    gap: 12px;
}
.weekly-photo-meta div {
    background: linear-gradient(180deg, #fff, #fbf7eb);
    border-color: var(--line);
    transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.weekly-photo-meta div:hover {
    border-color: rgba(241, 184, 24, .55);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 30, 35, .07);
}

/* Toolbar margin */
.toolbar {
    margin-top: 60px;
}

/* Photo card: gold inset frame on hover + deeper lift */
.photo-card {
    border-radius: var(--radius);
}
.photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(241, 184, 24, 0);
    transition: box-shadow .25s var(--ease);
}
.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 54px rgba(20, 30, 35, .14);
}
.photo-card:hover::after {
    box-shadow: inset 0 0 0 2px rgba(241, 184, 24, .55);
}

/* Category section spacing */
.category-section {
    gap: 26px;
    margin-top: 68px;
}
.category-row {
    padding: 20px;
    border-radius: var(--radius-lg);
}
.category-row-head h3 {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow: 0 12px 26px rgba(5, 65, 73, .26);
    font-size: 16.5px;
    font-weight: 800;
}

/* Strip photo: gold inset hover + softer caption */
.strip-photo {
    border-radius: 8px;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.strip-photo .strip-photo-title {
    z-index: 2;
    font-size: 14px;
    padding: 28px 14px 12px;
}
.strip-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(241, 184, 24, 0);
    transition: box-shadow .22s var(--ease);
}
.strip-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 36px rgba(20, 30, 35, .2);
}
.strip-photo:hover::after {
    box-shadow: inset 0 0 0 2px rgba(241, 184, 24, .58);
}

/* Strip arrow refinement */
.strip-arrow {
    width: 42px;
    height: 42px;
    font-size: 30px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 12px 24px rgba(20, 30, 35, .12);
}

/* Empty state polish */
.empty-state {
    background: linear-gradient(180deg, #fff, var(--panel-warm));
    border-style: dashed;
    border-color: rgba(10, 96, 104, .25);
    padding: 50px 22px;
}

/* Reveal: a touch more lift for nicer entrance */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        transform: translateY(20px);
        transition: opacity .8s var(--ease), transform .8s var(--ease);
    }
}

/* Responsive adjustments for the polish layer */
@media (max-width: 980px) {
    .weekly-photo-feature::before {
        top: 14px;
        inset-inline-start: 14px;
    }
}

@media (max-width: 820px) {
    .home-hero h1::after {
        margin-top: 14px;
        height: 3px;
    }
    .home-hero .eyebrow::after { width: 32px; }
    .home-hero .eyebrow::before { width: 32px; }
    .steps-grid article {
        padding: 30px 24px 26px;
        padding-inline-start: 86px;
    }
    .steps-grid > article > span {
        top: 22px;
        inset-inline-start: 18px;
        width: 48px;
        height: 48px;
        font-size: 15px;
    }
    .weekly-photo-feature::before {
        top: 12px;
        inset-inline-start: 12px;
        padding: 6px 11px;
        font-size: 11.5px;
    }
    .section-intro h2::after,
    .toolbar h2::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .steps-grid > article > span {
        width: 44px;
        height: 44px;
    }
    .steps-grid article {
        padding-inline-start: 78px;
    }
}

/* Mobile-first speed and readability overrides */
@media (max-width: 820px) {
    body {
        padding-top: 66px;
        background: var(--paper);
    }

    .container {
        width: min(100% - 24px, 1180px);
    }

    .site-header.navbar {
        padding: 9px 12px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .site-header .brand span {
        font-size: 16px;
        white-space: nowrap;
    }

    .site-navbar-collapse {
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .home-hero {
        margin-top: -18px;
        min-height: auto;
        gap: 20px;
        padding: 30px 14px 26px;
        background: linear-gradient(135deg, #033b43 0%, #075f6a 100%);
    }

    .home-hero::after,
    .home-hero .hero-image::after,
    .home-hero h1::after {
        display: none;
    }

    .hero-bg-layer {
        opacity: .28;
        animation: none;
        filter: none;
        mix-blend-mode: soft-light;
        will-change: auto;
    }

    .hero-copy {
        gap: 14px;
    }

    .home-hero .eyebrow {
        font-size: 13px;
        gap: 8px;
        text-shadow: none;
    }

    .home-hero .eyebrow::before,
    .home-hero .eyebrow::after {
        width: 22px;
    }

    .home-hero h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.25;
        text-shadow: 0 1px 16px rgba(0, 0, 0, .18);
    }

    .hero-lead {
        padding-inline-start: 10px;
        font-size: 15px;
        line-height: 1.75;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions a,
    .purpose-band a,
    .weekly-photo-copy .primary-button {
        justify-content: center;
        width: 100%;
    }

    .trust-strip {
        gap: 6px;
        margin-top: 4px;
    }

    .trust-strip span {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        min-height: 34px;
        padding: 7px 9px;
        text-align: center;
        font-size: 12px;
    }

    .hero-image {
        aspect-ratio: 16 / 10;
        border-radius: 8px;
        box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
    }

    .image-caption {
        inset-inline: 10px;
        bottom: 10px;
        padding: 9px 11px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .purpose-band,
    .home-visit-band,
    .steps-band,
    .weekly-photo-section,
    .toolbar,
    .category-section {
        margin-top: 30px;
    }

    .purpose-band {
        padding: 18px;
        border-radius: 8px;
    }

    .home-visit-band {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        border-radius: 8px;
    }

    .home-visit-badges {
        justify-content: stretch;
        gap: 6px;
        width: 100%;
    }

    .home-visit-badges span {
        flex: 1 1 0;
        justify-content: center;
        gap: 6px;
        min-height: 30px;
        padding: 5px 7px;
        font-size: 12px;
    }

    .home-visit-badges b {
        font-size: 11px;
    }

    .steps-band {
        width: 100vw;
        margin-inline: calc(50% - 50vw);
        padding: 30px 12px;
    }

    .steps-grid {
        gap: 12px;
    }

    .steps-grid article {
        min-height: 0;
        padding-block: 20px;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .photo-card,
    .category-row,
    .weekly-photo-feature {
        border-radius: 8px;
    }

    .photo-card:hover,
    .strip-photo:hover,
    .steps-grid article:hover,
    .weekly-photo-meta div:hover {
        transform: none;
    }

    .category-strip {
        grid-auto-columns: minmax(150px, 72vw);
        gap: 10px;
        padding-bottom: 4px;
    }

    .strip-arrow {
        display: none;
    }

    .floating-share-photo {
        right: 12px;
        left: auto;
        bottom: 12px;
        width: auto;
        justify-content: center;
    }

    .floating-account-button {
        position: fixed;
        left: 12px;
        right: auto;
        bottom: 12px;
        z-index: 1041;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 52px;
        padding: 12px 20px;
        border: 2px solid rgba(255, 255, 255, .9);
        border-radius: var(--radius-sm);
        background: var(--gold);
        color: var(--accent-dark);
        box-shadow: 0 18px 38px rgba(3, 38, 44, .28);
        font-weight: 800;
        line-height: 1.2;
    }

    .floating-account-button:hover,
    .floating-account-button:focus {
        background: #ffd354;
        color: var(--accent-dark);
        transform: translateY(-1px);
    }

    .floating-account-button i {
        color: var(--accent-dark);
        font-size: 1.15rem;
        line-height: 1;
    }

    .account-summary-card,
    .account-photo-card,
    .account-edit-preview,
    .account-edit-photo-form,
    .account-photo-meta {
        grid-template-columns: 1fr;
    }

    .account-photo-card {
        gap: 10px;
        padding: 10px;
    }

    .account-photo-thumb {
        height: 118px;
    }

    .account-photo-title-row {
        display: grid;
    }

    .account-photo-card .table-action,
    .account-page-head .primary-button {
        width: 100%;
        justify-content: center;
    }

    .account-edit-preview img {
        height: 240px;
        min-height: 220px;
    }

    .account-photos-table {
        min-width: 0;
        table-layout: fixed;
    }

    .account-photos-table th,
    .account-photos-table td {
        padding: 10px;
        vertical-align: middle;
    }

    .account-photos-table th:not(:first-child):not(:last-child),
    .account-photos-table td:not(:first-child):not(:last-child) {
        display: none;
    }

    .account-photos-table th:first-child,
    .account-photos-table td:first-child {
        width: 58%;
    }

    .account-photos-table th:last-child,
    .account-photos-table td:last-child {
        width: 42%;
        text-align: left;
    }

    .account-photos-table .mini {
        width: 100%;
        max-width: 150px;
        height: 92px;
    }

    .account-photos-table .table-action {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
    }
}
