:root {
    --pastel-bg1: #f5f0ff;
    --pastel-bg2: #e8f8f5;
    --pastel-bg3: #fff5f0;
    --glass: rgba(255, 255, 255, 0.58);
    --glass-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.85);
    --text: #4a4658;
    --muted: #8b8499;
    --accent-start: #c4b5fd;
    --accent-end: #99f6e4;
    --accent-btn-mid: #a5b4fc;
    --shadow-soft: 0 22px 48px rgba(139, 132, 153, 0.18);
    --shadow-card-hover: 0 20px 40px rgba(124, 58, 237, 0.22);
    --input-bg: rgba(255, 255, 255, 0.82);
    --danger-soft: #fce8ec;
    --danger-border: #f9c8d4;
    --danger-text: #9d3d54;
}

* {
    box-sizing: border-box;
}

body.login-page,
body.app-shell {
    font-family: 'Outfit', system-ui, sans-serif;
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--pastel-bg1) 0%, var(--pastel-bg2) 45%, var(--pastel-bg3) 100%);
    background-size: 220% 220%;
    animation: gradient-flow 14s ease infinite;
}

body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse 90% 75% at 50% 45%, rgba(20, 12, 4, 0.05) 0%, rgba(20, 12, 4, 0.42) 100%),
        linear-gradient(180deg, rgba(255, 250, 240, 0.10) 0%, rgba(40, 26, 12, 0.18) 100%),
url('../DHA_bldg_front.jpg') center center / cover no-repeat fixed;
    animation: none;
}

body.login-page .blob {
    display: none;
}

@media (max-width: 767.98px) {
    body.login-page {
        background-attachment: scroll, scroll, scroll;
    }
}

body.app-shell {
    min-height: 100vh;
    padding-top: 4.75rem;
}

body.app-shell.is-hof {
    background: linear-gradient(135deg, #fff8eb 0%, #f7ead0 38%, #f3e4d4 72%, #f8f0e4 100%) !important;
    background-size: 220% 220%;
}

html.hof-theme {
    background: #fff8eb;
}

body.app-shell.is-hof .login-bg {
    background: transparent;
}

body.app-shell.is-hof .login-bg .blob,
body.app-shell.is-hof .login-bg .blob-1,
body.app-shell.is-hof .login-bg .blob-2,
body.app-shell.is-hof .login-bg .blob-3 {
    opacity: 0.55;
}

body.app-shell.is-hof .login-bg .blob-1 {
    background: radial-gradient(circle, #fdecc8 0%, #f5d9b8 70%, transparent 72%) !important;
}

body.app-shell.is-hof .login-bg .blob-2 {
    background: radial-gradient(circle, #f8e4c4 0%, #ead9c4 65%, transparent 70%) !important;
}

body.app-shell.is-hof .login-bg .blob-3 {
    background: radial-gradient(circle, #fcefd8 0%, #f3dcc0 55%, transparent 68%) !important;
}

body.app-shell.is-hof .dash-nav {
    background: rgba(255, 248, 235, 0.82) !important;
    border-bottom: 1px solid rgba(196, 165, 116, 0.35);
}

body.app-shell.is-hof .dash-hero,
body.app-shell.is-hof .dash-tabs-wrap,
body.app-shell.is-hof .edu-panel {
    background: rgba(255, 252, 246, 0.78);
    border-color: rgba(212, 184, 140, 0.28);
}

.impersonate-banner {
    position: sticky;
    top: 4.75rem;
    z-index: 120;
    margin: 0 auto 1rem;
    max-width: 1280px;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 0.9rem;
    font-weight: 500;
}
.impersonate-exit {
    color: #9a3412;
    font-weight: 700;
    text-decoration: underline;
}

.hof-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #8a2900;
    color: #ecd7a8;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

.profile-preview-note {
    font-size: 0.78rem;
    font-weight: 600;
    color: #8a2900;
    margin: 0 0 0.65rem;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

.login-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(56px);
    opacity: 0.72;
}

.blob:not(.blob-3) {
    animation: blob-float 18s ease-in-out infinite;
}

.blob-1 {
    width: min(420px, 85vw);
    height: min(420px, 85vw);
    background: radial-gradient(circle, #ddd6fe 0%, #fbcfe8 70%, transparent 72%);
    top: -12%;
    left: -8%;
    animation-delay: 0s;
}

.blob-2 {
    width: min(380px, 75vw);
    height: min(380px, 75vw);
    background: radial-gradient(circle, #a5f3fc 0%, #bfdbfe 65%, transparent 70%);
    bottom: -15%;
    right: -10%;
    animation-delay: -6s;
}

.blob-3 {
    width: min(280px, 55vw);
    height: min(280px, 55vw);
    background: radial-gradient(circle, #fde68a 0%, #fca5a5 55%, transparent 68%);
    top: 42%;
    left: 48%;
    opacity: 0.45;
    animation: blob-float-center 18s ease-in-out infinite;
    animation-delay: -12s;
}

@keyframes blob-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(22px, -18px) scale(1.05); }
    66% { transform: translate(-16px, 14px) scale(0.97); }
}

@keyframes blob-float-center {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-46%, -54%) scale(1.08); }
}

/* --- Login --- */
.login-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: rgba(255, 252, 247, 0.82);
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 1.35rem;
    box-shadow:
        0 30px 60px -20px rgba(20, 12, 4, 0.45),
        0 18px 36px -12px rgba(20, 12, 4, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    padding: 2.35rem 2rem 2.15rem;
    animation: card-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 12px 28px rgba(167, 139, 250, 0.35);
    margin-bottom: 1rem;
    animation: badge-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes badge-pop {
    from { opacity: 0; transform: scale(0.5) rotate(-8deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.login-brand-badge svg {
    width: 1.55rem;
    height: 1.55rem;
    color: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08));
}

.login-brand-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 200px;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 8px 18px rgba(13, 59, 36, 0.18));
    animation: badge-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

.login-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 0.35rem;
    background: linear-gradient(120deg, #6d28d9, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.login-sub {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
}

.login-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.login-card .form-control {
    border-radius: 0.75rem;
    border: 1.5px solid rgba(167, 139, 250, 0.22);
    background: var(--input-bg);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.login-card .form-control::placeholder {
    color: #b8b0c7;
}

.login-card .form-control:hover {
    border-color: rgba(129, 140, 248, 0.45);
}

.login-card .form-control:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
    background: #fff;
}

.field-wrap {
    margin-bottom: 1.15rem;
    animation: field-in 0.55s ease both;
}

.field-wrap:nth-child(1) { animation-delay: 0.35s; }
.field-wrap:nth-child(2) { animation-delay: 0.45s; }

@keyframes field-in {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    border: none;
    border-radius: 0.85rem;
    padding: 0.82rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(115deg, #a78bfa 0%, var(--accent-btn-mid) 48%, #5eead4 100%);
    background-size: 160% auto;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.28);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    animation: btn-shimmer 6s ease infinite;
    position: relative;
    overflow: hidden;
}

.btn-login:hover,
.btn-login:focus-visible {
    color: #fff;
    text-decoration: none;
}

.btn-login-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.35rem;
    border: none;
    border-radius: 0.85rem;
    padding: 0.82rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #8a2900;
    text-decoration: none;
    background: #ecd7a8;
    box-shadow: 0 10px 24px rgba(138, 41, 0, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
    position: relative;
    overflow: hidden;
}

.btn-login-gold:hover,
.btn-login-gold:focus-visible {
    color: #000;
    text-decoration: none;
    background: #ecd7a8;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 32px rgba(138, 41, 0, 0.18);
}

.btn-login-gold:active {
    transform: translateY(0) scale(0.98);
}

@keyframes btn-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
    transform: translateX(-100%);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 70% { transform: translateX(-100%); }
    85% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

.btn-login:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.34);
    filter: brightness(1.03);
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
}

.login-its-hint {
    margin: 0.65rem 0 1.25rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.15rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 42, 0.12);
}

.login-divider span {
    white-space: nowrap;
}

.btn-login-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    border: 1.5px solid rgba(13, 148, 136, 0.35);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 0.85rem;
    padding: 0.72rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-login-secondary:hover,
.btn-login-secondary:focus-visible {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.55);
    color: var(--text);
}

