html,
body {
    min-height: 100%;
}

body {
    background: #f1f5f9;
    color: #0f172a;
    font-family: "Segoe UI", Arial, sans-serif;
}

main {
    min-height: calc(100vh - 130px);
}

.portal-navbar {
    background: #111827;
    border-bottom: 2px solid #2563eb;
}

.hero-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-top: 5px solid #2563eb;
    border-radius: 18px;
    padding: 70px 30px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-panel h1 {
    font-size: 3rem;
    font-weight: 900;
}

.hero-panel p {
    color: #475569;
}

.page-heading h1 {
    font-weight: 900;
    margin-bottom: 8px;
}

.page-heading p {
    color: #475569;
    margin-bottom: 0;
}

.portal-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-top: 5px solid #2563eb;
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.portal-card h4 {
    font-weight: 800;
    margin-bottom: 16px;
}

.output-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-label {
    font-weight: 600;
}

.form-select,
.form-control {
    border-radius: 8px;
}

.copy-box {
    min-height: 80px;
    resize: none;
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.copy-box.large {
    min-height: 120px;
}

.btn {
    border-radius: 8px;
    font-weight: 600;
}

.di-options {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.punishment-preview {
    border-top-color: #f59e0b;
}

.punishment-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 14px 16px;
    font-weight: 800;
    color: #9a3412;
}

.punishment-box span {
    display: inline-block;
    margin-left: 6px;
    font-weight: 600;
    color: #7c2d12;
}

.portal-footer {
    background: #111827;
    color: #cbd5e1;
    padding: 22px 0;
    margin-top: 40px;
    border-top: 1px solid #1f2937;
}

@media (max-width: 991px) {
    .hero-panel h1 {
        font-size: 2.4rem;
    }

    .portal-card {
        padding: 22px;
    }
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 14px 16px;
}