:root {
    --bg: #f5efe4;
    --panel: rgba(21, 52, 76, 0.9);
    --panel-soft: #fffaf1;
    --ink: #163042;
    --muted: #60707b;
    --accent: #c96f3b;
    --accent-dark: #8d4520;
    --line: rgba(22, 48, 66, 0.12);
    --glow: rgba(201, 111, 59, 0.24);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Source Sans 3", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(201, 111, 59, 0.24), transparent 30%),
        linear-gradient(135deg, #f7f1e6 0%, #e8f0f2 100%);
}

.page-shell {
    min-height: 100vh;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(140deg, rgba(11, 36, 54, 0.96), rgba(18, 68, 95, 0.9)),
        linear-gradient(45deg, rgba(201, 111, 59, 0.25), transparent 65%);
    color: #fff;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(201, 111, 59, 0.18);
    filter: blur(10px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.86;
}

.hero-title,
.section-title,
.modal-title,
.metric-value {
    font-family: "Space Grotesk", sans-serif;
}

.hero-copy,
.section-copy {
    max-width: 62ch;
    color: rgba(255, 255, 255, 0.78);
}

.hero-actions {
    position: relative;
    z-index: 1;
}

.btn-accent {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #d9844e);
    box-shadow: 0 10px 30px var(--glow);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(135deg, #b85e2e, #cf7a46);
}

.stats-strip {
    z-index: 1;
}

.metric-card,
.surface-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 250, 241, 0.86);
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 45px rgba(22, 48, 66, 0.08);
}

.metric-card {
    padding: 1.25rem 1.5rem;
}

.metric-label {
    display: block;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.metric-value {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.surface-card {
    padding: 1.5rem;
}

.search-wrap {
    min-width: min(100%, 320px);
}

.form-control,
.form-select {
    border-radius: 14px;
    border-color: rgba(22, 48, 66, 0.15);
    padding: 0.8rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(201, 111, 59, 0.65);
    box-shadow: 0 0 0 0.25rem rgba(201, 111, 59, 0.15);
}

.notice-table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(22, 48, 66, 0.04);
}

.notice-table thead th {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    border-bottom-color: var(--line);
}

.notice-table tbody tr {
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.notice-table tbody tr:hover {
    transform: translateY(-1px);
}

.notice-table tbody tr.active {
    background: rgba(201, 111, 59, 0.12);
}

.detail-card {
    background:
        linear-gradient(180deg, rgba(255, 250, 241, 0.94), rgba(245, 239, 228, 0.94));
}

.detail-placeholder {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed rgba(22, 48, 66, 0.18);
    border-radius: 20px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.38);
}

.token-panel {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 48, 66, 0.08);
}

.token-copy {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    margin-bottom: 0;
}

.detail-grid div {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(22, 48, 66, 0.08);
}

.detail-grid dt {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.detail-grid dd {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.empty-state {
    padding: 2.5rem 1rem 1rem;
    text-align: center;
    color: var(--muted);
}

.modal-content {
    border: 1px solid rgba(22, 48, 66, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, #fffdf8, #fff6eb);
    box-shadow: 0 24px 60px rgba(22, 48, 66, 0.12);
}

.modal .form-label {
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 991.98px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-actions,
    .search-wrap {
        width: 100%;
    }

    .surface-card,
    .metric-card {
        border-radius: 20px;
    }
}