@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/sarabun/Sarabun-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/sarabun/Sarabun-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/sarabun/Sarabun-SemiBold.ttf') format('truetype');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/sarabun/Sarabun-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Sarabun';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/sarabun/Sarabun-ExtraBold.ttf') format('truetype');
}

:root {
    --font-sans: 'Sarabun', 'Segoe UI', Tahoma, sans-serif;
    --color-primary: #0f4c81;
    --color-primary-deep: #0a2746;
    --color-accent: #1e8aa5;
    --color-accent-soft: #dff4f7;
    --color-surface: #ffffff;
    --color-surface-muted: #f4f8fb;
    --color-border: rgba(15, 76, 129, 0.12);
    --color-text: #17324d;
    --color-text-soft: #5d738a;
    --color-success: #1a8f5a;
    --color-warning: #d3921f;
    --color-danger: #cf4d4d;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-soft: 0 16px 40px rgba(14, 41, 70, 0.08);
    --shadow-strong: 0 20px 48px rgba(9, 29, 52, 0.14);
    --sidebar-width: 292px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(30, 138, 165, 0.08), transparent 30%),
        linear-gradient(180deg, #eef5fb 0%, #f8fbfd 100%);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
}

body,
button,
input,
optgroup,
select,
textarea,
.btn,
.form-control,
.form-select,
.input-group-text,
.dropdown-menu,
.dropdown-item,
.table,
.card,
.badge,
.alert,
.modal,
.list-group,
.nav,
.pagination,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
small,
label,
th,
td {
    font-family: var(--font-sans);
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(30, 138, 165, 0.08), transparent 28%),
        linear-gradient(180deg, #eef5fb 0%, #f7fbfe 100%);
}

a {
    text-decoration: none;
}

.main-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background:
        radial-gradient(circle at top right, rgba(96, 181, 204, 0.2), transparent 28%),
        linear-gradient(180deg, #0a2746 0%, #103960 48%, #16517b 100%);
    color: #f7fbff;
    position: fixed;
    inset: 0 auto 0 0;
    overflow-y: auto;
    z-index: 1000;
    padding: 22px 18px;
    box-shadow: 18px 0 42px rgba(7, 23, 41, 0.18);
    transition: transform 0.3s ease, width 0.3s ease;
}

.sidebar.collapsed {
    width: 88px;
}

