/* ==========================================================
   Lucy College LMS — "Reading Room" theme, refined
   Deep ink navy + brass, hairline gold rules, faculty
   spine-colors as the recurring signature device.
   ========================================================== */

:root {
    --ink: #101a33;
    --ink-mid: #182548;
    --ink-deep: #0a1226;
    --paper: #faf7ef;
    --paper-card: #fffdf9;
    --brass: #c19a44;
    --brass-soft: #d9b869;
    --brass-dark: #96721f;
    --text: #22252e;
    --text-muted: #6c7180;
    --line: #e9e1cd;
    --line-soft: #f0ead9;
    --success: #2e7d4f;
    --danger: #a8433c;

    /* Faculty spine colors */
    --f-cs: #2f5d8a;      /* Computer Science - steel blue */
    --f-acc: #3f6b3f;     /* Accounting - ledger green */
    --f-nur: #9c3f52;     /* HO/Nursing - deep rose */
    --f-bm: #7a5230;      /* Business Management - walnut */
    --f-it: #55467e;      /* IT & Networking - violet */
    --f-gen: #8a7758;     /* General / leisure reading - warm taupe */

    --radius: 12px;
    --radius-sm: 7px;
    --shadow-sm: 0 2px 8px rgba(10, 18, 38, 0.06);
    --shadow: 0 10px 30px -8px rgba(10, 18, 38, 0.16);
    --shadow-lg: 0 24px 60px -16px rgba(10, 18, 38, 0.28);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Fraunces', serif;
    color: var(--ink);
    margin: 0 0 0.5em;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

p { color: var(--text); }

a { color: var(--brass-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--brass); text-decoration: none; }

::selection { background: var(--brass-soft); color: var(--ink); }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Header ---------------- */
.site-header {
    background: var(--ink);
    border-bottom: 1px solid rgba(193, 154, 68, 0.35);
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
    opacity: 0.7;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 12px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 1.28rem;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.01em;
    min-width: 0; /* required for text-overflow to work inside a flex child */
    flex-shrink: 1;
}
.logo-img {
    height: 40px;
    width: auto;
    flex-shrink: 0;
    display: block;
}
.logo-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    display: inline-block;
}
.logo-text .accent, .logo span { color: var(--brass-soft); font-style: italic; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    flex-shrink: 0;
    justify-content: flex-end;
}
.main-nav a {
    color: #cfd5e8;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    position: relative;
}
.main-nav a:not(.btn):hover { color: #fff; }
.main-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: -6px;
    height: 1px;
    background: var(--brass);
    transition: right 0.2s ease;
}
.main-nav a:not(.btn):hover::after { right: 0; }
.nav-user {
    color: var(--brass-soft);
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Fraunces', serif;
    font-style: italic;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1.5px); }
