:root {
    --bg-100: #f4f8fc;
    --bg-200: #eaf1fb;
    --bg-300: #fef5ea;
    --surface: #ffffff;
    --surface-soft: #f7fbff;
    --surface-strong: #ecf4ff;
    --text: #172033;
    --text-soft: #55617a;
    --line: #d6e0ee;
    --primary: #0f766e;
    --primary-strong: #0a5a54;
    --accent: #ea580c;
    --accent-soft: #fff1e8;
    --success: #15803d;
    --danger: #c62828;
    --shadow-sm: 0 6px 20px rgba(16, 35, 65, 0.08);
    --shadow-md: 0 20px 42px rgba(16, 35, 65, 0.13);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 420px at -2% -10%, rgba(15, 118, 110, 0.16), transparent 52%),
        radial-gradient(960px 360px at 104% -10%, rgba(234, 88, 12, 0.16), transparent 50%),
        linear-gradient(180deg, #fafdff 0%, var(--bg-100) 55%, var(--bg-200) 100%);
    padding-top: 98px;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    border-bottom: 1px solid rgba(170, 186, 210, 0.5);
    background: rgba(250, 253, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0f9a90 100%);
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.26);
}

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

.brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.07rem;
    line-height: 1;
}

.brand-copy small {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    color: #4a5873;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: #d0dced;
    color: #1f2c42;
}

.nav-link.active {
    color: #0f4e7d;
    background: linear-gradient(135deg, #e6f0ff 0%, #edf7ff 100%);
    border-color: #bfd3ef;
}

.header-quick {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.header-chip,
.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid #cbddf6;
    background: linear-gradient(135deg, #f1f7ff 0%, #efffff 100%);
    color: #24537d;
    font-size: 0.78rem;
    font-weight: 700;
}

.header-action {
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #d0dcec;
    background: #fff;
    color: #22334f;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 11px;
    transition: all 0.2s ease;
}

.header-action:hover {
    border-color: #bbcde7;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(25, 48, 84, 0.1);
}

.header-action.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary) 0%, #0e8d84 100%);
    color: #fff;
}

.header-action.ghost {
    background: #f7fbff;
}

.site-main {
    min-height: calc(100vh - 275px);
}

.site-main > .container {
    padding-top: 28px;
    padding-bottom: 40px;
}

.page-title,
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-title h2,
.page-header h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.back-btn,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border-radius: 10px;
    padding: 8px 12px;
    border: 1px solid #d3deee;
    background: #fff;
    color: #3f4d67;
    font-size: 0.83rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.back-btn:hover,
.back-link:hover {
    border-color: #bdcee8;
    color: #19263b;
}

.card,
.auth-card,
.credits-card,
.how-card,
.faq-card,
.content-card,
.profile-card,
.gallery-section,
.empty-state,
.stat-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    margin-bottom: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert-error {
    background: #fff3f3;
    color: var(--danger);
    border-color: #f7cdcd;
}

.alert-success {
    background: #ebf9ef;
    color: var(--success);
    border-color: #bde8c9;
}

.btn,
.btn-primary,
.btn-save,
.btn-buy,
.btn-buy-credits,
.empty-state a,
.profile-btn,
.girl-btn {
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn,
.btn-primary,
.btn-save,
.btn-buy,
.btn-buy-credits,
.empty-state a,
.profile-btn.chat,
.girl-btn.chat,
.girl-btn.login {
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--primary) 0%, #0e8d84 100%);
    color: #fff;
}

.btn:hover,
.btn-primary:hover,
.btn-save:hover,
.btn-buy:hover,
.btn-buy-credits:hover,
.empty-state a:hover,
.profile-btn.chat:hover,
.girl-btn.chat:hover,
.girl-btn.login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.24);
    background: linear-gradient(135deg, var(--primary-strong) 0%, #0b756d 100%);
}

.girl-btn.profile,
.profile-btn.back {
    background: #f8fbff;
    border: 1px solid #d4e0ef;
    color: #24324c;
}

.girl-btn.profile:hover,
.profile-btn.back:hover {
    background: #f1f7ff;
}

.form-group,
.form-admin {
    margin-bottom: 15px;
}

.form-group label,
.form-admin label {
    display: block;
    margin-bottom: 6px;
    color: #46526a;
    font-weight: 700;
    font-size: 0.82rem;
}

.form-group input,
.form-group textarea,
.form-admin input,
.form-admin textarea,
.form-admin select,
.auth-card input,
.chat-input input {
    width: 100%;
    border: 1px solid #cad6e7;
    border-radius: 11px;
    background: #fbfdff;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    padding: 11px 12px;
    outline: none;
}

