html {
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}
*, *::before, *::after {
    box-sizing: border-box;
}

body,
p, h1, h2, h3, h4, h5, h6,
li, a, button, input, textarea {
    overflow-wrap: normal;
    word-wrap:     normal;
    word-break:    normal;
}

.no-hyphen {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
}

img {
    max-width: 100%;
    height:    auto;
    display:   block;
}

@font-face {
    font-family: 'Tulia-Bold';
    src:  url('/static/font/Tulia-Bold.eot');
    src:  url('/static/font/Tulia-Bold.eot?#iefix')
            format('embedded-opentype'),
          url('/static/font/Tulia-Bold.woff2') format('woff2'),
          url('/static/font/Tulia-Bold.woff')  format('woff'),
          url('/static/font/Tulia-Bold.ttf')   format('truetype'),
          url('/static/font/Tulia-Bold.svg#Tulia-Bold') format('svg');
    font-weight: normal;
    font-style:  normal;
    font-display: swap;
}

body,
h1, h2, h3, h4, h5, h6,
p, a, li, button, input, textarea {
    font-family: 'Tulia-Bold', Arial, sans-serif;
}

:root {
    --accent: #8fb3ff;
    --accent-secondary: #a6bedb;
    --accent-warm: #c6846b;
    --dark: #06070c;
    --grey: #0c0f16;
    --menu-bg: rgba(5, 6, 10, 0.92);
    --panel: rgba(8, 10, 15, 0.9);
    --text-main: #e8edf4;
    --text-muted: #9aa5b8;
    --border-soft: rgba(255, 255, 255, 0.08);
    --glow: 0 0 18px rgba(0, 0, 0, 0.35);
    --nav-height: 72px;
    --content-max-width: 1200px;
    --content-gutter: clamp(1rem, 4vw, 3rem);
    --section-gap: clamp(1rem, 2.5vw, 1.75rem);
}

html,
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--dark);
    background-image:
        linear-gradient(140deg, rgba(7, 9, 14, 0.98), rgba(4, 5, 9, 0.96)),
        radial-gradient(62% 52% at 50% 88%, rgba(255, 255, 255, 0.16), transparent 76%),
        radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.018), transparent 40%),
        radial-gradient(circle at 76% 36%, rgba(255, 255, 255, 0.016), transparent 38%),
        linear-gradient(210deg, rgba(12, 14, 20, 0.08), rgba(0, 0, 0, 0));
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.5;
}

body.neon-body {
    font-family: 'Tulia-Bold', Arial, sans-serif;
}

.site-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -5;
}

.bg-gradient {
    position: absolute;
    inset: -20% -8%;
    background:
      radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.06), transparent 50%),
      radial-gradient(circle at 74% 62%, rgba(255, 255, 255, 0.04), transparent 46%),
      linear-gradient(115deg, rgba(4, 6, 12, 0.9), rgba(5, 8, 14, 0.9));
    opacity: 0.18;
    filter: blur(38px);
}

.site-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -3;
    opacity: 1;
    backface-visibility: hidden;
    pointer-events: none;
    background: #000;
}