.btn-primary { background: var(--brass); color: #fff; box-shadow: 0 6px 16px -6px rgba(193,154,68,0.55); }
.btn-primary:hover { background: var(--brass-dark); color: #fff; box-shadow: 0 10px 22px -6px rgba(150,114,31,0.55); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.35); color: #dfe3f0; }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f342e; color: #fff; }
.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: var(--ink-mid); color: #fff; }
.btn-sm { padding: 7px 15px; font-size: 0.82rem; }
.btn-block { width: 100%; text-align: center; }

/* ---------------- Hero ---------------- */
.hero {
    background:
        radial-gradient(ellipse 640px 420px at 85% -10%, rgba(193,154,68,0.14), transparent 60%),
        linear-gradient(165deg, var(--ink) 0%, var(--ink-deep) 100%);
    color: #fff;
    padding: 88px 0 96px;
    position: relative;
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}
.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    color: var(--brass-soft);
    font-weight: 700;
}
.hero h1 {
    color: #fff;
    font-size: 2.7rem;
    max-width: 620px;
    margin-top: 12px;
    font-weight: 600;
}
.hero p.lead {
    color: #c3c9e0;
    max-width: 540px;
    font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

/* Faculty spine strip - bookshelf signature device */
.spine-strip {
    display: flex;
    align-items: flex-end;
    margin-top: 50px;
    max-width: 620px;
    height: 92px;
    border-radius: 6px 6px 3px 3px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.spine-strip::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 6px;
    background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.4));
}
.spine {
    flex: 1;
    height: 100%;
    padding: 14px 8px 20px;
    color: rgba(255,255,255,0.92);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.15s ease;
}
.spine:last-child { border-right: none; }
.spine:hover { transform: translateY(-4px); }
.spine.cs  { background: linear-gradient(180deg, var(--f-cs), #24466a); }
.spine.acc { background: linear-gradient(180deg, var(--f-acc), #2f5230); }
.spine.nur { background: linear-gradient(180deg, var(--f-nur), #7c3040); }
.spine.bm  { background: linear-gradient(180deg, var(--f-bm), #5e3f24); }
.spine.it  { background: linear-gradient(180deg, var(--f-it), #423564); }

/* Signature hero visual: the library index card */
.index-card-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}
.index-card {
    background: #fdfaf2;
    color: var(--ink);
    width: 100%;
    max-width: 320px;
    border-radius: 4px;
    padding: 26px 24px 22px;
    box-shadow: var(--shadow-lg);
    transform: rotate(3deg);
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent, transparent 27px,
        rgba(16,26,51,0.09) 28px
    );
}
.index-card::before {
    content: "";
    position: absolute;
    top: -10px; left: 28px;
    width: 46px; height: 20px;
    background: rgba(193,154,68,0.55);
    transform: rotate(-4deg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.index-card .ic-eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brass-dark);
    font-weight: 700;
}
.index-card h4 {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin: 2px 0 14px;
    color: var(--ink);
}
.index-card .ic-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 5px 0;
    color: var(--text);
}
.index-card .ic-row span:first-child { color: var(--text-muted); }
.index-card .ic-stamp {
    display: inline-block;
    margin-top: 14px;
    border: 2px solid var(--danger);
    color: var(--danger);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 3px;
    transform: rotate(-4deg);
    opacity: 0.85;
}

/* ---------------- Sections / cards ---------------- */
.section { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--text-muted); margin-bottom: 40px; }
.section-alt { background: #f3efe2; }

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--brass-dark);
    margin: 0 0 40px;
}
.divider::before, .divider::after {
    content: "";
    height: 1px;
    width: 64px;
    background: var(--line);
}
.divider .diamond {
    width: 6px; height: 6px;
    background: var(--brass);
    transform: rotate(45deg);
}

.card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card {
    text-align: left;
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.feature-icon {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.grid {
    display: grid;
    gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .index-card-wrap { margin-top: 20px; }
}
@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
}

/* ---------------- Faculty badge (reused everywhere) ---------------- */
.badge-faculty {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.badge-faculty.cs  { background: var(--f-cs); }
.badge-faculty.acc { background: var(--f-acc); }
.badge-faculty.nur { background: var(--f-nur); }
.badge-faculty.bm  { background: var(--f-bm); }
.badge-faculty.it  { background: var(--f-it); }
.badge-faculty.gen { background: var(--text-muted); }

.badge-status {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.badge-status.available { background: #e3f3e8; color: var(--success); }
.badge-status.out { background: #fbe8e6; color: var(--danger); }
.badge-status.borrowed { background: #fbf0da; color: var(--brass-dark); }
.badge-status.returned { background: #e3f3e8; color: var(--success); }
.badge-status.overdue { background: #fbe8e6; color: var(--danger); }

/* ---------------- Forms ---------------- */
.auth-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
    min-height: 72vh;
    background:
        radial-gradient(ellipse 500px 300px at 50% 0%, rgba(193,154,68,0.06), transparent 60%),
        var(--paper);
}
.auth-card {
    max-width: 460px;
    width: 100%;
    box-shadow: var(--shadow);
}
.auth-card h2 { text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-muted); margin-bottom: 26px; font-size: 0.92rem; }

.form-group { margin-bottom: 18px; }
label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--ink);
    letter-spacing: 0.01em;
}
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--brass);
    box-shadow: 0 0 0 3px rgba(193,154,68,0.16);
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

.alert {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.92rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}
.alert-error { background: #fbe8e6; color: var(--danger); border-left-color: var(--danger); }
.alert-success { background: #e3f3e8; color: var(--success); border-left-color: var(--success); }
.alert-info { background: #e9edf7; color: var(--ink); border-left-color: var(--ink); }

/* ---------------- Tables ---------------- */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
    text-align: left;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.9rem;
}
th { background: #f3efe2; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.85rem; }
tr:hover td { background: #fbf9f2; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.table-wrap table { border-radius: var(--radius); overflow: hidden; }

/* ---------------- Dashboard stat cards ---------------- */
.stat-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--brass);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px 22px;
    transition: box-shadow 0.2s ease;
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .num { font-family: 'Fraunces', serif; font-size: 2.1rem; font-weight: 700; color: var(--ink); }
.stat-card .label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------- Book cover placeholder ---------------- */
.book-cover {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 5px;
    background: linear-gradient(165deg, var(--ink), var(--ink-deep));
    color: var(--brass-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces', serif;
    font-weight: 600;
    text-align: center;
    padding: 14px;
    font-size: 0.95rem;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(193,154,68,0.25);
    position: relative;
}
.book-cover::before {
    content: "";
    position: absolute;
    left: 8px; top: 8px; bottom: 8px;
    width: 1px;
    background: rgba(193,154,68,0.3);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-card { display: flex; flex-direction: column; gap: 10px; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.book-card .book-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.02rem; margin: 0; }
.book-card .book-author { color: var(--text-muted); font-size: 0.87rem; font-style: italic; }

/* ---------------- Sidebar (admin) ---------------- */
.admin-layout { display: grid; grid-template-columns: 222px 1fr; gap: 0; min-height: 72vh; }
.admin-sidebar {
    background: var(--ink);
    padding: 28px 18px;
    border-right: 1px solid rgba(193,154,68,0.2);
}
.admin-sidebar a {
    display: block;
    color: #cfd5e8;
    padding: 10px 13px;
    border-radius: 7px;
    margin-bottom: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
    background: rgba(193,154,68,0.14);
    color: #fff;
    text-decoration: none;
}
.admin-sidebar a.active { box-shadow: inset 3px 0 0 var(--brass); }
.admin-content { padding: 34px; }
@media (max-width: 800px) {
    .admin-layout { grid-template-columns: 1fr; }
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--ink-deep);
    color: #b7bcd4;
    padding: 30px 0;
    text-align: center;
    font-size: 0.84rem;
    margin-top: 40px;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--brass) 80%, transparent);
    opacity: 0.55;
}
.footer-credit {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #8891ab;
    letter-spacing: 0.01em;
}
.footer-credit .accent {
    color: var(--brass-soft);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 600;
}

/* ---------------- Utility ---------------- */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}

/* ---------------- v2: enterprise features ---------------- */

/* Amharic font hook - applies Noto Sans Ethiopic when Amharic is active */
body.lang-am { font-family: 'Noto Sans Ethiopic', 'Inter', sans-serif; }
body.lang-am h1, body.lang-am h2, body.lang-am h3, body.lang-am h4,
body.lang-am .logo, body.lang-am .index-card h4 {
    font-family: 'Noto Sans Ethiopic', 'Fraunces', serif;
}

/* Language switcher in nav */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.18);
}
.lang-link { color: #9aa1bb; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.02em; }
.lang-link.active { color: var(--brass-soft); }
.lang-link:hover { color: #fff; }
.lang-sep { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* General/leisure spine on the homepage bookshelf */
.spine.gen { background: linear-gradient(180deg, var(--f-gen), #6b5b40); }
.badge-faculty.gen { background: var(--f-gen); }

/* Category badge - distinct from faculty badge (outline style) */
.badge-category {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--brass-dark);
    background: #f6ecd4;
    border: 1px solid rgba(193,154,68,0.35);
    letter-spacing: 0.01em;
}

/* Digital-copy availability badge */
.badge-digital {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    color: #2a5a7a;
    background: #e6f1f7;
    border: 1px solid rgba(47,93,138,0.25);
}

/* Three-column search row on the catalog page */
.row-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .row-3 { grid-template-columns: 1fr; } }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 7px;
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.88rem;
    background: #fff;
}
.page-link:hover { border-color: var(--brass); text-decoration: none; }
.page-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Book detail two-column layout */
.book-detail-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
}
@media (max-width: 760px) {
    .book-detail-grid { grid-template-columns: 1fr; }
}

/* Small cover thumbnail used in admin's manage-books table */
.thumb-cover {
    width: 52px;
    height: 70px;
    min-width: 52px;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(165deg, var(--ink), var(--ink-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 8px rgba(10,18,38,0.18);
    border: 1px solid rgba(193,154,68,0.25);
}
.thumb-cover img {
    width: 52px;
    height: 70px;
    max-width: 52px;
    max-height: 70px;
    object-fit: cover;
    display: block;
}

/* ---------------- Manage Books (admin) - refined table page ---------------- */
.mb-toolbar {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
@media (max-width: 900px) {
    .mb-toolbar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .mb-toolbar { grid-template-columns: 1fr; }
}
.mb-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}
.mb-summary strong { color: var(--ink); font-family: 'Fraunces', serif; }

.book-row-title {
    display: flex;
    align-items: center;
    gap: 14px;
}
.book-row-title .brt-text .title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 0.97rem;
    display: block;
}
.book-row-title .brt-text .author {
    color: var(--text-muted);
    font-size: 0.83rem;
    font-style: italic;
}

.avail-bar {
    width: 70px;
    height: 5px;
    border-radius: 3px;
    background: var(--line-soft);
    overflow: hidden;
    margin-top: 5px;
}
.avail-bar span {
    display: block;
    height: 100%;
    background: var(--success);
    border-radius: 3px;
}
.avail-bar.low span { background: var(--brass-dark); }
.avail-bar.empty span { background: var(--danger); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.icon-btn:hover { border-color: var(--brass); background: #fbf6ea; transform: translateY(-1px); }
.icon-btn.danger:hover { border-color: var(--danger); background: #fdeceb; color: var(--danger); }

/* ---------------- v3: enterprise features ---------------- */

/* Star ratings */
.rating-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 16px; }
.stars { color: var(--brass); letter-spacing: 1px; }

.star-picker {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
    font-size: 1.6rem;
}
.star-picker input { display: none; }
.star-picker label {
    color: var(--line);
    cursor: pointer;
    transition: color 0.15s ease;
}
.star-picker input:checked ~ label,
.star-picker label:hover,
.star-picker label:hover ~ label {
    color: var(--brass);
}

.review-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
}
.review-item:last-child { border-bottom: none; }

/* Audit log */
.log-action {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e9edf7;
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* CSV import drop zone */
.import-box {
    border: 2px dashed var(--line);
    border-radius: var(--radius);
    padding: 34px;
    text-align: center;
    background: #fbf9f2;
}
.import-box input[type=file] { margin: 14px 0; }

/* Temp password reveal */
.temp-pass-box {
    background: var(--ink);
    color: var(--brass-soft);
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 16px;
    border-radius: 7px;
    display: inline-block;
    letter-spacing: 0.02em;
}

/* Header - keep readable on narrow screens */
@media (max-width: 700px) {
    .logo-text { max-width: 160px; font-size: 0.95em; }
    .header-inner { gap: 10px; }
}