.form-group textarea,
.form-admin textarea {
    min-height: 108px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-admin input:focus,
.form-admin textarea:focus,
.form-admin select:focus,
.auth-card input:focus,
.chat-input input:focus {
    border-color: #95bedf;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

/* Home hero */
.home-hero {
    position: relative;
    border: 1px solid #ccddf2;
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 22px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(241, 250, 255, 0.96) 0%, rgba(255, 247, 239, 0.96) 100%);
    box-shadow: var(--shadow-md);
}

.home-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 20px;
    align-items: stretch;
}

.hero-copy {
    animation: heroReveal 0.5s ease both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #cbe1f6;
    background: rgba(255, 255, 255, 0.82);
    color: #1a547c;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.hero-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.45rem, 3.2vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: #475771;
    font-size: 0.92rem;
    line-height: 1.62;
    max-width: 620px;
}

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

.hero-btn-main {
    padding: 11px 16px;
}

.hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid #c8d8ec;
    background: rgba(255, 255, 255, 0.88);
    color: #1d2f49;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 11px 16px;
    transition: all 0.2s ease;
}

.hero-btn-ghost:hover {
    border-color: #b5cce6;
    background: #fff;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.hero-metrics span {
    border-radius: 999px;
    border: 1px solid #d2dfef;
    background: rgba(255, 255, 255, 0.72);
    color: #3f4f69;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 6px 11px;
}

.hero-panel {
    align-self: stretch;
    border: 1px solid #ccddf1;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    padding: 16px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px rgba(21, 43, 75, 0.1);
    animation: heroReveal 0.65s ease both;
}

.hero-panel h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.03rem;
    margin-bottom: 10px;
}

.hero-panel ul {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-panel li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border: 1px solid #d9e5f4;
    border-radius: 11px;
    background: #f8fbff;
    padding: 9px 10px;
    gap: 10px;
}

.hero-panel li strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.1rem;
    color: #104f6f;
}

.hero-panel li span {
    font-size: 0.8rem;
    color: #4f5f78;
    text-align: right;
}

.hero-panel-link {
    margin-top: auto;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid #c9dbee;
    background: #fff;
    color: #2e4666;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 9px 11px;
    text-align: center;
}

.hero-panel-link:hover {
    border-color: #b6cde9;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.3px);
    animation: heroFloat 9s ease-in-out infinite;
}

.hero-orb.orb-a {
    width: 170px;
    height: 170px;
    left: -44px;
    top: -48px;
    background: rgba(15, 118, 110, 0.2);
}

.hero-orb.orb-b {
    width: 130px;
    height: 130px;
    right: 16%;
    top: -42px;
    background: rgba(234, 88, 12, 0.18);
    animation-delay: -2.5s;
}

.hero-orb.orb-c {
    width: 110px;
    height: 110px;
    right: -28px;
    bottom: -30px;
    background: rgba(20, 90, 160, 0.18);
    animation-delay: -1s;
}

.section-headline {
    margin-bottom: 15px;
}

.section-headline h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.section-headline p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(6px) translateX(-4px);
    }
}

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

/* Index */
.girls-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.girl-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.24s ease;
}

.girl-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.girl-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
}

.girl-image::after,
.profile-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(18, 28, 46, 0.44) 100%);
    pointer-events: none;
}

.girl-image img,
.profile-image img,
.profile-avatar,
.thread-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.girl-badges,
.profile-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.girl-badge,
.profile-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(196, 209, 229, 0.92);
    color: #24344f;
    font-size: 0.72rem;
    font-weight: 800;
}

.girl-badge.online,
.profile-badge.online {
    background: rgba(21, 128, 61, 0.9);
    border-color: rgba(21, 128, 61, 0.9);
    color: #fff;
}

.girl-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.girl-name {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.girl-meta {
    text-align: center;
    font-size: 0.83rem;
    color: var(--text-soft);
}

.girl-buttons {
    display: flex;
    gap: 8px;
}

.girl-btn {
    flex: 1;
    text-align: center;
    padding: 9px 8px;
}

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

.stat-box {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #12516d;
}

.stat-label {
    margin-top: 4px;
    font-size: 0.82rem;
    color: var(--text-soft);
}

/* Auth */
.auth-container {
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 28px;
}

.auth-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    margin: 8px 0 5px;
}

.auth-card > p {
    color: var(--text-soft);
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.auth-card .btn-primary,
.btn-save,
.btn-buy {
    width: 100%;
    padding: 12px;
}

.bonus {
    border: 1px solid #f8d7bd;
    background: var(--accent-soft);
    color: #8f3e14;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.auth-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.auth-footer p {
    color: var(--text-soft);
    margin-bottom: 6px;
    font-size: 0.87rem;
}

.auth-footer a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
}