.site-watermark {
    position: fixed;
    inset: 0;
    background: url('/static/logo-transparent.png') center center no-repeat;
    background-size: clamp(240px, 45vw, 720px) clamp(240px, 45vw, 720px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
    backface-visibility: hidden;
}

@media (max-width: 768px) {
    .site-video {
        object-position: center center;
        transform: scale(1.14);
        transform-origin: center;
    }
}

@keyframes floatGlow {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25%  { transform: translate(26px, -28px) scale(1.06); opacity: 0.42; }
    50%  { transform: translate(-18px, 14px) scale(0.98); opacity: 0.37; }
    75%  { transform: translate(28px, 18px) scale(1.08); opacity: 0.44; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
}

@keyframes shimmerSweep {
    0%   { transform: translateX(-18%); }
    100% { transform: translateX(18%); }
}

.site-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding-top: calc(var(--nav-height) + 1.5rem);
}

.neon-header,
.neon-main {
    width: min(var(--content-max-width), 100%);
    margin: 0 auto;
    padding-left: var(--content-gutter);
    padding-right: var(--content-gutter);
}

.neon-header {
    padding-top: clamp(0.5rem, 3vw, 1.8rem);
    padding-bottom: clamp(0.5rem, 3vw, 1.8rem);
}

main {
    flex: 1 0 auto;
    width: min(var(--content-max-width), 100%);
    margin: 0 auto;
    padding: var(--content-gutter);
}

.neon-main {
    margin: 0 auto 3rem;
    padding-top: clamp(1rem, 3vw, 3rem);
    padding-bottom: clamp(1rem, 3vw, 3rem);
}
.page-shell {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
}
.page-panel {
    position: relative;
    background: linear-gradient(135deg, rgba(7, 9, 16, 0.92), rgba(10, 14, 24, 0.84));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    overflow: hidden;
}

.hero-section {
    text-align: center;
    padding: 80px 20px 60px;
}
.hero-section h1 {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
}
.bandname {
    color: var(--accent);
}
.hero-section p {
    font-size: 1.25em;
    margin-bottom: 35px;
    color: #c5c5c5;
}

.btn,
.action-button,
.cta-button,
.tab-link,
.btn-delete,
button.btn,
a.btn,
input[type=submit].btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 55%), linear-gradient(135deg, #101521, #0c0f18);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn:hover,
.action-button:hover,
.cta-button:hover,
.tab-link:hover,
.btn-delete:hover,
.btn:focus,
.action-button:focus,
.cta-button:focus,
.tab-link:focus,
.btn-delete:focus {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.05);
    outline: none;
}
.btn:focus,
.action-button:focus,
.cta-button:focus,
.tab-link:focus,
.btn-delete:focus {
    box-shadow: 0 0 0 2px rgba(126, 243, 255, 0.35), 0 12px 26px rgba(0, 0, 0, 0.35);
}
.btn--primary,
.cta-button {
    background: linear-gradient(135deg, #1a2030, #131927);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn--secondary,
.action-button {
    background: linear-gradient(135deg, #0c1324, #0a0d16);
}
.btn--danger,
.action-button.danger,
.btn-delete {
    background: linear-gradient(135deg, #2c0f18, #3d0f1d);
    border-color: rgba(217, 140, 107, 0.5);
    color: #fff;
}
.btn--ghost,
.tab-link {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-main);
    box-shadow: none;
}
.btn--ghost:hover,
.tab-link:hover {
    box-shadow: none;
    filter: brightness(1.05);
}
.tab-link {
    border-bottom: none;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.78rem;
}
.tab-link.active {
    background: linear-gradient(140deg, #2563eb, #7c3aed);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}
.btn--small,
.action-button.small,
.cta-button.small,
.tab-link.small {
    padding: 0.3rem 0.75rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}
.btn--block {
    width: 100%;
}
.btn--flat {
    box-shadow: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 22px;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}
.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.intro-panel {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}
.intro-panel h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.intro-standalone {
    padding: 0;
    margin: 0 0 1.5rem;
    border: none;
    background: transparent;
    box-shadow: none;
}
.intro-lead {
    margin: 0 0 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.intro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.intro-badges span {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.events-section{
    width: min(900px, 100%);
    margin: 0 auto;
    padding: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.event-stack{
    display:flex;
    flex-direction:column;
    gap:12px;
}
.event-row{
    padding:12px 14px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(7, 9, 16, 0.92), rgba(10, 14, 24, 0.84));
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.event-headline{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:0.75rem;
    flex-wrap:wrap;
    margin-bottom:0.35rem;
}
.event-headline h2{
    margin:0;
    font-size:1.1rem;
}
.event-date-chip{
    padding:0.3rem 0.7rem;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    font-size:0.85rem;
    color:var(--text-main);
}
.event-address{
    margin:0 0 0.35rem;
    color:var(--text-muted);
}
.event-desc{
    margin:0 0 0.5rem;
    color:var(--text-main);
}
.event-media{
    margin-top:0.35rem;
    display:flex;
    justify-content:center;
}
.event-thumb{
    width: calc(100% - 10px);
    border-radius:12px;
    border:1px solid rgba(255,255,255,0.08);
    box-shadow:0 8px 18px rgba(0,0,0,0.18);
}
.event-actions{
    display:flex;
    flex-wrap:wrap;
    gap:0.5rem;
    margin-top:0.6rem;
}
.btn--compact{
    padding:0.45rem 0.9rem;
    font-size:0.88rem;
    letter-spacing: 0.05em;
}
.about-section{
    width:min(1100px,100%);
    margin:0 auto 1.5rem;
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.artist-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:14px;
}
.artist-card{
    display:flex;
    flex-direction:column;
    gap:0.65rem;
    padding:12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(7, 9, 16, 0.92), rgba(10, 14, 24, 0.84));
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.artist-photo{
    width:100%;
    height:300px;
    border-radius:10px;
    object-fit:cover;
}
.artist-meta p{
    margin:0;
    color:var(--text-muted);
}
.blog-section{
    width:min(1000px,100%);
    margin:0 auto 1.5rem;
    display:flex;
    flex-direction:column;
    gap:1rem;
}
.blog-stack{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.blog-preview{
    padding:10px 12px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.08);
    background: linear-gradient(135deg, rgba(7, 9, 16, 0.92), rgba(10, 14, 24, 0.84));
    box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.blog-header{
    display:flex;
    justify-content:space-between;
    gap:0.75rem;
    flex-wrap:wrap;
    align-items:flex-start;
}
.blog-date-chip{
    padding:0.25rem 0.65rem;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.08);
    background:rgba(255,255,255,0.03);
    font-size:0.8rem;
    color:var(--text-main);
}
.blog-comments{
    margin-top:0.6rem;
    display:flex;
    flex-direction:column;
    gap:0.5rem;
}
.blog-comments h3{
    margin:0;
}
.comment-toggle{
    align-self:flex-start;
}
.comment-collapse[hidden]{
    display:none;
}
.intro-free {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,0.8fr);
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: end;
    padding: 0;
    margin: 0 0 2rem;
}
.intro-free .intro-meta {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: flex-start;
}
.intro-accent-line {
    width: 100%;
    max-width: 320px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(143,179,255,0.65), rgba(255,255,255,0.06));
    border-radius: 999px;
}
.intro-badges-column {
    flex-direction: column;
    align-items: flex-start;
}
@media (max-width: 820px) {
    .intro-free {
        grid-template-columns: 1fr;
    }
    .intro-free .intro-meta {
        align-items: flex-start;
    }
}
.intro-visual {
    display: flex;
    justify-content: flex-end;
}
.intro-visual img {
    width: min(240px, 100%);
    filter: drop-shadow(0 10px 26px rgba(0,0,0,0.4));
}

.info-card {
    position: relative;
    background: linear-gradient(125deg, rgba(7, 9, 16, 0.92), rgba(12, 15, 28, 0.86));
    padding: 26px 24px;
    border-radius: 18px;
    border: 1px solid rgba(94, 234, 212, 0.14);
    box-shadow: 0 18px 40px rgba(0,0,0,.38), 0 0 0 1px rgba(127, 183, 255, 0.08);
    text-align: left;
    transition: transform .28s, box-shadow .28s, border-color .28s;
    hyphens: auto;
    overflow: hidden;
}
.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(94, 234, 212, 0.22);
    border-color: rgba(94, 234, 212, 0.22);
}
.info-card h2 {
    margin: 0 0 10px;
    font-size: 1.35em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.info-card p {
    margin: 0 0 18px;
    color: var(--text-muted);
}
.card-link {
    color: var(--accent-secondary);
    font-weight: bold;
    text-decoration: none;
}
.card-link:hover {
    text-decoration: underline;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
}
.gallery-item {
    margin: 10px;
}
.gallery-item img {
    max-width: 100%;
    height: auto;
}

.blog-post {
    border-bottom: 1px solid #3b3b3b;
    padding: 14px 0;
}
.blog-title {
    color: #fff;
}
.comments {
    margin-left: 20px;
    background-color: #121214;
    padding: 12px;
}

.cookie-banner {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 600px;
    background-color: rgba(0,0,0,.85);
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    z-index: 1000;
}
.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}
.cookie-banner button {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 18px;
    margin-left: 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background .3s ease;
}
.cookie-banner button:hover {
    background-color: #c92d39;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0);    }
}
.fade-in          { opacity: 0; animation: fadeIn .9s forwards; }
.fade-in.delay    { animation-delay: .4s;  }
.fade-in.delay2   { animation-delay: .8s;  }
.fade-in.delay3   { animation-delay: 1.2s; }
.fade-in.delay4   { animation-delay: 1.6s; }
.fade-in.delay5   { animation-delay: 2s;   }
.fade-in.delay6   { animation-delay: 2.4s; }
.fade-in.delay7   { animation-delay: 2.8s; }

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 30px;
    padding: 40px 0 100px;
}
.member-card {
    background-color: #1a1a1e;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,.5);
    transition: transform .3s, box-shadow .3s;
}
.member-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 14px rgba(0,0,0,.6);
}
.member-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.narrow-card {
    max-width: 400px;
    margin: 0 auto;
}
.vertical-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 20px;
    align-items: center;
}
.vertical-cards .info-card {
    width: 70%;
    max-width: 21cm;
    background-color: var(--grey);
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,.5);
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    hyphens: auto;
}

.vertical-cards .info-card .event-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.center-text { text-align: center; }
.accent      { color: var(--accent); }
.post-meta   { display: block; font-size: .85rem; color: #999; margin-bottom: 1rem; }

.post-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 1.5rem;

    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -pre-wrap;
    white-space: -o-pre-wrap;
    word-wrap: break-word;
}

.post-actions { margin-bottom: 1.5rem; }
.post-actions .card-link,
.post-actions .action-button { margin-right: .5rem; }

.comments-section {
    border-top: 1px solid #333;
    padding-top: 1rem;
    margin-top: 1.5rem;
}
.comments-section h3 {
    margin-bottom: .75rem;
    color: var(--accent);
}

.comment {
    background-color: #1a1a1e;
    border-radius: 4px;
    padding: .75rem;
    margin-bottom: 1rem;
}
.comment-meta .comment-name {
    color: #fff;
    font-weight: bold;
}
.comment-body {
    font-size: .95rem;
    line-height: 1.4;
    color: #e0e0e0;
}

.comment-form {
    margin-top: 1.5rem;
    text-align: left;
}
.comment-form form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: .5rem;
    background: #0b0b0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: inherit;
}
.comment-form textarea { min-height: 120px;
                         max-width: 715px; }
.comment-form button.small {
    align-self: flex-start;
    padding: .5rem 1rem;
    font-size: .9rem;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
}

.error {
    color: var(--accent);
    text-align: center;
    margin-bottom: 1rem;
}

.post-images .row {
    display: grid;
    gap: 8px;
    margin: 1rem 0;
}
.post-images .row-2 { grid-template-columns: repeat(2,1fr); }
.post-images .row-3 { grid-template-columns: repeat(3,1fr); }

