:root {
    --bg: #070707;
    --bg-soft: #11100f;
    --panel: #171311;
    --panel-light: #211914;
    --gold: #d9a95f;
    --gold-light: #f2cc85;
    --cream: #f6ead7;
    --muted: #a59a8d;
    --line: rgba(255,255,255,0.12);
    --shadow: 0 30px 80px rgba(0,0,0,.45);
    --radius: 22px;
    --ease: cubic-bezier(.2,.8,.2,1);
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softGlow {
    0%, 100% {
        box-shadow: 0 12px 32px rgba(217,169,95,.18);
    }
    50% {
        box-shadow: 0 18px 46px rgba(217,169,95,.34);
    }
}

@keyframes shimmerLine {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--cream);
    font-family: Arial, sans-serif;
}

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

.site-header {
    height: 80px;
    padding: 0 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 8, 6, 0.95);
    border-bottom: 1px solid rgba(217,169,95,.25);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--gold-light);
    font-weight: bold;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    color: var(--cream);
    font-size: 15px;
    opacity: 0.85;
}

nav a:hover {
    color: var(--gold-light);
}

.btn-small,
.btn-primary,
.btn-secondary {
    border-radius: 999px;
    padding: 12px 22px;
    display: inline-block;
}

.btn-small,
.btn-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg);
    font-weight: bold;
}

.btn-secondary {
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
}

.hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    padding: 8% 6%;
    background:
        linear-gradient(90deg, rgba(9,8,6,0.62), rgba(9,8,6,0.22)),
        url('/assets/hero.jpg') center/cover;
}

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

.eyebrow {
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
}

h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    margin: 20px 0;
}

h2 {
    font-size: 42px;
}

p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 18px;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.section {
    padding: 80px 6%;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.model-card {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.22);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.25s ease;
}

.model-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-light);
}

.model-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.model-info {
    padding: 24px;
}

.model-info h3 {
    color: var(--gold-light);
    font-size: 28px;
    margin: 0 0 10px;
}

.model-profile {
    padding-bottom: 80px;
}

.profile-cover {
    height: 420px;
    background-size: cover;
    background-position: center;
}

.profile-content {
    max-width: 900px;
    margin: -80px auto 0;
    padding: 0 6%;
    position: relative;
}

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid var(--gold-light);
    background: var(--bg-soft);
}

.tagline {
    color: var(--gold-light);
}

.site-footer {
    padding: 40px 6%;
    border-top: 1px solid rgba(217,169,95,.2);
    text-align: center;
}

@media (max-width: 900px) {
    .site-header {
        height: auto;
        padding: 22px 6%;
        flex-direction: column;
        gap: 20px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .model-grid {
        grid-template-columns: 1fr;
    }

    .model-image {
        height: 420px;
    }
}


.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 6%;
}

.auth-box {
    width: 100%;
    max-width: 480px;
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.25);
    border-radius: 28px;
    padding: 40px;
}

.auth-box h1 {
    font-size: 42px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

label {
    color: var(--gold-light);
    font-size: 14px;
}

input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(217,169,95,.25);
    background: var(--bg);
    color: var(--cream);
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--gold-light);
}

button {
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 12px;
}

.alert {
    background: rgba(140, 20, 20, 0.25);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffd2d2;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 20px;
}

.auth-link a {
    color: var(--gold-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.dash-card {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.25);
    border-radius: 24px;
    padding: 28px;
}

.dash-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 14px;
}

.dash-card strong {
    display: block;
    color: var(--gold-light);
    font-size: 42px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 6%;
}

.auth-box {
    width: 100%;
    max-width: 480px;
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.25);
    border-radius: 28px;
    padding: 40px;
}

.auth-box h1 {
    font-size: 42px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 28px;
}

label {
    color: var(--gold-light);
    font-size: 14px;
}

input {
    width: 100%;
    padding: 15px 16px;
    border-radius: 14px;
    border: 1px solid rgba(217,169,95,.25);
    background: var(--bg);
    color: var(--cream);
    font-size: 16px;
}

input:focus {
    outline: none;
    border-color: var(--gold-light);
}

button {
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 12px;
}

