/*
 * SPS Candidate Portal — Main Stylesheet
 * Brand colors from shyam-theme/style.css:
 *   Primary:   #002970
 *   Secondary: #0052D4
 *   Accent:    #00BAF2
 *   Orange:    #FF6C37
 *   Font:      Poppins
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ══════════════════════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════════════════════ */
:root {
    --sps-primary:      #002970;
    --sps-secondary:    #0052D4;
    --sps-accent:       #00BAF2;
    --sps-orange:       #FF6C37;
    --sps-bg:           #f0f4f8;
    --sps-surface:      #ffffff;
    --sps-border:       #e8eef5;
    --sps-text:         #1a202c;
    --sps-text-sub:     #475569;
    --sps-muted:        #94a3b8;
    --sps-success:      #16a34a;
    --sps-error:        #dc2626;
    --sps-warning:      #d97706;
    --sps-info:         #1d4ed8;
    --sps-font:         'Poppins', sans-serif;
    --sps-radius:       12px;
    --sps-radius-sm:    8px;
    --sps-shadow:       0 2px 12px rgba(0,0,0,0.07);
    --sps-shadow-md:    0 4px 20px rgba(0,0,0,0.10);
    --sps-shadow-lg:    0 8px 40px rgba(0,0,0,0.14);
    --sps-grad:         linear-gradient(135deg, #002970 0%, #0052D4 60%, #00BAF2 100%);
    --sps-navbar-h:     84px;
    --sps-sidebar-w:    260px;
    --sps-sidebar-w-c:  72px;
    --sps-tab-h:        60px;
    --sps-transition:   0.2s ease;
}

/* ══════════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--sps-font);
    background: var(--sps-bg);
    color: var(--sps-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--sps-font); cursor: pointer; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea { font-family: var(--sps-font); }

/* ══════════════════════════════════════════════════════════
   TOP NAVBAR
══════════════════════════════════════════════════════════ */
.sps-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--sps-navbar-h);
    background: var(--sps-surface);
    border-bottom: 1px solid var(--sps-border);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
}
.sps-navbar__inner {
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.sps-navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.sps-navbar__logo-img { height: 76px; max-height: calc(var(--sps-navbar-h) - 4px); width: auto; object-fit: contain; object-position: left center; }
.sps-navbar__logo-text {
    width: 36px; height: 36px;
    background: var(--sps-grad);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.sps-navbar__logo-label { display: flex; flex-direction: column; line-height: 1.2; }
.sps-navbar__logo-name { font-size: 13px; font-weight: 700; color: var(--sps-primary); }
.sps-navbar__logo-sub  { font-size: 10px; color: var(--sps-muted); }
.sps-navbar__right { display: flex; align-items: center; gap: 8px; }
.sps-navbar__icon-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--sps-bg);
    color: var(--sps-text-sub);
    display: flex; align-items: center; justify-content: center;
    position: relative;
    transition: background var(--sps-transition), color var(--sps-transition);
}
.sps-navbar__icon-btn:hover { background: var(--sps-border); color: var(--sps-primary); }
.sps-navbar__bell-dot {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--sps-error);
    border-radius: 50%;
    border: 2px solid var(--sps-surface);
}
.sps-navbar__user { position: relative; overflow: visible; }
.sps-navbar__avatar-btn {
    display: flex; align-items: center; gap: 6px;
    border: none; background: none; padding: 4px;
    border-radius: 40px;
    transition: background var(--sps-transition);
}
.sps-navbar__avatar-btn:hover { background: var(--sps-bg); }
.sps-navbar__avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--sps-grad);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.sps-navbar__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sps-navbar__avatar-init { font-size: 14px; font-weight: 700; color: #fff; }
.sps-navbar__chevron { color: var(--sps-text-sub); transition: transform 0.2s; }
.sps-navbar__avatar-btn[aria-expanded="true"] .sps-navbar__chevron { transform: rotate(180deg); }
.sps-navbar__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: 230px;
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.20);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 99999;
    overflow: hidden;
}
.sps-navbar__dropdown--open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.sps-navbar__dropdown-header {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--sps-border);
}
.sps-navbar__dropdown-name { font-size: 13px; font-weight: 700; color: var(--sps-text); }
.sps-navbar__dropdown-sub  { font-size: 11px; color: var(--sps-muted); margin-top: 2px; }
.sps-navbar__dropdown-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    font-size: 13px; font-weight: 500;
    color: var(--sps-text-sub);
    text-decoration: none;
    background: none; border: none; width: 100%; text-align: left;
    transition: background var(--sps-transition), color var(--sps-transition);
    cursor: pointer;
}
.sps-navbar__dropdown-item:hover { background: var(--sps-bg); color: var(--sps-primary); }
.sps-navbar__dropdown-item--danger { color: var(--sps-error); }
.sps-navbar__dropdown-item--danger:hover { background: #fef2f2; color: var(--sps-error); }
.sps-navbar__hamburger {
    width: 38px; height: 38px;
    border-radius: var(--sps-radius-sm);
    border: 1.5px solid var(--sps-border);
    background: none;
    color: var(--sps-primary);
    display: none;
    align-items: center; justify-content: center;
    transition: background var(--sps-transition);
}
.sps-navbar__hamburger:hover { background: var(--sps-bg); }

/* ══════════════════════════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════════════════════════ */
.sps-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1100;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
.sps-drawer-overlay--visible { opacity: 1; pointer-events: all; }
.sps-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: 280px;
    background: var(--sps-surface);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex; flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
}
.sps-drawer--open { transform: translateX(0); }
.sps-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 16px 16px;
    padding-top: calc(20px + env(safe-area-inset-top));
    border-bottom: 1px solid var(--sps-border);
    flex-shrink: 0;
}
.sps-drawer__user { display: flex; align-items: center; gap: 10px; }
.sps-drawer__avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--sps-grad);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
    color: #fff; font-weight: 700; font-size: 16px;
}
.sps-drawer__avatar-img { width: 100%; height: 100%; object-fit: cover; }
.sps-drawer__user-name { font-size: 13px; font-weight: 700; color: var(--sps-text); }
.sps-drawer__user-id   { font-size: 11px; color: var(--sps-muted); margin-top: 1px; }
.sps-drawer__brand { font-size: 15px; font-weight: 700; color: var(--sps-primary); }
.sps-drawer__close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--sps-bg); border: none;
    color: var(--sps-text-sub);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--sps-transition);
}
.sps-drawer__close:hover { background: var(--sps-border); }
.sps-drawer__nav { flex: 1; overflow-y: auto; padding: 8px 0; }
.sps-drawer__item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    font-size: 14px; font-weight: 500;
    color: var(--sps-text-sub);
    text-decoration: none;
    background: none; border: none; width: 100%; text-align: left;
    transition: background var(--sps-transition), color var(--sps-transition);
    cursor: pointer;
}
.sps-drawer__item:hover { background: var(--sps-bg); color: var(--sps-primary); }
.sps-drawer__item--primary { color: var(--sps-primary); font-weight: 600; }
.sps-drawer__item--danger  { color: var(--sps-error); }
.sps-drawer__item--danger:hover { background: #fef2f2; }
.sps-drawer__divider { height: 1px; background: var(--sps-border); margin: 6px 0; }

/* ══════════════════════════════════════════════════════════
   DESKTOP SIDEBAR
══════════════════════════════════════════════════════════ */
.sps-sidebar {
    position: fixed;
    top: var(--sps-navbar-h);
    left: 0;
    bottom: 0;
    width: var(--sps-sidebar-w);
    background: var(--sps-surface);
    border-right: 1px solid var(--sps-border);
    display: flex; flex-direction: column;
    z-index: 900;
    transition: width 0.25s ease;
    overflow: hidden;
}
.sps-sidebar--collapsed { width: var(--sps-sidebar-w-c); }
.sps-sidebar__nav { flex: 0 0 auto; overflow-y: auto; overflow-x: hidden; padding: 12px 8px; }
.sps-sidebar__item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border-radius: var(--sps-radius-sm);
    font-size: 13px; font-weight: 500;
    color: var(--sps-text-sub);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--sps-transition), color var(--sps-transition);
    border-left: 3px solid transparent;
    position: relative;
}
.sps-sidebar__item:hover {
    background: rgba(0,41,112,0.05);
    color: var(--sps-primary);
}
.sps-sidebar__item--active {
    background: rgba(0,41,112,0.08);
    color: var(--sps-primary);
    font-weight: 600;
    border-left-color: var(--sps-primary);
}
.sps-sidebar__item-icon { flex-shrink: 0; display: flex; align-items: center; }
.sps-sidebar__item-label { overflow: hidden; transition: opacity 0.2s; }
.sps-sidebar--collapsed .sps-sidebar__item-label { opacity: 0; width: 0; }

/* Sidebar promo banner */
.sps-sidebar__banner {
    margin: 8px 12px; border-radius: 12px; overflow: hidden;
    transition: opacity 0.2s, max-height 0.2s;
}
.sps-sidebar--collapsed .sps-sidebar__banner { opacity: 0; max-height: 0; margin: 0; pointer-events: none; flex: 0; }
.sps-sidebar__banner-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.sps-sidebar__banner-placeholder {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; text-align: center; padding: 20px 12px;
    border: 1.5px dashed var(--sps-border); border-radius: 12px;
    width: 100%; flex: 1; min-height: 180px;
    color: var(--sps-muted); background: var(--sps-bg);
}
.sps-sidebar__banner-placeholder span { font-size: 12px; font-weight: 700; color: var(--sps-text-sub); }
.sps-sidebar__banner-placeholder small { font-size: 10px; line-height: 1.4; }

.sps-sidebar__toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--sps-border);
    background: none; border-left: none; border-right: none; border-bottom: none;
    font-size: 12px; font-weight: 600; color: var(--sps-muted);
    white-space: nowrap; overflow: hidden;
    transition: color var(--sps-transition), background var(--sps-transition);
    cursor: pointer; width: 100%;
}
.sps-sidebar__toggle:hover { color: var(--sps-primary); background: var(--sps-bg); }
.sps-sidebar__toggle-icon { flex-shrink: 0; transition: transform 0.25s; }
.sps-sidebar--collapsed .sps-sidebar__toggle-icon { transform: rotate(180deg); width: 20px; height: 20px; }
.sps-sidebar--collapsed .sps-sidebar__toggle-label { opacity: 0; width: 0; overflow: hidden; }
.sps-sidebar--collapsed .sps-sidebar__toggle {
    padding: 16px 0; color: var(--sps-primary);
    background: var(--sps-bg);
    position: relative;
}
.sps-sidebar--collapsed .sps-sidebar__toggle::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%; transform: translateY(-50%);
    background: #1a202c; color: #fff;
    padding: 5px 10px; border-radius: 6px;
    font-size: 12px; font-weight: 500; white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s; z-index: 999;
}
.sps-sidebar--collapsed .sps-sidebar__toggle:hover::after { opacity: 1; }

/* Tooltip on collapsed sidebar items */
.sps-sidebar--collapsed .sps-sidebar__item::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%; transform: translateY(-50%);
    background: #1a202c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s;
    z-index: 999;
}
.sps-sidebar--collapsed .sps-sidebar__item:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   MAIN LAYOUT WRAPPER
══════════════════════════════════════════════════════════ */
.sps-portal-layout {
    display: flex;
    padding-top: var(--sps-navbar-h);
    min-height: 100vh;
}
.sps-portal-main {
    flex: 1;
    margin-left: var(--sps-sidebar-w);
    padding: 28px 28px 40px;
    min-width: 0;
    transition: margin-left 0.25s ease;
}
.sps-sidebar--collapsed ~ .sps-portal-main,
.sps-sidebar--collapsed + .sps-portal-main {
    margin-left: var(--sps-sidebar-w-c);
}

