/* ════════════════════════════════════════════════════════
   LC LMS – Premium Frontend CSS
   Developer: Rajan Sharma
   ════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@500;600;700;800;900&display=swap');

:root {
    --p:    #4f46e5;
    --p2:   #06b6d4;
    --g:    #10b981;
    --r:    #ef4444;
    --a:    #f59e0b;
    --pur:  #8b5cf6;
    --ind:  #6366f1;
    --card: #ffffff;
    --bdr:  #e2e8f0;
    --txt:  #0f172a;
    --mut:  #64748b;
    --rad:  16px;
    --rad2: 24px;
    --sh:   0 4px 24px rgba(0,0,0,0.07);
    --sh2:  0 20px 60px rgba(0,0,0,0.12);
    --sh3:  0 32px 80px rgba(0,0,0,0.18);
}

/* ── Global reset inside portal only ── */
.lc-portal-wrap *,
.lc-portal-wrap *::before,
.lc-portal-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.lc-portal-wrap {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--txt);
    line-height: 1.6;
}

/* ════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════ */

/* Fix: Remove black border around login — override WordPress page padding */
#lc-login-wrap {
    background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 40%, #24243e 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
    /* Override WordPress theme body margin/padding */
    margin: 0 !important;
    width: 100%;
}

/* Kill WordPress theme wrapper backgrounds showing through */
.lc-portal-wrap#lc-login-wrap,
body:has(#lc-login-wrap) {
    background: #0f0c29 !important;
}

/* Particles */
.lc-particles {
    position: absolute; inset: 0;
    overflow: hidden; pointer-events: none;
}
.lc-particle {
    position: absolute;
    width: calc(4px + var(--i) * 2px);
    height: calc(4px + var(--i) * 2px);
    background: rgba(99, 102, 241, calc(0.1 + var(--i) * 0.03));
    border-radius: 50%;
    top: calc(var(--i) * 5.5%);
    left: calc(var(--i) * 5.8%);
    animation: lc-float calc(8s + var(--i) * 0.7s) ease-in-out infinite alternate;
}
@keyframes lc-float {
    0%   { transform: translateY(0) rotate(0deg); opacity: .4; }
    100% { transform: translateY(-60px) rotate(360deg); opacity: .9; }
}

/* Login container */
.lc-login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    border-radius: var(--rad2);
    overflow: hidden;
    box-shadow: var(--sh3);
    position: relative;
    z-index: 2;
}

/* Left panel */
.lc-login-left {
    background: linear-gradient(160deg, #4f46e5 0%, #06b6d4 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.lc-login-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
    top: -80px; right: -80px;
}
.lc-login-left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
    bottom: -40px; left: -40px;
}
.lc-login-brand { position: relative; z-index: 1; }
.lc-brand-logo {
    width: 64px; height: 64px;
    background: rgba(255,255,255,.2);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.lc-login-brand h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 4px;
}
.lc-login-brand p { color: rgba(255,255,255,.8); font-size: 13px; }
.lc-login-tagline { position: relative; z-index: 1; }
.lc-login-tagline h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px; font-weight: 800; color: #fff;
    line-height: 1.3; margin-bottom: 14px;
}
.lc-login-tagline p {
    color: rgba(255,255,255,.78);
    font-size: 14px; line-height: 1.7;
}
.lc-login-features {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 10px;
}
.lc-feat-item {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,.9);
    font-size: 13.5px; font-weight: 500;
    background: rgba(255,255,255,.1);
    padding: 10px 16px; border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,.15);
    transition: background .2s;
}
.lc-feat-item:hover { background: rgba(255,255,255,.18); }
.lc-feat-item span { font-size: 18px; }

/* Right panel */
.lc-login-right {
    background: #fff;
    padding: 50px 44px;
    display: flex; align-items: center; justify-content: center;
}
.lc-login-card { width: 100%; max-width: 380px; }
.lc-login-header { text-align: center; margin-bottom: 32px; }
.lc-login-icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 16px;
    box-shadow: 0 12px 32px rgba(79,70,229,.35);
    animation: lc-icon-pulse 3s ease-in-out infinite;
}
@keyframes lc-icon-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(79,70,229,.35); }
    50%       { transform: scale(1.05); box-shadow: 0 16px 40px rgba(79,70,229,.5); }
}
.lc-login-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px; font-weight: 800; color: #1e1b4b; margin-bottom: 6px;
}
.lc-login-header p { color: var(--mut); font-size: 13.5px; }

