:root {
    --bg-main: #020202;
    --bg-secondary: #090909;
    --border-red: rgba(125, 10, 10, 0.42);
    --text-main: #f6f6f6;
    --text-soft: #b8b8b8;
    --text-dim: #8d8d8d;
    --shadow-dark: rgba(0, 0, 0, 0.38);
    --doris-glow: rgba(180, 18, 18, 0.16);
    --stefan-glow: rgba(255, 255, 255, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top center, rgba(170, 18, 18, 0.12), transparent 24%),
        radial-gradient(circle at 50% 0%, rgba(255, 0, 0, 0.05), transparent 32%),
        linear-gradient(180deg, var(--bg-main) 0%, var(--bg-secondary) 100%);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 22px 22px 0;
    background: transparent;
}

.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    min-height: 118px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.97) 0%, rgba(10, 10, 10, 0.97) 100%);
    border: 1px solid var(--border-red);
    border-radius: 30px;
    box-shadow:
        0 18px 36px var(--shadow-dark),
        0 0 0 1px rgba(255, 255, 255, 0.015) inset,
        0 0 28px rgba(120, 10, 10, 0.10);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.topbar-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0%, transparent 28%),
        radial-gradient(circle at 20% 0%, rgba(190, 20, 20, 0.10), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(190, 20, 20, 0.08), transparent 26%);
    pointer-events: none;
}

.topbar-inner::after {
    content: "";
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(180, 20, 20, 0.18) 18%,
        rgba(180, 20, 20, 0.35) 50%,
        rgba(180, 20, 20, 0.18) 82%,
        transparent 100%
    );
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 320px;
    position: relative;
    z-index: 2;
}

.brand-logo {
    width: 170px;
    height: 88px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter:
        drop-shadow(0 0 10px rgba(190, 20, 20, 0.18))
        drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.04);
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.94) 0%, rgba(10, 10, 10, 0.94) 100%);
    border: 1px solid rgba(130, 12, 12, 0.45);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(0, 0, 0, 0.35),
        0 10px 20px rgba(0, 0, 0, 0.22),
        0 0 22px rgba(140, 10, 10, 0.10);
    position: relative;
    z-index: 2;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    padding: 11px 18px;
    text-decoration: none;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text-soft);
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.22s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 55%);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
}

.nav-link:hover {
    color: #ffffff;
    border-color: rgba(170, 18, 18, 0.55);
    background: linear-gradient(180deg, rgba(120, 10, 10, 0.36) 0%, rgba(70, 8, 8, 0.22) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 16px rgba(180, 18, 18, 0.20),
        0 0 28px rgba(180, 18, 18, 0.10);
    transform: translateY(-1px);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff;
    border-color: rgba(185, 20, 20, 0.65);
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.44) 0%, rgba(78, 10, 10, 0.28) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(185, 20, 20, 0.24),
        0 0 34px rgba(185, 20, 20, 0.12);
}

.nav-link.active::before {
    opacity: 1;
}

.topbar-info {
    min-width: 230px;
    text-align: right;
    line-height: 1.55;
    position: relative;
    z-index: 2;
}

#current-date {
    font-size: 0.96rem;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.03);
}

#current-time {
    font-size: 0.96rem;
    color: var(--text-soft);
}

.page-shell {
    max-width: 1360px;
    margin: 18px auto 0;
    padding: 0 22px 60px;
}

.content-panel {
    width: 100%;
    display: flex;
    justify-content: center;
}

.chat-shell,
.simple-panel {
    width: 100%;
    max-width: 1180px;
    min-height: 700px;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0.98) 0%, rgba(14, 14, 14, 0.98) 100%);
    border: 1px solid var(--border-red);
    border-radius: 30px;
    box-shadow:
        0 16px 34px rgba(0, 0, 0, 0.30),
        0 0 22px rgba(150, 15, 15, 0.08);
    position: relative;
    overflow: hidden;
}

.chat-shell::before,
.simple-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%),
        radial-gradient(circle at top right, rgba(185, 20, 20, 0.08), transparent 24%);
    pointer-events: none;
}