.post-images .generic-row.columns-1 { grid-template-columns: 1fr; }
.post-images .generic-row.columns-2 { grid-template-columns: repeat(2,1fr); }
.post-images .generic-row.columns-3 { grid-template-columns: repeat(3,1fr); }
.post-images .generic-row.columns-4 { grid-template-columns: repeat(2,1fr); }

.post-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
}

.blog-post-card {
    padding: 18px;
    background: #0f0f11;
    border: 1px solid #1f1f22;
    box-shadow: 0 12px 30px rgba(0,0,0,.28);
}
.blog-post-card .blog-title {
    text-align: center;
    margin-bottom: 6px;
}
.blog-post-card .blog-meta {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.blog-content {
    text-align: center;
    margin: 12px auto 10px;
    line-height: 1.7;
    color: #e2e2e2;
    max-width: 760px;
}
.blog-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
.blog-comments {
    margin-top: 18px;
    padding: 14px;
    background: #111115;
    border: 1px solid #1f1f22;
    border-radius: 8px;
}
.blog-comments h3 {
    margin: 0 0 10px 0;
    text-align: center;
    color: #fff;
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}
.comment-card {
    padding: 10px 12px;
    background: #0c0c0e;
    border: 1px solid #1a1a1d;
    border-radius: 6px;
}
.comment-meta {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.comment-text {
    margin: 0;
    color: #e2e2e2;
    text-align: left;
    line-height: 1.5;
}
.no-comments {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 10px 0;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comment-form .form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: .5rem;
    background: #0b0b0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
    font-family: inherit;
}
.comment-form textarea { min-height: 120px; }
.comment-form button.small {
    align-self: flex-start;
    padding: .5rem 1rem;
    font-size: .9rem;
}
.captcha-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: .9rem;
}
.captcha-label {
    color: #e2e2e2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-images {
    display: grid;
    gap: 12px;
    margin: 1rem 0;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1080px;
    justify-items: stretch;
}
.blog-images.grid-1 { grid-template-columns: 1fr; }
.blog-images.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-images.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-image-link { display: block; }
.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.35);
    cursor: zoom-in;
}
.blog-images.grid-1 .blog-image {
    max-width: 1080px;
    height: 360px;
}
@media (max-width: 768px) {
    .blog-images.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .blog-images.grid-2,
    .blog-images.grid-3 { grid-template-columns: 1fr; }
    .blog-image { height: 200px; }
}

@media (max-width: 820px) {
    .intro-panel {
        grid-template-columns: 1fr;
    }
    .intro-visual {
        justify-content: flex-start;
    }
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2000;
}
.lightbox-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.55);
    background: #000;
}
.lightbox-dialog{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(1200px, 100%);
}
.lightbox-figure{
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.lightbox-caption{
    color: var(--text-muted);
    text-align: center;
    max-width: min(900px, 90vw);
    font-size: 0.98rem;
    line-height: 1.4;
}
.lightbox-nav{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    user-select: none;
}
.lightbox-prev{ left: 14px; }
.lightbox-next{ right: 14px; }
.lightbox-nav:hover{
    background: rgba(0,0,0,0.75);
    border-color: rgba(255,255,255,0.22);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid #444;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .post-images .row-3 { grid-template-columns: repeat(2,1fr) !important; }
    .post-images img    { max-width: calc(50% - 8px); flex: 1 1 calc(50% - 8px); }
}
@media (max-width: 480px) {
    .post-images .row-2,
    .post-images .row-3,
    .post-images .generic-row { grid-template-columns: 1fr !important; }
    .post-images img { max-width: 100%; flex: 1 1 100%; }
}

.polaroid-card {
    margin: 0 auto;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    background-color: var(--grey);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,.5);
    overflow: hidden;
}

.polaroid-card .polaroid-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: url('/static/images/corkboard.jpg') center/cover no-repeat;
    border: 2px solid #ddd;
    box-shadow: inset 0 0 10px rgba(0,0,0,.1);
    overflow: hidden;
}

.polaroid-item {
    position: absolute;
    width: 150px;
    padding: 10px 10px 30px;
    background: #fff;
    box-shadow: 2px 4px 6px rgba(0,0,0,.2);
    transform-origin: center;
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}
.polaroid-item img {
    width: 100%;
    height: auto;
    display: block;
}
.polaroid-item .caption {
    text-align: center;
    margin-top: 8px;
    font-size: .85rem;
    color: #555;
}
.polaroid-item:hover {
    transform: translate(-50%,-50%) scale(1.3) rotate(0deg);
    box-shadow: 4px 8px 12px rgba(0,0,0,.3);
    z-index: 10;
}

#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity .4s ease;
}
#lightbox.visible {
    display: flex;
    opacity: 1;
}
#lightbox img {
    max-width: 80%;
    max-height: 80%;
    border: 5px solid #fff;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,.5);
    transform: scale(0);
    transition: transform .4s ease;
}
#lightbox.visible img {
    transform: scale(.8);
}
#lightbox .caption {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
}

@media (max-width: 768px) {
    .vertical-cards .info-card {
        width: 90%;
        max-width: none;
    }
}

.log-cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.log-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--grey);
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,.5);
}
.log-card h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 15px;
}

.log-window {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    background-color: var(--grey);
    color: #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    height: 400px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    text-align: left;
}

.tabs li {
    color: #aaa;
    cursor: pointer;
    user-select: none;
}
.tabs li.active {
    color: #fff;
    border-bottom: 3px solid var(--accent);
}
.tab-content            { display: none; }
.tab-content.visible    { display: block; }

footer.site-footer {
    flex-shrink: 0;
}

body {
    padding-bottom: 0;
}

footer.site-footer {
    background: linear-gradient(180deg, rgba(5, 5, 9, 0.95), rgba(5, 5, 9, 0.75));
    color: var(--text-main, #f5f6ff);
    padding: 60px 20px 40px;
    box-sizing: border-box;
    border-top: 1px solid var(--border-soft, rgba(255,255,255,0.08));
    box-shadow: 0 -20px 35px rgba(0, 0, 0, 0.45);
}

footer.site-footer .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand,
.footer-about,
.footer-links,
.footer-social {
    flex: 1 1 200px;
}

.footer-brand .footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    display: block;
}

.footer-about h3,
.footer-links h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
    color: var(--accent-secondary, #33f6ff);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-about p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-muted, #8e94af);
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-main, #f5f6ff);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent, #ff1361);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.footer-social a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft, rgba(255,255,255,0.08));
    transition: transform 0.2s, border-color 0.2s;
}

.footer-social a:hover,
.footer-social a:focus {
    transform: translateY(-2px);
    border-color: var(--accent, #ff1361);
}

.footer-social img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

footer.site-footer .footer-bottom {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--accent, #ff1361);
    text-decoration: none;
    margin: 0 6px;
    font-size: 0.85rem;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer.site-footer .footer-top {
        justify-content: center;
        text-align: center;
    }
    .footer-brand,
    .footer-about,
    .footer-links,
    .footer-social {
        flex: 1 1 100%;
        margin: 0 auto;
    }
    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }
}