.sidebar-header {
    padding: 6px 10px 18px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sidebar-logo i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar-menu {
    padding: 10px 0 0;
}

.menu-item {
    margin-bottom: 7px;
}

.menu-divider {
    height: 1px;
    margin: 18px 12px;
    background: rgba(255, 255, 255, 0.12);
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    color: rgba(247, 251, 255, 0.82);
    border-radius: 18px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-link i {
    width: 20px;
    text-align: center;
}

.menu-link:hover,
.menu-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    transform: translateX(2px);
}

.sidebar.collapsed .menu-link span,
.sidebar.collapsed .sidebar-logo span {
    display: none;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 88px;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(248, 251, 253, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-header-kicker {
    color: var(--color-text-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-header-title {
    color: var(--color-primary-deep);
    font-weight: 800;
    font-size: 1.02rem;
}

.admin-header-chip {
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
}

.admin-header-chip-label {
    color: var(--color-text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.sidebar-toggle {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 16px;
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.header-right .btn-link {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.header-right .dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 10px;
}

.header-right .dropdown-item {
    border-radius: 12px;
    padding: 10px 12px;
}

.admin-user-menu {
    position: relative;
}

.admin-user-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 7px 12px 7px 8px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-primary-deep);
    box-shadow: 0 12px 30px rgba(14, 41, 70, 0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-user-button:hover,
.admin-user-button.show {
    border-color: rgba(30, 138, 165, 0.35);
    box-shadow: 0 18px 36px rgba(14, 41, 70, 0.12);
    transform: translateY(-1px);
}

.admin-user-button::after {
    margin-left: 2px;
    color: var(--color-text-soft);
}

.admin-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #ffffff;
    flex: 0 0 auto;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.admin-user-label {
    color: var(--color-text-soft);
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-user-meta strong {
    color: var(--color-primary-deep);
    font-size: 0.92rem;
    font-weight: 800;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1100;
    display: none;
    list-style: none;
    min-width: 230px;
    margin-top: 12px !important;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 24px 54px rgba(10, 39, 70, 0.16);
}

.admin-user-dropdown.show {
    display: block;
}

.admin-user-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    border-radius: 13px;
    color: var(--color-text);
    font-weight: 700;
}

.admin-user-dropdown .dropdown-item i {
    width: 18px;
    color: var(--color-primary);
    text-align: center;
}

.admin-user-dropdown .dropdown-item:hover,
.admin-user-dropdown .dropdown-item:focus {
    background: rgba(30, 138, 165, 0.1);
    color: var(--color-primary-deep);
}

.admin-user-dropdown .dropdown-item.text-danger {
    color: var(--color-danger) !important;
}

.admin-user-dropdown .dropdown-item.text-danger i {
    color: var(--color-danger);
}

.admin-user-dropdown .dropdown-divider {
    margin: 8px 4px;
    border-top-color: rgba(15, 76, 129, 0.1);
}

.content-area {
    padding: 28px;
}

.content-area > .small.text-muted {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary) !important;
    font-weight: 600;
}

.card {
    border: 1px solid rgba(15, 76, 129, 0.06);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
    color: #ffffff;
    border: none;
}

.card-body {
    padding: 22px;
}

.table {
    color: var(--color-text);
    margin-bottom: 0;
}

.table thead th {
    background: #f0f6fb;
    color: var(--color-primary-deep);
    font-weight: 700;
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.table tbody tr:hover {
    background: rgba(15, 76, 129, 0.03);
}

.form-control,
.form-select,
.form-check-input {
    border-radius: 14px;
    border-color: rgba(15, 76, 129, 0.14);
}

.form-control,
.form-select {
    min-height: 48px;
    padding: 12px 15px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(30, 138, 165, 0.65);
    box-shadow: 0 0 0 0.2rem rgba(30, 138, 165, 0.14);
}

.form-label {
    font-weight: 700;
    color: var(--color-primary-deep);
    margin-bottom: 10px;
}

.btn {
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
    border: none;
    box-shadow: 0 12px 24px rgba(15, 76, 129, 0.18);
}

.btn-primary:hover {
    box-shadow: 0 16px 30px rgba(15, 76, 129, 0.22);
}

.btn-outline-light {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.btn-outline-light:hover {
    color: var(--color-primary-deep);
    background: #ffffff;
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: rgba(15, 76, 129, 0.24);
}

.alert {
    border: 0;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(30, 138, 165, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(15, 76, 129, 0.2), transparent 32%),
        linear-gradient(135deg, #0a2746 0%, #0f4c81 50%, #1e8aa5 100%);
}

.login-card {
    width: 100%;
    max-width: 460px;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 30px 80px rgba(4, 16, 32, 0.28);
}

.login-header {
    padding: 34px 34px 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
}

.login-body,
.login-footer {
    padding-left: 34px;
    padding-right: 34px;
}

.login-footer {
    background: #f7fbfe;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: auto -18px -18px auto;
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: rgba(30, 138, 165, 0.08);
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: 14px;
    color: var(--color-primary);
    background: rgba(15, 76, 129, 0.08);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary-deep);
}

.stat-label {
    color: var(--color-text-soft);
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.9fr);
    gap: 22px;
    padding: 34px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(135deg, #0a2746 0%, #0f4c81 52%, #1e8aa5 100%);
    color: #ffffff;
    box-shadow: 0 28px 60px rgba(12, 40, 70, 0.24);
}

.admin-hero-content {
    max-width: 720px;
}

.admin-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero-title {
    margin: 16px 0 10px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.05;
    font-weight: 800;
}

.admin-hero-copy {
    margin: 0;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.8;
}

.admin-hero-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.admin-hero-badge {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.admin-hero-badge span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.88rem;
}

.admin-hero-badge strong {
    font-size: 1.05rem;
}

.admin-action-card {
    height: 100%;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 76, 129, 0.07);
    box-shadow: var(--shadow-soft);
}

.admin-action-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
    font-size: 1.25rem;
}

.admin-action-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--color-primary-deep);
}

.admin-action-card p {
    color: var(--color-text-soft);
    line-height: 1.72;
}

.fade-in {
    animation: fadeIn 0.55s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-home {
    background:
        radial-gradient(circle at top left, rgba(30, 138, 165, 0.2), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 214, 125, 0.14), transparent 18%),
        linear-gradient(180deg, #eaf4fb 0%, #f7fbfe 52%, #edf6fb 100%);
    color: var(--color-text);
}

.public-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 251, 254, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
}

.public-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.public-mobile-toggle {
    display: none;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.public-mobile-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary-deep);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.public-mobile-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.public-mobile-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.public-mobile-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.public-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--color-primary-deep);
}

.public-brand strong {
    font-size: 1.05rem;
}

.public-brand-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.public-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.public-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--color-text);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.public-links a.active {
    background: rgba(15, 76, 129, 0.12);
    color: var(--color-primary);
}

.public-links a:hover,
.public-login-link {
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
}

.public-outline-link {
    border: 1px solid rgba(15, 76, 129, 0.16);
}

.public-mobile-menu {
    display: none;
    padding: 0 0 18px;
}

.public-mobile-menu.is-open {
    display: block;
}

.public-mobile-links {
    display: grid;
    gap: 10px;
    padding: 12px 0 0;
}

.public-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-text);
    border: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
}