.btn-login-secondary:active {
    transform: scale(0.98);
}

.login-hint {
    font-size: 0.82rem;
    color: var(--muted, #64748b);
    text-align: center;
    line-height: 1.4;
}

.login-resend {
    color: var(--muted, #64748b) !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.login-resend:hover {
    color: var(--text, #0f172a) !important;
}

.its-otp-form .form-control-plaintext {
    font-size: 1.05rem;
    color: var(--text);
}

/* ITS sign-in modal */
.its-signin-modal .modal-dialog {
    max-width: 400px;
}

.its-signin-modal.fade .modal-dialog {
    transform: translateY(28px) scale(0.94);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.its-signin-modal.show .modal-dialog {
    transform: translateY(0) scale(1);
}

.its-signin-panel {
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    background: rgba(255, 252, 247, 0.94);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    box-shadow:
        0 28px 56px -18px rgba(20, 12, 4, 0.42),
        0 12px 28px -10px rgba(20, 12, 4, 0.22);
    overflow: hidden;
    animation: its-panel-pop 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both;
}

@keyframes its-panel-pop {
    from {
        opacity: 0.65;
        filter: blur(2px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

.its-signin-title {
    font-family: Outfit, system-ui, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
}

.its-signin-modal .modal-header {
    padding: 1.35rem 1.35rem 0.25rem;
}

.its-signin-modal .modal-body {
    padding: 0.75rem 1.35rem 1.5rem;
}

.its-signin-modal .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
}

.its-signin-modal .form-control {
    border-radius: 0.75rem;
    border: 1.5px solid rgba(13, 148, 136, 0.22);
    background: var(--input-bg, #fff);
    padding: 0.7rem 1rem;
}

.its-signin-modal .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.its-signin-modal .btn-login {
    margin-top: 0.15rem;
}

.btn-its-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid rgba(167, 139, 250, 0.28);
    border-radius: 0.85rem;
    background: #fff;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(13, 59, 36, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-its-login:hover,
.btn-its-login:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 18px 36px rgba(13, 59, 36, 0.14);
    color: var(--text);
    text-decoration: none;
    outline: none;
}

.btn-its-login:focus-visible {
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.20), 0 18px 36px rgba(13, 59, 36, 0.14);
}

.btn-its-login:active {
    transform: translateY(0);
}

.btn-its-login__logo {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
    flex-shrink: 0;
}

.alert-soft {
    border-radius: 0.85rem;
    border: 1px solid var(--danger-border);
    background: var(--danger-soft);
    color: var(--danger-text);
    font-size: 0.9rem;
    font-weight: 500;
    animation: shake-soft 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.alert-soft-success {
    border-radius: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes shake-soft {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.dot-row {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1.65rem;
}

.dot-row span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c4b5fd, #6ee7b7);
    opacity: 0.55;
    animation: dot-pulse 2.4s ease-in-out infinite;
}

.dot-row span:nth-child(2) { animation-delay: 0.3s; }
.dot-row span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.35); opacity: 1; }
}

/* --- Dashboard shell --- */
.dash-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    animation: nav-slide 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes nav-slide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dash-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dash-nav-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.dash-burger {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    border: 1.5px solid rgba(167, 139, 250, 0.4);
    background: rgba(255, 255, 255, 0.7);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    cursor: pointer;
    padding: 0;
}
.dash-burger span {
    display: block;
    width: 1.05rem;
    height: 2px;
    border-radius: 2px;
    background: #5b4d78;
}
body.dash-menu-open .dash-burger {
    border-color: rgba(109, 40, 217, 0.45);
}
.dash-burger-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(40, 32, 55, 0.35);
    z-index: 110;
}
.dash-burger-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: min(20rem, 88vw);
    height: 100vh;
    padding: 4.85rem 1.15rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 12px 0 32px rgba(40, 32, 55, 0.16);
    overflow-y: auto;
}
.dash-burger-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.dash-burger-title {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.dash-burger-close {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    border: 1.5px solid rgba(167, 139, 250, 0.4);
    background: rgba(255, 255, 255, 0.9);
    color: #5b4d78;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0.1rem;
}
.dash-burger-close:hover {
    border-color: rgba(109, 40, 217, 0.5);
    background: #fff;
}
.dash-burger-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash-burger-link {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.dash-burger-link:hover,
.dash-burger-link.is-active {
    background: linear-gradient(120deg, rgba(196, 181, 253, 0.35), rgba(153, 246, 228, 0.35));
    color: var(--text);
}

.dash-home-photo-wrap {
    margin: 0 0 1.15rem;
}

.dash-home-photo {
    display: block;
    width: 100%;
    max-height: min(58vh, 560px);
    object-fit: cover;
    object-position: center 42%;
    border-radius: 1.15rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}
    display: block;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.95), rgba(254, 243, 199, 0.9));
    border: 1px solid rgba(217, 119, 6, 0.28);
    border-radius: 1.15rem;
    padding: 1.25rem 1.35rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.drive-announce:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(180, 83, 9, 0.14);
    color: inherit;
}
.drive-announce-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b45309;
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    margin-bottom: 0.55rem;
}
.drive-announce h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 750;
    color: #7c2d12;
}
.drive-announce p {
    margin: 0;
    color: #9a3412;
    font-weight: 500;
}

.drive-hero {
    padding: 1.35rem 1.4rem 1.3rem;
}

.drive-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.15rem;
}

.drive-hero-kicker {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f766e;
}

.drive-hero-title {
    margin: 0 0 0.3rem;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.drive-hero-hint {
    margin: 0;
    max-width: 38rem;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.92rem;
}

.drive-hero-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.22);
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.drive-hero-empty {
    margin: 0;
    padding: 1rem 1.05rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(167, 139, 250, 0.35);
    color: var(--muted);
    font-weight: 500;
}

.drive-hero .drive-member-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 0.7rem;
    margin-bottom: 0;
}

.drive-hero .drive-member-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1.5px solid rgba(167, 139, 250, 0.28);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 6px 16px rgba(76, 62, 104, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.drive-hero .drive-member-link:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.38);
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.1);
}

.drive-hero .drive-member-link.is-on {
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.42), rgba(153, 246, 228, 0.42));
    border-color: rgba(109, 40, 217, 0.28);
    box-shadow: 0 10px 22px rgba(109, 40, 217, 0.1);
}

.drive-hero .drive-member-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text);
}

.drive-hero .drive-member-its {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.1);
    border-radius: 999px;
    padding: 0.12rem 0.5rem;
}

.drive-hero .drive-member-link.is-disabled {
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

body.app-shell.is-hof .drive-hero-kicker,
body.app-shell.is-hof .drive-hero-count,
body.app-shell.is-hof .drive-hero .drive-member-its {
    color: #8a2900;
}

body.app-shell.is-hof .drive-hero-count {
    background: rgba(138, 41, 0, 0.08);
    border-color: rgba(196, 165, 116, 0.4);
}

body.app-shell.is-hof .drive-hero .drive-member-its {
    background: rgba(138, 41, 0, 0.08);
}

body.app-shell.is-hof .drive-hero .drive-member-link:hover,
body.app-shell.is-hof .drive-hero .drive-member-link.is-on {
    border-color: rgba(138, 41, 0, 0.28);
    box-shadow: 0 12px 24px rgba(138, 41, 0, 0.08);
}

.drive-member-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}
.drive-member-link {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(167, 139, 250, 0.4);
    background: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 650;
    font-size: 0.85rem;
    color: var(--text);
}
.drive-member-link.is-on,
.drive-member-link:hover {
    background: linear-gradient(120deg, rgba(196, 181, 253, 0.45), rgba(153, 246, 228, 0.45));
    color: var(--text);
}
.drive-member-link.is-disabled {
    opacity: 0.7;
    cursor: default;
}

