:root {
    --bg: #070911;
    --bg-soft: #0c1020;
    --surface: rgba(18, 24, 43, 0.78);
    --surface-strong: rgba(25, 32, 54, 0.94);
    --border: rgba(255, 255, 255, 0.10);
    --text: #f7f7fb;
    --muted: #aeb6c9;
    --muted-2: #7d879c;
    --primary: #e53935;
    --primary-2: #ff6b3d;
    --accent: #ffd166;
    --success: #49d17d;
    --danger: #ff5a66;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(229, 57, 53, 0.24), transparent 34rem),
        radial-gradient(circle at top right, rgba(255, 209, 102, 0.13), transparent 28rem),
        linear-gradient(135deg, var(--bg), #090d19 54%, #111522);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.58), transparent 70%);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    color: var(--muted);
    line-height: 1.75;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h1 {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.25rem;
}

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

.glass {
    background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(7, 9, 17, 0.76);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 110px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 210px;
    height: 92px;
    flex: 0 0 210px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    filter: drop-shadow(0 10px 18px rgba(138, 67, 255, 0.28));
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-text small {
    color: var(--muted-2);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    color: var(--muted);
    padding: 10px 13px;
    border-radius: 999px;
    transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 999px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--text);
    cursor: pointer;
    transition: transform 160ms ease, border 160ms ease, background 160ms ease, opacity 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 18px 38px rgba(229, 57, 53, 0.28);
}

.btn-ghost {
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
}

.btn-large {
    padding: 14px 22px;
}

.btn-full {
    width: 100%;
}

.section-pad {
    padding: 96px 0;
}

.section-pad-small {
    padding: 74px 0 42px;
}

.section-muted {
    background: rgba(255,255,255,0.025);
    border-block: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.hero-copy .lead {
    max-width: 680px;
    font-size: 1.15rem;
    margin: 22px 0 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.hero-actions,
.cta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.trust-row span {
    color: var(--muted);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.92rem;
}

.hero-card {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
}

.orb-one {
    width: 270px;
    height: 270px;
    background: rgba(229, 57, 53, 0.33);
    top: 42px;
    left: 28px;
}

.orb-two {
    width: 180px;
    height: 180px;
    background: rgba(255, 209, 102, 0.18);
    right: 40px;
    bottom: 70px;
}

.status-panel {
    position: relative;
    width: min(100%, 440px);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.pulse {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 8px rgba(73, 209, 125, 0.12);
}

dl {
    margin: 22px 0 0;
    display: grid;
    gap: 15px;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

dt {
    color: var(--muted-2);
}

dd {
    margin: 0;
    font-weight: 700;
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 44px;
}

.section-heading.align-left {
    text-align: left;
    margin-inline: 0;
}

.feature-grid,
.gallery-grid,
.about-grid,
.dashboard-grid,
.auth-grid {
    display: grid;
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-card,
.content-card,
.gallery-card,
.auth-card,
.profile-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.feature-card,
.content-card {
    padding: 26px;
}

.feature-card .icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: rgba(229, 57, 53, 0.16);
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 24px;
}

.split-panel {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    border-radius: var(--radius-lg);
    padding: 34px;
}

.split-panel p {
    max-width: 740px;
}

.page-hero h1 {
    max-width: 900px;
}

.page-hero p {
    max-width: 760px;
    font-size: 1.08rem;
}

.gallery-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
}

.gallery-upload {
    width: min(100%, 380px);
}

.upload-plus {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    border: 1px dashed rgba(255, 209, 102, 0.45);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.upload-plus input,
.avatar-upload-button input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-plus span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
}

.image-upload-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,0.045);
}

.image-upload-preview[hidden] {
    display: none;
}

.image-upload-preview img {
    width: 92px;
    height: 72px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255,255,255,0.05);
}

.image-upload-preview.is-avatar {
    grid-template-columns: 72px minmax(0, 1fr);
    text-align: left;
}

.image-upload-preview.is-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
}

.image-upload-preview strong,
.image-upload-preview small {
    display: block;
    overflow-wrap: anywhere;
}

.image-upload-preview small {
    margin-top: 4px;
    color: var(--muted-2);
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background:
        linear-gradient(135deg, rgba(229,57,53,0.28), rgba(255,209,102,0.12)),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 10px, transparent 10px 20px);
}

