:root {
    --ink: #142033;
    --ink-soft: #3d4a5c;
    --navy: #0e2744;
    --navy-2: #163556;
    --brass: #9a7340;
    --brass-deep: #7c5b2e;
    --paper: #f4f1ea;
    --card: #ffffff;
    --line: #e4ddd0;
    --danger: #8f2d2d;
    --ok: #1f6b45;
    --shadow: 0 18px 50px rgba(14, 39, 68, 0.08);
    --serif: "Libre Baskerville", Georgia, serif;
    --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}
a { color: var(--navy); }
img { max-width: 100%; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-logo img { height: 54px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a, .header-actions a {
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 10px;
    border-radius: 999px;
}
.main-nav a.active, .main-nav a:hover { color: var(--navy); background: #f3eee4; }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn, button.btn, .btn-header {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; cursor: pointer; text-decoration: none;
    border-radius: 999px; padding: 10px 18px; font-weight: 700;
    font-family: inherit; font-size: 0.95rem;
}
.btn-solid, .btn-header-solid { background: var(--navy); color: #fff !important; }
.btn-solid:hover, .btn-header-solid:hover { background: var(--navy-2); }
.btn-line { background: transparent; color: var(--navy) !important; border: 1px solid #cfc6b6; }
.btn-brass { background: var(--brass); color: #fff !important; }
.btn-danger { background: var(--danger); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; cursor: pointer; font-weight: 700; }
.btn-ok { background: var(--ok); color: #fff; text-decoration: none; border-radius: 8px; padding: 7px 12px; font-weight: 700; font-size: 0.88rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }

.hero {
    background:
        linear-gradient(100deg, rgba(14,39,68,.88), rgba(14,39,68,.45)),
        url('/images/home/hero-bhc.jpg') center/cover no-repeat;
    color: #fff;
    padding: 72px 0 64px;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.kicker { letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; color: #e6d3b0; font-weight: 700; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.12; margin: 12px 0; }
.hero h1 em { font-style: italic; color: #f0d7a8; }
.hero .lead { font-size: 1.15rem; max-width: 38rem; color: #f4efe6; }
.motto { color: #e6d3b0; font-family: var(--serif); font-style: italic; }
.hero-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    padding: 22px;
    backdrop-filter: blur(6px);
}
.hero-card p { margin: 0 0 8px; font-family: var(--serif); font-size: 1.15rem; }
.hero-card span { color: #e6d3b0; font-size: .9rem; }

.pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: -28px; position: relative; z-index: 2; }
.pill {
    background: var(--card); border: 1px solid var(--line); border-radius: 16px;
    padding: 18px 16px; text-decoration: none; box-shadow: var(--shadow); color: inherit;
}
.pill strong { display: block; margin: 6px 0 4px; }
.pill span { color: var(--ink-soft); font-size: .9rem; }
.pill i { color: var(--brass); font-size: 1.2rem; }

.band {
    margin: 42px 0;
    border-radius: 20px;
    min-height: 180px;
    background: linear-gradient(90deg, rgba(14,39,68,.82), rgba(14,39,68,.35)), url('/images/home/gateway.jpg') center/cover;
    color: #fff;
    display: grid;
    grid-template-columns: repeat(4, 1fr) 1.2fr;
    align-items: center;
    padding: 28px;
    gap: 12px;
}
.band div { text-align: center; font-weight: 700; }
.band .mark { text-align: left; font-family: var(--serif); font-weight: 400; line-height: 1.35; }

.section { padding: 10px 0 36px; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; display: flex; justify-content: space-between; align-items: baseline; }
.section h2 a { font-family: var(--sans); font-size: .95rem; font-weight: 700; text-decoration: none; color: var(--brass-deep); }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 22px; }
.feed-item {
    display: grid; grid-template-columns: 72px 1fr; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.feed-date b { display: block; font-family: var(--serif); font-size: 1.4rem; }
.feed-date span { color: var(--ink-soft); font-size: .82rem; }
.tag { background: #f3eee4; color: var(--brass-deep); border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 700; }
.aside-card { background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; }
.aside-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.aside-card div { padding: 18px 20px 22px; }
.aside-card h3 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; }
.aside-card blockquote { margin: 0; color: #e6d3b0; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.why i { color: var(--brass); font-size: 1.3rem; }
.why h3 { margin: 8px 0 4px; font-size: 1.05rem; }
.why p { margin: 0; color: var(--ink-soft); }

.vision { display: grid; grid-template-columns: 1.2fr .8fr; min-height: 320px; border-radius: 20px; overflow: hidden; margin-bottom: 40px; }
.vision-photo { position: relative; background: #111 center/cover; min-height: 280px; }
.vision-photo h2 { position: absolute; left: 24px; bottom: 20px; color: #fff; font-family: var(--serif); font-weight: 400; margin: 0; max-width: 16ch; }
.vision-panel { background: var(--navy); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.vision-panel a { color: #f0d7a8; font-weight: 700; }

.page { padding: 28px 0 56px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.panel h1, .auth-card h1, .member-main h1 { font-family: var(--serif); font-weight: 400; margin: 0 0 8px; }
.subtitle { color: var(--ink-soft); margin-top: 0; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: inherit; }
.tool h3 { margin: 0 0 6px; }
.tool p { margin: 0; color: var(--ink-soft); }
.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.step-num { font-family: var(--serif); color: var(--brass); font-size: 1.4rem; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.case {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 12px 0;
}
.case-meta { display: flex; gap: 16px; color: var(--ink-soft); font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.case-parties { font-family: var(--serif); font-size: 1.15rem; margin: 8px 0; }
.case-parties .vs { color: var(--brass); font-style: italic; }
.summary { color: var(--ink-soft); }
.pager { display: flex; gap: 10px; margin: 16px 0; }

.site-footer { background: var(--navy); color: #d9e2ec; padding: 42px 0 18px; }
.footer-grid { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.site-footer a { color: #f4efe6; text-decoration: none; display: block; margin: 6px 0; }
.site-footer h4 { margin: 0 0 8px; color: #f0d7a8; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { width: min(1180px, calc(100% - 40px)); margin: 24px auto 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.footer-bottom a { display: inline; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.auth-aside { background: var(--navy) url('/images/home/hero-bhc.jpg') center/cover; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,39,68,.35), rgba(14,39,68,.88)); }
.auth-aside > * { position: relative; }
.auth-aside img { height: 62px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { width: min(440px, 100%); }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input, select, textarea {
    width: 100%; border: 1px solid #d9d0c2; background: #fff; border-radius: 12px;
    padding: 12px 14px; font: inherit; color: var(--ink);
}
textarea { min-height: 220px; }
.flash { border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.flash-error { background: #fdecec; color: var(--danger); }
.flash-success { background: #e8f6ee; color: var(--ok); }

.member-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.member-side { background: var(--navy); color: #fff; padding: 22px 16px; }
.member-side a { color: #e7eef6; text-decoration: none; display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; }
.member-side a.active, .member-side a:hover { background: rgba(255,255,255,.1); }
.member-side .label { color: #e6d3b0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin: 8px 12px; }
.member-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.member-main { padding: 28px; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.actions a { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 10px; text-align: center; text-decoration: none; font-weight: 700; color: var(--navy); }
.search-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; }
.report { max-width: 920px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 32px 40px; }
.report-body { font-family: "Times New Roman", serif; line-height: 1.65; }
.center { text-align: center; }
.court { color: #6e1d1d; font-weight: 700; font-size: 1.2rem; }
.lawpoint { letter-spacing: .14em; font-weight: 700; margin: 18px 0; }
.search-highlight { background: #fff3a3; }
.actnote { background: #faf7f1; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f6f3ec; }
.admin-side { background: #101820; color: #fff; padding: 18px 12px; display: flex; flex-direction: column; }
.admin-side a { color: #e8eef5; text-decoration: none; display: block; padding: 10px 12px; border-radius: 10px; margin: 2px 0; }
.admin-side a.active, .admin-side a:hover { background: rgba(255,255,255,.1); }
.admin-main { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: #fff; border-radius: 16px; padding: 18px; border: 1px solid var(--line); }
.stat b { font-family: var(--serif); font-size: 2rem; display: block; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf7f1; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
    .pills, .why, .tools, .actions, .contact-grid, .stats { grid-template-columns: 1fr 1fr; }
    .hero-grid, .split, .vision, .auth-shell, .member-shell, .admin-shell, .band, .footer-grid { grid-template-columns: 1fr; }
    .main-nav, .header-actions { display: none; }
    .site-header.nav-open .main-nav, .site-header.nav-open .header-actions {
        display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 78px;
        background: #fff; padding: 12px; border-bottom: 1px solid var(--line);
    }
    .nav-toggle, .menu-toggle { display: inline-flex; }
    .member-side, .admin-side { display: none; }
    .member-shell.nav-open .member-side, .admin-shell.nav-open .admin-side { display: flex; }
}

/* Marketing homepage */
body.landing {
    background: #fff;
    color: #1c2740;
    font-family: Poppins, "Source Sans 3", sans-serif;
}
.lp-header {
    position: sticky; top: 0; z-index: 40;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.lp-header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 280px; }
.lp-word { display: flex; flex-direction: column; line-height: 1.05; padding-right: 12px; border-right: 1px solid #e6e6e6; }
.lp-word strong { font-size: 1.05rem; color: #1b3a6b; font-weight: 700; }
.lp-word em { font-style: normal; font-size: 1.15rem; font-weight: 800; color: #1b3a6b; }
.lp-word em span { color: #f26522; }
.lp-tagline { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; font-weight: 600; line-height: 1.35; }
.lp-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.lp-nav a { text-decoration: none; color: #24324a; font-weight: 600; font-size: .92rem; padding: 8px 10px; }
.lp-nav a.active, .lp-nav a:hover { color: #f26522; }
.lp-nav a.active { box-shadow: inset 0 -2px 0 #f26522; }
.lp-header-cta { display: flex; align-items: center; gap: 12px; }
.lp-signin { color: #1b3a6b; font-weight: 600; text-decoration: none; font-size: .92rem; }
.lp-buy {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f26522; color: #fff !important; text-decoration: none;
    font-weight: 700; border-radius: 10px; padding: 10px 16px; border: 0;
}
.lp-buy:hover { background: #de5416; }
.lp-hero {
    background:
        linear-gradient(90deg, rgba(92, 32, 8, .72) 0%, rgba(92, 32, 8, .28) 42%, rgba(92, 32, 8, .05) 68%),
        url('/images/home/hero-sunset.jpg') center / cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.lp-hero-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    padding: 56px 0 48px;
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: center;
}
.lp-logo { height: 58px; width: auto; display: block; padding-right: 12px; border-right: 1px solid #e6e6e6; }
.lp-hero h1 {
    margin: 8px 0 12px;
    font-size: clamp(2.6rem, 4.6vw, 4.1rem);
    line-height: .98;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.lp-hero-copy p { margin: 0 0 22px; max-width: 34rem; font-size: 1.05rem; font-weight: 500; }
.lp-chips { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.lp-chips a { width: 92px; text-align: center; text-decoration: none; color: #fff; font-size: .72rem; font-weight: 600; line-height: 1.25; }
.lp-chips i {
    width: 58px; height: 58px; border-radius: 50%;
    display: grid; place-items: center; margin: 0 auto 8px;
    background: #f26522; font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.lp-demo, .lp-play {
    display: inline-flex; align-items: center; gap: 8px;
    border-radius: 999px; padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.lp-demo { background: #f26522; color: #fff; }
.lp-play { background: #fff; color: #1c2740; }
.lp-hero-art img {
    width: 100%;
    display: block;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.25));
}
.lp-why, .lp-pricing, .lp-faq { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 54px 0 10px; text-align: center; }
.lp-why h2, .lp-pricing h2, .lp-faq h2, .lp-perfect h2 {
    font-size: 1.7rem; font-weight: 800; color: #1b3a6b; margin: 0 0 28px;
}
.lp-why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; text-align: center; }
.lp-why-grid i { font-size: 1.8rem; color: #f26522; }
.lp-why-grid h3 { margin: 8px 0 4px; font-size: .95rem; }
.lp-why-grid p { margin: 0; color: #64748b; font-size: .82rem; }
.lp-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.lp-price-grid article { border: 1px solid #f0e2d6; border-radius: 16px; padding: 20px; background: #fffaf6; }
.lp-price-grid h3 { margin: 0 0 8px; color: #1b3a6b; }
.lp-price-grid p { color: #475569; font-size: .92rem; }
.lp-faq-list { text-align: left; max-width: 760px; margin: 0 auto; }
.lp-faq details { border-bottom: 1px solid #f1e4da; padding: 12px 0; }
.lp-faq summary { cursor: pointer; font-weight: 700; color: #1b3a6b; }
.lp-perfect {
    margin-top: 48px;
    padding: 36px 0 0;
    background: #fff;
    position: relative;
    text-align: center;
}
.lp-perfect-grid {
    width: min(1000px, calc(100% - 32px));
    margin: 0 auto 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative;
    z-index: 1;
}
.lp-perfect-grid a {
    display: flex; gap: 10px; align-items: flex-start; text-align: left;
    background: #fff; border-radius: 14px; padding: 14px; text-decoration: none; color: inherit;
    box-shadow: 0 10px 24px rgba(194, 90, 30, .12);
}
.lp-perfect-grid i {
    width: 42px; height: 42px; flex: none; border-radius: 10px;
    display: grid; place-items: center; background: #fff1e8; color: #f26522; font-size: 1.2rem;
}
.lp-perfect-grid strong { display: block; color: #1b3a6b; font-size: .92rem; }
.lp-perfect-grid span { color: #64748b; font-size: .78rem; line-height: 1.35; }
.lp-perfect { padding-bottom: 48px; }
.lp-footer {
    background:
        linear-gradient(180deg, #fff 0%, rgba(255, 250, 244, .92) 38%, rgba(255, 250, 244, .35) 70%, rgba(255, 250, 244, 0) 100%),
        url('/images/home/footer-skyline.jpg') center bottom / cover no-repeat;
    border-top: 1px solid #fde3d0;
    color: #334155;
}
.lp-footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 170px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
}
.lp-footer-brand img { height: 58px; width: auto; display: block; margin-bottom: 14px; }
.lp-footer-brand p { margin: 0; max-width: 320px; font-size: .88rem; line-height: 1.55; color: #475569; }
.lp-footer h4 {
    margin: 4px 0 14px; font-size: .95rem; font-weight: 800; color: #1b3a6b;
    position: relative; padding-bottom: 8px;
}
.lp-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 3px; background: #f26522; }
.lp-footer-grid a, .lp-footer-grid span {
    display: flex; align-items: center; gap: 8px;
    color: #475569; text-decoration: none; font-size: .88rem; padding: 4px 0;
}
.lp-footer-grid a:hover { color: #f26522; }
.lp-footer-grid i { color: #f26522; }
.lp-legal {
    background: #e04f0a; color: #fff7ed;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 14px max(16px, calc((100% - 1180px) / 2)); font-size: .84rem;
}
.lp-legal a { color: #fff; margin-left: 18px; text-decoration: none; }
.lp-legal a:hover { text-decoration: underline; }
@media (max-width: 980px) {
    .lp-nav, .lp-header-cta { display: none; }
    .lp-header.nav-open .lp-nav, .lp-header.nav-open .lp-header-cta {
        display: flex; flex-direction: column; align-items: flex-start;
        position: absolute; left: 0; right: 0; top: 84px; background: #fff;
        padding: 12px 16px 16px; border-bottom: 1px solid #eee;
    }
    .lp-hero-inner, .lp-why-grid, .lp-price-grid, .lp-perfect-grid { grid-template-columns: 1fr 1fr; }
    .lp-tagline { display: none; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; padding-bottom: 130px; }
    .lp-hero-inner { min-height: 0; padding-top: 24px; }
}
@media (max-width: 640px) {
    .lp-why-grid, .lp-price-grid, .lp-perfect-grid, .lp-hero-inner { grid-template-columns: 1fr; }
    .lp-logo { height: 44px; border-right: 0; }
    .lp-footer-grid { grid-template-columns: 1fr; gap: 20px; padding-bottom: 110px; }
    .lp-legal { justify-content: center; text-align: center; }
    .lp-legal a { margin: 0 8px; }
}

/* Contact page (landing layout) */
.ct-hero {
    background: linear-gradient(90deg, rgba(92,32,8,.82) 0%, rgba(92,32,8,.55) 55%, rgba(92,32,8,.25) 100%), url('/images/home/hero-sunset.jpg') center / cover no-repeat;
    color: #fff;
}
.ct-hero-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 96px; }
.ct-kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .82rem; }
.ct-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 14px 0 10px; }
.ct-hero p { max-width: 560px; margin: 0 0 18px; color: #ffeede; line-height: 1.6; }
.ct-crumbs { font-size: .85rem; color: #ffd9bf; display: flex; gap: 8px; align-items: center; }
.ct-crumbs a { color: #fff; text-decoration: none; }
.ct-crumbs i { font-size: .7rem; }
.ct-cards {
    width: min(1180px, calc(100% - 32px)); margin: -56px auto 0; position: relative;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.ct-card {
    background: #fff; border-radius: 16px; padding: 26px 24px; text-decoration: none; color: inherit;
    box-shadow: 0 14px 34px rgba(120, 50, 10, .12); border-top: 4px solid #f26522;
    transition: transform .2s ease, box-shadow .2s ease;
}
a.ct-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(120, 50, 10, .18); }
.ct-card > i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #fff1e8; color: #f26522; font-size: 1.45rem; }
.ct-card h3 { margin: 16px 0 6px; font-size: 1.05rem; color: #1b3a6b; font-weight: 700; }
.ct-card p { margin: 0; color: #475569; font-size: .92rem; line-height: 1.55; }
.ct-card span { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; color: #f26522; font-weight: 600; font-size: .88rem; }
.ct-main {
    width: min(1180px, calc(100% - 32px)); margin: 48px auto 64px;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start;
}
.ct-form-card, .ct-side-card { background: #fff; border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(15, 23, 42, .07); border: 1px solid #f1e6dd; }
.ct-form-card h2 { margin: 0 0 6px; color: #1b3a6b; font-size: 1.45rem; font-weight: 800; }
.ct-muted { color: #64748b; margin: 0 0 22px; font-size: .9rem; }
.ct-form { display: grid; gap: 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: #334155; }
.ct-form input, .ct-form select, .ct-form textarea {
    font: inherit; font-weight: 400; font-size: .92rem; color: #0f172a;
    border: 1px solid #e2d6cc; border-radius: 10px; padding: 11px 13px; background: #fffdfb; width: 100%; box-sizing: border-box;
}
.ct-form input:focus, .ct-form select:focus, .ct-form textarea:focus { outline: none; border-color: #f26522; box-shadow: 0 0 0 3px rgba(242, 101, 34, .15); }
.ct-form textarea { resize: vertical; }
.ct-submit { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; padding: 12px 26px; }
.ct-side { display: grid; gap: 20px; }
.ct-side-card h3 { margin: 0 0 14px; color: #1b3a6b; font-size: 1.05rem; font-weight: 700; }
.ct-side-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ct-side-card li { display: flex; gap: 10px; color: #475569; font-size: .9rem; line-height: 1.5; }
.ct-side-card li i { color: #f26522; font-size: 1.05rem; }
.ct-side-cta { background: linear-gradient(135deg, #fff4ec, #ffe6d5); border-color: #fbd3b8; }
.ct-side-cta p { color: #475569; font-size: .9rem; margin: 0 0 16px; line-height: 1.5; }
.ct-side-cta .lp-buy { display: inline-flex; }
.ct-link { display: flex; gap: 6px; align-items: center; margin-top: 14px; color: #c2410c; font-weight: 600; font-size: .88rem; text-decoration: none; }
@media (max-width: 980px) {
    .ct-cards { grid-template-columns: 1fr 1fr; }
    .ct-main { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ct-cards, .ct-row { grid-template-columns: 1fr; }
    .ct-hero-inner { padding: 44px 0 80px; }
    .ct-form-card, .ct-side-card { padding: 22px; }
}

/* Admin panel — orange theme */
.admin-theme { font-family: 'Poppins', system-ui, sans-serif; color: #1e293b; background: #fff8f3; }
.admin-theme .admin-shell { grid-template-columns: 256px 1fr; background: #fff8f3; }
.admin-theme .admin-side {
    background: #fff; color: #334155; padding: 20px 14px; border-right: 1px solid #f6e3d6;
    position: sticky; top: 0; height: 100vh; box-sizing: border-box; overflow-y: auto;
    box-shadow: 4px 0 24px rgba(194, 90, 30, .06);
}
.admin-theme .ad-brand { display: block; padding: 4px 8px 14px; border-bottom: 1px solid #f6e3d6; margin-bottom: 10px; }
.admin-theme .ad-brand img { height: 50px; width: auto; display: block; }
.admin-theme .ad-section { margin: 10px 12px 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.admin-theme .admin-side a.ad-link {
    display: flex; align-items: center; gap: 12px; color: #475569; font-weight: 500; font-size: .92rem;
    padding: 11px 14px; border-radius: 12px; margin: 3px 0; transition: background .15s, color .15s;
}
.admin-theme .admin-side a.ad-link i { font-size: 1.1rem; color: #f26522; width: 20px; text-align: center; }
.admin-theme .admin-side a.ad-link:hover { background: #fff1e8; color: #c2410c; }
.admin-theme .admin-side a.ad-link.active { background: linear-gradient(135deg, #f26522, #ff8a3d); color: #fff; box-shadow: 0 8px 18px rgba(242, 101, 34, .35); }
.admin-theme .admin-side a.ad-link.active i { color: #fff; }
.admin-theme .ad-user {
    margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
    background: #fff5ee; border: 1px solid #fbe0cd;
}
.admin-theme .ad-user div { min-width: 0; flex: 1; }
.admin-theme .ad-user strong { display: block; font-size: .88rem; color: #1b3a6b; }
.admin-theme .ad-user small { display: block; font-size: .75rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-theme .ad-avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f26522, #ffb347); color: #fff; font-weight: 700; }
.admin-theme .admin-side a.ad-logout { padding: 8px; margin: 0; color: #dc2626; font-size: 1.15rem; border-radius: 10px; }
.admin-theme .admin-side a.ad-logout:hover { background: #fee2e2; }

.admin-theme .admin-main { padding: 0; min-width: 0; }
.admin-theme .ad-top {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 18px 28px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(100deg, rgba(150, 45, 5, .92), rgba(242, 101, 34, .85)), url('/images/home/hero-sunset.jpg') center / cover no-repeat;
}
.admin-theme .ad-top-left { display: flex; align-items: center; gap: 14px; }
.admin-theme .ad-top h1 { margin: 2px 0 0; font-size: 1.55rem; font-weight: 700; font-family: inherit; }
.admin-theme .ad-crumb { font-size: .78rem; color: #ffe0cc; display: flex; gap: 6px; align-items: center; }
.admin-theme .ad-crumb i { font-size: .65rem; }
.admin-theme .ad-view {
    display: inline-flex; gap: 8px; align-items: center; background: #fff; color: #c2410c; text-decoration: none;
    font-weight: 600; font-size: .88rem; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.admin-theme .menu-toggle { background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 10px; width: 40px; height: 40px; font-size: 1.3rem; cursor: pointer; align-items: center; justify-content: center; }
.admin-theme .ad-body { padding: 26px 28px 40px; }
.admin-theme h2 { font-size: 1.15rem; font-weight: 700; color: #1b3a6b; margin: 26px 0 12px; font-family: inherit; }
.admin-theme a { color: #c2410c; }

/* Stat cards */
.admin-theme .stats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.admin-theme .stat {
    position: relative; overflow: hidden; border: 0; border-radius: 18px; padding: 22px 24px; color: #fff;
    text-decoration: none; font-weight: 500; font-size: .95rem; box-shadow: 0 14px 30px rgba(15, 23, 42, .12);
    transition: transform .2s ease, box-shadow .2s ease;
}
.admin-theme .stat:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(15, 23, 42, .18); }
.admin-theme .stat b { font-family: inherit; font-size: 2.3rem; font-weight: 800; line-height: 1.1; margin-bottom: 4px; }
.admin-theme .stat i { position: absolute; right: 18px; top: 18px; font-size: 1.5rem; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.admin-theme .stat::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.12); }
.admin-theme .stat-orange { background: linear-gradient(135deg, #f26522, #ffa04d); }
.admin-theme .stat-blue { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.admin-theme .stat-green { background: linear-gradient(135deg, #059669, #34d399); }

/* Quick actions */
.admin-theme .ad-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 22px 0 6px; }
.admin-theme .ad-quick a {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
    background: #fff; border-radius: 16px; padding: 18px 10px; text-decoration: none; color: #334155;
    font-size: .85rem; font-weight: 600; box-shadow: 0 8px 20px rgba(15, 23, 42, .06); border: 1px solid #f5e9e0;
    transition: transform .2s ease;
}
.admin-theme .ad-quick a:hover { transform: translateY(-3px); }
.admin-theme .ad-quick i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; }
.admin-theme .q-orange i { background: #fff1e8; color: #f26522; }
.admin-theme .q-purple i { background: #f3e8ff; color: #9333ea; }
.admin-theme .q-teal i { background: #ccfbf1; color: #0d9488; }
.admin-theme .q-green i { background: #dcfce7; color: #16a34a; }
.admin-theme .q-blue i { background: #dbeafe; color: #2563eb; }
.admin-theme .q-pink i { background: #fce7f3; color: #db2777; }

/* Cards & tables */
.admin-theme .ad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.admin-theme .ad-card { background: #fff; border-radius: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .07); border: 1px solid #f5e9e0; overflow: hidden; min-width: 0; }
.admin-theme .ad-card-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #f5e9e0; }
.admin-theme .ad-card-head h2 { margin: 0; display: flex; gap: 8px; align-items: center; }
.admin-theme .ad-card-head h2 i { color: #f26522; }
.admin-theme .ad-card-head a { font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.admin-theme .ad-table { max-height: 460px; overflow: auto; }
.admin-theme .ad-card table { box-shadow: none; border-radius: 0; }
.admin-theme table { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(15, 23, 42, .07); font-size: .88rem; }
.admin-theme th { background: #fff4ec; color: #9a3412; font-size: .74rem; font-weight: 700; letter-spacing: .06em; border-bottom: 1px solid #fbe0cd; position: sticky; top: 0; }
.admin-theme td { border-bottom: 1px solid #f5ede6; color: #334155; }
.admin-theme tbody tr:hover td { background: #fffaf6; }
.admin-theme code { background: #fff1e8; color: #c2410c; padding: 3px 8px; border-radius: 6px; font-weight: 600; }

/* Panels, forms, buttons */
.admin-theme .panel { border: 1px solid #f5e9e0; border-radius: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .07); }
.admin-theme .panel h1, .admin-theme .panel h2 { font-family: inherit; }
.admin-theme label { font-weight: 600; font-size: .86rem; color: #334155; }
.admin-theme input, .admin-theme select, .admin-theme textarea { font-family: inherit; border: 1px solid #e8d8cc; border-radius: 10px; background: #fffdfb; }
.admin-theme input:focus, .admin-theme select:focus, .admin-theme textarea:focus { outline: none; border-color: #f26522; box-shadow: 0 0 0 3px rgba(242, 101, 34, .15); }
.admin-theme .btn { font-family: inherit; border-radius: 10px; font-weight: 600; }
.admin-theme .btn-solid { background: linear-gradient(135deg, #f26522, #ff8a3d); border: 0; box-shadow: 0 6px 14px rgba(242, 101, 34, .3); }
.admin-theme .btn-solid:hover { background: linear-gradient(135deg, #e0550f, #f97316); }
.admin-theme .btn-line { color: #c2410c !important; border-color: #fbc9a8; background: #fff; }
.admin-theme .btn-line:hover { background: #fff1e8; }
.admin-theme .btn-ok { background: #16a34a; }
.admin-theme .btn-danger { background: #dc2626; }
.admin-theme .flash { display: flex; gap: 8px; align-items: center; font-weight: 500; }

@media (max-width: 1200px) {
    .admin-theme .ad-quick { grid-template-columns: repeat(3, 1fr); }
    .admin-theme .ad-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .admin-theme .admin-side { height: auto; position: static; }
    .admin-theme .menu-toggle { display: inline-flex; }
    .admin-theme .stats { grid-template-columns: 1fr; }
    .admin-theme .ad-top, .admin-theme .ad-body { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
    .admin-theme .ad-quick { grid-template-columns: repeat(2, 1fr); }
    .admin-theme .ad-view span, .admin-theme .ad-top h1 { font-size: 1.2rem; }
}

/* Auth pages (login, register, admin login) — orange theme */
.au-body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; background: #fff8f3; color: #1e293b; }
.au-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.au-aside {
    position: relative; overflow: hidden; color: #fff; padding: 36px 48px 0;
    display: flex; flex-direction: column;
    background: linear-gradient(160deg, rgba(120, 35, 5, .9) 0%, rgba(200, 75, 15, .78) 55%, rgba(242, 101, 34, .55) 100%), url('/images/home/hero-sunset.jpg') center / cover no-repeat;
}
.au-logo img { height: 54px; background: #fff; border-radius: 12px; padding: 6px 12px; display: block; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.au-aside-copy { margin: auto 0 0; padding-top: 40px; max-width: 520px; position: relative; z-index: 1; }
.au-kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; font-size: .8rem; }
.au-aside h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.2; font-weight: 800; margin: 16px 0 12px; font-family: inherit; }
.au-aside p { color: #ffe6d4; line-height: 1.65; margin: 0 0 18px; font-size: .95rem; }
.au-aside ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.au-aside li { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.au-aside li i { color: #ffd166; }
.au-devices { display: block; width: min(92%, 560px); margin: 28px auto -6px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.35)); position: relative; z-index: 1; }
.au-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; position: relative; }
.au-back { position: absolute; top: 24px; right: 28px; color: #c2410c; text-decoration: none; font-weight: 600; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; }
.au-card {
    width: min(480px, 100%); background: #fff; border-radius: 22px; padding: 34px 34px 28px; box-sizing: border-box;
    box-shadow: 0 24px 60px rgba(150, 60, 10, .12); border: 1px solid #f6e3d6; border-top: 5px solid #f26522;
}
.au-logo-mobile { display: none; }
.au-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #f26522, #ffa04d); box-shadow: 0 10px 20px rgba(242, 101, 34, .35); }
.au-card h1 { margin: 16px 0 4px; font-size: 1.6rem; font-weight: 800; color: #1b3a6b; font-family: inherit; }
.au-sub { margin: 0 0 20px; color: #64748b; font-size: .9rem; }
.au-form { display: grid; gap: 14px; }
.au-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.au-form label { display: grid; gap: 6px; margin: 0; font-weight: 600; font-size: .84rem; color: #334155; }
.au-form label em { color: #f26522; font-style: normal; }
.au-field { position: relative; display: block; }
.au-field > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #f26522; font-size: 1rem; pointer-events: none; }
.au-form input {
    width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; font-size: .92rem; color: #0f172a;
    border: 1px solid #e8d8cc; border-radius: 12px; padding: 12px 40px 12px 40px; background: #fffdfb; margin: 0;
}
.au-form input:focus { outline: none; border-color: #f26522; box-shadow: 0 0 0 3px rgba(242, 101, 34, .15); background: #fff; }
.au-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #94a3b8; cursor: pointer; padding: 6px; font-size: 1rem; }
.au-eye:hover { color: #f26522; }
.au-submit {
    margin-top: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .98rem; color: #fff;
    padding: 13px 20px; border-radius: 12px; display: flex; gap: 8px; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f26522, #ff8a3d); box-shadow: 0 10px 22px rgba(242, 101, 34, .35); transition: transform .15s ease;
}
.au-submit:hover { transform: translateY(-1px); background: linear-gradient(135deg, #e0550f, #f97316); }
.au-switch { text-align: center; margin: 18px 0 0; font-size: .9rem; color: #64748b; }
.au-switch a { color: #c2410c; font-weight: 600; text-decoration: none; }
.au-minor { margin-top: 10px; padding-top: 14px; border-top: 1px dashed #f1dccd; font-size: .84rem; }
.au-card .flash { margin: 0 0 14px; font-size: .88rem; }
.au-legal { margin: 22px 0 0; font-size: .78rem; color: #94a3b8; }
.au-legal a { color: #94a3b8; }
@media (max-width: 980px) {
    .au-shell { grid-template-columns: 1fr; }
    .au-aside { display: none; }
    .au-logo-mobile { display: block; margin-bottom: 18px; }
    .au-logo-mobile img { height: 48px; }
    .au-panel { justify-content: flex-start; padding-top: 64px; background: linear-gradient(180deg, #ffe9da 0, #fff8f3 260px); }
}
@media (max-width: 520px) {
    .au-row { grid-template-columns: 1fr; }
    .au-card { padding: 26px 20px 22px; }
}

/* Member library — shares the admin orange theme */
.member-theme .member-main { padding: 26px 28px 40px; }
.member-theme .member-main h1 { font-family: inherit; font-weight: 700; color: #1b3a6b; font-size: 1.35rem; margin: 0 0 6px; }
.member-theme .subtitle { color: #64748b; font-size: .92rem; }
.member-theme .stat-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.member-theme .stat-pink { background: linear-gradient(135deg, #db2777, #f472b6); }
.member-theme .mb-stats { grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 8px; }
.member-theme .mb-stats .stat { font-size: .82rem; padding: 20px 20px 22px; line-height: 1.4; }
.member-theme .mb-stats .stat b { font-size: 1.25rem; margin: 54px 0 4px; }
.member-theme .mb-stats .stat i { left: 20px; right: auto; }
.member-theme .mb-recent { margin-top: 24px; }
.member-theme .mb-cases { padding: 8px 20px 12px; }
.member-theme .case {
    background: #fff; border: 1px solid #f5e9e0; border-left: 4px solid #f26522; border-radius: 14px;
    padding: 16px 18px; margin: 12px 0; box-shadow: 0 6px 16px rgba(15, 23, 42, .04); transition: box-shadow .2s ease;
}
.member-theme .case:hover { box-shadow: 0 12px 26px rgba(194, 90, 30, .12); }
.member-theme .case-meta { gap: 10px; font-size: .74rem; font-weight: 600; flex-wrap: wrap; }
.member-theme .case-meta span:first-child { background: #fff1e8; color: #c2410c; padding: 3px 10px; border-radius: 999px; }
.member-theme .case-meta span:nth-child(2) { background: #eff6ff; color: #1d4ed8; padding: 3px 10px; border-radius: 999px; }
.member-theme .case-parties { font-family: inherit; font-weight: 600; color: #1b3a6b; font-size: 1.02rem; margin: 10px 0 6px; }
.member-theme .case-parties .vs { color: #f26522; font-style: normal; font-weight: 500; }
.member-theme .summary { color: #475569; font-size: .88rem; line-height: 1.55; }
.member-theme .case .btn { padding: 8px 16px; font-size: .85rem; }
.member-theme .search-box, .member-theme .report, .member-theme .panel {
    background: #fff; border: 1px solid #f5e9e0; border-radius: 18px; box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}
.member-theme .search-box { border-top: 4px solid #f26522; padding: 24px; }
.member-theme .report { border-top: 4px solid #f26522; }
.member-theme .member-main input[type="text"], .member-theme .member-main input[type="date"], .member-theme .member-main select {
    padding: 11px 13px; font-size: .92rem;
}
.member-theme .pager .btn { min-width: 110px; justify-content: center; }
@media (max-width: 1200px) { .member-theme .mb-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .member-theme .member-main { padding: 20px 16px 32px; } }
@media (max-width: 560px) { .member-theme .mb-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 980px) {
    .admin-theme .admin-shell { grid-template-columns: 1fr; }
    .admin-theme .menu-toggle { display: inline-flex; }
    .admin-theme .admin-side { position: static; height: auto; }
    .admin-theme .ad-top h1 { font-size: 1.25rem; }
    .admin-theme .ad-view { padding: 9px 14px; }
}
@media (max-width: 560px) {
    .admin-theme .ad-view { font-size: 0; padding: 10px 12px; gap: 0; }
    .admin-theme .ad-view i { font-size: 1rem; }
}

/* Judgement view toolbar, flip view, translation, print */
.jv-toolbar {
    max-width: 920px; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #fff; border: 1px solid #f5e9e0; border-radius: 16px; padding: 10px 12px; box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    position: sticky; top: 10px; z-index: 20;
}
.jv-seg { display: inline-flex; background: #fff4ec; border-radius: 12px; padding: 4px; gap: 4px; }
.jv-seg button { border: 0; background: transparent; font: inherit; font-size: .86rem; font-weight: 600; color: #9a3412; padding: 8px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.jv-seg button.active { background: linear-gradient(135deg, #f26522, #ff8a3d); color: #fff; box-shadow: 0 6px 14px rgba(242, 101, 34, .3); }
.jv-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.jv-translate { position: relative; display: inline-flex; align-items: center; margin: 0; }
.jv-translate i { position: absolute; left: 11px; color: #f26522; pointer-events: none; }
.member-theme .jv-translate select { font: inherit; font-size: .86rem; font-weight: 600; color: #334155; padding: 9px 12px 9px 34px; border: 1px solid #fbd3b8; border-radius: 10px; background: #fff; cursor: pointer; width: auto; margin: 0; }
.jv-btn {
    display: inline-flex; gap: 6px; align-items: center; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: none;
    padding: 9px 14px; border-radius: 10px; border: 1px solid #fbd3b8; background: #fff; color: #c2410c;
}
.jv-btn:hover { background: #fff1e8; }
.jv-btn-solid { background: linear-gradient(135deg, #dc2626, #f87171); border: 0; color: #fff !important; box-shadow: 0 6px 14px rgba(220, 38, 38, .25); }
.jv-btn-solid:hover { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.jv-flip { max-width: 1180px; margin: 0 auto; }
.jv-flip-bar { display: flex; justify-content: center; align-items: center; gap: 16px; margin-bottom: 14px; font-weight: 600; color: #475569; font-size: .9rem; }
.jv-book-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.jv-page { background: #fffdf8; box-shadow: inset 0 0 30px rgba(120, 80, 40, .08); border: 1px solid #eadfce; overflow: hidden; position: relative; box-sizing: border-box; }
.jv-page-inner { position: absolute; inset: 26px 28px 34px; overflow: hidden; font-size: 13px; line-height: 1.55; }
.jv-page-inner img, .jv-page-inner table { max-width: 100%; }
.jv-page-title { font-size: 15px; color: #1b3a6b; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid #f26522; font-family: inherit; }
.jv-page-num { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: #94a3b8; }
.jv-flip-hint { text-align: center; color: #94a3b8; font-size: .82rem; margin-top: 10px; }
.goog-te-banner-frame, .skiptranslate iframe, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body.member-theme { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
@media print {
    .member-theme .admin-side, .member-theme .ad-top, .jv-toolbar, .jv-flip, .jv-back, .flash { display: none !important; }
    .member-theme .admin-shell { display: block; background: #fff; }
    .member-theme .member-main { padding: 0; }
    .member-theme .report { box-shadow: none; border: 0; max-width: none; padding: 0; }
    body.admin-theme { background: #fff; }
    #jvSimple[hidden] { display: block !important; }
}
@media (max-width: 640px) {
    .jv-toolbar { position: static; }
    .jv-seg, .jv-actions { width: 100%; }
    .jv-seg button { flex: 1; justify-content: center; }
}
.jv-book-wrap { display: block; margin: 0 auto; }
.admin-theme, .admin-theme .admin-shell { background: #fff; }
.jv-toolbar, .member-theme .report, .jv-flip { max-width: none; }
.jv-page { background: #fff; box-shadow: none; border: 1px solid #ececec; }
.jv-page-inner { font-size: 14px; }

.report-journal {
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-width: 920px;
}
.report-journal .jv-back { padding: 4px 48px 28px; }
.report-journal .mej-judgment { max-width: none; }
.mej-judgment {
    background: #fff;
    color: #111;
    font-family: "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.55;
    padding: 42px 48px 52px;
    max-width: 920px;
    margin: 0 auto;
}
.mej-judgment p { margin: 0 0 .3em; color: inherit; font-family: inherit; }
.mej-judgment .j-court { text-align: center; font-weight: 700; font-size: 1.22em; letter-spacing: .01em; margin: .15em 0 .2em; }
.mej-judgment .j-bench { text-align: center; font-weight: 400; margin: .1em 0; }
.mej-judgment .j-strong { text-align: center; font-weight: 700; margin: .12em 0; }
.mej-judgment .j-versus { text-align: center; font-weight: 400; margin: .35em 0; }
.mej-judgment hr { border: 0; border-top: 1px solid #222; margin: 11px 0; height: 0; }
.mej-judgment .j-case { text-align: center; font-weight: 400; margin: .45em 0; }
.mej-judgment .j-title { text-align: center; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin: 1em 0 .7em; }
.mej-judgment .j-per { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin: .9em 0 .75em; }
.mej-judgment .j-para { text-align: justify; margin: 0 0 .95em; }
.mej-judgment .j-sub { margin-left: 1.4em; }
.mej-judgment .j-result { text-align: right; font-weight: 700; margin: .8em 0; }
.mej-judgment table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; background: transparent; }
.mej-judgment th, .mej-judgment td { font-family: inherit; font-size: 1em; letter-spacing: 0; text-transform: none; vertical-align: top; }
.mej-judgment th {
    background: #c5d4ea !important;
    color: #1a1a1a !important;
    font-weight: 700;
    text-align: center;
    border: 1px solid #9aabc4;
    padding: 9px 10px;
}
.mej-judgment td { border: 1px solid #b9b9b9; padding: 8px 10px; color: #111; background: #fff; text-align: left; }
.mej-judgment td.j-num, .mej-judgment th.j-num { text-align: center; width: 12%; }
.mej-judgment span.dev { font-family: "Tiro Devanagari Marathi", "Noto Serif Devanagari", serif; }
.pdf-preview { background: transparent; border: 0; padding: 0; max-height: none; overflow: visible; }
@media print {
    .mej-judgment { background: #fff; color: #111; }
    .mej-judgment hr { border-top-color: #111; }
    .mej-judgment td { color: #111; border-color: #bbb; }
}