.drive-fixed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem 1rem;
}
.drive-fixed-item dt {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.15rem;
}
.drive-fixed-item dd {
    margin: 0;
    font-weight: 650;
}

.dash-tabs-bar {
    display: none !important;
}

.dash-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #6d28d9, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dash-logo-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    background: linear-gradient(145deg, var(--accent-start), var(--accent-end));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(167, 139, 250, 0.35);
}

.dash-logo-mark svg {
    width: 1.15rem;
    height: 1.15rem;
    color: #fff;
}

.dash-logo-img {
    display: block;
    height: 3.25rem;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 4px 10px rgba(13, 59, 36, 0.15));
}

@media (max-width: 575.98px) {
    .dash-logo-img {
        height: 2.5rem;
    }
}

.dash-nav-greeting {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: clamp(0.88rem, 1.6vw, 1.12rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.dash-nav-heading {
    flex: 1;
    min-width: 0;
    text-align: center;
}

.dash-nav-heading .dash-nav-greeting {
    flex: none;
    width: 100%;
}

.dash-nav-sub {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.app-shell.has-nav-subtitle {
    padding-top: 6.15rem;
}

@media (max-width: 575.98px) {
    .dash-nav-sub {
        font-size: 0.68rem;
    }
    body.app-shell.has-nav-subtitle {
        padding-top: 6.6rem;
    }
}

.dash-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.dash-user {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-glass {
    border-radius: 0.65rem;
    padding: 0.45rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--text);
    border: 1.5px solid rgba(167, 139, 250, 0.35);
    background: rgba(255, 255, 255, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-glass:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 10px 24px rgba(139, 132, 153, 0.2);
    color: var(--text);
}

.dash-main {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3rem;
}

.dash-hero {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.5rem 1.5rem 1.35rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    animation: card-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.dash-hero h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(120deg, #6d28d9, #0d9488);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dash-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.account-role-note {
    display: inline-block;
    margin: 0.55rem 0 0.75rem !important;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    line-height: 1.35;
}

.account-role-note.is-hof-role {
    color: #7a4e1d !important;
    background: rgba(255, 248, 235, 0.95);
    border: 1px solid rgba(212, 184, 140, 0.45);
}

.account-role-note.is-member-role {
    color: #4c1d95 !important;
    background: rgba(237, 233, 254, 0.95);
    border: 1px solid rgba(124, 58, 237, 0.22);
}

/* Dashboard tabs */
.dash-tabs-wrap {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    animation: row-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.dash-tabs {
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
    padding: 0.5rem 0.5rem 0;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dash-tabs .nav-item {
    margin-bottom: 0;
}

.dash-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
    .dash-tabs .nav-link {
        font-size: 0.88rem;
        padding: 0.65rem 1.1rem;
    }
}

.dash-tabs .nav-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(167, 139, 250, 0.15);
}

.dash-tabs .nav-link.active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(167, 139, 250, 0.28);
    border-bottom-color: transparent;
    margin-bottom: -1px;
}

.dash-tab-panels {
    padding: 1.35rem 1.25rem 1.5rem;
}

.dash-tab-panel-inner {
    max-width: 900px;
}

.dash-tab-lead {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.dash-subcard {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(167, 139, 250, 0.18);
    border-radius: 1rem;
    padding: 1.15rem 1.2rem;
    height: 100%;
}

.dash-subcard-single {
    max-width: 720px;
}

.dash-subcard-wide {
    max-width: none;
}

.sila-history-page {
    max-width: 1180px;
}

.sila-history-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
    margin-bottom: 1.35rem;
}

.sila-history-khaas {
    margin-top: 0;
}

.sila-history-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 1.35rem;
    padding: 1.25rem 1.3rem 1.2rem;
    box-shadow: 0 18px 40px rgba(76, 62, 104, 0.08);
}

.sila-history-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0d9488, #c4b5fd);
}

.sila-history-card.is-sila::before {
    background: linear-gradient(180deg, #0f766e, #5eead4);
}

.sila-history-card.is-wajebaat::before {
    background: linear-gradient(180deg, #6d28d9, #c4b5fd);
}

.sila-history-card.is-khaas::before {
    background: linear-gradient(180deg, #be185d, #f9a8d4);
}

.sila-history-card.is-khaas-pending::before {
    background: linear-gradient(180deg, #c2410c, #fdba74);
}

.sila-photo-khaas {
    background: linear-gradient(145deg, rgba(251, 207, 232, 0.55), rgba(244, 114, 182, 0.35));
    color: #9d174d;
}

.sila-photo-pending {
    background: linear-gradient(145deg, rgba(254, 215, 170, 0.7), rgba(253, 186, 116, 0.45));
    color: #9a3412;
}

.sila-history-card.is-tax::before {
    background: linear-gradient(180deg, #1d4ed8, #93c5fd);
}

.sila-photo-tax {
    background: linear-gradient(145deg, rgba(191, 219, 254, 0.7), rgba(147, 197, 253, 0.4));
    color: #1e40af;
}

.sila-tax-contact {
    margin: 1.05rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: rgba(29, 78, 216, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.18);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 550;
    line-height: 1.45;
}

.sila-tax-contact a {
    font-weight: 750;
    color: #1d4ed8;
    text-decoration: none;
    white-space: nowrap;
}

.sila-tax-contact a:hover {
    text-decoration: underline;
}

.sila-member {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-weight: 650;
}

.sila-member-name {
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.sila-check-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.28rem;
}

.sila-check-date {
    display: inline-flex;
    padding: 0.16rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.05);
    color: #475569;
    font-size: 0.8rem;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sila-check-date-empty {
    background: transparent;
    color: var(--muted);
}

.sila-event-type {
    display: inline-flex;
    padding: 0.18rem 0.55rem;
    border-radius: 0.55rem;
    background: rgba(190, 24, 93, 0.08);
    color: #9d174d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sila-receipt-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #475569;
}

.sila-history-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem 1.1rem;
    padding: 0.1rem 0 1rem 0.35rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.16);
}

.sila-history-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.sila-photo {
    flex-shrink: 0;
    width: 4.35rem;
    height: 4.35rem;
    border-radius: 999px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(196, 181, 253, 0.4), rgba(153, 246, 228, 0.45));
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.28), 0 10px 22px rgba(76, 62, 104, 0.12);
    color: #5b21b6;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.sila-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sila-history-title {
    margin: 0 0 0.2rem;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
}

.sila-history-note {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.sila-its-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #475569;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sila-history-count {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.2);
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
}

.sila-history-empty {
    margin: 0;
    padding: 1.35rem 1rem;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.7);
    color: var(--muted);
    font-weight: 500;
    text-align: center;
}

.sila-history-panel {
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(167, 139, 250, 0.12);
}

.sila-history-table-wrap {
    width: 100%;
    overflow: visible;
}

.sila-history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.sila-history-table thead th {
    padding: 0.7rem 1rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b8499;
    background: rgba(248, 246, 252, 0.95);
    border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}

.sila-history-table tbody td {
    padding: 0.82rem 1rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.1);
    vertical-align: middle;
    font-weight: 600;
    color: var(--text);
}

.sila-history-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.35);
}

.sila-history-table tbody tr:last-child td {
    border-bottom: none;
}

