/* ── TraceTrack Global Stylesheet ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
    --navy:       #0D1B2A;
    --navy-mid:   #1B2F4A;
    --navy-light: #243B55;
    --blue:       #1565C0;
    --blue-glow:  #1976D2;
    --gold:       #E8A838;
    --green:      #2E7D32;
    --red:        #C62828;
    --purple:     #6A1B9A;
    --text:       #E8EDF2;
    --text-muted: #8BA0B4;
    --card-bg:    #162032;
    --input-bg:   #0F1B2B;
    --border:     rgba(255,255,255,0.08);
    --sidebar-w:  300px;
    --footer-h:   40px;
    --header-h:   50px;
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(139,160,180,.28) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: rgba(139,160,180,.28);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(139,160,180,.45);
    background-clip: padding-box;
}

::selection {
    background: #E8A838;
    color: #071A2F;
}

::-moz-selection {
    background: #E8A838;
    color: #071A2F;
}

html[data-theme="light"] * {
    scrollbar-color: rgba(48,73,102,.24) transparent;
}

html[data-theme="light"] *::-webkit-scrollbar-thumb {
    background: rgba(48,73,102,.24);
    border: 3px solid transparent;
    background-clip: padding-box;
}

html[data-theme="light"] *::-webkit-scrollbar-thumb:hover {
    background: rgba(48,73,102,.42);
    background-clip: padding-box;
}

html[data-theme="light"] ::selection {
    background: #0D47A1;
    color: #FFFFFF;
}

html[data-theme="light"] ::-moz-selection {
    background: #0D47A1;
    color: #FFFFFF;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--navy);
    color: var(--text);
    min-height: 100vh;
}

a { color: var(--blue-glow); text-decoration: none; }
a:hover { color: var(--gold); }

html[data-theme="light"] {
    --navy:       #F4F7FB;
    --navy-mid:   #FFFFFF;
    --navy-light: #E8EEF6;
    --blue:       #1565C0;
    --blue-glow:  #0D47A1;
    --gold:       #D99418;
    --green:      #2E7D32;
    --red:        #B71C1C;
    --purple:     #6A1B9A;
    --text:       #071A2F;
    --text-muted: #304966;
    --card-bg:    #FFFFFF;
    --input-bg:   #F6F9FD;
    --border:     rgba(13, 43, 74, 0.12);
}

html[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(21,101,192,.12), transparent 30rem),
        linear-gradient(180deg, #F7FAFE 0%, #EEF4FA 100%);
    color: var(--text);
}

html[data-theme="light"] h1,
html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4,
html[data-theme="light"] h5,
html[data-theme="light"] h6,
html[data-theme="light"] strong,
html[data-theme="light"] .fw-500,
html[data-theme="light"] .tt-user-name,
html[data-theme="light"] .tt-card-header h5,
html[data-theme="light"] .tt-page-header h1,
html[data-theme="light"] .tt-stat-value {
    color: #06172B !important;
}

html[data-theme="light"] p,
html[data-theme="light"] .tt-page-header p,
html[data-theme="light"] .tt-stat-label,
html[data-theme="light"] .tt-user-role,
html[data-theme="light"] .tt-brand-sub,
html[data-theme="light"] .tt-footer-main {
    color: #304966 !important;
}

html[data-theme="light"] .tt-header-top,
html[data-theme="light"] .tt-footer-sticky,
html[data-theme="light"] .tt-topbar,
html[data-theme="light"] .tt-sidebar {
    background: #FFFFFF !important;
    color: var(--text) !important;
    border-color: rgba(13, 43, 74, 0.12) !important;
}

html[data-theme="light"] .tt-sidebar {
    box-shadow: 10px 0 28px rgba(13, 43, 74, .06);
}

html[data-theme="light"] .tt-nav-item {
    color: #24415F;
}

html[data-theme="light"] .tt-nav-item:hover {
    background: rgba(21,101,192,.08);
    color: #004A99;
}

html[data-theme="light"] .tt-nav-item.active {
    background: rgba(21,101,192,.12);
    color: #004A99;
}

html[data-theme="light"] .tt-nav-label {
    color: #4D6279;
}

html[data-theme="light"] .tt-card,
html[data-theme="light"] .card,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .modal-content.tt-modal {
    background: #FFFFFF !important;
    color: var(--text) !important;
    border-color: rgba(13, 43, 74, 0.12) !important;
    box-shadow: 0 18px 45px rgba(13,43,74,.08);
}

html[data-theme="light"] .tt-card-header,
html[data-theme="light"] .card-header,
html[data-theme="light"] .modal-header {
    background: #F6F9FD !important;
    border-color: rgba(13, 43, 74, 0.12) !important;
}

html[data-theme="light"] .tt-table thead th,
html[data-theme="light"] .tt-table th {
    background: #F0F5FB !important;
    color: #304966 !important;
    border-color: rgba(13, 43, 74, 0.12) !important;
}

html[data-theme="light"] .tt-table tbody tr,
html[data-theme="light"] .tt-table tbody td,
html[data-theme="light"] .tt-table td {
    background: #FFFFFF !important;
    color: var(--text) !important;
    border-color: rgba(13, 43, 74, 0.1) !important;
}

html[data-theme="light"] .tt-table tbody tr:hover td,
html[data-theme="light"] .tt-table tbody tr:hover {
    background: #F4F8FC !important;
}

html[data-theme="light"] .tt-input,
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select {
    background: var(--input-bg) !important;
    color: var(--text) !important;
    border-color: rgba(13, 43, 74, 0.14) !important;
}

html[data-theme="light"] .tt-btn-outline-sm,
html[data-theme="light"] .tt-toggle-btn,
html[data-theme="light"] .tt-theme-toggle,
html[data-theme="light"] .tt-logout-btn {
    color: #071A2F;
    border-color: rgba(13, 43, 74, 0.22);
    background: #FFFFFF;
}

html[data-theme="light"] .tt-btn-outline-sm:hover,
html[data-theme="light"] .tt-toggle-btn:hover,
html[data-theme="light"] .tt-theme-toggle:hover {
    color: #004A99;
    background: #EAF3FF;
    border-color: rgba(21,101,192,.38);
}

html[data-theme="light"] .tt-role-badge {
    background: rgba(21,101,192,.1) !important;
    color: var(--blue) !important;
}

html[data-theme="light"] .tt-notif-bell,
html[data-theme="light"] .tt-profile-btn {
    color: var(--text) !important;
}

html[data-theme="light"] .tt-badge-blue {
    background: #D9ECFF !important;
    color: #004A99 !important;
    border: 1px solid rgba(21,101,192,.22);
}

html[data-theme="light"] .tt-badge-green {
    background: #DFF3E3 !important;
    color: #1B5E20 !important;
    border: 1px solid rgba(46,125,50,.22);
}

html[data-theme="light"] .tt-badge-red {
    background: #FFE1E1 !important;
    color: #9F1C1C !important;
    border: 1px solid rgba(198,40,40,.22);
}

html[data-theme="light"] .tt-badge-gold,
html[data-theme="light"] .tt-badge-warning {
    background: #FFF1CC !important;
    color: #744A00 !important;
    border: 1px solid rgba(217,148,24,.25);
}

html[data-theme="light"] .table-responsive {
    scrollbar-color: rgba(48,73,102,.24) transparent;
}

html[data-theme="light"] .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(48,73,102,.24);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.tt-auth-body { background: var(--navy); }

.tt-auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.tt-auth-brand {
    background: linear-gradient(145deg, var(--navy-mid), var(--navy-light));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.tt-auth-brand::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(21,101,192,.18) 0%, transparent 70%);
    top: -120px; left: -100px;
}

.tt-auth-brand-inner { position: relative; z-index: 1; max-width: 360px; }

.tt-brand-logo {
    font-family: 'Sora', sans-serif;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}

.tt-brand-logo span { color: var(--gold); }
.tt-brand-tag { font-size: 1.2rem; color: var(--text-muted); margin-top: .25rem; }

.tt-brand-campus {
    font-size: 1rem;
    color: var(--blue-glow);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: .15rem;
    margin-bottom: 2.5rem;
}

.tt-features { display: flex; flex-direction: column; gap: 1rem; }

.tt-feature {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .85rem 1rem;
}

.tt-feature i { font-size: 1.4rem; color: var(--gold); margin-top: .1rem; flex-shrink: 0; }
.tt-feature strong { display: block; font-size: 1.15rem; margin-bottom: .15rem; }
.tt-feature p { font-size: 1rem; color: var(--text-muted); margin: 0; }

.tt-auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--navy);
    overflow-y: auto;
}

.tt-auth-card { width: 100%; max-width: 440px; }

.tt-auth-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.tt-auth-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.tt-form-group { margin-bottom: 1.2rem; }

.tt-form-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: .95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text);
    margin-bottom: .6rem;
}

.tt-muted-label {
    font-size: .82rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

.tt-required {
    color: var(--gold);
    font-size: 1rem;
}

.tt-form-info {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(232,168,56,0.08));
    border: 1px solid rgba(21,101,192,0.25);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.tt-form-info i {
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.tt-file-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(21,101,192,0.05), rgba(232,168,56,0.03));
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tt-file-drop:hover {
    border-color: var(--blue);
    background: linear-gradient(135deg, rgba(21,101,192,0.12), rgba(232,168,56,0.08));
    transform: translateY(-2px);
}

.tt-file-drop.dragover {
    border-color: var(--gold);
    background: linear-gradient(135deg, rgba(232,168,56,0.15), rgba(21,101,192,0.1));
}

#filePrompt, #proofPrompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    text-align: center;
}

#filePrompt i, #proofPrompt i {
    color: var(--gold);
    font-size: 2.5rem;
    transition: transform 0.2s ease;
}

.tt-file-drop:hover #filePrompt i,
.tt-file-drop:hover #proofPrompt i {
    transform: scale(1.15);
}

#filePrompt p, #proofPrompt p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

#filePreview, #proofPreview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
}

#previewImg, #proofImg {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(21,101,192,0.25);
    transition: transform 0.2s ease;
}

.tt-file-drop:hover #previewImg,
.tt-file-drop:hover #proofImg {
    transform: scale(1.02);
}

#fileName, #proofFileName {
    font-size: .85rem;
    color: var(--text-muted);
    max-width: 100%;
    word-break: break-word;
}

.tt-input {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color .3s, box-shadow .3s, background .3s;
    appearance: none;
    line-height: 1.5;
}

.tt-input:hover {
    border-color: rgba(21,101,192,0.4);
    background: linear-gradient(135deg, var(--input-bg), rgba(21,101,192,0.05));
}

.tt-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(21,101,192,0.15), inset 0 0 0 1px rgba(21,101,192,0.1);
    background: linear-gradient(135deg, var(--input-bg), rgba(21,101,192,0.08));
}

.tt-input::placeholder {
    color: rgba(139,160,180,0.6);
}

.tt-input option {
    background: var(--navy-mid);
    color: var(--text);
    padding: .75rem;
}

.tt-input option:hover {
    background: linear-gradient(rgba(21,101,192,0.4), rgba(21,101,192,0.4));
    color: var(--text);
}

.tt-input option:checked {
    background: linear-gradient(rgba(21,101,192,0.5), rgba(21,101,192,0.5));
    color: #90CAF9;
    font-weight: 600;
}

/* ── DROPDOWN INDICATOR STYLING ────────────────────────────────── */
select.tt-input {
    padding-right: 2.8rem;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390CAF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.4rem;
    padding-right: 2.8rem;
}

select.tt-input:hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DA6FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

select.tt-input:focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232196F3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.tt-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.tt-input-wrap { position: relative; }
.tt-input-wrap .tt-input { padding-right: 2.8rem; }
.tt-input-wrap select.tt-input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390CAF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.4rem;
}

.tt-eye-btn {
    position: absolute;
    right: .75rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color .2s;
    padding: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tt-eye-btn:hover {
    color: var(--blue);
}

/* ── ENHANCED DROPDOWN LABEL STYLING ────────────────────────────── */
.tt-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: .6rem;
    font-size: .95rem;
    color: var(--text);
    transition: color .2s;
}

.tt-form-group {
    margin-bottom: 1.2rem;
}

/* ── READONLY DROPDOWN STYLING ────────────────────────────────────── */
select.tt-input:disabled {
    background-color: rgba(255, 255, 255, .02);
    border-color: rgba(255, 255, 255, .08);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

select.tt-input:disabled::after {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* ── DROPDOWN OPTION WRAPPER ────────────────────────────────────── */
.tt-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.tt-select-wrapper select {
    width: 100%;
    cursor: pointer;
}

.tt-select-wrapper select::-webkit-scrollbar {
    width: 8px;
}

.tt-select-wrapper select::-webkit-scrollbar-track {
    background: transparent;
}

.tt-select-wrapper select::-webkit-scrollbar-thumb {
    background: rgba(139,160,180,.28);
    border: 2px solid transparent;
    border-radius: 4px;
    background-clip: padding-box;
}

.tt-select-wrapper select::-webkit-scrollbar-thumb:hover {
    background: rgba(139,160,180,.45);
    background-clip: padding-box;
}

/* ── UNIVERSAL SELECT IMPROVEMENTS ──────────────────────────── */
/* Ensure all select elements get dropdown styling */
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

select:not(.form-select) {
    padding-right: 2.8rem !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2390CAF9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 1.4rem !important;
    background-color: var(--input-bg) !important;
    cursor: pointer !important;
}

select:not(.form-select):hover {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234DA6FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    border-color: rgba(21,101,192,0.4) !important;
    background-color: linear-gradient(135deg, var(--input-bg), rgba(21,101,192,0.05)) !important;
}

select:not(.form-select):focus {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232196F3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    border-color: var(--blue) !important;
}

/* ── ENHANCED OPTION STYLING ────────────────────────────────── */
select option {
    padding: .75rem 1rem !important;
    margin: .25rem 0 !important;
    background: var(--navy-mid) !important;
    color: var(--text) !important;
    line-height: 1.8 !important;
}

select option:hover {
    background: linear-gradient(rgba(21, 101, 192, 0.4), rgba(21, 101, 192, 0.4)) !important;
    color: #90CAF9 !important;
}

select option:checked {
    background: linear-gradient(rgba(21, 101, 192, 0.6), rgba(21, 101, 192, 0.6)) !important;
    color: #90CAF9 !important;
    font-weight: 600 !important;
    box-shadow: inset 0 0 0 2px #2196F3 !important;
}

select option:checked:focus {
    background: linear-gradient(rgba(21, 101, 192, 0.8), rgba(21, 101, 192, 0.8)) !important;
    box-shadow: inset 0 0 0 3px #1976D2 !important;
}
    padding: 0;
}

.tt-eye-btn:hover { color: var(--text); }

.tt-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(21,101,192,.35);
    transition: all .2s;
    text-decoration: none;
    margin-top: .5rem;
}