/* Form fields */
.lc-fe-form-group { margin-bottom: 22px; position: relative; }
.lc-fe-form-group label {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: var(--mut);
    text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px;
}
.lc-fe-form-group input {
    width: 100%; border: none;
    border-bottom: 2px solid var(--bdr);
    padding: 10px 0;
    font-size: 15px; color: var(--txt);
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 500; outline: none;
    transition: border-color .3s;
}
.lc-fe-form-group input:focus { border-color: var(--p); }
.lc-fe-form-group input::placeholder { color: #cbd5e1; font-weight: 400; }
.lc-input-line {
    position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--p), var(--p2));
    transition: width .35s ease; border-radius: 2px;
}
.lc-fe-form-group input:focus ~ .lc-input-line { width: 100%; }

/* Hint box */
.lc-login-hint {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: 12px; font-weight: 600;
    padding: 10px 14px; border-radius: 8px;
    margin-bottom: 18px; line-height: 1.5;
}

/* Submit button */
.lc-login-submit-btn {
    width: 100%; padding: 16px 28px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    position: relative; overflow: hidden;
    transition: all .3s;
    box-shadow: 0 8px 24px rgba(79,70,229,.4);
}
.lc-login-submit-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 16px 40px rgba(79,70,229,.5);
}
.lc-login-submit-btn:active { transform: translateY(0) scale(.99); }
.btn-arrow { transition: transform .3s; font-size: 18px; }
.lc-login-submit-btn:hover .btn-arrow { transform: translateX(6px); }
.btn-ripple {
    position: absolute; inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.lc-login-submit-btn:hover .btn-ripple { opacity: 1; }
.lc-login-submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

/* Alerts */
.lc-fe-alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 13.5px; font-weight: 500;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.lc-fe-alert-error  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lc-fe-alert-success{ background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.lc-login-footer {
    text-align: center; margin-top: 24px; color: var(--mut);
    font-size: 12px; padding-top: 18px; border-top: 1px solid var(--bdr);
}

/* ════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════ */
.lc-dashboard-wrap {
    background: linear-gradient(160deg, #eef2ff 0%, #faf8ff 50%, #ecfdf5 100%);
    min-height: 100vh;
}

/* ── NAV ── */
.lc-dash-nav {
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(79,70,229,.1);
    padding: 0 24px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.lc-nav-brand { display: flex; align-items: center; gap: 10px; }
.lc-nav-logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 900; color: #fff;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 14px rgba(79,70,229,.4);
    flex-shrink: 0;
}
.lc-nav-title span { display: block; font-weight: 800; font-size: 14px; color: #1e1b4b; font-family: 'Poppins', sans-serif; }
.lc-nav-title small { font-size: 10px; color: var(--mut); }
.lc-nav-greeting { font-size: 13px; color: var(--mut); }
.lc-nav-greeting strong { color: #1e1b4b; }
.lc-nav-actions { display: flex; align-items: center; gap: 10px; }
.lc-nav-clock {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; color: var(--p);
    background: rgba(79,70,229,.08);
    padding: 6px 12px; border-radius: 20px;
    white-space: nowrap;
}
.lc-logout-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff; border: none; border-radius: 9px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(239,68,68,.35);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.lc-logout-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(239,68,68,.45); }

/* ── HERO BANNER ── */
.lc-hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #4f46e5 55%, #06b6d4 100%);
    padding: 32px 24px;
    position: relative; overflow: hidden;
}
.lc-hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.lc-hero-shape { position: absolute; border-radius: 50%; opacity: .08; }
.lc-hero-shape.s1 { width: 300px; height: 300px; background: #fff; top: -100px; right: -80px; }
.lc-hero-shape.s2 { width: 200px; height: 200px; background: #06b6d4; bottom: -60px; left: 30%; }
.lc-hero-shape.s3 { width: 150px; height: 150px; background: #fff; top: 10px; left: 200px; }

.lc-hero-content {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 24px; position: relative; z-index: 1;
    flex-wrap: wrap;
}
.lc-hero-left { flex: 1; min-width: 240px; }
.lc-hero-left h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px; font-weight: 800; color: #fff;
    margin-bottom: 6px; line-height: 1.25;
}
.lc-hero-motivation {
    color: rgba(255,255,255,.82);
    font-size: 14px; font-style: italic;
    margin-bottom: 18px; line-height: 1.6;
}

/* Action buttons */
.lc-hero-action-btns {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.lc-hero-action-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 12px;
    font-size: 14px; font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: #fff; text-decoration: none;
    transition: all .25s;
    border: none; cursor: pointer;
}
.lc-hero-action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    color: #fff; text-decoration: none;
}
.lc-hero-action-btn span { font-size: 16px; }
.lc-hab-purple {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 6px 20px rgba(124,58,237,.4);
}
.lc-hab-purple:hover { box-shadow: 0 10px 30px rgba(124,58,237,.55); }
.lc-hab-green {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 6px 20px rgba(5,150,105,.4);
}
.lc-hab-green:hover { box-shadow: 0 10px 30px rgba(5,150,105,.55); }

/* Hero stats */
.lc-hero-stats {
    display: flex; align-items: center;
    background: rgba(255,255,255,.12);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    overflow: hidden; flex-shrink: 0;
}
.lc-hero-stat { padding: 16px 24px; text-align: center; }
.lc-hero-stat-divider { width: 1px; height: 46px; background: rgba(255,255,255,.2); }
.lc-hs-val {
    display: block; font-size: 22px; font-weight: 900;
    color: #fff; font-family: 'Poppins', sans-serif;
}
.lc-hs-lbl {
    font-size: 10px; color: rgba(255,255,255,.7);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .5px; margin-top: 2px; display: block;
}

/* ── CONTAINER ── */
.lc-dash-container {
    max-width: 1280px; margin: 0 auto;
    padding: 24px 20px 60px;
}

/* ════════════════════════════════════════════════════════
   PROFILE MEGA CARD — 2 columns only
   ════════════════════════════════════════════════════════ */
.lc-profile-mega-card {
    display: grid !important;
    grid-template-columns: 230px 1fr !important;
    background: var(--card);
    border-radius: var(--rad2);
    box-shadow: var(--sh2);
    border: 1px solid rgba(79,70,229,.1);
    overflow: hidden;
    margin-bottom: 22px;
    transition: transform .3s, box-shadow .3s;
}
.lc-profile-mega-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh3);
}
.lc-pmc-right { display: none !important; }

/* PMC Left */
.lc-pmc-left {
    background: linear-gradient(170deg, #1e1b4b 0%, #4f46e5 100%);
    padding: 32px 20px;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    position: relative; overflow: hidden;
}
.lc-pmc-left::before {
    content: '';
    position: absolute; width: 200px; height: 200px;
    background: rgba(255,255,255,.05);
    border-radius: 50%; top: -60px; right: -60px;
}

/* Photo ring — ring is outer wrapper, photo inside */
.lc-pmc-photo-ring-outer {
    width: 130px; height: 130px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #06b6d4, #4f46e5, #8b5cf6);
    animation: lc-ring-spin 4s linear infinite;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
@keyframes lc-ring-spin { to { transform: rotate(360deg); } }

.lc-pmc-photo {
    width: 124px !important; height: 124px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid #fff !important;
    display: block !important;
    box-shadow: 0 6px 24px rgba(0,0,0,.25) !important;
}
.lc-pmc-initials {
    width: 124px !important; height: 124px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.2) !important;
    display: flex !important; align-items: center !important;
    justify-content: center !important;
    font-size: 40px !important; font-weight: 900 !important;
    color: #fff !important;
    border: 4px solid rgba(255,255,255,.4) !important;
}
.lc-pmc-id-badge {
    display: flex; align-items: center; gap: 6px;
    background: rgba(16,185,129,.2);
    border: 1px solid rgba(16,185,129,.4);
    color: #6ee7b7; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .5px;
    margin-bottom: 10px;
}
.lc-pmc-badge-dot {
    width: 6px; height: 6px; background: #10b981;
    border-radius: 50%; animation: lc-pulse-dot 2s infinite;
}
@keyframes lc-pulse-dot { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.lc-pmc-name {
    font-family: 'Poppins', sans-serif;
    font-size: 18px !important; font-weight: 800 !important;
    color: #fff; margin-bottom: 6px; line-height: 1.3;
}
.lc-pmc-enrolment {
    font-size: 13px !important; font-weight: 700 !important;
    color: rgba(255,255,255,.75); margin-bottom: 10px;
    display: flex; align-items: center; gap: 4px; justify-content: center;
}
.lc-pmc-course-tag {
    background: rgba(6,182,212,.2);
    border: 1px solid rgba(6,182,212,.4);
    color: #67e8f9; font-size: 12px !important; font-weight: 700;
    padding: 5px 12px !important; border-radius: 20px;
    margin-bottom: 14px; text-align: center; max-width: 100%;
}
.lc-pmc-sig-wrap { margin-bottom: 12px; text-align: center; }
.lc-pmc-sig {
    max-width: 110px; height: 38px;
    object-fit: contain;
    background: rgba(255,255,255,.15);
    border-radius: 6px; padding: 3px;
}
.lc-pmc-sig-wrap span { display: block; font-size: 10px; color: rgba(255,255,255,.5); margin-top: 3px; }
.lc-view-admission-btn {
    width: 100%; padding: 10px 14px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.3);
    color: #fff; border-radius: 10px;
    font-size: 12px; font-weight: 700;
    cursor: pointer; transition: all .2s;
    font-family: 'Inter', sans-serif; margin-top: 8px;
}
.lc-view-admission-btn:hover {
    background: rgba(255,255,255,.22); transform: translateY(-2px);
}

/* PMC Middle */
.lc-pmc-middle { padding: 28px 24px; }
.lc-pmc-section-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.lc-pmc-section-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--p), var(--p2));
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.lc-pmc-section-head h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px; font-weight: 800; color: #1e1b4b;
}