.placeholder-image span {
    font-weight: 900;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.78);
}

.gallery-body {
    padding: 20px;
}

.gallery-body p {
    margin-bottom: 0;
    font-size: 0.92rem;
}

.gallery-description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gallery-meta {
    display: flex;
    gap: 10px 16px;
    flex-wrap: wrap;
    margin-top: 14px;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.gallery-manage {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.gallery-manage summary {
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.gallery-manage form {
    margin-top: 16px;
}

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

.gallery-actions .btn {
    width: auto;
}

.gallery-moderation-band {
    padding: 42px 0;
    border-block: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
}

.gallery-review-grid {
    display: grid;
    gap: 18px;
}

.gallery-review-item {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
    gap: 22px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.gallery-review-item > img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-review-item form {
    min-width: 0;
}

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.gallery-modal[hidden] {
    display: none;
}

.gallery-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 12, 0.88);
}

.gallery-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-strong);
    box-shadow: var(--shadow);
}

.gallery-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    background: rgba(3,5,12,0.74);
    font-size: 1.7rem;
    cursor: pointer;
}

.gallery-modal-media {
    min-height: 460px;
    display: grid;
    place-items: center;
    background: #05070d;
}

.gallery-modal-media img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 48px);
    object-fit: contain;
}

.gallery-modal-content {
    overflow-y: auto;
    padding: 32px 26px;
}

.gallery-modal-content > p {
    white-space: pre-wrap;
}

.gallery-modal-author {
    color: var(--muted-2);
    font-size: 0.9rem;
}

.gallery-like-button {
    display: inline-flex;
    gap: 10px;
    width: auto;
    margin: 8px 0 24px;
}

.gallery-like-button.is-liked {
    color: #ffd166;
    border-color: rgba(255,209,102,0.5);
}

.gallery-comments {
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.gallery-comment-list {
    display: grid;
    gap: 14px;
    margin: 16px 0 22px;
}

.gallery-comment {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
}

.gallery-comment img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.06);
}

.gallery-comment p {
    margin: 3px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.gallery-comment small,
.gallery-comments-empty {
    color: var(--muted-2);
}

.gallery-comment-actions {
    display: flex;
    align-items: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.gallery-comment-action {
    width: auto;
    padding: 0;
    border: 0;
    color: var(--muted-2);
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.gallery-comment-action:hover,
.gallery-comment-action.is-liked {
    color: var(--accent);
}

.gallery-comment-action.is-danger:hover {
    color: #ff8d98;
}

.gallery-comment-action:disabled {
    cursor: default;
    opacity: 0.55;
}

.gallery-comment-edit {
    margin-top: 10px;
}

.gallery-comment-edit[hidden] {
    display: none;
}

.gallery-comment-edit textarea {
    min-height: 90px;
    margin-bottom: 10px;
}

.gallery-comment-edit-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-comment-edit-actions .btn {
    width: auto;
    padding: 9px 13px;
}

.modal-open {
    overflow: hidden;
}

.empty-state {
    padding: 34px;
    text-align: center;
}

.about-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    align-items: center;
}

.auth-copy p {
    max-width: 640px;
}

.auth-card {
    padding: 28px;
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255,255,255,0.07);
    padding: 14px 15px;
    outline: none;
    transition: border 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(255, 209, 102, 0.65);
    box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.10);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

select {
    appearance: none;
}

.field-note {
    color: var(--muted-2);
    font-weight: 500;
}

.form-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: rgba(255, 90, 102, 0.12);
    border: 1px solid rgba(255, 90, 102, 0.25);
    color: #ffd5d9;
}

.form-alert[data-type="success"] {
    background: rgba(73, 209, 125, 0.12);
    border-color: rgba(73, 209, 125, 0.25);
    color: #d6ffe4;
}

.password-requirements {
    display: grid;
    gap: 8px;
    margin: -6px 0 20px;
    color: var(--muted-2);
    font-size: 0.86rem;
}

.password-requirements span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.password-requirements span::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--muted-2);
}

