/* -- BASE -- */

/* #region VARIABLES */
:root {
    --color-bg: #120022;
    --color-bg-soft: #1d0038;
    --color-card: rgba(28, 5, 48, 0.9);
    --color-card-border: rgba(204, 102, 0, 0.25);
    --color-text: #f5efff;
    --color-muted: #bcaed6;
    --color-primary: #cc6600;
    --color-primary-light: #ff9933;
    --color-secondary: #8870b0;
    --radius-lg: 24px;
    --shadow-glow: 0 0 30px rgba(204, 102, 0, 0.15);
}

* {
    box-sizing: border-box;
}

/* #endregion */

/* #region GLOBAL */
body {
    min-height: 100vh;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(204, 102, 0, 0.08), transparent 40rem),
        radial-gradient(circle at bottom right, rgba(255, 153, 51, 0.06), transparent 30rem),
        var(--color-bg);
}

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

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.page {
    padding-bottom: 72px;
}

h1 {
    margin: 0;
    font-size: clamp(3.5rem, 12vw, 8.5rem);
    line-height: 0.86;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    text-shadow: 0 0 35px rgba(204, 102, 0, 0.28);
    text-align: center;
}

h2 {
    margin: 0 0 22px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.05em;
}

.subtitle {
    margin: 0 0 16px;
    color: var(--color-primary-light);
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}
/* #endregion */

/* #region FOOTER */

.site-footer {
    padding: 14px 16px;
    border-top: 0.5px solid rgba(204, 102, 0, 0.18);
    color: var(--color-muted);
    text-align: center;
    font-size: 0.85rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--color-primary-light);
    font-weight: 800;
}

.site-footer a:hover {
    color: var(--color-text);
}
/* #endregion */

/* #region TOASTS FLASH */
.flash-container {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1000;
    display: grid;
    gap: 12px;
    width: min(460px, calc(100vw - 32px));
    transform: translateX(-50%);
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.45);
}

.flash--success {
    background: #178a55;
    border-color: #2ca76b;
}

.flash--error {
    background: #c0392b;
    border-color: #d14b4b;
}

.flash__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
}

.flash__close:hover {
    opacity: 1;
}

.flash.is-hidden {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.flash span {
    flex: 1;
}

/* #endregion */

/* #region BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg,
            var(--color-primary) 0%,
            var(--color-primary) 70%,
            var(--color-primary-light) 100%);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-glow);
    transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.btn--small {
    min-height: 36px;
    padding: 0 16px;
    font-size: 0.9rem;
}

.btn--danger {
    background: #c0392b ;
    color: white;
    box-shadow: none;
}

/* #endregion */


/* #region SORTABLE TABLES */
.sortable-table th {
    cursor: pointer;
}

.table-sort-indicator {
    margin-left: 6px;
    color: var(--color-muted);
}
/* #endregion */