.tt-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(21,101,192,.5); color: #fff; }

.tt-btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s;
    box-shadow: 0 4px 12px rgba(21,101,192,0.25);
}

.tt-btn-primary-sm:hover { 
    opacity: .95; 
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(21,101,192,0.35);
}

.tt-btn-primary-sm:active {
    transform: translateY(0);
}

.tt-btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.4rem;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all .3s;
}

.tt-btn-outline-sm:hover { 
    border-color: var(--blue); 
    color: var(--blue-glow);
    background: rgba(21,101,192,0.08);
    transform: translateY(-2px);
}

/* Modal Styling */
.modal-content.tt-modal {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.tt-modal .modal-header {
    background: linear-gradient(135deg, rgba(21,101,192,0.1), rgba(232,168,56,0.05));
    border-bottom: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
    padding: 1.2rem 1.5rem;
}

.tt-modal .modal-header .modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.tt-modal .modal-header .modal-title i {
    font-size: 1.4rem;
    color: var(--gold);
}

.tt-modal .modal-body {
    padding: 1.5rem;
    color: var(--text);
}

.tt-modal .modal-footer {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border);
    padding: 1.2rem 1.5rem;
    display: flex;
    gap: 0.8rem;
    justify-content: flex-end;
}

.tt-modal .btn-close {
    filter: brightness(0.7);
    opacity: 0.6;
}

.tt-modal .btn-close:hover {
    opacity: 1;
    filter: brightness(1);
}

.tt-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* DASHBOARD */
.tt-wrap { display: flex; min-height: 100vh; }

.tt-sidebar {
    width: var(--sidebar-w);
    background: var(--navy-mid);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: var(--footer-h);
    height: auto;
    max-height: calc(100vh - var(--header-h) - var(--footer-h));
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tt-brand {
    padding: 1.4rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.tt-brand-main {
    font-family: 'Sora', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.tt-brand-main span { color: var(--gold); }

.tt-brand-sub {
    display: block;
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: .1rem;
}

.tt-user-block {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: .75rem;
}

.tt-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    flex-shrink: 0;
    overflow: hidden;
}

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

.tt-user-name { font-size: 1.1rem; font-weight: 500; }
.tt-user-role { font-size: .92rem; color: var(--text-muted); text-transform: capitalize; }

.tt-nav { padding: .75rem 0; flex: 1; }

.tt-nav-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: .5rem 1.5rem .2rem;
    margin-top: .4rem;
}

.tt-nav-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    border-left: 3px solid transparent;
    transition: all .2s;
    text-decoration: none;
}

.tt-nav-item i { width: 18px; text-align: center; }

.tt-nav-item:hover { background: rgba(255,255,255,.04); color: var(--text); border-left-color: var(--blue); }
.tt-nav-item.active { background: rgba(21,101,192,.12); color: var(--blue-glow); border-left-color: var(--blue); }

.tt-sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

.tt-logout-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    padding: .5rem .75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all .2s;
    width: 100%;
}

.tt-logout-btn:hover { border-color: var(--red); color: #EF9A9A; }

.tt-main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .25s ease;
}

.tt-topbar {
    background: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    padding: .9rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tt-topbar-title { flex: 1; min-width: 0; }

.tt-role-badge {
    background: rgba(21,101,192,.2);
    color: #90CAF9;
    font-size: .92rem;
    padding: .25rem .65rem;
    border-radius: 99px;
    text-transform: capitalize;
}

.tt-content { padding: 2rem 2.5rem; flex: 1; }

.tt-toggle-btn {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--text);
    border-radius: 8px;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.tt-toggle-btn:hover {
    background: rgba(21,101,192,.16);
    border-color: rgba(232,168,56,.35);
    color: #fff;
}

.tt-theme-toggle {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    color: var(--text);
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.tt-theme-toggle:hover {
    background: rgba(232,168,56,.14);
    border-color: rgba(232,168,56,.4);
    color: #FFE082;
    transform: translateY(-1px);
}

.tt-sidebar-collapsed .tt-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-w)));
    box-shadow: none;
}

.tt-sidebar-collapsed .tt-main {
    margin-left: 0;
}

.tt-page-header {
    margin-bottom: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.tt-page-header > div:first-child {
    flex: 1;
    min-width: 0;
}

.tt-page-header > div:last-child {
    flex-shrink: 0;
    display: flex;
    gap: 0.75rem;
}

.tt-page-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.tt-page-header p { color: var(--text-muted); font-size: 1.1rem; }

@media (max-width: 768px) {
    .tt-page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tt-page-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }
    
    .tt-page-header .d-flex {
        width: 100%;
        flex-direction: column;
    }
}

.tt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1.1rem;
}

.tt-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .2s, transform .2s;
}