/* ══════════════════════════════════════════════════════════
   BOTTOM TAB BAR (mobile)
══════════════════════════════════════════════════════════ */
.sps-bottom-tabs {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(var(--sps-tab-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--sps-surface);
    border-top: 1px solid var(--sps-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    z-index: 900;
    align-items: stretch;
    justify-content: space-around;
}
.sps-tab-item {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    flex: 1 1 0; min-width: 0;
    gap: 3px;
    text-decoration: none;
    color: var(--sps-muted);
    font-size: 10px; font-weight: 500;
    position: relative;
    transition: color var(--sps-transition);
    padding: 6px 2px 0;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}
.sps-tab-item:active { transform: scale(0.95); }
.sps-tab-item__indicator {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px;
    background: var(--sps-primary);
    border-radius: 0 0 4px 4px;
    transition: width 0.2s ease;
}
.sps-tab-item--active { color: var(--sps-primary); }
.sps-tab-item--active .sps-tab-item__indicator { width: 24px; }
.sps-tab-item__icon { display: flex; align-items: center; justify-content: center; }
.sps-tab-item__label { line-height: 1; }

/* ══════════════════════════════════════════════════════════
   CARDS & COMMON COMPONENTS
══════════════════════════════════════════════════════════ */
.sps-card {
    background: var(--sps-surface);
    border-radius: var(--sps-radius);
    box-shadow: var(--sps-shadow);
    border: 1px solid var(--sps-border);
    padding: 24px;
    transition: box-shadow var(--sps-transition), transform var(--sps-transition);
}
.sps-card:hover { box-shadow: var(--sps-shadow-md); }
.sps-card__title {
    font-size: 16px; font-weight: 700; color: var(--sps-text);
    margin-bottom: 16px;
    display: flex; align-items: center; justify-content: space-between;
}
.sps-card__title-link {
    font-size: 13px; font-weight: 600; color: var(--sps-primary);
    text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.sps-card__title-link:hover { color: var(--sps-secondary); }

/* ══════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════ */
.sps-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.sps-stat-card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 20px;
    display: flex; flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--sps-transition), transform var(--sps-transition);
    cursor: default;
}
.sps-stat-card:hover { box-shadow: var(--sps-shadow-md); transform: translateY(-2px); }
/* Clickable stat cards — <a> tag wraps card */
a.sps-stat-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
a.sps-stat-card--link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,41,112,0.14);
    border-color: var(--sps-primary);
}
a.sps-stat-card--link:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0,41,112,0.10);
}
.sps-stat-card__accent {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px;
}
.sps-stat-card__icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sps-stat-card__num {
    font-size: 32px; font-weight: 800; color: var(--sps-text); line-height: 1;
}
.sps-stat-card__label { font-size: 13px; color: var(--sps-text-sub); font-weight: 500; }
/* individual stat colors */
.sps-stat-card--apps    .sps-stat-card__icon-wrap { background: rgba(0,41,112,0.08);   color: var(--sps-primary);   }
.sps-stat-card--apps    .sps-stat-card__accent    { background: var(--sps-primary);    }
.sps-stat-card--views   .sps-stat-card__icon-wrap { background: rgba(0,186,242,0.10);  color: var(--sps-accent);    }
.sps-stat-card--views   .sps-stat-card__accent    { background: var(--sps-accent);     }
.sps-stat-card--pending .sps-stat-card__icon-wrap { background: rgba(180,83,9,0.10);   color: #b45309;              }
.sps-stat-card--pending .sps-stat-card__accent    { background: #b45309;               }
.sps-stat-card--coins   .sps-stat-card__icon-wrap { background: rgba(217,119,6,0.10);  color: var(--sps-warning);   }
.sps-stat-card--coins   .sps-stat-card__accent    { background: var(--sps-warning);    }
.sps-stat-card--refs    .sps-stat-card__icon-wrap { background: rgba(22,163,74,0.10);  color: var(--sps-success);   }
.sps-stat-card--refs    .sps-stat-card__accent    { background: var(--sps-success);    }

/* ══════════════════════════════════════════════════════════
   WELCOME CARD
══════════════════════════════════════════════════════════ */
.sps-welcome-card {
    background: linear-gradient(135deg, rgba(0,41,112,0.04) 0%, rgba(0,82,212,0.05) 50%, rgba(0,186,242,0.06) 100%);
    border: 1px solid rgba(0,41,112,0.10);
    border-radius: var(--sps-radius);
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.sps-welcome-card__left h2 {
    font-size: 20px; font-weight: 800; color: var(--sps-primary);
    margin-bottom: 4px;
}
.sps-welcome-card__left p { font-size: 13px; color: var(--sps-text-sub); }
.sps-progress-ring { flex-shrink: 0; }
.sps-progress-ring__circle-bg { fill: none; stroke: var(--sps-border); stroke-width: 5; }
.sps-progress-ring__circle { fill: none; stroke: var(--sps-primary); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1s ease; }
.sps-progress-ring__text { font-family: var(--sps-font); font-size: 14px; font-weight: 800; fill: var(--sps-primary); text-anchor: middle; dominant-baseline: central; }

/* ══════════════════════════════════════════════════════════
   SKELETON LOADERS
══════════════════════════════════════════════════════════ */
@keyframes sps-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.sps-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e8eef5 50%, #f1f5f9 75%);
    background-size: 800px 100%;
    animation: sps-shimmer 1.6s infinite linear;
    border-radius: 6px;
}
.sps-skeleton-card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 20px;
}
.sps-skeleton-line { height: 12px; margin-bottom: 10px; border-radius: 4px; }
.sps-skeleton-line--w100 { width: 100%; }
.sps-skeleton-line--w75  { width: 75%; }
.sps-skeleton-line--w50  { width: 50%; }
.sps-skeleton-line--w30  { width: 30%; }
.sps-skeleton-line--h20  { height: 20px; }
.sps-skeleton-overlay {
    position: relative;
    overflow: hidden;
}
.sps-skeleton-overlay__text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.80);
    font-size: 13px; font-weight: 600; color: var(--sps-text-sub);
    border-radius: var(--sps-radius);
    text-align: center; padding: 12px;
}

/* ══════════════════════════════════════════════════════════
   PLACEHOLDER SECTIONS
══════════════════════════════════════════════════════════ */
.sps-placeholder-section {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.sps-placeholder-card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 20px; overflow: hidden;
}
.sps-notif-placeholder { display: flex; flex-direction: column; gap: 1px; }
.sps-notif-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sps-border);
}
.sps-notif-item:last-child { border-bottom: none; }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.sps-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px;
    border-radius: var(--sps-radius-sm);
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.sps-btn:active { transform: scale(0.97); }
.sps-btn--primary {
    background: var(--sps-primary); color: #fff;
    box-shadow: 0 2px 8px rgba(0,41,112,0.25);
}
.sps-btn--primary:hover { background: var(--sps-secondary); box-shadow: 0 4px 16px rgba(0,41,112,0.30); transform: translateY(-1px); }
.sps-btn--outline {
    background: transparent; color: var(--sps-primary);
    border: 1.5px solid var(--sps-primary);
}
.sps-btn--outline:hover { background: rgba(0,41,112,0.05); }
.sps-btn--full { width: 100%; }
.sps-btn--loading { pointer-events: none; opacity: 0.75; }

/* Loading spinner inside button */
.sps-btn__spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sps-spin 0.7s linear infinite;
    display: none;
}
.sps-btn--loading .sps-btn__spinner { display: block; }
.sps-btn--loading .sps-btn__label  { display: none; }
@keyframes sps-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.sps-login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    background: #fff;
}
/* Left panel — blue split, visible on tablet+desktop, hidden only on small phones */
.sps-login-left {
    width: 42%;
    min-width: 200px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sps-grad);
    display: flex; flex-direction: column;
    justify-content: center;
    align-items: stretch;
}
.sps-login-left__overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.sps-login-left__content {
    position: relative; z-index: 1;
    padding: 32px 28px;
    color: #fff;
    height: 100%;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    text-align: left;
    gap: 0;
}
.sps-login-left__illustration {
    max-width: 260px; width: 80%; height: auto; object-fit: contain;
    margin-bottom: 24px; align-self: center;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.25));
}
.sps-login-left__tagline {
    font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 20px;
    white-space: normal; color: #fff;
}
.sps-login-left__features { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; width: 100%; }
.sps-login-left__feature {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.92);
    white-space: nowrap;
}
.sps-login-left__feature-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sps-login-left__feature-icon svg { width: 18px; height: 18px; }
/* Right panel */
.sps-login-right {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
    overflow-y: auto;
    background: #fff;
}
.sps-login-form-card {
    width: 100%; max-width: 420px;
}
.sps-login-form-card__logo { margin-bottom: 24px; text-align: center; }
.sps-login-form-card__logo img { height: 64px; margin: 0 auto 8px; }
.sps-login-form-card__title {
    font-size: 24px; font-weight: 800; color: var(--sps-text);
    margin-bottom: 4px;
}
.sps-login-form-card__sub { font-size: 13px; color: var(--sps-muted); margin-bottom: 28px; }

