/* ===================== KUKALA — COMPONENTS ===================== */
*,
*::before,
*::after {
    font-style: normal !important;
}

/* ===================== ART GRID ===================== */
.grid-section {
    padding: 24px 24px 60px;
}

.grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.grid-title {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: 2px;
}

.grid-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
}

.art-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.art-grid .masonry-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 480px) {
    /* JS dynamically adds columns, CSS just handles gaps */
}

@media (min-width: 768px) {
    .art-grid {
        gap: 14px;
    }

    .art-grid .masonry-col {
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    .art-grid {
        gap: 16px;
    }

    .art-grid .masonry-col {
        gap: 16px;
    }
}

@media (min-width: 1440px) {
    /* Handled by JS Col Count */
}

/* List View Logic — Professional Refinement */
.art-grid.list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.art-grid.list .masonry-col {
    display: contents;
    /* Strip columns in list mode */
}

.art-grid.list .art-card {
    display: flex;
    flex-direction: row;
    height: auto;
    min-height: 180px;
    align-items: stretch;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.art-grid.list .art-card .art-img-wrap {
    width: 200px;
    /* Made slightly wider to fit proportions better */
    height: auto;
    /* Let it stretch if necessary or be constrained by container */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    /* So inner elements can fill height */
}

/* Specific to list mode inner generated div */
.art-grid.list .art-card .art-img-wrap>div:not(.watermark):not(.card-wm-layer):not(.art-protect-blur) {
    height: 100% !important;
    /* Override inline heights for list rendering */
    width: 100%;
}

.art-grid.list .art-card .art-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.art-grid.list .art-card .art-overlay {
    position: static;
    opacity: 1;
    background: transparent;
    flex: 1;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
}

.art-grid.list .art-card .art-title-ov {
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: var(--font-serif);
}

.art-grid.list .art-card .art-artist-ov {
    color: var(--mid);
    font-size: 13px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.art-grid.list .art-card .art-price-ov {
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--ember);
}

.art-grid.list .art-card .art-actions-ov {
    margin-top: auto;
    width: 100%;
    max-width: 300px;
    padding-top: 12px;
}

.art-grid.list .art-card .art-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
}

.art-grid.list .art-card .art-list-stats {
    display: flex !important;
}

.art-card {
    break-inside: avoid;
    margin-bottom: 16px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.05s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.05s;
    cursor: pointer;
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.art-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.art-card:hover .art-overlay {
    opacity: 1;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.art-img {
    width: 100%;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

.art-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.05s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.art-title-ov {
    font-family: var(--font-serif);
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}

.art-artist-ov {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.art-price-ov {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--gold);
    margin-top: 8px;
}

.art-actions-ov {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.art-btn {
    flex: 1;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    font-weight: 700;
    transition: all 0.05s;
}

.art-btn.buy {
    background: var(--ember);
    color: #fff;
}

.art-btn.buy:hover {
    background: #ff6030;
}

.art-btn.view {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.art-grid.list .art-card .art-badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-bottom: 12px;
}

/* Badges */
.art-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    z-index: 6;
    width: fit-content;
}

.art-badge.for-sale {
    background: var(--gold);
    color: var(--ink);
}

.art-badge.sold {
    background: var(--ink);
    color: var(--paper);
}

.art-badge.new {
    background: var(--ember);
    color: #fff;
}

.art-badge.bid-featured {
    background: linear-gradient(135deg, var(--violet), var(--ember));
    color: #fff;
    animation: bidPulse 2s ease-in-out infinite;
}

@keyframes bidPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.no-right-click {
    pointer-events: none;
    user-select: none;
}

.art-img-wrap {
    position: relative;
    overflow: hidden;
}

.watermark {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    pointer-events: all;
}

/* ===================== WATERMARKS ===================== */
.art-wm {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.18);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: lowercase;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.art-wm-tl {
    top: 12px;
    left: 12px;
    transform: rotate(-8deg);
}

.art-wm-mid {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.12);
}

.art-wm-br {
    bottom: 12px;
    right: 12px;
    transform: rotate(-8deg);
}

.card-wm-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.card-wm {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 700;
    letter-spacing: 0.5px;
    pointer-events: none;
    user-select: none;
}

.card-wm-tl {
    top: 6px;
    left: 8px;
    transform: rotate(-5deg);
}

.card-wm-mid {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.10);
}

.card-wm-br {
    bottom: 6px;
    right: 8px;
    transform: rotate(-5deg);
}

/* Protection overlay */
.art-protect-blur {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(15, 15, 15, 0.25);
    backdrop-filter: grayscale(0.8) contrast(0.9) blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 1;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.art-card:hover .art-protect-blur {
    backdrop-filter: grayscale(0.4) blur(1px);
    background: rgba(15, 15, 15, 0.15);
}

.art-protect-blur.show {
    opacity: 1;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(14px);
}

.art-protect-blur .pb-icon {
    font-size: 28px;
}

.art-protect-blur .pb-text {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    letter-spacing: 1px;
}

/* ===================== IMAGE PROTECTION ===================== */
.art-img-wrap,
.adm-img-side,
.art-detail-modal #adm-emoji {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    /* Removed blocking ::after layer to restore clickability */
}

/* ===================== MODALS ===================== */
.modal-bg {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.modal-bg.open {
    display: flex;
}

.modal {
    background: var(--cream);
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    border: 2px solid var(--ember);
    animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 18px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--mid);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 36px;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--ink);
    font-style: normal !important;
}

.modal-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

/* ===================== FORMS ===================== */
.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--mid);
    margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.05s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--ember);
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-full {
    width: 100%;
    padding: 14px;
    background: var(--ember);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: 3px;
    transition: all 0.05s;
}

