:root {
    --ink: #f8fafc;
    --muted: rgba(248, 250, 252, .68);
    --panel: rgba(15, 23, 42, .58);
    --panel-strong: rgba(17, 24, 39, .78);
    --line: rgba(255, 255, 255, .14);
    --teal: #2dd4bf;
    --sky: #60a5fa;
    --rose: #fb7185;
    --amber: #f59e0b;
    --green: #34d399;
    --shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(13, 148, 136, .22), transparent 32%),
        linear-gradient(225deg, rgba(245, 158, 11, .18), transparent 35%),
        linear-gradient(180deg, #111827 0%, #1f2937 48%, #0f172a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.glass-panel,
.admin-card,
.chat-card,
.metric-card,
.visitor-product-card {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .055));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #08111f;
    background: linear-gradient(135deg, var(--teal), var(--sky) 54%, var(--amber));
    box-shadow: 0 14px 34px rgba(45, 212, 191, .22);
}

.install-body,
.login-body,
.admin-body {
    background:
        linear-gradient(115deg, rgba(45, 212, 191, .18), transparent 30%),
        linear-gradient(250deg, rgba(251, 113, 133, .13), transparent 34%),
        #111827;
}

.login-card {
    width: min(100%, 460px);
    border-radius: 18px;
}

.install-notice {
    max-width: 640px;
}

.form-control,
.form-select {
    color: var(--ink);
    border-color: rgba(255, 255, 255, .14);
    background: rgba(8, 13, 24, .42);
}

.form-control:focus,
.form-select:focus {
    color: var(--ink);
    border-color: var(--teal);
    background: rgba(8, 13, 24, .6);
    box-shadow: 0 0 0 .25rem rgba(45, 212, 191, .18);
}

.form-control::placeholder {
    color: rgba(248, 250, 252, .48);
}

.form-text,
.text-muted {
    color: var(--muted) !important;
}

.btn {
    border-radius: 10px;
}

.btn-primary {
    border: 0;
    color: #05111f;
    background: linear-gradient(135deg, var(--teal), var(--sky));
    box-shadow: 0 16px 34px rgba(45, 212, 191, .2);
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.admin-nav {
    border-bottom: 1px solid var(--line);
    background: rgba(10, 16, 30, .76);
    backdrop-filter: blur(18px);
}

.navbar-toggler {
    border-color: var(--line);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.admin-shell {
    max-width: 1480px;
}

.admin-card {
    border-radius: 18px;
    padding: 20px;
}

.metric-card {
    display: flex;
    min-height: 120px;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    padding: 20px;
}

.metric-icon {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    place-items: center;
    border-radius: 14px;
    font-size: 1.35rem;
    color: #06121f;
}

.metric-icon.cyan {
    background: linear-gradient(135deg, var(--teal), #99f6e4);
}

.metric-icon.rose {
    background: linear-gradient(135deg, var(--rose), #fecdd3);
}

.metric-icon.violet {
    background: linear-gradient(135deg, #a78bfa, #ddd6fe);
}

.metric-icon.amber {
    background: linear-gradient(135deg, var(--amber), #fde68a);
}

.metric-icon.green {
    background: linear-gradient(135deg, var(--green), #bbf7d0);
}

.metric-value {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1;
}

.metric-label {
    color: var(--muted);
    margin-top: 6px;
}

.admin-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, .1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid rgba(45, 212, 191, .28);
    border-radius: 999px;
    color: #b7fff6;
    background: rgba(45, 212, 191, .1);
    font-size: .74rem;
    font-weight: 700;
}

.status-pill.muted {
    border-color: rgba(255, 255, 255, .12);
    color: rgba(248, 250, 252, .58);
    background: rgba(255, 255, 255, .06);
}

.quick-link,
.conversation-item,
.knowledge-row,
.api-key-row {
    display: flex;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, .055);
    text-decoration: none;
}

.service-check-grid {
    display: grid;
    gap: 10px;
}

.service-check {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .055);
}

.service-check.is-muted {
    opacity: .55;
}

.service-check span {
    display: grid;
    gap: 2px;
}

.service-check small {
    color: var(--muted);
}

.schedule-form {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) 38px;
    gap: 8px;
    align-items: center;
}

.quick-link:hover,
.conversation-item:hover,
.conversation-item.active {
    border-color: rgba(45, 212, 191, .38);
    background: rgba(45, 212, 191, .1);
}

.quick-link i {
    color: var(--teal);
    font-size: 1.2rem;
}

.product-admin-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    background: rgba(255, 255, 255, .06);
}

.product-admin-card.is-muted {
    opacity: .6;
}

.product-admin-image {
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, .06);
}

.product-admin-image img,
.visitor-product-image img,
.mini-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
}