header nav {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
    padding: 0 clamp(0.75rem, 3vw, 2rem);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

header nav.nav--hidden  { transform: translateY(-100%); }
header nav.nav--visible { transform: translateY(0); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 10px clamp(0.75rem, 3vw, 1.6rem);
    position: relative;
    z-index: 100;
    width: min(1200px, 100%);
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(120deg, rgba(7, 9, 14, 0.94), rgba(10, 13, 20, 0.88));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main, #fff);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 1rem;
}

.logo-mark {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background:
      radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.2), transparent 45%),
      radial-gradient(circle at 70% 70%, rgba(0, 0, 0, 0.3), transparent 55%),
      linear-gradient(145deg, rgba(18, 22, 32, 0.95), rgba(8, 10, 16, 0.9));
    display: grid;
    place-items: center;
    box-shadow:
      0 10px 22px rgba(0, 0, 0, 0.5),
      inset 0 2px 6px rgba(255, 255, 255, 0.08),
      inset 0 -4px 8px rgba(0, 0, 0, 0.35);
}
.logo-mark img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.35));
    backface-visibility: hidden;
    transform: translateZ(0);
}
.logo-word {
    color: inherit;
    white-space: nowrap;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(126, 243, 255, 0.18);
    color: #fff;
    font-size: 1.4em;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.nav-toggle:hover { transform: scale(1.05); border-color: rgba(139, 123, 255, 0.35); background: rgba(255,255,255,0.05); }

#nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 1.25rem);
}

#nav-menu li a {
    color: var(--text-main, #fff);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    transition: color 0.2s, opacity 0.2s;
}
#nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: linear-gradient(120deg, var(--accent), var(--accent-secondary));
    transition: width 0.25s ease;
    opacity: 0.8;
}
#nav-menu li a:hover,
#nav-menu li a:focus {
    color: var(--accent, #7ef3ff);
    opacity: 1;
}
#nav-menu li a:hover::after,
#nav-menu li a:focus::after {
    width: 100%;
}

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

    #nav-menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--panel, rgba(7, 9, 16, 0.92));
        border-radius: 14px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease-out;
        flex-direction: column;
        padding: 0;
        margin: 0;
        overflow: hidden;
        z-index: 99;
        border: 1px solid rgba(126, 243, 255, 0.16);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }

    #nav-menu.active { transform: scaleY(1); }

    #nav-menu li       { margin: 0; width: 100%; }
    #nav-menu li a {
        display: block;
        width: 100%;
        padding: 14px 18px;
        text-align: center;
    }
    #nav-menu li a:hover,
    #nav-menu li a:focus {
        color: var(--accent, #7ef3ff);
        background: rgba(255, 255, 255, 0.04);
    }
}

.hidden { display: none !important; }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.action-button.danger { background: #c03; }
.action-button.danger:hover { background: #a02; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-2px); }
  40%,80% { transform: translateX(2px); }
}
.table-wrapper {
  overflow-x: auto;
  margin: 0 auto;
  max-width: 1200px;
}
.tab-nav {
  display: flex;
  gap: 4px;
  margin: 0 0 -1px 0;
}
.tab-content {
  display: none;
}
.tab-content.show {
  display: block;
}

.download-table {
  width: 100%;
  border-collapse: collapse;
}
.download-table thead {
  background: #16202d;
}
.download-table th,
.download-table td {
  padding: .65rem 1rem;
  text-align: left;
}
.download-table th {
  color: #7ad1ff;
  font-weight: 600;
  border-bottom: 1px solid #023;
}
.download-table tbody tr:nth-child(odd) {
  background: #111820;
}
.download-table tbody tr:hover {
  background: #182332;
}
.center {
  text-align: center;
}

.download-table .button-row {
  flex-wrap: nowrap;
  gap: .4rem;
  justify-content: center;
}
.action-button.small,
.cta-button.small {
  padding: .35rem 1rem;
  font-size: .85rem;
}

.upload-table textarea {
  height: 40px;
}
.upload-form-row input[type=file],
.upload-form-row textarea {
  width: 100%;
  background: #0b0b0d;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  padding: .45rem;
  font-family: inherit;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.modal-content {
  background: #0b0b0d;
  border: 2px solid #045;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 600px;
  width: 96%;
  box-shadow: 0 0 18px rgba(0,0,0,0.9);
}
.modal-content h2 {
  margin-top: 0;
}
.modal .form-flex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.modal .grow {
  flex: 1 1 260px;
}
.modal textarea,
.modal input[type=file] {
  width: 100%;
  background: #0b0b0d;
  border: 1px solid #333;
  border-radius: 4px;
  color: #e0e0e0;
  padding: .45rem;
  font-family: inherit;
}
.modal textarea {
  resize: vertical;
  min-height: 80px;
}

@media (max-width: 768px) {
  .download-table th,
  .download-table td {
    padding: .55rem .7rem;
    font-size: .95rem;
  }
}

@media (max-width: 600px) {

  .download-table thead {
    display: none;
  }

  .download-table,
  .download-table tbody,
  .download-table tr,
  .download-table td {
    display: block;
    width: 100%;
  }

  .download-table tr {
    margin-bottom: 1.3rem;
    border: 1px solid #023;
    border-radius: 6px;
    overflow: hidden;
  }

  .download-table td {
    padding: 12px 14px 12px 50%;
    position: relative;
    border: none;
  }
  .download-table td::before {
    content: attr(data-label);
    position: absolute;
    top: 0;
    left: 14px;
    width: 45%;
    padding: 12px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #b7b7b7;
  }

  .download-table .button-row {
    width: 100% !important;
    justify-content: flex-start !important;
    margin-top: 8px;
  }
  .download-table .center {
    text-align: left !important;
  }
}

@media (max-width: 600px) {

  #tab-upload .upload-table,
  #tab-upload .upload-table tbody,
  #tab-upload .upload-table tr,
  #tab-upload .upload-table td {
    display: block;
    width: 100%;
  }

  #tab-upload .upload-table td::before {
    content: none;
  }

  #tab-upload .upload-form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem;
    background: #111820;
    border: 1px solid #023;
    border-radius: 6px;
  }

  #tab-upload .upload-form-row input[type="file"],
  #tab-upload .upload-form-row textarea {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    font-size: 1rem;
    background: #0b0b0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #e0e0e0;
  }

  #tab-upload .upload-form-row textarea {
    min-height: 100px;
    resize: vertical;
  }

  #tab-upload .upload-form-row .button-row {
    justify-content: flex-start !important;
    margin-top: 0.5rem;
  }
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.download-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--grey);
    color: inherit;
    font-family: inherit;
    box-shadow: 0 3px 8px rgba(0,0,0,0.5);
    border-radius: 8px;
    overflow: hidden;
}

.download-table thead {
    background-color: rgba(0,0,0,0.35);
}
.download-table th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 2px solid var(--accent);
}

.download-table td {
    padding: 14px;
    border-bottom: 1px solid #2a2a2e;
}

.download-table tbody tr:nth-child(odd) {
    background-color: #18181c;
}
@media (hover:hover) {
    .download-table tbody tr:hover {
        background-color: #202024;
    }
}

.action-cell {
    text-align: right;
    white-space: nowrap;
}
.button-row {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
}
.action-button {
    display: inline-block;
    padding: .45rem 1rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

@media (max-width: 600px) {

    .table-wrapper,
    .download-table,
    .download-table tbody {
        background-color: transparent !important;
    }

    .download-table thead {
        display: none;
    }

    .download-table,
    .download-table tbody,
    .download-table tr,
    .download-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        background-color: transparent;
    }

    .download-table tr {
        margin-bottom: 1.3rem;
        background-color: #18181c;
        border: 1px solid #2a2a2e;
        border-radius: 6px;
        overflow: hidden;
    }

    .download-table td {
        position: relative;
        padding: 12px 14px 12px 40%;
        border: none;
        white-space: normal !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        background-color: transparent;
    }
    .download-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 0;
        left: 14px;
        width: 35%;
        padding: 12px 0;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #b7b7b7;
        box-sizing: border-box;
    }

    .download-table .button-row {
        width: 100% !important;
        justify-content: flex-start !important;
        margin-top: 8px;
        margin-bottom: 1rem;
    }
    .download-table .action-cell {
        text-align: left !important;
        padding-bottom: 0 !important;
    }
}

