/* BATALYOS student profile. All rules are scoped to the profile feature. */
.profile-dossier-page{
  --profile-line:rgba(175,219,238,.38);
  --profile-silver:#d6e1e9;
  --profile-muted:#a8bbc8;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  max-width:1460px;
  margin-inline:auto;
  color:#eef6fa;
  font-family:Alexandria,Inter,sans-serif;
}
.profile-dossier-page > *,
.profile-layout-grid > *{min-width:0}
.profile-page-heading,
.profile-identity,
.profile-academic-dossier,
.profile-management-footer{grid-column:1/-1}
.profile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:0 4px;text-align:start}
.profile-page-heading > div{min-width:0}
.profile-page-back{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;min-height:38px;padding:7px 14px;border:1px solid #9bcde255;border-radius:9px;background:linear-gradient(145deg,#16394b,#0c2636);box-shadow:inset 0 1px #ffffff1b;color:#e3f4fb;font:500 .74rem Alexandria,Inter,sans-serif;cursor:pointer;transition:background .2s ease,border-color .2s ease}
.profile-page-back:hover,.profile-page-back:focus-visible{border-color:#75dcf2;background:#1b4960;outline:none}
.profile-page-back span{color:#6ce0f4;font-size:1.2rem;line-height:1}
.profile-page-heading .card-kicker{color:#91aaba;font:500 .72rem Alexandria,Inter,sans-serif;letter-spacing:0}
.profile-page-heading h2{display:inline-block;position:relative;margin:5px 0 0;padding-bottom:13px;font:650 clamp(1.4rem,2vw,2rem)/1.4 Alexandria,Inter,sans-serif}
.profile-page-heading h2:after{content:"";position:absolute;inset-inline-start:0;bottom:0;width:54px;height:3px;border-radius:5px;background:#1dd0ef;box-shadow:0 0 10px #00c6ff85}
.profile-dossier-page .surface-card{border:1px solid var(--profile-line);border-radius:15px;background:linear-gradient(155deg,#122b3bea,#0b1e2def 78%);box-shadow:inset 0 1px #ffffff24,0 13px 28px #0005}
.profile-dossier-page .surface-card:before{display:none}
.profile-dossier-page .section-head{align-items:center;gap:12px}
.profile-dossier-page .section-head h3{margin:0;color:#f1f7fa;font:650 clamp(1rem,1.3vw,1.24rem)/1.5 Alexandria,Inter,sans-serif}
.profile-dossier-page .section-head .card-kicker{display:none}
.profile-dossier-page .section-head .small-btn{min-height:34px;border-color:#b4cbd638;background:#ffffff08;color:#dce7eb;font-size:.72rem;font-weight:500}
.profile-badge{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #9fc1d350;border-radius:999px;background:#081520ad;color:#bdd3dd;font-size:.68rem;font-weight:500;white-space:nowrap}

/* Identity image and the student's dynamic, naturally cropped portrait. */
.profile-identity{position:relative;min-height:220px;display:flex;align-items:center;padding:26px 30px;overflow:hidden;background:#0a2334!important;isolation:isolate}
.profile-identity:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#081d2bbd 0%,#08213266 54%,#071a2b91 100%),url('../../assets/brand/batalyos/hub-v2/atrium-bg-v2.png') center 42%/cover no-repeat;filter:saturate(1.2) contrast(1.1) brightness(1.13)}
.profile-identity-main{display:flex;align-items:center;gap:28px;min-width:0;width:100%}
.profile-avatar-large{position:relative;flex:0 0 auto;width:142px;height:142px;padding:4px;border:1px solid #d4ecf3;border-radius:50%;background:#123247;box-shadow:0 0 0 4px #5dcce63d,0 0 23px #54c7e23b,0 15px 30px #0008}
.profile-avatar-large img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;background:#0b1b28}
.profile-avatar-large span{display:none}
.profile-identity-copy{display:grid;justify-items:start;align-content:center;gap:8px;min-width:0;text-align:start}
.profile-identity-copy > .card-kicker{display:none}
.profile-identity h1{margin:0;color:#fff;font:700 clamp(1.7rem,2.8vw,2.65rem)/1.2 Alexandria,Inter,sans-serif;overflow-wrap:anywhere}
.profile-full-name{margin:0;color:#cbd9e0;font-size:.84rem;line-height:1.45}
.profile-full-name strong{color:#f5fbfd;font-weight:600}
.profile-academic-line{margin:0;color:#e2ebf0;font-size:clamp(.8rem,1.1vw,.95rem);font-weight:450;line-height:1.65;overflow-wrap:anywhere}
.profile-rank-line{display:inline-flex;align-items:center;min-height:28px;padding:3px 13px;border:1px solid #bed3df66;border-radius:999px;background:#061522a8;color:#d6e3ea;font-size:.73rem;line-height:1.4}
.profile-tags{display:none}
.profile-identity-actions{display:flex;align-items:center;gap:10px;margin-top:7px}
.profile-identity-actions .profile-edit-btn{min-height:38px;padding:0 18px;border:1px solid #b6c8d2d9;border-radius:7px;background:linear-gradient(#e3ebef,#aebfc9);box-shadow:inset 0 1px #fff8;color:#10202c;font-size:.77rem;font-weight:650}
.profile-identity-actions .profile-edit-btn:hover{background:linear-gradient(#fff,#c8d6dd)}
.profile-edit-btn .ui-icon{width:15px;height:15px}
.profile-subjects-btn{display:none!important}

/* One clean academic row replaces the old stack of nested cards. */
.profile-academic-dossier{padding:19px 24px 22px}
.profile-dossier-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:16px;padding:12px 0;border:1px solid #a9d7e648;border-radius:9px;background:linear-gradient(135deg,#102c3ba8,#0a1f2ca8)}
.dossier-field{display:grid;align-content:center;gap:7px;min-width:0;min-height:62px;padding:4px 17px;border-inline-end:1px solid #a9c5d135;text-align:start}
.dossier-field:last-child{border-inline-end:0}
.profile-dossier-grid .dossier-field:last-child{grid-column:1/-1;border-top:1px solid #a9c5d135}
.dossier-field span{color:#a9bfcb;font-size:.74rem;font-weight:500}
.dossier-field strong{color:#eff6f8;font-size:.86rem;font-weight:600;line-height:1.5;overflow-wrap:anywhere}

/* Latest battle is scoped to the current session. Empty data is an empty state. */
.profile-activity-section{grid-column:2;grid-row:4;padding:20px 23px;min-height:205px}
.profile-activity-section .section-head .profile-badge{max-width:52%;white-space:normal;text-align:center}
.profile-activity-note{display:grid;place-content:center;min-height:116px;margin:12px 0 0;color:#c4d3dc;font-size:.84rem;line-height:1.75;text-align:center}
.profile-activity-note:before{content:"";display:block;width:34px;height:34px;margin:0 auto 11px;background:url('../../assets/brand/batalyos/section-icons/webp/battle-64.webp') center/contain no-repeat;opacity:.65;filter:grayscale(1)}
.profile-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.profile-stat-grid[data-has-session-activity="false"]{display:none}
.profile-stat-grid .metric-card{min-height:84px;padding:12px;border-color:#a9c5d135;border-radius:8px;background:#071722}
.profile-stat-grid .metric-card:last-child{display:none}
.profile-stat-grid .metric-card:after{display:none}
.profile-stat-grid .metric-card > span{color:#a7bdc7;font-size:.68rem;line-height:1.5}
.profile-stat-grid .metric-card > strong{margin:7px 0 2px;color:#f1f9fc;font:600 1.3rem Alexandria,Inter,sans-serif}
.profile-stat-grid .metric-card > small{color:#8199a6;font-size:.63rem;line-height:1.45}

/* The available section list reads from the shared release policy. */
.profile-layout-grid{display:contents}
.strength-panel{grid-column:1;grid-row:4;padding:20px 23px;min-height:205px}
.strength-panel .section-head .small-btn{display:none}
.strength-panel .panel-truth-note{display:none}
.subject-bar{display:grid;gap:7px;margin-top:15px}
.subject-bar .row-between{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#d7e4ea;font-size:.8rem}
.subject-bar .row-between b{color:#cadde4;font-weight:600;direction:ltr}
.strength-panel .premium-progress{height:7px;border:1px solid #9bcfe346;border-radius:999px;background:#54798b91}
.strength-panel .premium-progress span{background:#67cfe7;box-shadow:none}
.profile-connected-sections{margin-top:20px;padding-top:13px;border-top:1px solid #b1c8d12c}
.profile-connected-heading{display:block;margin-bottom:8px;color:#a7bdc8;font-size:.7rem}
.profile-learning-area-list{display:flex;flex-wrap:wrap;gap:7px}
.profile-learning-area{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:4px 10px;border:1px solid #aed0dd40;border-radius:6px;background:#0b2231;color:#d3e7ef;font:500 .7rem Alexandria,Inter,sans-serif;cursor:pointer}
.profile-learning-area:hover,.profile-learning-area:focus-visible{border-color:#00c6ff;color:#fff;outline:none}
.profile-learning-area b{color:#8cdae9;font:600 .68rem Inter,Arial,sans-serif}
.profile-learning-area span{color:#73cfeb;font-size:1rem;line-height:1}
[dir="ltr"] .profile-learning-area span{transform:scaleX(-1)}

/* Locked badges are restrained silver marks, with no false unlocked awards. */
.achievements-panel{grid-column:1/-1;grid-row:5;padding:19px 24px 22px}
.achievements-panel .panel-truth-note{margin:4px 0 0;color:#a7bbc6;font-size:.74rem;line-height:1.55}
.achievement-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:14px;padding:16px 0;border:1px solid #a9d7e648;border-radius:9px;background:linear-gradient(135deg,#102c3ba8,#0a1f2ca8)}
.achievement-card{display:grid;justify-items:center;align-content:center;gap:6px;min-height:105px;padding:8px 12px;border:0;border-inline-end:1px solid #a9c5d135;background:none;text-align:center}
.achievement-card:last-child{border-inline-end:0}
.achievement-card svg{width:46px;height:46px;padding:11px;border:1px solid #b9cad454;border-radius:11px;color:#aebdc7}
.achievement-card b{color:#d8e4e9;font-size:.75rem;font-weight:550}
.achievement-card small{color:#849aa8;font-size:.66rem;line-height:1.45}
.achievement-card.locked{opacity:.7}
.achievement-card.unlocked{opacity:1}
.profile-management-footer{grid-row:6;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 22px}
.profile-management-copy{display:grid;gap:4px}
.profile-management-copy .card-kicker{display:none}
.profile-management-copy h3{margin:0;font:600 .93rem/1.5 Alexandria,Inter,sans-serif}
.profile-management-copy p{margin:0;color:#a8bbc7;font-size:.75rem;line-height:1.6}
.profile-management-actions{flex:0 0 auto}
.profile-management-actions .primary-btn{min-height:38px;padding:0 15px;border:1px solid #afc7d04d;border-radius:7px;background:#112d3a;color:#e7f4f8;font-size:.74rem}
.profile-management-actions .ui-icon{width:15px;height:15px}

@media(max-width:1050px){
  .profile-dossier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dossier-field:nth-child(2){border-inline-end:0}
  .dossier-field:nth-child(-n+2){border-bottom:1px solid #a9c5d135}
  .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-layout-grid{display:contents}
}
@media(max-width:760px){
  .profile-dossier-page{grid-template-columns:minmax(0,1fr);gap:12px}
  .profile-page-heading,.profile-identity,.profile-academic-dossier,.profile-activity-section,.strength-panel,.achievements-panel,.profile-management-footer{grid-column:1;grid-row:auto}
  .profile-identity{min-height:0;padding:20px 16px}
  .profile-page-heading{min-height:54px}
  .profile-page-back{font-size:.68rem;padding:6px 10px}
  .profile-identity:after{background-position:center}
  .profile-identity-main{flex-direction:column;gap:12px;text-align:center}
  .profile-identity-copy{justify-items:center;text-align:center}
  .profile-avatar-large{width:108px;height:108px}
  .profile-academic-line{font-size:.77rem}
  .profile-identity-actions{justify-content:center}
  .profile-academic-dossier,.profile-activity-section,.strength-panel,.achievements-panel{padding:17px}
  .profile-activity-section,.strength-panel{min-height:0}
  .profile-dossier-grid{grid-template-columns:1fr 1fr}
  .profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .achievement-card:nth-child(2){border-inline-end:0}
  .achievement-card:nth-child(-n+2){border-bottom:1px solid #a9c5d135}
  .profile-management-footer{flex-direction:column;align-items:stretch}
  .profile-management-actions .primary-btn{width:100%;justify-content:center}
}
@media(max-width:420px){
  .profile-dossier-page{gap:12px}
  .profile-page-heading{align-items:flex-start}
  .profile-page-back{margin-top:3px;max-width:140px;line-height:1.35}
  .profile-identity,.profile-academic-dossier,.profile-activity-section,.strength-panel,.achievements-panel,.profile-management-footer{padding:15px}
  .profile-dossier-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dossier-field{min-height:67px;padding:8px 10px}
  .dossier-field:nth-child(odd){border-inline-end:1px solid #a9c5d135}
  .dossier-field:nth-child(even){border-inline-end:0}
  .dossier-field:nth-child(-n+2){border-bottom:1px solid #a9c5d135}
  .profile-activity-section .section-head{align-items:flex-start;flex-direction:column}
  .profile-activity-section .section-head .profile-badge{max-width:100%}
  .achievement-card small{font-size:.61rem}
}
@media(prefers-reduced-motion:reduce){
  .profile-dossier-page *{animation:none!important;transition:none!important}
}
.aroqa-reduced-motion .profile-dossier-page *,
.profile-dossier-page[data-reduced-motion="true"] *{animation:none!important;transition:none!important}
