*{box-sizing:border-box}
:root{
  --bg:#f6f7f2;
  --panel:#ffffff;
  --text:#172118;
  --muted:#5c6b5d;
  --line:#dde4d7;
  --primary:#5f6f52;
  --primary-dark:#40513b;
  --accent:#c7a94b;
  --accent-soft:#f4ead0;
  --sidebar:#263126;
  --sidebar-soft:#324032;
  --shadow:0 16px 40px rgba(23,33,24,.10);
}
html{scroll-behavior:smooth}
body{margin:0;font-family:Arial,sans-serif;background:radial-gradient(circle at top left,rgba(199,169,75,.14) 0,transparent 18%),radial-gradient(circle at 100% 0,rgba(95,111,82,.14) 0,transparent 24%),linear-gradient(135deg,#f8f8f2,#ffffff,#f3f5ed);color:var(--text)}
a,button,input,textarea,select,.card,.panel,.job-card,.brand,.user-chip,.login-box,.hero-card,nav a,.btn,.table tr{transition:all .28s ease}
.layout{display:flex;min-height:100vh;animation:fadeIn .45s ease-out}
.sidebar{width:270px;background:linear-gradient(180deg,#263126,#334233 58%,#263126);color:#fff;padding:20px;display:flex;flex-direction:column;gap:14px;box-shadow:18px 0 40px rgba(23,33,24,.12)}
.brand{display:flex;align-items:center;gap:12px;padding:14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:18px;backdrop-filter:blur(8px);transform:translateY(0)}
.brand:hover{transform:translateY(-2px);background:rgba(255,255,255,.11)}
.brand img{width:54px;height:54px;object-fit:contain;background:#fff;border-radius:14px;padding:6px;box-shadow:0 8px 20px rgba(0,0,0,.18)}
.user-chip{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:4px}
.user-chip:hover{background:rgba(255,255,255,.12)}
.user-chip small{color:#cbd5e1}
nav{display:flex;flex-direction:column;gap:10px}
nav a{text-decoration:none;color:#e2e8f0;padding:13px 14px;border-radius:14px;background:transparent;border:1px solid transparent}
nav a:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.08);transform:translateX(3px)}
.content{flex:1;padding:28px}
.content-full{max-width:1180px;margin:0 auto}
.card,.panel{background:rgba(255,255,255,.92);backdrop-filter:blur(6px);border:1px solid rgba(226,232,240,.95);border-radius:24px;padding:22px;box-shadow:var(--shadow);margin-bottom:18px;animation:riseUp .45s ease both}
.card:hover,.panel:hover,.job-card:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(15,23,42,.10)}
.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.stat{font-size:32px;font-weight:700}
.muted{color:var(--muted);line-height:1.6}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:11px 16px;border:none;border-radius:14px;text-decoration:none;cursor:pointer;font-weight:700;box-shadow:0 12px 24px rgba(64,81,59,.24)}
.btn:hover{transform:translateY(-2px);box-shadow:0 18px 30px rgba(64,81,59,.28);filter:saturate(1.05)}
.btn:active{transform:translateY(0)}
.btn-secondary{background:#fff;color:#0f172a;border:1px solid #cbd5e1;box-shadow:none}
.btn-secondary:hover{background:#f8fafc;border-color:#94a3b8}
.btn-danger{background:linear-gradient(135deg,#dc2626,#b91c1c);color:#fff}
.btn-warning{background:linear-gradient(135deg,#ca8a04,#a16207);color:#fff}
.table{width:100%;border-collapse:collapse;background:#fff;border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}
.table th,.table td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}
.table tbody tr:hover{background:#f8fafc}
.input,.select,.textarea{width:100%;padding:13px 14px;border:1px solid #cbd5e1;border-radius:14px;margin-bottom:12px;background:#fff;outline:none;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.input:focus,.select:focus,.textarea:focus{border-color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.textarea{min-height:110px;resize:vertical}
.header-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.badge{display:inline-block;padding:5px 11px;border-radius:999px;background:#e2e8f0;font-size:12px;font-weight:700}
.alert{padding:13px 16px;border-radius:14px;margin-bottom:16px;border:1px solid transparent;animation:fadeIn .35s ease}
.alert.success{background:#ecfdf5;color:#166534;border-color:#bbf7d0}.alert.error{background:#fef2f2;color:#991b1b;border-color:#fecaca}.alert.info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.login-wrap{min-height:100vh;display:block;padding:24px;background:radial-gradient(circle at 12% 18%,rgba(199,169,75,.18),transparent 24%),radial-gradient(circle at 90% 8%,rgba(95,111,82,.16),transparent 26%),linear-gradient(135deg,#f7f7f0,#fff,#eef2e7)}
.login-box{max-width:none;width:100%;background:rgba(255,255,255,.92);border:1px solid rgba(255,255,255,.7);backdrop-filter:blur(10px);border-radius:30px;padding:34px;box-shadow:0 18px 45px rgba(15,23,42,.10);animation:floatCard .6s ease both;display:flex;flex-direction:column;justify-content:center}
.login-box:hover{transform:translateY(-3px)}
.hero{display:grid;grid-template-columns:1.7fr .72fr;gap:26px;align-items:stretch;width:min(100%,1700px);margin:0 auto;min-height:calc(100vh - 48px)}
.hero-card{position:relative;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(250,248,240,.96));padding:48px 56px;border-radius:36px;border:1px solid rgba(199,169,75,.16);backdrop-filter:blur(10px);box-shadow:0 22px 52px rgba(23,33,24,.11);animation:riseUp .55s ease both;display:flex;flex-direction:column;justify-content:center}
.hero-card::before{content:"";position:absolute;inset:auto -120px -120px auto;width:360px;height:360px;background:radial-gradient(circle,rgba(199,169,75,.20),transparent 65%);pointer-events:none}
.hero-card::after{content:"";position:absolute;inset:-100px auto auto -100px;width:280px;height:280px;background:radial-gradient(circle,rgba(95,111,82,.16),transparent 68%);pointer-events:none}
.hero-title{font-size:68px;line-height:1.02;margin:0 0 14px;letter-spacing:-.04em;max-width:940px}
.hero-kicker{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:999px;background:rgba(95,111,82,.10);color:#40513b;font-weight:700;letter-spacing:.04em;margin-bottom:14px;border:1px solid rgba(95,111,82,.16);text-transform:uppercase;font-size:12px}
.hero-lead{font-size:20px;max-width:860px}
.promo-grid .panel{height:100%}
.promo-box strong{display:block;font-size:19px;margin-bottom:8px;color:#0f172a}
.institutional-message{margin-top:18px;padding:22px 24px;border-radius:24px;background:linear-gradient(135deg,#40513b,#5f6f52 58%,#c7a94b);color:#fff;box-shadow:0 18px 30px rgba(64,81,59,.22)}
.institutional-message p{margin:8px 0 0;line-height:1.7;color:rgba(255,255,255,.95)}
.institutional-title{font-size:20px;font-weight:700;letter-spacing:-.01em}

.job-card{border:1px solid #e2e8f0;border-radius:20px;padding:18px;background:#fff}
.small{font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap}
.welcome-logo-wrap{display:flex;justify-content:center;align-items:center;margin-bottom:18px}
.logo-large{height:340px;width:auto;object-fit:contain;filter:drop-shadow(0 26px 40px rgba(64,81,59,.22));animation:pulseSoft 4s ease-in-out infinite}
.title{font-size:34px;margin:0 0 10px;letter-spacing:-.02em}.two-col{display:grid;grid-template-columns:2fr 1fr;gap:20px}.logo-thumb{width:84px;height:84px;object-fit:contain;border-radius:12px;background:#fff;border:1px solid #e2e8f0;padding:4px}.inline-company{display:flex;align-items:center;gap:10px}.logo-mini{width:42px;height:42px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #e2e8f0;padding:3px}.helper-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:10px}.helper-links a{font-size:14px;color:#166534;text-decoration:none;font-weight:700}.helper-links a:hover{text-decoration:underline;color:#15803d}.stack{display:grid;gap:14px}.subpanel{border:1px solid #e2e8f0;border-radius:18px;padding:18px;background:linear-gradient(180deg,#f8fafc,#fff)}.kpi-note{font-size:13px;color:#475569}.code-box{padding:12px;border-radius:12px;background:#f8fafc;border:1px dashed #94a3b8;word-break:break-all}.text-right{text-align:right}
.fade-seq>*{animation:riseUp .55s ease both}.fade-seq>*:nth-child(2){animation-delay:.06s}.fade-seq>*:nth-child(3){animation-delay:.12s}.fade-seq>*:nth-child(4){animation-delay:.18s}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes riseUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes floatCard{0%{opacity:0;transform:translateY(20px) scale(.985)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes pulseSoft{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-3px) scale(1.015)}}
@media(max-width:900px){.layout{flex-direction:column}.sidebar{width:100%}.hero,.two-col{grid-template-columns:1fr}.content{padding:18px}.hero-title{font-size:40px}.logo-large{height:180px}.hero-lead{font-size:16px}}

.panoramic-login .hero-panoramic{grid-template-columns:minmax(0,1.6fr) minmax(380px,.72fr)}
.role-promo-grid{margin-top:8px}
.role-box{position:relative;padding-top:24px;min-height:100%}
.role-icon{width:90px;height:90px;border-radius:24px;display:inline-flex;align-items:center;justify-content:center;font-size:42px;margin-bottom:18px;background:linear-gradient(135deg,#f8f8f0,#edf3e5);border:1px solid rgba(95,111,82,.16);box-shadow:0 14px 28px rgba(64,81,59,.10)}
.role-box strong{font-size:22px}
.role-student .role-icon{background:linear-gradient(135deg,#f3f8e8,#e3edd6);border-color:rgba(95,111,82,.22)}
.role-company .role-icon{background:linear-gradient(135deg,#f9f5e8,#f2e4b7);border-color:rgba(199,169,75,.28)}
.role-admin .role-icon{background:linear-gradient(135deg,#eef2e7,#dce5d5);border-color:rgba(95,111,82,.24)}
@media(min-width:1200px){.promo-grid.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-title{font-size:74px}.hero-lead{font-size:21px}.login-box{align-self:center;max-width:540px}}
@media(max-width:1100px){.panoramic-login .hero-panoramic{grid-template-columns:1fr}.hero{min-height:auto}.login-box{max-width:720px}.hero-card{padding:34px}.logo-large{height:210px}}

.login-box h2{font-size:34px;letter-spacing:-.02em;margin:0 0 8px}
.login-box{position:relative;overflow:hidden}
.login-box::before{content:"";position:absolute;inset:auto auto -90px -60px;width:180px;height:180px;background:radial-gradient(circle,rgba(199,169,75,.18),transparent 68%);pointer-events:none}
.hero-card .panel{border:1px solid rgba(95,111,82,.08);background:linear-gradient(180deg,#ffffff,#fbfcf8)}
.promo-box p{font-size:15px}
.role-box:hover .role-icon{transform:translateY(-3px) scale(1.04)}


/* v14 premium panoramic welcome */
.login-wrap.panoramic-login{padding:0;min-height:100vh;display:block;background:
  radial-gradient(circle at 4% 10%, rgba(199,169,75,.18), transparent 20%),
  radial-gradient(circle at 96% 12%, rgba(95,111,82,.14), transparent 22%),
  linear-gradient(115deg, #f5f7ef 0%, #ffffff 42%, #eff3e8 100%);
}
.hero.hero-panoramic.hero-professional-full{width:100%;max-width:none;min-height:100vh;display:grid;grid-template-columns:minmax(0,1.6fr) 470px;gap:0;align-items:stretch;margin:0}
.hero-card.hero-card-wide{border-radius:0;padding:52px 64px 46px 72px;justify-content:center;box-shadow:none;border:none;background:linear-gradient(135deg,rgba(255,255,255,.74),rgba(255,255,255,.9));backdrop-filter:blur(3px)}
.hero-card.hero-card-wide::before,.hero-card.hero-card-wide::after{display:none}
.brand-hero-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:28px;align-items:start;margin-bottom:24px}
.logo-hero-premium{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(64,81,59,.18));background:#fff;border-radius:34px;padding:14px;border:3px solid rgba(95,111,82,.18)}
.brand-hero-copy .hero-kicker{margin-bottom:14px}
.brand-hero-copy .hero-title{font-size:82px;max-width:900px;margin-bottom:12px}
.brand-hero-copy .hero-lead{font-size:24px;max-width:900px;margin:0}
.role-promo-grid-premium{margin-top:26px;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.premium-role-box{padding:28px 24px 24px;border-radius:28px;min-height:280px;display:flex;flex-direction:column;justify-content:flex-start}
.role-icon-premium{width:112px;height:112px;border-radius:30px;font-size:54px;margin-bottom:22px;box-shadow:0 18px 32px rgba(64,81,59,.12)}
.premium-role-box strong{font-size:28px;line-height:1.1;margin-bottom:10px}
.premium-role-box p{font-size:18px;line-height:1.45}
.institutional-message-wide{margin-top:26px;padding:24px 28px;border-radius:28px;max-width:1200px}
.institutional-message-wide .institutional-title{font-size:26px}
.institutional-message-wide p{font-size:18px}
.login-box.login-box-premium{margin:0;border-radius:0;max-width:none;width:100%;min-height:100vh;padding:42px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.96));border-left:1px solid rgba(95,111,82,.12);box-shadow:-10px 0 34px rgba(23,33,24,.06)}
.login-box-premium::before{display:none}
.login-box-inner{width:100%;max-width:420px;background:#fff;padding:34px;border-radius:28px;box-shadow:0 22px 48px rgba(15,23,42,.08);border:1px solid rgba(95,111,82,.10)}
.helper-links.helper-links-stacked{margin-top:14px;justify-content:flex-start}
@media (max-width: 1400px){
  .brand-hero-copy .hero-title{font-size:68px}
  .brand-hero-copy .hero-lead{font-size:21px}
  .premium-role-box strong{font-size:24px}
  .premium-role-box p{font-size:17px}
}
@media (max-width: 1180px){
  .hero.hero-panoramic.hero-professional-full{grid-template-columns:1fr}
  .login-box.login-box-premium{min-height:auto;padding:28px}
  .hero-card.hero-card-wide{padding:44px 28px 28px}
  .brand-hero-row{grid-template-columns:120px 1fr;gap:20px}
  .logo-hero-premium{width:112px;height:112px;border-radius:26px}
  .brand-hero-copy .hero-title{font-size:52px}
  .brand-hero-copy .hero-lead{font-size:18px}
  .role-promo-grid-premium{grid-template-columns:1fr}
  .premium-role-box{min-height:auto}
}
@media (max-width: 700px){
  .brand-hero-row{grid-template-columns:1fr;justify-items:start}
  .hero-card.hero-card-wide{padding:30px 18px 22px}
  .brand-hero-copy .hero-title{font-size:40px}
  .brand-hero-copy .hero-lead{font-size:16px}
  .role-icon-premium{width:88px;height:88px;font-size:44px}
  .premium-role-box strong{font-size:22px}
  .premium-role-box p{font-size:16px}
  .login-box.login-box-premium{padding:18px}
  .login-box-inner{padding:24px}
}

/* v16 professional landing cleanup */
.landing-shell{
  min-height:100vh;
  width:100%;
  display:flex;
  align-items:stretch;
  background:
    radial-gradient(circle at 4% 10%, rgba(199,169,75,.14), transparent 18%),
    radial-gradient(circle at 96% 12%, rgba(95,111,82,.10), transparent 22%),
    linear-gradient(115deg,#f5f7ef 0%,#ffffff 44%,#eef3e8 100%);
}
.landing-left{
  width:60%;
  padding:42px 48px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.landing-right{
  width:40%;
  padding:42px 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.45);
  border-left:1px solid rgba(95,111,82,.10);
}
.brand-box{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
}
.brand-logo{
  width:108px;
  height:108px;
  object-fit:contain;
  border-radius:22px;
  background:#fff;
  padding:10px;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}
.brand-text{
  font-size:18px;
  line-height:1.45;
  color:#3e4d34;
  max-width:620px;
}
.hero-title-clean{
  margin:0 0 14px;
  font-size:72px;
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.04em;
  color:#172016;
  max-width:860px;
}
.hero-text-clean{
  margin:0 0 28px;
  font-size:21px;
  line-height:1.65;
  color:#5f6d5a;
  max-width:840px;
}
.roles-grid-clean{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  max-width:1120px;
}
.role-card-clean{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(226,232,240,.95);
  border-radius:26px;
  padding:24px 22px;
  box-shadow:0 14px 34px rgba(15,23,42,.07);
  min-height:290px;
  transition:transform .25s ease, box-shadow .25s ease;
}
.role-card-clean:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 38px rgba(15,23,42,.10);
}
.role-icon-clean{
  width:92px;
  height:92px;
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:44px;
  margin-bottom:18px;
  box-shadow:0 14px 28px rgba(64,81,59,.10);
}
.role-card-student .role-icon-clean{background:linear-gradient(135deg,#f3f8e8,#e3edd6);border:1px solid rgba(95,111,82,.22)}
.role-card-company .role-icon-clean{background:linear-gradient(135deg,#f9f5e8,#f2e4b7);border:1px solid rgba(199,169,75,.28)}
.role-card-admin .role-icon-clean{background:linear-gradient(135deg,#eef2e7,#dce5d5);border:1px solid rgba(95,111,82,.24)}
.role-card-clean h3{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.18;
  color:#182018;
}
.role-card-clean p{
  margin:0;
  font-size:17px;
  line-height:1.6;
  color:#5d675b;
}
.institutional-banner-clean{
  margin-top:24px;
  max-width:1120px;
  padding:22px 24px;
  border-radius:24px;
  background:linear-gradient(135deg,#40513b,#5f6f52 58%,#c7a94b);
  color:#fff;
  box-shadow:0 18px 30px rgba(64,81,59,.22);
  display:flex;
  flex-direction:column;
  gap:8px;
}
.institutional-banner-clean strong{font-size:24px;line-height:1.2}
.institutional-banner-clean span{font-size:17px;line-height:1.65;color:rgba(255,255,255,.96)}
.login-card-clean{
  width:100%;
  max-width:460px;
  background:#ffffff;
  border-radius:28px;
  padding:34px 32px;
  box-shadow:0 22px 48px rgba(15,23,42,.08);
  border:1px solid rgba(95,111,82,.10);
}
.login-card-clean h2{
  margin:0 0 12px;
  font-size:34px;
  color:#1a2117;
}
.login-card-clean p{
  margin:0 0 24px;
  color:#677260;
  font-size:18px;
  line-height:1.5;
}
.login-card-clean form{display:flex;flex-direction:column;gap:14px}
.login-card-clean .input{margin-bottom:0;height:54px}
.forgot-link-clean{
  display:inline-block;
  margin-top:16px;
  color:#556a39;
  text-decoration:none;
  font-weight:700;
}
.forgot-link-clean:hover{text-decoration:underline}

@media (max-width: 1380px){
  .hero-title-clean{font-size:60px}
  .hero-text-clean{font-size:19px}
  .role-card-clean h3{font-size:22px}
  .role-card-clean p{font-size:16px}
}
@media (max-width: 1180px){
  .landing-shell{flex-direction:column}
  .landing-left,.landing-right{width:100%}
  .landing-left{padding:36px 28px 20px}
  .landing-right{padding:10px 28px 36px;background:transparent;border-left:none}
  .hero-title-clean{font-size:52px;max-width:100%}
  .hero-text-clean{max-width:100%}
  .roles-grid-clean{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}
  .login-card-clean{max-width:100%}
}
@media (max-width: 768px){
  .brand-box{flex-direction:column;align-items:flex-start}
  .brand-logo{width:92px;height:92px}
  .hero-title-clean{font-size:40px;line-height:1.08}
  .hero-text-clean{font-size:18px}
  .roles-grid-clean{grid-template-columns:1fr}
  .role-card-clean{min-height:auto}
  .landing-left,.landing-right{padding-left:18px;padding-right:18px}
  .login-card-clean{padding:24px 20px}
  .institutional-banner-clean strong{font-size:20px}
  .institutional-banner-clean span{font-size:16px}
}


/* === PRO institutional shell === */
:root{
  --shell-bg:#f4f6ef;
  --shell-bg-dark:#0f1510;
  --side-grad-1:#101a12;
  --side-grad-2:#1f2e22;
  --side-glow:rgba(199,169,75,.14);
  --danger:#c9362a;
  --danger-dark:#a9261b;
}
body{background:var(--shell-bg)}
body.theme-dark{
  --bg:#111713;
  --panel:#172019;
  --text:#ecf2ea;
  --muted:#b9c4b7;
  --line:#2b3a2d;
  --primary:#718357;
  --primary-dark:#56663f;
  --sidebar:#0e1510;
  --sidebar-soft:#172019;
  --shadow:0 18px 42px rgba(0,0,0,.28);
  background:linear-gradient(135deg,#0f1510,#141b15,#101610);
}
body.theme-dark .card,
body.theme-dark .panel,
body.theme-dark .table,
body.theme-dark .subpanel,
body.theme-dark .role-card-clean,
body.theme-dark .login-card-clean,
body.theme-dark .hero-card,
body.theme-dark .landing-right,
body.theme-dark .landing-left{background:rgba(23,32,25,.92); color:var(--text); border-color:#263629}
body.theme-dark .table th,
body.theme-dark .table td{border-color:#2a392d}
body.theme-dark .table tbody tr:hover{background:#1d281f}
body.theme-dark .input,
body.theme-dark .select,
body.theme-dark .textarea{background:#0f1510;color:var(--text);border-color:#344637}
body.theme-dark .btn-secondary{background:#172019;color:#ecf2ea;border-color:#344637}
body.theme-dark .hero-title-clean,
body.theme-dark .title,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4{color:#f3f7f1}
body.theme-dark .muted,
body.theme-dark .hero-text-clean,
body.theme-dark p,
body.theme-dark .small{color:#b7c1b5}
body.theme-dark .brand-text{color:#d5dfd3}
body.theme-dark .institutional-banner-clean{background:linear-gradient(135deg,#273528,#40513b,#a78c3a)}
body.theme-dark .forgot-link-clean,
body.theme-dark a{color:#d8c26a}

.layout{background:transparent}
.sidebar{
  width:252px;
  min-height:100vh;
  padding:18px 16px 14px;
  background:
    radial-gradient(circle at 50% 12%, rgba(199,169,75,.10), transparent 22%),
    radial-gradient(circle at 50% 54%, rgba(95,111,82,.18), transparent 26%),
    linear-gradient(180deg,var(--side-grad-1),var(--side-grad-2) 52%,#101711 100%);
  box-shadow:18px 0 40px rgba(23,33,24,.10);
  position:sticky;
  top:0;
}
.sidebar::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,transparent,rgba(199,169,75,.04),transparent);
}
.sidebar > *{position:relative;z-index:1}
.brand{
  flex-direction:column;align-items:center;text-align:center;gap:12px;
  background:transparent;border:none;padding:4px 6px 10px;box-shadow:none
}
.brand:hover{transform:none;background:transparent}
.brand img{width:96px;height:96px;border-radius:24px;padding:10px}
.brand-title-chip{display:inline-flex;align-items:center;justify-content:center;padding:6px 12px;border-radius:999px;background:rgba(199,169,75,.16);color:#ddcd88;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.brand-copy{color:#f3f7f1}
.brand-copy strong{display:block;font-size:24px;line-height:1.05;margin-bottom:6px}
.brand-copy small{display:block;color:rgba(255,255,255,.85);font-size:13px;line-height:1.45}
.user-chip{
  margin-top:4px;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;padding:16px 14px;gap:6px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.user-chip .label{font-size:12px;color:#cfd7cf}
.user-chip strong{font-size:17px;color:#fff}
.user-role-badge{display:inline-flex;align-self:flex-start;padding:6px 12px;border-radius:999px;background:#b79d4c;color:#fff;font-size:12px;font-weight:700;margin-top:6px}
.sidebar nav{margin-top:6px;gap:8px}
.sidebar nav a{
  color:#eef3ec;padding:12px 14px;border-radius:14px;font-weight:700;
}
.sidebar nav a:hover,.sidebar nav a.active{
  background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.06);transform:translateX(2px)
}
.sidebar .logout-link{
  margin-top:auto;
  background:linear-gradient(135deg,var(--danger),var(--danger-dark));
  color:#fff;border-radius:16px;padding:14px 18px;text-align:center;
  box-shadow:0 10px 22px rgba(201,54,42,.28)
}
.sidebar .logout-link:hover{background:linear-gradient(135deg,#d84236,#b9281e)}
.content{padding:24px 26px 32px}
.topbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:18px}
.theme-toggle{
  display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;
  background:rgba(255,255,255,.9);border:1px solid rgba(0,0,0,.05);color:#202820;
  box-shadow:0 10px 26px rgba(15,23,42,.06);cursor:pointer;font-weight:800
}
.theme-toggle:hover{transform:translateY(-1px)}
body.theme-dark .theme-toggle{background:#1a231c;color:#eef3ec;border-color:#29362b}
.page-shell{max-width:1280px;margin:0 auto}
.btn-danger{background:linear-gradient(135deg,var(--danger),var(--danger-dark))}

@media(max-width:900px){
  .sidebar{position:relative;width:100%;min-height:auto}
  .content{padding:18px}
}






.ofertas-grid,
.jobs-grid,
.vacantes-grid{
  display:grid;
  grid-auto-rows:1fr;
  align-items:stretch;
}

.job-card > *,
.offer-card > *,
.vacante-card > *,
.oferta-card > *,
.card > *{
  flex-shrink:0;
}


@media (max-width: 980px){
  .dashboard-stats-row,
  .stats-grid,
  .dashboard-grid,
  .summary-grid{
    grid-template-columns: 1fr !important;
  }
  .dashboard-stat-card,
  .dashboard-stats-row .card,
  .stats-grid .card,
  .dashboard-grid .card,
  .summary-grid .card{
    height: auto !important;
    min-height: 130px !important;
    max-height: none !important;
  }
}











@media (max-width: 899px){
  .ofertas-grid,
  .jobs-grid,
  .vacantes-grid{
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap:14px !important;
  }

  .job-card,
  .offer-card,
  .vacante-card,
  .oferta-card,
  .card{
    min-height:300px !important;
    max-height:300px !important;
    height:300px !important;
    padding:16px !important;
  }

  .offer-modal-dialog{
    width:calc(100vw - 14px);
    margin:7px auto;
    max-height:calc(100vh - 14px);
  }

  .offer-modal-head h3{
    font-size:22px;
  }

  .offer-modal-body{
    max-height:calc(100vh - 110px);
    padding:18px 18px 22px;
  }
}


.card-actions{
  display:flex !important;
  gap:10px !important;
  margin-top:auto !important;
  align-items:center !important;
  flex-wrap:wrap !important;
}

.postular-card-textarea{
  width:100% !important;
  min-height:96px !important;
  max-height:96px !important;
  height:96px !important;
  resize:vertical !important;
  border-radius:16px !important;
  margin:10px 0 14px 0 !important;
}

.postular-card-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 16px !important;
  border:0 !important;
  border-radius:14px !important;
  background:#6f8340 !important;
  color:#fff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  box-shadow:0 8px 20px rgba(0,0,0,.10) !important;
}

.postular-card-btn:hover{
  filter:brightness(.98) !important;
}


.card-actions{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  margin-top:auto !important;
  width:100% !important;
}

.postular-card-textarea{
  width:100% !important;
  min-height:92px !important;
  max-height:92px !important;
  height:92px !important;
  resize:vertical !important;
  border-radius:16px !important;
  margin:10px 0 14px 0 !important;
  box-sizing:border-box !important;
}

.ver-mas-detalles-btn,
.postular-card-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:118px !important;
  height:44px !important;
  padding:0 16px !important;
  border-radius:14px !important;
  white-space:nowrap !important;
}

.postular-card-btn{
  border:0 !important;
  background:#6f8340 !important;
  color:#fff !important;
  font-weight:700 !important;
  cursor:pointer !important;
  box-shadow:0 8px 20px rgba(0,0,0,.10) !important;
}

.ver-mas-detalles-btn{
  border:1px solid #d6dec8 !important;
  background:#fff !important;
  color:#3e4b33 !important;
  font-weight:700 !important;
  cursor:pointer !important;
  box-shadow:0 8px 20px rgba(0,0,0,.06) !important;
}

.offer-modal-postular{
  margin-top:22px !important;
  padding-top:18px !important;
  border-top:1px solid #edf1e8 !important;
}

.offer-modal-label{
  display:block !important;
  margin-bottom:8px !important;
  font-weight:600 !important;
  color:#41503a !important;
}

.offer-modal-textarea{
  width:100% !important;
  min-height:120px !important;
  border-radius:16px !important;
  margin-bottom:14px !important;
  box-sizing:border-box !important;
}

.offer-modal-actions{
  display:flex !important;
  gap:10px !important;
  justify-content:flex-start !important;
}

@media (max-width: 899px){
  .card-actions{
    flex-wrap:wrap !important;
  }
  .ver-mas-detalles-btn,
  .postular-card-btn{
    min-width:100px !important;
  }
}


/* Postulante: catálogo compacto funcional */
.jobs-catalog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
  gap:18px;
  align-items:stretch;
}

.job-card-student{
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between !important;
  min-height:420px !important;
  height:100% !important;
  padding:18px !important;
  border-radius:22px !important;
  overflow:hidden !important;
}

.job-card-top{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.job-card-title{
  margin:0;
  font-size:18px;
  line-height:1.15;
}

.job-card-company{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  min-height:36px;
}

.job-card-logo-wrap{
  margin-top:6px;
}

.job-card-logo{
  width:84px;
  height:84px;
  object-fit:contain;
  border-radius:16px;
  background:#fff;
  border:1px solid #e5eadf;
  padding:8px;
}

.job-card-meta{
  margin:4px 0 0;
  color:var(--muted);
  font-size:14px;
}

.job-apply-form{
  margin-top:auto;
  display:flex;
  flex-direction:column;
}

.postular-card-textarea{
  width:100%;
  min-height:90px !important;
  max-height:90px !important;
  height:90px !important;
  resize:vertical !important;
  border-radius:16px !important;
  margin:12px 0 14px 0 !important;
  padding:12px 14px !important;
  border:1px solid #cbd5e1 !important;
  box-sizing:border-box !important;
  font:inherit !important;
}

.card-actions{
  display:flex !important;
  gap:10px !important;
  align-items:center !important;
  justify-content:flex-start !important;
  flex-wrap:nowrap !important;
  margin-top:auto !important;
}

.ver-mas-detalles-btn,
.postular-card-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:118px !important;
  height:44px !important;
  padding:0 16px !important;
  border-radius:14px !important;
  white-space:nowrap !important;
  cursor:pointer !important;
  font-weight:700 !important;
  font:inherit !important;
}

.ver-mas-detalles-btn{
  border:1px solid #d6dec8 !important;
  background:#fff !important;
  color:#3e4b33 !important;
  box-shadow:0 8px 20px rgba(0,0,0,.06) !important;
}

.postular-card-btn{
  border:0 !important;
  background:#6f8340 !important;
  color:#fff !important;
  box-shadow:0 8px 20px rgba(0,0,0,.10) !important;
}

.ver-mas-detalles-btn:hover,
.postular-card-btn:hover{
  transform:translateY(-1px);
}

html.modal-open,
html.modal-open body{
  overflow:hidden !important;
}

.offer-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.offer-modal.is-open{
  display:block;
}

.offer-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(22,28,18,.52);
  backdrop-filter:blur(4px);
}

.offer-modal-dialog{
  position:relative;
  width:min(860px, calc(100vw - 28px));
  max-height:calc(100vh - 24px);
  margin:12px auto;
  background:#fff;
  border-radius:24px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
  overflow:hidden;
}

.offer-modal-head{
  padding:22px 24px 14px;
  border-bottom:1px solid #edf1e8;
  background:linear-gradient(180deg, #fafcf8 0%, #ffffff 100%);
}

.offer-modal-head h3{
  margin:0 0 6px;
  font-size:28px;
  line-height:1.1;
}

.offer-modal-subtitle{
  margin:0;
  color:#68755f;
  font-size:14px;
}

.offer-modal-body{
  padding:22px 24px 28px;
  overflow:auto;
  max-height:calc(100vh - 120px);
  color:#24301f;
  line-height:1.6;
}

.offer-modal-meta{
  margin-top:0;
  color:#68755f;
  font-weight:700;
}

.offer-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:#eef3e7;
  color:#2c3824;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

@media (max-width: 899px){
  .jobs-catalog-grid{
    grid-template-columns:1fr;
  }

  .job-card-student{
    min-height:auto !important;
  }

  .card-actions{
    flex-wrap:wrap !important;
  }

  .offer-modal-dialog{
    width:calc(100vw - 14px);
    margin:7px auto;
  }
}