.chat-box {
    position: relative;
    z-index: 1;
    height: 590px;
    overflow-y: auto;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-row {
    display: flex;
    width: 100%;
}

.message-row.left {
    justify-content: flex-start;
}

.message-row.right {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(76%, 760px);
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(125, 10, 10, 0.28);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(12, 12, 12, 0.96) 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 0 16px rgba(140, 10, 10, 0.06);
}

.message-bubble.doris {
    border-color: rgba(165, 20, 20, 0.42);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.24),
        0 0 18px var(--doris-glow);
}

.message-bubble.stefan {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        0 0 14px var(--stefan-glow);
}

.message-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.message-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.message-name {
    font-size: 0.86rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.message-time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.message-delete,
.song-delete-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(160, 20, 20, 0.32);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.88);
    color: #d8d8d8;
    cursor: pointer;
    transition: all 0.18s ease;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.message-delete:hover,
.song-delete-btn:hover {
    color: #ffffff;
    border-color: rgba(185, 20, 20, 0.55);
    box-shadow: 0 0 14px rgba(185, 20, 20, 0.14);
    transform: scale(1.04);
}

.message-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.34rem;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.01em;
    color: #f1eeee;
    white-space: pre-wrap;
    word-break: break-word;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.02);
}

.chat-input-area {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 140px 1fr 130px;
    gap: 14px;
    align-items: end;
    padding: 18px 24px 24px;
    border-top: 1px solid rgba(125, 10, 10, 0.20);
}

.chat-author {
    height: 54px;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    padding: 0 14px;
    font: inherit;
    outline: none;
}

.chat-author:focus {
    border-color: rgba(180, 18, 18, 0.50);
    box-shadow:
        0 0 0 1px rgba(180, 18, 18, 0.18),
        0 0 16px rgba(180, 18, 18, 0.08);
}

.chat-input {
    min-height: 84px;
    max-height: 220px;
    resize: none;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    padding: 16px 18px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1.55;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    overflow-y: auto;
}

.chat-input::placeholder {
    color: #8f8a8a;
}

.chat-input:focus {
    border-color: rgba(180, 18, 18, 0.50);
    box-shadow:
        0 0 0 1px rgba(180, 18, 18, 0.18),
        0 0 16px rgba(180, 18, 18, 0.08);
}

.chat-send-btn,
.song-upload-btn,
.song-action-btn,
.song-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(185, 20, 20, 0.52);
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.44) 0%, rgba(78, 10, 10, 0.28) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(185, 20, 20, 0.16);
}

.chat-send-btn:hover,
.song-upload-btn:hover,
.song-action-btn:hover,
.song-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(185, 20, 20, 0.24);
}

.chat-send-btn:disabled,
.song-action-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0, 0, 0, 0.60);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.hidden {
    display: none !important;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
    border: 1px solid rgba(155, 18, 18, 0.38);
    border-radius: 24px;
    padding: 24px;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(155, 18, 18, 0.10);
}

.modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-text {
    margin-top: 10px;
    font-size: 0.96rem;
    color: var(--text-soft);
    line-height: 1.6;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    min-width: 110px;
    height: 46px;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cancel {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(22, 22, 22, 0.94);
    color: #ffffff;
}

.modal-cancel:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.modal-confirm {
    border: 1px solid rgba(185, 20, 20, 0.52);
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.44) 0%, rgba(78, 10, 10, 0.28) 100%);
    color: #ffffff;
    box-shadow: 0 0 18px rgba(185, 20, 20, 0.14);
}

.modal-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 24px rgba(185, 20, 20, 0.22);
}

/* LIEDER */

.songs-panel {
    width: 100%;
    max-width: 1180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.songs-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.song-file-input {
    display: none;
}

.song-upload-btn,
.song-action-btn,
.song-download-btn-inline,
.song-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(185, 20, 20, 0.52);
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.44) 0%, rgba(78, 10, 10, 0.28) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(185, 20, 20, 0.16);
}

.song-upload-btn:hover,
.song-action-btn:hover,
.song-download-btn-inline:hover,
.song-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(185, 20, 20, 0.24);
}

.song-action-btn:disabled,
.song-save-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.song-file-name {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(125, 10, 10, 0.28);
    background: rgba(10, 10, 10, 0.94);
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.songs-upload-note {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.5;
}

.songs-search-row {
    display: flex;
}

.songs-search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    padding: 0 18px;
    font: inherit;
    outline: none;
}