/* Messages */
.threads-container {
    max-width: 860px;
    margin: 0 auto;
}

.thread-card {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.thread-card:hover {
    border-color: #b5cbe8;
    transform: translateY(-1px);
}

.thread-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.thread-name {
    font-size: 0.97rem;
    font-weight: 800;
}

.thread-age,
.thread-time,
.thread-message {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.thread-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-unread {
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Profile */
.profile-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 3px solid #d1dff3;
    margin: 0 auto 8px;
}

.profile-avatar-label {
    color: var(--text-soft);
    font-size: 0.83rem;
    cursor: pointer;
}

.btn-save {
    margin-top: 6px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.user-info-item {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 10px 12px;
}

.user-info-label {
    color: var(--text-soft);
    font-size: 0.74rem;
    margin-bottom: 4px;
}

.user-info-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.btn-buy-credits {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 12px;
}

/* Girl profile */
.profile-container {
    max-width: 580px;
    margin: 0 auto;
}

.profile-image {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.profile-info {
    padding: 18px;
}

.profile-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    text-align: center;
    margin-bottom: 8px;
}

.profile-meta,
.profile-description {
    text-align: center;
}

.profile-meta {
    color: var(--text-soft);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.profile-description {
    color: #47556d;
    line-height: 1.62;
    font-size: 0.9rem;
}

.profile-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.profile-btn {
    flex: 1;
    text-align: center;
    padding: 11px;
}

.gallery-section {
    margin-top: 14px;
    padding: 14px;
}

.gallery-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.gallery-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.gallery-item {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--line);
    cursor: pointer;
}

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

/* Credits / info pages */
.credits-container,
.how-container,
.faq-container {
    max-width: 780px;
    margin: 0 auto;
}

.credits-card,
.how-card,
.faq-card {
    padding: 24px;
}

.credits-card h2,
.how-card h2,
.faq-card h2,
.content-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.42rem;
    margin-bottom: 8px;
    text-align: center;
}

.credits-card > p,
.how-card > p {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.credit-option {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.credit-option:hover {
    border-color: #b8cee9;
}

.credit-option input {
    accent-color: var(--primary);
}

.credit-option-text {
    flex: 1;
}

.credit-option-text strong {
    display: block;
    font-size: 0.96rem;
}

.credit-option-text p {
    font-size: 0.79rem;
    color: var(--text-soft);
}

.credit-price {
    color: #8f3f15;
    font-size: 1.04rem;
    font-weight: 800;
}

.payment-info {
    margin-top: 14px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #d5e1f0;
}

.step:last-child {
    border-bottom: 0;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0e8e84 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 0.98rem;
    margin-bottom: 3px;
}

.step-content p {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.5;
}

.credits-card {
    text-align: center;
    margin-top: 14px;
}

.faq-item {
    border-bottom: 1px solid #deE7f2;
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 14px 0;
}

.faq-question::after {
    content: "+";
    color: #73839d;
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 0.86rem;
}

.faq-item.open .faq-answer {
    max-height: 240px;
    padding-bottom: 12px;
}

.content-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 24px;
}

.content-card h3 {
    margin: 18px 0 8px;
    font-size: 1rem;
}

.content-card p,
.content-card li {
    color: #44546c;
    line-height: 1.62;
    font-size: 0.9rem;
}

.content-card ul {
    margin: 10px 0 10px 20px;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(165, 183, 208, 0.45);
    background:
        radial-gradient(90% 220px at 0% 0%, rgba(15, 118, 110, 0.08), transparent 62%),
        radial-gradient(80% 220px at 100% 0%, rgba(234, 88, 12, 0.09), transparent 60%),
        #f8fbff;
    padding: 34px 0;
}

.footer-layout {
    display: grid;
    gap: 16px;
}

.footer-branding h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.06rem;
    margin-bottom: 4px;
}

.footer-branding p {
    color: var(--text-soft);
    font-size: 0.85rem;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links-grid a {
    text-decoration: none;
    border: 1px solid #d2deee;
    background: #fff;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.79rem;
    font-weight: 700;
    color: #394965;
}

.footer-links-grid a:hover {
    border-color: #b8cae5;
}

.footer-disclaimer {
    border: 1px solid #d8e3f2;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px;
    color: #4f5f79;
    font-size: 0.77rem;
    line-height: 1.55;
}

.footer-copyright {
    color: #6a7891;
    font-size: 0.76rem;
}

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

.empty-state p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.empty-state a {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 14px;
}

.hidden-input {
    display: none;
}

.credits-value {
    font-weight: 800;
    color: #0e5a8e;
}

.credits-card h3 {
    font-size: 1.12rem;
    margin-bottom: 6px;
}

.credits-card p {
    color: var(--text-soft);
    font-size: 0.88rem;
}

/* Chat page */
body.page-chat .site-main > .container {
    padding-top: 18px;
}

.chat-page {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 228px);
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid #ccdaed;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.chat-header-bar {
    min-height: 74px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #f7fbff 0%, #fcfffe 100%);
    flex-shrink: 0;
}

.chat-header-bar .back {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #d3deee;
    text-decoration: none;
    background: #fff;
    color: #344054;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 700;
}

.chat-header-bar img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #d5dfef;
}

.chat-header-info {
    flex: 1;
    min-width: 0;
}

.chat-header-info h3 {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-info span {
    font-size: 0.79rem;
    color: var(--success);
    font-weight: 700;
}

.chat-header-bar .credits {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef8f8;
    border: 1px solid #c8ece9;
    color: #105f59;
    font-size: 0.77rem;
    font-weight: 700;
    white-space: nowrap;
}

.chat-container {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.08), transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(234, 88, 12, 0.07), transparent 38%),
        #f6fbff;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
    -webkit-overflow-scrolling: touch;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #c6d5e8;
    border-radius: 99px;
}