.alert {
    background: rgba(140, 20, 20, 0.25);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #ffd2d2;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 20px;
}

.auth-link a {
    color: var(--gold-light);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.dash-card {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.25);
    border-radius: 24px;
    padding: 28px;
}

.dash-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 14px;
}

.dash-card strong {
    display: block;
    color: var(--gold-light);
    font-size: 42px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
/* Phase 1.1 */
.coin-pill {
    border: 1px solid rgba(217,169,95,.35);
    color: var(--gold-light);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(217,169,95,.08);
    font-weight: bold;
}

.small-muted {
    font-size: 14px;
    color: var(--muted);
}

.chat-box {
    margin-top: 40px;
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.25);
    border-radius: 24px;
    padding: 28px;
}

.chat-box textarea,
textarea,
select {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(217,169,95,.25);
    background: var(--bg);
    color: var(--cream);
    font-size: 16px;
}

select {
    min-height: auto;
}

.chat-history {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
    margin: 24px 0;
}

.chat-message {
    padding: 16px 18px;
    border-radius: 18px;
    margin-bottom: 14px;
    border: 1px solid rgba(217,169,95,.18);
}

.chat-message strong {
    color: var(--gold-light);
}

.user-msg {
    background: rgba(255,255,255,0.04);
    margin-left: 10%;
}

.ai-msg {
    background: rgba(217,169,95,.08);
    margin-right: 10%;
}

.success {
    background: rgba(30, 120, 60, 0.22);
    border: 1px solid rgba(90, 220, 130, 0.35);
    color: #d8ffe2;
    padding: 14px 16px;
    border-radius: 14px;
    margin-top: 20px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.content-card {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.22);
    border-radius: 24px;
    overflow: hidden;
}

.content-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.content-body {
    padding: 24px;
}

.content-body span,
.content-body strong {
    color: var(--gold-light);
}

.narrow {
    max-width: 980px;
    margin: 0 auto;
}

.post-hero {
    width: 100%;
    border-radius: 24px;
    margin: 24px 0;
}

.post-content {
    color: var(--muted);
    line-height: 1.8;
    font-size: 18px;
}

.locked-box {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.22);
    border-radius: 24px;
    padding: 32px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 18px;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 28px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border-radius: 18px;
    overflow: hidden;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid rgba(217,169,95,.14);
    text-align: left;
    color: var(--muted);
}

th {
    color: var(--gold-light);
}

.admin-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.admin-form {
    background: var(--panel);
    border: 1px solid rgba(217,169,95,.22);
    border-radius: 24px;
    padding: 28px;
    margin: 28px 0;
}

.small-input {
    max-width: 90px;
    padding: 8px;
}

@media (max-width: 900px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    .user-msg,
    .ai-msg {
        margin-left: 0;
        margin-right: 0;
    }
}


.chat-history {
    height: 520px;
    overflow-y: auto;
    background: var(--bg);
    border: 1px solid rgba(217,169,95,.18);
    border-radius: 22px;
    padding: 22px;
    margin: 24px 0;
}

.chat-row {
    display: flex;
    margin-bottom: 16px;
}

.chat-row.user {
    justify-content: flex-end;
}

.chat-row.ai {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 72%;
    padding: 15px 18px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.user-bubble {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg);
    border-bottom-right-radius: 4px;
}

.ai-bubble {
    background: var(--panel-light);
    color: var(--cream);
    border: 1px solid rgba(217,169,95,.22);
    border-bottom-left-radius: 4px;
}

.typing {
    opacity: 0.7;
    font-style: italic;
}

.chat-empty {
    text-align: center;
    color: var(--muted);
    padding: 60px 20px;
}

.chat-form textarea {
    min-height: 90px;
}

@media (max-width: 700px) {
    .chat-history {
        height: 440px;
    }

    .chat-bubble {
        max-width: 88%;
    }
}


.chat-media {
    margin-top: 8px;
}

.chat-image {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    display: block;
    border: 1px solid rgba(217,169,95,.25);
}

.chat-video {
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    display: block;
    border: 1px solid rgba(217,169,95,.25);
}

