:root {
    --bg-main: #0B132B;
    --card-bg: rgba(28, 37, 65, 0.88);
    --primary-blue: #3A86FF;
    --accent-gold: #FFC43D;
    --success-green: #06D6A0;
    --danger-red: #EF476F;
    --text-light: #F8F9FA;
    --text-dim: #A9B4C2;
    --border-color: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 6px 24px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Tahoma', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--bg-main) 0%, #1A2E5A 50%, #0F1C3F 100%);
    color: var(--text-light);
    min-height: 100vh;
    direction: rtl;
    line-height: 1.6;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 98vh;
}

/* Header Styling */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.emblem {
    background: rgba(255, 255, 255, 0.95);
    color: #0B132B;
    font-size: 24px;
    font-weight: 800;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(255, 196, 61, 0.3);
    border: 2px solid var(--accent-gold);
    overflow: hidden;
    padding: 4px;
}

.emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.title-block h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-light);
}

.title-block p {
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 600;
}

/* Top Nav Buttons */
.top-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.nav-btn.active {
    background: var(--primary-blue);
    color: #FFF;
    box-shadow: 0 4px 12px rgba(58, 134, 255, 0.5);
    border-color: var(--primary-blue);
}

.admin-badge {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Dev Toast Notification */
.toast {
    background: linear-gradient(135deg, #1D3557, #457B9D);
    color: #FFF;
    padding: 14px 20px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-gold);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.4s ease;
}

.close-toast {
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
}

/* Main View Panels */
.view-panel {
    display: none;
    flex: 1;
}

.view-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Card & Screen Styling */
.card-box {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    max-width: 700px;
    margin: 0 auto 30px auto;
    transition: all 0.3s ease;
}

.wide-card {
    max-width: 850px;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    animation: zoomIn 0.3s ease;
}

h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-light);
}

.subtitle {
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.margin-top-medium {
    margin-top: 20px;
}

.margin-top-large {
    margin-top: 30px;
}

label {
    font-weight: 700;
    font-size: 15px;
    color: #E2E8F0;
}

input[type="text"], textarea, .custom-select {
    width: 100%;
    background: rgba(11, 19, 43, 0.75);
    border: 2px solid var(--border-color);
    color: #FFF;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus, textarea:focus, .custom-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(58, 134, 255, 0.35);
}

/* Fixed Domain Email Input - @su.edu.ly ON THE RIGHT SIDE OF THE BOX */
.domain-input-group.right-domain-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    direction: rtl; /* First element appears on far right */
}

.fixed-domain.right-positioned {
    background: linear-gradient(135deg, var(--primary-blue), #2541B2);
    color: #FFF;
    font-weight: 800;
    padding: 14px 20px;
    /* Round top-right and bottom-right corners physically in RTL */
    border-radius: 0 12px 12px 0;
    border: 2px solid var(--primary-blue);
    border-left: none;
    font-size: 16px;
    direction: ltr;
    display: inline-flex;
    align-items: center;
    height: 54px;
    user-select: none;
}

.right-domain-group input[type="text"] {
    flex: 1;
    height: 54px;
    /* Round top-left and bottom-left corners physically in RTL */
    border-radius: 12px 0 0 12px;
    border: 2px solid var(--border-color);
    border-right: 1px solid rgba(255,255,255,0.1);
    direction: ltr;
    text-align: left;
    padding: 14px 18px;
    font-weight: 700;
}

.right-domain-group input[type="text"]:focus {
    border-color: var(--primary-blue);
    border-right-color: var(--primary-blue);
    box-shadow: 0 0 12px rgba(58, 134, 255, 0.35);
    z-index: 2;
}

.field-hint {
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 700;
}

/* Profile Tables (Student Data) */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.profile-table th, .profile-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    text-align: right;
}

.profile-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
    font-weight: 800;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Modify Department Box */
.modify-box {
    background: rgba(255, 196, 61, 0.1);
    border: 2px dashed var(--accent-gold);
    border-radius: 14px;
    padding: 22px;
    margin-top: 18px;
    animation: fadeIn 0.3s ease;
}