.sila-history-table tbody tr:hover td {
    background: rgba(237, 233, 254, 0.35);
}

.sila-year {
    display: inline-flex;
    min-width: 3.5rem;
    justify-content: center;
    padding: 0.22rem 0.6rem;
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.05);
    color: #4a4658;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 750;
    letter-spacing: 0.03em;
}

.sila-amt {
    font-size: 1.02rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
    color: #312e81;
}

.sila-history-table th.sila-history-amt,
.sila-history-table td.sila-history-amt {
    text-align: right;
    white-space: nowrap;
}

.sila-pay-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 0.24rem 0.7rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    color: #475569;
    font-size: 0.78rem;
    font-weight: 650;
}

.sila-pay-pill.is-check {
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
}

.sila-pay-pill.is-cash {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

body.app-shell.is-hof .sila-history-card::before {
    background: linear-gradient(180deg, #b45309, #fcd34d);
}

body.app-shell.is-hof .sila-its-chip,
body.app-shell.is-hof .sila-history-count {
    color: #8a2900;
    background: rgba(255, 251, 235, 0.8);
    border-color: rgba(196, 165, 116, 0.4);
}

body.app-shell.is-hof .sila-photo {
    background: linear-gradient(145deg, rgba(252, 211, 77, 0.45), rgba(253, 230, 201, 0.8));
    color: #8a2900;
    box-shadow: 0 0 0 1px rgba(196, 165, 116, 0.45), 0 10px 22px rgba(138, 41, 0, 0.1);
}

body.app-shell.is-hof .sila-amt {
    color: #7c2d12;
}

body.app-shell.is-hof .sila-history-table tbody tr:hover td {
    background: rgba(255, 247, 237, 0.7);
}

@media (max-width: 991.98px) {
    .sila-history-duo {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639.98px) {
    .sila-history-card {
        padding: 1.05rem 0.9rem 1rem;
    }

    .sila-photo {
        width: 3.6rem;
        height: 3.6rem;
    }

    .sila-history-panel {
        background: transparent;
        border: none;
        overflow: visible;
    }

    .sila-history-table thead {
        display: none;
    }

    .sila-history-table,
    .sila-history-table tbody,
    .sila-history-table tr,
    .sila-history-table td {
        display: block;
        width: 100%;
    }

    .sila-history-table tbody {
        display: grid;
        gap: 0.7rem;
    }

    .sila-history-table tr {
        padding: 0.9rem 1rem;
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(167, 139, 250, 0.16);
    }

    .sila-history-table tbody tr:nth-child(even) td,
    .sila-history-table tbody td,
    .sila-history-table tbody tr:hover td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.3rem 0;
        border: none;
        background: transparent;
        text-align: right;
        white-space: normal;
    }

    .sila-history-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--muted);
        text-align: left;
    }

    .sila-history-table td.sila-history-amt {
        text-align: right;
    }
}

.dash-subcard-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.dash-subcard-text {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.45;
}

.profile-card-name {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.3;
}

.profile-panel .dash-subcard-title {
    margin-bottom: 0.85rem;
}

.profile-card-dl {
    margin: 0;
    display: grid;
    gap: 0;
}

.profile-card-row {
    display: grid;
    grid-template-columns: minmax(7rem, 42%) 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-card-row:first-child {
    padding-top: 0;
}

.profile-card-row-stack {
    grid-template-columns: 1fr;
    gap: 0.2rem;
}

.profile-card-row dt {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.profile-card-row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.profile-mono {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.profile-empty {
    font-weight: 500;
    font-style: italic;
    color: var(--muted);
    opacity: 0.85;
}

.profile-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(13, 148, 136, 0.35);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.profile-link:hover {
    color: #0f766e;
    border-bottom-color: #0f766e;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.profile-status.is-active {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.family-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
}

/* Family household hub */
.family-hub {
    background: rgba(255, 252, 247, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 1.25rem;
    padding: 1.35rem 1.25rem 1.5rem;
    box-shadow: 0 14px 36px -18px rgba(20, 12, 4, 0.22);
}

.family-hub-page {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 1.35rem 1.75rem;
}

.family-form-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f766e;
}

.family-hub-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.family-hub-title {
    margin: 0 0 0.3rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.family-hub-page .family-hub-title {
    font-size: 1.7rem;
}

.family-hub-lead {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 500;
    max-width: 36rem;
    line-height: 1.45;
}

.family-hub-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.family-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 650;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
}

.family-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
}

.family-person-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.05rem 1.05rem 0.95rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 22px -16px rgba(20, 12, 4, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: family-card-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--fam-delay, 0s);
}

.family-person-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.22);
    box-shadow: 0 14px 28px -14px rgba(20, 12, 4, 0.3);
}

.family-person-card.is-self {
    border-color: rgba(201, 162, 39, 0.35);
    background: linear-gradient(165deg, rgba(236, 215, 168, 0.28) 0%, rgba(255, 255, 255, 0.85) 48%);
}

@keyframes family-card-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.family-person-top {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.family-avatar {
    flex: 0 0 auto;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f766e;
    background: linear-gradient(145deg, rgba(94, 234, 212, 0.35), rgba(167, 139, 250, 0.28));
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 14px rgba(76, 62, 104, 0.1);
}

.family-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.family-person-card.is-self .family-avatar {
    color: #8a2900;
    background: linear-gradient(145deg, #ecd7a8, #f5e9c8);
}

.family-person-head {
    min-width: 0;
    flex: 1;
}

.family-person-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    margin-bottom: 0.2rem;
}

.family-person-name {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--text);
    line-height: 1.25;
}

.family-person-its {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.family-person-legal {
    font-size: 0.84rem;
    font-weight: 550;
    color: #5b5568;
    margin-top: 0.1rem;
    line-height: 1.35;
}

.family-legal-label {
    display: inline-block;
    margin-right: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.family-person-its.is-missing {
    font-style: italic;
    opacity: 0.85;
}

.family-rel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
    white-space: nowrap;
}

.family-rel-badge.is-self {
    background: rgba(138, 41, 0, 0.1);
    color: #8a2900;
}

.family-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
}

.family-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.45rem 0.65rem;
    border-radius: 0.65rem;
    background: rgba(15, 23, 42, 0.035);
}

.family-meta-item dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.family-meta-item dd {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.family-person-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.15rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.family-action-edit,
.family-action-remove {
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 0.65rem;
    padding: 0.4rem 0.8rem;
}

.family-action-edit {
    border: 1.5px solid rgba(13, 148, 136, 0.28);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
}

.family-action-edit:hover {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.45);
    color: var(--text);
}

.family-action-remove {
    border: 1.5px solid rgba(185, 28, 28, 0.18);
    background: transparent;
    color: #9f1239;
}

.family-action-remove:hover {
    background: rgba(254, 226, 226, 0.65);
    border-color: rgba(185, 28, 28, 0.28);
    color: #9f1239;
}

.family-empty,
.family-state {
    text-align: center;
    padding: 2rem 1.25rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed rgba(15, 23, 42, 0.12);
}

.family-state-error {
    text-align: left;
    border-style: solid;
    border-color: rgba(185, 28, 28, 0.2);
    background: rgba(254, 226, 226, 0.45);
    color: #9f1239;
    font-weight: 500;
}

.family-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.85rem;
    border-radius: 1rem;
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
}