.password-requirements span.is-met {
    color: var(--success);
}

.password-requirements span.is-met::before {
    background: var(--success);
}

.form-note {
    text-align: center;
    margin-bottom: 0;
}

.form-note a {
    color: var(--accent);
    font-weight: 800;
}

.dashboard-grid {
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: start;
}

.profile-card {
    padding: 28px;
    text-align: center;
    min-width: 0;
}

.profile-name {
    max-width: 100%;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-card p {
    overflow-wrap: anywhere;
}

.avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-form {
    margin-top: 22px;
}

.avatar-upload-button {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.role-badge {
    display: inline-flex;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--accent);
    background: rgba(255, 209, 102, 0.10);
    border: 1px solid rgba(255, 209, 102, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 900;
}

.account-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.account-tools p {
    margin-bottom: 0;
}

.profile-settings-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1.25fr);
    gap: 28px;
    align-items: start;
    padding: 26px 0;
    border-top: 1px solid var(--border);
}

.profile-settings-panel:first-of-type {
    border-top: 0;
    padding-top: 0;
}

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

.inline-account-form {
    width: min(100%, 360px);
}

.inline-account-form input {
    margin-bottom: 10px;
}

.btn-danger {
    width: 100%;
    background: rgba(255, 90, 102, 0.14);
    border-color: rgba(255, 90, 102, 0.4);
    color: #ffd5d9;
}