.public-mobile-links a.active,
.public-mobile-links a:hover {
    color: var(--color-primary);
    background: rgba(15, 76, 129, 0.08);
}

.public-mobile-admin-link {
    background: linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%) !important;
    color: #ffffff !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 36px 0 48px;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 40px auto auto -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(30, 138, 165, 0.12);
    filter: blur(10px);
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: auto -90px 20px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.08);
    filter: blur(14px);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 720px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--color-primary-deep);
}

.hero-copy {
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--color-text-soft);
}

.hero-meta {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.hero-meta div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: var(--shadow-soft);
}

.hero-meta a {
    color: var(--color-primary);
    font-weight: 700;
}

.contact-primary-meta div,
.contact-primary-meta a,
.contact-primary-meta strong {
    color: var(--color-primary-deep);
}

.contact-primary-meta a {
    text-decoration: none;
}

.hero-panel {
    position: relative;
    padding: 30px;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(10, 39, 70, 0.98) 0%, rgba(15, 76, 129, 0.95) 65%, rgba(30, 138, 165, 0.94) 100%);
    color: #ffffff;
    box-shadow: 0 28px 60px rgba(12, 40, 70, 0.24);
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    inset: -30px -20px auto auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.status-list {
    display: grid;
    gap: 12px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.status-row strong {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.info-strip,
.public-light-section {
    color: var(--color-text);
}

.info-strip {
    padding-bottom: 18px;
}

.public-page-section {
    position: relative;
}

.public-page-head {
    max-width: 820px;
}

.small-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--color-primary-deep);
}

.info-card,
.date-card {
    height: 100%;
    padding: 26px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 76, 129, 0.07);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.account-shell {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
}

.account-shell-wide {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.account-panel,
.account-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 76, 129, 0.07);
    border-radius: 26px;
    box-shadow: var(--shadow-soft);
}

.account-copy {
    color: var(--color-text-soft);
    line-height: 1.8;
}

.account-dashboard-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
    padding: 30px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 25%),
        linear-gradient(135deg, #0a2746 0%, #0f4c81 52%, #1e8aa5 100%);
    color: #ffffff;
    box-shadow: 0 24px 52px rgba(12, 40, 70, 0.2);
}

.account-dashboard-hero .small-title,
.account-dashboard-hero .account-copy {
    color: #ffffff;
}

.account-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-status-overview {
    margin-top: 4px;
}

.account-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.account-status-card {
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 252, 0.92));
    box-shadow: 0 16px 32px rgba(12, 40, 70, 0.08);
}

.account-status-label {
    color: #60758f;
    font-size: 0.92rem;
}

.account-status-card h3 {
    margin: 10px 0 8px;
    color: var(--color-primary-deep);
    font-size: 1.35rem;
}

.account-status-card p {
    margin: 0 0 14px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.account-status-link {
    color: var(--color-primary);
    font-weight: 700;
}

.account-status-card.is-success {
    border-color: rgba(22, 163, 74, 0.18);
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(233, 249, 239, 0.94));
}

.account-status-card.is-warning {
    border-color: rgba(245, 158, 11, 0.22);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 246, 216, 0.96));
}

.account-status-card.is-danger {
    border-color: rgba(220, 38, 38, 0.18);
    background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(255, 233, 233, 0.96));
}

.account-status-card.is-info {
    border-color: rgba(59, 130, 246, 0.18);
    background: linear-gradient(180deg, rgba(239, 248, 255, 0.98), rgba(228, 242, 255, 0.96));
}

.account-status-card.is-muted,
.account-status-card.is-pending {
    border-style: dashed;
}

.account-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-summary-grid div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.04);
}

.account-summary-grid strong {
    color: var(--color-primary-deep);
}

.account-summary-grid span {
    color: var(--color-text-soft);
}

.workflow-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.workflow-step-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(15, 76, 129, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 252, 0.92));
    box-shadow: 0 16px 32px rgba(12, 40, 70, 0.08);
}

.workflow-step-card h3 {
    margin: 0;
    color: var(--color-primary-deep);
    font-size: 1.02rem;
}

.workflow-step-card p {
    margin: 0;
    color: var(--color-text-soft);
    line-height: 1.75;
    font-size: 0.95rem;
}

.workflow-step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.workflow-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.12);
    color: var(--color-primary-deep);
    font-weight: 700;
    font-size: 1rem;
}

.workflow-step-status {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary-deep);
    font-size: 0.82rem;
    font-weight: 600;
}

.workflow-step-link,
.workflow-step-muted {
    margin-top: auto;
    font-size: 0.92rem;
    font-weight: 600;
}

.workflow-step-link {
    color: var(--color-primary);
}