.family-empty-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.family-empty-text {
    margin: 0 auto 1.15rem;
    max-width: 26rem;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .family-hub {
        padding: 1.1rem 0.95rem 1.25rem;
    }

    .family-hub-actions {
        width: 100%;
    }

    .family-hub-actions .edu-btn-primary {
        flex: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .family-person-card {
        animation: none;
    }

    .family-person-card:hover {
        transform: none;
    }
}

/* —— Family manage page (family.php) —— */
.family-manage-page .family-manage-main {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 5rem;
}

.family-page-hero {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.4rem 1.35rem;
    border-radius: 1.4rem;
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(236, 215, 168, 0.42) 0%, rgba(255, 252, 247, 0.88) 42%, rgba(204, 251, 241, 0.35) 100%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 22px 48px -24px rgba(20, 12, 4, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    animation: family-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.family-page-hero::before {
    content: '';
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 180px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.14), transparent 68%);
    pointer-events: none;
}

.family-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.family-breadcrumb a {
    color: #0f766e;
    text-decoration: none;
}

.family-breadcrumb a:hover {
    text-decoration: underline;
}

.family-page-hero-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    margin-bottom: 1.15rem;
}

.family-page-title {
    margin: 0 0 0.4rem;
    font-size: clamp(1.75rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--text);
    line-height: 1.15;
}

.family-page-subtitle {
    margin: 0;
    max-width: 34rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.5;
}

.family-page-subtitle strong {
    color: var(--text);
    font-weight: 650;
}

.family-page-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.78rem 1.2rem;
    border-radius: 0.9rem;
    border: none;
    font-weight: 650;
    font-size: 0.95rem;
    color: #3f2a0a;
    text-decoration: none;
    background: linear-gradient(115deg, #f3e2b5 0%, #ecd7a8 55%, #e0c582 100%);
    box-shadow: 0 12px 28px rgba(138, 41, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.family-page-cta:hover,
.family-page-cta:focus-visible {
    color: #2c1c05;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(138, 41, 0, 0.2);
    filter: brightness(1.02);
}

.family-page-cta-plus {
    display: inline-grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: rgba(138, 41, 0, 0.12);
    font-size: 1.05rem;
    line-height: 1;
}

.family-page-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
}

.family-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
}

.family-stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.family-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.family-stat-tip {
    font-size: 0.84rem !important;
    font-weight: 550 !important;
    color: var(--muted) !important;
    line-height: 1.35;
}

.family-toast {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    animation: family-card-in 0.4s ease both;
}

.family-toast strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.family-toast p {
    font-size: 0.88rem;
    color: inherit;
    opacity: 0.9;
}

.family-toast-icon {
    flex: 0 0 auto;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.family-toast.is-success {
    background: rgba(209, 250, 229, 0.75);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #065f46;
}

.family-toast.is-success .family-toast-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

.family-toast.is-error {
    background: rgba(254, 226, 226, 0.75);
    border: 1px solid rgba(185, 28, 28, 0.22);
    color: #9f1239;
}

.family-toast.is-error .family-toast-icon {
    background: rgba(185, 28, 28, 0.12);
}

.family-manage-page .family-hub-page {
    max-width: none;
    margin: 0;
    padding: 1.35rem 1.3rem 1.5rem;
    animation: family-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
}

.family-list-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.family-list-heading {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.family-list-sub {
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}

.family-search {
    position: relative;
    display: block;
    min-width: min(100%, 280px);
    flex: 1 1 240px;
    max-width: 340px;
}

.family-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.family-search input {
    width: 100%;
    border: 1.5px solid rgba(13, 148, 136, 0.18);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 0.85rem;
    padding: 0.7rem 0.9rem 0.7rem 2.45rem;
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.family-search input::placeholder {
    color: #a8a3b3;
}

.family-search input:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.family-manage-page .family-card-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .family-manage-page .family-card-grid {
        grid-template-columns: 1fr;
    }

    .family-manage-page .family-person-card {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem 1.25rem;
        padding: 1.05rem 1.15rem;
    }

    .family-manage-page .family-person-top {
        margin: 0;
    }

    .family-manage-page .family-meta {
        margin: 0;
    }

    .family-manage-page .family-person-actions {
        margin: 0;
        padding: 0;
        border: 0;
        justify-content: flex-end;
    }
}

.family-empty-compact {
    margin-bottom: 1rem;
    padding: 1.25rem 1rem;
}

.family-fab {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 40;
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1;
    color: #3f2a0a;
    text-decoration: none;
    background: #ecd7a8;
    box-shadow: 0 14px 32px rgba(138, 41, 0, 0.28);
}

.family-fab:hover {
    color: #2c1c05;
    filter: brightness(1.03);
}

@media (max-width: 767.98px) {
    .family-page-stats {
        grid-template-columns: 1fr 1fr;
    }

    .family-stat-hint {
        grid-column: 1 / -1;
    }

    .family-page-cta {
        width: 100%;
        justify-content: center;
    }
}

.profile-status.is-inactive {
    background: rgba(248, 113, 113, 0.14);
    color: #b91c1c;
}

.profile-address {
    margin: 0;
    font-style: normal;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text);
}

@media (max-width: 575.98px) {
    .profile-card-row {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

/* DHA Sila profile form (ported sections) */
.dha-sila-profile-form .dha-section-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dha-sila-profile-form .dha-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.35rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #0d9488);
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

/* Netflix-style rows */
.module-row {
    margin-bottom: 2rem;
    animation: row-fade 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.module-row:nth-child(2) { animation-delay: 0.06s; }
.module-row:nth-child(3) { animation-delay: 0.12s; }
.module-row:nth-child(4) { animation-delay: 0.18s; }
.module-row:nth-child(5) { animation-delay: 0.24s; }

@keyframes row-fade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding-left: 0.15rem;
}

.module-row-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.module-row-hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.module-track-wrap {
    position: relative;
}

.module-track-wrap::before,
.module-track-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 12px;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.module-track-wrap.can-scroll-left::before {
    opacity: 1;
    left: 0;
    background: linear-gradient(90deg, rgba(245, 240, 255, 0.95), transparent);
}

.module-track-wrap.can-scroll-right::after {
    opacity: 1;
    right: 0;
    background: linear-gradient(-90deg, rgba(255, 245, 240, 0.95), transparent);
}

.module-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.35rem 0.25rem 1rem;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(139, 92, 246, 0.35) transparent;
}

.module-track::-webkit-scrollbar {
    height: 7px;
}

.module-track::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.28);
    border-radius: 99px;
}

.module-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 99px;
}

.module-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: min(240px, 72vw);
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.15);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.module-card:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    z-index: 3;
}

.module-card:focus-visible {
    outline: 3px solid rgba(139, 92, 246, 0.55);
    outline-offset: 3px;
}

.module-card-inner {
    position: absolute;
    inset: 0;
    padding: 1rem 1rem 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.22) 0%, transparent 42%, rgba(0, 0, 0, 0.22) 100%);
}