.newsletter-settings {
    width: min(100%, 310px);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.toggle-row input {
    width: 19px;
    height: 19px;
    accent-color: var(--primary);
}

.newsletter-admin {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
    gap: 34px;
    margin-top: 24px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.admin-users-panel {
    margin-top: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.admin-users-page {
    padding-top: 42px;
}

.admin-create-card {
    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1.3fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 34px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--border);
}

.admin-user-list {
    display: grid;
    gap: 18px;
}

.admin-user-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    padding: 22px;
}

.admin-user-head,
.admin-user-actions,
.admin-user-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-user-head p {
    margin: 4px 0 0;
}

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

.admin-user-meta {
    color: var(--muted-2);
    font-size: 0.86rem;
    margin: 6px 0 16px;
}

.admin-user-actions .btn {
    border-radius: 14px;
}

.center-page {
    display: grid;
    place-items: center;
}

.error-card {
    padding: 42px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.check-row {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--primary);
}

.check-row a,
.legal-content a {
    color: var(--accent);
    font-weight: 800;
}

.legal-content {
    display: grid;
    gap: 14px;
}

.legal-content h2 {
    margin-top: 22px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.legal-content p {
    margin: 0;
}

.legal-warning {
    border: 1px solid rgba(255, 209, 102, 0.35);
    background: rgba(255, 209, 102, 0.09);
    color: #ffe8a8;
    border-radius: var(--radius-sm);
    padding: 16px;
    line-height: 1.6;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr;
    gap: 28px;
    padding: 42px 0;
}

.footer-grid a {
    display: block;
    color: var(--muted);
    margin: 10px 0;
}

.footer-cookie-link {
    display: block;
    margin: 10px 0;
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.footer-cookie-link:hover {
    color: var(--text);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand img {
    width: 46px;
    height: 58px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    color: var(--muted-2);
    border-top: 1px solid var(--border);
    padding: 16px;
    font-size: 0.9rem;
}

.cookie-hud {
    position: fixed;
    z-index: 1300;
    right: 22px;
    bottom: 22px;
    width: min(440px, calc(100vw - 28px));
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(216, 184, 115, 0.32);
    border-radius: 3px;
    color: #f7f3e9;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 40%),
        rgba(5, 12, 25, 0.96);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(22px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.cookie-hud[hidden] {
    display: none;
}

.cookie-hud.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-hud::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(135deg, #000, transparent 72%);
}

.cookie-hud-corner {
    position: absolute;
    top: -1px;
    left: -1px;
    width: 58px;
    height: 58px;
    border-top: 2px solid #d8b873;
    border-left: 2px solid #d8b873;
    pointer-events: none;
}

.cookie-hud-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cookie-hud-code {
    color: #d8b873;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.17em;
}

.cookie-hud-close {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.035);
    font-size: 1.15rem;
    cursor: pointer;
}

.cookie-hud h2 {
    position: relative;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.cookie-hud > p {
    position: relative;
    margin: 11px 0 19px;
    color: #a8b1c1;
    font-size: 0.86rem;
    line-height: 1.62;
}

.cookie-hud-details {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.cookie-hud-details[hidden] {
    display: none;
}

.cookie-category {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 2px;
    color: #fff;
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal;
}

.cookie-category.is-required {
    cursor: default;
}

.cookie-category strong,
.cookie-category small {
    display: block;
}

.cookie-category strong {
    font-size: 0.8rem;
}

.cookie-category small {
    margin-top: 3px;
    color: #7f8ba0;
    font-size: 0.7rem;
    line-height: 1.35;
}

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

.cookie-category i {
    position: relative;
    width: 38px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 160ms ease, background 160ms ease;
}

.cookie-category i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7e899a;
    transition: transform 160ms ease, background 160ms ease;
}

.cookie-category input:checked + i {
    border-color: rgba(216, 184, 115, 0.48);
    background: rgba(216, 184, 115, 0.14);
}

.cookie-category input:checked + i::after {
    background: #e0c17c;
    transform: translateX(18px);
}

.cookie-category input:focus-visible + i {
    outline: 2px solid #d8b873;
    outline-offset: 3px;
}

.cookie-policy-link {
    width: max-content;
    margin-top: 4px;
    color: #d8b873;
    font-size: 0.72rem;
    font-weight: 800;
}

.cookie-hud-actions {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cookie-hud-actions .btn {
    min-width: 0;
    min-height: 42px;
    border-radius: 2px;
    padding: 9px 10px;
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.cookie-hud-actions .cookie-save {
    grid-column: 1 / -1;
}

.cookie-hud-actions .cookie-save[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .cookie-hud {
        right: 10px;
        left: 10px;
        bottom: 10px;
        width: auto;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        padding: 21px 18px;
    }

    .cookie-hud-actions {
        grid-template-columns: 1fr 1fr;
    }

    .cookie-hud-actions [data-cookie-accept] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 110px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        background: var(--surface-strong);
        border: 1px solid var(--border);
        border-radius: 18px;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        border-radius: 12px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .hero-grid,
    .auth-grid,
    .dashboard-grid,
    .profile-settings-panel,
    .gallery-modal-panel,
    .gallery-review-item {
        grid-template-columns: 1fr;
    }

    .gallery-modal-panel {
        overflow-y: auto;
    }

    .gallery-modal-media {
        min-height: 300px;
        max-height: 52vh;
    }

    .gallery-modal-media img {
        max-height: 52vh;
    }

    .gallery-modal-content {
        overflow: visible;
    }

    .feature-grid,
    .feature-grid.two,
    .gallery-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card {
        min-height: 400px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .nav {
        gap: 10px;
        min-height: 88px;
    }

    .nav-links {
        top: 88px;
    }

    .nav-actions .btn-ghost {
        display: none;
    }

    .brand-mark {
        width: 126px;
        height: 56px;
        flex-basis: 126px;
    }

    .nav-actions .btn {
        padding: 9px 12px;
        font-size: 0.9rem;
    }

    .section-pad {
        padding: 64px 0;
    }

    .section-pad-small {
        padding: 52px 0 28px;
    }

    .feature-grid,
    .feature-grid.two,
    .gallery-grid,
    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .split-panel {
        align-items: stretch;
        flex-direction: column;
        padding: 24px;
    }

    .hero-actions,
    .cta-stack {
        flex-direction: column;
    }

    .btn-large,
    .hero-actions .btn,
    .cta-stack .btn {
        width: 100%;
    }

    .account-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .gallery-upload {
        width: 100%;
    }

    .gallery-modal {
        padding: 10px;
    }

    .gallery-modal-panel {
        max-height: calc(100vh - 20px);
    }

    .gallery-review-item {
        padding: 14px;
    }

    .newsletter-admin,
    .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-grid {
        grid-template-columns: 1fr;
    }

    .admin-create-card {
        grid-template-columns: 1fr;
    }
}