.btn-full:hover {
    background: #ff6030;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 61, 0, 0.3);
}

.form-switch {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
    font-style: normal !important;
}

.form-switch a {
    color: var(--ember);
    cursor: pointer;
}

/* Dark field (for dashboards) */
.dark-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
}

.dark-field input,
.dark-field select,
.dark-field textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--paper);
    outline: none;
    transition: border-color 0.05s;
}

.dark-field input:focus,
.dark-field select:focus,
.dark-field textarea:focus {
    border-color: var(--ember);
}

.dark-field select option {
    background: var(--charcoal);
    color: var(--paper);
    /* Explicit text color for dark mode options */
}

/* Light mode overrides for form fields */
body.light-mode .dark-field select option {
    background: var(--paper);
    color: var(--ink);
}

.dark-field textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* Toggle */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.toggle-info .tl {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--paper);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toggle-info .ts {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

.toggle {
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    cursor: pointer;
    transition: background 0.05s;
    border: none;
    flex-shrink: 0;
}

.toggle.on {
    background: var(--ember);
}

.toggle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.05s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.toggle.on::after {
    transform: translateX(24px);
}

/* ===================== FLOATING TOOLBAR ===================== */
.float-toolbar {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink);
    border: 1px solid rgba(255, 61, 0, 0.4);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    z-index: 990;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.ftool-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 40px;
    color: rgba(245, 240, 232, 0.6);
    background: transparent;
    transition: all 0.05s;
}

.ftool-btn:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, 0.08);
}

.ftool-btn.active {
    color: var(--ink);
    background: var(--ember);
}

.ftool-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

/* ===================== PAYMENT MODAL ===================== */
.fw-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.fw-badge {
    background: #f5a623;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 16px;
    letter-spacing: 1px;
}

.fw-tagline {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--mid);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.pm-chip {
    padding: 10px 8px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.05s;
}

.pm-chip:hover {
    border-color: var(--ember);
}

.pm-chip.selected {
    background: var(--ember);
    border-color: var(--ember);
    color: #fff;
}

.pm-chip-icon {
    font-size: 18px;
    display: block;
    margin-bottom: 4px;
}

.order-summary {
    background: rgba(245, 197, 24, 0.06);
    border: 1.5px solid rgba(245, 197, 24, 0.2);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.os-row {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
    margin-bottom: 6px;
}

.os-row.total {
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 8px;
    margin-top: 6px;
}

/* ===================== ARTWORK DETAIL MODAL ===================== */
.art-detail-modal {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    height: 85vh;
    max-height: 700px;
}

.adm-img-side {
    background: #0a0a0a;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.adm-img-side i {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.adm-img-placeholder {
    font-size: 120px;
    opacity: 0.15;
}

.adm-img-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 10px;
    border-radius: 4px;
}

.adm-info-side {
    padding: 32px;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    border-radius: 0 8px 8px 0;
    overflow-y: auto;
}

#adm-physical-badge,
#adm-dimensions {
    font-style: normal !important;
}

.adm-art-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--ink);
    margin-bottom: 6px;
    font-style: normal !important;
}

.adm-artist {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-style: normal !important;
}

.adm-price {
    font-family: var(--font-display);
    font-size: 40px;
    color: var(--ember);
    margin-bottom: 20px;
    font-style: normal !important;
}

.adm-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.adm-meta-chip {
    padding: 6px 12px;
    background: rgba(10, 9, 8, 0.06);
    border-radius: 30px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--mid);
    text-transform: uppercase;
    font-style: normal !important;
}

.adm-desc {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 15px;
    color: var(--mid);
    line-height: 1.6;
    margin-bottom: 24px;
    font-style: normal !important;
}

.adm-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-gallery-thumb {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: border-color 0.05s;
    flex-shrink: 0;
}

.adm-gallery-thumb.active {
    border-color: var(--ember);
}

.adm-gallery-thumb:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Upload previews */
.img-preview-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.05s;
}

.img-preview-thumb:first-child {
    border-color: var(--ember);
}

.img-preview-thumb:first-child::after {
    content: 'COVER';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--ember);
    white-space: nowrap;
}

.img-preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Notification Toast */
.toast {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 9999;
    background: var(--ink);
    color: var(--paper);
    padding: 14px 20px;
    border-radius: 6px;
    border-left: 4px solid var(--ember);
    font-family: var(--font-mono);
    font-size: 11px;
    transform: translateX(120%);
    transition: transform 0.05s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 300px;
    font-style: normal !important;
}

.toast.show {
    transform: translateX(0);
}

/* ===================== LIVE CHAT WIDGET ===================== */
.chat-widget-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.chat-widget-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-widget-trigger.active {
    background: var(--ember);
    transform: rotate(90deg);
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    max-width: calc(100vw - 60px);
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: var(--card-bg);
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: var(--paper);
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--gold);
    color: #000;
    border-bottom-right-radius: 2px;
}

.chat-footer {
    padding: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}