.image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 130px;
    place-items: center;
    color: rgba(248, 250, 252, .72);
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .18), rgba(96, 165, 250, .12)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .06) 7px, transparent 7px, transparent 14px);
    font-size: 2rem;
}

.product-admin-desc,
.reservation-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.mini-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.empty-state {
    padding: 28px;
    border: 1px dashed rgba(255, 255, 255, .18);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, .04);
}

.conversation-list,
.conversation-panel {
    max-height: calc(100vh - 150px);
    overflow: auto;
}

.conversation-item {
    display: block;
    margin-bottom: 10px;
}

.conversation-transcript {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transcript-bubble {
    max-width: min(720px, 92%);
    padding: 13px 15px;
    border-radius: 16px;
    white-space: normal;
}

.transcript-bubble.user {
    align-self: flex-end;
    background: rgba(96, 165, 250, .18);
}

.transcript-bubble.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, .08);
}

.bubble-label {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
}

.visitor-stage {
    min-height: 100vh;
    overflow: hidden;
}

.visitor-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px clamp(16px, 4vw, 54px);
}

.visitor-brand,
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.visitor-brand {
    font-size: 1.12rem;
    font-weight: 800;
}

.phone-chip {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.visitor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: clamp(20px, 4vw, 52px);
    align-items: stretch;
    min-height: calc(100vh - 88px);
    padding: 0 clamp(16px, 4vw, 54px) 36px;
}

.product-showcase {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.showcase-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border: 1px solid rgba(45, 212, 191, .28);
    border-radius: 999px;
    color: #b7fff6;
    background: rgba(45, 212, 191, .1);
    font-size: .86rem;
    font-weight: 700;
}

.showcase-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 6.6rem);
    font-weight: 900;
    line-height: .92;
    letter-spacing: 0;
}

.showcase-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.24rem);
}

.product-strip {
    display: grid;
    grid-auto-columns: minmax(220px, 280px);
    grid-auto-flow: column;
    gap: 14px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scrollbar-color: rgba(45, 212, 191, .55) transparent;
}

.visitor-product-card {
    overflow: hidden;
    border-radius: 18px;
    transform: translateY(0);
    transition: transform .22s ease, border-color .22s ease;
}

.visitor-product-card:hover {
    border-color: rgba(45, 212, 191, .38);
    transform: translateY(-4px);
}

.visitor-product-image {
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, .06);
}

.visitor-product-content {
    padding: 14px;
}

.visitor-product-content h2 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.visitor-product-content p {
    min-height: 42px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .86rem;
}

.visitor-product-content span {
    display: block;
    white-space: pre-line;
    color: #b7fff6;
    font-weight: 800;
}

.chat-shell {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.chat-card {
    display: grid;
    grid-template-rows: auto minmax(330px, 1fr) auto auto;
    width: min(100%, 520px);
    height: min(760px, calc(100vh - 126px));
    min-height: 610px;
    overflow: hidden;
    border-radius: 24px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 12, 22, .28);
}

.agent-avatar {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.chat-title {
    font-weight: 900;
}

.chat-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: .86rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .55);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 12px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 18px;
    scroll-behavior: smooth;
}

.message {
    display: flex;
    animation: messageIn .18s ease-out;
}

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

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(86%, 420px);
    padding: 12px 14px;
    border-radius: 18px;
    color: var(--ink);
    line-height: 1.48;
    white-space: pre-wrap;
}

.message.assistant .message-bubble {
    border-bottom-left-radius: 6px;
    background: rgba(255, 255, 255, .09);
}