.songs-search-input:focus,
.song-title-input:focus,
.song-description-input:focus,
.song-comment-input:focus,
.song-comment-author:focus {
    border-color: rgba(180, 18, 18, 0.50);
    box-shadow:
        0 0 0 1px rgba(180, 18, 18, 0.18),
        0 0 16px rgba(180, 18, 18, 0.08);
}

.songs-status {
    min-height: 24px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.songs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.songs-empty {
    color: var(--text-dim);
    font-size: 1rem;
    padding: 10px 2px;
}

.song-card {
    border-radius: 22px;
    border: 1px solid rgba(125, 10, 10, 0.24);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(11, 11, 11, 0.96) 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        0 0 12px rgba(140, 10, 10, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
}

.song-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.song-card-head-left {
    min-width: 0;
    flex: 1;
}

.song-card-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #f2ecec;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.song-card-meta {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.song-card-head-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.song-order-btn,
.song-delete-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    font: inherit;
}

.song-order-btn:hover,
.song-delete-btn:hover {
    color: #ffffff;
    background: rgba(120, 10, 10, 0.18);
}

.song-mini-description {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    color: #ece6e6;
    line-height: 1.35;
    min-height: 1.35em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-mini-description.empty {
    opacity: 0;
}

.song-audio {
    width: 100%;
    border-radius: 14px;
}

.song-mini-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.song-mini-icon-btn {
    min-height: 32px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font: inherit;
    font-size: 0.84rem;
}

.song-mini-icon-btn:hover {
    color: #ffffff;
    background: rgba(120, 10, 10, 0.18);
}

.song-mini-icon-btn.liked {
    color: #ffffff;
    box-shadow: 0 0 18px rgba(185, 20, 20, 0.20);
}

.song-mini-count {
    font-size: 0.8rem;
    font-weight: 600;
}

.song-download-btn-inline {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.song-expand-wrap {
    border: 1px solid rgba(125, 10, 10, 0.18);
    border-radius: 18px;
    padding: 14px;
    background: rgba(9, 9, 9, 0.72);
    display: grid;
    gap: 14px;
}

.song-edit-block,
.song-description-block,
.song-comments-block {
    display: grid;
    gap: 10px;
}

.song-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.song-edit-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.song-title-input,
.song-description-input,
.song-comment-input,
.song-comment-author {
    width: 100%;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    font: inherit;
    outline: none;
}

.song-title-input {
    min-height: 46px;
    padding: 0 14px;
}

.song-description-view {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.55;
    color: #f1eeee;
    min-height: 28px;
    word-break: break-word;
}

.song-description-edit-row {
    display: grid;
    gap: 10px;
}

.song-description-input,
.song-comment-input {
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.song-comments-list {
    display: grid;
    gap: 10px;
}

.song-comments-empty {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.song-comment-item {
    border: 1px solid rgba(125, 10, 10, 0.18);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(14, 14, 14, 0.92);
}

.song-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.song-comment-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.song-comment-author-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.song-comment-time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.song-comment-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.song-comment-delete-btn:hover {
    color: #ffffff;
    background: rgba(120, 10, 10, 0.18);
}

.song-comment-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #f1eeee;
    word-break: break-word;
}

.song-comment-form {
    display: grid;
    gap: 10px;
}

.song-comment-author {
    min-height: 46px;
    padding: 0 14px;
}

#song-delete-modal,
#song-comment-delete-modal {
    z-index: 7000;
}

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

@media (max-width: 800px) {
    .songs-topbar {
        grid-template-columns: 1fr;
    }

    .song-upload-btn,
    .song-action-btn,
    .song-download-btn-inline,
    .song-save-btn {
        width: 100%;
    }

    .song-file-name {
        width: 100%;
    }

    .song-edit-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .songs-panel {
        padding: 18px;
    }

    .song-mini-actions {
        justify-content: space-between;
    }

    .song-card {
        padding: 12px;
    }

    .song-card-title {
        font-size: 1.2rem;
    }
}
/* BILDER */

.images-panel {
    width: 100%;
    max-width: 1180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.images-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.images-search-row {
    display: flex;
}

.images-search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 18px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    padding: 0 18px;
    font: inherit;
    outline: none;
}

.images-search-input:focus,
.image-description-input:focus,
.image-comment-input:focus,
.image-comment-author:focus {
    border-color: rgba(180, 18, 18, 0.50);
    box-shadow:
        0 0 0 1px rgba(180, 18, 18, 0.18),
        0 0 16px rgba(180, 18, 18, 0.08);
}

.image-file-input {
    display: none;
}

.image-upload-btn,
.image-action-btn,
.image-download-btn,
.image-save-btn,
.image-heart-btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(185, 20, 20, 0.52);
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.44) 0%, rgba(78, 10, 10, 0.28) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 18px rgba(185, 20, 20, 0.16);
}

.image-upload-btn:hover,
.image-action-btn:hover,
.image-download-btn:hover,
.image-save-btn:hover,
.image-heart-btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 22px rgba(185, 20, 20, 0.24);
}