.workflow-step-link:hover {
    color: var(--color-primary-deep);
}

.workflow-step-muted {
    color: var(--color-text-soft);
}

.workflow-step-card.is-completed {
    border-color: rgba(22, 163, 74, 0.18);
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(233, 249, 239, 0.94));
}

.workflow-step-card.is-completed .workflow-step-number {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.workflow-step-card.is-completed .workflow-step-status {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.workflow-step-card.is-current {
    border-color: rgba(245, 158, 11, 0.22);
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.98), rgba(255, 246, 216, 0.96));
}

.workflow-step-card.is-current .workflow-step-number {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.workflow-step-card.is-current .workflow-step-status {
    background: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

.workflow-step-card.is-pending {
    border-style: dashed;
}

.submission-hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 22px;
    padding: 30px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
        linear-gradient(135deg, #0a2746 0%, #0f4c81 52%, #1e8aa5 100%);
    color: #ffffff;
    box-shadow: 0 28px 60px rgba(12, 40, 70, 0.22);
}

.submission-hero-banner .small-title,
.submission-hero-banner .account-copy {
    color: #ffffff;
}

.submission-hero-badges {
    display: grid;
    gap: 14px;
}

.submission-hero-badge {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.submission-hero-badge strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
}

.submission-hero-badge span {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.submission-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: 24px;
    align-items: start;
}

.submission-sidebar {
    display: grid;
    gap: 18px;
}

.submission-guide-card {
    padding: 24px;
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 252, 0.92));
    border: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: var(--shadow-soft);
}

.submission-guide-card.is-soft {
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(241, 247, 252, 0.94));
}

.submission-guide-card h2 {
    margin: 10px 0 10px;
    color: var(--color-primary-deep);
    font-size: 1.18rem;
    font-weight: 800;
}

.submission-guide-card p {
    color: var(--color-text-soft);
    line-height: 1.8;
    margin-bottom: 0;
}

.submission-guide-list,
.submission-check-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.submission-guide-item,
.submission-check-list div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.04);
}

.submission-guide-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--color-primary-deep);
}

.submission-guide-item span,
.submission-check-list div {
    color: var(--color-text-soft);
    line-height: 1.7;
}

.submission-check-list div {
    position: relative;
    padding-left: 44px;
}

.submission-check-list div::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
    box-shadow: 0 0 0 6px rgba(15, 76, 129, 0.08);
}

.submission-form-shell {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 76, 129, 0.07);
    box-shadow: var(--shadow-soft);
}

.submission-wizard-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.submission-wizard-progress-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.submission-step-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(15, 76, 129, 0.12);
    border-radius: 18px;
    background: rgba(248, 251, 253, 0.9);
    color: var(--color-text);
    text-align: left;
    transition: all 0.2s ease;
}

.submission-step-pill:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.submission-step-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary-deep);
    font-weight: 700;
}

.submission-step-pill strong {
    font-size: 0.94rem;
    line-height: 1.45;
    font-weight: 700;
}

.submission-step-pill.is-active,
.submission-step-pill.is-completed {
    border-color: rgba(15, 76, 129, 0.18);
    box-shadow: var(--shadow-soft);
}

.submission-step-pill.is-active {
    background: linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
    color: #ffffff;
}

.submission-step-pill.is-active span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.submission-step-pill.is-completed {
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(233, 249, 239, 0.94));
}

.submission-step-pill.is-completed span {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.submission-step-panel {
    display: none;
}

.submission-step-panel.is-active {
    display: block;
}

.submission-step-card {
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 253, 0.94));
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-authors-grid {
    display: grid;
    gap: 18px;
}

.submission-authors-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-authors-toolbar strong,
.submission-authors-toolbar span {
    display: block;
}

.submission-authors-toolbar span {
    margin-top: 4px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
}

.submission-author-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(15, 76, 129, 0.04);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-author-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.submission-author-index {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.submission-author-hint {
    color: var(--color-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.submission-author-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.submission-presenting-check {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-presenting-check .form-check-input {
    margin-top: 0.25rem;
}

.submission-authors-display {
    display: grid;
    gap: 14px;
}

.submission-author-display-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.04);
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-author-display-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.submission-author-display-top strong {
    color: var(--color-primary-deep);
    font-size: 1rem;
}

.submission-author-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(30, 138, 165, 0.12);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.submission-author-display-meta {
    display: grid;
    gap: 6px;
    color: var(--color-text-soft);
    line-height: 1.65;
}

.submission-step-header {
    margin-bottom: 14px;
}

.submission-review-card {
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 252, 0.92));
    border: 1px solid rgba(15, 76, 129, 0.08);
}

.submission-review-card h3 {
    margin: 8px 0 0;
    color: var(--color-primary-deep);
    font-size: 1.06rem;
    font-weight: 700;
}

.submission-review-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.submission-review-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 129, 0.08);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.submission-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.submission-review-grid div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 76, 129, 0.04);
}

