:root {
    --bg-dark: #03111e;
    --bg-navy: #061827;
    --panel: rgba(10, 23, 34, 0.80);
    --panel-strong: rgba(12, 26, 38, 0.92);
    --panel-border: rgba(255,255,255,0.14);
    --gold: #d6a44a;
    --gold-bright: #ffd15d;
    --gold-soft: rgba(214,164,74,0.28);
    --text: #f4f7fb;
    --muted: #c5d0dc;
    --muted-soft: #8fa0b1;
    --red: #ff2d37;
    --shadow: 0 22px 55px rgba(0,0,0,0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(rgba(4, 17, 30, 0.88), rgba(4, 17, 30, 0.91)),
        url("../img/wallpaper.jpg"),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px),
        radial-gradient(circle at top left, rgba(24, 70, 104, 0.26), transparent 32%),
        linear-gradient(180deg, #03101c 0%, #071a2c 100%);
    background-size: cover, cover, auto, auto, auto;
    background-position: center;
}

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

/* HEADER */
.lets-header {
    min-height: 164px;
    padding: 22px 32px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 3px solid var(--gold);
    background:
        linear-gradient(90deg, rgba(2, 12, 21, 0.98), rgba(5, 22, 36, 0.84)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 5px);
    box-shadow: 0 14px 38px rgba(0,0,0,0.35);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.sahp-logo {
    width: 116px;
    height: 116px;
    object-fit: contain;
    filter: drop-shadow(0 9px 14px rgba(0,0,0,0.42));
}

.department {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: clamp(42px, 4vw, 68px);
    letter-spacing: 9px;
    color: var(--gold-bright);
    text-transform: uppercase;
    font-weight: 300;
    line-height: 0.92;
}

.system-name {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    margin-top: 18px;
    color: #dce5ef;
    font-size: clamp(20px, 1.55vw, 30px);
    letter-spacing: 4.2px;
    text-transform: uppercase;
    font-weight: 400;
}

.header-profile {
    min-width: 240px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding-top: 4px;
}

.profile-symbol {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--gold-bright);
    font-size: 26px;
    margin-top: 2px;
}

.welcome-label {
    color: #d9e3ee;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
}

.user-name {
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    margin-top: 5px;
    letter-spacing: 0.4px;
}

.user-role {
    color: var(--gold-bright);
    font-size: 15px;
    margin-top: 7px;
    font-weight: 800;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 19px;
    padding: 12px 20px;
    border: 1px solid var(--gold);
    color: var(--gold-bright);
    background: rgba(0,0,0,0.18);
    font-weight: 900;
    font-size: 14px;
    transition: 0.18s ease;
    letter-spacing: 0.3px;
}

.logout-button:hover {
    background: rgba(214,164,74,0.13);
    color: #ffffff;
}

/* LAYOUT */
.main-shell {
    width: min(1920px, calc(100% - 48px));
    margin: 24px auto 28px;
    min-height: calc(100vh - 260px);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 34px;
    align-items: stretch;
}

.left-content,
.right-sidebar {
    display: flex;
    flex-direction: column;
}

.section-title,
.panel-heading {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    color: var(--gold-bright);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 13px;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    text-shadow: 0 0 8px rgba(214,164,74,0.10);
}

.section-title {
    font-size: 28px;
    margin-bottom: 16px;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(170px, 1fr));
    gap: 12px;
}

.module-card {
    min-height: 260px;
    padding: 30px 18px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(21, 38, 51, 0.82), rgba(8, 21, 33, 0.90)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.017) 0 1px, transparent 1px 6px);
    border: 1px solid var(--panel-border);
    border-bottom: 4px solid var(--gold);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025), 0 12px 28px rgba(0,0,0,0.22);
    transition: 0.16s ease;
    position: relative;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: rgba(214,164,74,0.48);
    box-shadow: 0 18px 42px rgba(0,0,0,0.34);
}