.image-action-btn:disabled,
.image-save-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}

.image-file-name {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid rgba(125, 10, 10, 0.28);
    background: rgba(10, 10, 10, 0.94);
    color: var(--text-soft);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.images-status {
    min-height: 24px;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    align-items: start;
}

.images-empty {
    color: var(--text-dim);
    font-size: 1rem;
    padding: 10px 2px;
}

.image-card {
    border-radius: 20px;
    border: 1px solid rgba(125, 10, 10, 0.22);
    background: linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(11, 11, 11, 0.96) 100%);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.18),
        0 0 12px rgba(140, 10, 10, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-preview-btn {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: block;
}

.image-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #111;
}

.image-card-bottom {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.image-mini-date {
    font-size: 0.76rem;
    color: var(--text-dim);
}

.image-mini-description {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1rem;
    color: #ece6e6;
    line-height: 1.35;
    min-height: 1.35em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-mini-description.empty {
    opacity: 0;
}

.image-mini-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.image-mini-icon-btn,
.image-mini-delete-btn {
    min-height: 32px;
    padding: 0 8px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font: inherit;
    font-size: 0.84rem;
}

.image-mini-icon-btn:hover,
.image-mini-delete-btn:hover {
    color: #ffffff;
    background: rgba(120, 10, 10, 0.18);
}

.image-mini-icon-btn.liked,
.image-heart-btn-detail.liked {
    color: #ffffff;
    box-shadow: 0 0 18px rgba(185, 20, 20, 0.20);
}

.image-mini-count {
    font-size: 0.8rem;
    font-weight: 600;
}

.image-detail-box {
    max-width: 1200px;
    width: 100%;
    max-height: 92vh;
    overflow: auto;
}

.image-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 18px;
}

.image-detail-left {
    min-width: 0;
}

.image-detail-right {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.image-detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-right: 46px;
}

.image-detail-date {
    color: var(--text-dim);
    font-size: 0.92rem;
}

.image-detail-actions-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-right: 12px;
}

.image-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.image-description-block,
.image-comments-block {
    border: 1px solid rgba(125, 10, 10, 0.18);
    border-radius: 18px;
    padding: 14px;
    background: rgba(9, 9, 9, 0.72);
}

.image-description-view {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.55;
    color: #f1eeee;
    min-height: 28px;
    word-break: break-word;
}

.image-description-edit-row {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.image-description-input,
.image-comment-input,
.image-comment-author {
    width: 100%;
    border: 1px solid rgba(125, 10, 10, 0.30);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.94);
    color: #ffffff;
    font: inherit;
    outline: none;
}

.image-description-input,
.image-comment-input {
    min-height: 88px;
    padding: 12px 14px;
    resize: vertical;
}

.image-comment-author {
    min-height: 46px;
    padding: 0 14px;
}

.image-comments-list {
    display: grid;
    gap: 10px;
}

.image-comments-empty {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.image-comment-item {
    border: 1px solid rgba(125, 10, 10, 0.18);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(14, 14, 14, 0.92);
}

.image-comment-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.image-comment-meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.image-comment-author-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

.image-comment-time {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.image-comment-delete-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text-soft);
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.image-comment-delete-btn:hover {
    color: #ffffff;
    background: rgba(120, 10, 10, 0.18);
}

.image-comment-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.5;
    color: #f1eeee;
    word-break: break-word;
}

.image-comment-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.lightbox-box {
    width: 100%;
    background: linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(18, 18, 18, 0.98) 100%);
    border: 1px solid rgba(155, 18, 18, 0.38);
    border-radius: 24px;
    padding: 18px;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.34),
        0 0 24px rgba(155, 18, 18, 0.10);
    position: relative;
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(160, 20, 20, 0.32);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.88);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.lightbox-image {
    width: 100%;
    max-height: 76vh;
    object-fit: contain;
    border-radius: 16px;
    background: #080808;
}

