/* Looma Forums — RTL theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&display=swap');

:root {
    --bg: #f5f0e6;
    --bg-card: #fffdf8;
    --bg-muted: #ebe4d4;
    --text: #2c2416;
    --text-muted: #6b5d4a;
    --accent: #e87b2a;
    --accent-dark: #c96518;
    --accent-light: #fff0e4;
    --gold: #f59a42;
    --gold-dark: #d97820;
    --border: #e8d4c0;
    --error: #b54a4a;
    --error-bg: #fce8e8;
    --success: #c96518;
    --success-bg: #fff0e4;
    --shadow: 0 2px 12px rgba(44, 36, 22, 0.08);
    --radius: 12px;
    --font: "Segoe UI", Tahoma, "Vazirmatn", "Tahoma", sans-serif;
    --max-width: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.ltr { direction: ltr; text-align: left; unicode-bidi: isolate; }

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--accent); }

.search-form {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 0.5rem;
}
.search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    font: inherit;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.header-nav a { font-weight: 500; }

.header-user-box,
.header-auth-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.header-auth-box {
    gap: 0.65rem;
}

.header-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    max-width: 160px;
}
.header-user-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.header-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.header-user-name {
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.35rem 0.6rem;
    font-size: 1.25rem;
    cursor: pointer;
    margin-inline-start: auto;
}

/* Flash */
.flash {
    max-width: var(--max-width);
    margin: 0.75rem auto;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    text-align: center;
}
.flash-success { background: var(--success-bg); color: var(--success); }
.flash-error { background: var(--error-bg); color: var(--error); }

/* Layout */
.main-content {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 3rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .logo { flex: 1; min-width: 0; }
    .nav-toggle { display: block; }
    .search-form {
        order: 3;
        width: 100%;
        flex: 1 1 100%;
    }
    .header-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.5rem;
        gap: 0.5rem;
    }
    .header-nav.is-open { display: flex; }
    .header-user-box,
    .header-auth-box {
        width: 100%;
        justify-content: center;
    }
    .header-user-link { max-width: none; justify-content: center; }
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow);
}
.sidebar h2 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { margin-bottom: 0.35rem; }
.cat-list a {
    display: block;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: var(--text);
}
.cat-list a:hover,
.cat-list a.active {
    background: var(--accent-light);
    color: var(--accent-dark);
    text-decoration: none;
}

/* Cards & stats */
.hero {
    margin-bottom: 1.5rem;
}
.hero h1 {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
}
.hero p { margin: 0; color: var(--text-muted); }

.stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.stat-card {
    flex: 1;
    min-width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-size: 1.5rem; color: var(--accent); }
.stat-card span { font-size: 0.85rem; color: var(--text-muted); }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}
.card h2, .card h3 { margin-top: 0; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(232, 123, 42, 0.2);
    text-decoration: none;
}
.category-card h3 { margin: 0 0 0.35rem; color: var(--text); }
.category-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.category-card .meta { margin-top: 0.75rem; font-size: 0.8rem; color: var(--gold-dark); }

/* آخرین موضوعات — یک باکس برای هر انجمن */
.recent-forums {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.recent-forum-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.recent-forum-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.1rem;
    background: var(--accent-light);
    border-bottom: 1px solid var(--border);
}
.recent-forum-box-header h3 {
    margin: 0;
    font-size: 1.05rem;
}
.recent-forum-box-header h3 a {
    color: var(--text);
    text-decoration: none;
}
.recent-forum-box-header h3 a:hover {
    color: var(--gold-dark);
}
.recent-forum-box-link {
    font-size: 0.85rem;
    color: var(--gold-dark);
    text-decoration: none;
}
.recent-forum-box-link:hover {
    text-decoration: underline;
}
.recent-forum-box .thread-list {
    margin: 0;
}