.module-icon {
    color: var(--gold);
    font-size: 58px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.module-card h2 {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    color: var(--gold-bright);
    font-size: 25px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.module-card p {
    color: #d3dce6;
    font-size: 16px;
    line-height: 1.42;
    max-width: 235px;
    font-weight: 400;
}

.open-btn {
    display: inline-flex;
    justify-content: center;
    min-width: 140px;
    padding: 10px 16px;
    border: 1px solid rgba(214,164,74,0.62);
    color: var(--gold-bright);
    font-size: 14px;
    font-weight: 900;
    background: rgba(0,0,0,0.18);
}

.module-card:hover .open-btn {
    background: rgba(214,164,74,0.13);
    color: #ffffff;
}

/* QUICK LINKS */
.quick-panel,
.side-panel {
    margin-top: 22px;
    background:
        linear-gradient(180deg, rgba(18, 33, 46, 0.78), rgba(7, 20, 31, 0.88)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.017) 0 1px, transparent 1px 6px);
    border: 1px solid var(--panel-border);
    box-shadow: var(--shadow);
}

.quick-panel {
    padding: 22px 24px;
}

.panel-heading {
    font-size: 27px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(8, minmax(80px, 1fr));
    margin-top: 18px;
}

.quick-links a {
    min-height: 72px;
    padding: 10px 10px;
    color: var(--gold-bright);
    border-right: 1px solid rgba(255,255,255,0.16);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    text-align: center;
}

.quick-links a:last-child {
    border-right: none;
}

.quick-links i {
    color: var(--gold-bright);
    font-size: 20px;
}

.quick-links a:hover {
    background: rgba(214,164,74,0.08);
    color: #ffffff;
}

/* SIDEBAR */
.right-sidebar {
    display: flex;
    flex-direction: column;
    padding-top: 42px;
}

.side-panel {
    padding: 24px;
    margin-top: 0;
}

.messages-panel {
    min-height: calc(520px + 22px + 167px);
}

.message-list {
    margin-top: 16px;
}

.message-card {
    padding: 15px 0 15px 18px;
    border-left: 2px solid rgba(214,164,74,0.62);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
}

.message-card:last-child {
    border-bottom: none;
}

.message-card::after {
    content: "";
    position: absolute;
    right: 0;
    top: 22px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dfe7ef;
}

.message-card.urgent::after {
    background: var(--red);
}

.message-meta {
    color: #9fb1c3;
    font-size: 14px;
    margin-bottom: 8px;
}

.message-card h3 {
    font-size: 19px;
    color: #ffffff;
    margin-bottom: 7px;
    font-weight: 900;
}

.message-card p {
    color: #b7c3d0;
    line-height: 1.45;
    font-size: 15px;
}

/* FOOTER */
.lets-footer {
    min-height: 50px;
    border-top: 3px solid var(--gold);
    background: rgba(3, 14, 25, 0.96);
    color: var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    font-size: 16px;
}

.lets-footer span:not(:last-child)::after {
    content: "|";
    margin-left: 18px;
    color: rgba(214,164,74,0.55);
}

/* LOGIN */
.login-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(4, 19, 34, 0.90), rgba(100, 6, 15, 0.82)),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 5px),
        linear-gradient(135deg, #03101d 0%, #0a2540 42%, #8c0712 100%);
    color: var(--text);
}

.login-page-wrap {
    min-height: 100vh;
    padding: 58px 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.login-title {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    color: #ffd100;
    font-size: clamp(58px, 7vw, 108px);
    font-weight: 300;
    letter-spacing: 10px;
    line-height: 1;
}

.login-subtitle {
    color: #ffe670;
    margin-top: 20px;
    font-size: 17px;
    text-align: center;
}

.login-panel {
    width: min(650px, 95%);
    margin-top: 70px;
    padding: 24px 18px 120px;
    background: rgba(0,0,0,0.42);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.32);
}

.login-panel h1 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 27px;
}

.login-form label {
    display: block;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 15px;
}