.lightbox-caption {
    margin-top: 12px;
    color: var(--text-soft);
    text-align: center;
    word-break: break-word;
}

#image-delete-modal,
#comment-delete-modal {
    z-index: 7000;
}

@media (max-width: 980px) {
    .image-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .images-topbar {
        grid-template-columns: 1fr;
    }

    .image-upload-btn,
    .image-action-btn,
    .image-download-btn,
    .image-save-btn,
    .image-heart-btn-detail {
        width: 100%;
    }

    .image-file-name {
        width: 100%;
    }

    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 700px) {
    .images-panel {
        padding: 18px;
    }

    .lightbox-box {
        padding: 14px;
    }

    .images-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .image-detail-actions-top {
        width: 100%;
        margin-right: 0;
    }

    .image-detail-topline {
        padding-right: 44px;
    }

    .image-detail-actions-top .image-download-btn,
    .image-detail-actions-top .image-heart-btn-detail {
        flex: 1;
    }
}

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

    .image-mini-actions {
        justify-content: space-between;
    }
}
/* KI */

.ki-panel {
    width: 100%;
    max-width: 1180px;
    padding: 34px 28px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
}

.ki-intro {
    width: 100%;
    max-width: 820px;
    text-align: center;
}

.ki-intro p {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.45;
    color: #f2ecec;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.03);
}

.ki-image-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ki-cora-image {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    object-fit: contain;
    filter:
        drop-shadow(0 0 18px rgba(185, 20, 20, 0.10))
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.26));
}

.ki-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ki-word-logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0.92;
    filter:
        drop-shadow(0 0 10px rgba(185, 20, 20, 0.05))
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
}

.ki-logo-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-align: center;
}

@media (max-width: 700px) {
    .ki-panel {
        padding: 24px 18px 30px;
        gap: 26px;
    }

    .ki-intro p {
        font-size: 1.4rem;
    }

    .ki-cora-image {
        max-width: 260px;
    }

    .ki-word-logo {
        max-width: 190px;
    }
}
/* HOME CHAT FIX */

.home-panel {
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 8px;
}

.home-intro-text {
    width: 100%;
    max-width: 1180px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.5;
    padding: 0 8px;
}

