:root {
    --bg-body: #0f172a;
    --bg-elevated: #020617;
    --bg-card: #020617;
    --bg-card-soft: #020617;
    --bg-sidebar: #020617;
    --border-subtle: rgba(148, 163, 184, 0.2);
    --border-strong: rgba(148, 163, 184, 0.4);
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --accent-strong: #0ea5e9;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --text-soft: #6b7280;
    --danger: #f97373;
    --danger-soft: rgba(239, 68, 68, 0.15);
    --warning: #fbbf24;
    --warning-soft: rgba(234, 179, 8, 0.15);
    --success: #4ade80;
    --success-soft: rgba(34, 197, 94, 0.15);
    --info: #38bdf8;
    --info-soft: rgba(56, 189, 248, 0.15);
    --radius-lg: 18px;
    --radius-md: 10px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
    --shadow-subtle: 0 1px 0 rgba(148, 163, 184, 0.2);
    --sidebar-width: 280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #1d293b 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* SIDEBAR */

.sidebar {
    background: radial-gradient(circle at top left, #1d293b 0, #020617 45%, #020617 100%);
    border-radius: 24px;
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px);
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 55%);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 14px;
    background: radial-gradient(circle at top, #38bdf8 0, #0ea5e9 40%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1120;
    font-size: 18px;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.7);
}

.brand__text {
    display: flex;
    flex-direction: column;
}

.brand__name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.brand__subtitle {
    font-size: 11px;
    color: var(--text-soft);
}

.sidebar__nav {
    margin-top: 22px;
    padding: 4px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.97));
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.35);
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.nav-item:last-child {
    margin-bottom: 0;
}

.nav-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 55%);
    opacity: 0;
    transition: opacity 0.18s ease-out;
}

.nav-item__icon {
    font-size: 15px;
    margin-right: 4px;
}

.nav-item__label {
    flex: 1;
}

.nav-item__pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.13);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: var(--text-main);
}

.nav-item__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: radial-gradient(circle at center, #facc15 0, #f97316 45%, #ea580c 100%);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}

.nav-item--active {
    color: var(--text-main);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.65);
    box-shadow: 0 14px 25px rgba(15, 23, 42, 0.9), inset 0 1px 0 rgba(148, 163, 184, 0.7);
}

.nav-item--active::before {
    opacity: 1;
}

.nav-item:hover:not(.nav-item--active) {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
}

.sidebar__footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #4ade80 0, #22c55e 40%, #15803d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #022c22;
    box-shadow: 0 10px 24px rgba(34, 197, 94, 0.7);
}

.user-card__info {
    display: flex;
    flex-direction: column;
}

.user-card__name {
    font-size: 13px;
    font-weight: 500;
}

.user-card__role {
    font-size: 11px;
    color: var(--text-soft);
}

/* MAIN */

.main {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.99));
    border-radius: 28px;
    padding: 20px 22px 18px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    backdrop-filter: blur(20px);
}

.main__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.page-title {
    margin: 0 0 4px;
    font-size: 22px;
    letter-spacing: 0.01em;
}

.page-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search {
    position: relative;
    min-width: 260px;
}

.search__input {
    width: 100%;
    padding: 9px 12px;
    padding-left: 30px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.5);
}

.search__input::placeholder {
    color: var(--text-soft);
}

.search::before {
    content: "⌕";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-54%);
    font-size: 13px;
    color: var(--text-soft);
}

/* BUTTONS */

.btn {
    border-radius: 999px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
        background-color 0.12s ease-out, border-color 0.12s ease-out;
    white-space: nowrap;
}