.tt-stat-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.tt-stat-icon {
    width: 50px; height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tt-stat-icon.blue   { background: rgba(21,101,192,.18);  color: #90CAF9; }
.tt-stat-icon.gold   { background: rgba(232,168,56,.18);  color: #FFE082; }
.tt-stat-icon.green  { background: rgba(46,125,50,.18);   color: #A5D6A7; }
.tt-stat-icon.red    { background: rgba(198,40,40,.18);   color: #EF9A9A; }
.tt-stat-icon.purple { background: rgba(106,27,154,.18);  color: #CE93D8; }

.tt-stat-value { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: .15rem; }
.tt-stat-label { font-size: 1rem; color: var(--text-muted); }

.tt-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.tt-card-header {
    padding: .9rem 1.4rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tt-card-header h5 {
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.tt-card-body { padding: 1rem 1.1rem; }

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

.tt-table thead th {
    background: rgba(255,255,255,.03);
    border-color: var(--border);
    color: var(--text-muted);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    padding: .7rem 1rem;
}

.tt-table tbody tr {
    background: var(--card-bg) !important;
    border-bottom: 1px solid var(--border) !important;
}

.tt-table tbody tr:hover {
    background: var(--navy-mid) !important;
}

.tt-table tbody td {
    border-color: var(--border) !important;
    padding: 1rem 1rem !important;
    font-size: 1.1rem !important;
    vertical-align: middle !important;
    color: var(--text) !important;
    font-weight: 500 !important;
    background: var(--card-bg) !important;
}

@media (max-width: 900px) {
    .tt-auth-wrap { grid-template-columns: 1fr; }
    .tt-auth-brand { display: none; }
    .tt-form-row { grid-template-columns: 1fr; }
    .tt-sidebar {
        transform: translateX(-100%);
        box-shadow: 18px 0 45px rgba(0,0,0,.35);
    }
    .tt-sidebar.open { transform: translateX(0); }
    .tt-main,
    .tt-sidebar-collapsed .tt-main { margin-left: 0; }
    .tt-content { padding: 1.25rem; }
}

/* ── Notification Bell ───────────────────────────────────────── */
.tt-notif-bell {
    position: relative;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: color .2s;
}
.tt-notif-bell:hover { color: var(--text); }

.tt-notif-badge {
    position: absolute;
    top: -6px; right: -8px;
    background: var(--red);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.tt-nav-item { position: relative; }
.tt-nav-item .tt-notif-badge {
    position: static;
    margin-left: auto;
    font-size: .82rem;
}

/* ── Status Badges ───────────────────────────────────────────── */
.tt-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.tt-badge i { font-size: 1rem; }

.tt-badge-gold {
    background: rgba(232, 168, 56, 0.25);
    color: #FFE082;
    border: 1px solid rgba(232, 168, 56, 0.5);
}

.tt-badge-blue {
    background: rgba(21, 101, 192, 0.25);
    color: #90CAF9;
    border: 1px solid rgba(21, 101, 192, 0.5);
}

.tt-badge-purple {
    background: rgba(106, 27, 154, 0.25);
    color: #CE93D8;
    border: 1px solid rgba(106, 27, 154, 0.5);
}

.tt-badge-green {
    background: rgba(46, 125, 50, 0.25);
    color: #A5D6A7;
    border: 1px solid rgba(46, 125, 50, 0.5);
}

.tt-badge-red {
    background: rgba(198, 40, 40, 0.25);
    color: #EF9A9A;
    border: 1px solid rgba(198, 40, 40, 0.5);
}

.tt-badge-muted {
    background: rgba(139, 160, 180, 0.15);
    color: #8BA0B4;
    border: 1px solid rgba(139, 160, 180, 0.3);
}

.tt-badge-count {
    display: inline-block;
    padding: .25rem .65rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tt-item-name {
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: .2rem;
}

/* ── Welcome Page ────────────────────────────────────────────── */
.tt-welcome-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    padding: 2rem;
}

.tt-welcome-content {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.tt-welcome-header {
    margin-bottom: 3rem;
}

.tt-welcome-logo {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.tt-welcome-title {
    font-family: 'Sora', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.5rem 0;
    letter-spacing: -1px;
}

.tt-welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.tt-welcome-body {
    background: rgba(21, 101, 192, 0.08);
    border: 1px solid rgba(21, 101, 192, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.tt-welcome-body h2 {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.tt-welcome-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tt-welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.tt-feature {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tt-feature:hover {
    border-color: var(--gold);
    background: rgba(232, 168, 56, 0.1);
    transform: translateY(-5px);
}

.tt-feature-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 0.8rem;
}

.tt-feature h5 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.tt-feature p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.tt-welcome-footer {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Sora', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    transition: all 0.3s ease;
    width: 100%;
}

.tt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(21, 101, 192, 0.6);
    color: #fff;
}

.tt-btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
}

.tt-welcome-signup {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0;
}

.tt-btn-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.tt-btn-link:hover {
    color: #FFE082;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .tt-welcome-title { font-size: 2.2rem; }
    .tt-welcome-body { padding: 1.8rem; }
    .tt-welcome-features { grid-template-columns: 1fr; }
    .tt-btn { padding: 0.95rem 1.5rem; font-size: 1.1rem; }
}

.tt-topbar-profile-img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(255,255,255,.25);
}

/* Modern interface refinement
   Keeps the existing navy, blue, and gold theme while improving density. */
body {
    background:
        radial-gradient(circle at top left, rgba(21,101,192,.12), transparent 30rem),
        linear-gradient(180deg, #0B1828 0%, var(--navy) 46%, #091421 100%);
}

body {
    padding-bottom: var(--footer-h) !important;
}

.tt-footer-sticky {
    min-height: var(--footer-h);
    padding: .55rem 0 !important;
}

.tt-role-admin {
    --card-bg: #14243A;
    --input-bg: #0D1A2A;
    --border: rgba(142, 185, 222, 0.14);
}

.tt-role-admin .tt-header-top,
.tt-role-admin .tt-footer-sticky {
    background: #102A43 !important;
    border-color: rgba(232,168,56,.45) !important;
}

.tt-role-admin .tt-sidebar,
.tt-role-admin .tt-topbar {
    background: linear-gradient(180deg, #132B44 0%, #102237 100%) !important;
    border-color: rgba(232,168,56,.18) !important;
}

.tt-role-admin .tt-brand-main span,
.tt-role-admin .tt-modal .modal-header .modal-title i {
    color: #FFD166 !important;
}

.tt-role-admin .tt-nav-item.active {
    background: rgba(232,168,56,.13) !important;
    color: #FFE082 !important;
    border-left-color: var(--gold) !important;
}

.tt-role-admin .tt-role-badge {
    background: rgba(232,168,56,.16) !important;
    border: 1px solid rgba(232,168,56,.35);
    color: #FFE082 !important;
}

.tt-content {
    width: 100%;
    max-width: 1680px;
}

.tt-page-header {
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.tt-page-header h1 {
    font-size: clamp(1.45rem, 2vw, 1.9rem) !important;
    letter-spacing: 0;
}

.tt-page-header p {
    margin: .25rem 0 0;
    max-width: 68ch;
}

.tt-card,
.card {
    border-radius: 10px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.tt-card-header,
.card-header {
    min-height: 56px;
}

.tt-card-header h5,
.card-header h5 {
    font-size: 1rem !important;
}

.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(139,160,180,.28) transparent;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    container-type: inline-size;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(139,160,180,.28);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.tt-table {
    width: 100% !important;
    min-width: 980px;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.tt-table thead th,
.tt-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #101F32 !important;
    color: #B7C5D5 !important;
    border-bottom: 1px solid rgba(232,168,56,.16) !important;
    padding: .78rem .85rem !important;
    font-size: .72rem !important;
    line-height: 1.2;
    letter-spacing: .04em !important;
    white-space: nowrap;
}

.tt-table tbody td,
.tt-table td {
    padding: .78rem .85rem !important;
    font-size: .9rem !important;
    line-height: 1.35 !important;
    font-weight: 400 !important;
    vertical-align: middle !important;
    border-color: rgba(255,255,255,.07) !important;
}

.tt-table tbody tr,
.tt-table tbody td {
    background: var(--card-bg) !important;
}

.tt-table tbody tr:hover td,
.tt-table tbody tr:hover {
    background: rgba(21,101,192,.11) !important;
}

.tt-table td.text-nowrap,
.tt-table .text-nowrap {
    white-space: normal !important;
    min-width: 150px;
}

.tt-table td:last-child,
.tt-table th:last-child {
    min-width: 9.5rem;
}

.tt-table td:last-child.text-nowrap {
    white-space: normal !important;
}

.tt-truncate {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.tt-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    min-height: 1.75rem;
    padding: .36rem .64rem !important;
    border-radius: 999px !important;
    font-size: .76rem !important;
    font-weight: 650 !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.tt-btn-primary-sm,
.tt-btn-outline-sm {
    min-height: 2.1rem;
    padding: .48rem .72rem !important;
    border-radius: 7px !important;
    font-size: .84rem !important;
    line-height: 1.15;
    white-space: nowrap;
    box-shadow: none !important;
}

.tt-table .tt-btn-primary-sm,
.tt-table .tt-btn-outline-sm {
    margin: .12rem !important;
    max-width: 100%;
}

.tt-admin-reports-table {
    min-width: 1080px;
}

@container (max-width: 920px) {
    .tt-responsive-table {
        min-width: 0 !important;
        width: 100% !important;
        display: block;
    }

    .tt-responsive-table thead {
        display: none;
    }

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

    .tt-responsive-table tbody {
        display: grid;
        gap: .75rem;
        padding: .75rem;
    }

    .tt-responsive-table tbody tr {
        border: 1px solid var(--border) !important;
        border-radius: 8px;
        overflow: hidden;
        background: rgba(255, 255, 255, .025) !important;
    }

    .tt-responsive-table tbody td {
        display: grid;
        grid-template-columns: minmax(7.5rem, 34%) minmax(0, 1fr);
        align-items: center;
        gap: .75rem;
        min-width: 0 !important;
        padding: .68rem .8rem !important;
        border-bottom: 1px solid rgba(255,255,255,.06) !important;
        text-align: left !important;
        white-space: normal !important;
    }

    .tt-responsive-table tbody td:last-child {
        border-bottom: 0 !important;
    }

    .tt-responsive-table tbody td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .tt-responsive-table tbody td[colspan] {
        display: block;
        text-align: center !important;
    }

    .tt-responsive-table tbody td[colspan]::before {
        display: none;
    }

    .tt-responsive-table .tt-truncate {
        max-width: 100%;
        white-space: normal;
    }

    .tt-responsive-table .tt-btn-primary-sm,
    .tt-responsive-table .tt-btn-outline-sm {
        width: auto;
        margin: .15rem .2rem .15rem 0 !important;
        white-space: normal;
    }
}

.tt-btn-primary-sm:hover,
.tt-btn-outline-sm:hover {
    transform: translateY(-1px) !important;
}

.modal-dialog {
    width: min(94vw, 640px);
    max-width: 640px;
    margin: 1.75rem auto !important;
}

.modal-dialog.modal-lg {
    width: min(94vw, 860px);
    max-width: 860px;
}

.modal-dialog.modal-xl {
    width: min(96vw, 1040px);
    max-width: 1040px;
}

.modal-content,
.modal-content.tt-modal {
    overflow: hidden;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #18283D 0%, var(--card-bg) 100%) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
}

.tt-modal .modal-header,
.modal-header {
    padding: .95rem 1.15rem !important;
    align-items: center;
}

.tt-modal .modal-header .modal-title,
.modal-header .modal-title {
    font-size: 1.05rem !important;
    line-height: 1.25;
}

.tt-modal .modal-body,
.modal-body {
    padding: 1.1rem 1.15rem !important;
    max-height: min(68vh, 680px);
    overflow-y: auto;
}

.tt-modal .modal-footer,
.modal-footer {
    padding: .9rem 1.15rem !important;
    gap: .5rem;
    background: rgba(255,255,255,.025);
}

.swal2-popup {
    border-radius: 10px !important;
    background: var(--card-bg) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255,255,255,.1);
}

html[data-theme="light"] .swal2-popup {
    background: #FFFFFF !important;
    border-color: rgba(13, 43, 74, .12) !important;
    box-shadow: 0 24px 70px rgba(13, 43, 74, .16) !important;
}

html[data-theme="light"] .swal2-html-container,
html[data-theme="light"] .swal2-title {
    color: var(--text) !important;
}

.tt-profile-modal-body {
    text-align: left;
    max-height: min(68vh, 620px);
    overflow-y: auto;
    padding: .1rem .45rem .25rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(139,160,180,.18) transparent;
}

.tt-profile-modal-body::-webkit-scrollbar {
    width: 8px;
}

.tt-profile-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.tt-profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(139,160,180,.18);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.tt-profile-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(139,160,180,.32);
    background-clip: padding-box;
}

.tt-profile-photo-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1.55rem;
}

.tt-profile-photo-picker {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
    background: linear-gradient(135deg, var(--blue), var(--gold));
    border: 3px solid rgba(255,255,255,.16);
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(0,0,0,.22);
}

.tt-profile-photo-picker img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tt-profile-photo-edit {
    position: absolute;
    right: 3px;
    bottom: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    border: 2px solid var(--card-bg);
    color: #fff;
    font-size: 1rem;
}

.tt-profile-photo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid rgba(232,168,56,.35);
    border-radius: 8px;
    background: rgba(21,101,192,.12);
    color: var(--text);
    padding: .55rem .85rem;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}

.tt-profile-photo-btn:hover {
    background: rgba(21,101,192,.2);
    color: #fff;
}

.swal2-popup .swal2-title {
    font-family: 'Sora', sans-serif !important;
    font-size: 1.65rem !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
}

.tt-profile-section {
    margin-bottom: 1.6rem;
}

.tt-profile-section-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .85rem;
    color: var(--text);
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.tt-profile-section-title i {
    color: var(--blue-glow);
}

.tt-profile-panel {
    display: grid;
    gap: .9rem;
    padding: .1rem 0;
    background: transparent;
    border: 0;
}

.tt-profile-field {
    display: grid;
    gap: .38rem;
}

.tt-profile-field label {
    margin: 0;
    color: var(--blue-glow);
    font-family: 'Sora', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.tt-profile-modal-input {
    width: 100%;
    min-height: 44px;
    padding: .72rem .85rem;
    background: rgba(7, 16, 42, .45);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.tt-profile-modal-input:focus {
    border-color: rgba(109, 160, 255, .65);
    background: rgba(7, 16, 42, .62);
    box-shadow: 0 0 0 3px rgba(109, 160, 255, .14);
}

.tt-profile-password-wrap {
    position: relative;
}

.tt-profile-password-wrap .tt-profile-modal-input {
    padding-right: 2.8rem;
}

.tt-profile-eye-inline {
    position: absolute;
    right: .75rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.tt-profile-eye-inline:hover {
    color: var(--blue-glow);
}

.tt-profile-hint {
    display: block;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 500;
}

.tt-profile-action-btn {
    width: 100%;
    min-height: 46px;
    margin-top: .95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    cursor: pointer;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 800;
    transition: transform .2s, box-shadow .2s;
}

.tt-profile-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(21, 101, 192, .28);
}

html[data-theme="light"] .tt-profile-modal-body {
    scrollbar-color: rgba(48,73,102,.16) transparent;
}

html[data-theme="light"] .tt-profile-modal-body::-webkit-scrollbar-thumb {
    background: rgba(48,73,102,.16);
    border: 3px solid transparent;
    background-clip: padding-box;
}

html[data-theme="light"] .tt-profile-photo-picker {
    border-color: #FFFFFF;
    box-shadow: 0 18px 38px rgba(13,43,74,.18), 0 0 0 10px rgba(21,101,192,.06);
}

html[data-theme="light"] .tt-profile-photo-edit {
    border-color: #F8FBFF;
    box-shadow: 0 6px 16px rgba(21, 101, 192, .22);
}

html[data-theme="light"] .tt-profile-photo-btn {
    background: #F0F6FF;
    color: #071A2F;
}

html[data-theme="light"] .tt-profile-photo-btn:hover {
    background: #E1EEFF;
    color: #004A99;
}

html[data-theme="light"] .tt-profile-photo-panel {
    padding: 1.55rem 1rem 1.2rem;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #F8FBFF 0%, #F4F8FD 100%);
}

html[data-theme="light"] .tt-input-wrap .tt-input {
    background: #F7FAFE !important;
}

html[data-theme="light"] .tt-eye-btn {
    color: #526980;
}

html[data-theme="light"] .tt-eye-btn:hover {
    color: #0D47A1;
}

html[data-theme="light"] .tt-profile-modal-body div[style*="rgba(33,150,243,.05)"] {
    background: #F7FAFE !important;
    border-color: rgba(13, 43, 74, .12) !important;
}

html[data-theme="light"] .tt-profile-section-title {
    color: #06172B;
    font-size: 1.03rem;
}

html[data-theme="light"] .tt-profile-section-title i {
    color: #0D47A1;
}

html[data-theme="light"] .tt-profile-panel {
    padding: .25rem 0;
    background: transparent;
    border: 0;
}

html[data-theme="light"] .tt-profile-field label {
    color: #315CF5;
    font-weight: 800;
}

html[data-theme="light"] .tt-profile-modal-input {
    background: #FAFCFF;
    border-color: rgba(13, 43, 74, .14);
    color: #071A2F;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

html[data-theme="light"] .tt-profile-modal-input:focus {
    background: #FFFFFF;
    border-color: rgba(21, 101, 192, .45);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, .10);
}

html[data-theme="light"] .tt-profile-eye-inline {
    color: #526980;
}

html[data-theme="light"] .tt-profile-eye-inline:hover {
    color: #0D47A1;
}

html[data-theme="light"] .tt-profile-action-btn {
    box-shadow: 0 10px 24px rgba(21, 101, 192, .18);
}

html[data-theme="light"] .tt-profile-hint {
    color: #5F7187;
}

.form-control,
.form-select,
.tt-input {
    border-radius: 8px !important;
}

@media (max-width: 1100px) {
    .tt-content {
        padding: 1.4rem !important;
    }

    .tt-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 48px !important;
        padding-bottom: 56px !important;
    }

    .tt-header-top-content {
        padding: 0 .75rem;
        font-size: .8rem !important;
    }

    .tt-content {
        padding: 1rem !important;
    }

    .tt-page-header {
        gap: .8rem !important;
        margin-bottom: 1rem !important;
    }

    .tt-page-header > div:last-child,
    .tt-page-header .d-flex {
        gap: .5rem;
    }

    .tt-btn-primary-sm,
    .tt-btn-outline-sm {
        font-size: .8rem !important;
    }

    .modal-dialog,
    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        width: calc(100vw - 1.25rem);
        margin: .625rem auto !important;
    }

    .tt-modal .modal-body,
    .modal-body {
        max-height: 72vh;
    }
}

html[data-theme="light"] body.tt-role-admin {
    --card-bg: #FFFFFF;
    --input-bg: #F6F9FD;
    --border: rgba(13, 43, 74, 0.12);
}

html[data-theme="light"] body.tt-role-admin .tt-header-top,
html[data-theme="light"] body.tt-role-admin .tt-footer-sticky,
html[data-theme="light"] body.tt-role-admin .tt-sidebar,
html[data-theme="light"] body.tt-role-admin .tt-topbar {
    background: #F8FBFF !important;
    color: var(--text) !important;
    border-color: rgba(21,101,192,.18) !important;
}

html[data-theme="light"] body.tt-role-admin .tt-nav-item.active {
    background: rgba(232,168,56,.18) !important;
    color: #8A5A00 !important;
    border-left-color: var(--gold) !important;
}

html[data-theme="light"] body.tt-role-admin .tt-role-badge {
    background: rgba(232,168,56,.18) !important;
    color: #8A5A00 !important;
    border-color: rgba(232,168,56,.35);
}

/* TraceTrack 2026 interface refresh */
:root {
    --navy: #050b1d;
    --navy-mid: #07122b;
    --navy-light: #10265d;
    --blue: #315cf5;
    --blue-glow: #6da0ff;
    --gold: #8db3ff;
    --green: #43c58a;
    --red: #ff6b7a;
    --purple: #8377ff;
    --text: #f7f9ff;
    --text-muted: #94a6d4;
    --card-bg: rgba(12, 25, 63, .78);
    --input-bg: rgba(7, 16, 42, .72);
    --border: rgba(139, 166, 255, .16);
    --sidebar-w: 292px;
    --footer-h: 0px;
    --header-h: 0px;
}

html[data-theme="light"] {
    --navy: #f7f9ff;
    --navy-mid: #ffffff;
    --navy-light: #e9efff;
    --blue: #2455ef;
    --blue-glow: #5d85ff;
    --gold: #4f7cff;
    --green: #16885e;
    --red: #dc4354;
    --purple: #6657e8;
    --text: #081946;
    --text-muted: #526388;
    --card-bg: rgba(255, 255, 255, .88);
    --input-bg: rgba(247, 250, 255, .9);
    --border: rgba(27, 56, 120, .12);
}

body,
body.tt-auth-body {
    padding: 0 !important;
    background:
        radial-gradient(circle at 18% 10%, rgba(49, 92, 245, .22), transparent 28rem),
        radial-gradient(circle at 88% 22%, rgba(101, 134, 255, .13), transparent 24rem),
        linear-gradient(145deg, #030815 0%, #07152f 48%, #020817 100%) !important;
    color: var(--text);
}

html[data-theme="light"] body,
html[data-theme="light"] body.tt-auth-body {
    background:
        radial-gradient(circle at 16% 10%, rgba(49, 92, 245, .12), transparent 28rem),
        radial-gradient(circle at 88% 20%, rgba(93, 133, 255, .16), transparent 24rem),
        linear-gradient(145deg, #ffffff 0%, #f5f7fc 54%, #eef3ff 100%) !important;
}

.tt-header-top,
body.tt-auth-body .tt-footer-sticky {
    display: none !important;
}

.tt-wrap {
    min-height: 100vh;
    background: transparent;
}

.tt-sidebar {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: none !important;
    padding: 1.45rem 1.1rem;
    background: rgba(5, 14, 39, .72) !important;
    border-right: 1px solid rgba(139, 166, 255, .12) !important;
    box-shadow: 22px 0 58px rgba(0, 0, 0, .22);
    backdrop-filter: blur(22px);
}

html[data-theme="light"] .tt-sidebar {
    background: rgba(255, 255, 255, .72) !important;
    box-shadow: 22px 0 48px rgba(42, 66, 118, .08);
}

.tt-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .25rem .25rem 1.35rem;
    border-bottom: 0;
}

.tt-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #2342cb, #7ca7ff);
    box-shadow: 0 18px 34px rgba(49, 92, 245, .28), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.tt-brand-main {
    font-size: 1.42rem;
    line-height: 1;
    letter-spacing: 0;
}

.tt-brand-main span {
    color: var(--blue-glow);
}

.tt-brand-sub {
    margin-top: .25rem;
    font-size: .78rem;
}

.tt-user-block {
    margin: .5rem 0 1.1rem;
    padding: .75rem .35rem;
    border-bottom: 1px solid rgba(139, 166, 255, .1);
}

.tt-user-chevron {
    margin-left: auto;
    color: var(--text-muted);
    font-size: .8rem;
}

.tt-avatar {
    width: 45px;
    height: 45px;
    box-shadow: 0 12px 30px rgba(49, 92, 245, .24);
}

.tt-user-name {
    font-size: .92rem;
    font-weight: 700;
}

.tt-user-role {
    font-size: .76rem;
}

.tt-nav {
    padding: 0;
}

.tt-nav-label {
    padding: 1rem .55rem .45rem;
    font-size: .72rem;
    letter-spacing: .04em;
}

.tt-nav-item {
    margin: .16rem 0;
    padding: .78rem .75rem;
    border-left: 0;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 650;
}

.tt-nav-item i {
    width: 1.2rem;
    font-size: 1.05rem;
}

.tt-nav-item:hover,
.tt-nav-item.active,
.tt-role-admin .tt-nav-item.active {
    background: linear-gradient(135deg, rgba(49, 92, 245, .78), rgba(78, 121, 255, .48)) !important;
    color: #fff !important;
    border-left-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 28px rgba(49, 92, 245, .22);
}

.tt-sidebar-footer {
    padding: 1rem .35rem 0;
    border-top: 1px solid rgba(139, 166, 255, .1);
}

.tt-logout-btn {
    border-radius: 7px !important;
    color: var(--text) !important;
    font-size: .9rem !important;
}

.tt-main {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    min-width: 0;
}

.tt-topbar {
    top: 0;
    padding: 1.05rem 2.15rem .4rem;
    background: transparent !important;
    border-bottom: 0;
    justify-content: flex-start;
}

.tt-toggle-btn {
    display: inline-flex;
    flex: 0 0 auto;
}

.tt-topbar-search {
    width: min(360px, 38vw);
    height: 42px;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: 0 .9rem;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(5, 14, 39, .48);
    color: var(--text-muted);
}

.tt-topbar-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: .82rem;
}

.tt-topbar-search input::placeholder {
    color: var(--text-muted);
}

html[data-theme="light"] .tt-topbar-search {
    background: rgba(255, 255, 255, .82);
}

.tt-theme-toggle,
.tt-notif-bell,
.tt-topbar-cube,
.tt-profile-btn {
    width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    background: rgba(12, 25, 63, .62) !important;
    color: var(--text) !important;
}

.tt-theme-toggle {
    border-radius: 999px !important;
}

html[data-theme="light"] .tt-theme-toggle,
html[data-theme="light"] .tt-notif-bell,
html[data-theme="light"] .tt-topbar-cube,
html[data-theme="light"] .tt-profile-btn {
    background: rgba(255, 255, 255, .84) !important;
}

.tt-topbar-profile-img {
    width: 28px;
    height: 28px;
}

.tt-content {
    max-width: none;
    padding: 1.1rem 2.15rem 2.2rem !important;
    min-width: 0;
    overflow-x: clip;
}

.tt-page-header {
    margin-bottom: 1.05rem;
    padding-bottom: 0;
    border-bottom: 0;
}

.tt-page-header h1 {
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
}

.tt-dashboard-header h1 span {
    color: var(--blue-glow);
}

.tt-dashboard-header p:not(.tt-dashboard-sub) {
    display: none;
}

.tt-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.1rem;
    align-items: start;
    min-width: 0;
}

.tt-dashboard-main,
.tt-dashboard-side,
.tt-card,
.card {
    min-width: 0;
}

.tt-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tt-role-admin .tt-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-stat-card,
.tt-card,
.card {
    background: linear-gradient(145deg, rgba(16, 35, 87, .82), rgba(8, 18, 48, .78)) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .tt-stat-card,
html[data-theme="light"] .tt-card,
html[data-theme="light"] .card {
    background: #FFFFFF !important;
    border-color: rgba(13, 43, 74, .14) !important;
    box-shadow: 0 16px 34px rgba(45, 71, 128, .09);
}

html[data-theme="light"] .tt-stat-card:hover {
    border-color: rgba(21, 101, 192, .35) !important;
    box-shadow: 0 18px 38px rgba(45, 71, 128, .13);
}

.tt-stat-card {
    min-height: 116px;
    align-items: flex-start;
    padding: 1.05rem;
    color: var(--text);
    text-decoration: none;
}

.tt-stat-card:hover {
    transform: translateY(-2px);
    color: var(--text);
}

.tt-stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 9px;
}

.tt-stat-value {
    font-size: 1.55rem;
}

.tt-stat-label {
    font-size: .82rem;
}

.tt-stat-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .9rem;
    color: var(--blue-glow);
    font-size: .78rem;
    font-weight: 700;
}

html[data-theme="light"] .tt-stat-value {
    color: #06172B !important;
    font-weight: 800;
}

html[data-theme="light"] .tt-stat-label {
    color: #31527A !important;
    font-weight: 600;
}

html[data-theme="light"] .tt-stat-link {
    color: #315CF5;
    font-weight: 800;
}

html[data-theme="light"] .tt-stat-icon.blue {
    background: #D9ECFF;
    color: #0D47A1;
}

html[data-theme="light"] .tt-stat-icon.gold {
    background: #FFF0C7;
    color: #8A5A00;
}

html[data-theme="light"] .tt-stat-icon.green {
    background: #DDF4E7;
    color: #1B6B3A;
}

html[data-theme="light"] .tt-stat-icon.red {
    background: #FFE1E4;
    color: #9F1D2B;
}

html[data-theme="light"] .tt-stat-icon.purple {
    background: #EBDDFF;
    color: #5B1A87;
}

.tt-card-header {
    min-height: 48px;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.tt-card-body {
    padding: 1rem;
}

.tt-action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.tt-action-card {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem .9rem;
    border-radius: 7px;
    border: 1px solid rgba(139, 166, 255, .1);
    background: rgba(255, 255, 255, .035);
    color: var(--text);
    text-decoration: none;
}

.tt-action-card.is-primary {
    background: linear-gradient(135deg, rgba(49, 92, 245, .85), rgba(49, 92, 245, .32));
}

.tt-action-card:hover {
    color: var(--text);
    border-color: rgba(109, 160, 255, .42);
}

.tt-action-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(109, 160, 255, .16);
    color: var(--blue-glow);
    flex: 0 0 auto;
}

.tt-action-card strong,
.tt-action-card small {
    display: block;
}

.tt-action-card strong {
    font-size: .86rem;
}

.tt-action-card small {
    color: var(--text-muted);
    font-size: .76rem;
}

.tt-action-arrow {
    margin-left: auto;
    color: var(--blue-glow);
}

.tt-side-hero {
    min-height: 142px;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        radial-gradient(circle at 85% 25%, rgba(109, 160, 255, .42), transparent 8rem),
        linear-gradient(135deg, rgba(31, 60, 146, .82), rgba(8, 18, 48, .78));
}

html[data-theme="light"] .tt-side-hero {
    background:
        radial-gradient(circle at 85% 25%, rgba(109, 160, 255, .24), transparent 8rem),
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(238, 244, 255, .9));
}

.tt-side-hero h3 {
    margin: 0 0 .35rem;
    font-size: 1rem;
}

.tt-side-hero p {
    max-width: 12rem;
    margin: 0;
    color: var(--text-muted);
    font-size: .82rem;
}

.tt-hero-visual {
    position: relative;
    align-self: center;
    width: 105px;
    height: 105px;
    flex: 0 0 auto;
}

.tt-hero-visual span {
    position: absolute;
    left: 18px;
    bottom: 6px;
    width: 76px;
    height: 52px;
    border-radius: 10px 10px 14px 14px;
    background: linear-gradient(135deg, #315cf5, #6da0ff);
    transform: skewY(10deg) rotate(-8deg);
    box-shadow: 0 22px 36px rgba(49, 92, 245, .34);
}

.tt-hero-visual i {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 30px;
    color: #7da7ff;
    font-size: 4.6rem;
    filter: drop-shadow(0 12px 16px rgba(49, 92, 245, .35));
}

.tt-dashboard-side {
    display: grid;
    gap: 1rem;
}

.tt-category-overview {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.tt-donut {
    width: 106px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(#315cf5 0 34%, #6da0ff 34% 58%, #8fb7ff 58% 77%, rgba(139, 166, 255, .22) 77% 100%);
    position: relative;
}

.tt-donut::after {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    background: var(--navy-mid);
}

html[data-theme="light"] .tt-donut::after {
    background: #fff;
}

.tt-category-list {
    display: grid;
    gap: .55rem;
    font-size: .8rem;
}

.tt-category-list div {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: .45rem;
    align-items: center;
    color: var(--text-muted);
}

.tt-category-list div span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-glow);
}

.tt-category-list div:nth-child(2) span { background: #6f8cff; }
.tt-category-list div:nth-child(3) span { background: #91b8ff; }
.tt-category-list div:nth-child(4) span { background: #315cf5; }

.tt-category-list strong {
    color: var(--text);
}

.tt-pill {
    padding: .42rem .65rem;
    border-radius: 7px;
    background: rgba(109, 160, 255, .12);
    color: var(--text);
    font-size: .76rem;
}

.tt-activity-total strong,
.tt-activity-total span {
    display: block;
}

.tt-activity-total strong {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
}

.tt-activity-total span {
    color: var(--text-muted);
    font-size: .8rem;
}

.tt-mini-chart {
    height: 80px;
    display: flex;
    align-items: end;
    gap: .55rem;
    margin: .8rem 0 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid var(--border);
}

.tt-mini-chart span {
    flex: 1;
    min-width: 8px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, var(--blue-glow), rgba(49, 92, 245, .16));
}

.tt-activity-lines {
    display: grid;
    gap: .55rem;
}

.tt-activity-lines div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-muted);
    font-size: .8rem;
}

.tt-activity-lines strong {
    color: var(--text);
}

.tt-table thead th,
.tt-table th {
    background: rgba(109, 160, 255, .06) !important;
    border-bottom-color: var(--border) !important;
}

.tt-table tbody tr,
.tt-table tbody td,
.tt-table td {
    background: transparent !important;
}

.tt-mobile-nav {
    display: none;
}

.tt-auth-wrap {
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.tt-auth-brand,
.tt-auth-form-side {
    background: transparent;
}

.tt-auth-card {
    max-width: 470px;
    padding: 1.3rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.tt-auth-brand::before {
    display: none;
}

.tt-feature,
.tt-welcome-body {
    border-radius: 8px;
}

.tt-welcome-container {
    min-height: 100vh;
    padding: clamp(1.4rem, 4vw, 4rem);
    background: transparent;
}

.tt-welcome-content {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.tt-welcome-header,
.tt-welcome-body,
.tt-welcome-footer {
    grid-column: 1;
}

.tt-welcome-header {
    margin-bottom: 1.2rem;
}

.tt-welcome-logo {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2342cb, #7ca7ff);
    color: #fff;
    font-size: 2rem;
    animation: none;
}

.tt-welcome-body {
    padding: 0;
    margin-bottom: 1.6rem;
    border: 0;
    background: transparent;
    backdrop-filter: none;
}

.tt-welcome-body h2 {
    display: none;
}

.tt-welcome-description {
    font-size: 1rem;
}

.tt-welcome-features {
    grid-template-columns: 1fr;
    gap: .75rem;
}

.tt-welcome-features .tt-feature {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    background: var(--card-bg);
}

.tt-welcome-content::after {
    content: "";
    grid-column: 2;
    grid-row: 1 / span 3;
    min-height: 520px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        linear-gradient(rgba(109, 160, 255, .16), rgba(109, 160, 255, .16)) 34px 48px / 42% 16px no-repeat,
        linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) 34px 90px / 25% 86px no-repeat,
        linear-gradient(rgba(49, 92, 245, .48), rgba(49, 92, 245, .48)) 34px 205px / 88% 92px no-repeat,
        linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08)) 34px 330px / 88% 132px no-repeat,
        radial-gradient(circle at 72% 24%, rgba(109, 160, 255, .5), transparent 9rem),
        linear-gradient(145deg, rgba(15, 31, 77, .86), rgba(7, 16, 42, .82));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .24);
}

html[data-theme="light"] .tt-welcome-content::after {
    background:
        linear-gradient(rgba(36, 85, 239, .12), rgba(36, 85, 239, .12)) 34px 48px / 42% 16px no-repeat,
        linear-gradient(rgba(36, 85, 239, .08), rgba(36, 85, 239, .08)) 34px 90px / 25% 86px no-repeat,
        linear-gradient(rgba(36, 85, 239, .26), rgba(36, 85, 239, .26)) 34px 205px / 88% 92px no-repeat,
        linear-gradient(rgba(36, 85, 239, .08), rgba(36, 85, 239, .08)) 34px 330px / 88% 132px no-repeat,
        radial-gradient(circle at 72% 24%, rgba(109, 160, 255, .24), transparent 9rem),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 244, 255, .92));
}

@media (max-width: 1480px) {
    .tt-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tt-dashboard-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .tt-stats-grid,
    .tt-role-admin .tt-stats-grid,
    .tt-action-grid,
    .tt-dashboard-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-category-overview {
        grid-template-columns: 1fr;
    }
}

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

    .tt-sidebar.open {
        transform: translateX(0);
    }

    .tt-main,
    .tt-sidebar-collapsed .tt-main {
        margin-left: 0;
    }

    .tt-topbar {
        padding: .9rem 1rem .2rem;
    }

    .tt-toggle-btn {
        display: inline-flex;
    }

    .tt-topbar-search {
        width: min(100%, 520px);
        margin-left: 0;
    }

    .tt-content {
        padding: 1rem 1rem 5.8rem !important;
    }

    .tt-mobile-nav {
        position: fixed;
        left: 50%;
        bottom: 1rem;
        z-index: 1040;
        width: min(92vw, 380px);
        min-height: 62px;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        padding: .4rem;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(5, 14, 39, .86);
        box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
        backdrop-filter: blur(20px);
    }

    html[data-theme="light"] .tt-mobile-nav {
        background: rgba(255, 255, 255, .9);
    }

    .tt-mobile-nav a,
    .tt-mobile-nav button {
        border: 0;
        background: transparent;
        color: var(--text-muted);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        gap: .15rem;
        font-size: .66rem;
        text-decoration: none;
    }

    .tt-mobile-nav i {
        font-size: 1.05rem;
    }

    .tt-mobile-nav .active,
    .tt-mobile-nav a:hover,
    .tt-mobile-nav button:hover {
        color: var(--blue-glow);
    }

    .tt-mobile-nav-primary {
        width: 42px;
        height: 42px;
        justify-self: center;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--blue), var(--blue-glow)) !important;
        color: #fff !important;
        box-shadow: 0 12px 30px rgba(49, 92, 245, .38);
    }

    .tt-mobile-nav-primary span {
        display: none;
    }
}

@media (max-width: 768px) {
    .tt-topbar-right {
        gap: .45rem !important;
    }

    .tt-topbar-search {
        height: 38px;
        font-size: .78rem;
    }

    .tt-theme-toggle,
    .tt-notif-bell,
    .tt-topbar-cube,
    .tt-profile-btn {
        width: 34px;
        height: 34px;
    }

    .tt-stats-grid,
    .tt-role-admin .tt-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .65rem;
    }

    .tt-stat-card {
        min-height: 84px;
        padding: .75rem;
    }

    .tt-stat-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .tt-stat-value {
        font-size: 1.2rem;
    }

    .tt-stat-link {
        display: none;
    }

    .tt-action-grid,
    .tt-dashboard-side {
        grid-template-columns: 1fr;
    }

    .tt-side-hero {
        display: none;
    }

    .tt-auth-wrap,
    .tt-welcome-content {
        grid-template-columns: 1fr;
    }

    .tt-auth-brand {
        display: none;
    }

    .tt-welcome-content::after {
        display: none;
    }

    .tt-welcome-container {
        align-items: flex-start;
    }
}

/* Header, footer, and landing visual correction */
:root {
    --header-h: 52px;
    --footer-h: 42px;
}

body,
body.tt-auth-body {
    padding-top: var(--header-h) !important;
    padding-bottom: var(--footer-h) !important;
}

.tt-header-top,
.tt-footer-sticky {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: var(--header-h);
    background: rgba(5, 14, 39, .86) !important;
    border-color: rgba(139, 166, 255, .14) !important;
    color: var(--text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18) !important;
    backdrop-filter: blur(18px);
}

.tt-footer-sticky {
    min-height: var(--footer-h);
}

.tt-header-top-content,
.tt-footer-content {
    width: min(100% - 2rem, 1440px);
}

.tt-header-top-content {
    justify-content: flex-start;
    font-size: .86rem !important;
    letter-spacing: 0 !important;
}

.tt-header-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    font-size: 1rem !important;
}

.tt-footer-main {
    color: var(--text-muted) !important;
    font-size: .82rem;
}

html[data-theme="light"] .tt-header-top,
html[data-theme="light"] .tt-footer-sticky {
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 10px 30px rgba(42, 66, 118, .08) !important;
}

.tt-sidebar {
    top: var(--header-h) !important;
    bottom: var(--footer-h) !important;
    height: calc(100vh - var(--header-h) - var(--footer-h)) !important;
}

.tt-main {
    min-height: calc(100vh - var(--header-h) - var(--footer-h));
}

.tt-topbar {
    top: var(--header-h);
}

.tt-welcome-content::after {
    display: none !important;
}

.tt-welcome-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    min-height: 520px;
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background:
        radial-gradient(circle at 76% 18%, rgba(109, 160, 255, .34), transparent 9rem),
        linear-gradient(145deg, rgba(15, 31, 77, .88), rgba(7, 16, 42, .82));
    box-shadow: 0 34px 90px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
}

html[data-theme="light"] .tt-welcome-visual {
    background:
        radial-gradient(circle at 76% 18%, rgba(109, 160, 255, .24), transparent 9rem),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(239, 244, 255, .92));
    box-shadow: 0 34px 75px rgba(45, 71, 128, .12);
}