/* Luxury transfer overrides: Farben, Glassmorphism, Schatten & Animationen */
body {
    font-family: "Inter", Arial, sans-serif;
    background: radial-gradient(circle at top, #17110d 0%, #070707 46%, #020202 100%);
    color: var(--cream);
}

.site-header {
    background: rgba(7, 7, 7, .76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.logo,
h1,
h2,
.model-info h3,
.auth-box h1,
.dash-card strong {
    font-family: "Cormorant Garamond", Georgia, serif;
}

.logo {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: .22em;
}

nav a {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    transition: color .25s var(--ease), opacity .25s var(--ease);
}

nav a:hover {
    color: var(--gold-light);
    opacity: 1;
}

.btn-small,
.btn-primary,
.btn-secondary,
button {
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}

.btn-small,
.btn-primary,
.user-bubble,
button {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a1108;
    box-shadow: 0 12px 32px rgba(217,169,95,.22);
    font-weight: 700;
}

.btn-small:hover,
.btn-primary:hover,
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(217,169,95,.32);
}

.btn-secondary {
    border: 1px solid var(--line);
    color: var(--cream);
    background: rgba(255,255,255,.03);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 46%, rgba(0,0,0,.75) 100%),
        url('/assets/hero.jpg') center/cover;
}

.hero::after,
.profile-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 240px;
    pointer-events: none;
    background: linear-gradient(transparent, var(--bg));
}

.hero-content,
.section > *,
.profile-content,
.auth-box,
.dashboard-grid,
.chat-box,
.content-grid,
.admin-form {
    animation: fadeUp .7s var(--ease) both;
}

.eyebrow,
.tagline,
label,
.auth-link a,
.content-body span,
.content-body strong,
th,
.chat-message strong,
.coin-pill {
    color: var(--gold-light);
}

h1,
h2 {
    line-height: .96;
    margin-top: 0;
}

h1 span,
h2 span {
    color: var(--gold-light);
}

p {
    color: var(--muted);
}

.model-card,
.auth-box,
.dash-card,
.chat-box,
.content-card,
.locked-box,
.admin-form,
.chat-history,
table {
    background: linear-gradient(180deg, rgba(23,19,17,.88), rgba(8,8,8,.76));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.model-card,
.content-card,
.dash-card,
.chat-box,
.auth-box,
.post-content,
.locked-box,
.admin-form {
    border-radius: var(--radius);
}

.model-card,
.content-card,
.dash-card {
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.model-card:hover,
.content-card:hover,
.dash-card:hover {
    transform: translateY(-6px);
    border-color: rgba(217,169,95,.5);
    box-shadow: 0 32px 90px rgba(0,0,0,.5);
}

.model-image,
.content-image,
.profile-cover {
    position: relative;
    overflow: hidden;
}

.model-image::after,
.content-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.28));
    pointer-events: none;
}

.avatar,
.chat-image,
.chat-video,
.post-hero {
    border-color: rgba(217,169,95,.45);
    box-shadow: 0 18px 50px rgba(0,0,0,.38);
}

input,
textarea,
select,
.chat-box textarea {
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
    color: var(--cream);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217,169,95,.12);
    background: rgba(255,255,255,.045);
}

.chat-history {
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255,255,255,.05);
}

.chat-history::-webkit-scrollbar {
    width: 8px;
}

.chat-history::-webkit-scrollbar-track {
    background: rgba(255,255,255,.05);
    border-radius: 999px;
}

.chat-history::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-light), var(--gold));
    border-radius: 999px;
}

.chat-bubble,
.chat-message {
    animation: fadeUp .35s var(--ease) both;
}

.ai-bubble,
.ai-msg {
    background: rgba(255,255,255,.035);
    border: 1px solid var(--line);
    color: var(--cream);
}

.user-msg {
    background: rgba(217,169,95,.08);
}

.coin-pill {
    border: 1px solid rgba(217,169,95,.5);
    background: rgba(217,169,95,.08);
    box-shadow: 0 10px 28px rgba(217,169,95,.12);
}

.alert,
.success {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-footer {
    background: #050505;
    border-top: 1px solid var(--line);
}

.table-wrap table {
    overflow: hidden;
}

th,
td {
    border-bottom: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