/* Identifier type pills */
.sps-id-pills {
    display: flex; gap: 6px; margin-bottom: 20px;
    background: var(--sps-bg);
    padding: 4px; border-radius: 10px;
}
.sps-id-pill {
    flex: 1; padding: 9px 6px;
    font-size: 12px; font-weight: 600;
    border: none; background: transparent; border-radius: 7px;
    cursor: pointer; color: var(--sps-text-sub);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.sps-id-pill--active {
    background: var(--sps-surface);
    color: var(--sps-primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

/* Auth mode tabs */
.sps-auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 2px solid var(--sps-border); }
.sps-auth-tab {
    flex: 1; padding: 10px 8px;
    font-size: 13px; font-weight: 600;
    border: none; background: none; cursor: pointer;
    color: var(--sps-muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.sps-auth-tab--active { color: var(--sps-primary); border-bottom-color: var(--sps-primary); }

/* Floating label input */
.sps-field {
    position: relative;
    margin-bottom: 16px;
}
.sps-field__input {
    width: 100%;
    padding: 16px 14px 8px;
    border: 1.5px solid var(--sps-border);
    border-radius: var(--sps-radius-sm);
    font-size: 14px; color: var(--sps-text);
    background: var(--sps-surface);
    transition: border-color 0.2s;
    outline: none;
    -webkit-appearance: none;
}
.sps-field__input:focus { border-color: var(--sps-primary); }
.sps-field__label {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: var(--sps-muted); font-weight: 500;
    pointer-events: none;
    transition: top 0.18s, font-size 0.18s, color 0.18s, transform 0.18s;
}
.sps-field__input:focus + .sps-field__label,
.sps-field__input:not(:placeholder-shown) + .sps-field__label {
    top: 8px; transform: none;
    font-size: 10px; color: var(--sps-primary); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.sps-field__input--with-icon { padding-right: 44px; }
.sps-field__icon-btn {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--sps-muted);
    cursor: pointer; padding: 4px; display: flex; align-items: center;
    transition: color 0.2s;
}
.sps-field__icon-btn:hover { color: var(--sps-primary); }
.sps-field__forgot {
    display: block; text-align: right; margin-top: -8px; margin-bottom: 16px;
    font-size: 12px; font-weight: 600; color: var(--sps-primary);
    text-decoration: none;
}
.sps-field__forgot:hover { color: var(--sps-secondary); }

/* OTP boxes — premium style */
.sps-otp-wrap { display: flex; gap: 10px; margin: 4px 0 18px; justify-content: center; }
.sps-otp-box {
    flex: 1; aspect-ratio: 1;
    min-height: 56px; min-width: 46px; max-width: 64px;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    font-size: 24px; font-weight: 800; text-align: center;
    color: var(--sps-primary); background: var(--sps-surface);
    outline: none; -webkit-appearance: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    font-family: var(--sps-font);
}
.sps-otp-box:focus {
    border-color: var(--sps-primary);
    box-shadow: 0 0 0 4px rgba(0,41,112,0.12);
    transform: translateY(-2px);
}
.sps-otp-box--filled {
    border-color: var(--sps-secondary);
    background: rgba(0,186,242,0.05);
}
.sps-otp-resend {
    text-align: center; font-size: 13px; color: var(--sps-muted); margin-bottom: 16px;
}
.sps-otp-resend a:not(.disabled) { color: var(--sps-secondary); font-weight: 700; cursor: pointer; }
.sps-otp-resend a.disabled { color: var(--sps-muted); cursor: default; pointer-events: none; }
.sps-otp-sentto {
    text-align: center; font-size: 13px; color: var(--sps-text-sub); margin-bottom: 18px;
    background: var(--sps-bg); border-radius: 10px; padding: 10px 14px;
}
.sps-otp-sentto strong { color: var(--sps-text); }

.sps-otp-resend a { color: var(--sps-primary); font-weight: 600; cursor: pointer; }
.sps-otp-resend a.disabled { color: var(--sps-muted); pointer-events: none; cursor: default; }

.sps-login-footer {
    text-align: center; margin-top: 20px;
    font-size: 13px; color: var(--sps-muted);
}
.sps-login-footer a { color: var(--sps-primary); font-weight: 600; }

/* Mobile login hero */
.sps-login-mobile-hero {
    display: none;
    width: 100%;
    /* Tall enough for logo + tagline + pills + navbar clearance */
    min-height: calc(var(--sps-navbar-h) + 200px);
    background: linear-gradient(135deg, #002970 0%, #0052D4 60%, #00BAF2 100%);
    background-size: cover; background-position: center;
    flex-shrink: 0;
    position: relative;
    overflow: visible;
}
.sps-login-mobile-hero__overlay {
    /* Start from top-0 but pad content below navbar */
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(0,20,70,0.40) 0%, rgba(0,50,160,0.12) 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    gap: 12px;
    /* top padding pushes content clear of fixed navbar */
    padding: calc(var(--sps-navbar-h) + 16px) 24px 28px;
}
/* No white card — logo shown directly on blue */
.sps-login-logo-card {
    display: contents; /* dissolve wrapper, child img flows directly */
}
.sps-login-logo-card img,
.sps-login-mobile-hero img {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    /* Remove white PNG background on blue: screen blend = white disappears */
    mix-blend-mode: screen;
}
/* Logo directly on blue hero — screen blend removes white PNG background */
.sps-hero-logo {
    height: 54px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    mix-blend-mode: screen;
}
/* Fallback text if no logo image */
.sps-hero-name {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-family: var(--sps-font);
    text-align: center;
}
.sps-login-mobile-tagline {
    color: rgba(255,255,255,0.95);
    font-size: 14px; font-weight: 700;
    text-align: center; margin: 0;
    font-family: var(--sps-font);
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.sps-login-mobile-features {
    display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
    margin-top: 0; width: 100%;
}
.sps-login-mobile-feature-pill {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.20);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px; padding: 5px 12px;
    font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,0.97);
    font-family: var(--sps-font);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   COMING SOON PAGE
══════════════════════════════════════════════════════════ */
.sps-coming-soon {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    min-height: 60vh; text-align: center; padding: 40px 20px;
}
.sps-coming-soon__illus { margin-bottom: 28px; }
.sps-coming-soon__illus img { max-width: 260px; margin: 0 auto; }
.sps-coming-soon h2 {
    font-size: 26px; font-weight: 800; color: var(--sps-text);
    margin-bottom: 8px;
}
.sps-coming-soon p { font-size: 14px; color: var(--sps-text-sub); max-width: 360px; margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════
   PORTAL FOOTER
══════════════════════════════════════════════════════════ */
.sps-portal-footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: var(--sps-muted);
    border-top: 1px solid var(--sps-border);
    margin-top: auto;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (481–1024px)
══════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    :root { --sps-navbar-h: 64px; }
    .sps-navbar__logo-img { height: 52px; max-height: 52px; }
    .sps-sidebar   { display: none; }
    .sps-portal-main { margin-left: 0 !important; padding: 20px 16px calc(var(--sps-tab-h) + env(safe-area-inset-bottom) + 24px); }
    .sps-bottom-tabs { display: flex; }
    .sps-navbar__hamburger { display: flex; }
    /* Profile dropdown: fixed on mobile so never clipped */
    .sps-navbar__dropdown {
        position: fixed !important;
        top: calc(var(--sps-navbar-h) + 6px) !important;
        right: 10px !important;
        left: auto !important;
        width: 230px !important;
        z-index: 99999 !important;
    }
    /* Keep bell icon visible on tablet/mobile — CRITICAL FIX */
    .sps-navbar__icon-btn { display: flex !important; }

    /* Login page — keep split layout on tablet, scaled */
    .sps-login-left { display: flex; width: 38%; min-width: 180px; }
    .sps-login-right { width: 62%; padding: 24px 20px; align-items: center; }
    .sps-login-page { flex-direction: row; min-height: calc(100vh - var(--sps-navbar-h)); background: #fff; }
    .sps-login-mobile-hero { display: none !important; }
    .sps-login-form-card { padding: 28px 24px; max-width: 100%; }
    .sps-login-form-card__logo { display: block; }
    .sps-login-left__tagline { font-size: 18px; }
    .sps-login-left__feature { font-size: 12px; }
    .sps-login-left__content { padding: 24px 20px; }

    .sps-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sps-placeholder-section { grid-template-columns: 1fr; }
    .sps-welcome-card { flex-direction: row; align-items: center; gap: 16px; }

    /* Job grid — 2 columns on tablet */
    .sps-jobs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .sps-jobs-grid--dash { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    :root { --sps-navbar-h: 60px; }
    .sps-navbar__logo-img { height: 46px; max-height: 46px; }
    .sps-navbar__logo-label { display: none; }
    /* Bell icon MUST stay visible on all mobile sizes */
    .sps-navbar__icon-btn { display: flex !important; width: 36px; height: 36px; }
    #spsBellBadgeCount { font-size: 8px; min-width: 14px; height: 14px; top: -3px; right: -3px; }

    /* Login page — mobile: hero top + white form below */
    .sps-login-left { display: none !important; }
    .sps-login-right {
        width: 100%;
        flex: 1;
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        background: #fff;
        overflow-y: auto;
    }
    .sps-login-page {
        flex-direction: column;
        min-height: calc(100vh - var(--sps-navbar-h));
        background: #fff;
    }
    .sps-login-mobile-hero {
        display: flex !important;
        min-height: calc(var(--sps-navbar-h) + 200px);
        height: auto;
        flex-shrink: 0;
    }
    .sps-login-form-card {
        padding: 28px 22px 40px;
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        border: none;
        background: #fff;
        width: 100%;
    }
    .sps-login-form-card__logo { display: none; }
    .sps-login-form-card__title { font-size: 22px; font-weight: 800; color: #1a202c; }
    .sps-login-form-card__sub { font-size: 13px; margin-bottom: 22px; color: var(--sps-muted); }

    /* Stat cards — 2x2 grid */
    .sps-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sps-stat-card { padding: 14px 12px; }
    .sps-stat-card__num { font-size: 22px; }
    .sps-stat-card__label { font-size: 11px; }

    /* Welcome card */
    .sps-welcome-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
    .sps-welcome-card__left h2 { font-size: 18px; }
    .sps-welcome-card__left p { font-size: 12px; }
    #spsProgressRing { width: 68px; height: 68px; }

    /* Job grid — single column on phones */
    .sps-jobs-grid { grid-template-columns: 1fr; gap: 14px; }
    .sps-jobs-grid--dash { grid-template-columns: 1fr; gap: 12px; }

    /* Job card internal layout improvements */
    .sps-job-card { padding: 16px; }
    .jobs-card-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jobs-info-list li { font-size: 12px; gap: 8px; }
    .jobs-info-list li strong { font-size: 13px; }
    .jci { width: 24px; height: 24px; min-width: 24px; font-size: 10px; }
    .jobs-card-footer { gap: 8px; }
    .jobs-apply-btn { font-size: 12px; padding: 10px 8px; gap: 5px; }
    .jobs-wa-btn { font-size: 12px; padding: 10px 8px; gap: 5px; }
    .jobs-desc-btn { font-size: 10.5px; padding: 0 10px; height: 30px; }
    .jobs-skill-tag { font-size: 10px; padding: 2px 8px; }

    /* Bell dropdown — fixed to viewport so it never crops on mobile */
    .sps-bell-dropdown {
        position: fixed !important;
        top: calc(var(--sps-navbar-h) + 4px) !important;
        left: 8px !important;
        right: 8px !important;
        bottom: auto !important;
        width: auto !important;
        max-height: 72vh;
        border-radius: 16px;
        transform: translateY(-8px) !important;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    }
    .sps-bell-dropdown--open {
        transform: translateY(0) !important;
    }

    /* Portal main padding */
    .sps-portal-main { padding: 14px 12px calc(var(--sps-tab-h) + env(safe-area-inset-bottom) + 16px); }

    /* OTP boxes */
    .sps-otp-box { min-height: 48px; min-width: 38px; font-size: 20px; border-radius: 10px; }
    .sps-id-pill { font-size: 11px; padding: 9px 4px; }

    /* Cards padding */
    .sps-card { padding: 16px; }

    /* Profile header mobile */
    .sps-profile-header { flex-direction: column; align-items: center; text-align: center; padding: 20px 16px; gap: 16px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (≤ 390px)
══════════════════════════════════════════════════════════ */
@media (max-width: 390px) {
    :root { --sps-navbar-h: 56px; }
    .sps-navbar__logo-img { height: 40px; max-height: 40px; }
    .sps-navbar__inner { padding: 0 10px; gap: 6px; }
    .sps-stat-card { padding: 12px 10px; }
    .sps-stat-card__num { font-size: 20px; }
    .jobs-apply-btn, .jobs-wa-btn { font-size: 11px; padding: 9px 6px; }
    .sps-portal-main { padding: 12px 10px calc(var(--sps-tab-h) + env(safe-area-inset-bottom) + 12px); }
    /* Bell dropdown: handled by ≤640px fixed bottom-sheet rule */
}

/* ══════════════════════════════════════════════════════════
   PHASE 2 CSS — Profile / Jobs / Applied Jobs
   Appended below all Phase 1 CSS — Phase 1 untouched
══════════════════════════════════════════════════════════ */

/* ── Font Awesome CDN (job cards use fa icons from page-jobs.php) ── */
/* loaded via <link> in each page head, not here */

/* ══════════════════════════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════════════════════════ */
.sps-profile-header {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    box-shadow: var(--sps-shadow);
    position: relative;
}
.sps-profile-header__photo-wrap {
    flex-shrink: 0;
    position: relative;
}
.sps-profile-header__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sps-border);
    display: block;
}
.sps-profile-header__photo-init {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--sps-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.sps-profile-header__change-photo {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sps-primary);
    border: 2px solid var(--sps-surface);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--sps-transition);
}
.sps-profile-header__change-photo:hover { background: var(--sps-secondary); }
.sps-profile-header__info { flex: 1; min-width: 0; }
.sps-profile-header__name {
    font-size: 22px;
    font-weight: 800;
    color: var(--sps-text);
    margin-bottom: 6px;
}
.sps-profile-header__jsid {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0,41,112,0.08);
    color: var(--sps-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.sps-profile-header__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--sps-text-sub);
    margin-bottom: 14px;
}
.sps-profile-header__contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sps-profile-header__edit-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}
/* Profile completion bar in header */
.sps-profile-comp {
    margin-top: 10px;
    max-width: 340px;
}
.sps-profile-comp__label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--sps-muted);
    margin-bottom: 5px;
    font-weight: 600;
}
.sps-profile-comp__bar {
    height: 6px;
    background: var(--sps-border);
    border-radius: 10px;
    overflow: hidden;
}
.sps-profile-comp__fill {
    height: 100%;
    background: var(--sps-grad);
    border-radius: 10px;
    transition: width 0.8s ease;
}

/* ── Profile Accordion Sections ── */
.sps-profile-section {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    margin-bottom: 14px;
    overflow: hidden;
    box-shadow: var(--sps-shadow);
}
.sps-profile-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background var(--sps-transition);
}
.sps-profile-section__head:hover { background: rgba(0,41,112,0.02); }
.sps-profile-section__head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sps-text);
}
.sps-profile-section__head-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0,41,112,0.07);
    color: var(--sps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sps-profile-section__head-right { display: flex; align-items: center; gap: 8px; }
.sps-profile-section__edit-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1.5px solid var(--sps-border);
    background: none;
    color: var(--sps-text-sub);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--sps-transition);
}
.sps-profile-section__edit-btn:hover {
    border-color: var(--sps-primary);
    color: var(--sps-primary);
    background: rgba(0,41,112,0.04);
}
.sps-profile-section__chevron {
    color: var(--sps-muted);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}
