:root{--bg:#f8fafc;--surface:#ffffff;--surface-alt:#f1f5f9;--border:#dbe3ee;--text:#0f172a;--text-muted:#475569;--primary:#1d4ed8;--primary-hover:#1e40af;--accent:#0e7490;--navy:#0b1f3a;--danger:#b91c1c;--curs-bg:#eff6ff;--curs-border:#bfdbfe;--curs-text:#1e40af;--lab-bg:#ecfeff;--lab-border:#a5f3fc;--lab-text:#155e75;--seminar-bg:#f5f3ff;--seminar-border:#ddd6fe;--seminar-text:#5b21b6;--proiect-bg:#fffbeb;--proiect-border:#fde68a;--proiect-text:#92400e;--shadow-hover:0 10px 24px rgba(15,23,42,0.08);--radius:14px}
[data-theme="dark"]{--bg:#0b1120;--surface:#111827;--surface-alt:#1a2436;--border:#2a374f;--text:#f1f5f9;--text-muted:#cbd5e1;--primary:#3b82f6;--primary-hover:#60a5fa;--accent:#22d3ee;--danger:#dc2626;--curs-bg:rgba(59,130,246,0.14);--curs-border:rgba(96,165,250,0.35);--curs-text:#93c5fd;--lab-bg:rgba(6,182,212,0.14);--lab-border:rgba(34,211,238,0.35);--lab-text:#67e8f9;--seminar-bg:rgba(139,92,246,0.14);--seminar-border:rgba(167,139,250,0.35);--seminar-text:#c4b5fd;--proiect-bg:rgba(245,158,11,0.14);--proiect-border:rgba(251,191,36,0.35);--proiect-text:#fcd34d;--shadow-hover:0 12px 28px rgba(0,0,0,0.45)}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth;font-size:16px}
body{font-family:"IBM Plex Sans",system-ui,-apple-system,sans-serif;background:var(--bg);color:var(--text);font-size:1rem;line-height:1.6;transition:background .2s ease,color .2s ease}
::selection{background:var(--primary);color:#fff}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--surface-alt)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:999px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}
h1,h2,h3{font-family:"Bricolage Grotesque","IBM Plex Sans",sans-serif;line-height:1.2;letter-spacing:-0.02em}
h1{font-size:clamp(2rem,3.6vw,2.75rem)}h2{font-size:clamp(1.5rem,2.5vw,1.85rem)}h3{font-size:1.25rem}
a{color:inherit;text-decoration:none;text-underline-offset:3px}
code{font-family:"IBM Plex Mono",monospace;font-size:.88em;background:var(--surface-alt);padding:2px 6px;border-radius:6px}
.mono{font-family:"IBM Plex Mono",monospace;font-size:.85rem;font-variant-numeric:tabular-nums}.container{width:min(1220px,100%);margin:0 auto}
.demo-banner{background:var(--navy);color:#f1f5f9;font-size:.875rem;padding:10px 20px;border-bottom:1px solid rgba(255,255,255,0.14)}
.demo-banner-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.demo-badge-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.demo-pill{background:#1e3a8a;color:#fff;border:1px solid #60a5fa;padding:3px 10px;border-radius:999px;font-size:.72rem;font-weight:700;letter-spacing:.04em}
.demo-actions{display:flex;align-items:center;gap:8px}
.btn-ghost-sm{background:rgba(255,255,255,0.12);color:#fff;border:1px solid rgba(255,255,255,0.28);padding:6px 12px;border-radius:8px;cursor:pointer;font-size:.82rem;font-weight:600}.btn-ghost-sm:hover{background:rgba(255,255,255,0.22)}
.btn-icon-sm{background:transparent;border:1px solid var(--border);color:inherit;width:30px;height:30px;border-radius:8px;cursor:pointer;display:grid;place-items:center}
.site-header{position:sticky;top:0;z-index:50;background:var(--surface);border-bottom:1px solid var(--border);padding-inline:20px}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;height:70px}.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-mark{width:42px;height:42px;border-radius:11px;background:#1e3a8a;color:#fff;font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:.95rem;display:grid;place-items:center;flex-shrink:0;letter-spacing:.04em}
.brand-text{display:flex;flex-direction:column;min-width:0}.brand-title{font-weight:700;font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.brand-sub{font-size:.78rem;color:var(--text-muted)}
.main-nav{display:flex;align-items:center;gap:20px}.main-nav a{font-size:.92rem;font-weight:500;color:var(--text-muted);transition:color .15s}.main-nav a:hover{color:var(--primary)}
.header-controls{display:flex;align-items:center;gap:10px}
.theme-toggle,.mobile-menu-btn{background:var(--surface-alt);border:1px solid var(--border);width:38px;height:38px;border-radius:10px;cursor:pointer;display:grid;place-items:center;color:var(--text)}
.mobile-menu-btn{display:none}.mobile-nav{display:none;flex-direction:column;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface);gap:12px}.mobile-nav.open{display:flex}
.btn-primary,.btn-primary-sm,.btn-secondary,.btn-outline{display:inline-flex;align-items:center;justify-content:center;gap:7px;font-family:inherit;font-weight:600;border-radius:10px;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .12s;border:1px solid transparent}
.btn-primary{background:var(--primary);color:#fff;padding:10px 18px;font-size:.94rem}.btn-primary:hover{background:var(--primary-hover)}
.btn-primary-sm{background:var(--primary);color:#fff;padding:8px 14px;font-size:.88rem}.btn-primary-sm:hover{background:var(--primary-hover)}
.btn-secondary{background:var(--surface-alt);color:var(--text);border-color:var(--border);padding:9px 14px;font-size:.88rem}.btn-secondary:hover,.btn-outline:hover{border-color:var(--primary);color:var(--primary)}
.btn-outline{background:transparent;color:var(--text);border-color:var(--border);padding:9px 14px;font-size:.88rem}
.hero{padding:52px 20px 44px;background:var(--surface);border-bottom:1px solid var(--border)}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}.hero h1{margin-bottom:16px}.accent-text{color:var(--primary)}
.hero-desc{color:var(--text-muted);font-size:1.05rem;margin-bottom:24px;max-width:58ch}
.hero-search{display:flex;align-items:center;gap:10px;background:var(--surface-alt);border:1px solid var(--border);border-radius:14px;padding:6px 6px 6px 14px}
.hero-search:focus-within{border-color:var(--primary);background:var(--surface)}.search-icon{color:var(--text-muted);display:grid;place-items:center}
.hero-search input{flex:1;border:none;outline:none;background:transparent;color:var(--text);font-family:inherit;font-size:.96rem;min-width:0}.hero-search input::placeholder{color:var(--text-muted)}
.search-hints{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px;font-size:.84rem;color:var(--text-muted)}
.hint-chip{background:var(--surface-alt);border:1px solid var(--border);color:var(--text);padding:4px 11px;border-radius:999px;font-size:.82rem;font-weight:500;cursor:pointer}.hint-chip:hover{border-color:var(--primary);color:var(--primary)}
.quick-hub{display:grid;gap:12px}
.hub-card{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:15px 18px;transition:transform .15s,border-color .15s,box-shadow .15s}
.hub-card:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:var(--shadow-hover)}.hub-card.hub-primary{background:var(--curs-bg);border-color:var(--curs-border)}
.hub-icon{width:44px;height:44px;border-radius:11px;background:var(--surface-alt);color:var(--primary);display:grid;place-items:center;flex-shrink:0}.hub-body{min-width:0}
.hub-title{display:block;font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:1.05rem;margin-bottom:2px}.hub-card p{font-size:.86rem;color:var(--text-muted)}
.hub-arrow{margin-left:auto;font-weight:700;color:var(--primary)}.hub-badge{margin-left:auto;background:var(--danger);color:#fff;font-size:.75rem;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap}
.section{padding:56px 20px}.section-alt{background:var(--surface-alt);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.section-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}.section-header h2{margin-bottom:8px}.section-sub{color:var(--text-muted);max-width:68ch;font-size:.97rem}
.week-indicator{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.segmented{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:3px}
.seg-btn{background:transparent;border:none;color:var(--text-muted);padding:7px 13px;border-radius:7px;font-size:.86rem;font-weight:600;cursor:pointer}.seg-btn.active{background:var(--primary);color:#fff}
.schedule-toolbar{display:grid;grid-template-columns:repeat(4,1fr) auto;gap:12px;align-items:end;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:14px}
.filter-group{display:flex;flex-direction:column;gap:6px}.filter-group label{font-size:.8rem;font-weight:600;color:var(--text-muted)}
.filter-group select{background:var(--surface-alt);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:9px 10px;font-family:inherit;font-size:.9rem}.toolbar-actions{display:flex;gap:8px}
.schedule-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:.84rem;color:var(--text-muted);margin-bottom:16px}
.legend-item{display:inline-flex;align-items:center;gap:6px;font-weight:500}.dot{width:10px;height:10px;border-radius:3px;display:inline-block}
.dot-curs{background:var(--curs-text)}.dot-lab{background:var(--lab-text)}.dot-seminar{background:var(--seminar-text)}.dot-proiect{background:var(--proiect-text)}.legend-note{margin-left:auto;font-style:italic}
.schedule-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.day-column{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;display:flex;flex-direction:column;gap:10px;min-height:260px}.day-column.is-today{border-color:var(--primary)}
.day-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--border);font-weight:700;font-size:.96rem}
.today-pill{font-size:.7rem;font-weight:700;background:var(--primary);color:#fff;padding:2px 7px;border-radius:999px;margin-left:6px}
.day-count{font-size:.78rem;color:var(--text-muted);font-weight:500;font-variant-numeric:tabular-nums}
.class-card{border-radius:10px;padding:11px 12px;border:1px solid var(--curs-border);background:var(--curs-bg);font-size:.85rem}
.class-card.type-lab{background:var(--lab-bg);border-color:var(--lab-border)}.class-card.type-seminar{background:var(--seminar-bg);border-color:var(--seminar-border)}.class-card.type-proiect{background:var(--proiect-bg);border-color:var(--proiect-border)}
.class-time{font-family:"IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;font-size:.76rem;font-weight:600;color:var(--text-muted);display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px}
.class-title{font-weight:700;margin-bottom:5px;font-size:.88rem}.class-meta{font-size:.78rem;color:var(--text-muted);display:flex;align-items:center;gap:5px}
.parity-tag{font-size:.7rem;padding:2px 7px;border-radius:999px;background:var(--surface);border:1px solid var(--border);color:var(--text)}
.announcement-search-wrap input{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:9px 14px;min-width:250px;font-family:inherit;font-size:.92rem}.announcement-search-wrap input::placeholder{color:var(--text-muted)}
.category-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}
.pill{background:var(--surface);color:var(--text-muted);border:1px solid var(--border);padding:7px 14px;border-radius:999px;font-size:.86rem;font-weight:600;cursor:pointer}.pill:hover{border-color:var(--primary);color:var(--text)}.pill.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.announcements-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.news-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:10px;transition:transform .15s,border-color .15s,box-shadow .15s}
.news-card:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:var(--shadow-hover)}.news-card.urgent{border-color:rgba(185,28,28,0.45)}
.news-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem}
.badge{background:var(--surface-alt);color:var(--primary);padding:4px 10px;border-radius:999px;font-weight:600;font-size:.76rem}.badge-urgent{background:var(--danger);color:#fff}
.news-date{color:var(--text-muted);font-family:"IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;font-size:.78rem}
.news-card h3{font-size:1.25rem}.news-card p{font-size:.92rem;color:var(--text-muted);flex:1}.news-actions{display:flex;align-items:center;justify-content:space-between;padding-top:10px;border-top:1px solid var(--border)}
.link-btn{background:none;border:none;color:var(--primary);font-family:inherit;font-weight:600;font-size:.88rem;cursor:pointer}.link-btn:hover{text-decoration:underline}
.programs-grid,.dept-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.program-card,.dept-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;gap:8px;transition:transform .15s,border-color .15s,box-shadow .15s}
.program-card:hover,.dept-card:hover{transform:translateY(-2px);border-color:var(--primary);box-shadow:var(--shadow-hover)}
.prog-code{font-family:"IBM Plex Mono",monospace;font-weight:700;color:var(--primary);font-size:.84rem}.prog-meta{font-size:.86rem;color:var(--text-muted)}
.cerca-box{margin-top:24px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.cerca-box h3{margin-bottom:12px}
.cerca-tags{display:flex;flex-wrap:wrap;gap:8px}.cerca-tag{background:var(--surface-alt);border:1px solid var(--border);border-radius:9px;padding:7px 12px;font-size:.84rem}
.site-footer{background:var(--navy);color:#e2e8f0;padding:44px 20px 24px}.footer-brand .brand-sub{color:#cbd5e1}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px;padding-bottom:28px;border-bottom:1px solid rgba(255,255,255,0.14)}
.footer-note{margin-top:14px;font-size:.9rem;color:#cbd5e1}.footer-note a,.footer-links a:hover{color:#67e8f9;text-decoration:underline}
.footer-links{display:flex;flex-direction:column;gap:8px;font-size:.9rem}.footer-heading{font-family:"Bricolage Grotesque",sans-serif;font-weight:700;font-size:1rem;color:#fff;margin-bottom:4px}
.footer-bottom{padding-top:18px;font-size:.82rem;color:#cbd5e1;text-align:center}
.modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,0.65);display:grid;place-items:center;padding:16px;z-index:100}.modal-backdrop[hidden]{display:none}
.modal-card{background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:16px;width:min(560px,100%);padding:24px;box-shadow:var(--shadow-hover);display:flex;flex-direction:column;gap:12px;max-height:90vh;overflow-y:auto}.modal-card.modal-wide{width:min(820px,100%)}
.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-date{font-family:"IBM Plex Mono",monospace;font-size:.82rem;color:var(--text-muted)}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.comp-table-wrap{overflow-x:auto}.comp-table{width:100%;border-collapse:collapse;font-size:.9rem}.comp-table th,.comp-table td{border:1px solid var(--border);padding:10px 12px;text-align:left;vertical-align:top}.comp-table th{background:var(--surface-alt)}
@media (max-width:1024px){.hero-grid{grid-template-columns:1fr}.schedule-toolbar{grid-template-columns:repeat(2,1fr)}.toolbar-actions{grid-column:span 2}.schedule-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:760px){.main-nav{display:none}.mobile-menu-btn{display:grid}.schedule-toolbar,.schedule-grid,.footer-grid{grid-template-columns:1fr}.toolbar-actions{grid-column:span 1}.announcement-search-wrap input{min-width:0;width:100%}}