.login-form input {
    width: 100%;
    height: 42px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.35);
    background: #e6edf8;
    color: #111827;
    padding: 0 12px;
    font-size: 15px;
    margin-bottom: 20px;
}

.login-form input:focus {
    outline: 2px solid #1677ff;
}

.login-form button {
    width: 100%;
    height: 42px;
    background: transparent;
    color: #1684ff;
    border: 1px solid #1684ff;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}

.login-form button:hover {
    background: rgba(22,132,255,0.13);
}

.error-box {
    padding: 12px;
    margin-bottom: 16px;
    background: rgba(255,44,56,0.16);
    border: 1px solid rgba(255,44,56,0.55);
    color: #ffb8bd;
}

.login-footer-text {
    margin-top: 18px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
}

.login-footer-text span {
    color: #ffd100;
}

/* RESPONSIVE */
@media (max-width: 1450px) {
    .module-grid {
        grid-template-columns: repeat(4, minmax(170px, 1fr));
    }

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

    .right-sidebar {
        padding-top: 0;
    }

    .messages-panel {
        min-height: auto;
    }
}

@media (max-width: 1050px) {
    .module-grid {
        grid-template-columns: repeat(2, minmax(170px, 1fr));
    }

    .quick-links {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
    }

    .quick-links a:nth-child(4n) {
        border-right: none;
    }

    .lets-header {
        flex-direction: column;
    }

    .header-profile {
        align-self: flex-end;
    }
}

@media (max-width: 720px) {
    .main-shell {
        width: calc(100% - 24px);
    }

    .lets-header {
        padding: 18px;
    }

    .header-left {
        align-items: flex-start;
    }

    .sahp-logo {
        width: 78px;
        height: 78px;
    }

    .department {
        font-size: 30px;
        letter-spacing: 3px;
    }

    .system-name {
        font-size: 14px;
        letter-spacing: 1.8px;
    }

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

    .quick-links {
        grid-template-columns: repeat(2, minmax(80px, 1fr));
    }

    .quick-links a:nth-child(2n) {
        border-right: none;
    }

    .lets-footer {
        flex-direction: column;
        gap: 4px;
        padding: 12px;
    }

    .lets-footer span::after {
        display: none;
    }
}


/* =========================================================
   V4 FIX: Header subtitle, User box, Placeholder mode
   ========================================================= */

.system-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.header-divider {
    width: 1px;
    height: 22px;
    display: inline-block;
    background: rgba(255, 209, 93, 0.72);
    box-shadow: 0 0 8px rgba(255, 209, 93, 0.20);
}

.header-profile {
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    padding-top: 2px;
}

.profile-top {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
}

.profile-symbol {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: var(--gold-bright);
    font-size: 25px;
    margin-top: 2px;
}

.profile-copy {
    min-width: 0;
}

.logout-button {
    width: 100%;
    justify-content: center;
    margin-top: 0;
}

.placeholder-card {
    opacity: 0.92;
}

.placeholder-card:hover {
    opacity: 1;
}

.placeholder-icon {
    color: rgba(255, 209, 93, 0.72);
}

.placeholder-card h2 {
    color: rgba(255, 209, 93, 0.86);
}

.placeholder-card p {
    color: rgba(211, 220, 230, 0.72);
}

.placeholder-card .open-btn {
    color: rgba(255, 209, 93, 0.76);
    border-color: rgba(214,164,74,0.38);
}

.placeholder-quick-links a {
    color: rgba(255, 209, 93, 0.78);
}

.placeholder-quick-links i {
    color: rgba(255, 209, 93, 0.82);
}

@media (max-width: 720px) {
    .system-name {
        gap: 8px;
    }

    .header-divider {
        height: 15px;
    }

    .header-profile {
        width: 100%;
        align-self: stretch;
    }
}


/* =========================================================
   SAHP LOGIN V2, ISOLATED FINAL OVERRIDE
   ========================================================= */

html,
body.sahp-login-page-v2 {
    width: 100% !important;
    min-height: 100vh !important;
}

body.sahp-login-page-v2 {
    margin: 0 !important;
    overflow-x: hidden !important;
    color: #eef5fa !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
    background:
        linear-gradient(rgba(2, 13, 23, 0.88), rgba(2, 13, 23, 0.95)),
        url("../img/wallpaper.jpg"),
        radial-gradient(circle at 68% 12%, rgba(49, 88, 112, 0.22), transparent 26%),
        linear-gradient(180deg, #020a12 0%, #061624 100%) !important;
    background-size: cover, cover, auto, auto !important;
    background-position: center !important;
}

body.sahp-login-page-v2::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(90deg, rgba(2, 12, 20, 0.78), rgba(2, 12, 20, 0.38), rgba(2, 12, 20, 0.92)),
        radial-gradient(circle at 78% 18%, rgba(120, 147, 160, 0.13), transparent 28%) !important;
}

.sahp-v2-scanlines {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2 !important;
    pointer-events: none !important;
    opacity: 0.62 !important;
    mix-blend-mode: screen !important;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.022) 0 1px, transparent 1px 5px) !important;
}