.module-card-label {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.module-card-desc {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.92;
    line-height: 1.35;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.module-accent-violet {
    background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 45%, #6366f1 100%);
}

.module-accent-mint {
    background: linear-gradient(135deg, #99f6e4 0%, #2dd4bf 48%, #14b8a6 100%);
}

.module-accent-peach {
    background: linear-gradient(135deg, #fecdd3 0%, #fb923c 42%, #f97316 100%);
}

.module-accent-sky {
    background: linear-gradient(135deg, #bae6fd 0%, #38bdf8 48%, #2563eb 100%);
}

.module-accent-rose {
    background: linear-gradient(135deg, #fbcfe8 0%, #ec4899 45%, #db2777 100%);
}

.module-accent-lime {
    background: linear-gradient(135deg, #d9f99d 0%, #84cc16 42%, #65a30d 100%);
}

.module-accent-amber {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 45%, #d97706 100%);
}

/* --- Education module --- */
.edu-manage-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.edu-panel {
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 1.15rem;
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: var(--shadow-soft);
}

.edu-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
    font-weight: 500;
}

.edu-record-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-record-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.edu-record-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.edu-record-badge {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.2);
    color: #5b21b6;
}

.edu-record-summary {
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 500;
}

.edu-record-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.edu-btn-primary {
    border-radius: 0.75rem;
    padding: 0.5rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #0d9488 100%);
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.28);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(139, 92, 246, 0.32);
}

.edu-btn-secondary {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1.5px solid rgba(167, 139, 250, 0.35);
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.edu-btn-secondary:hover {
    color: var(--text);
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-1px);
}

button.edu-btn-secondary,
button.edu-btn-primary {
    cursor: pointer;
}

.edu-btn-danger {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--danger-border);
    background: var(--danger-soft);
    color: var(--danger-text);
    transition: transform 0.2s ease;
}

.edu-btn-danger:hover {
    color: var(--danger-text);
    transform: translateY(-1px);
}

.edu-alert {
    border-radius: 0.85rem;
}

.edu-form-page .edu-workflow-form {
    max-width: 720px;
}

.edu-form-page.drive-form-page .edu-workflow-form {
    max-width: none;
    width: 100%;
}

/* Sila profile: main column 75% width, centered (full width on small screens) */
body.dha-page-fullwidth .dash-main {
    max-width: none;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2rem);
    padding-right: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 767.98px) {
    body.dha-page-fullwidth .dash-main {
        width: 100%;
    }
}

body.dha-page-fullwidth .edu-form-page .edu-workflow-form {
    max-width: none;
}

body.dha-page-fullwidth .edu-form-hero p {
    max-width: none;
}

.edu-form-hero p {
    max-width: 52rem;
}

.edu-fieldset {
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 1rem;
    padding: 1rem 1.1rem 1.1rem;
    margin-bottom: 1.15rem;
    background: rgba(255, 255, 255, 0.35);
}

.edu-legend {
    float: none;
    width: auto;
    padding: 0 0.35rem;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.edu-radio-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.edu-radio-grid-4 .edu-radio {
    flex: 1 1 calc(50% - 0.65rem);
    min-width: 140px;
}

@media (min-width: 640px) {
    .edu-radio-grid-4 .edu-radio {
        flex: 1 1 calc(25% - 0.65rem);
    }
}

.edu-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border-radius: 0.75rem;
    border: 1.5px solid rgba(167, 139, 250, 0.22);
    background: var(--input-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1 1 auto;
}

.edu-radio input {
    margin: 0;
    accent-color: #7c3aed;
}

.edu-input {
    border-radius: 0.75rem;
    border: 1.5px solid rgba(167, 139, 250, 0.22);
    background: var(--input-bg);
}

.edu-input.edu-input-locked,
.edu-input:read-only {
    background: rgba(15, 23, 42, 0.04);
    color: #475569;
    cursor: default;
    border-color: rgba(148, 163, 184, 0.35);
}

.edu-conditional {
    margin-bottom: 1.15rem;
}

.edu-conditional.is-hidden {
    display: none;
}

.edu-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.edu-branch[hidden] {
    display: none !important;
}

.edu-fieldset-flush {
    margin-bottom: 1.25rem;
}

.edu-table-responsive {
    border-radius: 1rem;
    border: 1px solid rgba(167, 139, 250, 0.2);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.35);
}

.edu-workflow-table {
    --edu-table-border: rgba(167, 139, 250, 0.18);
    font-size: 0.92rem;
}

.edu-workflow-table thead th {
    background: rgba(167, 139, 250, 0.12);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    border-color: var(--edu-table-border);
    vertical-align: middle;
    padding: 0.65rem 0.85rem;
}

.edu-th-question {
    width: 62%;
}

.edu-th-yesno {
    width: 19%;
    text-align: center;
}

.edu-workflow-table tbody td {
    border-color: var(--edu-table-border);
    vertical-align: middle;
    padding: 0.65rem 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.edu-q-row td:first-child {
    font-weight: 600;
}

.edu-td-radio {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-height: 2rem;
    cursor: pointer;
}

.edu-td-radio input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #7c3aed;
    cursor: pointer;
}

.edu-slide-row td {
    background: rgba(255, 255, 255, 0.45);
    border-top: none;
    padding: 0;
}

.edu-slide-inner {
    padding: 0.9rem 1rem 1rem;
    border-top: 1px dashed rgba(167, 139, 250, 0.28);
    max-height: 400px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.35s ease;
}

.edu-slide-row.is-collapsed .edu-slide-inner {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
}

.edu-slide-stack {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.edu-school-pair {
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

.edu-school-pair:last-of-type {
    border-bottom: none;
}

.edu-slide-row-nested {
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
}

.edu-slide-row-nested.is-collapsed {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

.edu-workflow-table-inline .edu-th-question {
    width: 28%;
}

.edu-workflow-table-inline .edu-th-yesno {
    width: 7%;
}

.edu-workflow-table-inline .edu-th-follow {
    width: auto;
    min-width: 12rem;
}

.edu-workflow-table-inline .edu-follow-cell {
    vertical-align: middle;
    padding: 0.4rem 0.75rem;
    font-weight: 500;
}

.edu-workflow-table-inline .edu-slide-row td {
    background: transparent;
}

.edu-workflow-table-inline .edu-slide-inner {
    border-top: none;
    padding: 0;
    max-height: 420px;
}

.edu-workflow-table-inline .edu-slide-row.is-collapsed .edu-slide-inner {
    max-height: 0;
}

.edu-workflow-table-inline .edu-slide-stack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem 0.85rem;
}

.edu-workflow-table-inline .edu-slide-stack > * {
    flex: 1 1 10.5rem;
    min-width: 9.5rem;
}

.edu-workflow-table-inline .edu-school-pair {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-workflow-table-inline .edu-radio-grid {
    flex-wrap: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    body.login-page,
    body.app-shell,
    .blob:not(.blob-3),
    .blob-3,
    .login-card,
    .login-brand-badge,
    .field-wrap,
    .btn-login,
    .btn-login::after,
    .btn-login-gold,
    .btn-its-login,
    .alert-soft,
    .dot-row span,
        .dash-nav,
        .dash-hero,
        .dash-tabs-wrap,
        .module-row,
    .module-card {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
    body.login-page,
    body.app-shell {
        background-size: 100% 100%;
    }
    .btn-login::after {
        display: none;
    }
    .module-card:hover {
        transform: none;
    }
    .edu-slide-inner,
    .edu-slide-row-nested {
        transition: none !important;
    }
}

/* ——— Takhmeen ——— */
.tk-loader {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 70% 50% at 50% 18%, rgba(232, 184, 23, 0.22), transparent 58%),
        linear-gradient(165deg, #2a1a12 0%, #7a2343 42%, #1c1917 100%);
    overflow: hidden;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.tk-loader[hidden] {
    display: none !important;
}

body.tk-ready .tk-loader {
    opacity: 0;
    visibility: hidden;
}

.tk-loader-glow {
    position: absolute;
    width: min(28rem, 80vw);
    height: min(28rem, 80vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 184, 23, 0.28), transparent 68%);
    animation: tk-loader-pulse 1.8s ease-in-out infinite;
}

.tk-loader-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    animation: tk-loader-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tk-loader-logo {
    height: 5.4rem;
    width: auto;
    max-width: min(72vw, 16rem);
    margin-bottom: 1.05rem;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.28));
    animation: tk-loader-logo 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tk-loader-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ecd7a8;
}

.tk-loader-title {
    margin: 0 0 1.15rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #fffaf0;
}

.tk-loader-bar {
    display: block;
    width: 8.5rem;
    height: 3px;
    border-radius: 99px;
    overflow: hidden;
    background: rgba(236, 215, 168, 0.22);
}

.tk-loader-bar::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #ecd7a8, transparent);
    animation: tk-loader-sweep 1.15s ease-in-out infinite;
}

@keyframes tk-loader-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tk-loader-logo {
    from { opacity: 0; transform: scale(0.82) rotate(-6deg); }
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes tk-loader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes tk-loader-sweep {
    from { transform: translateX(-120%); }
    to { transform: translateX(280%); }
}

body.app-shell.tk-page {
    --tk-ink: #1c1917;
    --tk-muted: #6f675e;
    --tk-wine: #7a2343;
    --tk-gold: #b0894a;
    --tk-teal: #0f766e;
    --text: var(--tk-ink);
    --muted: var(--tk-muted);
    color: var(--tk-ink);
    background:
        linear-gradient(180deg, rgba(246, 240, 230, 0.78) 0%, rgba(239, 231, 216, 0.86) 48%, rgba(233, 224, 208, 0.9) 100%),
        var(--tk-bg-image, none) center 32% / cover no-repeat fixed;
    background-size: auto, cover;
    animation: none;
    padding-top: 5.6rem;
    padding-bottom: env(safe-area-inset-bottom);
}

body.app-shell.tk-page.has-nav-subtitle {
    padding-top: 6.65rem;
}

body.app-shell.tk-page .login-bg .blob {
    opacity: 0.18;
    filter: blur(72px);
}

body.app-shell.tk-page .dash-nav {
    background: rgba(246, 240, 230, 0.86);
    border-bottom: 1px solid rgba(176, 137, 74, 0.18);
}

body.app-shell.tk-page .dash-nav-inner {
    padding: 0.7rem 1.15rem;
    align-items: center;
}

body.app-shell.tk-page .dash-logo-img {
    height: 4.35rem;
}

body.app-shell.tk-page .dash-nav-greeting {
    font-family: Fraunces, Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    font-size: clamp(0.84rem, 2.3vw, 1.18rem);
    line-height: 1.15;
}

body.app-shell.tk-page .dash-nav-sub {
    margin-top: 0.12rem;
    font-family: Outfit, system-ui, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tk-wine);
    -webkit-line-clamp: 1;
}

body.app-shell.tk-page.is-hof {
    background:
        linear-gradient(180deg, rgba(246, 240, 230, 0.78) 0%, rgba(239, 231, 216, 0.86) 48%, rgba(233, 224, 208, 0.9) 100%),
        var(--tk-bg-image, none) center 32% / cover no-repeat fixed !important;
    background-size: auto, cover !important;
}

body.app-shell.tk-page.is-hof .dash-nav {
    background: rgba(246, 240, 230, 0.86) !important;
    border-bottom: 1px solid rgba(176, 137, 74, 0.18);
}

.tk-pane[hidden] {
    display: none !important;
}

.tk-main {
    max-width: 42.5rem;
    padding: 1rem 1.1rem 3.5rem;
}

body.tk-booting .tk-main {
    opacity: 0;
}

body.tk-ready .tk-main {
    animation: tk-page-enter 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes tk-page-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

.tk-hero {
    position: relative;
    margin: 0.15rem 0 1.2rem;
    padding: 0.2rem 0.1rem 0;
}

.tk-lead {
    margin: 0;
    display: grid;
    gap: 0.55rem;
    max-width: 34rem;
}

.tk-lead-accent {
    display: block;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.55rem, 5vw, 2.15rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--tk-ink);
    background: linear-gradient(120deg, #7a2343 0%, #b0894a 52%, #0f766e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tk-lead-accent::after {
    content: '';
    display: block;
    width: 4.2rem;
    height: 2px;
    margin-top: 0.7rem;
    border-radius: 99px;
    background: linear-gradient(90deg, #b0894a, transparent);
}

.tk-lead-rest {
    display: block;
    max-width: 26rem;
    color: var(--tk-muted);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.55;
}

.tk-kicker {
    margin: 0 0 0.45rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--tk-wine) !important;
}

.tk-progress {
    margin: 0 0 1rem;
}

.tk-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tk-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 1rem;
    background: rgba(255, 252, 247, 0.55);
    border: 1px solid rgba(176, 137, 74, 0.16);
    color: var(--tk-muted);
}

.tk-step-num {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(122, 35, 67, 0.1);
    color: var(--tk-wine);
    font-size: 0.78rem;
    font-weight: 700;
}

.tk-step-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.tk-step-copy strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: inherit;
}

.tk-step-copy em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--tk-muted);
}