@media (max-width: 800px) {
    .chat-input-area {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .chat-author,
    .chat-send-btn {
        width: 100%;
    }

    .chat-input {
        width: 100%;
        min-height: 120px;
        max-height: 260px;
    }
}

@media (max-width: 700px) {
    .home-panel {
        gap: 10px;
        padding-top: 4px;
    }

    .home-intro-text {
        font-size: 0.93rem;
        line-height: 1.45;
        padding: 0 4px;
    }

    .chat-shell {
        min-height: 560px;
    }

    .chat-box {
        height: 360px;
    }

    .chat-input-area {
        padding: 16px 18px 18px;
        gap: 10px;
    }

    .chat-input {
        min-height: 130px;
        font-size: 1.08rem;
    }
}

@media (max-width: 520px) {
    .home-panel {
        gap: 8px;
        padding-top: 2px;
    }

    .home-intro-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .chat-shell {
        min-height: 540px;
    }

    .chat-box {
        height: 330px;
    }

    .chat-input {
        min-height: 135px;
    }
}
/* MOBILE NAV FIX */

@media (max-width: 700px) {
    .topbar-inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .brand {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .brand-logo {
        width: 110px;
        height: 58px;
    }

    .brand-text {
        min-width: 0;
        flex: 1;
    }

    .brand-title {
        font-size: 0.98rem;
        line-height: 1.2;
    }

    .brand-subtitle {
        font-size: 0.78rem;
        line-height: 1.25;
        word-break: break-word;
    }

    .main-nav {
        width: 100%;
        justify-self: stretch;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
        border-radius: 22px;
    }

    .nav-link {
        min-width: 0;
        flex: 1 1 calc(50% - 8px);
        max-width: calc(50% - 4px);
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .topbar-info {
        width: 100%;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .topbar {
        padding: 10px 10px 0;
    }

    .topbar-inner {
        padding: 14px;
        gap: 12px;
        border-radius: 20px;
    }

    .brand {
        align-items: center;
    }

    .brand-logo {
        width: 92px;
        height: 50px;
    }

    .brand-title {
        font-size: 0.92rem;
    }

    .brand-subtitle {
        font-size: 0.74rem;
    }

    .main-nav {
        gap: 6px;
        padding: 6px;
    }

    .nav-link {
        flex: 1 1 100%;
        max-width: 100%;
        font-size: 0.88rem;
        padding: 10px 10px;
    }

    #current-date,
    #current-time {
        font-size: 0.85rem;
    }
}
/* FINAL MOBILE TOPBAR FIX */

@media (max-width: 700px) {
    .topbar {
        position: static !important;
        top: auto !important;
        padding: 10px 10px 0 !important;
    }

    .topbar-inner {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px 14px !important;
        border-radius: 20px !important;
        min-height: unset !important;
    }

    .topbar-inner::after {
        left: 14px !important;
        right: 14px !important;
    }

    .brand {
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .brand-logo {
        width: 82px !important;
        height: 46px !important;
    }

    .brand-text {
        min-width: 0 !important;
        flex: 1 !important;
    }

    .brand-title {
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
    }

    .brand-subtitle {
        margin-top: 2px !important;
        font-size: 0.72rem !important;
        line-height: 1.2 !important;
        word-break: break-word !important;
    }

    .main-nav {
        width: 100% !important;
        justify-self: stretch !important;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 6px !important;
        padding: 6px !important;
        border-radius: 18px !important;
    }

    .nav-link {
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
        padding: 8px 6px !important;
        font-size: 0.82rem !important;
        line-height: 1.15 !important;
    }

    .topbar-info {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }

    #current-date {
        font-size: 0.8rem !important;
    }

    #current-time {
        font-size: 0.78rem !important;
    }

    .page-shell {
        margin-top: 10px !important;
        padding: 0 10px 34px !important;
    }

    .home-panel {
        gap: 8px !important;
        padding-top: 0 !important;
    }

    .home-intro-text {
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
        padding: 0 2px !important;
    }

    .chat-shell {
        min-height: 520px !important;
    }

    .chat-box {
        height: 320px !important;
        padding: 16px !important;
    }

    .chat-input-area {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 14px 16px 16px !important;
    }

    .chat-author,
    .chat-send-btn {
        width: 100% !important;
    }

    .chat-input {
        width: 100% !important;
        min-height: 120px !important;
        max-height: 240px !important;
        font-size: 1.02rem !important;
    }
}

@media (max-width: 520px) {
    .topbar {
        padding: 8px 8px 0 !important;
    }

    .topbar-inner {
        padding: 10px 12px !important;
        gap: 8px !important;
        border-radius: 18px !important;
    }

    .brand-logo {
        width: 74px !important;
        height: 42px !important;
    }

    .brand-title {
        font-size: 0.84rem !important;
    }

    .brand-subtitle {
        font-size: 0.68rem !important;
    }

    .main-nav {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 5px !important;
    }

    .nav-link {
        padding: 8px 4px !important;
        font-size: 0.76rem !important;
    }

    #current-date {
        font-size: 0.74rem !important;
    }

    #current-time {
        font-size: 0.72rem !important;
    }

    .page-shell {
        margin-top: 8px !important;
        padding: 0 8px 28px !important;
    }

    .home-intro-text {
        font-size: 0.84rem !important;
    }

    .chat-shell {
        min-height: 500px !important;
    }

    .chat-box {
        height: 300px !important;
    }

    .chat-input {
        min-height: 118px !important;
        font-size: 1rem !important;
    }
}
/* LOGIN PAGE */

.login-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(120, 10, 10, 0.18) 0%, rgba(8, 8, 8, 0) 42%),
        linear-gradient(180deg, #080808 0%, #050505 100%);
    font-family: "Inter", Arial, sans-serif;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 470px;
    background:
        linear-gradient(180deg, rgba(12, 12, 12, 0.98) 0%, rgba(6, 6, 6, 0.98) 100%);
    border: 1px solid rgba(165, 18, 18, 0.34);
    border-radius: 30px;
    padding: 34px 34px 30px;
    box-shadow:
        0 20px 48px rgba(0, 0, 0, 0.42),
        0 0 32px rgba(150, 18, 18, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%);
    opacity: 0.8;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    padding-top: 18px;
}