:root{
  --gap: 8px;
}

.gallery-hero{
  text-align:center;
  margin: 1.5rem auto 1rem;
}
.gallery-subline{
  color: var(--text-muted);
  margin: 0 auto 1.5rem;
}

.gallery-grid{
  display:grid;
  gap:var(--gap);
  margin:0 auto 3rem;
  padding:0 var(--gap);
  max-width:1100px;
}

@media (min-width:1200px){ .gallery-grid{ grid-template-columns:repeat(5,1fr);} }
@media (min-width:900px)  and (max-width:1199px){ .gallery-grid{ grid-template-columns:repeat(4,1fr);} }
@media (min-width:600px)  and (max-width:899px){  .gallery-grid{ grid-template-columns:repeat(3,1fr);} }

@media (max-width:599px){ .gallery-grid{ grid-template-columns:repeat(2,1fr);} }

.gallery-item{
  position:relative;
  aspect-ratio:1/1;
  overflow:hidden;
  cursor:zoom-in;
  border-radius:6px;
  box-shadow:0 2px 6px rgba(0,0,0,.35);
  transition:transform .2s;
}
.gallery-item:hover{transform:scale(1.03);}

.gallery-item img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.gallery-item figcaption{
  position:absolute;
  inset:auto 8px 8px 8px;
  background:rgba(0,0,0,0.55);
  color:#fff;
  padding:6px 8px;
  border-radius:4px;
  font-size:0.9rem;
  line-height:1.4;
  backdrop-filter: blur(2px);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-areas: "nav content";
    gap: 1.5rem;
    margin: 1rem auto 2rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--content-gutter);
    align-items: start;
  }
  .admin-sidebar-toggle {
    display: none;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .admin-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .admin-nav-title {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .admin-page-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }
  .admin-breadcrumb {
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  .admin-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
@media (max-width: 860px) {
  .admin-shell {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 clamp(0.75rem, 4vw, 1.25rem);
    margin-top: 0.5rem;
  }
  .admin-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Mobile: Sidebar als Overlay-Panel, Content ausgeblendet wenn offen */
  .admin-sidebar {
    position: fixed;
    top: calc(var(--nav-height) + 12px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(420px, 92vw);
    max-height: 78vh;
    transform: translateY(-8px);
    display: none;
    border-radius: 1rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.55);
    overflow-y: auto;
    z-index: 1001;
  }
  .admin-shell.sidebar-open .admin-sidebar {
    display: block;
    transform: translateY(0);
  }
  .admin-sidebar-backdrop {
    display: block;

  }
  .admin-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .admin-shell.sidebar-open .admin-content {
    display: none;
  }
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 998;
}
.admin-sidebar-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}
.admin-sidebar {
  background: linear-gradient(160deg, #0f172a, #111b2f);
  color: #f3f6ff;
  border-radius: 1.2rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
  position: sticky;
  top: 1rem;
  height: fit-content;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  width: 100%;
  z-index: 1001;
  grid-area: nav;
}

  .sidebar-heading {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
    opacity: 0.75;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.95rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
  }

  .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
  }

  .badge-unread {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    background: #ef4444;
    color: #fff;
    font-weight: 600;
  }

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    grid-area: content;
  }
  .admin-content > * { width: 100%; }

  .admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    width: 100%;
  }

.message-list-card {
    max-width: 95%;
    margin: 0 auto;
    overflow-x: auto;
  }
  .message-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .message-pill {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  .message-pill span:first-child {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rock-muted, #8f95ad);
  }
  .message-pill strong {
    font-size: 1.7rem;
    color: var(--text-main);
  }
  .messages-toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: center;
  }
  .message-search {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
  }
  .message-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 0.82rem;
  }
  .message-filters {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .message-filter-button {
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.04);
    color: var(--text-main);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, border 0.15s ease;
  }
  .message-filter-button-active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: rgba(255,255,255,0.35);
  }
.messages-shell {
    width: 100%;
  }
  .messages-list-card {
    border-radius: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: rgba(5,7,17,0.9);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 640px;
  }
  .messages-list-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .messages-list-header h2 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted, #9aa0b8);
  }
  .message-counter-badge {
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(124,58,237,0.2);
    color: #d9d6ff;
  }
  .messages-list {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow-y: auto;
  }
  .message-list-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted, #9aa0b8);
  }
  .message-item {
    display: block;
    border-radius: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.01);
    transition: border 0.15s ease, background 0.15s ease;
  }
  .message-item:hover,
  .message-item:focus {
    border-color: rgba(124,58,237,0.5);
    background: rgba(124,58,237,0.08);
  }
  .message-item-unread {
    border-left: 3px solid #7c3aed;
  }
  .message-item-active {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.65);
  }
  .message-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted, #9aa0b8);
  }
  .message-item-sender {
    font-weight: 600;
    color: var(--text-main);
  }
  .message-item-date {
    color: var(--text-muted, #9aa0b8);
  }
  .message-item-subject {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .message-item-snippet {
    font-size: 0.8rem;
    color: var(--text-muted, #9aa0b8);
    margin-top: 0.25rem;
  }
  .message-item-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-muted, #9aa0b8);
  }
  .message-item-status span {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(124,58,237,0.18);
    color: #d6d3f8;
    font-weight: 600;
  }
  .message-detail-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    background: linear-gradient(140deg, rgba(10,13,25,0.95), rgba(19,23,39,0.92));
    min-height: 520px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
  }
  .message-detail-empty {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #9aa0b8);
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
  }
  .message-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .message-detail-header h2 {
    margin: 0;
    font-size: 1.25rem;
  }
  .message-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .message-meta-entry {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }
  .message-meta-entry span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted, #9aa0b8);
  }
  .message-meta-entry strong {
    font-size: 0.95rem;
    color: var(--text-main);
    word-break: break-word;
  }
  .message-body-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
    color: #f6f6f6;
    white-space: pre-wrap;
    min-height: 200px;
  }
  .message-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .message-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 6, 12, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 1rem;
  }
  .message-modal-backdrop.active {
    display: flex;
  }
  .message-modal {
    width: min(800px, 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(12,15,28,0.96), rgba(24,28,47,0.92));
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .message-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  .message-modal-header h2 {
    margin: 0;
  }
  .message-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
  }
  @media (max-width: 900px) {
    .messages-shell {
      grid-template-columns: 1fr;
    }
    .messages-list-card {
      max-height: unset;
    }
  }