.tt-preview-top {
    display: flex;
    justify-content: flex-end;
    gap: .45rem;
}

.tt-preview-top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(141, 179, 255, .45);
}

.tt-preview-greeting {
    display: grid;
    gap: .1rem;
}

.tt-preview-greeting small {
    color: var(--text-muted);
    font-size: .78rem;
}

.tt-preview-greeting strong {
    color: var(--text);
    font-size: 1.25rem;
}

.tt-preview-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.tt-preview-stats div,
.tt-preview-actions span,
.tt-preview-card {
    border: 1px solid rgba(139, 166, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

html[data-theme="light"] .tt-preview-stats div,
html[data-theme="light"] .tt-preview-actions span,
html[data-theme="light"] .tt-preview-card {
    background: rgba(255, 255, 255, .72);
}

.tt-preview-stats div {
    min-height: 92px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: .25rem;
    padding: .85rem;
}

.tt-preview-stats i {
    color: var(--blue-glow);
    font-size: 1.15rem;
}

.tt-preview-stats strong {
    color: var(--text);
    font-size: 1.4rem;
    line-height: 1;
}

.tt-preview-stats span {
    color: var(--text-muted);
    font-size: .72rem;
}

.tt-preview-actions {
    display: grid;
    gap: .65rem;
}

.tt-preview-actions span {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 48px;
    padding: .75rem .9rem;
    color: var(--text);
    font-weight: 700;
    font-size: .82rem;
}

.tt-preview-actions span:first-child {
    background: linear-gradient(135deg, rgba(49, 92, 245, .82), rgba(49, 92, 245, .28));
}

.tt-preview-actions i {
    color: var(--blue-glow);
}

.tt-preview-card {
    min-height: 150px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    overflow: hidden;
}

.tt-preview-card strong,
.tt-preview-card span {
    display: block;
}

.tt-preview-card strong {
    color: var(--text);
}

.tt-preview-card span {
    color: var(--text-muted);
    font-size: .8rem;
}

.tt-preview-card i {
    color: var(--blue-glow);
    font-size: 5.5rem;
    filter: drop-shadow(0 16px 22px rgba(49, 92, 245, .34));
}

@media (max-width: 900px) {
    .tt-mobile-nav {
        bottom: calc(var(--footer-h) + .8rem);
    }
}

@media (max-width: 768px) {
    .tt-header-top-content,
    .tt-footer-content {
        width: min(100% - 1rem, 1440px);
    }

    .tt-header-top-content {
        justify-content: center;
        font-size: .76rem !important;
    }

    .tt-welcome-visual {
        display: none;
    }
}

/* Keep admin pages visually consistent with the user dashboard. */
body.tt-role-admin {
    --card-bg: rgba(12, 25, 63, .78);
    --input-bg: rgba(7, 16, 42, .72);
    --border: rgba(139, 166, 255, .16);
}

body.tt-role-admin .tt-header-top,
body.tt-role-admin .tt-footer-sticky {
    background: rgba(5, 14, 39, .86) !important;
    border-color: rgba(139, 166, 255, .14) !important;
    color: var(--text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18) !important;
}

body.tt-role-admin .tt-sidebar {
    background: rgba(5, 14, 39, .72) !important;
    border-right-color: rgba(139, 166, 255, .12) !important;
    box-shadow: 22px 0 58px rgba(0, 0, 0, .22) !important;
}

body.tt-role-admin .tt-topbar {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

body.tt-role-admin .tt-brand-main span,
body.tt-role-admin .tt-modal .modal-header .modal-title i {
    color: var(--blue-glow) !important;
}

body.tt-role-admin .tt-nav-item.active,
body.tt-role-admin .tt-nav-item:hover {
    background: linear-gradient(135deg, rgba(49, 92, 245, .78), rgba(78, 121, 255, .48)) !important;
    color: #fff !important;
    border-left-color: transparent !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 12px 28px rgba(49, 92, 245, .22) !important;
}

body.tt-role-admin .tt-role-badge,
body.tt-role-admin .tt-pill {
    background: rgba(109, 160, 255, .12) !important;
    border-color: rgba(139, 166, 255, .16) !important;
    color: var(--text) !important;
}

html[data-theme="light"] body.tt-role-admin {
    --card-bg: rgba(255, 255, 255, .88);
    --input-bg: rgba(247, 250, 255, .9);
    --border: rgba(27, 56, 120, .12);
}

html[data-theme="light"] body.tt-role-admin .tt-header-top,
html[data-theme="light"] body.tt-role-admin .tt-footer-sticky,
html[data-theme="light"] body.tt-role-admin .tt-sidebar {
    background: rgba(255, 255, 255, .88) !important;
    border-color: rgba(27, 56, 120, .12) !important;
    box-shadow: 0 10px 30px rgba(42, 66, 118, .08) !important;
}

html[data-theme="light"] body.tt-role-admin .tt-topbar {
    background: transparent !important;
    border-bottom-color: transparent !important;
}

html[data-theme="light"] body.tt-role-admin .tt-nav-item.active,
html[data-theme="light"] body.tt-role-admin .tt-nav-item:hover {
    background: linear-gradient(135deg, rgba(36, 85, 239, .82), rgba(93, 133, 255, .52)) !important;
    color: #fff !important;
}

/* Guest pages: fixed chrome and responsive auth/landing layouts */
body.tt-auth-body {
    --header-h: clamp(42px, 2.8vw, 58px);
    --footer-h: clamp(42px, 2.8vw, 58px);
    min-height: 100dvh;
    overflow-x: hidden;
    padding-top: var(--header-h) !important;
    padding-bottom: var(--footer-h) !important;
}

body.tt-auth-body .tt-header-top,
body.tt-auth-body .tt-footer-sticky {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--header-h);
    min-height: 0;
}

body.tt-auth-body .tt-header-top {
    top: 0;
    border-bottom: 1px solid rgba(139, 166, 255, .14);
}

body.tt-auth-body .tt-footer-sticky {
    bottom: 0;
    height: var(--footer-h);
    border-top: 1px solid rgba(139, 166, 255, .14);
}

body.tt-auth-body .tt-header-top-content,
body.tt-auth-body .tt-footer-content {
    display: flex;
    align-items: center;
    width: min(100% - clamp(1rem, 3vw, 4rem), 1700px);
}

body.tt-auth-body .tt-header-top-content {
    justify-content: center;
    gap: clamp(.45rem, .75vw, .8rem);
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(.74rem, .48vw + .46rem, 1rem) !important;
}

body.tt-auth-body .tt-header-top-content > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.tt-auth-body .tt-header-icon {
    width: clamp(28px, 1.9vw, 38px);
    height: clamp(28px, 1.9vw, 38px);
    font-size: clamp(.95rem, .85vw, 1.2rem) !important;
    flex: 0 0 auto;
}

body.tt-auth-body .tt-footer-content {
    justify-content: center;
    text-align: center;
}

body.tt-auth-body .tt-footer-main {
    font-size: clamp(.72rem, .45vw + .45rem, .95rem);
}

body.tt-auth-body main {
    width: 100%;
    min-height: calc(100dvh - var(--header-h) - var(--footer-h));
    display: grid;
    place-items: center;
    padding: clamp(.75rem, 2.2vw, 2.25rem);
}

body.tt-auth-body .tt-auth-wrap {
    width: min(90vw, 1700px);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, .95fr) minmax(380px, .75fr);
    align-items: stretch;
}

body.tt-auth-body .tt-auth-brand {
    min-height: min(760px, calc(100dvh - var(--header-h) - var(--footer-h) - 1.5rem));
    padding: clamp(1.75rem, 4vw, 4.5rem);
}

body.tt-auth-body .tt-auth-form-side {
    min-width: 0;
    padding: clamp(1rem, 3vw, 2rem);
    overflow: visible;
}

body.tt-auth-body .tt-auth-card {
    max-width: min(100%, 620px);
    padding: clamp(1rem, 2vw, 2rem);
}

body.tt-auth-body .tt-auth-card h2 {
    font-size: clamp(1.55rem, 2.4vw, 2.6rem);
}

body.tt-auth-body .tt-auth-sub,
body.tt-auth-body .tt-auth-footer {
    font-size: clamp(.92rem, .8vw, 1.18rem);
}

body.tt-auth-body .tt-form-group {
    margin-bottom: clamp(.85rem, 2vw, 1.15rem);
}

body.tt-auth-body .tt-input {
    min-height: clamp(46px, 3.4vw, 58px);
    padding-top: .82rem;
    padding-bottom: .82rem;
}

body.tt-auth-body .tt-welcome-container {
    width: 100%;
    min-height: 0;
    padding: 0;
    background: transparent;
}

body.tt-auth-body .tt-welcome-content {
    width: min(90vw, 1700px);
    grid-template-columns: minmax(360px, .92fr) minmax(420px, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
}

body.tt-auth-body .tt-welcome-logo {
    width: clamp(52px, 4.2vw, 86px);
    height: clamp(52px, 4.2vw, 86px);
    font-size: clamp(1.55rem, 2.3vw, 2.6rem);
}

body.tt-auth-body .tt-brand-logo {
    font-size: clamp(2.4rem, 4vw, 5.4rem);
    letter-spacing: 0;
}

body.tt-auth-body .tt-welcome-description {
    max-width: 720px;
    font-size: clamp(.95rem, .82vw, 1.28rem);
}

body.tt-auth-body .tt-welcome-features .tt-feature {
    min-width: 0;
    padding: clamp(.85rem, 1.4vw, 1.45rem);
}

body.tt-auth-body .tt-welcome-visual {
    min-height: 0;
    height: min(58vw, 720px);
}

body.tt-auth-body .tt-feature h5 {
    font-size: clamp(.95rem, .85vw, 1.22rem);
}

body.tt-auth-body .tt-feature p,
body.tt-auth-body .tt-preview-actions span,
body.tt-auth-body .tt-preview-card span {
    font-size: clamp(.76rem, .58vw, 1rem);
}

body.tt-auth-body .tt-preview-greeting strong {
    font-size: clamp(1.05rem, 1vw, 1.5rem);
}

body.tt-auth-body .tt-preview-stats strong {
    font-size: clamp(1.25rem, 1.25vw, 1.9rem);
}

body.tt-auth-body .tt-preview-card i {
    font-size: clamp(4.5rem, 6vw, 7.5rem);
}

@media (max-width: 980px) {
    body.tt-auth-body .tt-welcome-content {
        grid-template-columns: 1fr;
    }

    body.tt-auth-body .tt-auth-brand,
    body.tt-auth-body .tt-welcome-visual {
        display: none;
    }

    body.tt-auth-body .tt-welcome-content {
        max-width: 680px;
        text-align: center;
    }

    body.tt-auth-body .tt-welcome-header,
    body.tt-auth-body .tt-welcome-body,
    body.tt-auth-body .tt-welcome-footer {
        grid-column: auto;
    }

    body.tt-auth-body .tt-welcome-description {
        margin-right: auto;
        margin-left: auto;
    }

    body.tt-auth-body .tt-welcome-features .tt-feature {
        text-align: left;
    }
}

@media (max-width: 640px) {
    body.tt-auth-body {
        --header-h: 48px;
        --footer-h: 48px;
    }

    body.tt-auth-body main {
        place-items: start center;
        padding: .9rem;
    }

    body.tt-auth-body .tt-header-top-content,
    body.tt-auth-body .tt-footer-content {
        width: min(100% - 1rem, 1180px);
    }

    body.tt-auth-body .tt-header-top-content {
        justify-content: center;
        font-size: .72rem !important;
    }

    body.tt-auth-body .tt-header-icon {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    body.tt-auth-body .tt-auth-card {
        border-radius: 8px;
    }

    body.tt-auth-body .tt-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.tt-auth-body .tt-welcome-header {
        margin-bottom: .8rem;
    }

    body.tt-auth-body .tt-welcome-body {
        margin-bottom: 1rem;
    }

    body.tt-auth-body .tt-welcome-features {
        gap: .6rem;
    }

    body.tt-auth-body .tt-welcome-features .tt-feature {
        gap: .7rem;
    }

    body.tt-auth-body .tt-feature-icon {
        font-size: 1.4rem;
        margin-bottom: 0;
    }

    body.tt-auth-body .tt-feature h5 {
        font-size: .95rem;
    }

    body.tt-auth-body .tt-feature p,
    body.tt-auth-body .tt-footer-main {
        font-size: .76rem;
    }
}

/* Public pages — footer sits naturally at the bottom of content */
body.tt-auth-body {
    padding-bottom: 0 !important;
}

body.tt-auth-body .tt-footer-sticky {
    position: static !important;
    height: auto !important;
    min-height: auto !important;
    padding: 0 !important;
    display: block !important;
}

body.tt-auth-body main {
    min-height: calc(100dvh - var(--header-h));
}

body.tt-landing-body main {
    display: block;
    padding: 0;
    min-height: auto;
}

.tt-public-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--text);
    text-decoration: none;
    min-width: 0;
}

.tt-public-brand strong,
.tt-public-brand small {
    display: block;
    line-height: 1.1;
}

.tt-public-brand strong {
    font-family: 'Sora', sans-serif;
    font-size: clamp(.95rem, 1vw, 1.25rem);
}

.tt-public-brand strong span {
    color: var(--blue-glow);
}

.tt-public-brand small {
    margin-top: .15rem;
    color: var(--text-muted);
    font-size: clamp(.62rem, .58vw, .76rem);
}

body.tt-auth-body .tt-header-top-content {
    justify-content: space-between;
}

.tt-public-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.85rem, 2.2vw, 2.4rem);
}