.login-logo {
    width: 120px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 12px rgba(170, 20, 20, 0.14));
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    width: 100%;
}

.login-input {
    width: 100%;
    min-height: 58px;
    border: 1px solid rgba(150, 18, 18, 0.22);
    border-radius: 18px;
    background: #0d0d0d;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    padding: 0 18px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.02),
        0 0 0 rgba(0,0,0,0);
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.52);
}

.login-input:focus {
    border-color: rgba(190, 25, 25, 0.48);
    box-shadow:
        0 0 0 1px rgba(190, 25, 25, 0.20),
        0 0 18px rgba(190, 25, 25, 0.12);
}

.login-btn {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(185, 20, 20, 0.52);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(150, 18, 18, 0.92) 0%, rgba(95, 10, 10, 0.96) 100%);
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 10px 24px rgba(120, 10, 10, 0.24),
        0 0 20px rgba(170, 18, 18, 0.12);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 14px 28px rgba(120, 10, 10, 0.28),
        0 0 24px rgba(170, 18, 18, 0.18);
}

.login-btn:active {
    transform: translateY(0);
}

.login-error {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(170, 18, 18, 0.30);
    border-radius: 16px;
    background: rgba(95, 10, 10, 0.18);
    color: #ffd9d9;
    text-align: center;
    font-size: 0.92rem;
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .login-body {
        padding: 18px;
    }

    .login-card {
        max-width: 100%;
        padding: 28px 22px 24px;
        border-radius: 24px;
    }

    .login-card::before {
        left: 20px;
        right: 20px;
    }

    .login-logo {
        width: 96px;
    }

    .login-input,
    .login-btn {
        min-height: 54px;
    }
}

@media (max-width: 420px) {
    .login-body {
        padding: 14px;
    }

    .login-card {
        padding: 24px 18px 20px;
    }

    .login-logo {
        width: 82px;
    }
}
/* LOGIN BUTTON SMALLER */

.login-form {
    align-items: center;
}

.login-btn {
    width: 180px;
    max-width: 100%;
}

@media (max-width: 700px) {
    .login-btn {
        width: 100%;
    }
}
/* LOGIN BUTTON SLIM */

.login-btn {
    width: 160px;
    min-height: 42px;
    padding: 0 16px;
    font-size: 0.92rem;
    border-radius: 14px;
}

@media (max-width: 700px) {
    .login-btn {
        width: 100%;
        min-height: 48px;
    }
}
/* LOGIN INPUTS SLIM */

.login-input {
    min-height: 46px;
    border-radius: 14px;
    font-size: 0.95rem;
    padding: 0 16px;
}

@media (max-width: 700px) {
    .login-input {
        min-height: 48px;
    }
}
/* LOGIN REMEMBER / SHOW PASSWORD */

.login-password-wrap {
    position: relative;
}

.login-password-wrap .login-input {
    padding-right: 118px;
}

.login-show-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(150, 18, 18, 0.26);
    border-radius: 12px;
    background: rgba(18, 18, 18, 0.96);
    color: rgba(255, 255, 255, 0.82);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.login-show-btn:hover {
    border-color: rgba(185, 20, 20, 0.38);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(170, 18, 18, 0.10);
}

.login-remember-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
}

.login-remember-check {
    width: 16px;
    height: 16px;
    accent-color: #8b1212;
}

@media (max-width: 700px) {
    .login-password-wrap .login-input {
        padding-right: 108px;
    }

    .login-show-btn {
        min-height: 32px;
        font-size: 0.78rem;
        padding: 0 10px;
    }

    .login-remember-row {
        font-size: 0.88rem;
    }
}
/* CHAT FEINSCHLIFF SIMPLE */

.chat-input-area-simple {
    grid-template-columns: 1fr auto !important;
    align-items: end !important;
    gap: 14px !important;
}

.chat-input-area-simple .chat-input {
    width: 100% !important;
    min-height: 76px !important;
    max-height: 220px !important;
}

.chat-input-area-simple .chat-send-btn {
    width: 150px !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    font-size: 0.92rem !important;
    border-radius: 14px !important;
    justify-self: end !important;
    align-self: end !important;
}

.chat-box {
    scrollbar-width: thin;
    scrollbar-color: rgba(170, 18, 18, 0.55) rgba(10, 10, 10, 0.95);
}