.modify-box h4 {
    color: var(--accent-gold);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.small-text {
    font-size: 14px;
    color: #E2E8F0;
    margin-bottom: 15px;
}

.choice-actions {
    display: flex;
    justify-content: flex-start;
}

.edit-dept-btn {
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    background: rgba(255, 196, 61, 0.08) !important;
    font-size: 15px !important;
    padding: 10px 22px !important;
}

.edit-dept-btn:hover {
    background: rgba(255, 196, 61, 0.2) !important;
    transform: translateY(-2px);
}

/* Buttons */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-blue), #2541B2);
    color: #FFF;
    width: 100%;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.5);
}

.success-btn {
    background: linear-gradient(135deg, var(--success-green), #049A73);
    color: #FFF;
    width: 100%;
}

.success-btn:hover {
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.5);
    transform: translateY(-2px);
}

.amber-btn {
    background: linear-gradient(135deg, var(--accent-gold), #D49600);
    color: #0B132B;
    width: 100%;
}

.amber-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 196, 61, 0.5);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* Status Pills (Traffic Light UI) */
.status-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.green-pill { background: rgba(6, 214, 160, 0.2); color: var(--success-green); border: 1px solid var(--success-green); }
.amber-pill { background: rgba(255, 196, 61, 0.2); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.blue-pill  { background: rgba(58, 134, 255, 0.2); color: #87BFFF; border: 1px solid var(--primary-blue); }

/* Checkbox / Acknowledgment */
.ack-box {
    background: rgba(255, 196, 61, 0.1);
    border: 1px dashed var(--accent-gold);
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
}

.checkbox-container input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

/* OTP Screens */
.masked-email-display {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--primary-blue);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    direction: ltr;
    margin: 15px 0;
    color: var(--accent-gold);
}

.otp-input {
    text-align: center;
    letter-spacing: 12px;
    font-size: 24px;
    font-weight: 800;
    direction: ltr;
}

.otp-timer-block {
    text-align: center;
    font-size: 14px;
    color: var(--text-dim);
    margin: 15px 0;
}

/* Celebrations & Success */
.center-text {
    text-align: center;
}

.celebration-icon, .error-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.success-desc, .error-desc {
    font-size: 16px;
    margin-bottom: 25px;
    color: #E2E8F0;
}

.info-card {
    background: rgba(6, 214, 160, 0.15);
    border: 1px solid var(--success-green);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.info-card a {
    color: #FFF;
    font-weight: 800;
    text-decoration: underline;
}

.request-id-display {
    background: rgba(255, 196, 61, 0.15);
    border: 2px solid var(--accent-gold);
    padding: 20px;
    border-radius: 16px;
    margin: 20px 0 30px 0;
}

.request-id-display h3 {
    font-size: 28px;
    color: var(--accent-gold);
    margin: 8px 0;
    direction: ltr;
}

/* Admin Dashboard Styling */
.admin-top-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.refresh-btn {
    background: var(--accent-gold);
    color: #0B132B;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.module-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 4px 14px;
    align-items: center;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(28, 37, 65, 0.86);
    color: var(--text-light);
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    background: rgba(58, 134, 255, .14);
}

.module-card .module-icon {
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--accent-gold);
    color: #0B132B;
    font-weight: 900;
    font-size: 21px;
}

.module-card strong { font-size: 16px; }
.module-card small { color: var(--text-muted); line-height: 1.6; }
.module-card.active-module { border-color: var(--accent-gold); }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: rgba(28, 37, 65, 0.9);
    border: 2px solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.kpi-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    background: rgba(58, 134, 255, 0.15);
}

.kpi-num {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 5px;
}