.sahp-v2-car {
    position: fixed !important;
    right: 5vw !important;
    top: 36px !important;
    width: 560px !important;
    height: 230px !important;
    opacity: 0.17 !important;
    pointer-events: none !important;
    z-index: 1 !important;
    background:
        radial-gradient(ellipse at 72% 62%, rgba(255,255,255,0.13) 0 4%, transparent 5%),
        radial-gradient(ellipse at 37% 62%, rgba(255,255,255,0.10) 0 4%, transparent 5%),
        linear-gradient(9deg, transparent 48%, rgba(210, 224, 235, 0.18) 49% 58%, transparent 59%),
        linear-gradient(0deg, transparent 60%, rgba(210, 224, 235, 0.10) 61% 72%, transparent 73%),
        radial-gradient(ellipse at center, rgba(210, 224, 235, 0.22), transparent 66%) !important;
}

.sahp-v2-car::before {
    content: "" !important;
    position: absolute !important;
    left: 20px !important;
    right: 20px !important;
    bottom: 42px !important;
    height: 64px !important;
    border-radius: 42% 48% 22% 24% !important;
    border: 2px solid rgba(220, 232, 240, 0.18) !important;
    border-top-width: 9px !important;
}

.sahp-v2-car::after {
    content: "" !important;
    position: absolute !important;
    left: 170px !important;
    top: 46px !important;
    width: 230px !important;
    height: 66px !important;
    border-radius: 55% 45% 0 0 !important;
    border: 2px solid rgba(220,232,240,0.14) !important;
    border-bottom: none !important;
}

.sahp-v2-wrap {
    position: relative !important;
    z-index: 3 !important;
    width: min(1080px, calc(100% - 56px)) !important;
    min-height: 100vh !important;
    margin: 0 auto !important;
    padding: 34px 0 32px !important;
}

.sahp-v2-header {
    display: grid !important;
    grid-template-columns: 130px minmax(0, 1fr) !important;
    gap: 26px !important;
    align-items: center !important;
    margin: 0 0 26px !important;
}

.sahp-v2-logo {
    width: 126px !important;
    height: 126px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 14px 22px rgba(0,0,0,0.55)) !important;
}