.sps-profile-section--open .sps-profile-section__chevron { transform: rotate(180deg); }
.sps-profile-section__body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid var(--sps-border);
}
.sps-profile-section--open .sps-profile-section__body { display: block; }

/* Profile field grid (view mode) */
.sps-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.sps-profile-field__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--sps-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 3px;
}
.sps-profile-field__value {
    font-size: 14px;
    font-weight: 500;
    color: var(--sps-text);
    word-break: break-word;
}
.sps-profile-field__value--empty {
    color: var(--sps-muted);
    font-style: italic;
    font-weight: 400;
}
.sps-profile-field--full { grid-column: 1 / -1; }

/* Edit form inside section */
.sps-edit-form { margin-top: 16px; }
.sps-edit-form .sps-field { margin-bottom: 14px; }
.sps-edit-form__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--sps-border);
}
.sps-edit-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--sps-border);
    border-radius: var(--sps-radius-sm);
    font-size: 14px;
    font-family: var(--sps-font);
    color: var(--sps-text);
    background: var(--sps-surface);
    outline: none;
    transition: border-color var(--sps-transition);
    -webkit-appearance: none;
}
.sps-edit-input:focus { border-color: var(--sps-primary); }
.sps-edit-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--sps-text-sub);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
/* Radio options in edit form */
.sps-radio-group { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sps-radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--sps-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--sps-text-sub);
    transition: all var(--sps-transition);
    user-select: none;
}
.sps-radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.sps-radio-option--selected {
    border-color: var(--sps-primary);
    background: rgba(0,41,112,0.06);
    color: var(--sps-primary);
    font-weight: 600;
}
/* Cancel button */
.sps-btn--cancel {
    background: var(--sps-bg);
    color: var(--sps-text-sub);
    border: 1.5px solid var(--sps-border);
}
.sps-btn--cancel:hover { background: var(--sps-border); }

/* Documents section */
.sps-doc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--sps-bg);
    border-radius: var(--sps-radius-sm);
    margin-top: 12px;
}
.sps-doc-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0,41,112,0.08);
    color: var(--sps-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sps-doc-item__info { flex: 1; min-width: 0; }
.sps-doc-item__name { font-size: 13px; font-weight: 600; color: var(--sps-text); }
.sps-doc-item__sub  { font-size: 11px; color: var(--sps-muted); margin-top: 1px; }
.sps-doc-item__actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   JOBS PAGE (Exact card styles from page-jobs.php CSS)
   These class names are identical to page-jobs.php output
══════════════════════════════════════════════════════════ */
/* Job page top bar */
.sps-jobs-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.sps-jobs-page-bar__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--sps-text);
}
.sps-jobs-page-bar__count {
    font-size: 13px;
    color: var(--sps-muted);
    margin-top: 2px;
}
.sps-jobs-page-bar__right { display: flex; gap: 10px; align-items: center; }

/* Filter panel */
.sps-filter-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 320px;
    background: var(--sps-surface);
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top);
}
.sps-filter-panel--open { transform: translateX(0); }
.sps-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--sps-border);
    flex-shrink: 0;
}
.sps-filter-panel__title { font-size: 15px; font-weight: 700; color: var(--sps-text); }
.sps-filter-panel__close {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--sps-bg);
    color: var(--sps-text-sub);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.sps-filter-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.sps-filter-panel__section { margin-bottom: 20px; }
.sps-filter-panel__label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sps-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    display: block;
}
.sps-filter-panel__foot {
    padding: 16px 20px;
    border-top: 1px solid var(--sps-border);
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Search input in jobs page */
.sps-jobs-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sps-surface);
    border: 1.5px solid var(--sps-border);
    border-radius: var(--sps-radius-sm);
    padding: 10px 14px;
    margin-bottom: 20px;
    transition: border-color var(--sps-transition);
}
.sps-jobs-search:focus-within { border-color: var(--sps-primary); }
.sps-jobs-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: var(--sps-font);
    color: var(--sps-text);
    background: transparent;
}
.sps-jobs-search__icon { color: var(--sps-muted); flex-shrink: 0; }