/* Thread list */
.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.thread-item:last-child { border-bottom: none; }
.thread-item.pinned { background: var(--accent-light); }
.thread-body { flex: 1; min-width: 0; }
.thread-body h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.username-with-rank {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 100%;
}
.username-with-rank .username {
    font-weight: 600;
}
.user-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', var(--font);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(44, 36, 22, 0.06);
    background: var(--bg-muted);
    color: var(--text-muted);
}
.user-rank-owner {
    color: #6b4a12;
    background: linear-gradient(180deg, #fff8e8 0%, #f5e0b8 100%);
    border-color: #e0c078;
    box-shadow: 0 1px 4px rgba(217, 120, 32, 0.15);
}
.user-rank-admin {
    color: #fff;
    background: linear-gradient(180deg, var(--gold) 0%, var(--accent-dark) 100%);
    border-color: var(--accent-dark);
    box-shadow: 0 1px 4px rgba(232, 123, 42, 0.35);
}
.user-rank-support {
    color: #3d5a6b;
    background: linear-gradient(180deg, #f8fcff 0%, #e3eef5 100%);
    border-color: #b8cdd9;
    box-shadow: 0 1px 3px rgba(61, 90, 107, 0.1);
}
.user-rank-mod {
    color: #2d5c42;
    background: linear-gradient(180deg, #f6fdf8 0%, #dceee3 100%);
    border-color: #a8d4b8;
    box-shadow: 0 1px 3px rgba(45, 92, 66, 0.1);
}
.user-rank-vip {
    color: #5c3d68;
    background: linear-gradient(180deg, #fdf8ff 0%, #ede0f5 100%);
    border-color: #d4b8e0;
    box-shadow: 0 1px 3px rgba(92, 61, 104, 0.12);
}
.profile-name-block .username-with-rank {
    align-items: center;
    gap: 0.65rem;
}
.profile-name-block .user-rank {
    font-size: 0.72rem;
    padding: 0.32rem 0.85rem;
}
.header-user-link .username-with-rank {
    gap: 0.4rem;
}
.header-user-link .user-rank {
    font-size: 0.58rem;
    padding: 0.22rem 0.55rem;
    letter-spacing: 0.06em;
}
.post-author .user-rank {
    font-size: 0.58rem;
    padding: 0.22rem 0.55rem;
}
.thread-meta .username-with-rank.ltr {
    flex-direction: row-reverse;
}
.thread-meta .user-rank {
    font-size: 0.62rem;
}

.thread-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-weight: 600;
}
.badge-pin { background: var(--accent); }

/* Posts */
.post {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}
.post:last-child { border-bottom: none; }
.post-author {
    text-align: center;
}
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}
.avatar.avatar-lg {
    width: 88px;
    height: 88px;
    font-size: 2rem;
    margin: 0;
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.header-user-avatar-img {
    padding: 0;
    overflow: hidden;
}
.header-user-avatar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-author .username { font-size: 0.85rem; font-weight: 600; word-break: break-all; }
.post-author-avatar-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.post-author-avatar-link:hover {
    text-decoration: none;
    opacity: 0.92;
}
.post-author-rank-only {
    display: inline-flex;
    text-decoration: none;
    margin-top: 0.35rem;
}
.post-author-rank-only:hover {
    text-decoration: none;
    filter: brightness(1.03);
}
.post-author .username-with-rank {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.post-content { min-width: 0; }
.post-content .post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.post-time { font-size: 0.8rem; color: var(--text-muted); }
.post-body p { margin: 0 0 0.5rem; }
.post-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; font-size: 0.85rem; }
.post-actions form { display: inline; }

.thread-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.thread-header h1 { margin: 0 0 0.5rem; }
.thread-header .thread-meta { margin: 0; }

/* Forms */
.form label {
    display: block;
    margin-bottom: 1rem;
}
.form label span {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="search"],
.form select,
.form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font: inherit;
    background: var(--bg);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input[type="file"] {
    width: 100%;
    font: inherit;
    font-size: 0.9rem;
}
.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* پیوست پست */
.post-attachments {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.post-attachment {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(165deg, var(--bg-card) 0%, var(--bg-muted) 100%);
    padding: 0.85rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.post-attachment-media-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #1a1510;
    margin-bottom: 0.55rem;
}
.post-attachment-image .post-attachment-media-link {
    display: block;
    text-decoration: none;
}
.post-attachment-image img {
    max-width: 100%;
    max-height: 420px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}
.post-attachment-video video {
    max-width: 100%;
    max-height: 420px;
    width: 100%;
    display: block;
    background: #000;
}
.post-attachment-dl {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    padding: 0.25rem 0;
}
.post-attachment-dl:hover {
    text-decoration: underline;
}
.attachment-file-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.35rem 0.15rem;
}
.attachment-file-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.attachment-file-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.attachment-file-name {
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-word;
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}
.attachment-file-size {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.attachment-download-btn {
    flex-shrink: 0;
    background: var(--accent);
    color: #fff;
    border: none;
    text-decoration: none;
}
.attachment-download-btn:hover {
    background: var(--accent-dark);
    color: #fff;
    text-decoration: none;
}

/* پاسخ داخل موضوع */
.reply-compose {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border);
}
.reply-compose h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}
.reply-compose-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.file-upload-label > span:first-child {
    display: block;
    margin-bottom: 0.45rem;
}
.file-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7.5rem;
    padding: 1.25rem 1rem;
    margin: 0;
    border: 2px dashed var(--gold);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--accent-light) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.file-upload-box:hover,
.file-upload-box:focus-within {
    border-color: var(--accent);
    background: linear-gradient(180deg, #fffdf8 0%, #ffe8d4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(232, 123, 42, 0.15);
}
.file-upload-box.has-file {
    border-style: solid;
    border-color: var(--accent);
    background: var(--success-bg);
}
.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.file-upload-icon {
    font-size: 1.75rem;
    line-height: 1;
    opacity: 0.85;
}
.file-upload-prompt {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}
.file-upload-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    max-width: 18rem;
}
.file-selected-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
    color: var(--accent-dark);
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.file-selected-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}
.file-selected-size {
    font-weight: 500;
    color: var(--text-muted);
}
.reply-login-hint {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(0.95); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-accent { background: var(--gold); color: #fff; }
.btn-small { padding: 0.4rem 0.75rem; font-size: 0.85rem; }
.btn-danger { background: var(--error); color: #fff; }
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-error { background: var(--error-bg); color: var(--error); }
.alert ul { margin: 0; padding-inline-start: 1.25rem; }

.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}
.auth-card { max-width: 420px; width: 100%; }
.auth-card h1 { margin-top: 0; font-size: 1.35rem; }
.auth-switch { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.page-header h1 { margin: 0; }

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
}
.page-link {
    padding: 0.4rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
}
.page-info { color: var(--text-muted); font-size: 0.9rem; }

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

.profile-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.profile-name-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-width: 0;
}

.profile-name-block h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}

.profile-details {
    padding-inline-start: 0;
}

.profile-bio { color: var(--text-muted); margin: 0 0 0.35rem; }

.avatar-upload-btn {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.avatar-upload-btn:hover {
    background: var(--accent);
    color: #fff;
}

.avatar-upload-hint {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.profile-bio-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.profile-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-results .result-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.search-results .result-item:last-child { border-bottom: none; }
.search-results h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.highlight { background: #ffe4cc; padding: 0 0.15rem; border-radius: 3px; }