.chat-box::-webkit-scrollbar {
    width: 10px;
}

.chat-box::-webkit-scrollbar-track {
    background: rgba(10, 10, 10, 0.95);
    border-radius: 999px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(120, 10, 10, 0.88) 0%, rgba(70, 8, 8, 0.95) 100%);
    border-radius: 999px;
    border: 2px solid rgba(10, 10, 10, 0.95);
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(150, 18, 18, 0.92) 0%, rgba(85, 10, 10, 0.96) 100%);
}

@media (max-width: 800px) {
    .chat-input-area-simple {
        grid-template-columns: 1fr !important;
    }

    .chat-input-area-simple .chat-send-btn {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
    }

    .chat-input-area-simple .chat-input {
        min-height: 120px !important;
    }
}
/* KONTO */

.account-panel {
    width: 100%;
    max-width: 720px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-title {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    color: #f2ecec;
}

.account-user-box {
    border: 1px solid rgba(125, 10, 10, 0.22);
    border-radius: 20px;
    background: rgba(11, 11, 11, 0.92);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.account-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
}

.account-username {
    font-size: 0.95rem;
    color: var(--text-soft);
}

.account-message {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.account-error {
    border: 1px solid rgba(170, 18, 18, 0.30);
    background: rgba(95, 10, 10, 0.18);
    color: #ffd9d9;
}

.account-success {
    border: 1px solid rgba(80, 140, 80, 0.30);
    background: rgba(40, 90, 40, 0.18);
    color: #ddffdd;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-field-label {
    font-size: 0.92rem;
    color: #ffffff;
}

.account-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(150, 18, 18, 0.22);
    border-radius: 14px;
    background: #0d0d0d;
    color: #ffffff;
    font: inherit;
    font-size: 0.96rem;
    padding: 0 16px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.account-input:focus {
    border-color: rgba(190, 25, 25, 0.48);
    box-shadow:
        0 0 0 1px rgba(190, 25, 25, 0.20),
        0 0 18px rgba(190, 25, 25, 0.12);
}

.account-save-btn {
    width: 190px;
    max-width: 100%;
    min-height: 42px;
    border: 1px solid rgba(185, 20, 20, 0.48);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(145, 16, 16, 0.88) 0%, rgba(90, 10, 10, 0.94) 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(120, 10, 10, 0.20);
}

.account-save-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .account-panel {
        padding: 20px;
    }

    .account-title {
        font-size: 1.7rem;
    }

    .account-save-btn {
        width: 100%;
    }
}
/* KONTO TOOLS */

.account-tools-box {
    border: 1px solid rgba(125, 10, 10, 0.22);
    border-radius: 20px;
    background: rgba(11, 11, 11, 0.92);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.account-tools-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.account-tools-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-tool-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(185, 20, 20, 0.40);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(135, 14, 14, 0.38) 0%, rgba(78, 10, 10, 0.24) 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 16px rgba(185, 20, 20, 0.10);
}

.account-tool-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(185, 20, 20, 0.18);
}

.account-tools-status {
    font-size: 0.92rem;
    color: var(--text-soft);
    line-height: 1.45;
}

@media (max-width: 700px) {
    .account-tools-buttons {
        flex-direction: column;
    }

    .account-tool-btn {
        width: 100%;
    }
}
/* FINAL CHAT MOBILE FIX */

@media (max-width: 700px) {
    .topbar {
        margin-bottom: 10px;
    }

    .page-shell {
        padding-bottom: 10px;
    }

    .content-panel {
        padding-top: 4px;
    }

    .chat-info-text,
    .chat-intro-text,
    .home-chat-info {
        margin: 6px 0 10px !important;
    }

    #messages,
    .messages,
    .chat-messages,
    .chat-box,
    .chat-scroll-area,
    .message-list {
        min-height: 56vh !important;
        max-height: none !important;
        padding-bottom: 10px !important;
    }

    #chat-form,
    .chat-form,
    .chat-input-area,
    .message-form {
        margin-top: 8px !important;
        gap: 10px !important;
    }

    #message-input,
    .chat-textarea,
    .message-input,
    textarea[name="content"] {
        min-height: 130px !important;
        max-height: 220px !important;
        height: 130px !important;
    }

    #send-button,
    .chat-send-btn,
    .message-send-btn,
    .send-btn {
        min-height: 52px !important;
    }
}