.contact-shell{
    width:min(960px,100%);
    margin:1.5rem auto 2.5rem;
    padding:clamp(1.25rem,3vw,2rem);
    box-sizing:border-box;
    position:relative;
    display:grid;
    gap:1.5rem;
    border-radius:20px;
    border:1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(7, 10, 16, 0.94), rgba(10, 14, 24, 0.86));
    box-shadow:0 20px 45px rgba(0,0,0,.32);
    overflow:hidden;
}
.contact-shell::before{
    content:"";
    position:absolute;
    inset:-40% 10% auto;
    height:180px;
    background:radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity:0.7;
    pointer-events:none;
}
.contact-shell::after{
    content:"";
    position:absolute;
    inset:auto -30% -40%;
    height:200px;
    background:radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity:0.6;
    pointer-events:none;
}
.contact-shell .section-head{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:0.4rem;
}
.contact-shell .section-head .eyebrow{
    letter-spacing:0.2em;
    text-transform:uppercase;
    font-size:0.72rem;
    color:var(--accent-secondary);
    margin:0;
}
.contact-shell .section-head h1{
    margin:0;
    font-size:clamp(1.6rem,3vw,2rem);
}
.contact-lead{
    margin:0;
    color:var(--text-muted);
    max-width:62ch;
}
.contact-grid{
    position:relative;
    z-index:1;
    display:grid;
    grid-template-columns: minmax(0,1.2fr) minmax(240px,0.8fr);
    gap:clamp(1rem,3vw,1.8rem);
    align-items:start;
}
.contact-form{
    display:grid;
    gap:1rem;
}
.contact-row{
    display:flex;
    flex-direction:column;
    gap:0.35rem;
}
.contact-row label{
    font-weight:700;
    color:var(--text-main);
    letter-spacing:0.06em;
    text-transform:uppercase;
    font-size:0.8rem;
}
.contact-row input[type=text],
.contact-row input[type=email],
.contact-row textarea{
    width:100%;
    padding:0.9em 1em;
    border:1px solid rgba(255, 255, 255, 0.1);
    border-radius:12px;
    box-sizing:border-box;
    font:inherit;
    background:rgba(5, 7, 12, 0.9);
    color:var(--text-main);
    transition:border-color .2s ease, box-shadow .2s ease;
}
.contact-row textarea{min-height:9.5em;resize:vertical;}
.contact-row input:focus,
.contact-row textarea:focus{
    outline:none;
    border-color:rgba(143, 179, 255, 0.55);
    box-shadow:0 0 0 2px rgba(143, 179, 255, 0.18);
}
.form-vertical{
    display:flex;
    flex-direction:column;
    gap:0.85rem;
}
.form-vertical label{
    display:flex;
    flex-direction:column;
    gap:0.35rem;
    font-weight:700;
    color:var(--text-main);
    letter-spacing:0.04em;
}
.form-vertical input{
    width:100%;
    padding:0.85em 1em;
    border:1px solid rgba(255, 255, 255, 0.1);
    border-radius:10px;
    background:rgba(5, 7, 12, 0.9);
    color:var(--text-main);
    font:inherit;
}
.form-vertical input:focus{
    outline:none;
    border-color:rgba(143, 179, 255, 0.55);
    box-shadow:0 0 0 2px rgba(143, 179, 255, 0.18);
}
.auth-panel{
    backdrop-filter: blur(8px);
}
.auth-tabs{
    display:flex;
    flex-direction:column;
    gap:0.75rem;
}
.auth-tab-header{
    display:flex;
    gap:0.5rem;
    flex-wrap:wrap;
}
.auth-tab-panel{
    display:none;
}
.auth-tab-panel.active{
    display:block;
}
.auth-message{
    margin:12px 0 0;
    text-align:center;
}
.auth-message.error{
    color:#ffd7de;
}
.contact-actions{
    display:flex;
    flex-direction:column;
    gap:.65rem;
}
.contact-note{
    margin:0;
    color:var(--text-muted);
    font-size:.9rem;
}
.contact-btn{
    width:100%;
}
.contact-aside{
    border-left:1px solid rgba(255, 255, 255, 0.08);
    padding-left:clamp(1rem,2vw,1.5rem);
    display:flex;
    flex-direction:column;
    gap:0.75rem;
}
.contact-aside .brand-chip{
    display:inline-flex;
    align-items:center;
    gap:0.65rem;
    padding:0.6rem 0.9rem;
    border-radius:12px;
    border:1px solid rgba(255, 255, 255, 0.12);
    background:rgba(255,255,255,0.02);
    width:max-content;
}
.contact-aside .brand-chip img{
    width:34px;
    height:34px;
    object-fit:contain;
}
.contact-aside .aside-text{
    margin:0;
    color:var(--text-muted);
    line-height:1.6;
}
.contact-aside .aside-text strong{
    color:var(--text-main);
}
.success-message{
    background:rgba(44, 126, 80, 0.22);
    border:1px solid rgba(86, 214, 140, 0.5);
    padding:.75em;
    border-radius:10px;
    margin:0;
    color:#b7ffd5;
}
.error-message{
    background:rgba(120, 32, 48, 0.28);
    border:1px solid rgba(244, 91, 132, 0.55);
    padding:.75em;
    border-radius:10px;
    margin:0;
    color:#ffd7de;
}
.hp{position:absolute;left:-9999px;top:-9999px;height:0;width:0;overflow:hidden}
@media (max-width:840px){
    .contact-grid{
        grid-template-columns:1fr;
    }
    .contact-aside{
        border-left:none;
        padding-left:0;
        border-top:1px solid rgba(126, 243, 255, 0.18);
        padding-top:1rem;
    }
}
@media (max-width:520px){
    .contact-shell{
        margin:1rem;
    }
    .contact-aside .brand-chip{
        width:100%;
        justify-content:flex-start;
    }
}