.message.user .message-bubble {
    border-bottom-right-radius: 6px;
    color: #05111f;
    background: linear-gradient(135deg, var(--teal), var(--sky));
}

.typing {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 64px;
}

.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    animation: typingDot 1s infinite ease-in-out;
}

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

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

@keyframes typingDot {
    50% {
        transform: translateY(-5px);
        opacity: .5;
    }
}

.chat-products {
    display: grid;
    gap: 10px;
    width: min(92%, 430px);
    margin-left: 0;
}

.chat-products.gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(96%, 460px);
}

.chat-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: min(92%, 430px);
}

.chat-choice-row button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid rgba(45, 212, 191, .34);
    border-radius: 999px;
    color: #dffefa;
    background: rgba(45, 212, 191, .1);
    font-size: .84rem;
    font-weight: 800;
}

.chat-choice-row button:hover {
    color: #06121f;
    background: linear-gradient(135deg, var(--teal), var(--sky));
}

.chat-product-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .07);
}

.chat-product-card img,
.chat-product-card .image-placeholder {
    width: 82px;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    font-size: 1.4rem;
}

.chat-product-card h3 {
    margin: 10px 10px 4px 0;
    font-size: .98rem;
}

.chat-product-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 10px 8px 0;
    color: var(--muted);
    font-size: .82rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chat-product-card strong {
    display: inline-block;
    margin-bottom: 10px;
    color: #b7fff6;
    white-space: pre-line;
}

.chat-product-card small {
    display: block;
    margin: 0 10px 10px 0;
    color: var(--muted);
    line-height: 1.45;
}

.price-summary {
    white-space: pre-line;
}

.gallery-grid .chat-product-card {
    display: block;
}

.gallery-grid .chat-product-card img,
.gallery-grid .chat-product-card .image-placeholder {
    width: 100%;
    height: 148px;
    min-height: 148px;
}

.gallery-grid .chat-product-card h3,
.gallery-grid .chat-product-card p,
.gallery-grid .chat-product-card strong {
    margin-left: 10px;
}

.gallery-grid .chat-product-card h3 {
    margin-top: 10px;
}

.quick-prompts {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 0 18px 14px;
}

.quick-prompts button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, .07);
    white-space: nowrap;
}

.quick-prompts button:hover {
    border-color: rgba(45, 212, 191, .38);
    background: rgba(45, 212, 191, .11);
}

.chat-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: rgba(7, 12, 22, .35);
}

.chat-input input {
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, .08);
    outline: none;
}

.chat-input input:focus {
    border-color: var(--teal);
}

.chat-input button {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    color: #06121f;
    background: linear-gradient(135deg, var(--teal), var(--amber));
}

.chat-input button svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 1060px) {
    .visitor-layout {
        grid-template-columns: 1fr;
    }

    .product-showcase {
        justify-content: start;
    }

    .chat-card {
        width: 100%;
        height: min(720px, 76vh);
    }
}

