@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --bg: #0c0c0f;
    --bg-2: #141418;
    --surface: rgba(20, 20, 24, 0.92);
    --surface-2: rgba(27, 27, 32, 0.96);
    --text: #f7f7f8;
    --muted: #a6a6ad;
    --line: rgba(255, 255, 255, 0.12);
    --primary: #ff5a1f;
    --primary-2: #ff7a3d;
    --danger: #ff7a8a;
    --ok: #66f5b1;
    --radius: 14px;
    --shadow: 0 22px 48px rgba(3, 8, 20, 0.52);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    padding-top: 76px;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: #0f1013;
    overflow-x: hidden;
}

.bg-layer {
    display: none;
}

.stars {
    display: none;
}

@keyframes drift {
    from { transform: translateY(0); }
    to { transform: translateY(-320px); }
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

small {
    color: var(--muted);
}

label {
    display: block;
    margin-top: 6px;
    color: #dbe4ff;
    font-size: 0.92rem;
    font-weight: 600;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    background: rgba(10, 15, 28, 0.9);
    color: var(--text);
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: 0;
    border-color: rgba(116, 178, 255, 0.76);
    box-shadow: 0 0 0 3px rgba(116, 178, 255, 0.15);
}

input::placeholder,
textarea::placeholder {
    color: #8392b8;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.checkbox-row input {
    width: auto;
    margin: 0;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.primary,
.btn.green {
    color: #1d0c06;
    background: linear-gradient(125deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 26px rgba(255, 90, 31, 0.28);
}

.btn.ghost {
    color: var(--text);
    border-color: var(--line);
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.btn.red {
    color: #260a10;
    background: linear-gradient(125deg, #ff98a6, var(--danger));
    box-shadow: 0 10px 22px rgba(255, 122, 138, 0.24);
}

.btn.tiny {
    padding: 8px 12px;
    font-size: 0.84rem;
}

.btn.full { width: 100%; }

.alert {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.alert.error {
    color: #ffd7df;
    border-color: rgba(255, 122, 138, 0.34);
    background: rgba(255, 122, 138, 0.17);
}

.alert.success {
    color: #d9ffea;
    border-color: rgba(102, 245, 177, 0.3);
    background: rgba(102, 245, 177, 0.14);
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    padding: 5px 10px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: #e9efff;
    background: rgba(10, 18, 34, 0.88);
}

.status.pending { border-color: rgba(255, 203, 107, 0.5); color: #ffd997; }
.status.approved,
.status.solved { border-color: rgba(102, 245, 177, 0.55); color: #a8ffd2; }
.status.rejected { border-color: rgba(255, 122, 138, 0.5); color: #ffbbc5; }
.status.open { border-color: rgba(255, 90, 31, 0.6); color: #ffc2a9; }
.status.in_review { border-color: rgba(255, 205, 120, 0.58); color: #ffdca8; }
.status.admin { border-color: rgba(102, 227, 255, 0.55); color: #a6edff; }
.status.user { border-color: rgba(255, 255, 255, 0.28); color: #f3f3f3; }
.status.whitelist { border-color: rgba(120, 203, 255, 0.58); color: #b4e8ff; }

.auth-wrap {
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 24px;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(560px, 96vw);
    padding: clamp(20px, 3vw, 30px);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}

.auth-card.wide {
    width: min(980px, 96vw);
}

.auth-alt,
.links-row { margin-top: 10px; }

.auth-alt a,
.links-row a {
    color: #d9f7ff;
    text-underline-offset: 3px;
    text-decoration-color: rgba(102, 227, 255, 0.75);
}

.list-page {
    width: min(1180px, 95vw);
    margin: 12px auto 80px;
    display: grid;
    gap: 14px;
}

.list-card,
.admin-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    padding: 14px;
}

.list-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.admin-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.inline-form {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.inline-form textarea { min-height: 72px; }

.profile-block {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.profile-image-wrap {
    width: 124px;
    height: 124px;
}

.profile-image,
.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.profile-image { object-fit: cover; }

.profile-placeholder {
    display: grid;
    place-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    background: rgba(102, 227, 255, 0.12);
}

.admin-top-links { justify-content: flex-start; }
.member-card .inline-form { max-width: 270px; }
.application-form textarea { min-height: 78px; }
.application-form textarea[name='ic_10'] { min-height: 120px; }
.draft-status {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.dash-link {
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 13px;
    text-decoration: none;
    color: var(--text);
    background: rgba(102, 227, 255, 0.06);
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.dash-link:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 227, 255, 0.52);
    background: rgba(102, 227, 255, 0.12);
}

.dash-link strong {
    display: block;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
}

.dash-link span { color: var(--muted); font-size: 0.92rem; }

/* Forum Header */
.forum-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(17, 17, 21, 0.96), rgba(11, 11, 14, 0.96));
    backdrop-filter: blur(10px);
}

.forum-header-inner {
    width: min(1320px, 96vw);
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.forum-profile-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f8ff;
    text-decoration: none;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(102, 227, 255, 0.12), rgba(83, 247, 189, 0.2));
    color: var(--text);
    display: grid;
    place-items: center;
    font-weight: 700;
    text-decoration: none;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.forum-brand {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.04em;
    margin-right: 6px;
}

.forum-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.forum-nav.guest { margin-left: auto; }

.forum-nav-link {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: #e9eefb;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}

.forum-nav-link:hover,
.forum-nav-dropdown.open .forum-nav-trigger {
    background: linear-gradient(130deg, rgba(255, 90, 31, 0.22), rgba(255, 122, 61, 0.16));
    border-color: rgba(255, 122, 61, 0.35);
}

.forum-nav-dropdown { position: relative; }

.forum-nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(155deg, rgba(21, 21, 25, 0.98), rgba(12, 12, 15, 0.98));
    box-shadow: 0 22px 36px rgba(0, 0, 0, 0.42);
    display: none;
    overflow: hidden;
}

.forum-nav-dropdown.open .forum-nav-menu { display: block; }

.forum-nav-menu a {
    display: block;
    padding: 9px 12px;
    color: #f3f6ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-nav-menu a:last-child { border-bottom: 0; }
.forum-nav-menu a:hover { background: linear-gradient(135deg, rgba(255, 90, 31, 0.22), rgba(255, 122, 61, 0.18)); }

.forum-logout {
    margin-left: auto;
    text-decoration: none;
    color: #f7f7f7;
    border: 1px solid rgba(255, 122, 61, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255, 90, 31, 0.24), rgba(255, 122, 61, 0.14));
}

/* Home / Duyurular */
.home-shell {
    width: min(1320px, 96vw);
    margin: 14px auto 60px;
    display: grid;
    gap: 12px;
}

.home-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 12px;
}

.home-main-panel,
.home-side-panel {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(160deg, rgba(22, 22, 26, 0.95), rgba(12, 12, 16, 0.95));
    overflow: hidden;
}

.home-panel-head {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-panel-head h2,
.home-panel-head h3 {
    color: #ff8a55;
    text-shadow: 0 0 18px rgba(255, 90, 31, 0.22);
}

.home-announcement-list,
.home-side-list {
    padding: 12px;
    display: grid;
    gap: 10px;
}

.home-announcement-card,
.home-side-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(17, 17, 22, 0.95), rgba(10, 10, 14, 0.95));
    padding: 12px;
}

.home-announcement-card {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 26px rgba(2, 8, 20, 0.3);
}

.home-side-card {
    display: block;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.14s ease, border-color 0.14s ease;
}

.home-side-card:hover {
    border-color: rgba(255, 122, 61, 0.45);
    transform: translateY(-2px);
}

.home-ann-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.home-empty { padding: 18px; color: #9db0da; }
.announcement-admin-item { margin-top: 12px; }

.ann-thumb,
.ann-hero {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    max-height: 420px;
}

.ann-thumb { max-height: 260px; }

/* K feed */
.k-shell {
    width: min(980px, 96vw);
    margin: 14px auto 36px;
}

.k-grid {
    display: block;
}

.k-main-panel,
.k-side-panel {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #111319, #0b0d12);
    overflow: hidden;
}

.k-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.k-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-brand {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ff5a1f;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
}

.k-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.k-header-right { display: flex; align-items: center; }

.k-posts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
}

.k-post {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.k-post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.k-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.k-avatar,
.k-mini-avatar {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.k-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
    font-weight: 600;
    display: grid;
    place-items: center;
}

.k-mini-avatar {
    width: 30px;
    height: 30px;
}

.k-avatar-fallback {
    display: grid;
    place-items: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.k-post-user {
    color: #ff5a1f;
    font-weight: 600;
}

.k-post-id {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
}

.k-post-body {
    margin-top: 4px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.k-post-images {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.k-post-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 0;
}

.k-post-actions {
    margin-top: 4px;
    display: flex;
    gap: 18px;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
}

.k-post-action {
    border: 0;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 0;
}

.k-post-action.liked {
    color: #ff5a1f;
}

.k-comment {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.k-comment-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.k-comment-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.k-comment-name {
    font-weight: 600;
    color: #fff;
}

.k-comment-dot {
    color: rgba(255, 255, 255, 0.45);
}

.k-comment-body {
    font-size: 13px;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.k-empty {
    padding: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.k-modal[hidden] { display: none; }

.k-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.k-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.k-modal-card {
    position: relative;
    width: min(640px, 94vw);
    max-height: 84vh;
    overflow: auto;
    margin: 8vh auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0c0c0c;
    padding: 14px;
}

.k-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.k-comments-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 65vh;
    overflow-y: auto;
}

/* Destek */
.support-shell {
    width: min(1450px, 97vw);
    margin: 10px auto 40px;
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    gap: 14px;
    align-items: start;
}

.support-shell::before,
.support-shell::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(68px);
    pointer-events: none;
}

.support-shell::before {
    width: 320px;
    height: 320px;
    left: -100px;
    top: 120px;
    background: rgba(255, 90, 31, 0.14);
}

.support-shell::after {
    width: 340px;
    height: 340px;
    right: -110px;
    bottom: 70px;
    background: rgba(255, 122, 61, 0.12);
}

.support-sidebar,
.support-main {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(170deg, rgba(18, 18, 22, 0.95), rgba(10, 10, 14, 0.95));
    box-shadow: var(--shadow);
}

.support-sidebar {
    padding: 10px;
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 20px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 10px;
}

.support-back-btn { width: 100%; }
.support-search { margin-top: 0; }

.support-search input {
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(30, 32, 42, 0.95), rgba(16, 16, 21, 0.95));
}

.support-create {
    border: 1px solid rgba(255, 176, 94, 0.36);
    border-radius: 12px;
    padding: 8px 10px;
    background: linear-gradient(160deg, rgba(255, 176, 94, 0.14), rgba(67, 201, 255, 0.1));
}

.support-create summary {
    cursor: pointer;
    font-weight: 700;
    color: #ffe3c1;
}

.support-list {
    overflow: auto;
    padding-right: 4px;
    display: grid;
    gap: 8px;
    scrollbar-width: none;
}

.support-list::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.support-item {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(160deg, rgba(20, 31, 56, 0.72), rgba(11, 16, 30, 0.72));
    transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}

.support-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.18);
}

.support-item.is-open::before { background: linear-gradient(180deg, #56c8ff, #4a78ff); }
.support-item.is-review::before { background: linear-gradient(180deg, #ffd27f, #ff9b58); }
.support-item.is-solved::before { background: linear-gradient(180deg, #5affc4, #34b890); }

.support-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.support-item.active {
    border-color: rgba(130, 206, 255, 0.68);
    box-shadow: 0 14px 26px rgba(67, 201, 255, 0.24);
}

.support-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.support-main {
    min-height: calc(100vh - 20px);
    display: grid;
    grid-template-rows: auto auto auto minmax(260px, 1fr) auto;
    gap: 10px;
    padding: 12px;
}

.support-main-head {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: linear-gradient(160deg, rgba(28, 41, 70, 0.9), rgba(12, 17, 31, 0.95));
}

.support-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.support-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.participant-chip {
    border: 1px solid rgba(139, 204, 255, 0.42);
    background: rgba(67, 201, 255, 0.14);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.83rem;
}

.support-inline-form {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-inline-form input,
.support-inline-form select { max-width: 340px; }

.support-add-participant {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
}

.support-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    max-height: 52vh;
    overflow: auto;
    padding: 12px;
}

.support-message {
    position: relative;
    width: fit-content;
    max-width: min(78%, 860px);
    border: 1px solid rgba(136, 191, 255, 0.2);
    border-radius: 14px;
    padding: 10px 12px;
    background: linear-gradient(160deg, rgba(36, 50, 78, 0.86), rgba(18, 24, 42, 0.9));
}

.support-message.msg-other {
    align-self: flex-start;
    border-top-left-radius: 7px;
    border-color: rgba(255, 255, 255, 0.1);
}

.support-message.msg-self {
    align-self: flex-end;
    border-top-right-radius: 7px;
    border-color: rgba(134, 205, 255, 0.56);
    background: linear-gradient(150deg, rgba(68, 201, 255, 0.3), rgba(255, 170, 95, 0.26));
}

.support-message.msg-admin { box-shadow: inset 0 0 0 1px rgba(255, 99, 133, 0.35); }

.support-message::after {
    content: '';
    position: absolute;
    top: 0;
    width: 12px;
    height: 12px;
    background: inherit;
}

.support-message.msg-other::after {
    left: -5px;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.support-message.msg-self::after {
    right: -5px;
    clip-path: polygon(0 0, 0 100%, 100% 0);
}

.support-message-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.support-message-head strong {
    font-size: 0.94rem;
    color: #f2f5ff;
}

.support-message-head small {
    margin-left: auto;
    font-size: 0.76rem;
    color: #c6cad8;
}

.support-message p {
    color: #eff3ff;
    line-height: 1.45;
    word-break: break-word;
}

.support-reply-form {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: end;
}

.support-reply-form textarea {
    min-height: 68px;
    max-height: 180px;
    resize: vertical;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(24, 26, 35, 0.96), rgba(12, 12, 18, 0.95));
}

.support-reply-form .btn {
    height: 52px;
    min-width: 120px;
    padding: 0 16px;
    border-radius: 14px;
    color: #091018;
    background: linear-gradient(145deg, #63d2ff, #ffb45f);
}

.support-empty {
    min-height: 360px;
    border: 0;
    background: transparent;
}

.review-main {
    grid-template-rows: auto auto auto 1fr;
}

.review-shell {
    grid-template-columns: minmax(320px, 420px);
    justify-content: center;
}

.review-main-empty {
    min-height: calc(100vh - 20px);
    display: grid;
    place-items: center;
}

.review-empty-state {
    width: min(560px, 100%);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(160deg, rgba(20, 24, 35, 0.72), rgba(9, 12, 20, 0.82));
}

.review-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 4, 10, 0.72);
    backdrop-filter: blur(8px);
}

.review-modal {
    width: min(1180px, 94vw);
    max-height: calc(100vh - 40px);
    overflow: auto;
    overflow-x: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(170deg, rgba(18, 18, 22, 0.98), rgba(10, 10, 14, 0.98));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
    padding: 12px;
    display: grid;
    gap: 12px;
    scrollbar-width: none;
}

.review-modal::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.review-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
}

.review-modal-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-summary-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.review-summary-card,
.review-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(160deg, rgba(28, 41, 70, 0.62), rgba(12, 17, 31, 0.82));
    overflow: hidden;
}

.review-summary-card h3,
.review-section h3,
.review-answer h4 {
    margin-bottom: 8px;
}

.review-action-form {
    margin-top: 0;
    gap: 10px;
}

.review-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
}

.review-sections {
    display: grid;
    gap: 12px;
}

.review-answer-list {
    display: grid;
    gap: 10px;
}

.review-answer {
    border: 1px solid rgba(136, 191, 255, 0.18);
    border-radius: 12px;
    padding: 10px 12px;
    background: linear-gradient(160deg, rgba(17, 24, 42, 0.85), rgba(10, 14, 25, 0.92));
    overflow-wrap: anywhere;
    word-break: break-word;
}

.review-answer-lines {
    display: grid;
    gap: 6px;
}

.review-summary-card p,
.review-section p,
.review-empty-state p,
.review-modal h2,
.review-modal h3,
.review-modal h4,
.review-modal strong,
.support-item h4,
.support-item p,
.support-item small {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.review-decision-section {
    position: sticky;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(13, 15, 22, 0.92), rgba(13, 15, 22, 0.98));
    box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.28);
}

/* Responsive */
@media (max-width: 1000px) {
    .home-content-grid,
    .k-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    body { padding-top: 118px; }

    .forum-header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .forum-logout { margin-left: 0; }
}

@media (max-width: 700px) {
    .list-card,
    .admin-row,
    .support-main-head,
    .support-meta-row,
    .support-inline-form {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-shell { grid-template-columns: 1fr; }
    .review-shell { justify-content: stretch; }

    .support-sidebar {
        position: static;
        max-height: 420px;
    }

    .support-main { min-height: 560px; }

    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .review-modal {
        width: min(100vw - 20px, 100%);
        max-height: calc(100vh - 20px);
        padding: 10px;
    }

    .support-message { max-width: 100%; }

    .support-reply-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .support-reply-form .btn {
        width: 100%;
        height: 44px;
    }
}