.submission-review-grid .is-full {
    grid-column: 1 / -1;
}

.submission-review-grid strong {
    color: var(--color-primary-deep);
}

.submission-review-grid span {
    color: var(--color-text-soft);
    line-height: 1.7;
    white-space: pre-line;
}

.submission-wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
}

.submission-wizard-actions-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.account-task-list,
.account-log-list {
    display: grid;
    gap: 14px;
}

.account-task-item,
.account-log-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.04);
}

.account-task-item span,
.account-log-item span,
.account-log-item small {
    color: var(--color-text-soft);
}

.info-card:hover,
.date-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.info-card h3,
.date-card h3 {
    color: var(--color-primary-deep);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-card p,
.date-card p {
    margin: 0;
    line-height: 1.72;
    color: var(--color-text-soft);
}

.date-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.public-footer {
    margin-top: 40px;
    background:
        radial-gradient(circle at top right, rgba(96, 181, 204, 0.16), transparent 24%),
        linear-gradient(180deg, #0a2746 0%, #102f52 100%);
    color: rgba(255, 255, 255, 0.88);
}

.public-footer strong {
    color: #ffffff;
}

.public-footer a {
    color: #d9f6ff;
}

.public-bottom-nav {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 120;
    padding: 10px 8px;
    border-radius: 24px;
    background: rgba(8, 27, 46, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 44px rgba(8, 27, 46, 0.28);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

.public-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

.public-bottom-nav-item i {
    font-size: 1rem;
}

.public-bottom-nav-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.badge {
    border-radius: 999px;
    padding: 0.5em 0.8em;
}

.list-group-item {
    border-color: rgba(15, 76, 129, 0.08);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content,
    .main-content.expanded {
        margin-left: 0;
    }

    .public-nav {
        align-items: center;
    }

    .public-links {
        display: none;
    }

    .admin-hero {
        grid-template-columns: 1fr;
    }

    .account-shell,
    .account-shell-wide,
    .submission-layout,
    .submission-hero-banner {
        grid-template-columns: 1fr;
    }

    .account-dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .public-mobile-toggle {
        display: inline-flex;
    }

    .public-bottom-nav {
        display: grid;
    }

    .public-home {
        padding-bottom: 100px;
    }
}

@media (max-width: 768px) {
    .content-area,
    .main-header {
        padding-left: 18px;
        padding-right: 18px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .hero-panel,
    .info-card,
    .date-card,
    .card {
        border-radius: 22px;
    }

    .public-links a {
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }

    .public-nav {
        gap: 14px;
    }

    .public-brand {
        max-width: calc(100% - 72px);
    }

    .public-brand strong {
        font-size: 0.96rem;
        line-height: 1.35;
    }

    .public-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .public-bottom-nav-item span {
        font-size: 0.68rem;
    }

    .account-panel,
    .account-card,
    .account-dashboard-hero,
    .submission-form-shell,
    .submission-guide-card,
    .submission-hero-banner,
    .submission-step-card {
        padding: 22px;
    }

    .account-summary-grid {
        grid-template-columns: 1fr;
    }

    .submission-wizard-progress,
    .submission-review-grid {
        grid-template-columns: 1fr;
    }

    .submission-wizard-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .submission-wizard-actions-right {
        justify-content: stretch;
    }

    .submission-wizard-actions-right .btn,
    .submission-wizard-actions > .btn {
        width: 100%;
    }

    .admin-user-button {
        min-height: 46px;
        padding: 5px 10px 5px 6px;
    }

    .admin-user-meta {
        display: none;
    }

    .admin-user-dropdown {
        min-width: 210px;
    }
}

@media print {
    .sidebar,
    .main-header,
    .btn,
    .pagination {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
    }
}
.certificate-sheet {
    background: linear-gradient(145deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(33, 91, 171, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 48px rgba(24, 56, 109, 0.12);
    padding: 28px;
}

.certificate-sheet-inner {
    background: #fff;
    border: 8px solid rgba(44, 109, 214, 0.12);
    border-radius: 24px;
    min-height: 720px;
    padding: 48px 40px;
    text-align: center;
}

.certificate-kicker {
    color: #215bab;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.certificate-title {
    color: #15305e;
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    margin: 20px 0 10px;
}

.certificate-subtitle {
    color: #4f6487;
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.certificate-recipient {
    color: #10284d;
    font-size: clamp(1.9rem, 3.1vw, 2.7rem);
    font-weight: 700;
    margin: 12px 0 26px;
}

.certificate-body {
    color: #324867;
    font-size: 1.08rem;
    line-height: 1.9;
    max-width: 760px;
    margin: 0 auto;
}

.certificate-body p {
    margin-bottom: 0.85rem;
}

.certificate-meta {
    border-top: 1px dashed rgba(33, 91, 171, 0.25);
    color: #5d7397;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    margin-top: 34px;
    padding-top: 20px;
}

.certificate-signature {
    margin-top: 64px;
}

.certificate-signature-line {
    border-top: 2px solid rgba(16, 40, 77, 0.25);
    margin: 0 auto 12px;
    max-width: 260px;
}

.certificate-signature strong,
.certificate-signature span {
    display: block;
}

.certificate-signature span {
    color: #5d7397;
    margin-top: 4px;
}

@media (max-width: 767.98px) {
    .certificate-sheet {
        border-radius: 20px;
        padding: 16px;
    }

    .certificate-sheet-inner {
        border-radius: 18px;
        min-height: auto;
        padding: 28px 18px;
    }

    .certificate-meta {
        align-items: center;
        flex-direction: column;
        gap: 8px;
    }
}

.management-summary-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.management-summary-card {
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(21, 48, 94, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(20, 56, 118, 0.08);
    display: flex;
    gap: 16px;
    padding: 20px;
}

.management-summary-card.tone-blue {
    background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.management-summary-card.tone-green {
    background: linear-gradient(180deg, #ffffff 0%, #edf9f3 100%);
}

.management-summary-card.tone-gold {
    background: linear-gradient(180deg, #ffffff 0%, #fff7e7 100%);
}

.management-summary-card.tone-purple {
    background: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%);
}

.management-summary-icon {
    align-items: center;
    background: rgba(33, 91, 171, 0.12);
    border-radius: 18px;
    color: #1e57a6;
    display: inline-flex;
    font-size: 1.25rem;
    height: 54px;
    justify-content: center;
    min-width: 54px;
}

.management-summary-label {
    color: #4f6487;
    font-size: 0.92rem;
    margin-bottom: 6px;
}

.management-summary-value {
    color: #15305e;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.management-summary-caption {
    color: #6e7f99;
    font-size: 0.9rem;
}

.management-status-list,
.management-decision-list {
    display: grid;
    gap: 14px;
}

.management-status-item,
.management-decision-item {
    align-items: flex-start;
    background: #f8fbff;
    border: 1px solid rgba(33, 91, 171, 0.08);
    border-radius: 18px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.management-status-item h6,
.management-decision-item h6 {
    color: #15305e;
}

.management-progress-row + .management-progress-row {
    margin-top: 18px;
}

.management-progress-bar {
    background: #edf3fb;
    border-radius: 999px;
    height: 11px;
}

.management-progress-bar .progress-bar {
    background: linear-gradient(90deg, #1f60b8 0%, #44a4ff 100%);
    border-radius: 999px;
}

.management-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.management-checklist li {
    border-bottom: 1px dashed rgba(21, 48, 94, 0.12);
    color: #304766;
    padding: 0 0 14px 34px;
    position: relative;
}

.management-checklist li + li {
    margin-top: 14px;
}

.management-checklist li::before {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-family: "Font Awesome 6 Free";
    font-size: 0.8rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 0;
    width: 22px;
}

.management-checklist.is-complete li::before {
    background: rgba(34, 167, 106, 0.14);
    color: #18915c;
    content: "\f00c";
}

.management-checklist.is-progress li::before {
    background: rgba(33, 91, 171, 0.12);
    color: #1e57a6;
    content: "\f110";
}

.management-checklist.is-next li::before {
    background: rgba(242, 168, 33, 0.16);
    color: #b77912;
    content: "\f061";
}

.management-note-box {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
    border: 1px solid rgba(33, 91, 171, 0.08);
    border-radius: 18px;
    padding: 18px;
}

.management-note-box + .management-note-box {
    margin-top: 14px;
}

.management-note-box strong {
    color: #15305e;
    display: block;
    margin-bottom: 8px;
}

.management-note-box p,
.management-decision-item p {
    color: #546983;
    line-height: 1.7;
}

.guide-hero {
    max-width: 820px;
}

.guide-highlight-grid,
.guide-link-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-highlight-card,
.guide-link-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(15, 76, 129, 0.1);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(14, 41, 70, 0.08);
    display: block;
    padding: 20px;
}

.guide-highlight-card strong,
.guide-link-card strong,
.guide-detail-card h3,
.guide-step-card h3,
.guide-section-head h2 {
    color: #15305e;
}

.guide-highlight-card p,
.guide-link-card span,
.guide-detail-card ol,
.guide-step-card p,
.guide-section-head p,
.guide-bullet-list li {
    color: #5a708d;
}

.guide-link-card span {
    display: block;
    margin-top: 8px;
}

.guide-section {
    border-top: 1px solid rgba(15, 76, 129, 0.08);
    padding-top: 28px;
}

.guide-section-head {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
}

.guide-section-number {
    align-items: center;
    background: linear-gradient(135deg, #143d70 0%, #1e8aa5 100%);
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    min-width: 52px;
}

.guide-step-list,
.guide-detail-grid {
    display: grid;
    gap: 16px;
}

.guide-step-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.guide-step-card,
.guide-detail-card {
    background: #fff;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(14, 41, 70, 0.08);
    padding: 22px;
}

.guide-step-badge {
    background: rgba(30, 138, 165, 0.12);
    border-radius: 999px;
    color: #145d7a;
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding: 7px 12px;
}

.guide-detail-card ol {
    margin: 0;
    padding-left: 1.2rem;
}

.guide-detail-card li + li {
    margin-top: 8px;
}

.guide-bullet-list {
    margin: 0;
    padding-left: 1.1rem;
}

.guide-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-admin-links {
    display: grid;
    gap: 12px;
}

.guide-admin-link-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fe 100%);
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 18px;
    display: block;
    padding: 16px 18px;
}

.guide-admin-link-card strong {
    color: #15305e;
    display: block;
}

.guide-admin-link-card span {
    color: #60758f;
    display: block;
    margin-top: 4px;
}

.guide-admin-list {
    color: #566c87;
    margin: 0;
    padding-left: 1.2rem;
}

.guide-admin-list li + li {
    margin-top: 10px;
}

.guide-print-page {
    background: #fff;
}

.guide-print-wrap {
    margin: 0 auto;
    max-width: 920px;
    padding: 40px 24px 72px;
}

.guide-print-header {
    border-bottom: 2px solid rgba(15, 76, 129, 0.1);
    margin-bottom: 24px;
    padding-bottom: 18px;
}

.guide-print-brand {
    color: #1e57a6;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guide-print-header h1,
.guide-print-section h2,
.guide-print-section h3 {
    color: #15305e;
}

.guide-print-header p,
.guide-print-section p,
.guide-print-section li {
    color: #445b79;
    line-height: 1.75;
}

.guide-print-section {
    margin-bottom: 24px;
}

.guide-print-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

@media print {
    .no-print {
        display: none !important;
    }

    .guide-print-wrap {
        max-width: none;
        padding: 0;
    }

    .guide-print-page {
        background: #fff !important;
    }
}

@media (max-width: 767.98px) {
    .guide-section-head {
        flex-direction: column;
    }

    .guide-hero-actions,
    .guide-print-actions {
        flex-direction: column;
    }
}

@media (max-width: 991.98px) {
    .management-status-item,
    .management-decision-item {
        flex-direction: column;
    }
}

.management-link-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.management-link-card {
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 32px rgba(16, 48, 86, 0.08);
    color: #15305e;
    display: flex;
    gap: 14px;
    min-height: 84px;
    padding: 18px 20px;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.management-link-card:hover {
    border-color: rgba(21, 87, 166, 0.22);
    box-shadow: 0 20px 40px rgba(16, 48, 86, 0.12);
    color: #15305e;
    transform: translateY(-2px);
}

.management-link-icon {
    align-items: center;
    background: linear-gradient(135deg, #143d70 0%, #1e8aa5 100%);
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    height: 46px;
    justify-content: center;
    min-width: 46px;
}

.management-link-text {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
}

.submission-extra-files {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 22px;
    padding: 22px;
}

.submission-extra-files h3 {
    color: #15305e;
    font-size: 1.1rem;
    font-weight: 700;
}

.submission-file-row {
    align-items: end;
    background: #ffffff;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 18px;
    display: grid;
    gap: 14px;
    grid-template-columns: 180px 1fr 1fr;
    padding: 16px;
}

.submission-file-row + .submission-file-row {
    margin-top: 14px;
}

@media (max-width: 991.98px) {
    .submission-authors-toolbar,
    .submission-author-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .submission-author-header-actions {
        justify-content: flex-start;
    }

    .submission-file-row {
        grid-template-columns: 1fr;
    }
}

/* Public visual polish: keep admin baseline untouched. */
.public-home {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 8%, rgba(30, 138, 165, 0.18), transparent 28%),
        radial-gradient(circle at 92% 2%, rgba(255, 201, 112, 0.18), transparent 20%),
        linear-gradient(180deg, #eef7fb 0%, #f9fcfb 46%, #edf6fb 100%);
}

.public-nav-wrap {
    background: rgba(244, 250, 252, 0.82);
    border-bottom: 1px solid rgba(15, 76, 129, 0.08);
    box-shadow: 0 10px 34px rgba(13, 45, 73, 0.07);
}

.public-nav-wrap .container,
.hero-section .container,
.public-page-section .container {
    max-width: 1180px;
}

.public-nav {
    padding: 8px 10px;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 18px 42px rgba(13, 45, 73, 0.08);
}

.public-brand {
    min-width: 240px;
    padding-left: 8px;
    text-decoration: none;
}

.public-brand strong {
    color: var(--color-primary-deep);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
}

.public-brand-kicker {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(30, 138, 165, 0.12));
}

.public-links {
    justify-content: flex-end;
}

.public-links a {
    text-decoration: none;
}

.public-login-link {
    color: var(--color-primary) !important;
    background: rgba(15, 76, 129, 0.08);
}

.public-outline-link {
    border-color: rgba(15, 76, 129, 0.2);
    background: #ffffff;
    color: var(--color-primary-deep) !important;
}

.hero-section {
    padding: 50px 0 62px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    padding: 34px;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
        radial-gradient(circle at top right, rgba(30, 138, 165, 0.16), transparent 35%);
    box-shadow: 0 28px 70px rgba(13, 45, 73, 0.12);
}

.hero-section .row {
    margin-left: 0;
    margin-right: 0;
}

.hero-kicker {
    padding: 9px 16px;
    background: rgba(15, 76, 129, 0.1);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-title {
    color: var(--color-primary-deep);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-copy {
    max-width: 680px;
    color: var(--color-text-soft);
    font-size: 1.08rem;
    line-height: 1.85;
}

.hero-meta {
    display: grid;
    gap: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
}

.home-hero-cover {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(15, 76, 129, 0.1);
    box-shadow: 0 24px 60px rgba(13, 45, 73, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.home-hero-cover-image {
    display: block;
    width: 100%;
    height: auto;
}

.home-hero-title {
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.22;
    max-width: 100%;
}

.home-hero-copy {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.8;
}

.home-hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 28%),
        linear-gradient(145deg, #0a2746 0%, #0f4c81 58%, #1e8aa5 100%);
    box-shadow: 0 26px 54px rgba(10, 39, 70, 0.24);
}

.status-row {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.1);
}

.info-strip {
    background: transparent;
}

.info-card,
.date-card {
    border: 1px solid rgba(15, 76, 129, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 48px rgba(13, 45, 73, 0.09);
}

.info-card h3,
.date-card h3 {
    color: var(--color-primary-deep);
    font-weight: 800;
}

.submission-areas-section {
    padding-top: 6px;
}

.section-heading {
    max-width: 760px;
}

.section-copy {
    color: var(--color-text-soft);
    font-size: 1rem;
    line-height: 1.8;
}

.submission-areas-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.submission-area-card {
    align-items: flex-start;
    border: 1px solid rgba(15, 76, 129, 0.08);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 252, 0.96)),
        radial-gradient(circle at top right, rgba(30, 138, 165, 0.12), transparent 36%);
    box-shadow: 0 20px 48px rgba(13, 45, 73, 0.09);
    display: flex;
    gap: 16px;
    min-height: 100%;
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.submission-area-card:hover {
    border-color: rgba(21, 87, 166, 0.18);
    box-shadow: 0 24px 54px rgba(13, 45, 73, 0.12);
    transform: translateY(-2px);
}

.submission-area-number {
    align-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f4c81 0%, #1e8aa5 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    display: inline-flex;
    flex: 0 0 62px;
    font-size: 1rem;
    font-weight: 800;
    height: 62px;
    justify-content: center;
    letter-spacing: 0.06em;
}

.submission-area-copy h3 {
    color: var(--color-primary-deep);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 0;
}

.public-light-section {
    background: rgba(255, 255, 255, 0.35);
}

.public-footer {
    margin-top: 34px;
    background:
        radial-gradient(circle at top left, rgba(30, 138, 165, 0.22), transparent 28%),
        linear-gradient(135deg, #081b2e 0%, #0a2746 55%, #0f4c81 100%);
}

@media (max-width: 991px) {
    .public-nav {
        padding: 10px 12px;
    }

    .hero-section .container {
        padding: 26px;
    }

    .home-hero-meta {
        grid-template-columns: 1fr;
    }

    .submission-areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 28px 0 42px;
    }

    .hero-section .container {
        border-radius: 26px;
        padding: 22px;
    }

    .public-brand {
        min-width: 0;
    }

    .hero-meta {
        padding: 16px;
    }

    .home-hero-cover {
        border-radius: 22px;
    }

    .submission-areas-grid {
        grid-template-columns: 1fr;
    }

    .submission-area-card {
        border-radius: 22px;
        padding: 18px;
    }

    .submission-area-number {
        flex-basis: 54px;
        height: 54px;
    }

    .home-hero-title {
        font-size: clamp(1.7rem, 7vw, 2.35rem);
    }

    .home-hero-copy {
        font-size: 0.96rem;
    }
}