@media (max-width: 640px) {
    .visitor-topbar {
        padding: 12px;
    }

    .visitor-brand span:last-child {
        max-width: 44vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .phone-chip {
        max-width: 46vw;
        overflow: hidden;
        font-size: .86rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .visitor-layout {
        min-height: auto;
        padding: 0 12px 18px;
    }

    .showcase-copy h1 {
        font-size: clamp(2.2rem, 16vw, 4rem);
    }

    .product-strip {
        grid-auto-columns: minmax(190px, 72vw);
    }

    .chat-card {
        min-height: 590px;
        height: 72vh;
        border-radius: 18px;
    }

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

    .chat-input {
        grid-template-columns: minmax(0, 1fr) 46px;
        padding: 12px;
    }

    .chat-input button {
        width: 46px;
        height: 46px;
    }

    .schedule-form {
        grid-template-columns: 1fr;
    }
}

/* Premium index theme imported from the provided design and bound to PHP data. */
.theme-body {
    --pink: #ff00cc;
    --violet: #7c4dff;
    --blue: #35d6ff;
    --gold: #ffd76a;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 0, 204, .22), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 77, 255, .26), transparent 32%),
        radial-gradient(circle at bottom, rgba(53, 214, 255, .13), transparent 35%),
        #050611;
}

.theme-navbar {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: rgba(5, 6, 17, .72) !important;
    backdrop-filter: blur(24px);
}

.theme-brand {
    color: #fff !important;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-dot {
    color: var(--pink);
}

.theme-navbar .nav-link {
    color: #fff !important;
    opacity: .78;
    font-size: 14px;
    font-weight: 800;
}

.theme-navbar .nav-link:hover {
    opacity: 1;
    color: #ff4fd8 !important;
}

.nav-button {
    border: 0;
    background: transparent;
}

.nav-cta {
    min-height: 42px;
    padding: 10px 16px;
}

.currency-select {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-weight: 900;
    outline: none;
}

.currency-select option {
    color: #111827;
}

.page-top {
    padding-top: 96px;
}

.hero-section {
    padding-top: 26px;
}

.glass-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 30px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 28px 85px rgba(0, 0, 0, .44);
    backdrop-filter: blur(26px);
}

.btn-premium,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 18px;
    padding: 12px 22px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn-premium {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    box-shadow: 0 16px 42px rgba(255, 0, 204, .32);
}

.btn-premium:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(255, 0, 204, .42);
}

.btn-soft {
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    background: rgba(255, 255, 255, .075);
    backdrop-filter: blur(18px);
}

.btn-soft:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    transform: translateY(-3px);
}

.story-shell {
    padding: 18px 16px 14px;
}

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

.story-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.story-live {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.6s infinite;
}

.stories-wrap {
    position: relative;
}

.stories-row {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 4px 14px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.stories-row::-webkit-scrollbar {
    display: none;
}

.story-item {
    position: relative;
    width: 88px;
    flex: 0 0 88px;
    border: 0;
    color: #fff;
    background: transparent;
    text-align: center;
    scroll-snap-align: start;
}

.story-item:hover {
    transform: translateY(-4px);
}

.story-ring {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #ff9800, var(--pink), var(--violet), #ff9800);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

.story-avatar {
    width: 100%;
    height: 100%;
    border: 3px solid #101225;
    border-radius: 50%;
    object-fit: cover;
}

.story-plus {
    position: absolute;
    right: 4px;
    bottom: 24px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #101225;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    font-size: 12px;
}

.story-name,
.story-meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.story-name {
    max-width: 88px;
    font-size: 12px;
}

.story-meta {
    color: var(--muted);
    font-size: 11px;
}

.story-arrow {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(14px);
}

.hero-info {
    margin-top: 24px;
    padding: clamp(24px, 5vw, 44px);
}

.theme-body .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .075);
    font-size: 13px;
    font-weight: 900;
}

.hero-info h1 {
    max-width: 900px;
    margin: 0;
    background: linear-gradient(90deg, #fff, #ffd6f7, #b8adff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero-info p {
    max-width: 880px;
    margin: 18px 0 28px;
    color: var(--muted);
    line-height: 1.85;
}

.search-panel {
    position: relative;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 26px;
    background: rgba(255, 255, 255, .065);
}

.search-control {
    width: 100%;
    min-height: 54px;
    padding: 0 18px 0 48px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-weight: 700;
    outline: none;
}

.search-control::placeholder {
    color: #9ea5bd;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 34px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 19px;
}

.theme-body section {
    padding-block: 72px;
}

.section-head {
    max-width: 880px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-head h2 {
    margin-bottom: 14px;
    font-size: clamp(34px, 4.5vw, 58px);
    font-weight: 900;
    letter-spacing: 0;
}

.section-head p {
    color: var(--muted);
    line-height: 1.8;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.filter-pill {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .065);
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 900;
}

.filter-pill.active,
.filter-pill:hover {
    background: linear-gradient(135deg, rgba(255, 0, 204, .85), rgba(124, 77, 255, .85));
}

.model-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 28px;
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .35);
    backdrop-filter: blur(22px);
    transition: transform .35s ease, box-shadow .35s ease;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 90px rgba(255, 0, 204, .2);
}

.model-img {
    position: relative;
    display: block;
    width: 100%;
    height: 372px;
    overflow: hidden;
    border: 0;
    background: #111827;
}