.tt-public-nav a {
    position: relative;
    color: var(--text);
    font-size: clamp(.75rem, .55vw + .42rem, .95rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    text-decoration: none;
}

.tt-public-nav a:hover,
.tt-public-nav a:focus {
    color: var(--blue-glow);
}

.tt-public-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.tt-public-login,
.tt-public-signup {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: .86rem;
    text-decoration: none;
}

.tt-public-login {
    border: 1px solid rgba(139, 166, 255, .3);
    background: rgba(255, 255, 255, .03);
}

.tt-public-signup {
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    box-shadow: 0 14px 34px rgba(49, 92, 245, .28);
}

.tt-landing-page {
    background: #f7f9ff;
    color: #081946;
}

.tt-landing-hero {
    min-height: calc(100dvh - var(--header-h));
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(320px, 1fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: center;
    padding: clamp(6rem, 9vw, 10rem) min(5vw, 5rem) clamp(2rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 74% 28%, rgba(80, 119, 255, .28), transparent 23rem),
        radial-gradient(circle at 25% 42%, rgba(49, 92, 245, .16), transparent 18rem),
        linear-gradient(145deg, #030815 0%, #061536 54%, #031025 100%);
    color: #fff;
}

.tt-landing-copy,
.tt-hero-art,
.tt-landing-search,
.tt-landing-stats,
.tt-landing-section,
.tt-landing-cta {
    width: min(100%, 1780px);
}

.tt-landing-copy {
    justify-self: end;
    max-width: 720px;
}

.tt-section-kicker {
    margin: 0 0 .75rem;
    color: var(--blue-glow);
    font-size: clamp(.76rem, .7vw, 1rem);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tt-landing-copy h1 {
    max-width: 760px;
    margin: 0;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3rem, 5.8vw, 7.25rem);
    line-height: .98;
    color: #fff;
}

.tt-landing-copy h1 span {
    color: var(--blue-glow);
}

.tt-landing-lead {
    max-width: 660px;
    margin: 1.5rem 0 0;
    color: #b9c7ec;
    font-size: clamp(1rem, 1vw, 1.32rem);
    line-height: 1.7;
}

.tt-landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tt-landing-primary,
.tt-landing-secondary {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: .95rem 1.45rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.tt-landing-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
    box-shadow: 0 18px 38px rgba(49, 92, 245, .3);
}

.tt-landing-secondary {
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    background: rgba(255, 255, 255, .04);
}

.tt-landing-primary:hover,
.tt-landing-secondary:hover {
    color: #fff;
    transform: translateY(-1px);
}

.tt-landing-note {
    margin: 1.6rem 0 0;
    color: #9fb1df;
}

.tt-hero-art {
    justify-self: start;
    min-height: clamp(340px, 36vw, 620px);
    display: grid;
    place-items: center;
}

.tt-hero-box {
    position: relative;
    width: min(42vw, 620px);
    min-width: 320px;
    aspect-ratio: 1.08;
    border-radius: 42% 58% 45% 55%;
    background:
        radial-gradient(circle at 50% 36%, rgba(109, 160, 255, .2), transparent 22%),
        linear-gradient(145deg, rgba(49, 92, 245, .18), rgba(5, 14, 39, .08));
}

.tt-hero-box::before,
.tt-hero-box::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 12%;
    height: 35%;
    border-radius: 12px;
    background: linear-gradient(145deg, #315cf5, #102a7a);
    transform: perspective(900px) rotateX(56deg) rotateZ(45deg);
    box-shadow: 0 34px 80px rgba(49, 92, 245, .36);
}

.tt-hero-box::after {
    left: 29%;
    right: 29%;
    bottom: 5%;
    height: 28%;
    background: linear-gradient(145deg, #102a7a, #071536);
    transform: perspective(900px) rotateX(0) rotateZ(0);
}

.tt-hero-box i {
    position: absolute;
    z-index: 2;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28));
}

.tt-hero-backpack {
    top: 14%;
    left: 42%;
    color: #6da0ff;
    font-size: clamp(6rem, 11vw, 12rem);
}

.tt-hero-phone {
    top: 43%;
    left: 25%;
    color: #273b71;
    font-size: clamp(4rem, 7vw, 7.5rem);
    transform: rotate(-20deg);
}

.tt-hero-bottle {
    top: 40%;
    right: 22%;
    color: #6f8cff;
    font-size: clamp(4rem, 7.5vw, 8rem);
    transform: rotate(24deg);
}

.tt-hero-star {
    color: #7da7ff;
    font-size: 1.1rem;
}

.star-a { top: 12%; right: 22%; }
.star-b { top: 32%; left: 18%; }

.tt-landing-search,
.tt-landing-stats {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 1560px;
    border: 1px solid rgba(139, 166, 255, .18);
    background: rgba(12, 25, 63, .72);
    backdrop-filter: blur(18px);
}

.tt-landing-search {
    display: grid;
    grid-template-columns: 1fr auto 56px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 16px;
}

.tt-landing-search div {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 0 1rem;
    border: 1px solid rgba(139, 166, 255, .14);
    border-radius: 10px;
    color: #9fb1df;
}

.tt-landing-search > span {
    color: #b9c7ec;
}

.tt-landing-search button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--blue), var(--blue-glow));
    color: #fff;
}