.btn--primary {
    background: radial-gradient(circle at top, var(--accent) 0, var(--accent-strong) 45%, #0369a1 100%);
    color: #0b1120;
    box-shadow: 0 14px 35px rgba(56, 189, 248, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.9);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 40px rgba(56, 189, 248, 0.8);
}

.btn--ghost {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.btn--ghost:hover {
    background: rgba(15, 23, 42, 1);
    color: var(--text-main);
}

.btn--small {
    padding: 6px 10px;
    font-size: 12px;
}

/* CARDS GRID */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.metric-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.metric-card__label {
    font-size: 12px;
    color: var(--text-soft);
}

.metric-card__tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.metric-card__tag--warning {
    background: var(--warning-soft);
    border-color: rgba(234, 179, 8, 0.8);
    color: #facc15;
}

.metric-card__tag--success {
    background: var(--success-soft);
    border-color: rgba(34, 197, 94, 0.85);
    color: #4ade80;
}

.metric-card__tag--info {
    background: var(--info-soft);
    border-color: rgba(56, 189, 248, 0.85);
    color: #38bdf8;
}

.metric-card__tag--neutral {
    background: rgba(148, 163, 184, 0.13);
}

.metric-card__value {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
}

.metric-card__detail {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.metric-card__trend {
    font-weight: 500;
}

.metric-card__trend--up {
    color: #4ade80;
}

.metric-card__trend--neutral {
    color: var(--text-muted);
}

.metric-card__extra {
    color: var(--text-soft);
}

/* PANELS & TABLE */

.layout-two-columns {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: flex-start;
}

.panel {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
    border-radius: 20px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.9);
}

.panel--wide {
    grid-column: 1 / -1;
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.panel__title {
    margin: 0 0 4px;
    font-size: 15px;
}

.panel__subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
}

.table {
    border-radius: 14px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.4);
    overflow: hidden;
    font-size: 12px;
}

.table__header,
.table__row {
    display: grid;
    grid-template-columns: 1.3fr 0.6fr 1fr 0.9fr 1fr;
    gap: 8px;
    padding: 7px 10px;
}

.table__header {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--text-soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table__row:nth-child(odd) {
    background: rgba(15, 23, 42, 0.96);
}

.table__row:nth-child(even) {
    background: rgba(15, 23, 42, 0.99);
}

.table__row + .table__row {
    border-top: 1px solid rgba(15, 23, 42, 1);
}

.table__cell--primary {
    font-weight: 500;
}

.status {
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status--warning {
    background: var(--warning-soft);
    color: #fbbf24;
    border-color: rgba(234, 179, 8, 0.8);
}

.status--danger {
    background: var(--danger-soft);
    color: #fb7185;
    border-color: rgba(239, 68, 68, 0.85);
}

.status--info {
    background: var(--info-soft);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.85);
}

.status--success {
    background: var(--success-soft);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.85);
}

/* RISK CHART */

.risk-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 12px;
}

.risk-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
}

.legend-item__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.legend-item__dot--danger {
    background: linear-gradient(135deg, #fb7185, #ef4444);
}

.legend-item__dot--warning {
    background: linear-gradient(135deg, #facc15, #f97316);
}

.legend-item__dot--info {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

.risk-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-bar {
    display: grid;
    grid-template-columns: 0.7fr 2.2fr 0.7fr;
    gap: 8px;
    align-items: center;
}

.risk-bar__label {
    font-size: 12px;
    color: var(--text-soft);
}

.risk-bar__track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 1);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.risk-bar__fill {
    height: 100%;
    border-radius: inherit;
}

.risk-bar__fill--danger {
    background: linear-gradient(90deg, #fb7185, #ef4444);
}

.risk-bar__fill--warning {
    background: linear-gradient(90deg, #facc15, #f97316);
}

.risk-bar__fill--info {
    background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.risk-bar__value {
    font-size: 12px;
    text-align: right;
    color: var(--text-muted);
}

.risk-summary {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
}

.risk-summary h3 {
    margin: 0 0 4px;
    font-size: 12px;
}

.risk-summary ul {
    margin: 0;
    padding-left: 16px;
    color: var(--text-soft);
}

.risk-summary li {
    margin-bottom: 3px;
}

/* TIMELINE */

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.timeline__date {
    width: 52px;
    border-radius: 12px;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.5);
    text-align: center;
    padding: 6px 4px;
}

.timeline__day {
    display: block;
    font-size: 11px;
    color: var(--text-soft);
}

.timeline__number {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.timeline__content h3 {
    margin: 0 0 3px;
    font-size: 13px;
}

.timeline__content p {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--text-soft);
}

.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.tag {
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.tag--info {
    border-color: rgba(59, 130, 246, 0.8);
    color: #60a5fa;
}

.tag--success {
    border-color: rgba(34, 197, 94, 0.85);
    color: #4ade80;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .app-shell {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .sidebar {
        padding-inline: 12px;
    }

    .sidebar__brand {
        justify-content: center;
    }

    .brand__text {
        display: none;
    }

    .nav-item__label,
    .nav-item__pill {
        display: none;
    }

    .nav-item {
        justify-content: center;
    }

    .sidebar__footer {
        align-items: center;
    }

    .user-card__info {
        display: none;
    }
}

@media (max-width: 900px) {
    .app-shell {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .sidebar {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
    }

    .sidebar__nav {
        flex: 1;
        display: flex;
        gap: 4px;
        background: transparent;
        box-shadow: none;
    }

    .sidebar__footer {
        margin-top: 0;
        border-top: none;
        border-left: 1px solid rgba(148, 163, 184, 0.4);
        padding-left: 10px;
    }

    .main {
        padding: 14px 12px;
    }

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

    .layout-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search {
        min-width: 0;
        flex: 1;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .table__header,
    .table__row {
        grid-template-columns: 1.2fr 0.6fr 1fr;
        grid-template-rows: auto auto;
    }

    .table__header span:nth-child(4),
    .table__header span:nth-child(5),
    .table__row span:nth-child(4),
    .table__row span:nth-child(5) {
        display: none;
    }

    .timeline__item {
        grid-template-columns: auto;
    }

    .timeline__date {
        width: auto;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding-inline: 8px;
    }

    .timeline__number {
        font-size: 14px;
    }
}

/* LOGIN PAGE */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 1;
}

.login-card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    border-radius: 24px;
    padding: 32px 28px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.brand-logo-large {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: radial-gradient(circle at top, #38bdf8 0, #0ea5e9 40%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0b1120;
    font-size: 32px;
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.7);
}

.login-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.login-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.input-wrapper {
    position: relative;
}

.form-input,
.form-select {
    width: 100%;
    padding: 11px 14px;
    padding-left: 38px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.4);
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    border-color: rgba(56, 189, 248, 0.8);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15), inset 0 1px 0 rgba(148, 163, 184, 0.5);
}

.form-input--readonly {
    background: rgba(15, 23, 42, 0.7);
    color: var(--text-soft);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.form-hint {
    font-size: 11px;
    color: var(--text-soft);
    margin-top: 2px;
}

.form-actions {
    margin-top: 4px;
}

.form-actions-secondary {
    margin-top: -8px;
}

.btn--block {
    width: 100%;
}

.btn--large {
    padding: 12px 20px;
    font-size: 14px;
}

.login-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    text-align: center;
}

.login-date {
    margin: 0;
    font-size: 11px;
    color: var(--text-soft);
}

.login-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.bg-shape--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #38bdf8, transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bg-shape--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4ade80, transparent);
    bottom: -50px;
    right: -50px;
    animation-delay: 5s;
}

.bg-shape--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #fbbf24, transparent);
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@media (max-width: 640px) {
    .login-container {
        padding: 16px;
    }

    .login-card {
        padding: 24px 20px;
    }

    .login-title {
        font-size: 20px;
    }
}

/* FORM ELEMENTS */

.form-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
}

.radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

.radio-option:hover {
    color: var(--text-main);
}

/* PARTICIPANTES */

.participantes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.participante-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.participante-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at top, #38bdf8 0, #0ea5e9 40%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #0b1120;
    flex-shrink: 0;
}