.tk-steps-rail {
    width: 1.4rem;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(122, 35, 67, 0.25), rgba(15, 118, 110, 0.35));
}

.tk-step.is-active,
.tk-step.is-done {
    background: rgba(255, 252, 247, 0.92);
    border-color: rgba(122, 35, 67, 0.22);
    color: var(--tk-ink);
}

.tk-step.is-done .tk-step-num,
.tk-step.is-active .tk-step-num {
    background: linear-gradient(145deg, #7a2343, #0f766e);
    color: #fff;
    box-shadow: 0 6px 14px rgba(122, 35, 67, 0.22);
}

.tk-card {
    background: rgba(255, 252, 247, 0.88);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.4rem;
    padding: 1.35rem 1.25rem 1.2rem;
    box-shadow:
        0 24px 48px -28px rgba(60, 42, 20, 0.38),
        0 8px 20px -12px rgba(60, 42, 20, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tk-form {
    max-width: none !important;
}

.tk-alert {
    margin-bottom: 1rem;
}

.tk-identity {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.15rem;
}

.tk-identity.is-empty {
    display: none;
}

.tk-photo {
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 1.25rem;
    overflow: hidden;
    flex: 0 0 4.6rem;
    background: linear-gradient(160deg, #ecd7a8 0%, #f3e6c8 45%, #d4c0a0 100%);
    color: var(--tk-wine);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    border: 3px solid #fff;
    box-shadow: 0 10px 22px rgba(122, 35, 67, 0.12);
}

.tk-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tk-identity-kicker {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tk-wine);
}

.tk-identity-copy h2,
.tk-pay-intro h2,
.tk-success h2 {
    margin: 0 0 0.35rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--tk-ink);
}

.tk-identity-copy p,
.tk-pay-intro > p {
    margin: 0;
    color: var(--tk-muted);
    font-weight: 500;
    font-size: 0.94rem;
    line-height: 1.5;
}

.tk-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.9rem;
}

.tk-field {
    min-width: 0;
}

.tk-field-its {
    grid-column: 1;
}

.tk-field-name {
    grid-column: 2;
}

body.tk-page .form-label {
    font-weight: 650;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    color: #44403c;
    margin-bottom: 0.4rem;
}

body.tk-page .edu-input,
body.tk-page .form-control,
body.tk-page .form-select {
    min-height: 3rem;
    border-radius: 0.9rem;
    border: 1.5px solid rgba(176, 137, 74, 0.28);
    background: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    padding: 0.7rem 0.95rem;
    color: var(--tk-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.tk-page .edu-input:hover,
body.tk-page .form-control:hover,
body.tk-page .form-select:hover {
    border-color: rgba(122, 35, 67, 0.32);
}

body.tk-page .edu-input:focus,
body.tk-page .form-control:focus,
body.tk-page .form-select:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
    background: #fff;
}

.tk-its-wrap {
    position: relative;
}

.tk-its-status {
    display: block;
    margin-top: 0.4rem;
    min-height: 1.1em;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--tk-teal);
}

.tk-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--tk-muted);
    line-height: 1.4;
}

.tk-btn-lg {
    min-height: 3rem;
    padding: 0.7rem 1.35rem !important;
    border-radius: 0.95rem !important;
    font-size: 0.98rem !important;
}