.tt-landing-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -1rem;
    padding: 1.1rem;
    border-radius: 16px;
}

.tt-landing-stats div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: .2rem 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border-right: 1px solid rgba(139, 166, 255, .14);
}

.tt-landing-stats div:last-child {
    border-right: 0;
}

.tt-landing-stats i {
    grid-row: span 2;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(109, 160, 255, .14);
    color: var(--blue-glow);
    font-size: 1.4rem;
}

.tt-landing-stats strong {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    line-height: 1;
}

.tt-landing-stats span {
    color: #b9c7ec;
}

.tt-landing-section,
.tt-landing-cta {
    margin: 0 auto;
    padding: clamp(3.5rem, 6vw, 7rem) min(5vw, 5rem) 0;
}

.tt-landing-section h2,
.tt-landing-cta h2 {
    margin: 0;
    color: #081946;
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.8rem, 2.8vw, 3.4rem);
}

.tt-steps-section {
    text-align: center;
}

.tt-step-grid,
.tt-category-grid,
.tt-sample-item-grid,
.tt-contact-grid {
    display: grid;
    gap: clamp(1rem, 1.6vw, 1.5rem);
    margin-top: 2rem;
}

.tt-step-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tt-step-card,
.tt-category-card,
.tt-sample-item-card {
    border: 1px solid rgba(27, 56, 120, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 50px rgba(45, 71, 128, .08);
}

.tt-step-card {
    position: relative;
    min-height: 245px;
    padding: 2.1rem 1.25rem;
}

.tt-step-number {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e7eeff;
    color: var(--blue);
    font-weight: 800;
}

.tt-step-icon,
.tt-category-card i {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--blue);
    font-size: 2rem;
}

.tt-step-card h3,
.tt-category-card h3,
.tt-sample-item-card h3 {
    margin: 0 0 .55rem;
    color: #081946;
    font-family: 'Sora', sans-serif;
    font-size: 1.02rem;
}

.tt-step-card p,
.tt-category-card p,
.tt-sample-item-card p,
.tt-landing-cta p {
    color: #526388;
    line-height: 1.6;
}

.tt-section-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.tt-section-heading-row > span {
    color: var(--blue);
    font-weight: 800;
}

.tt-category-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tt-category-card {
    min-height: 170px;
    display: grid;
    place-items: center;
    padding: 1.3rem;
    text-align: center;
}

.tt-sample-item-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tt-sample-item-card {
    overflow: hidden;
}

.tt-sample-item-art {
    min-height: 170px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(109, 160, 255, .35), transparent 7rem),
        linear-gradient(145deg, #e8eefb, #cdd8ee);
}

.tt-sample-item-art i {
    color: #315cf5;
    font-size: clamp(3.2rem, 4.4vw, 5rem);
    filter: drop-shadow(0 18px 24px rgba(49, 92, 245, .18));
}

.tt-sample-item-body {
    padding: 1rem;
}

.tt-sample-item-body > span {
    display: inline-flex;
    margin-bottom: .8rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: #e7eeff;
    color: var(--blue);
    font-size: .72rem;
    font-weight: 800;
}

.tt-sample-item-card p {
    margin: .3rem 0 0;
    font-size: .86rem;
}

.tt-landing-cta {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(240px, .55fr);
    align-items: center;
    gap: 2rem;
    margin-top: clamp(3rem, 5vw, 6rem);
    margin-bottom: clamp(3rem, 5vw, 6rem);
    padding: clamp(2rem, 4vw, 4rem);
    border-radius: 18px;
    background:
        radial-gradient(circle at 78% 30%, rgba(109, 160, 255, .35), transparent 18rem),
        linear-gradient(135deg, #071536, #132d82);
    color: #fff;
}

.tt-landing-cta h2,
.tt-landing-cta p {
    color: #fff;
}

.tt-landing-cta p {
    max-width: 720px;
    color: #b9c7ec;
}

.tt-cta-art {
    position: relative;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.tt-cta-art i {
    z-index: 2;
    color: #8db3ff;
    font-size: clamp(7rem, 10vw, 12rem);
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .28));
}

.tt-cta-art span {
    position: absolute;
    width: 58%;
    aspect-ratio: 1.8;
    border-radius: 12px;
    background: linear-gradient(145deg, #315cf5, #071536);
    transform: perspective(700px) rotateX(58deg) rotateZ(-14deg);
}

.tt-contact-section {
    padding-top: 0;
    padding-bottom: clamp(3rem, 5vw, 5rem);
}

.tt-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tt-contact-grid div {
    min-height: 86px;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid rgba(27, 56, 120, .12);
    border-radius: 12px;
    background: #fff;
}

.tt-contact-grid i {
    color: var(--blue);
    font-size: 1.4rem;
}

.tt-footer-sticky {
    display: flex;
    justify-content: center;
    background:
        radial-gradient(circle at 14% 16%, rgba(49, 92, 245, .18), transparent 18rem),
        linear-gradient(145deg, #030815 0%, #061536 100%) !important;
}

body.tt-auth-body .tt-footer-content {
    display: block;
    width: min(100% - clamp(1.5rem, 7vw, 8rem), 1780px);
    padding: clamp(2.5rem, 5vw, 5rem) 0 1.5rem;
    margin: 0 auto;
}

.tt-public-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(160px, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(139, 166, 255, .14);
}

.tt-public-footer-grid h6 {
    margin: 0 0 1rem;
    color: #fff;
    font-family: 'Sora', sans-serif;
}

.tt-public-footer-grid a,
.tt-public-footer-grid span,
.tt-public-footer-brand p {
    display: block;
    margin: .65rem 0;
    color: #9fb1df;
    text-decoration: none;
}

.tt-public-footer-grid a:hover {
    color: #fff;
}

body.tt-auth-body .tt-footer-main {
    padding-top: 1.3rem;
    text-align: center;
    color: #9fb1df !important;
}

@media (max-width: 1180px) {
    .tt-public-nav {
        display: none;
    }

    .tt-landing-hero,
    .tt-step-grid,
    .tt-sample-item-grid,
    .tt-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-landing-copy,
    .tt-hero-art {
        justify-self: center;
    }

    .tt-landing-search,
    .tt-landing-stats {
        grid-column: 1 / -1;
    }

    .tt-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body.tt-auth-body .tt-header-top-content {
        justify-content: space-between;
    }

    .tt-public-actions {
        gap: .45rem;
    }

    .tt-public-login,
    .tt-public-signup {
        min-height: 34px;
        padding: .55rem .65rem;
        font-size: .74rem;
    }

    .tt-landing-hero,
    .tt-step-grid,
    .tt-category-grid,
    .tt-sample-item-grid,
    .tt-landing-cta,
    .tt-contact-grid,
    .tt-public-footer-grid {
        grid-template-columns: 1fr;
    }

    .tt-landing-hero {
        padding-top: 5.5rem;
    }

    .tt-hero-art {
        min-height: 260px;
    }

    .tt-hero-box {
        min-width: 260px;
        width: 80vw;
    }

    .tt-landing-search {
        grid-template-columns: 1fr 48px;
    }

    .tt-landing-search > span {
        display: none;
    }

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

    .tt-landing-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(139, 166, 255, .14);
    }

    .tt-landing-stats div:last-child {
        border-bottom: 0;
    }

    .tt-section-heading-row {
        display: block;
    }

    .tt-public-brand small {
        display: none;
    }
}

/* Landing hero match pass */
body.tt-landing-body {
    --landing-bg: #020817;
    --landing-bg-2: #061334;
    --landing-panel: rgba(11, 27, 68, .74);
    --landing-line: rgba(111, 143, 255, .22);
    --landing-blue: #3D63FF;
    --landing-blue-soft: #78A0FF;
    --landing-text: #F7FAFF;
    --landing-muted: #A9B8DD;
    background: #020817 !important;
}

body.tt-landing-body .tt-header-top {
    height: 78px;
    background: rgba(2, 8, 23, .88) !important;
    border-bottom: 1px solid rgba(111, 143, 255, .08);
    box-shadow: none !important;
}

body.tt-landing-body .tt-header-top-content {
    width: min(100% - clamp(2rem, 8vw, 6.5rem), 1760px);
}

body.tt-landing-body .tt-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(145deg, #7DA6FF 0%, #345DFF 48%, #102B8F 100%);
    box-shadow: 0 14px 30px rgba(61, 99, 255, .35);
}

body.tt-landing-body .tt-public-brand strong {
    color: #fff;
    font-size: 1.28rem;
    letter-spacing: -.02em;
}

body.tt-landing-body .tt-public-brand small {
    color: #B3C0E2;
}

body.tt-landing-body .tt-public-nav {
    gap: clamp(1.25rem, 3vw, 3rem);
}

body.tt-landing-body .tt-public-nav a {
    color: #D7E0FF;
    font-size: .82rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -.01em;
}

body.tt-landing-body .tt-public-nav a:first-child {
    color: #fff;
}

body.tt-landing-body .tt-public-nav a:first-child::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.9rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--landing-blue), var(--landing-blue-soft));
}