.participante-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.participante-name {
    font-size: 13px;
    font-weight: 500;
}

.participante-detail {
    font-size: 11px;
    color: var(--text-soft);
}

/* UPLOAD AREA */

.upload-area {
    border: 2px dashed rgba(148, 163, 184, 0.4);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    cursor: pointer;
    transition: border-color 0.15s ease-out, background 0.15s ease-out;
}

.upload-area:hover {
    border-color: rgba(56, 189, 248, 0.6);
    background: rgba(15, 23, 42, 0.7);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-text {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--text-main);
}

.upload-hint {
    margin: 0;
    font-size: 11px;
    color: var(--text-soft);
}

.archivos-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.archivo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 12px;
}

.archivo-icon {
    font-size: 16px;
}

.archivo-name {
    flex: 1;
    color: var(--text-muted);
}

/* FORM ACTIONS PANEL */

.form-actions-panel {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.episodio-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* BADGES */

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.badge--urgent {
    background: var(--danger-soft);
    color: #fb7185;
    border: 1px solid rgba(239, 68, 68, 0.6);
}

.badge--confidencial {
    background: rgba(147, 51, 234, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(147, 51, 234, 0.4);
}

/* FORM SELECT INLINE */

.form-select--inline {
    min-width: 160px;
    padding: 9px 12px;
    padding-left: 12px;
    padding-right: 32px;
    font-size: 13px;
}

/* ADMIN CARDS */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.admin-card {
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.6);
}

.admin-card__icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.admin-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
}

.admin-card__description {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-soft);
}

.admin-card__count {
    font-size: 11px;
    color: var(--accent);
    font-weight: 500;
}

/* TABLE UPDATES */

.table__header,
.table__row {
    grid-template-columns: 0.5fr 1fr 1fr 1fr 1.2fr 0.8fr 0.6fr;
}

.table__header span:first-child,
.table__row span:first-child {
    display: flex;
    gap: 4px;
    align-items: center;
}

/* BUTTON UPDATES */

.btn--small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn a {
    text-decoration: none;
    color: inherit;
}

.btn--primary a {
    color: #0b1120;
}

.btn--ghost a {
    color: var(--text-muted);
}