.sahp-v2-title {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: clamp(58px, 6vw, 92px) !important;
    line-height: 0.82 !important;
    font-weight: 700 !important;
    letter-spacing: 7px !important;
    text-transform: uppercase !important;
    background: linear-gradient(180deg, #ffd76e 0%, #d7a84c 48%, #9e6e24 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    text-shadow: 0 12px 30px rgba(0,0,0,0.42) !important;
}

.sahp-v2-department {
    margin-top: 20px !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: clamp(23px, 2.2vw, 34px) !important;
    line-height: 1 !important;
    letter-spacing: 7px !important;
    color: #e9eef3 !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

.sahp-v2-motto {
    width: min(760px, 100%) !important;
    margin-top: 15px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(213, 164, 74, 0.74) !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: clamp(17px, 1.55vw, 23px) !important;
    letter-spacing: 3.4px !important;
    text-transform: uppercase !important;
    color: rgba(233, 238, 243, 0.86) !important;
}

.sahp-v2-motto i {
    width: 2px !important;
    height: 24px !important;
    display: inline-block !important;
    background: #d7a84c !important;
}

.sahp-v2-card {
    width: min(770px, 100%) !important;
    margin: 0 0 0 190px !important;
    padding: 32px 44px 28px !important;
    background:
        linear-gradient(180deg, rgba(8, 23, 34, 0.84), rgba(4, 17, 27, 0.94)),
        radial-gradient(circle at 12% 20%, rgba(29, 86, 118, 0.20), transparent 34%) !important;
    border: 1px solid rgba(210, 224, 235, 0.22) !important;
    border-bottom: 4px solid #d7a84c !important;
    box-shadow: 0 26px 62px rgba(0,0,0,0.44), inset 0 0 0 1px rgba(255,255,255,0.018) !important;
    border-radius: 0 !important;
}

.sahp-v2-card-head {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    gap: 22px !important;
    align-items: center !important;
    margin-bottom: 22px !important;
}

.sahp-v2-shield {
    width: 64px !important;
    height: 64px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: rgba(215,168,76,0.10) !important;
    border: 1px solid rgba(215,168,76,0.55) !important;
    color: #d7a84c !important;
    font-size: 30px !important;
}

.sahp-v2-card h1 {
    margin: 0 !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: clamp(30px, 2.45vw, 42px) !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
}

.sahp-v2-card p {
    margin: 7px 0 0 !important;
    color: rgba(233,238,243,0.72) !important;
    font-size: 18px !important;
}

.sahp-v2-form {
    display: flex !important;
    flex-direction: column !important;
}

.sahp-v2-form label {
    display: block !important;
    margin: 17px 0 9px !important;
    color: #d7a84c !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: 22px !important;
    line-height: 1 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    font-weight: 500 !important;
}

.sahp-v2-input {
    height: 58px !important;
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr) 54px !important;
    align-items: center !important;
    background: rgba(0, 9, 17, 0.78) !important;
    border: 1px solid rgba(210,224,235,0.30) !important;
    transition: 0.16s ease !important;
}

.sahp-v2-input:focus-within {
    border-color: rgba(215,168,76,0.80) !important;
    box-shadow: 0 0 0 3px rgba(215,168,76,0.08) !important;
}

.sahp-v2-input > span {
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    border-right: 1px solid rgba(210,224,235,0.30) !important;
    background: rgba(0,0,0,0.16) !important;
    color: #d7a84c !important;
    font-size: 24px !important;
}

.sahp-v2-input input,
.sahp-v2-input input:-webkit-autofill,
.sahp-v2-input input:-webkit-autofill:hover,
.sahp-v2-input input:-webkit-autofill:focus {
    height: 100% !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #dce5ef !important;
    -webkit-text-fill-color: #dce5ef !important;
    box-shadow: 0 0 0 1000px rgba(0, 9, 17, 0.96) inset !important;
    transition: background-color 9999s ease-in-out 0s !important;
    padding: 0 22px !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: 22px !important;
    letter-spacing: 1.1px !important;
}

.sahp-v2-input input::placeholder {
    color: rgba(220, 229, 239, 0.34) !important;
    -webkit-text-fill-color: rgba(220, 229, 239, 0.34) !important;
}

.sahp-v2-eye {
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: rgba(233,238,243,0.40) !important;
    font-size: 21px !important;
    cursor: pointer !important;
}

.sahp-v2-eye:hover {
    color: #d7a84c !important;
}

.sahp-v2-submit {
    width: 100% !important;
    height: 58px !important;
    margin-top: 32px !important;
    border: 1px solid #d7a84c !important;
    background: rgba(0, 9, 17, 0.34) !important;
    color: #d7a84c !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 24px !important;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    letter-spacing: 1.7px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: 0.16s ease !important;
}

.sahp-v2-submit:hover {
    background: rgba(215,168,76,0.12) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.sahp-v2-status {
    margin-top: 28px !important;
    padding-top: 21px !important;
    border-top: 1px solid rgba(210,224,235,0.22) !important;
    display: flex !important;
    align-items: center !important;
    gap: 13px !important;
    color: rgba(233,238,243,0.68) !important;
    font-size: 18px !important;
}

.sahp-v2-status b {
    width: 11px !important;
    height: 11px !important;
    display: block !important;
    border-radius: 50% !important;
    background: #14c979 !important;
    box-shadow: 0 0 18px rgba(20,201,121,0.65) !important;
}

@media (max-width: 1100px) {
    .sahp-v2-card {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 760px) {
    .sahp-v2-wrap {
        width: calc(100% - 24px) !important;
        padding: 24px 0 !important;
    }

    .sahp-v2-header {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        text-align: center !important;
        justify-items: center !important;
    }

    .sahp-v2-logo {
        width: 106px !important;
        height: 106px !important;
    }

    .sahp-v2-title {
        font-size: 58px !important;
    }

    .sahp-v2-department {
        letter-spacing: 4px !important;
        margin-top: 18px !important;
    }

    .sahp-v2-motto {
        justify-content: center !important;
        letter-spacing: 2px !important;
    }

    .sahp-v2-motto i {
        height: 18px !important;
    }

    .sahp-v2-card {
        width: 100% !important;
        padding: 24px 18px !important;
    }

    .sahp-v2-card-head {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        justify-items: center !important;
        gap: 16px !important;
    }

    .sahp-v2-input {
        grid-template-columns: 56px minmax(0, 1fr) 46px !important;
        height: 58px !important;
    }

    .sahp-v2-input > span {
        font-size: 21px !important;
    }

    .sahp-v2-input input {
        font-size: 18px !important;
        padding: 0 14px !important;
    }

    .sahp-v2-form label {
        font-size: 21px !important;
    }

    .sahp-v2-submit {
        height: 58px !important;
        font-size: 23px !important;
    }
}


/* =========================================================
   TC RECHNER
   ========================================================= */

.tc-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tc-page-head {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 2px;
}

.tc-page-head p {
    color: rgba(233,238,243,0.70);
    font-size: 15px;
    margin-top: 4px;
}

.tc-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid rgba(214,164,74,0.42);
    color: var(--gold-bright, #ffd15d);
    background: rgba(0,0,0,0.18);
    font-weight: 800;
    font-size: 13px;
    margin-top: 4px;
}

.tc-back:hover {
    background: rgba(214,164,74,0.12);
}

.tc-title {
    margin-bottom: 0 !important;
}

.tc-layout {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.tc-card {
    background:
        linear-gradient(180deg, rgba(18, 33, 46, 0.80), rgba(7, 20, 31, 0.90)),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.017) 0 1px, transparent 1px 6px);
    border: 1px solid rgba(255,255,255,0.14);
    border-bottom: 3px solid var(--gold, #d6a44a);
    box-shadow: 0 22px 55px rgba(0,0,0,0.30);
    padding: 20px;
}

.tc-card-title {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    color: var(--gold-bright, #ffd15d);
    font-size: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 800;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 16px;
}

.tc-form {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.tc-form-row {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 0;
    align-items: stretch;
    min-height: 46px;
}

.tc-form-row label {
    background: rgba(214,164,74,0.18);
    border: 1px solid rgba(214,164,74,0.36);
    color: #f1d38a;
    display: flex;
    align-items: center;
    padding: 0 13px;
    font-weight: 800;
    font-size: 14px;
}

.tc-form-row input,
.tc-form-row select {
    min-width: 0;
    height: 46px;
    border: 1px solid rgba(255,255,255,0.16);
    border-left: none;
    background: rgba(55, 122, 190, 0.76);
    color: #ffffff;
    padding: 0 13px;
    outline: none;
    font-weight: 800;
    font-size: 15px;
}

.tc-form-row input::placeholder {
    color: rgba(255,255,255,0.55);
}

.tc-form-row input:focus,
.tc-form-row select:focus {
    border-color: rgba(255,209,93,0.80);
    box-shadow: 0 0 0 3px rgba(214,164,74,0.08);
}

.tc-unit {
    height: 46px;
    min-width: 58px;
    background: rgba(0,0,0,0.24);
    border: 1px solid rgba(255,255,255,0.16);
    border-left: none;
    display: grid;
    place-items: center;
    color: var(--gold-bright, #ffd15d);
    font-weight: 900;
}

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

.tc-check {
    min-height: 66px;
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(0,0,0,0.18);
    cursor: pointer;
}

.tc-check input {
    width: 18px;
    height: 18px;
    justify-self: center;
    accent-color: var(--gold, #d6a44a);
}

.tc-check span {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: #eaf2f8;
    font-weight: 800;
    font-size: 13px;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.equipment-row {
    grid-template-columns: 170px minmax(0, 1fr);
    margin-top: 14px;
}

.tc-stats {
    display: grid;
    gap: 12px;
}

.tc-stats div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.tc-stats span {
    color: rgba(233,238,243,0.72);
}

.tc-stats strong {
    color: var(--gold-bright, #ffd15d);
    font-size: 18px;
}

.tc-actions {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.tc-btn {
    min-height: 44px;
    border: 1px solid var(--gold, #d6a44a);
    background: rgba(214,164,74,0.10);
    color: var(--gold-bright, #ffd15d);
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    text-transform: uppercase;
}

.tc-btn:hover {
    background: rgba(214,164,74,0.18);
    color: #ffffff;
}

.tc-btn.secondary {
    border-color: rgba(255,255,255,0.20);
    color: rgba(233,238,243,0.78);
    background: rgba(0,0,0,0.18);
}

.tc-output-card textarea {
    width: 100%;
    min-height: 245px;
    resize: vertical;
    background: rgba(120,120,120,0.38);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    padding: 16px;
    line-height: 1.48;
    font-size: 14px;
    outline: none;
}

.tc-law-list {
    display: grid;
    gap: 9px;
    color: #eaf2f8;
    line-height: 1.45;
    font-size: 14px;
}

.tc-law-list div {
    padding: 9px 12px;
    background: rgba(0,0,0,0.16);
    border-left: 2px solid var(--gold, #d6a44a);
}

.tc-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0,0,0,0.62);
    z-index: 9999;
    padding: 22px;
}

.tc-modal.show {
    display: grid;
}

.tc-modal-box {
    width: min(720px, 95vw);
    background: #f7f7f7;
    color: #111;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.42);
}

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

.tc-modal-head h2 {
    font-size: 27px;
    font-weight: 600;
}

.tc-modal-head button {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
}

.tc-modal-box p {
    margin: 18px 0 10px;
}

.tc-modal-box textarea {
    width: 100%;
    min-height: 240px;
    resize: vertical;
    padding: 12px;
    font-family: Consolas, monospace;
    font-size: 14px;
}

.tc-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}

.tc-modal .tc-btn.secondary {
    color: #333;
    border-color: #aaa;
}

@media (max-width: 1300px) {
    .tc-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .tc-page-head {
        flex-direction: column;
    }

    .tc-form-row,
    .equipment-row {
        grid-template-columns: 1fr;
    }

    .tc-form-row input,
    .tc-form-row select,
    .tc-unit {
        border-left: 1px solid rgba(255,255,255,0.16);
    }

    .tc-check-grid {
        grid-template-columns: 1fr;
    }

    .tc-modal-actions {
        flex-direction: column;
    }
}

.quick-admin-link {
    background: rgba(214,164,74,0.10) !important;
    color: #ffd15d !important;
}
.quick-admin-link i {
    color: #ffd15d !important;
}