.model-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.model-card:hover .model-img img {
    transform: scale(1.06);
}

.model-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #070812 5%, rgba(7, 8, 18, .66) 32%, transparent 72%);
}

.badge-top {
    position: absolute;
    top: 16px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(14px);
}

.badge-online {
    left: 16px;
    border: 1px solid rgba(69, 255, 178, .35);
    color: #9affd8;
    background: rgba(69, 255, 178, .14);
}

.badge-vip {
    right: 16px;
    border: 1px solid rgba(255, 215, 106, .35);
    color: #ffe49a;
    background: rgba(255, 215, 106, .14);
}

.model-body {
    position: relative;
    z-index: 2;
    margin-top: -106px;
    padding: 24px;
}

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

.model-body h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.flag {
    color: var(--gold);
    font-size: 26px;
}

.rating {
    color: var(--gold);
    font-size: 13px;
    margin-top: 5px;
}

.meta-grid,
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 16px 0;
}

.meta,
.detail-box {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 15px;
    padding: 10px 12px;
    color: #eef1ff;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
}

.meta b,
.detail-box span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.price-block,
.modal-price-box {
    padding: 14px;
    border: 1px solid rgba(53, 214, 255, .24);
    border-radius: 18px;
    color: #c7fbff;
    background: rgba(53, 214, 255, .08);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.65;
    white-space: pre-line;
}

.modal-chat-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .08);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.modal-extra-box {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    color: #dbeafe;
    background: rgba(255, 255, 255, .07);
    font-size: 13px;
    line-height: 1.65;
}

.modal-extra-box:empty {
    display: none;
}

.modal-extra-box strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 10px;
    margin-top: 16px;
}

.mini-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 17px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
}

.model-modal-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 30px;
    color: #fff;
    background: rgba(12, 14, 28, .96);
    backdrop-filter: blur(26px);
    box-shadow: 0 40px 110px rgba(0, 0, 0, .65);
}

.modal-model-image {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    height: 100%;
    min-height: 620px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
}

.modal-gallery-item {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    padding: 0;
}

.modal-gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 590px;
    object-fit: cover;
    transition: transform .28s ease;
}

.modal-gallery-item:hover img {
    transform: scale(1.04);
}

.membership-theme-badge,
.seo-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 0, 204, .5);
    border-radius: 999px;
    color: #ffb8f3;
    background: rgba(255, 0, 204, .16);
    font-size: 13px;
    font-weight: 900;
}

.seo-card {
    height: 100%;
    padding: 24px;
}

.seo-card h3 {
    margin: 18px 0 10px;
    font-size: 1.25rem;
    font-weight: 900;
}

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

.chat-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 999;
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--pink), var(--violet));
    box-shadow: 0 20px 60px rgba(255, 0, 204, .35);
    font-size: 28px;
}

.chat-fab.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.site-chat-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: min(430px, calc(100vw - 24px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(.98);
    transition: opacity .22s ease, transform .22s ease;
}

.site-chat-widget.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.site-chat-widget .chat-card {
    width: 100%;
    height: min(720px, calc(100vh - 44px));
    min-height: 560px;
}

.chat-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.footer {
    padding: 54px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .035);
    backdrop-filter: blur(20px);
}

.admin-main-nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    padding-inline: 10px;
}

.admin-main-nav .nav-link:hover {
    background: rgba(255, 255, 255, .08);
}

@media (max-width: 991px) {
    .modal-model-image {
        min-height: 420px;
    }

    .modal-gallery {
        min-height: 420px;
    }

    .modal-gallery-item img {
        min-height: 390px;
    }
}

@media (max-width: 640px) {
    .theme-body section {
        padding-block: 46px;
    }

    .story-live,
    .story-arrow {
        display: none;
    }

    .model-img {
        height: 330px;
    }

    .site-chat-widget {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
    }

    .site-chat-widget .chat-card {
        height: min(680px, calc(100vh - 24px));
        min-height: 540px;
    }

    .modal-gallery {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .modal-gallery-item img {
        min-height: 220px;
        max-height: 260px;
    }
}