body.tt-landing-body .tt-public-login,
body.tt-landing-body .tt-public-signup {
    min-width: 92px;
    min-height: 48px;
    border-radius: 9px;
    font-size: .84rem;
}

body.tt-landing-body .tt-public-login {
    border-color: rgba(111, 143, 255, .22);
    background: rgba(4, 12, 34, .82);
}

body.tt-landing-body .tt-public-signup {
    background: linear-gradient(135deg, #315CF5, #668DFF);
}

body.tt-landing-body .tt-landing-page {
    background: #f7f9ff;
    color: #081946;
}

body.tt-landing-body .tt-landing-hero {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    min-height: clamp(680px, calc(100dvh - var(--header-h)), 980px);
    grid-template-columns: minmax(360px, .82fr) minmax(420px, 1fr);
    gap: clamp(2rem, 8vw, 9rem);
    align-items: center;
    padding: clamp(6rem, 8vw, 8.5rem) clamp(2rem, 8vw, 9rem) clamp(2rem, 4vw, 4rem);
    background:
        radial-gradient(circle at 72% 39%, rgba(53, 91, 255, .28), transparent 23rem),
        radial-gradient(circle at 29% 44%, rgba(27, 65, 183, .18), transparent 18rem),
        linear-gradient(180deg, #020817 0%, #05112A 57%, #071638 100%);
    overflow: hidden;
}

body.tt-landing-body .tt-landing-copy {
    justify-self: end;
    max-width: min(44vw, 900px);
}

body.tt-landing-body .tt-landing-copy h1 {
    max-width: 760px;
    font-family: 'Sora', sans-serif;
    font-size: clamp(3.65rem, 5.35vw, 8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.045em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .22);
}

body.tt-landing-body .tt-landing-copy h1 span,
body.tt-landing-body .tt-landing-copy h1 strong {
    color: var(--landing-blue-soft);
    font-weight: 800;
}

body.tt-landing-body .tt-landing-copy h1 strong {
    color: #4D73FF;
}

body.tt-landing-body .tt-landing-lead {
    max-width: 580px;
    margin-top: 1.55rem;
    color: var(--landing-muted);
    font-size: clamp(1.02rem, 1.04vw, 1.22rem);
    line-height: 1.65;
    letter-spacing: -.01em;
}

body.tt-landing-body .tt-landing-actions {
    margin-top: 2.15rem;
    gap: 1rem;
}

body.tt-landing-body .tt-landing-hero .tt-landing-primary,
body.tt-landing-body .tt-landing-hero .tt-landing-secondary {
    min-width: 190px;
    min-height: 58px;
    border-radius: 8px;
    font-family: 'Sora', sans-serif;
    font-size: .92rem;
    letter-spacing: -.01em;
}

body.tt-landing-body .tt-landing-hero .tt-landing-primary {
    background: linear-gradient(135deg, #315CF5, #5E83FF);
    box-shadow: 0 20px 42px rgba(49, 92, 245, .34);
}

body.tt-landing-body .tt-landing-hero .tt-landing-secondary {
    border: 1px solid rgba(189, 205, 255, .33);
    background: rgba(2, 8, 23, .32);
}

.tt-trusted-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.75rem;
}

.tt-avatar-stack {
    display: flex;
}

.tt-avatar-stack span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: -9px;
    border: 2px solid #071638;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d2ad, #7db2ff);
    color: #071638;
    font-family: 'Sora', sans-serif;
    font-size: .78rem;
    font-weight: 800;
}

.tt-avatar-stack span:nth-child(2) {
    background: linear-gradient(135deg, #94e5d0, #f5d2ad);
}

.tt-avatar-stack span:nth-child(3) {
    background: linear-gradient(135deg, #9bb8ff, #eef4ff);
}

.tt-trusted-row p {
    max-width: 275px;
    margin: 0;
    color: #C6D2F2;
    font-size: .86rem;
    line-height: 1.35;
}

body.tt-landing-body .tt-hero-art {
    min-height: clamp(410px, 39vw, 620px);
    justify-self: start;
}

body.tt-landing-body .tt-hero-box {
    width: min(44vw, 760px);
    min-width: 420px;
    aspect-ratio: 1.1;
    background:
        radial-gradient(circle at 54% 36%, rgba(99, 131, 255, .34), transparent 22%),
        radial-gradient(ellipse at 50% 50%, rgba(54, 83, 204, .23), transparent 58%);
}

body.tt-landing-body .tt-hero-box::before {
    left: 16%;
    right: 16%;
    bottom: 13%;
    height: 34%;
    border-radius: 8px;
    background: linear-gradient(160deg, #4C73FF 0%, #1E3CB8 54%, #07195A 100%);
    transform: perspective(900px) rotateX(58deg) rotateZ(45deg);
    box-shadow: 0 36px 85px rgba(49, 92, 245, .36);
}

body.tt-landing-body .tt-hero-box::after {
    left: 30%;
    right: 30%;
    bottom: 2%;
    height: 34%;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(180deg, #173599, #06113A);
}

body.tt-landing-body .tt-hero-backpack {
    top: 11%;
    left: 42%;
    color: #5178FF;
    font-size: clamp(7rem, 11vw, 11rem);
}

body.tt-landing-body .tt-hero-phone {
    top: 44%;
    left: 25%;
    color: #101A34;
    font-size: clamp(4.7rem, 7vw, 7rem);
}

body.tt-landing-body .tt-hero-bottle {
    top: 36%;
    right: 20%;
    color: #263150;
    font-size: clamp(5.2rem, 8vw, 8.2rem);
}

body.tt-landing-body .tt-hero-star {
    color: #6E8DFF;
    text-shadow: 0 0 18px rgba(109, 160, 255, .8);
}

body.tt-landing-body .star-a { top: 7%; right: 19%; }
body.tt-landing-body .star-b { top: 28%; left: 13%; }

body.tt-landing-body .tt-landing-stats {
    width: min(88vw, 1900px);
    max-width: none;
    margin-top: -2.4rem;
    padding: 1.4rem 1.5rem;
    border-radius: 13px;
    border: 1px solid var(--landing-line);
    background: rgba(11, 27, 68, .72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.tt-landing-body .tt-landing-stats div {
    grid-template-columns: 58px 1fr;
    padding: .9rem 1.55rem;
    gap: .12rem 1.15rem;
}

body.tt-landing-body .tt-landing-stats i {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    background: rgba(49, 92, 245, .18);
    color: #6D91FF;
    font-size: 1.45rem;
}

body.tt-landing-body .tt-landing-stats strong {
    color: #F7FAFF;
    font-size: clamp(1.75rem, 2.2vw, 2.35rem);
    letter-spacing: -.02em;
}

body.tt-landing-body .tt-landing-stats span {
    color: #C5D1EF;
    font-size: .82rem;
    font-weight: 700;
}

body.tt-landing-body .tt-landing-stats small {
    color: #56D99A;
    font-size: .72rem;
}

@media (max-width: 1180px) {
    body.tt-landing-body .tt-landing-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    body.tt-landing-body .tt-landing-copy,
    body.tt-landing-body .tt-hero-art {
        justify-self: center;
    }

    body.tt-landing-body .tt-landing-copy {
        max-width: 760px;
    }

    body.tt-landing-body .tt-landing-actions,
    .tt-trusted-row {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    body.tt-landing-body .tt-header-top {
        height: 64px;
    }

    body.tt-landing-body .tt-public-brand strong {
        font-size: 1rem;
    }

    body.tt-landing-body .tt-landing-hero {
        padding-top: 5rem;
        width: 100%;
        margin-left: 0;
    }

    body.tt-landing-body .tt-landing-copy h1 {
        font-size: clamp(2.65rem, 12vw, 4rem);
    }

    body.tt-landing-body .tt-hero-box {
        min-width: 280px;
        width: 88vw;
    }

    body.tt-landing-body .tt-landing-hero .tt-landing-primary,
    body.tt-landing-body .tt-landing-hero .tt-landing-secondary {
        width: 100%;
    }
}

/* ============================================================
   Auth redesign — visual panel (login & register)
   ============================================================ */

/* Two-column: form left, visual right — stretches to fill viewport */
body.tt-auth-body .tt-auth-wrap {
    width: 100%;
    max-width: 100%;
    min-height: calc(100dvh - var(--header-h));
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
}

body.tt-auth-body .tt-auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 4rem);
    min-width: 0;
    overflow-y: auto;
}

body.tt-auth-body .tt-auth-card {
    width: 100%;
    max-width: 520px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

body.tt-auth-body .tt-auth-card h2 {
    font-size: clamp(1.4rem, 2.2vw, 2.2rem);
    margin-bottom: .35rem;
}

body.tt-auth-body .tt-auth-sub {
    font-size: clamp(.85rem, .9vw, 1.05rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}

body.tt-auth-body .tt-auth-footer {
    font-size: clamp(.82rem, .8vw, 1rem);
    margin-top: 1rem;
    text-align: center;
}

body.tt-auth-body .tt-form-group {
    margin-bottom: clamp(.65rem, 1.5vw, 1rem);
}

body.tt-auth-body .tt-form-group label {
    font-size: clamp(.8rem, .85vw, .95rem);
    margin-bottom: .3rem;
    display: block;
}

body.tt-auth-body .tt-input {
    min-height: clamp(40px, 3vw, 52px);
    font-size: clamp(.82rem, .85vw, 1rem);
    padding: .6rem .85rem;
}

body.tt-auth-body .tt-btn-primary {
    width: 100%;
    min-height: clamp(42px, 3.2vw, 54px);
    font-size: clamp(.88rem, .9vw, 1.05rem);
    margin-top: clamp(.5rem, 1.2vw, 1rem);
}

/* Brand mark inside the card */
.tt-auth-brand-mark {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
}

.tt-auth-brand-name {
    font-family: 'Sora', sans-serif;
    font-size: clamp(.95rem, 1vw, 1.15rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.tt-auth-brand-name span { color: var(--blue); }

.tt-auth-brand-mark small {
    font-size: .7rem;
    color: var(--text-muted);
    display: block;
    line-height: 1;
}

/* Visual panel — fills its grid cell completely */
.tt-auth-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(49, 92, 245, .28), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(93, 133, 255, .18), transparent 45%),
        linear-gradient(145deg, #030d28 0%, #071540 60%, #0a1f5c 100%);
}

.tt-auth-visual-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
    max-width: 480px;
    width: 100%;
}

.tt-auth-visual-art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(1.25rem, 2.5vw, 2.5rem);
}

.tt-visual-icon {
    font-size: clamp(4rem, 9vw, 9rem);
    color: #5b8aff;
    filter: drop-shadow(0 0 32px rgba(91, 138, 255, .55));
    position: relative;
    z-index: 1;
}

.tt-auth-visual--login .tt-visual-icon  { color: #5b8aff; }
.tt-auth-visual--register .tt-visual-icon { color: #6ec6f5; }

.tt-visual-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 92, 245, .22), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tt-auth-visual-inner h3 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: .65rem;
    line-height: 1.25;
}

.tt-auth-visual-inner p {
    color: #9fb1df;
    font-size: clamp(.82rem, .95vw, 1rem);
    line-height: 1.6;
    margin: 0;
}

/* Terms checkbox */
.tt-terms-group { margin-top: .15rem; }

.tt-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    cursor: pointer;
    font-size: clamp(.78rem, .82vw, .95rem);
    color: var(--text-muted);
    line-height: 1.4;
}

.tt-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: .18rem;
    flex-shrink: 0;
    accent-color: var(--blue);
    cursor: pointer;
}

.tt-checkbox-label a {
    color: var(--blue);
    text-decoration: underline;
}

.tt-field-hint {
    display: block;
    margin-top: .2rem;
    color: var(--text-muted);
    font-size: .75rem;
}

/* ── Terms & Conditions page ─────────────────────────────── */
.tt-terms-page {
    width: 100%;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 2rem);
}

.tt-terms-container {
    max-width: 860px;
    margin: 0 auto;
}

.tt-terms-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(139, 166, 255, .14);
}

.tt-terms-brand { margin-bottom: 1.25rem; }

.tt-terms-header h1 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .5rem;
}

.tt-terms-meta { color: var(--text-muted); font-size: .9rem; margin: 0; }

.tt-terms-body section { margin-bottom: 2rem; }

.tt-terms-body h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .65rem;
}

.tt-terms-body p,
.tt-terms-body li {
    color: var(--text-muted);
    font-size: .97rem;
    line-height: 1.75;
    margin: 0 0 .5rem;
}

.tt-terms-body ul { padding-left: 1.25rem; }
.tt-terms-body a  { color: var(--blue); }

.tt-terms-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 166, 255, .14);
}

/* ── Breakpoints ─────────────────────────────────────────── */

/* Large screens: cap form width, give visual more room */
@media (min-width: 1400px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    }

    body.tt-auth-body .tt-auth-card {
        max-width: 560px;
    }
}

/* Medium-large: slightly more compact */
@media (max-width: 1280px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    }
}

/* Tablet landscape: compress both columns */
@media (max-width: 1024px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    }

    body.tt-auth-body .tt-auth-form-side {
        padding: clamp(1rem, 3vw, 2.5rem);
    }

    body.tt-auth-body .tt-auth-card {
        max-width: 100%;
    }

    body.tt-auth-body .tt-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Tablet portrait: stack panels, hide visual */