.message {
    max-width: 84%;
    margin-bottom: 10px;
    padding: 11px 12px 9px;
    border-radius: 15px;
    line-height: 1.45;
    font-size: 0.94rem;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
    word-break: break-word;
    animation: fadeUp 0.18s ease;
}

.message.user {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary) 0%, #0f8f85 100%);
    color: #fff;
    border-bottom-right-radius: 5px;
}

.message.girl {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    border-bottom-left-radius: 5px;
}

.message .sender {
    margin-bottom: 4px;
    font-size: 0.73rem;
    color: #6a768d;
    font-weight: 700;
}

.message .time {
    margin-top: 5px;
    text-align: right;
    font-size: 0.69rem;
    opacity: 0.8;
}

.typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-top: 1px solid var(--line);
}

.typing-indicator.show {
    display: flex;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #98a2b3;
    animation: typing 1.2s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

.typing-text {
    font-size: 0.82rem;
    color: var(--text-soft);
    font-weight: 600;
}

.chat-input-wrapper {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    flex-shrink: 0;
}

.chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    min-width: 0;
    border: 1px solid #c8d5e7;
    background: #f8fbff;
    border-radius: 12px;
    padding: 12px 13px;
    font-size: 0.95rem;
    color: var(--text);
    outline: none;
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent) 0%, #ef7a39 100%);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-input button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.25);
}

.chat-input button:disabled {
    background: #9aa8bc;
    box-shadow: none;
    cursor: not-allowed;
}

.no-credits {
    margin-top: 8px;
    border: 1px solid #fecaca;
    background: #fff1f1;
    color: #b91c1c;
    border-radius: 10px;
    text-align: center;
    padding: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

@keyframes typing {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

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

@media (max-width: 1100px) {
    .home-hero-grid {
        grid-template-columns: 1fr;
    }

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

    .header-inner {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 0;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .header-quick {
        justify-content: flex-start;
    }

    body {
        padding-top: 140px;
    }
}

@media (max-width: 820px) {
    .container {
        padding: 0 14px;
    }

    body {
        padding-top: 146px;
    }

    .girls-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home-hero {
        padding: 18px;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn-main,
    .hero-btn-ghost {
        width: 100%;
    }

    .girl-buttons,
    .profile-buttons {
        flex-direction: column;
    }

    .stats-section,
    .user-info-grid {
        grid-template-columns: 1fr;
    }

    .auth-card,
    .credits-card,
    .how-card,
    .faq-card,
    .content-card,
    .profile-card {
        padding: 16px;
    }

    .thread-card {
        gap: 10px;
        padding: 10px;
    }

    .thread-avatar {
        width: 48px;
        height: 48px;
    }

    .page-title h2,
    .page-header h1 {
        font-size: 1.24rem;
    }

    .chat-page {
        min-height: calc(100vh - 236px);
    }

    .chat-header-bar {
        padding: 10px;
    }

    .chat-header-bar .credits {
        display: none;
    }

    .chat-messages {
        padding: 12px 10px;
    }

    .message {
        max-width: 92%;
    }
}

@media (max-width: 540px) {
    body {
        padding-top: 168px;
    }

    .nav-link {
        font-size: 0.79rem;
        padding: 7px 10px;
    }

    .header-chip,
    .header-action,
    .credits-badge {
        font-size: 0.76rem;
    }

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

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-panel li {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-panel li span {
        text-align: left;
    }

    .chat-header-info h3 {
        font-size: 0.92rem;
    }

    .chat-input input {
        font-size: 0.9rem;
    }
}