body.tk-page .edu-btn-primary {
    background: linear-gradient(135deg, #7a2343 0%, #0f766e 100%);
    box-shadow: 0 12px 26px rgba(122, 35, 67, 0.24);
}

body.tk-page .edu-btn-primary:hover {
    box-shadow: 0 16px 32px rgba(122, 35, 67, 0.3);
}

body.tk-page .edu-btn-secondary {
    min-height: 3rem;
    padding: 0.65rem 1.1rem;
    border-radius: 0.95rem;
    border-color: rgba(176, 137, 74, 0.35);
    background: rgba(255, 255, 255, 0.7);
}

.tk-actions {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(176, 137, 74, 0.16);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.tk-actions .edu-btn-primary {
    flex: 0 1 auto;
    min-width: 10.5rem;
}

.tk-pay-intro {
    margin-bottom: 1.25rem;
}

.tk-pay-person {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}

.tk-pay-person span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--tk-teal);
    font-size: 0.78rem;
    font-weight: 700;
}

.tk-amount-hero {
    margin-bottom: 1.15rem;
}

.tk-amount-wrap {
    position: relative;
    max-width: 18rem;
}

.tk-amount-wrap > span {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--tk-wine);
    font-family: Fraunces, Georgia, serif;
    font-size: 1.45rem;
    font-weight: 600;
    z-index: 1;
}

.tk-amount-wrap .form-control {
    padding-left: 2.15rem !important;
    min-height: 3.6rem !important;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.7rem !important;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.tk-wire {
    margin-top: 0.25rem;
    padding: 1.15rem 1.1rem 1.05rem;
    border-radius: 1.2rem;
    background:
        linear-gradient(165deg, rgba(255, 248, 235, 0.95) 0%, rgba(255, 255, 255, 0.72) 100%);
    border: 1px solid rgba(176, 137, 74, 0.32);
}

.tk-wire-badge {
    display: inline-flex;
    margin: 0 0 0.45rem !important;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(122, 35, 67, 0.08);
    color: var(--tk-wine) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tk-wire-head h3 {
    margin: 0 0 0.3rem;
    font-family: Fraunces, Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.tk-wire-head p {
    margin: 0 0 1rem;
    color: var(--tk-muted);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}

.tk-wire-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    margin: 0;
}

.tk-wire-grid > div {
    padding: 0.75rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(176, 137, 74, 0.18);
}

.tk-wire-grid dt {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a7460;
    font-weight: 700;
}

.tk-wire-grid dd {
    margin: 0.28rem 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    font-weight: 650;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tk-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.tk-copy {
    border: 0;
    background: rgba(122, 78, 29, 0.1);
    color: #7a4e1d;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    flex: 0 0 auto;
    min-height: 1.7rem;
}

.tk-copy:hover,
.tk-copy:focus-visible {
    background: rgba(122, 78, 29, 0.16);
}

.tk-wire-memo {
    margin-top: 0.95rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: rgba(15, 118, 110, 0.07);
    border: 1px solid rgba(15, 118, 110, 0.14);
}

.tk-wire-memo p {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tk-teal);
}

.tk-wire-memo ul {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--tk-ink);
    font-size: 0.9rem;
    line-height: 1.55;
}

.tk-wire-upload {
    display: grid;
    gap: 1rem;
    margin-top: 1.1rem;
    padding-top: 1.05rem;
    border-top: 1px dashed rgba(176, 137, 74, 0.45);
}

.tk-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-height: 9rem;
    padding: 1.2rem 1rem;
    border-radius: 1.1rem;
    border: 1.5px dashed rgba(122, 35, 67, 0.32);
    background: rgba(255, 248, 240, 0.65);
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tk-drop:hover,
.tk-drop.is-drag {
    border-color: #0f766e;
    background: rgba(204, 251, 241, 0.28);
    transform: translateY(-1px);
}

.tk-drop.has-file {
    border-style: solid;
    border-color: rgba(15, 118, 110, 0.4);
    background: rgba(204, 251, 241, 0.22);
}

.tk-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tk-drop-icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.25rem;
    border-radius: 0.85rem;
    color: var(--tk-wine);
    background: rgba(255, 255, 255, 0.85);
}

.tk-drop strong {
    color: var(--tk-ink);
    font-size: 0.98rem;
}

.tk-drop > span:not(.tk-drop-icon) {
    font-size: 0.8rem;
    color: var(--tk-muted);
    font-weight: 500;
    max-width: 18rem;
    line-height: 1.4;
}

.tk-drop em {
    display: none;
    font-style: normal;
    font-weight: 700;
    color: var(--tk-teal);
    font-size: 0.85rem;
    margin-top: 0.2rem;
    word-break: break-all;
}

.tk-drop.has-file em {
    display: block;
}

.tk-client-error {
    margin: 1rem 0 0;
    padding: 0.75rem 0.95rem;
    border-radius: 0.85rem;
    background: var(--danger-soft);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    font-size: 0.88rem;
    font-weight: 600;
}

#tk-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.tk-success {
    text-align: center;
    padding: 2.6rem 1.4rem 2.2rem;
}

.tk-success-mark {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 1.1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #7a2343, #0f766e);
    color: #fff;
    box-shadow: 0 12px 24px rgba(122, 35, 67, 0.22);
}

.tk-success p {
    margin: 0 auto;
    max-width: 26rem;
    color: var(--tk-muted);
    font-weight: 500;
    line-height: 1.5;
}

.tk-success-note {
    margin-top: 0.7rem !important;
}

.tk-sila-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.1rem;
    margin: 0 1.15rem 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 0.95rem;
    background: rgba(255, 241, 242, 0.55);
    border: 1px solid rgba(190, 24, 93, 0.14);
}

.tk-sila-cta span {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

@media (max-width: 639.98px) {
    .tk-fields,
    .tk-wire-grid {
        grid-template-columns: 1fr;
    }

    .tk-field-its,
    .tk-field-name {
        grid-column: 1;
    }

    .tk-identity {
        align-items: flex-start;
    }

    .tk-step-copy em {
        display: none;
    }

    .tk-steps-rail {
        width: 0.7rem;
    }

    .tk-amount-wrap {
        max-width: none;
    }

    .tk-actions-sticky {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin-left: -1.25rem;
        margin-right: -1.25rem;
        margin-bottom: -1.2rem;
        padding: 0.85rem 1.25rem max(0.95rem, env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(255, 252, 247, 0.55) 0%, rgba(255, 252, 247, 0.96) 28%);
        border-top: 1px solid rgba(176, 137, 74, 0.18);
        justify-content: stretch;
    }

    .tk-actions-sticky .edu-btn-primary,
    .tk-actions-sticky .edu-btn-secondary {
        flex: 1 1 auto;
    }

    .tk-main {
        padding-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body.app-shell.tk-page,
    body.app-shell.tk-page.has-nav-subtitle {
        padding-top: 7.35rem;
        background-attachment: scroll, scroll;
    }

    body.app-shell.tk-page .dash-logo-img {
        height: 3.45rem;
    }

    body.app-shell.tk-page .dash-nav-greeting {
        font-size: 0.86rem;
    }

    .tk-card {
        padding: 1.15rem 1rem 1.05rem;
        border-radius: 1.15rem;
    }

    .tk-actions-sticky {
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: -1.05rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .tk-photo {
        width: 3.8rem;
        height: 3.8rem;
        flex-basis: 3.8rem;
        border-radius: 1rem;
    }
}

@media (max-width: 767.98px) {
    body.app-shell.tk-page,
    body.app-shell.tk-page.is-hof {
        background-attachment: scroll, scroll !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tk-loader,
    .tk-loader-glow,
    .tk-loader-card,
    .tk-loader-logo,
    .tk-loader-bar::after,
    body.tk-ready .tk-main {
        animation: none !important;
        transition: none !important;
    }

    .tk-loader {
        display: none !important;
    }

    body.tk-booting .tk-main {
        opacity: 1;
    }

    body.app-shell.tk-page .edu-btn-primary:hover,
    .tk-drop:hover,
    .tk-drop.is-drag {
        transform: none;
    }
}