:root{ --gap:8px; }

  .gallery-title{ text-align:center;margin:2rem 0 1rem;font-size:3rem;color:#fff; }

  .gallery-grid{ display:grid;gap:var(--gap);margin-bottom:3rem;padding:0 var(--gap); }
  @media (min-width:1200px){ .gallery-grid{grid-template-columns:repeat(5,1fr);} }
  @media (min-width:900px) and (max-width:1199px){ .gallery-grid{grid-template-columns:repeat(4,1fr);} }
  @media (min-width:600px) and (max-width:899px){ .gallery-grid{grid-template-columns:repeat(3,1fr);} }
  @media (max-width:599px){ .gallery-grid{grid-template-columns:repeat(2,1fr);} }

  .gallery-item{ position:relative; }
  .thumb{ aspect-ratio:1/1;overflow:hidden;cursor:pointer;border-radius:6px;
          box-shadow:0 2px 6px rgba(0,0,0,.35);transition:transform .2s; }
  .thumb:hover{ transform:scale(1.03); }
  .thumb img{ position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center; }

  .gallery-item figcaption{ display:none; }

  .lightbox{ position:fixed;inset:0;background:rgba(0,0,0,.92);
             display:none;flex-direction:column;align-items:center;justify-content:center;
             z-index:2000;padding:1rem; }
  .lightbox.visible{ display:flex; }
  .lightbox img{ max-width:92%;max-height:92%;border:4px solid #fff;
                 border-radius:4px;box-shadow:0 0 24px rgba(0,0,0,.6);
                 float:none;display:block; }
  .lightbox p{ margin-top:1.2rem;
               color:#fff;text-align:center;font-size:1.05rem;
               max-width:90%;line-height:1.4;word-wrap:break-word; }

:root {
    --rock-black: #03030b;
    --rock-panel: rgba(7, 9, 18, 0.94);
    --rock-highlight: #6c78ff;
    --rock-highlight-secondary: #b7c5ff;
    --rock-muted: #8f95ad;
    --rock-border: rgba(255, 255, 255, 0.05);
    --rock-shadow: 0 25px 35px rgba(0, 0, 0, 0.6);
  }

  .admin-overview-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.75rem;
    background: radial-gradient(circle at top, rgba(58,74,180,0.35), rgba(10,12,24,0.9));
    color: #e5e7eb;
    border: 1px solid rgba(79, 84, 145, 0.4);
  }

  .admin-overview-title {
    font-size: 1.6rem;
    margin: 0;
    color: #9cadff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .overview-subline {
    margin: 0.25rem 0 0;
    color: rgba(229, 231, 235, 0.72);
    font-size: 0.95rem;
  }

  .overview-stats {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
  }

  .overview-stats .stat-pill {
    padding: 0.2rem 0.65rem;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #111;
  }

  .overview-links-wrap {
    border: 1px solid rgba(130, 146, 189, 0.45);
    border-radius: 1.2rem;
    padding: 1.25rem;
    background: rgba(6, 8, 18, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .overview-legend {
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(156, 163, 175, 0.6);
  }

  .overview-links {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.65rem;
  }

  .overview-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.95rem;
    border-radius: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    color: #f4f5ff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(165deg, rgba(255,255,255,0.18), rgba(255,255,255,0.05));
    box-shadow: 0 10px 18px rgba(3, 4, 11, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  }

  .overview-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(3, 4, 11, 0.55);
    border-color: rgba(99, 102, 241, 0.45);
  }

.payments-neo {
    background: linear-gradient(130deg, rgba(3, 4, 10, 0.96), rgba(15, 17, 28, 0.9));
    border-radius: 1.5rem;
    padding: 2rem;
    color: #f8f9ff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--rock-shadow);
}

.log-viewer {
    background: #0b0f1b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    color: #e5e9f5;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
}
.log-picker {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.log-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.log-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.log-modal.is-open {
    display: flex;
}
.log-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.log-modal__dialog {
    position: relative;
    background: #0c101d;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1rem;
    width: min(1100px, 92vw);
    max-height: 86vh;
    box-shadow: 0 22px 40px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
}
.log-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.log-modal__eyebrow {
    font-size: 0.8rem;
    color: var(--rock-muted, #9aa5b8);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.log-modal__close {
    background: none;
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
}
.log-modal__body {
    max-height: 70vh;
    min-height: 240px;
}

  .payments-neo::before,
  .payments-neo::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
  }

  .payments-neo::before {
    background: rgba(107, 120, 255, 0.3);
    top: -60px;
    left: -40px;
  }

  .payments-neo::after {
    background: rgba(115, 143, 190, 0.25);
    bottom: -80px;
    right: -40px;
  }

  .payments-inner {
    position: relative;
    z-index: 1;
  }

  .payments-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .payments-title h2 {
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    margin: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
  }

  .payments-title p {
    margin: 0.4rem 0 0;
    color: var(--rock-muted);
    max-width: 32ch;
  }
  .payments-iban {
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    max-width: 32ch;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
  .iban-value strong {
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .payments-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .metric-chip {
    position: relative;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 1px solid var(--rock-border);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.45);
  }

  .metric-chip.open { color: var(--rock-highlight); }
  .metric-chip.paid { color: var(--rock-highlight-secondary); }

  .status-banner {
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rock-border);
    box-shadow: var(--rock-shadow);
  }

  .status-banner.success { color: #7bcfa8; }
  .status-banner.error { color: var(--rock-highlight); }

  .payments-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.4rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--rock-border);
    margin-bottom: 1.6rem;
  }

  .payments-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rock-muted);
  }

  .payments-form input {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 1rem;
  }

  .payments-table-wrapper {
    border-radius: 1.1rem;
    border: 1px solid var(--rock-border);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
  }

  table.payments-table {
    width: 100%;
    border-collapse: collapse;
    color: #f4f4ff;
  }

  table.payments-table thead {
    background: rgba(255, 255, 255, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
  }

  table.payments-table th,
  table.payments-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    font-variant-numeric: tabular-nums;
  }

  table.payments-table th:nth-child(1),
  table.payments-table td:nth-child(1) { width: 80px; }
  table.payments-table th:nth-child(2),
  table.payments-table td:nth-child(2) { width: 130px; }
  table.payments-table th:nth-child(3),
  table.payments-table td:nth-child(3) { width: 120px; }
  table.payments-table th:nth-child(4),
  table.payments-table td:nth-child(4) { width: 120px; }
  table.payments-table th:last-child,
  table.payments-table td:last-child { width: 170px; }

  .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .status-badge.paid { color: #7bcfa8; }
  .status-badge.open { color: #ff9c6b; }

  .payments-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .payments-note {
    font-size: 0.85rem;
    color: var(--rock-muted);
  }

  @media (max-width: 720px) {
    .payments-neo { padding: 1.5rem; }

    table.payments-table thead { display: none; }

    table.payments-table tbody tr {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.4rem 0.9rem;
      padding: 0.7rem 0.8rem;
    }

    table.payments-table tbody td {
      padding: 0;
      font-size: 0.85rem;
    }

    table.payments-table tbody td::before {
      content: attr(data-label);
      display: block;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-size: 0.65rem;
      color: var(--rock-muted);
      margin-bottom: 0.2rem;
    }
  }

  .legal-hero {
      text-align:center;
      margin-bottom:1.5rem;
  }
  .legal-grid {
      display:grid;
      gap:1.5rem;
      max-width:1100px;
      margin:0 auto 2.5rem;
  }
  .legal-card {
      text-align:left;
      padding:18px 20px;
      background:#0f0f11;
      border:1px solid #1f1f22;
      hyphens:auto;
      -webkit-hyphens:auto;
      -ms-hyphens:auto;
      overflow-wrap:break-word;
      word-wrap:break-word;
      word-break:break-word;
  }
  .legal-card h2,
  .legal-card h3,
  .legal-card p,
  .legal-card ul,
  .legal-card ol,
  .legal-card li{
      hyphens:auto;
      -webkit-hyphens:auto;
      -ms-hyphens:auto;
      overflow-wrap:break-word;
      word-wrap:break-word;
      word-break:break-word;
  }
  .legal-card h2{margin:1.2em 0 0.4em;}
  .legal-card h3{margin:1em 0 0.3em;color:var(--accent-secondary,#d565ff);}
  .legal-card p,
  .legal-card ul,
  .legal-card ol{line-height:1.6;color:#e3e3e3;}
  .legal-card ul,
  .legal-card ol{padding-left:1.4em;}
  .legal-list{padding-left:1.4em;margin:0 0 10px 0;color:#e3e3e3;}
  .legal-list li{margin-bottom:6px;}

  .hero-section p{
      hyphens:auto;
      -webkit-hyphens:auto;
      -ms-hyphens:auto;
      overflow-wrap:break-word;
      word-wrap:break-word;
      word-break:break-word;
  }

  .hero-section .accent{color:#fff!important;}

  .dse-full{display:inline;}
  .dse-mobile{display:none;}

  @media(max-width:900px){
      .legal-card{padding:16px;}
  }
  @media(max-width:600px){
      .dse-full{display:none;}
      .dse-mobile{display:inline;}
      .legal-card{padding:14px;}
  }
.settings-grid{
    display:grid;
    gap:1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width:900px;
}
.settings-card{
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:10px;
}
.settings-card h2{
    margin:0;
}
.settings-hint{
    margin:0;
    color:var(--text-muted);
    font-size:.95rem;
}
.settings-toggle{
    display:flex;
    align-items:center;
    gap:.5rem;
    padding:.5rem 0;
    font-weight:600;
}
.settings-grid-inline{
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap:8px;
}
.settings-grid-inline .radio-inline{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.5rem;
}
.settings-grid-inline .radio-inline input[type=radio]{
    margin-left:auto;
}
.settings-grid-inline label{
    font-weight:600;
    color:#fff;
}
.settings-grid-inline input{
    width:100%;
    margin-top:4px;
    padding:.5rem;
    border-radius:6px;
    border:1px solid #2c2c30;
    background:#0b0b0d;
    color:#e0e0e0;
}
.settings-flash{
    color:#4caf50;
}
.password-card {
    max-width: 520px;
    padding: 20px;
    margin-top: 0.5rem;
}
.password-form{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.password-form label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-weight:600;
    color:#fff;
}
.password-form input{
    width:100%;
    padding:.8em;
    border:1px solid #2c2c30;
    border-radius:6px;
    background:#0b0b0d;
    color:#e0e0e0;
}
.password-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:4px;
}

.admin-form-card{
    max-width:760px;
    margin:0 auto;
    padding:16px;
}
.admin-form-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px 18px;
}
.admin-form-grid.single{
    grid-template-columns:1fr;
}
.admin-field{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-weight:600;
    color:#fff;
}
.admin-field.full{
    grid-column:1 / -1;
}
.admin-field input,
.admin-field textarea{
    width:100%;
    padding:0.7rem 0.9rem;
    border:1px solid rgba(255, 255, 255, 0.12);
    border-radius:10px;
    background:rgba(0, 0, 0, 0.35);
    color:#f2f4f8;
    font-family:inherit;
    font-size:0.95rem;
}
.admin-field input[type="file"]{
    padding:0.5rem 0.7rem;
}
.admin-field textarea{
    min-height:120px;
    resize:vertical;
}
.admin-actions{
    grid-column:1 / -1;
    display:flex;
    gap:0.75rem;
    flex-wrap:wrap;
}
.admin-inline-form{
    display:flex;
    align-items:center;
    gap:0.6rem;
    flex-wrap:wrap;
}
.admin-inline-spaced{
    margin-top:6px;
}
.admin-input{
    min-width:180px;
    padding:0.55rem 0.75rem;
    border:1px solid rgba(255, 255, 255, 0.12);
    border-radius:10px;
    background:rgba(0, 0, 0, 0.35);
    color:#f2f4f8;
    font-family:inherit;
    font-size:0.9rem;
}
.admin-input[type="file"]{
    min-width:220px;
}
.admin-toggle{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:600;
}
.admin-helper{
    font-size:0.95rem;
    color:var(--text-muted);
}
.admin-content input[type="date"],
.admin-content input[type="time"]{
    color-scheme: dark;
    padding-right:2.2rem;
    background-repeat:no-repeat;
    background-position:right 0.7rem center;
    background-size:1rem;
}
.admin-content input[type="date"]::-webkit-calendar-picker-indicator,
.admin-content input[type="time"]::-webkit-calendar-picker-indicator{
    opacity:0;
    cursor:pointer;
}
.admin-content input[type="date"]{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1.5A2.5 2.5 0 0 1 22 6.5v13A2.5 2.5 0 0 1 19.5 22h-15A2.5 2.5 0 0 1 2 19.5v-13A2.5 2.5 0 0 1 4.5 4H6V3a1 1 0 0 1 1-1zm12.5 8h-15v9.5c0 .55.45 1 1 1h13c.55 0 1-.45 1-1V10zm-15-4.5v2.5h15V5.5a1 1 0 0 0-1-1h-1.5v1a1 1 0 1 1-2 0v-1H8v1a1 1 0 1 1-2 0v-1H4.5a1 1 0 0 0-1 1z'/></svg>");
}
.admin-content input[type="time"]{
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm1 3a1 1 0 0 1 1 1v3.59l2.3 2.3a1 1 0 0 1-1.4 1.42l-2.6-2.6A1 1 0 0 1 12 12V8a1 1 0 0 1 1-1z'/></svg>");
}
.admin-toggle-form .admin-helper{
    flex-basis:100%;
}
@media (max-width:720px){
    .admin-input{
        min-width:140px;
    }
}
.admin-preview{
    grid-column:1 / -1;
    display:flex;
    flex-direction:column;
    gap:0.5rem;
}
.admin-preview-label{
    color:var(--text-muted);
    font-size:0.9rem;
}
.admin-preview-image{
    max-height:200px;
    width:auto;
    border-radius:10px;
    border:1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width:720px){
    .admin-form-grid{
        grid-template-columns:1fr;
    }
}

/* Admin messages */
.messages-panel{
    padding:18px 20px;
    border-radius:20px;
    border:1px solid rgba(255, 255, 255, 0.08);
    background:linear-gradient(125deg, rgba(7, 9, 16, 0.92), rgba(10, 14, 24, 0.85));
    box-shadow:0 20px 45px rgba(0,0,0,0.34);
}
.messages-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;margin-bottom:12px;}
.messages-header h2{margin:0;}
.messages-hint{margin:4px 0 0 0;color:var(--text-muted);}
.messages-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.message-row{border:1px solid rgba(255, 255, 255, 0.08);border-radius:14px;padding:12px 14px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;background:rgba(7, 9, 16, 0.88);}
.message-row.is-new{border-color:rgba(143, 179, 255, 0.55);box-shadow:0 0 0 1px rgba(143,179,255,0.28);}
.message-main{display:flex;gap:12px;align-items:flex-start;}
.message-open{border:1px solid rgba(255, 255, 255, 0.12);background:rgba(255,255,255,0.04);color:#fff;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;cursor:pointer;transition:transform .15s ease, background .15s ease, border-color .15s ease;}
.message-open:hover{background:rgba(255,255,255,0.1);transform:translateY(-1px);border-color:rgba(255,255,255,0.25);}
.message-open svg{width:18px;height:18px;}
.message-meta{flex:1;display:flex;flex-direction:column;gap:4px;}
.message-line{display:flex;justify-content:space-between;gap:8px;font-size:.95rem;color:#e0e0e0;}
.message-time{color:var(--text-muted);font-size:.9rem;}
.message-subject{color:#fff;font-weight:700;}
.message-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.status-new{color:#8fb3ff;font-weight:700;letter-spacing:0.04em;}
.status-read{color:var(--text-muted);}
.message-empty{padding:14px;text-align:center;color:var(--text-muted);border:1px dashed rgba(126, 243, 255, 0.25);border-radius:12px;}

.msg-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.82);display:flex;align-items:center;justify-content:center;padding:20px;opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:2100;}
.msg-overlay.is-visible{opacity:1;pointer-events:auto;}
.msg-modal{background:rgba(7, 9, 16, 0.92);border:1px solid rgba(126, 243, 255, 0.16);border-radius:14px;max-width:720px;width:100%;padding:18px;box-shadow:0 22px 55px rgba(0,0,0,0.5);position:relative;}
.msg-modal .lightbox-close{position:absolute;top:10px;right:10px;background:rgba(255,255,255,0.04);border:1px solid rgba(126,243,255,0.2);color:#fff;border-radius:50%;width:36px;height:36px;cursor:pointer;}
.msg-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px;color:#e0e0e0;}
.msg-body{background:rgba(5, 7, 12, 0.9);border:1px solid rgba(126,243,255,0.18);border-radius:10px;padding:12px;color:#e6e6e6;min-height:120px;white-space:pre-wrap;}

/* Dashboard compact */
.dashboard-grid{display:grid;gap:1rem;margin-top:1rem;}
.dashboard-grid.compact-dashboard{grid-template-columns:1fr;}
.dashboard-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.dashboard-list li{border:1px solid #1f1f22;border-radius:8px;padding:10px 12px;background:#0f0f11;}
.dash-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:8px;}
.dash-link{color:var(--accent);text-decoration:none;font-weight:600;font-size:.95rem;}
.dash-line{display:flex;justify-content:space-between;gap:8px;color:#e0e0e0;}
.dash-time{color:var(--text-muted);font-size:.9rem;}
.dash-subject{color:#fff;margin:4px 0;}
.dash-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.full-span{grid-column:1/-1;}