/* Job card — IDENTICAL classes to page-jobs.php */
.sps-jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.sps-job-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    border: 1px solid #f0f0f0;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    animation: spsCardFadeIn 0.4s ease-out backwards;
}
.sps-jobs-grid .sps-job-card:nth-child(1) { animation-delay: 0.03s; }
.sps-jobs-grid .sps-job-card:nth-child(2) { animation-delay: 0.08s; }
.sps-jobs-grid .sps-job-card:nth-child(3) { animation-delay: 0.13s; }
.sps-jobs-grid .sps-job-card:nth-child(4) { animation-delay: 0.18s; }
.sps-jobs-grid .sps-job-card:nth-child(5) { animation-delay: 0.23s; }
.sps-jobs-grid .sps-job-card:nth-child(6) { animation-delay: 0.28s; }
@keyframes spsCardFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Share modal — same design as public job openings page */
.share-modal { position: fixed; inset: 0; background: rgba(15,23,42,.75); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(4px); }
.share-modal.on { display: flex; }
.share-box { background: #fff; border-radius: 20px; padding: 32px 28px; max-width: 380px; width: 100%; animation: spsModalPop .35s cubic-bezier(.34,1.56,.64,1); text-align: center; position: relative; }
.share-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; color: #94a3b8; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.share-close:hover { background: #f1f5f9; }
.share-title { font-size: 18px; font-weight: 800; color: #002970; margin-bottom: 4px; font-family: 'Poppins',sans-serif; }
.share-sub { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.share-icons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.share-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; box-shadow: 0 5px 0 rgba(0,0,0,.15),0 7px 14px rgba(0,0,0,.12); transform: perspective(180px) rotateX(8deg); transition: all .2s; }
.share-icon:hover { transform: perspective(180px) rotateX(0) translateY(-3px); box-shadow: 0 8px 0 rgba(0,0,0,.12),0 10px 18px rgba(0,0,0,.18); }
.si-wa { background: linear-gradient(145deg,#25d366,#1aab52); }
.si-tg { background: linear-gradient(145deg,#2aabee,#1081c1); }
.si-li { background: linear-gradient(145deg,#0077b5,#005885); }
.si-fb { background: linear-gradient(145deg,#1877f2,#0d5dbf); }
.share-copied { font-size: 12px; color: #16a34a; font-weight: 600; display: none; margin-top: 4px; }
@media (max-width: 480px) {
    .share-icons { gap: 10px; }
    .share-icon { width: 46px; height: 46px; font-size: 20px; }
}
.sps-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,186,242,.15);
    border-color: #00BAF2;
}
.jobs-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 8px; flex-wrap: wrap; min-width: 0; }
.jobs-card-logo { width: 48px; height: 48px; min-width: 48px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid #e8e8f0; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.jobs-card-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sps-job-card__logo--placeholder {
    width: 100%; height: 100%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--sps-primary), var(--sps-secondary));
    color: #fff; font-size: 18px; font-weight: 800; font-family: var(--sps-font);
}
.jobs-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; margin-left: auto; min-width: 0; max-width: 100%; }
.jobs-card-btns { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.jobs-desc-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; height: 32px; background: linear-gradient(135deg,#6c50e8,#4930c8); color: #fff !important; border-radius: 20px; font-size: 11.5px; font-weight: 700; text-decoration: none !important; box-shadow: 0 3px 0 #2d1a9e,0 5px 12px rgba(108,80,232,.35); position: relative; top: 0; transition: all .15s; white-space: nowrap; font-family: 'Poppins',sans-serif; overflow: hidden; text-overflow: ellipsis; }
.jobs-desc-btn:hover { top: 2px; box-shadow: 0 1px 0 #2d1a9e,0 2px 6px rgba(108,80,232,.2); color: #fff !important; }
.jobs-desc-arrow { width: 16px; height: 16px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.jobs-desc-arrow i { font-size: 7px; color: #4930c8; }
.jobs-share-btn { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; background: #1e1b4b; border: none; cursor: pointer; color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s,transform .15s; }
.jobs-share-btn:hover { background: #312e81; transform: scale(1.08); }
.jobs-card-title { font-size: 17px; font-weight: 700; color: #002970; margin-bottom: 10px; line-height: 1.3; font-family: 'Poppins',sans-serif; }
.jobs-info-list { list-style: none; padding: 0; margin: 0 0 12px; }
.jobs-info-list li { padding: 4px 0; font-size: 13px; color: #334155; font-weight: 500; font-family: 'Poppins',sans-serif; display: flex; align-items: center; gap: 9px; line-height: 1.4; }
.jobs-info-list li strong { color: #0f172a; font-weight: 700; }
.jci { width: 26px; height: 26px; min-width: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; box-shadow: 0 3px 0 rgba(0,0,0,.18),0 4px 8px rgba(0,0,0,.1); }
.jci i { color: #fff; }
.jci-loc { background: linear-gradient(145deg,#f87171,#dc2626); }
.jci-exp { background: linear-gradient(145deg,#fb923c,#ea580c); }
.jci-sal { background: linear-gradient(145deg,#4ade80,#16a34a); }
.jci-vac { background: linear-gradient(145deg,#60a5fa,#2563eb); }
.jci-co  { background: linear-gradient(145deg,#a78bfa,#7c3aed); }
.jobs-skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.jobs-skill-tag { padding: 3px 10px; background: #f1f5f9; color: #475569; border-radius: 20px; font-size: 11px; font-weight: 600; font-family: 'Poppins',sans-serif; border: 1px solid #e2e8f0; white-space: nowrap; }
.jobs-card-footer { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.jobs-apply-btn { flex: 1; padding: 11px 10px; background: linear-gradient(180deg,#5b45d4,#3d2db5); color: #fff; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; font-family: 'Poppins',sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 4px 0 #1f1470,0 6px 14px rgba(61,45,181,.4); position: relative; top: 0; transition: all .15s; animation: applyShine 3s ease-in-out infinite; white-space: nowrap; }
.jobs-apply-btn:hover { top: 3px; box-shadow: 0 1px 0 #1f1470,0 3px 6px rgba(61,45,181,.3); animation: none; }
.jobs-apply-btn:disabled { background: #cbd5e1; box-shadow: none; animation: none; cursor: not-allowed; top: 0; }
.jobs-wa-btn { flex: 1; padding: 11px 10px; background: linear-gradient(180deg,#25d366,#1aab52); color: #fff !important; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; font-family: 'Poppins',sans-serif; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; box-shadow: 0 4px 0 #128c3e,0 6px 14px rgba(37,211,102,.4); position: relative; top: 0; transition: all .15s; text-decoration: none !important; animation: waPulse 2.5s ease-in-out infinite; white-space: nowrap; }
.jobs-wa-btn:hover { top: 3px; box-shadow: 0 1px 0 #128c3e,0 3px 6px rgba(37,211,102,.3); animation: none; }
.sps-badge { display: inline-block; padding: 3px 10px; border-radius: 15px; font-size: 11px; font-weight: 600; font-family: 'Poppins',sans-serif; }
.sps-badge-new { background: #E8F8FE; color: #00BAF2; }
.sps-badge-urgent { background: #FFF0EB; color: #FF6C37; }
@keyframes applyShine { 0%,100%{filter:brightness(1)} 50%{filter:brightness(1.12)} }
@keyframes waPulse { 0%,100%{box-shadow:0 4px 0 #128c3e,0 6px 14px rgba(37,211,102,.4)} 50%{box-shadow:0 4px 0 #128c3e,0 6px 20px rgba(37,211,102,.65)} }

/* Pagination — identical to page-jobs.php */
.sps-pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.sps-page-btn { width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--sps-border); background: var(--sps-surface); color: var(--sps-text-sub); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; transition: all var(--sps-transition); }
.sps-page-btn:hover, .sps-page-btn.active { background: var(--sps-primary); border-color: var(--sps-primary); color: #fff; }
.sps-page-arrow { width: auto; padding: 0 14px; }

/* Job detail modal (portal version) */
.sps-job-detail-modal {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.7);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
}
.sps-job-detail-modal.sps-modal--open { display: flex; }
.sps-job-detail-modal__box {
    background: var(--sps-surface);
    border-radius: 16px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--sps-shadow-lg);
    animation: spsModalPop 0.3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes spsModalPop { 0%{transform:scale(.85);opacity:0} 100%{transform:scale(1);opacity:1} }

/* Reward product cards */
.sps-product-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.sps-product-card {
    border: 1.5px solid var(--sps-border); border-radius: 12px; padding: 14px;
    display: flex; flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    background: var(--sps-surface);
    animation: spsCardFadeIn 0.4s ease-out backwards;
}
.sps-product-grid .sps-product-card:nth-child(1) { animation-delay: 0.03s; }
.sps-product-grid .sps-product-card:nth-child(2) { animation-delay: 0.08s; }
.sps-product-grid .sps-product-card:nth-child(3) { animation-delay: 0.13s; }
.sps-product-grid .sps-product-card:nth-child(4) { animation-delay: 0.18s; }
.sps-product-card:not(.sps-product-card--locked):hover {
    border-color: var(--sps-secondary); box-shadow: 0 6px 16px rgba(0,82,212,0.12); transform: translateY(-2px);
}
.sps-product-card--locked { /* fully visible — only the action button reflects lock state */ }
.sps-product-card__img {
    width: 100%; height: 180px; object-fit: contain; border-radius: 10px; margin-bottom: 10px;
    background: var(--sps-bg); padding: 8px;
}
.sps-product-card__img--placeholder {
    display: flex; align-items: center; justify-content: center; color: var(--sps-muted);
    border: 1.5px dashed var(--sps-border);
}
.sps-product-card__body { display: flex; flex-direction: column; flex: 1; }
.sps-product-card__name { font-size: 14px; font-weight: 700; color: var(--sps-text); margin-bottom: 4px; line-height: 1.3; text-align: center; }
.sps-product-card__desc {
    font-size: 12px; color: var(--sps-text-sub); margin-bottom: 8px; line-height: 1.4; text-align: justify;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sps-product-card__price { font-size: 13px; font-weight: 700; color: var(--sps-warning); margin-bottom: 10px; margin-top: auto; }
.sps-product-card__price-inr { color: var(--sps-muted); font-weight: 500; font-size: 12px; }
.sps-product-card__btn { font-size: 12px !important; padding: 9px 8px !important; }
@media (max-width: 900px) {
    .sps-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .sps-product-grid { grid-template-columns: 1fr; }
    .sps-product-card { flex-direction: row; gap: 12px; align-items: flex-start; }
    .sps-product-card__img { width: 80px; height: 80px; flex-shrink: 0; margin-bottom: 0; }
    .sps-product-card__body { flex: 1; }
}
.sps-job-detail-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--sps-border);
    gap: 12px;
    position: sticky; top: 0;
    background: var(--sps-surface);
    z-index: 1;
}
.sps-job-detail-modal__title { font-size: 18px; font-weight: 800; color: var(--sps-text); }
.sps-job-detail-modal__sub { font-size: 13px; color: var(--sps-muted); margin-top: 3px; }
.sps-job-detail-modal__close {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none; background: var(--sps-bg);
    color: var(--sps-text-sub); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--sps-transition);
}
.sps-job-detail-modal__close:hover { background: var(--sps-border); }
.sps-job-detail-modal__body { padding: 20px 24px; }
.sps-job-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sps-job-detail-meta__item {
    display: flex; align-items: center; gap: 6px;
    background: var(--sps-bg);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--sps-text-sub);
}
.sps-job-detail-meta__item strong { color: var(--sps-text); font-weight: 700; }
.sps-job-detail-modal__desc {
    font-size: 14px;
    color: var(--sps-text-sub);
    line-height: 1.8;
    margin-bottom: 16px;
}
.sps-job-detail-modal__foot {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--sps-border);
    background: var(--sps-surface);
    position: sticky; bottom: 0;
}

/* ══════════════════════════════════════════════════════════
   APPLIED JOBS PAGE
══════════════════════════════════════════════════════════ */
/* Status filter tabs */
.sps-status-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.sps-status-tab {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--sps-border);
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: var(--sps-text-sub);
    cursor: pointer;
    font-family: var(--sps-font);
    transition: all var(--sps-transition);
    white-space: nowrap;
}
.sps-status-tab--active {
    background: var(--sps-primary);
    border-color: var(--sps-primary);
    color: #fff;
}
.sps-status-tab:hover:not(.sps-status-tab--active) {
    border-color: var(--sps-primary);
    color: var(--sps-primary);
}

/* Application card */
.sps-app-card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    box-shadow: var(--sps-shadow);
    transition: box-shadow var(--sps-transition), transform var(--sps-transition);
    border-left-width: 4px;
    min-width: 0;
}
#spsApplicationsList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 1024px) {
    #spsApplicationsList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    #spsApplicationsList { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.sps-app-card:hover { box-shadow: var(--sps-shadow-md); transform: translateY(-2px); }
.sps-app-card__left { min-width: 0; order: 2; }
.sps-app-card__title { font-size: 15px; font-weight: 700; color: var(--sps-text); margin-bottom: 4px; }
.sps-app-card__company { font-size: 12px; color: var(--sps-text-sub); margin-bottom: 8px; }
.sps-app-card__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--sps-muted); margin-bottom: 10px; }
.sps-app-card__meta-item { display: flex; align-items: center; gap: 5px; }
.sps-app-card__date { font-size: 12px; color: var(--sps-muted); }
.sps-app-card__right { flex-shrink: 0; order: 1; align-self: flex-start; }
.sps-app-card__interview-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f5f3ff;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    font-size: 12px;
    color: #4c1d95;
}
.sps-app-card__interview-info strong { color: #6d28d9; }
.sps-app-card__joining-info {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    font-size: 12px;
    color: #14532d;
}

/* Stage badge colors */
.sps-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.sps-stage--application           { background: #dbeafe; color: #1d4ed8; border-left-color: #1d4ed8; }
.sps-stage--shortlisted           { background: #fef3c7; color: #d97706; border-left-color: #d97706; }
.sps-stage--interview_scheduled   { background: #ede9fe; color: #6d28d9; border-left-color: #6d28d9; }
.sps-stage--offered               { background: #d1fae5; color: #065f46; border-left-color: #065f46; }
.sps-stage--onboarded             { background: #dcfce7; color: #14532d; border-left-color: #16a34a; }
.sps-stage--rejected              { background: #fee2e2; color: #dc2626; border-left-color: #dc2626; }

/* App card left border by stage */
.sps-app-card[data-stage="application"]           { border-left-color: #1d4ed8; }
.sps-app-card[data-stage="shortlisted"]           { border-left-color: #d97706; }
.sps-app-card[data-stage="interview_scheduled"]   { border-left-color: #6d28d9; }
.sps-app-card[data-stage="offered"]               { border-left-color: #065f46; }
.sps-app-card[data-stage="onboarded"]             { border-left-color: #16a34a; }
.sps-app-card[data-stage="rejected"]              { border-left-color: #dc2626; }

/* Empty state */
.sps-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--sps-surface);
    border-radius: var(--sps-radius);
    border: 1px solid var(--sps-border);
}
.sps-empty-state img { max-width: 200px; margin: 0 auto 20px; }
.sps-empty-state h3 { font-size: 18px; font-weight: 700; color: var(--sps-text); margin-bottom: 8px; }
.sps-empty-state p  { font-size: 14px; color: var(--sps-muted); margin-bottom: 20px; }

/* ══════════════════════════════════════════════════════════
   PHASE 2 RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    /* Jobs grid: 2 col on tablet, overridden to 1 col on mobile below */
    .sps-jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .sps-filter-panel { width: 100%; }
    .sps-profile-grid { grid-template-columns: 1fr; }
    .sps-profile-header { flex-direction: column; align-items: center; text-align: center; }
    .sps-profile-header__edit-btn { position: static; margin-top: 12px; }
    .sps-profile-comp { max-width: 100%; }
    .sps-profile-header__contact { justify-content: center; }
}
@media (max-width: 640px) {
    /* SINGLE COLUMN on all phones — no cramped 2-col cards */
    .sps-jobs-grid { grid-template-columns: 1fr !important; gap: 14px; }
    .sps-jobs-grid--dash { grid-template-columns: 1fr !important; gap: 12px; }
    .sps-job-card { padding: 16px; }
    /* Prevent company name and any text from wrapping badly */
    .jobs-info-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-wrap: nowrap; }
    .jobs-info-list { overflow: hidden; }
    .jobs-card-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .jobs-card-footer { gap: 10px; }
    .jobs-apply-btn, .jobs-wa-btn { font-size: 13px; padding: 11px 12px; white-space: nowrap; }
    .jobs-desc-btn { font-size: 11px; padding: 0 12px; height: 32px; white-space: nowrap; }
    .sps-status-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .sps-status-tab { flex-shrink: 0; }
}
@media (max-width: 390px) {
    .jobs-apply-btn, .jobs-wa-btn { font-size: 12px; padding: 10px 8px; }
    .jobs-desc-btn { font-size: 10px; padding: 0 10px; height: 30px; }
}

/* ══════════════════════════════════════════════════════════
   PHASE 3 CSS — Notifications + Application Status
   Appended below Phase 1 + Phase 2 CSS — nothing above touched
══════════════════════════════════════════════════════════ */

/* ── Notification Bell Dropdown ── */
.sps-bell-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: -8px;
    width: 340px;
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    box-shadow: var(--sps-shadow-lg);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s;
    overflow: hidden;
}
.sps-bell-dropdown--open {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.sps-bell-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--sps-border);
    background: var(--sps-surface);
    position: sticky;
    top: 0;
    z-index: 1;
}
.sps-bell-dropdown__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sps-text);
}
.sps-bell-dropdown__mark-all {
    font-size: 11px;
    font-weight: 600;
    color: var(--sps-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--sps-font);
}
.sps-bell-dropdown__mark-all:hover { text-decoration: underline; }
.sps-bell-dropdown__clear-all { color: #dc2626; }
.sps-bell-dropdown__list { max-height: 340px; overflow-y: auto; font-size: 13px; }
.sps-bell-notif-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--sps-border);
    transition: background var(--sps-transition);
}
.sps-bell-notif-item:last-child { border-bottom: none; }
.sps-bell-notif-item:hover { background: rgba(0,41,112,0.03); }
.sps-bell-notif-item--unread { background: rgba(0,41,112,0.05); }
.sps-bell-notif-item__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 8px 11px 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}
.sps-bell-notif-item__icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sps-bell-notif-item__body {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.sps-bell-notif-item__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--sps-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sps-bell-notif-item__msg {
    font-size: 11px;
    color: var(--sps-text-sub);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}
.sps-bell-notif-item__detail {
    font-size: 10px;
    color: var(--sps-muted);
    margin-top: 2px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sps-bell-notif-item__time {
    font-size: 10px;
    color: var(--sps-muted);
    margin-top: 2px;
    display: block;
}
.sps-bell-notif-item__dot {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--sps-primary);
    flex-shrink: 0;
    margin-top: 5px;
    margin-right: 4px;
}
/* Read vs unread visual distinction */
.sps-bell-notif-item:not(.sps-bell-notif-item--unread) .sps-bell-notif-item__title {
    font-weight: 500;
    color: var(--sps-text-sub);
}
.sps-bell-notif-item:not(.sps-bell-notif-item--unread) .sps-bell-notif-item__msg {
    color: var(--sps-muted);
}
.sps-bell-notif-item__actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 10px;
    flex-shrink: 0;
}
.sps-bell-notif-action {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid var(--sps-border);
    background: var(--sps-bg);
    color: var(--sps-text-sub);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sps-transition), color var(--sps-transition);
}
.sps-bell-notif-action:hover { background: var(--sps-primary); color: #fff; }
.sps-bell-notif-action--delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.sps-bell-dropdown__footer {
    padding: 10px 16px;
    border-top: 1px solid var(--sps-border);
    text-align: center;
}
.sps-bell-dropdown__footer a {
    font-size: 12px;
    font-weight: 600;
    color: var(--sps-primary);
    text-decoration: none;
}
.sps-bell-dropdown__footer a:hover { text-decoration: underline; }
.sps-bell-dropdown__empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--sps-muted);
}

/* ── Notification icon type colors ── */
.sps-notif-icon--shortlisted      { background: rgba(217,119,6,0.12);  color: #d97706; }
.sps-notif-icon--interview        { background: rgba(109,40,217,0.10); color: #6d28d9; }
.sps-notif-icon--selected         { background: rgba(22,163,74,0.10);  color: #16a34a; }
.sps-notif-icon--joining_date     { background: rgba(29,78,216,0.10);  color: #1d4ed8; }
.sps-notif-icon--onboarded        { background: rgba(29,78,216,0.10);  color: #1d4ed8; }
.sps-notif-icon--application      { background: rgba(0,41,112,0.08);   color: var(--sps-primary); }
.sps-notif-icon--rejected         { background: rgba(220,38,38,0.10);  color: #dc2626; }

/* ══════════════════════════════════════════════════════════
   NOTIFICATIONS PAGE
══════════════════════════════════════════════════════════ */
.sps-notif-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}
.sps-notif-page-bar__title { font-size: 18px; font-weight: 800; color: var(--sps-text); display: flex; align-items: center; gap: 10px; }
.sps-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--sps-primary);
    color: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.sps-notif-mark-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--sps-primary);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sps-font);
    padding: 0;
    transition: opacity 0.2s;
}
.sps-notif-mark-all:hover { opacity: 0.75; }

/* Full notification card */
.sps-notif-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: background var(--sps-transition), box-shadow var(--sps-transition), transform var(--sps-transition);
    text-decoration: none;
    display: flex;
}
.sps-notif-card:hover { background: var(--sps-bg); box-shadow: var(--sps-shadow-md); transform: translateY(-1px); }
.sps-notif-card--unread { background: rgba(0,41,112,0.03); border-left: 3px solid var(--sps-primary); }
.sps-notif-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sps-notif-card__body { flex: 1; min-width: 0; }
.sps-notif-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--sps-text);
    margin-bottom: 4px;
}
.sps-notif-card__msg {
    font-size: 13px;
    color: var(--sps-text-sub);
    line-height: 1.6;
    margin-bottom: 6px;
}
.sps-notif-card__time { font-size: 11px; color: var(--sps-muted); }
.sps-notif-card__right { flex-shrink: 0; margin-top: 3px; }
.sps-notif-unread-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sps-primary);
}
.sps-notif-card__actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 8px;
    align-self: center;
}
.sps-notif-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--sps-border);
    background: var(--sps-bg);
    color: var(--sps-text-sub);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--sps-transition), color var(--sps-transition);
}
.sps-notif-action-btn:hover { background: var(--sps-primary); color: #fff; }
.sps-notif-action-btn--delete:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

/* ══════════════════════════════════════════════════════════
   APPLICATION STATUS TIMELINE PAGE
══════════════════════════════════════════════════════════ */
.sps-app-status-header {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--sps-shadow);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sps-app-status-header__job { font-size: 20px; font-weight: 800; color: var(--sps-text); margin-bottom: 6px; }
.sps-app-status-header__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--sps-text-sub); margin-bottom: 10px; }
.sps-app-status-header__meta-item { display: flex; align-items: center; gap: 5px; }
.sps-app-status-header__applied { font-size: 12px; color: var(--sps-muted); }
.sps-app-status-header__badge { flex-shrink: 0; }

/* Timeline */
.sps-timeline {
    position: relative;
    padding-left: 40px;
}
.sps-timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: var(--sps-border);
}
.sps-timeline-node {
    position: relative;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.sps-timeline-node--visible { opacity: 1; transform: translateY(0); }
.sps-timeline-node__dot {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--sps-border);
    background: var(--sps-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s;
}
.sps-timeline-node--done .sps-timeline-node__dot {
    background: var(--sps-primary);
    border-color: var(--sps-primary);
}
.sps-timeline-node--current .sps-timeline-node__dot {
    background: var(--sps-primary);
    border-color: var(--sps-primary);
    box-shadow: 0 0 0 4px rgba(0,41,112,0.15);
    animation: sps-pulse-ring 2s ease-in-out infinite;
}
.sps-timeline-node--rejected .sps-timeline-node__dot {
    background: var(--sps-error);
    border-color: var(--sps-error);
}
@keyframes sps-pulse-ring {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0,41,112,0.15); }
    50%       { box-shadow: 0 0 0 8px rgba(0,41,112,0.08); }
}
.sps-timeline-node__dot-icon { color: #fff; display: flex; align-items: center; justify-content: center; }
.sps-timeline-node__line {
    position: absolute;
    left: -22px;
    top: 26px;
    width: 2px;
    bottom: -28px;
    background: var(--sps-border);
    z-index: 0;
}
.sps-timeline-node--done .sps-timeline-node__line { background: var(--sps-primary); }
.sps-timeline-node:last-child .sps-timeline-node__line { display: none; }
.sps-timeline-node__card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 16px 18px;
    box-shadow: var(--sps-shadow);
}
.sps-timeline-node--current .sps-timeline-node__card {
    border-color: rgba(0,41,112,0.2);
    box-shadow: 0 0 0 3px rgba(0,41,112,0.06), var(--sps-shadow);
}
.sps-timeline-node--rejected .sps-timeline-node__card { border-color: rgba(220,38,38,0.2); }
.sps-timeline-node__stage {
    font-size: 14px;
    font-weight: 700;
    color: var(--sps-text);
    margin-bottom: 4px;
}
.sps-timeline-node--pending .sps-timeline-node__stage { color: var(--sps-muted); }
.sps-timeline-node__date { font-size: 11px; color: var(--sps-muted); margin-bottom: 8px; }
.sps-timeline-node__detail { font-size: 13px; color: var(--sps-text-sub); line-height: 1.6; }
.sps-timeline-node__detail-box {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--sps-bg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--sps-text-sub);
    line-height: 1.7;
}
.sps-timeline-node__detail-box strong { color: var(--sps-text); }

/* Action area */
.sps-app-status-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Responsive Phase 3 */
@media (max-width: 1024px) {
    /* Bell dropdown handled by main responsive section */
}
@media (max-width: 640px) {
    .sps-timeline { padding-left: 32px; }
    .sps-timeline-node__dot { left: -26px; }
    .sps-timeline-node__line { left: -16px; }
    .sps-app-status-header { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════════
   PHASE 4 CSS — Refer & Earn + Coin Pill
   Appended below Phase 1 + 2 + 3 CSS — nothing above touched
══════════════════════════════════════════════════════════ */

/* ── Coin balance pill in navbar ── */
.sps-navbar__coin-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 8px;
    background: rgba(0,41,112,0.07);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--sps-primary);
    text-decoration: none;
    transition: background var(--sps-transition);
    white-space: nowrap;
}
.sps-navbar__coin-pill:hover { background: rgba(0,41,112,0.12); }
.sps-navbar__coin-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d97706, #f59e0b);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   REFER & EARN PAGE
══════════════════════════════════════════════════════════ */

/* Hero banner card */
.sps-refer-hero {
    background: var(--sps-grad);
    border-radius: var(--sps-radius);
    padding: 32px 36px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
}
.sps-refer-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.sps-refer-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 80px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.sps-refer-hero__left { flex: 1; position: relative; z-index: 1; }
.sps-refer-hero__title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.2;
}
.sps-refer-hero__sub {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    margin-bottom: 18px;
    max-width: 380px;
    line-height: 1.6;
}
.sps-refer-hero__balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
}
.sps-refer-hero__right {
    flex-shrink: 0;
    width: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.sps-refer-hero__right img { width: 100%; height: auto; border-radius: 12px; }

/* How it works steps */
.sps-how-it-works {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.sps-how-step {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius);
    padding: 22px 18px;
    text-align: center;
    transition: box-shadow var(--sps-transition), transform var(--sps-transition);
    box-shadow: var(--sps-shadow);
}
.sps-how-step:hover { box-shadow: var(--sps-shadow-md); transform: translateY(-3px); }
.sps-how-step__num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--sps-grad);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.sps-how-step__icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(0,41,112,0.07);
    color: var(--sps-primary);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
}
.sps-how-step__title { font-size: 14px; font-weight: 700; color: var(--sps-text); margin-bottom: 6px; }
.sps-how-step__desc  { font-size: 12px; color: var(--sps-text-sub); line-height: 1.6; }

/* Referral link card */
.sps-refer-link-card { background: var(--sps-surface); border: 1px solid var(--sps-border); border-radius: var(--sps-radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--sps-shadow); }
.sps-refer-link-card__title { font-size: 15px; font-weight: 700; color: var(--sps-text); margin-bottom: 14px; }
.sps-refer-link-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--sps-bg);
    border: 1.5px solid var(--sps-border);
    border-radius: var(--sps-radius-sm);
    padding: 4px 4px 4px 14px;
    margin-bottom: 14px;
}
.sps-refer-link-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--sps-text);
    font-family: var(--sps-font);
    outline: none;
    min-width: 0;
}
.sps-refer-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.sps-refer-code {
    font-size: 22px;
    font-weight: 800;
    color: var(--sps-primary);
    letter-spacing: 2px;
    font-family: var(--sps-font);
}
/* Social share buttons */
.sps-share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.sps-share-label { font-size: 12px; font-weight: 700; color: var(--sps-muted); margin-right: 4px; white-space: nowrap; }
.sps-share-btn {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    flex-shrink: 0;
}
.sps-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.sps-share-btn:active { transform: scale(0.94); }
.sps-share-btn--wa  { background: #25d366; }
.sps-share-btn--tg  { background: #2aabee; }
.sps-share-btn--fb  { background: #1877f2; }
.sps-share-btn--li  { background: #0077b5; }
.sps-share-btn--tw  { background: #1a1a1a; }
.sps-share-btn--em  { background: #6b7280; }
.sps-share-btn--sms { background: #7c3aed; }
.sps-share-btn svg  { color: #fff; }

/* Referral table */
.sps-refer-table-wrap { background: var(--sps-surface); border: 1px solid var(--sps-border); border-radius: var(--sps-radius); padding: 22px 24px; box-shadow: var(--sps-shadow); }
.sps-refer-table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.sps-refer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.sps-refer-table th {
    background: var(--sps-bg);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--sps-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid var(--sps-border);
}
.sps-refer-table td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--sps-border);
    color: var(--sps-text);
    vertical-align: middle;
}
.sps-refer-table tr:last-child td { border-bottom: none; }
.sps-refer-table tr:hover td { background: rgba(0,41,112,0.02); }
.sps-refer-status--pending   { background: #fef3c7; color: #d97706; }
.sps-refer-status--registered{ background: #dbeafe; color: #1d4ed8; }
.sps-refer-status--hired     { background: #dcfce7; color: #16a34a; }
.sps-refer-status--completed { background: #dcfce7; color: #065f46; }

/* Mobile card view for referral table */
.sps-refer-card-list { display: none; }
.sps-refer-card {
    background: var(--sps-surface);
    border: 1px solid var(--sps-border);
    border-radius: var(--sps-radius-sm);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.sps-refer-card__row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 13px; }
.sps-refer-card__label { color: var(--sps-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }

/* Phase 4 responsive */
@media (max-width: 1024px) {
    .sps-how-it-works { grid-template-columns: 1fr; }
    .sps-refer-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
    .sps-refer-hero__sub { margin: 0 auto 16px; }
    .sps-refer-hero__right { width: 120px; }
    .sps-navbar__coin-pill { display: none; }
}
@media (max-width: 480px) {
    .sps-refer-table { display: none; }
    .sps-refer-card-list { display: block; }
    .sps-share-row { gap: 6px; }
    .sps-share-btn { width: 38px; height: 38px; border-radius: 8px; }
    .sps-refer-link-wrap input { font-size: 12px; }
    .sps-refer-code { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   PHASE 5 CSS — Wallet + Redemption History
   Appended below Phase 1-4 CSS — nothing above touched
══════════════════════════════════════════════════════════ */

/* Wallet Hero Card */
.sps-wallet-hero {
    background: var(--sps-grad);
    border-radius: var(--sps-radius);
    padding: 32px 36px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    position: relative;
}
.sps-wallet-hero__deco {
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
.sps-wallet-hero__left { flex: 1; position: relative; z-index: 1; }
.sps-wallet-hero__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.sps-wallet-hero__balance {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 56px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}
.sps-wallet-hero__icon-circle {
    width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.sps-wallet-hero__coins-label {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.sps-wallet-hero__meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}
.sps-wallet-hero__meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sps-wallet-hero__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
.sps-wallet-hero__redeem-btn {
    background: #fff;
    color: var(--sps-primary);
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--sps-font);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sps-wallet-hero__redeem-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }
.sps-wallet-hero__cooldown {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-align: center;
}
.sps-wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 1024px) {
    .sps-wallet-hero { flex-direction: column; text-align: center; padding: 24px 20px; }
    .sps-wallet-hero__balance { font-size: 40px; justify-content: center; gap: 10px; }
    .sps-wallet-hero__icon-circle { width: 44px; height: 44px; }
    .sps-wallet-hero__icon-circle svg { width: 20px; height: 20px; }
    .sps-wallet-hero__meta { justify-content: center; }
    .sps-wallet-hero__deco { display: none; }
    .sps-wallet-stats { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .sps-wallet-hero__balance { font-size: 32px; }
    .sps-wallet-stats { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   JOB DETAIL PAGE (job-detail.php) — clone of public job-detail
══════════════════════════════════════════════════════════ */
.jd-breadcrumb {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
    margin-bottom: 16px; font-size: 13px; color: var(--sps-text-sub);
}
.jd-breadcrumb__left { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.jd-breadcrumb__left a { color: var(--sps-text-sub); text-decoration: none; }
.jd-breadcrumb__left a:hover { color: var(--sps-secondary); }
.jd-breadcrumb__left span { color: var(--sps-muted); }
.jd-breadcrumb__left strong { color: var(--sps-text); }
.jd-breadcrumb__right { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--sps-text); }
.share-icons-row { display: flex; gap: 8px; }
.sh-ico { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; text-decoration: none !important; transition: all .2s; box-shadow: 0 4px 0 rgba(0,0,0,.2),0 5px 10px rgba(0,0,0,.15); transform: perspective(120px) rotateX(6deg); color: #fff !important; border: none; cursor: pointer; flex-shrink: 0; }
.sh-ico:hover { transform: perspective(120px) rotateX(0) translateY(-3px); box-shadow: 0 6px 0 rgba(0,0,0,.2),0 8px 14px rgba(0,0,0,.2); }
.sh-wa { background: linear-gradient(145deg,#25d366,#1aab52); }
.sh-li { background: linear-gradient(145deg,#0077b5,#005885); }
.sh-tg { background: linear-gradient(145deg,#0088cc,#007ab8); }
.sh-tw { background: linear-gradient(145deg,#1da1f2,#0d8fd9); }
.sh-cp { background: linear-gradient(145deg,#6d28d9,#4f46e5); }
@media (max-width: 700px) {
    .sh-ico { width: 30px; height: 30px; font-size: 13px; }
}

.jd-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.jd-hero { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 20px; border: 1.5px solid var(--sps-border); position: relative; overflow: hidden; }
.jd-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #4f46e5, #06b6d4); }
.jd-hero-inner { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.jd-logo { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--sps-border); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.jd-logo-img, .jd-logo img { width: 100%; height: 100%; object-fit: cover; }
.jd-info { flex: 1; min-width: 180px; }
.jd-title { font-size: 20px; font-weight: 800; color: var(--sps-text); margin: 0 0 10px; line-height: 1.3; }
.jd-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.jd-mi { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--sps-text-sub); }
.jd-mi i { color: var(--sps-muted); font-size: 12px; }
.jd-mi strong { color: var(--sps-text); font-weight: 700; }
.jd-hero-btns { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; min-width: 150px; }

.btn-apply { padding: 12px 18px; background: linear-gradient(180deg,#2d2a72,#1a1750); color: #fff !important; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none !important; box-shadow: 0 5px 0 #0d0c3a,0 7px 14px rgba(26,23,80,.4); position: relative; top: 0; transition: all .15s; white-space: nowrap; font-family: var(--sps-font); }
.btn-apply:hover { top: 3px; box-shadow: 0 2px 0 #0d0c3a; color: #fff !important; }
.btn-apply:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; top: 0; }
.btn-chat { padding: 12px 18px; background: linear-gradient(180deg,#3ecf6a,#22a84f); color: #fff !important; border: none; border-radius: 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none !important; box-shadow: 0 5px 0 #12703a,0 7px 14px rgba(34,168,79,.4); position: relative; top: 0; transition: all .15s; white-space: nowrap; font-family: var(--sps-font); }
.btn-chat:hover { top: 3px; box-shadow: 0 2px 0 #12703a; color: #fff !important; text-decoration: none !important; }

.jd-card { background: #fff; border-radius: 16px; padding: 22px; margin-bottom: 20px; border: 1.5px solid var(--sps-border); }
.jd-card h3 { font-size: 16px; font-weight: 800; color: var(--sps-text); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1.5px solid var(--sps-bg); }
.jd-desc { font-size: 14px; color: var(--sps-text-sub); line-height: 1.8; text-align: justify; }
.jd-desc, .jd-desc p, .jd-desc div, .jd-desc span, .jd-desc li { text-align: justify !important; }
.jd-desc ul { padding-left: 20px; margin: 10px 0; }
.jd-desc li { margin-bottom: 6px; }
.jd-notice { background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: #854d0e; margin-top: 14px; display: flex; gap: 8px; line-height: 1.6; }
.jd-notice i { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.jd-btm-btns { display: flex; gap: 12px; margin-top: 4px; margin-bottom: 20px; }

.jd-sb-card { background: #fff; border-radius: 16px; padding: 20px; margin-bottom: 18px; border: 1.5px solid var(--sps-border); text-align: center; }
.jd-sb-card .jd-sb-logo, .jd-sb-card img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sps-border); margin: 0 auto 10px; display: block; }
.jd-sb-card .sps-job-card__logo--placeholder { margin: 0 auto 10px; }
.jd-sb-by { font-size: 11px; color: var(--sps-muted); margin-bottom: 2px; }
.jd-sb-name { font-size: 15px; font-weight: 800; color: var(--sps-text); margin-bottom: 8px; }
.jd-sb-desc { font-size: 12px; color: var(--sps-text-sub); line-height: 1.6; }

.jd-ab-card { background: #fff; border-radius: 16px; padding: 20px; border: 1.5px solid var(--sps-border); text-align: left; }
.jd-ab-title { font-size: 15px; font-weight: 800; color: var(--sps-text); margin-bottom: 12px; }
.jd-ab-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--sps-bg); font-size: 13px; }
.jd-ab-row:last-child { border-bottom: none; }
.jd-ab-label { color: var(--sps-text-sub); font-weight: 500; }
.jd-ab-val { color: var(--sps-text); font-weight: 700; text-align: right; max-width: 55%; }
.jd-sk-title { font-size: 15px; font-weight: 800; color: var(--sps-text); margin: 16px 0 10px; }
.jd-sk-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.jd-sk-tag { padding: 5px 12px; background: #f5f3ff; color: #4f46e5; border-radius: 8px; font-size: 12px; font-weight: 600; border: 1px solid #e9d5ff; }

.sim-sec { margin-top: 8px; }
.sim-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sim-hdr h2 { font-size: 19px; font-weight: 800; color: var(--sps-text); margin: 0; }
.sim-hdr a { font-size: 13px; color: #4f46e5; text-decoration: none; font-weight: 600; }

@media (max-width: 1024px) {
    .jd-wrap { grid-template-columns: 1fr; gap: 16px; }
    .jd-sidebar { order: -1; }
}
@media (max-width: 700px) {
    .jd-hero { padding: 16px; }
    .jd-hero-inner { flex-direction: column; gap: 14px; }
    .jd-hero-btns { flex-direction: row; width: 100%; gap: 8px; }
    .jd-hero-btns .btn-apply, .jd-hero-btns .btn-chat,
    .jd-btm-btns .btn-apply, .jd-btm-btns .btn-chat {
        flex: 1 1 0; min-width: 0; padding: 12px 8px; font-size: 12px; gap: 5px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .jd-btm-btns { flex-direction: row; gap: 8px; }
    .jd-title { font-size: 17px; }
}
@media (max-width: 380px) {
    .jd-hero-btns .btn-apply, .jd-hero-btns .btn-chat,
    .jd-btm-btns .btn-apply, .jd-btm-btns .btn-chat {
        font-size: 11px; padding: 11px 4px; gap: 4px;
    }
}

/* ══════════════════════════════════════════════════════════
   JOBS PAGE HERO + SEARCH BAR — clone of public Job Openings page
══════════════════════════════════════════════════════════ */
.j-hero { background: #fff; padding: 24px 0 0; margin-bottom: 0; }
.j-hero-inner { max-width: 100%; margin: 0 auto; padding: 0; }
.j-hero h1 { font-size: 34px; font-weight: 900; color: #0f172a; line-height: 1.2; margin-bottom: 6px; }
.j-hero h1 span { color: #4f46e5; position: relative; }
.j-hero h1 span::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 4px; background: linear-gradient(90deg,#4f46e5,#06b6d4); border-radius: 2px; }
.j-hero p { color: #64748b; font-size: 14px; margin-bottom: 22px; }
.j-hero-tag { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; color: #16a34a; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.j-search { background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: 0 4px 24px rgba(0,0,0,.1); margin: 0 auto 28px; max-width: 100%; position: relative; z-index: 10; border: 1px solid var(--sps-border); }
.j-search-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: center; }
.j-field { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1.5px solid #e2e8f0; border-radius: 10px; background: #f8fafc; transition: border-color .2s; min-width: 0; }
.j-field:focus-within { border-color: #4f46e5; background: #fff; }
.j-field i { color: #94a3b8; font-size: 16px; flex-shrink: 0; }
.j-field input, .j-field select { border: none; background: none; outline: none; font-size: 14px; color: #334155; width: 100%; min-width: 0; font-family: var(--sps-font); }
.j-field select { appearance: none; cursor: pointer; }
.btn-jsearch { padding: 12px 28px; background: #1e1b4b; color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; white-space: nowrap; font-family: var(--sps-font); }
.btn-jsearch:hover { background: #312e81; transform: translateY(-1px); }
.btn-jclear { padding: 12px 16px; background: #f1f5f9; color: #64748b; border: none; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sps-font); }

.sps-section-title { text-align: center; margin-bottom: 24px; }
.sps-section-title h2 { font-size: 24px; font-weight: 800; color: var(--sps-text); margin-bottom: 4px; }
.sps-section-title p { font-size: 13px; color: var(--sps-text-sub); margin-bottom: 10px; }
.sps-title-line { width: 60px; height: 4px; background: linear-gradient(90deg,#4f46e5,#06b6d4); border-radius: 2px; margin: 0 auto; }

@media (max-width: 1024px) {
    .j-search-inner { grid-template-columns: 1fr 1fr 1fr auto !important; gap: 8px; }
    .j-search-inner > .j-field:nth-child(4), .j-search-inner > .j-field:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 768px) {
    .j-hero { padding: 18px 0 0 !important; }
    .j-hero h1 { font-size: 24px !important; }
    .j-hero p { font-size: 12px !important; margin-bottom: 16px !important; }
    .j-hero-tag { font-size: 11px !important; }
    .j-search { padding: 12px 14px !important; border-radius: 12px !important; }
    .j-search-inner { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
    .j-field { padding: 8px 12px !important; }
    .btn-jsearch { width: 100% !important; justify-content: center !important; padding: 10px !important; grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
    .btn-jclear { padding: 10px 12px !important; grid-column: 1 / -1; justify-content: center; }
    .j-search-inner > div:last-child { display: flex; flex-direction: column; gap: 8px; grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════
   WORK HISTORY (multi-entry, portal-only) — profile.php
══════════════════════════════════════════════════════════ */
.sps-work-history { border-top: 1px solid var(--sps-border); margin-top: 18px; padding-top: 16px; }
.sps-work-history__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.sps-work-history__title { font-size: 14px; font-weight: 700; color: var(--sps-text); }
.sps-work-history__total { font-size: 12px; color: var(--sps-text-sub); }
.sps-work-history__total strong { color: var(--sps-primary); }
.sps-work-history__empty { font-size: 12px; color: var(--sps-muted); margin-bottom: 10px; }
.sps-work-history__item {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; border: 1px solid var(--sps-border); border-radius: 10px;
    background: var(--sps-bg); margin-bottom: 8px;
}
.sps-work-history__company { font-size: 13px; font-weight: 600; color: var(--sps-text); margin-bottom: 2px; }
.sps-work-history__dates { font-size: 12px; color: var(--sps-text-sub); }
.sps-work-history__delete {
    flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
    border: 1px solid var(--sps-border); background: var(--sps-surface);
    color: #dc2626; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s;
}
.sps-work-history__delete:hover { background: #fee2e2; }
.sps-work-history__add-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; padding: 9px 16px; }
@media (max-width: 520px) {
    .sps-work-history__item { flex-direction: row; align-items: flex-start; }
    .sps-work-history__dates { font-size: 11px; }
}

/* ══════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON — shared across portal pages
══════════════════════════════════════════════════════════ */
.sps-wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 998;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(145deg,#25d366,#1aab52);
    color: #fff !important; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
    text-decoration: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: spsWaFloatPulse 2.5s ease-in-out infinite;
}
.sps-wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,.55); animation: none; }
@keyframes spsWaFloatPulse { 0%,100%{box-shadow:0 4px 16px rgba(37,211,102,.45)} 50%{box-shadow:0 4px 24px rgba(37,211,102,.7)} }
@media (max-width: 1024px) {
    .sps-wa-float { bottom: calc(var(--sps-tab-h) + env(safe-area-inset-bottom) + 16px); right: 16px; width: 50px; height: 50px; font-size: 24px; }
}
/* ══════════════════════════════════════════════════════════
   NAUKRI-STYLE PREMIUM PROFILE
══════════════════════════════════════════════════════════ */
.naukri-layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.naukri-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--sps-navbar-h) + 24px);
    background: var(--sps-surface);
    border-radius: var(--sps-radius);
    box-shadow: var(--sps-shadow);
    padding: 20px 0;
    z-index: 10;
}
.naukri-sidebar h3 {
    padding: 0 20px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--sps-text);
    border-bottom: 1px solid var(--sps-border);
    margin-bottom: 10px;
}
.naukri-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--sps-text-sub);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--sps-transition);
}
.naukri-nav-item:hover, .naukri-nav-item.active {
    background: rgba(0, 82, 212, 0.04);
    color: var(--sps-primary);
}
.naukri-nav-item .add-link {
    color: var(--sps-secondary);
    font-size: 12px;
    display: none;
}
.naukri-nav-item:hover .add-link {
    display: block;
}

.naukri-main {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.naukri-card {
    background: var(--sps-surface);
    border-radius: var(--sps-radius);
    box-shadow: var(--sps-shadow);
    padding: 24px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.naukri-card:hover {
    box-shadow: var(--sps-shadow-md);
}
.naukri-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.naukri-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sps-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.naukri-card__action {
    color: var(--sps-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.naukri-card__action:hover {
    color: var(--sps-primary);
}
.naukri-card__edit-icon {
    color: var(--sps-muted);
    cursor: pointer;
    transition: var(--sps-transition);
}
.naukri-card__edit-icon:hover {
    color: var(--sps-primary);
}

/* Profile Header specific */
.naukri-profile-top {
    display: flex;
    gap: 20px;
    align-items: stretch;
}
.naukri-profile-photo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--sps-border);
    overflow: hidden;
    flex-shrink: 0;
}
.naukri-profile-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.naukri-profile-photo-wrapper .init {
    width: 100%; height: 100%;
    background: var(--sps-grad);
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.naukri-profile-info {
    flex-grow: 1;
}
.naukri-profile-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--sps-text);
    margin-bottom: 4px;
}
.naukri-profile-designation {
    font-size: 14px;
    color: var(--sps-text-sub);
    margin-bottom: 12px;
}
.naukri-profile-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    font-size: 13px;
    color: var(--sps-text-sub);
}
.naukri-profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.naukri-profile-meta-item svg {
    color: var(--sps-muted);
    flex-shrink: 0;
}
.naukri-completion {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.naukri-completion-text {
    flex-grow: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--sps-text);
}
.naukri-progress {
    width: 150px;
    height: 8px;
    background: var(--sps-border);
    border-radius: 4px;
    overflow: hidden;
}
.naukri-progress-bar {
    height: 100%;
    background: var(--sps-success);
    border-radius: 4px;
}

/* Lists within cards (Education, Employment, etc) */
.naukri-list-item {
    padding: 16px 0;
    border-bottom: 1px dashed var(--sps-border);
    position: relative;
}
.naukri-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.naukri-list-item:first-child {
    padding-top: 0;
}
.naukri-list-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sps-text);
    margin-bottom: 4px;
    padding-right: 40px; /* Space for edit icon */
}
.naukri-list-item p {
    font-size: 13px;
    color: var(--sps-text-sub);
    margin-bottom: 2px;
}
.naukri-list-item .meta {
    font-size: 12px;
    color: var(--sps-muted);
}
.naukri-list-actions {
    position: absolute;
    top: 16px;
    right: 0;
    display: flex;
    gap: 8px;
}
.naukri-list-item:first-child .naukri-list-actions {
    top: 0;
}

/* Skills Tags */
.naukri-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.naukri-skill-tag {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid var(--sps-border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--sps-text-sub);
}

/* Table format for IT skills etc */
.naukri-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.naukri-table th {
    text-align: left;
    padding: 10px;
    color: var(--sps-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--sps-border);
}
.naukri-table td {
    padding: 10px;
    color: var(--sps-text);
    border-bottom: 1px solid var(--sps-border);
}
.naukri-table tr:last-child td {
    border-bottom: none;
}

/* Details grid */
.naukri-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.naukri-detail-box .label {
    font-size: 12px;
    color: var(--sps-muted);
    margin-bottom: 4px;
}
.naukri-detail-box .val {
    font-size: 14px;
    font-weight: 500;
    color: var(--sps-text);
}

/* Empty State styling within cards */
.naukri-empty {
    font-size: 13px;
    color: var(--sps-muted);
    font-style: italic;
}

@media (max-width: 991px) {
    .naukri-layout { flex-direction: column; }
    .naukri-sidebar { display: none; } /* Hide sidebar on mobile for now, or make it horizontal scroll */
    .naukri-profile-top { flex-direction: column; align-items: center; text-align: center; }
}
