/* SakuraContainer Portal – VONROOM-inspired UI, strictly light NobleUI underneath.
 * Scoped to the Portal's Login/Dashboard only; link/password/default pages stay NobleUI Light.
 * Visual styles only: no changes to PHP authentication or SSO.
 */
html[data-bs-theme="light"] body.sakura-portal.sakura-vroom-mode,
body.sakura-portal.sakura-vroom-mode,
body.sakura-portal.sakura-vroom-mode .main-wrapper,
body.sakura-portal.sakura-vroom-mode .page-wrapper {
  min-height: 100vh;
  color: #f8fafc;
  background-color: #070b17 !important;
  background-image: linear-gradient(180deg,rgba(0,0,20,.13),rgba(0,0,20,.52)),url('vroom_starry.jpg') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
.sakura-vroom-mode .sakura-vroom-stage {max-width: none; padding:0; margin:0; min-height:100vh; background:transparent !important;}
.sakura-vroom-mode a {text-decoration:none}
.sakura-vroom-mode button {font-family:inherit}
/* Login: centered, dark glass card with original Sakura logo. */
.sv-login-page {min-height:100vh; display:flex; justify-content:center; align-items:center; padding:28px 16px;}
.sv-login-card {position:relative;width:100%;max-width:475px;padding:33px 39px 31px; background:rgba(4,9,20,.79);border:1px solid rgba(107,225,250,.18);border-radius:15px;box-shadow:0 0 35px rgba(35,201,233,.28), 0 24px 70px rgba(0,0,0,.44);backdrop-filter:blur(5px); color:#f5f8ff;}
.sv-login-language {position:absolute;right:25px;top:22px;display:flex;gap:8px;align-items:center;color:#b8c3d4;font-size:12px;font-weight:700;}
.sv-login-language a {color:#b0bbcf;}.sv-login-language a:hover,.sv-login-language a.is-current {color:#8deaff;}
.sv-login-logo {width:96px;height:96px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:3px auto 16px;padding:8px;box-shadow:0 0 18px rgba(76,218,237,.12);}
.sv-login-logo img {width:100%;height:100%;border-radius:50%;object-fit:contain;}
.sv-brand-name {font-size:24px;font-weight:800;letter-spacing:.02em;line-height:1.2;text-align:center;color:#f7f9ff;}
.sv-brand-name span {color:#fa5265;}
.sv-login-card h1 {font-size:23px;font-weight:650;color:#fff;text-align:center;line-height:1.4;margin:21px 0 7px;}
.sv-login-subtitle {color:#d5deea;font-size:14px;line-height:1.5;text-align:center;margin:0 0 23px;}
.sv-login-form label {display:block;font-size:14px;font-weight:600;margin:15px 0 7px;color:#f0f5ff;}
.sv-field-wrap {position:relative;}
.sv-field {height:46px;width:100%;border-radius:7px;border:1px solid rgba(209,226,245,.28);background:#151f32;color:#fff;outline:none;padding:11px 13px;font-size:15px;transition:border-color .16s,box-shadow .16s;}
.sv-field:focus {border-color:#78e9ff;box-shadow:0 0 0 3px rgba(65,198,228,.19);}
.sv-field:-webkit-autofill,.sv-field:-webkit-autofill:hover,.sv-field:-webkit-autofill:focus{-webkit-text-fill-color:#fff;box-shadow:0 0 0 1000px #151f32 inset;}
.sv-password-wrap .sv-field {padding-right:54px;}
.sv-show-password {position:absolute;right:5px;top:4px;bottom:4px;width:44px;background:transparent;border:0;color:#b5c8de;display:flex;justify-content:center;align-items:center;cursor:pointer;}
.sv-show-password:hover,.sv-show-password:focus-visible{color:#fff;}
.sv-primary-button {margin-top:24px;width:100%;height:47px;background:#10a964;color:#fff;border:0;border-radius:7px;font-size:16px;font-weight:700;cursor:pointer;transition:background .2s,transform .2s;}
.sv-primary-button:hover {background:#0e9658;transform:translateY(-1px);}
.sv-primary-button:focus-visible,.sv-logout-link:focus-visible,.sv-menu-button:focus-visible {outline:3px solid #62dfff;outline-offset:3px;}
.sv-login-help {color:#b2bed0;text-align:center;font-size:12px;line-height:1.7;margin:18px 0 0;}
.sv-alert {padding:11px 13px;margin:10px 0 18px;background:rgba(170,35,62,.20);border:1px solid #eb526d;border-radius:7px;color:#ffd7df;font-size:13px;}
/* Dashboard: VROOM-style centered brand, translucent panel, icon grid */
.sv-dashboard-page {min-height:100vh;display:flex;justify-content:center;align-items:center;padding:26px 17px;}
.sv-dashboard-panel {width:97%;max-width:1640px;padding:34px 40px 24px;background:rgba(3,9,20,.75);border:1px solid rgba(69,219,238,.21);border-radius:22px;box-shadow:0 0 38px rgba(0,204,255,.21),0 30px 65px rgba(0,0,0,.2);backdrop-filter:blur(4px);}
.sv-dashboard-top {display:grid;grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);align-items:center;gap:15px;}
.sv-small-overline {color:#89e7ff;font-size:10px;letter-spacing:.17em;font-weight:800;}
.sv-dashboard-heading h1 {color:#fff;font-size:25px;font-weight:700;line-height:1.32;margin:9px 0 5px;}
.sv-dashboard-heading p {color:#c8d2df;font-size:14px;margin:0;}
.sv-dashboard-logo{text-align:center;}
.sv-dashboard-logo img {width:212px;max-width:100%;height:92px;object-fit:contain;background:#fff;border-radius:12px;padding:13px 10px;}
.sv-dashboard-tools {display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:9px 11px;font-size:12px;}
.sv-dashboard-tools a {color:#c7eafa;padding:3px 1px;white-space:nowrap;font-weight:600;}
.sv-dashboard-tools a:hover,.sv-dashboard-tools a.active {color:#fff;text-decoration:underline;text-decoration-color:#55ddff;text-underline-offset:4px;}
.sv-user-pill {color:#d8f8ff;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgba(46,165,201,.17);border-radius:20px;padding:6px 9px;}
.sv-menu-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px;max-width:1030px;margin:32px auto 22px;}
.sv-menu-card {min-width:0;text-align:center;color:#fff;}
.sv-menu-form {margin:0;}
.sv-menu-button {width:100%;min-height:173px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:15px 15px 3px 3px;border:1px solid rgba(80,155,255,.26);color:#d4ebff;background:rgba(7,14,31,.76);box-shadow:0 0 24px rgba(25,139,249,.16);cursor:pointer;transition:transform .17s,background .17s,box-shadow .17s;}
.sv-menu-icon {width:104px;height:103px;object-fit:contain;display:block;filter:drop-shadow(0 0 9px rgba(36,143,255,.55));}
.sv-menu-hint {font-size:12px;letter-spacing:.02em;color:#9dcbec;}
.sv-menu-card.is-linked .sv-menu-button:hover {transform:translateY(-4px);background:rgba(11,30,58,.9);box-shadow:0 0 30px rgba(35,174,255,.34);}
.sv-menu-label {display:flex;align-items:center;justify-content:center;background:rgba(76,91,116,.9);min-height:52px;font-size:16px;font-weight:700;line-height:1.3;padding:9px 8px;}
.sv-menu-subtitle {min-height:40px;padding-top:9px;color:#c9d5e5;font-size:13px;line-height:1.55;}
.sv-menu-state {font-size:12px;margin-top:5px;color:#97bdcd;}
.sv-menu-state.linked {color:#7fe5ac;}
.sv-menu-unlinked {opacity:.68;}
.sv-menu-unlinked:hover {opacity:1;background:rgba(13,31,50,.9);}
.sv-menu-state.unlinked {color:#ffcf91;}
.sv-dashboard-bottom {padding-top:4px;display:flex;flex-direction:column;align-items:center;gap:11px;}
.sv-logout-link {background:#f07d66;padding:10px 27px;border-radius:30px;font-size:14px;font-weight:700;color:#fff!important;}
.sv-logout-link:hover {background:#e8644a;}
.sv-dashboard-bottom p {font-size:12px;line-height:1.5;text-align:center;color:#9fb1c6;margin:0;}
@media(max-width:1090px){.sv-dashboard-top{grid-template-columns:minmax(0,1fr) 185px;}.sv-dashboard-logo{grid-column:2;grid-row:1;}.sv-dashboard-tools{grid-column:1/-1;justify-content:center;}.sv-dashboard-logo img{width:175px;height:76px;}}
@media(max-width:760px){.sv-dashboard-panel{padding:25px 17px;}.sv-dashboard-top{display:flex;flex-direction:column;text-align:center;gap:12px;}.sv-dashboard-logo{order:-1;}.sv-dashboard-logo img{height:70px;width:180px;}.sv-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 11px;margin-top:28px;}.sv-menu-button{min-height:120px;}.sv-menu-icon{width:72px;height:70px;}.sv-menu-label{min-height:48px;font-size:13px;}.sv-menu-subtitle{font-size:11px;}.sv-dashboard-heading h1{font-size:22px;}}
@media(max-width:480px){.sv-login-card{padding:35px 23px 24px;}.sv-login-card h1{font-size:20px;}.sv-brand-name{font-size:22px;}.sv-menu-grid{grid-template-columns:1fr;max-width:280px;margin-left:auto;margin-right:auto;}.sv-menu-button{min-height:132px;}.sv-menu-icon{width:86px;height:84px;}}
@media(prefers-reduced-motion:reduce){.sv-menu-button,.sv-primary-button{transition:none;}}