/* Academic grid */
.lc-academic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px; margin-bottom: 18px;
}
.lc-acad-item {
    display: flex; align-items: center;
    gap: 10px; padding: 13px 14px;
    border-radius: 12px;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}
.lc-acad-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.lc-acad-icon  { font-size: 22px !important; flex-shrink: 0; }
.lc-acad-label {
    font-size: 10px !important; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    opacity: .75; margin-bottom: 2px;
}
.lc-acad-value { font-size: 14px !important; font-weight: 800 !important; }
.lc-acad-blue   { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.lc-acad-purple { background: #f5f3ff; border: 1px solid #ddd6fe; color: #6d28d9; }
.lc-acad-green  { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.lc-acad-amber  { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.lc-acad-pink   { background: #fdf2f8; border: 1px solid #f9a8d4; color: #9d174d; }
.lc-acad-teal   { background: #f0fdfa; border: 1px solid #99f6e4; color: #0f766e; }
.lc-acad-indigo { background: #eef2ff; border: 1px solid #c7d2fe; color: #3730a3; }
.lc-acad-cyan   { background: #ecfeff; border: 1px solid #a5f3fc; color: #0e7490; }

/* Attendance mini bar */
.lc-acad-att-bar {
    background: linear-gradient(135deg, rgba(79,70,229,.04), rgba(6,182,212,.04));
    border: 1px solid rgba(79,70,229,.1);
    border-radius: 12px; padding: 14px 16px;
}
.lc-aab-label {
    display: flex; justify-content: space-between;
    font-size: 12px; font-weight: 700; color: var(--mut); margin-bottom: 8px;
}
.lc-aab-label strong { font-size: 14px; }
.lc-aab-track { height: 8px; background: #e5e7eb; border-radius: 20px; overflow: hidden; margin-bottom: 10px; }
.lc-aab-fill { height: 100%; border-radius: 20px; transition: width 1.5s ease; }
.lc-aab-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lc-chip { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.lc-chip-green { background: #dcfce7; color: #15803d; }
.lc-chip-red   { background: #fee2e2; color: #b91c1c; }
.lc-chip-amber { background: #fef3c7; color: #92400e; }

/* ════════════════════════════════════════════════════════
   STATS ROW
   ════════════════════════════════════════════════════════ */
.lc-stats-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px; margin-bottom: 22px;
}
.lc-stat-pill {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 16px; border-radius: 14px;
    border: 1px solid transparent;
    transition: transform .2s, box-shadow .2s;
}
.lc-stat-pill:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.lc-sp-icon { font-size: 24px; flex-shrink: 0; }
.lc-sp-body { min-width: 0; }
.lc-sp-val {
    font-family: 'Poppins', sans-serif;
    font-size: 18px; font-weight: 900; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lc-sp-lbl {
    font-size: 10px; font-weight: 600;
    color: rgba(255,255,255,.8);
    text-transform: uppercase; letter-spacing: .3px; margin-top: 2px;
}
.lc-sp-blue   { background: linear-gradient(135deg,#3b82f6,#2563eb); border-color: #93c5fd; }
.lc-sp-green  { background: linear-gradient(135deg,#10b981,#059669); border-color: #6ee7b7; }
.lc-sp-amber  { background: linear-gradient(135deg,#f59e0b,#d97706); border-color: #fcd34d; }
.lc-sp-red    { background: linear-gradient(135deg,#ef4444,#dc2626); border-color: #fca5a5; }
.lc-sp-purple { background: linear-gradient(135deg,#8b5cf6,#7c3aed); border-color: #c4b5fd; }

/* ════════════════════════════════════════════════════════
   MAIN GRID
   ════════════════════════════════════════════════════════ */
.lc-main-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 22px;
}
.lc-col-left, .lc-col-right { display: flex; flex-direction: column; }

/* Premium card */
.lc-premium-card {
    background: var(--card);
    border-radius: var(--rad2);
    box-shadow: var(--sh);
    border: 1px solid var(--bdr);
    overflow: hidden;
    transition: transform .3s, box-shadow .3s;
}
.lc-premium-card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
.lc-pc-header {
    padding: 18px 22px;
    display: flex; align-items: center; gap: 12px;
    position: relative; overflow: hidden;
}
.lc-pc-header::after {
    content: '';
    position: absolute; right: -20px; top: -20px;
    width: 80px; height: 80px;
    background: rgba(255,255,255,.1); border-radius: 50%;
}
.lc-pc-header-icon { font-size: 24px; flex-shrink: 0; position: relative; z-index: 1; }
.lc-pc-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px; font-weight: 800; color: #fff;
    position: relative; z-index: 1;
}
.lc-pc-header p {
    font-size: 12px; color: rgba(255,255,255,.75);
    margin-top: 2px; position: relative; z-index: 1;
}
.lc-pc-header-badge {
    margin-left: auto; padding: 5px 12px;
    background: rgba(255,255,255,.2); color: #fff;
    border-radius: 20px; font-size: 12px; font-weight: 800;
    border: 1px solid rgba(255,255,255,.3);
    position: relative; z-index: 1; white-space: nowrap;
}
.lc-pch-purple { background: linear-gradient(135deg,#7c3aed,#8b5cf6); }
.lc-pch-green  { background: linear-gradient(135deg,#059669,#10b981); }
.lc-pch-amber  { background: linear-gradient(135deg,#d97706,#f59e0b); }
.lc-pch-indigo { background: linear-gradient(135deg,#4338ca,#6366f1); }
.lc-pc-body { padding: 20px 22px; }

/* Attendance overview */
.lc-att-overview { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.lc-att-ring-container { position: relative; flex-shrink: 0; }
.lc-att-donut { width: 150px; height: 150px; }
.lc-att-warning-badge {
    position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%);
    background: #fef3c7; color: #92400e;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px;
    border: 1px solid #fde68a; white-space: nowrap;
}
.lc-att-breakdown {
    display: flex; gap: 12px; align-items: flex-end;
    flex: 1; justify-content: center;
}
.lc-att-bd-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.lc-att-bd-bar-wrap {
    width: 34px; height: 75px;
    background: #f1f5f9; border-radius: 8px;
    overflow: hidden; display: flex; align-items: flex-end;
}
.lc-att-bd-fill { width: 100%; border-radius: 8px; transition: height 1.5s ease; }
.lc-att-bd-val { font-size: 16px; font-weight: 800; }
.lc-att-bd-lbl { font-size: 10px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .3px; }
.lc-att-chart-wrap { border-top: 1px solid var(--bdr); padding-top: 16px; }
.lc-att-chart-title { font-size: 13px; font-weight: 700; color: var(--txt); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }

/* Fee summary */
.lc-fee-summary-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 10px; margin-bottom: 16px;
}
.lc-fsg-item { padding: 12px 14px; border-radius: 12px; text-align: center; }
.lc-fsgi-blue  { background: linear-gradient(135deg,rgba(59,130,246,.08),rgba(37,99,235,.08)); border: 1px solid rgba(59,130,246,.2); }
.lc-fsgi-green { background: linear-gradient(135deg,rgba(16,185,129,.08),rgba(5,150,105,.08)); border: 1px solid rgba(16,185,129,.2); }
.lc-fsgi-red   { background: linear-gradient(135deg,rgba(239,68,68,.08),rgba(220,38,38,.08));  border: 1px solid rgba(239,68,68,.2); }
.lc-fsgi-label { font-size: 10px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.lc-fsgi-val   { font-size: 16px; font-weight: 900; font-family: 'Poppins', sans-serif; }
.lc-fsgi-blue .lc-fsgi-val  { color: #2563eb; }
.lc-fsgi-green .lc-fsgi-val { color: #059669; }
.lc-fsgi-red .lc-fsgi-val   { color: #dc2626; }

.lc-fee-prog-section { margin-bottom: 18px; }
.lc-fee-prog-label { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--mut); margin-bottom: 8px; }
.lc-fee-prog-label strong { color: var(--txt); font-size: 13px; }
.lc-fee-prog-track { height: 10px; background: #f1f5f9; border-radius: 20px; overflow: hidden; position: relative; }
.lc-fee-prog-fill { height: 100%; background: linear-gradient(90deg,#10b981,#059669); border-radius: 20px; transition: width 1.5s ease; }
.lc-fee-prog-glow { position: absolute; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; margin-left: -7px; transition: left 1.5s ease; }

.lc-receipt-list-title { font-size: 12px; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.lc-receipt-list { display: flex; flex-direction: column; gap: 8px; }
.lc-receipt-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 11px; background: #f8fafc; border: 1px solid var(--bdr); cursor: pointer; transition: all .2s; }
.lc-receipt-item:hover { background: #f0f4ff; border-color: rgba(79,70,229,.2); transform: translateX(4px); }
.lc-ri-left { display: flex; align-items: center; gap: 10px; }
.lc-ri-icon { font-size: 20px; }
.lc-ri-receipt { font-size: 13px; font-weight: 700; color: var(--txt); }
.lc-ri-date { font-size: 11px; color: var(--mut); }
.lc-ri-right { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.lc-ri-amount { font-size: 13px; font-weight: 800; color: var(--txt); white-space: nowrap; }
.lc-ri-status { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; white-space: nowrap; }
.lc-ris-paid    { background: #dcfce7; color: #15803d; }
.lc-ris-partial { background: #fef3c7; color: #92400e; }
.lc-ris-pending { background: #fee2e2; color: #b91c1c; }
.lc-ri-view-btn { background: var(--p); color: #fff; border: none; padding: 5px 11px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .2s; white-space: nowrap; }
.lc-ri-view-btn:hover { background: #4338ca; }

/* Achievements */
.lc-ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-ach-card { display: flex; flex-direction: column; align-items: center; padding: 16px 10px; border-radius: 12px; background: linear-gradient(135deg,rgba(245,158,11,.06),rgba(217,119,6,.06)); border: 1px solid rgba(245,158,11,.2); text-decoration: none; color: var(--txt); transition: all .25s; text-align: center; }
.lc-ach-card:hover { background: linear-gradient(135deg,rgba(245,158,11,.14),rgba(217,119,6,.14)); transform: translateY(-4px); box-shadow: 0 10px 28px rgba(245,158,11,.18); color: var(--txt); }
.lc-ach-card-icon { font-size: 28px; margin-bottom: 7px; }
.lc-ach-card-name { font-size: 12px; font-weight: 700; color: var(--txt); margin-bottom: 6px; line-height: 1.3; }
.lc-ach-card-dl { font-size: 11px; font-weight: 700; color: var(--a); background: rgba(245,158,11,.12); padding: 3px 10px; border-radius: 10px; }

/* Quick info */
.lc-quick-info-list { display: flex; flex-direction: column; }
.lc-qi-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid rgba(0,0,0,.04); }
.lc-qi-row:last-child { border: none; }
.lc-qi-even { background: rgba(79,70,229,.025); }
.lc-qi-icon { font-size: 14px; text-align: center; }
.lc-qi-label { font-size: 12px; font-weight: 600; color: var(--mut); }
.lc-qi-val { font-size: 12px; font-weight: 700; color: var(--txt); text-align: right; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Empty state */
.lc-empty-state { text-align: center; padding: 28px 20px; color: var(--mut); }
.lc-empty-state span { font-size: 36px; display: block; margin-bottom: 10px; }
.lc-empty-state p { font-size: 13px; line-height: 1.6; }

/* ════════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════════ */
.lc-fe-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.65); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; backdrop-filter: blur(4px);
}
.lc-fe-modal {
    background: #fff; border-radius: var(--rad2);
    width: 100%; max-width: 900px;
    max-height: 92vh; overflow-y: auto;
    box-shadow: var(--sh3); animation: lc-modal-in .25s ease;
}
@keyframes lc-modal-in { from{opacity:0;transform:scale(.95) translateY(20px);} to{opacity:1;transform:none;} }
.lc-fe-modal-header {
    background: linear-gradient(135deg,#1e1b4b,#4f46e5);
    color: #fff; padding: 16px 22px;
    border-radius: var(--rad2) var(--rad2) 0 0;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 10;
}
.lc-fe-modal-header h3 { font-family: 'Poppins',sans-serif; font-size: 15px; font-weight: 800; }
.lc-fe-modal-action-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 13px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background .2s; font-family: 'Inter',sans-serif; }
.lc-fe-modal-action-btn:hover { background: rgba(255,255,255,.25); }
.lc-fe-modal-close { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 30px; height: 30px; border-radius: 7px; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lc-fe-modal-close:hover { background: rgba(239,68,68,.5); }
.lc-fe-modal-body { padding: 22px; }

/* Footer */
.lc-portal-footer { background: linear-gradient(135deg,#1e1b4b,#312e81); padding: 24px; }
.lc-footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; line-height: 2; }
.lc-footer-inner strong { color: #fff; }

/* Spinner */
.lc-fe-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: lc-fe-spin .7s linear infinite; vertical-align: middle; }
@keyframes lc-fe-spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Full Premium
   ════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1100px) {
    .lc-main-grid { grid-template-columns: 1fr; }
    .lc-stats-row { grid-template-columns: repeat(3, 1fr); }
    .lc-profile-mega-card { grid-template-columns: 200px 1fr !important; }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
    /* Login */
    .lc-login-container { grid-template-columns: 1fr; min-height: auto; }
    .lc-login-left { display: none; }
    .lc-login-right { padding: 36px 28px; }

    /* Nav */
    .lc-dash-nav { padding: 0 14px; }
    .lc-nav-center { display: none; }
    .lc-nav-clock { display: none; }

    /* Hero */
    .lc-hero-banner { padding: 24px 16px; }
    .lc-hero-content { flex-direction: column; align-items: flex-start; gap: 18px; }
    .lc-hero-left h1 { font-size: 22px; }
    .lc-hero-motivation { font-size: 13px; margin-bottom: 14px; }
    .lc-hero-stats { width: 100%; }
    .lc-hero-stat { padding: 12px 16px; }
    .lc-hs-val { font-size: 18px; }
    .lc-hero-action-btns { flex-direction: column; gap: 10px; }
    .lc-hero-action-btn { width: 100%; justify-content: center; padding: 12px 20px; }

    /* Container */
    .lc-dash-container { padding: 16px 12px 40px; }

    /* Profile card — stack vertically */
    .lc-profile-mega-card { grid-template-columns: 1fr !important; }
    .lc-pmc-left {
        padding: 24px 20px;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
        flex-wrap: wrap;
    }
    .lc-pmc-photo-ring-outer { margin: 0; flex-shrink: 0; }
    .lc-pmc-id-badge { align-self: flex-start; }
    .lc-pmc-name { text-align: left; }
    .lc-pmc-enrolment { justify-content: flex-start; }
    .lc-pmc-course-tag { text-align: left; }

    /* Stats row */
    .lc-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
    .lc-stat-pill { padding: 14px 12px; gap: 10px; }
    .lc-sp-val { font-size: 16px; }

    /* Academic grid */
    .lc-academic-grid { grid-template-columns: 1fr; }

    /* Attendance overview — stack */
    .lc-att-overview { flex-direction: column; align-items: center; gap: 18px; }
    .lc-att-breakdown { width: 100%; justify-content: space-around; }

    /* Fee summary */
    .lc-fee-summary-grid { grid-template-columns: 1fr; gap: 8px; }

    /* Main grid — single column */
    .lc-main-grid { grid-template-columns: 1fr; gap: 16px; }

    /* Achievement grid */
    .lc-ach-grid { grid-template-columns: 1fr 1fr; }

    /* Quick info */
    .lc-qi-val { max-width: 120px; font-size: 12px; }

    /* Modal */
    .lc-fe-modal { max-width: 100%; border-radius: 16px; }
    .lc-fe-modal-body { padding: 16px; }
}

/* Phone */
@media (max-width: 480px) {
    /* Login */
    .lc-login-right { padding: 28px 20px; }
    .lc-login-card { max-width: 100%; }
    .lc-login-header h3 { font-size: 20px; }

    /* Nav */
    .lc-nav-logo { width: 34px; height: 34px; font-size: 11px; }
    .lc-nav-title span { font-size: 13px; }
    .lc-logout-btn { padding: 7px 12px; font-size: 12px; }

    /* Hero */
    .lc-hero-left h1 { font-size: 20px; }
    .lc-hero-stats { flex-wrap: wrap; }
    .lc-hero-stat { padding: 10px 14px; flex: 1; min-width: 80px; }

    /* Profile card */
    .lc-pmc-left { flex-direction: column; text-align: center; padding: 24px 16px; }
    .lc-pmc-photo-ring-outer { margin: 0 auto 12px; }
    .lc-pmc-id-badge { align-self: center; }
    .lc-pmc-name { text-align: center; font-size: 16px !important; }
    .lc-pmc-enrolment { justify-content: center; font-size: 12px !important; }

    /* Stats */
    .lc-stats-row { grid-template-columns: 1fr; gap: 8px; }
    .lc-stat-pill { padding: 12px 14px; }

    /* Academic */
    .lc-acad-item { padding: 10px 12px; }
    .lc-acad-icon { font-size: 20px !important; }
    .lc-acad-value { font-size: 13px !important; }

    /* Attendance */
    .lc-att-donut { width: 130px; height: 130px; }
    .lc-att-breakdown { gap: 8px; }
    .lc-att-bd-bar-wrap { width: 30px; height: 65px; }

    /* Fee */
    .lc-fee-summary-grid { grid-template-columns: 1fr; }
    .lc-receipt-item { flex-wrap: wrap; gap: 8px; }
    .lc-ri-right { flex-wrap: wrap; gap: 6px; }

    /* Achievement grid */
    .lc-ach-grid { grid-template-columns: 1fr; }

    /* Chips */
    .lc-aab-chips { gap: 6px; }
    .lc-chip { font-size: 10px; padding: 3px 8px; }

    /* Modal */
    .lc-fe-modal-header { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
    .lc-fe-modal-header h3 { font-size: 14px; }
    .lc-fe-modal-action-btn { padding: 5px 10px; font-size: 11px; }
}