@media (max-width: 768px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    /* Show visual as a slim banner on top */
    .tt-auth-visual {
        min-height: 220px;
        order: -1;
    }

    .tt-auth-visual-inner {
        padding: 1.5rem 1.25rem;
    }

    .tt-visual-icon { font-size: 3rem; }
    .tt-visual-glow { width: 120px; height: 120px; }

    .tt-auth-visual-inner h3 { font-size: 1.1rem; }
    .tt-auth-visual-inner p  { font-size: .82rem; }

    body.tt-auth-body .tt-auth-form-side {
        padding: 1.25rem 1rem;
        align-items: flex-start;
    }

    body.tt-auth-body .tt-auth-card {
        max-width: 100%;
        padding: 1.25rem 1rem;
    }

    body.tt-auth-body .tt-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Mobile: full-width, minimal padding */
@media (max-width: 480px) {
    .tt-auth-visual {
        min-height: 160px;
    }

    .tt-visual-icon { font-size: 2.4rem; }

    .tt-auth-visual-inner h3 { font-size: .95rem; }
    .tt-auth-visual-inner p  { display: none; }

    body.tt-auth-body .tt-auth-form-side {
        padding: 1rem .75rem;
    }

    body.tt-auth-body .tt-auth-card {
        padding: 1rem .75rem;
        border-radius: 8px;
    }

    body.tt-auth-body .tt-input {
        min-height: 40px;
        font-size: .85rem;
    }

    body.tt-auth-body .tt-btn-primary {
        min-height: 42px;
        font-size: .9rem;
    }

    .tt-auth-brand-mark {
        margin-bottom: .85rem;
    }

    body.tt-auth-body .tt-form-group {
        margin-bottom: .55rem;
    }
}
/* ============================================================
   AUTH REDESIGN FIX — Complete responsive overhaul
   Fixes: layout proportions, visual panel, full-viewport use
   ============================================================ */

/* Reset main centering so auth pages fill the viewport */
body.tt-auth-body main {
    padding: 0 !important;
    min-height: calc(100dvh - var(--header-h) - var(--footer-h));
    place-items: stretch !important;
    display: flex !important;
    align-items: stretch !important;
}

/* body.tt-auth-body .tt-auth-wrap, .tt-auth-form-side, .tt-auth-card
   — moved to end-of-file fix block for clean cascade order */

body.tt-auth-body .tt-auth-card h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.4rem) !important;
    font-weight: 700 !important;
    margin-bottom: .35rem !important;
    line-height: 1.2 !important;
    color: #fff !important;
}

body.tt-auth-body .tt-auth-sub {
    font-size: clamp(.88rem, .9vw, 1.05rem) !important;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem) !important;
}

body.tt-auth-body .tt-form-group {
    margin-bottom: clamp(.65rem, 1.4vw, 1rem) !important;
}

body.tt-auth-body .tt-form-group label {
    font-size: clamp(.78rem, .82vw, .92rem) !important;
    margin-bottom: .3rem !important;
    font-weight: 500 !important;
    color: rgba(255,255,255,.75) !important;
    display: block !important;
}

body.tt-auth-body .tt-input {
    min-height: clamp(42px, 3.2vw, 52px) !important;
    font-size: clamp(.84rem, .88vw, 1rem) !important;
    padding: .6rem .9rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(139,166,255,.18) !important;
    color: #fff !important;
    transition: border-color .2s, background .2s !important;
}

body.tt-auth-body .tt-input:focus {
    background: rgba(255,255,255,.09) !important;
    border-color: rgba(91,138,255,.55) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(91,138,255,.15) !important;
}

body.tt-auth-body select.tt-input {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 3rem !important;
    background-color: rgba(255,255,255,.06) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234da6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right .9rem center !important;
    background-size: 1.1rem 1.1rem !important;
    text-overflow: ellipsis !important;
}

body.tt-auth-body select.tt-input:focus {
    background-color: rgba(255,255,255,.09) !important;
}

body.tt-auth-body .tt-auth-select-wrap {
    position: relative;
}

body.tt-auth-body .tt-auth-select-wrap::after {
    content: none !important;
    display: none !important;
}

body.tt-auth-body .tt-input::placeholder { color: rgba(255,255,255,.3) !important; }
body.tt-auth-body .tt-input option { background: #0a1628; color: #fff; }

body.tt-auth-body .tt-btn-primary {
    width: 100% !important;
    min-height: clamp(44px, 3.4vw, 54px) !important;
    font-size: clamp(.9rem, .95vw, 1.05rem) !important;
    margin-top: clamp(.6rem, 1.4vw, 1.1rem) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

body.tt-auth-body .tt-auth-footer {
    font-size: clamp(.83rem, .82vw, 1rem) !important;
    margin-top: 1.1rem !important;
    text-align: center !important;
}

body.tt-auth-body .tt-field-hint {
    font-size: clamp(.72rem, .72vw, .82rem) !important;
    color: rgba(255,255,255,.35) !important;
    margin-top: .25rem !important;
    display: block !important;
}

body.tt-auth-body .tt-form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: clamp(.65rem, 1.2vw, 1rem) !important;
}

body.tt-auth-body .tt-checkbox-label {
    color: rgba(255,255,255,.6) !important;
    font-size: clamp(.8rem, .82vw, .92rem) !important;
}

/* Visual panel: deep blue with animated decorations */
body.tt-auth-body .tt-auth-visual {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 25% 30%, rgba(49,92,245,.35), transparent 50%),
        radial-gradient(circle at 80% 75%, rgba(93,133,255,.22), transparent 48%),
        radial-gradient(circle at 60% 10%, rgba(91,138,255,.15), transparent 40%),
        linear-gradient(145deg, #020b22 0%, #061238 55%, #0a1f5e 100%) !important;
}

/* Grid pattern overlay */
body.tt-auth-body .tt-auth-visual::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(rgba(91,138,255,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91,138,255,.06) 1px, transparent 1px) !important;
    background-size: 44px 44px !important;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%) !important;
}

body.tt-auth-body .tt-auth-visual-inner {
    position: relative !important;
    z-index: 2 !important;
    text-align: center !important;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem) !important;
    max-width: 520px !important;
    width: 100% !important;
}

/* Floating decoration circles */
body.tt-auth-body .tt-auth-visual-inner::before {
    content: '' !important;
    position: absolute !important;
    top: -60px !important;
    right: -60px !important;
    width: 200px !important;
    height: 200px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(91,138,255,.15) !important;
    pointer-events: none !important;
}

body.tt-auth-body .tt-auth-visual-inner::after {
    content: '' !important;
    position: absolute !important;
    bottom: -40px !important;
    left: -40px !important;
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(91,138,255,.1) !important;
    pointer-events: none !important;
}

.tt-auth-visual-art {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: clamp(1.5rem, 3vw, 3rem) !important;
    width: clamp(100px, 14vw, 160px) !important;
    height: clamp(100px, 14vw, 160px) !important;
    border-radius: 50% !important;
    background: rgba(49,92,245,.12) !important;
    border: 1px solid rgba(91,138,255,.2) !important;
}

.tt-visual-icon {
    font-size: clamp(3rem, 6vw, 6.5rem) !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 0 28px rgba(91,138,255,.6)) !important;
}

.tt-auth-visual--login .tt-visual-icon  { color: #7aaeff !important; }
.tt-auth-visual--register .tt-visual-icon { color: #7edcff !important; }

.tt-visual-glow {
    position: absolute !important;
    inset: -20px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(49,92,245,.2), transparent 70%) !important;
    animation: tt-pulse 3s ease-in-out infinite !important;
}

@keyframes tt-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50%       { opacity: 1;  transform: scale(1.08); }
}

.tt-auth-visual-inner h3 {
    font-family: 'Sora', sans-serif !important;
    font-size: clamp(1.25rem, 2vw, 2rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: .75rem !important;
    line-height: 1.25 !important;
}

.tt-auth-visual-inner p {
    color: rgba(159,177,223,.85) !important;
    font-size: clamp(.88rem, 1vw, 1.05rem) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

/* Visual feature pills */
.tt-auth-visual-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: .6rem !important;
    margin-top: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.tt-auth-visual-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: .45rem !important;
    padding: .45rem 1rem !important;
    background: rgba(49,92,245,.18) !important;
    border: 1px solid rgba(91,138,255,.22) !important;
    border-radius: 999px !important;
    font-size: clamp(.75rem, .82vw, .9rem) !important;
    color: rgba(200,220,255,.9) !important;
}

.tt-auth-visual-pill i { color: #7aaeff; }

/* ── Responsive breakpoints ── */

/* Tablet landscape: slightly narrower form, visual stays */
@media (max-width: 1100px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: 1fr 1fr !important;
    }

    body.tt-auth-body .tt-auth-form-side {
        padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 3vw, 3rem) !important;
    }
}

/* Tablet portrait: stack vertically — form on top, visual below as a banner */
@media (max-width: 820px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: 1fr !important;
        min-height: 0 !important;
    }

    body.tt-auth-body .tt-auth-visual {
        min-height: 240px !important;
        order: -1 !important;
    }

    .tt-auth-visual-art {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 1rem !important;
    }

    .tt-visual-icon { font-size: 2.6rem !important; }
    .tt-auth-visual-inner h3 { font-size: 1.1rem !important; }
    .tt-auth-visual-inner p { font-size: .85rem !important; }
    .tt-auth-visual-pills { margin-top: .9rem !important; gap: .4rem !important; }
    .tt-auth-visual-pill { font-size: .76rem !important; padding: .35rem .75rem !important; }

    body.tt-auth-body .tt-auth-form-side {
        padding: 1.75rem 1.25rem !important;
        align-items: flex-start !important;
    }

    body.tt-auth-body .tt-auth-card {
        max-width: 100% !important;
    }

    body.tt-auth-body .tt-form-row {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Mobile: compact, single column form rows */
@media (max-width: 520px) {
    body.tt-auth-body .tt-auth-visual {
        min-height: 180px !important;
    }

    .tt-auth-visual-inner {
        padding: 1.25rem 1rem !important;
    }

    .tt-auth-visual-art {
        width: 64px !important;
        height: 64px !important;
        margin-bottom: .75rem !important;
    }

    .tt-visual-icon { font-size: 2rem !important; }
    .tt-auth-visual-inner h3 { font-size: .95rem !important; }
    .tt-auth-visual-inner p { display: none !important; }
    .tt-auth-visual-pills { display: none !important; }

    body.tt-auth-body .tt-auth-form-side {
        padding: 1.25rem .9rem !important;
    }

    body.tt-auth-body .tt-auth-card {
        padding: 1.25rem 1rem !important;
        border-radius: 12px !important;
    }

    body.tt-auth-body .tt-form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body.tt-auth-body .tt-input {
        min-height: 42px !important;
        font-size: .88rem !important;
    }

    body.tt-auth-body .tt-btn-primary {
        min-height: 44px !important;
        font-size: .92rem !important;
    }
}

/* ============================================================
   AUTH PAGES — FOOTER, MAIN & FORM LAYOUT FIXES
   ============================================================ */

/* --- Footer: full multi-column grid, not the tiny fixed bar --- */
body.tt-auth-body .tt-footer-sticky {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex-shrink: 0 !important;
    backdrop-filter: none !important;
    background:
        radial-gradient(circle at 14% 16%, rgba(49, 92, 245, .18), transparent 18rem),
        linear-gradient(145deg, #030815 0%, #061536 100%) !important;
    border-top: 1px solid rgba(139, 166, 255, .12) !important;
    box-shadow: none !important;
}

body.tt-auth-body .tt-footer-content {
    display: block !important;
    width: min(100% - clamp(1.5rem, 6vw, 8rem), 1400px) !important;
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.5rem !important;
    margin: 0 auto !important;
}

body.tt-auth-body .tt-public-footer-grid {
    display: grid !important;
    grid-template-columns: 1.5fr repeat(3, minmax(130px, 1fr)) !important;
    gap: clamp(1.5rem, 4vw, 4rem) !important;
    padding-bottom: 2rem !important;
    border-bottom: 1px solid rgba(139, 166, 255, .14) !important;
    text-align: left !important;
}

body.tt-auth-body .tt-public-footer-brand {
    display: block !important;
}

body.tt-auth-body .tt-footer-main {
    padding-top: 1.25rem !important;
    text-align: center !important;
    color: #9fb1df !important;
    font-size: clamp(.78rem, .85vw, .9rem) !important;
}

/* --- Body: allow page to scroll for tall forms --- */
body.tt-auth-body {
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 100vh !important;
}

/* --- Main: flex-grow, no fixed height, body scrolls naturally ---
   The !important on align-items ensures the auth-wrap is centered
   horizontally on short pages (login), while the body scrolls for
   tall pages (register).                                           */
body.tt-auth-body main {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: clamp(1.25rem, 2.5vw, 2rem) clamp(.75rem, 2vw, 1.5rem) !important;
    overflow: visible !important;
}

/* --- Landing page: no padding on main, hero starts immediately --- */
body.tt-landing-body main {
    display: block !important;
    padding: 0 !important;
    flex: initial !important;
    min-height: auto !important;
}

/* --- Auth wrap: fills main width, two-column grid, auto height --- */
body.tt-auth-body .tt-auth-wrap {
    width: 100% !important;
    max-width: 1400px !important;
    min-height: 0 !important;
    margin: auto !important;
    display: grid !important;
    grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
}

/* --- Form side: flex-start prevents top-clipping on tall forms ---
   align-items: flex-start means the card sits at the top of the
   column and the column's natural height determines the row height  */
body.tt-auth-body .tt-auth-form-side {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 5vw, 6rem) !important;
    overflow-y: visible !important;
}

/* --- Responsive footer --- */
@media (max-width: 820px) {
    body.tt-auth-body .tt-public-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 520px) {
    body.tt-auth-body .tt-public-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    body.tt-auth-body .tt-footer-content {
        padding: 2rem 0 1rem !important;
    }
}

/* --- Responsive form: single column below 900px --- */
@media (max-width: 900px) {
    body.tt-auth-body .tt-auth-wrap {
        grid-template-columns: 1fr !important;
        max-width: 540px !important;
        margin: 0 auto !important;
    }

    body.tt-auth-body .tt-auth-form-side {
        padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2.5rem) !important;
    }
}

/* --- Dropdown chevron on public nav links --- */
.tt-public-nav a .tt-nav-chevron {
    display: inline-block;
    font-size: .62em;
    vertical-align: middle;
    margin-left: .2em;
    opacity: .55;
    transition: opacity .2s, transform .2s;
}

.tt-public-nav a:hover .tt-nav-chevron,
.tt-public-nav a:focus .tt-nav-chevron {
    opacity: .9;
    transform: translateY(1px);
}