.kpi-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-light);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.data-table th, .data-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--accent-gold);
    font-weight: 800;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.action-table td button {
    padding: 6px 12px;
    margin: 0 4px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

.btn-approve { background: var(--success-green); color: #FFF; }
.btn-reject { background: var(--danger-red); color: #FFF; }

/* Status Checker */
.search-flex {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.search-flex input {
    flex: 1;
}

.search-flex button {
    width: auto;
}

.status-result {
    margin-top: 30px;
}

.status-box {
    background: rgba(58, 134, 255, 0.15);
    border-right: 5px solid var(--primary-blue);
    padding: 15px;
    font-size: 18px;
    font-weight: 800;
    border-radius: 8px;
    margin: 15px 0;
}

.hidden {
    display: none !important;
}

.missing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.missing-form-grid .full-width {
    grid-column: 1 / -1;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    left: -10000px !important;
}

.timeline-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    border-right: 3px solid #1f5ca8;
}

.timeline-list li {
    margin: 0 12px 12px 0;
    padding: 10px 14px;
    background: #f5f8fc;
    border-radius: 8px;
}

@media (max-width: 720px) {
    .missing-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.main-footer {
    margin-top: auto;
    text-align: center;
    padding: 25px;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 700;
    border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .search-flex {
        flex-direction: column;
    }
    .action-btn {
        width: 100%;
    }
}

/* ========================================================================== 
   University institutional theme
   ========================================================================== */
:root {
    --bg-main: #f3f5f7;
    --card-bg: #ffffff;
    --primary-blue: #123a63;
    --primary-blue-hover: #0b2d50;
    --accent-gold: #b78a2a;
    --accent-gold-light: #f7f1e4;
    --success-green: #19764c;
    --danger-red: #b42318;
    --text-light: #172333;
    --text-dim: #5e6b78;
    --border-color: #dce2e8;
    --shadow-sm: 0 8px 24px rgba(18, 43, 70, 0.07);
}

* {
    font-family: Tahoma, Arial, sans-serif;
}

html {
    background: var(--bg-main);
}

body {
    background: var(--bg-main);
    color: var(--text-light);
    min-width: 320px;
    line-height: 1.75;
}

button,
input,
select,
textarea {
    font: inherit;
}

.institution-bar {
    width: 100%;
    background: #0d2f52;
    color: #fff;
    border-bottom: 3px solid var(--accent-gold);
    font-size: 12px;
}

.institution-bar-inner {
    max-width: 1240px;
    min-height: 34px;
    padding: 0 24px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.app-container {
    max-width: 1240px;
    min-height: calc(100vh - 37px);
    padding: 0 24px 24px;
}

.main-header {
    position: relative;
    align-items: stretch;
    background: #fff;
    backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 18px 24px 0;
    margin-bottom: 38px;
    box-shadow: 0 4px 18px rgba(18, 43, 70, 0.06);
}

.logo-area {
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
}

.emblem {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    padding: 5px;
    background: #fff;
    border: 1px solid #d9c18b;
    border-radius: 8px;
    box-shadow: none;
}

.brand-kicker,
.section-label {
    display: block;
    color: var(--accent-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 2px;
}

.title-block h1 {
    color: var(--primary-blue);
    font-size: 23px;
    line-height: 1.35;
    font-weight: 800;
}

.title-block p {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 400;
}

.top-nav {
    align-self: flex-end;
    align-items: flex-end;
    gap: 3px;
    margin-top: auto;
}

.nav-btn {
    position: relative;
    min-height: 48px;
    padding: 12px 17px;
    background: transparent;
    color: #445363;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    font-weight: 700;
    transition: color .18s ease, background-color .18s ease;
}

.nav-btn::after {
    content: "";
    position: absolute;
    right: 16px;
    left: 16px;
    bottom: 0;
    height: 3px;
    background: transparent;
}

.nav-btn:hover {
    color: var(--primary-blue);
    background: #f7f9fb;
    transform: none;
}

.nav-btn.active {
    color: var(--primary-blue);
    background: #f7f9fb;
    border: 0;
    box-shadow: none;
}

.nav-btn.active::after {
    background: var(--accent-gold);
}

.admin-badge {
    color: #5c6874;
    border: 0;
}

.view-panel.active {
    animation: institutionalFade .18s ease-out;
}

.card-box {
    position: relative;
    max-width: 740px;
    margin: 0 auto 36px;
    padding: 36px 40px 38px;
    background: #fff;
    backdrop-filter: none;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-gold);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--text-light);
    transition: none;
}

.wide-card {
    max-width: 980px;
}

.screen.active {
    animation: institutionalFade .18s ease-out;
}

.card-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e7ebef;
}

h2 {
    margin: 0 0 8px;
    color: var(--primary-blue);
    font-size: 25px;
    line-height: 1.45;
    font-weight: 800;
}

h3,
h4 {
    color: var(--primary-blue);
}

.subtitle,
.inst-text,
.success-desc,
.error-desc,
.small-text {
    color: var(--text-dim);
    font-weight: 400;
}

.form-group {
    gap: 7px;
    margin-bottom: 21px;
}

label {
    color: #26384a;
    font-size: 14px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
.custom-select,
select {
    min-height: 52px;
    width: 100%;
    padding: 12px 14px;
    background: #fff;
    color: #172333;
    border: 1px solid #bdc8d2;
    border-radius: 7px;
    outline: 0;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8b96a1;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus,
.custom-select:focus,
select:focus {
    border-color: #32658f;
    box-shadow: 0 0 0 3px rgba(50, 101, 143, .12);
}

.action-btn {
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease;
}

.action-btn:hover {
    transform: none;
    box-shadow: none;
}

.primary-btn {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.primary-btn:hover {
    background: var(--primary-blue-hover);
    border-color: var(--primary-blue-hover);
}

.secondary-btn,
.text-btn {
    background: #fff !important;
    color: var(--primary-blue) !important;
    border-color: #b8c4ce !important;
}

.secondary-btn:hover,
.text-btn:hover {
    background: #f5f7f9 !important;
    border-color: #8fa0af !important;
}

.success-btn {
    background: var(--success-green);
    color: #fff;
    border-color: var(--success-green);
}

.amber-btn {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.btn-icon {
    font-family: Arial, sans-serif;
    font-size: 17px;
}

.btn-group {
    gap: 10px;
}

.privacy-note {
    margin: 17px 2px 0;
    color: #71808d;
    font-size: 12px;
    line-height: 1.7;
}

.toast {
    max-width: 900px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    background: #fff8e8;
    color: #624b17;
    border: 1px solid #ead59e;
    border-right: 4px solid var(--accent-gold);
    border-left: 1px solid #ead59e;
    border-radius: 7px;
    box-shadow: none;
}

.close-toast {
    color: #624b17;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: 5px 11px;
    margin-bottom: 17px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.blue-pill {
    color: #174f7a;
    background: #eef6fc;
    border: 1px solid #c9deed;
}

.green-pill {
    color: #17623f;
    background: #eef8f2;
    border: 1px solid #c8e5d5;
}

.amber-pill {
    color: #795b17;
    background: #fbf6e9;
    border: 1px solid #e7d7a9;
}

.masked-email-display,
.request-id-box {
    padding: 13px 16px;
    margin: 17px 0 24px;
    background: #f3f7fa;
    color: var(--primary-blue);
    border: 1px solid #d3dde6;
    border-radius: 7px;
    box-shadow: none;
    font-weight: 700;
    direction: ltr;
}

.otp-input {
    max-width: 360px;
    margin-inline: auto;
    color: var(--primary-blue) !important;
    background: #fff !important;
    border: 1px solid #aebbc6 !important;
    letter-spacing: 10px;
    box-shadow: none !important;
}

.otp-timer-block {
    color: var(--text-dim);
}

.domain-input-group.right-domain-group {
    direction: rtl;
}

.fixed-domain.right-positioned {
    height: 52px;
    padding: 12px 17px;
    color: #fff;
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    border-radius: 0 7px 7px 0;
}

.right-domain-group input[type="text"] {
    height: 52px;
    color: #172333;
    background: #fff;
    border-color: #bdc8d2;
    border-radius: 7px 0 0 7px;
}

.field-hint {
    color: #667481;
    font-size: 12px;
    font-weight: 400;
}

.profile-table,
.data-table {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.profile-table th,
.profile-table td,
.data-table th,
.data-table td {
    padding: 13px 16px;
    color: #26384a;
    border-bottom: 1px solid #e4e9ed;
    font-size: 14px;
}

.profile-table th {
    background: #f6f8fa;
    color: #405366;
    border-left-color: #e4e9ed;
}

.profile-table td[style] {
    color: #172333 !important;
}

.profile-table tr:hover,
.data-table tbody tr:hover {
    background: #f8fafb;
}

.data-table th {
    background: #eef2f5;
    color: var(--primary-blue);
}

.modify-box,
.instruction-box,
.info-banner,
.ack-box,
.acknowledgment-box {
    padding: 18px;
    background: #fbf8f0;
    color: #3d4650;
    border: 1px solid #e5d7b5;
    border-radius: 8px;
}

.modify-box {
    border-style: solid;
}

.modify-box h4 {
    color: #6b521b;
}

.ack-box,
.acknowledgment-box {
    background: #f6f8fa;
    border-color: #dce2e8;
}

.checkbox-container,
.ack-text {
    color: #324455;
}

.status-symbol {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font: 700 28px/1 Arial, sans-serif;
}

.success-symbol {
    color: #17623f;
    background: #edf8f2;
    border: 1px solid #b8ddc8;
}

.warning-symbol {
    color: #8b6514;
    background: #fff8e8;
    border: 1px solid #e5d09c;
}

.request-id-display {
    padding: 20px;
    background: #f6f8fa;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
}

.request-id-display h3 {
    color: var(--primary-blue);
}

.search-flex {
    align-items: stretch;
}

.search-flex .action-btn {
    min-width: 120px;
}

.status-box {
    background: #eef5fa;
    color: var(--primary-blue);
    border: 1px solid #cfdee9;
    border-right: 4px solid var(--primary-blue);
    border-radius: 7px;
}

.timeline-list {
    border-right-color: #9fb4c6;
}

.timeline-list li {
    background: #f6f8fa;
    color: #2e4051;
    border: 1px solid #e1e7eb;
    border-radius: 7px;
}

.admin-top-banner {
    max-width: 1180px;
    margin: 0 auto 22px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--accent-gold);
    border-radius: 8px;
}

.admin-top-banner h2 {
    font-size: 21px;
}

.refresh-btn {
    padding: 9px 15px;
    color: #fff;
    background: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.logout-btn {
    color: #6d2520;
    background: #fff;
    border-color: #d9b8b4;
}

.kpi-grid {
    max-width: 1180px;
    margin: 0 auto 28px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.kpi-card {
    min-height: 132px;
    padding: 20px;
    text-align: right;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(18, 43, 70, .05);
}

.kpi-card:hover {
    background: #fbfcfd;
    border-color: #9aabb9;
    transform: none;
}

.kpi-num {
    color: var(--primary-blue);
    font-size: 31px;
    line-height: 1.25;
}

.kpi-label {
    color: #536372;
    font-size: 13px;
    font-weight: 700;
}

.queue-header {
    border-bottom-color: #e2e7eb;
}

.btn-approve {
    background: var(--success-green);
    color: #fff;
}

.btn-reject {
    background: var(--danger-red);
    color: #fff;
}

.main-footer {
    margin-top: auto;
    padding: 24px 12px 10px;
    color: #6b7884;
    border-top: 1px solid #d9e0e6;
    font-size: 12px;
    font-weight: 400;
}

@keyframes institutionalFade {
    from { opacity: 0; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
    .main-header {
        align-items: flex-start;
        padding: 16px 18px 0;
    }

    .top-nav {
        width: 100%;
        justify-content: stretch;
    }

    .nav-btn {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .institution-bar-inner {
        padding: 0 15px;
    }

    .institution-bar-inner span:last-child {
        display: none;
    }

    .app-container {
        padding: 0 12px 18px;
    }

    .main-header {
        margin-bottom: 22px;
    }

    .logo-area {
        width: 100%;
    }

    .emblem {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .title-block h1 {
        font-size: 19px;
    }

    .top-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
        gap: 0;
    }

    .nav-btn {
        min-width: 0;
        min-height: 50px;
        padding: 9px 5px;
        font-size: 11px;
        line-height: 1.45;
        white-space: normal;
    }

    .card-box {
        padding: 27px 20px 29px;
        border-radius: 9px;
    }

    h2 {
        font-size: 21px;
    }

    .btn-group,
    .search-flex {
        flex-direction: column;
    }

    .profile-table th,
    .profile-table td {
        min-width: 150px;
    }

    .admin-top-banner {
        align-items: flex-start;
    }
}
