/* =========================================================================
   SONIC STORE · PAR Dashboard
   Cabinet-style theme
   ======================================================================= */

:root{
  --bg:#0b1a36;
  --bg2:#10274a;
  --panel:#223b69;
  --panel-2:#294776;
  --panel-3:#335386;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.12);
  --text:#f4f8ff;
  --muted:#b8c8df;
  --blue1:#2cb6ff;
  --blue2:#1568ff;
  --blue3:#5ecfff;
  --ok:#8ff7c2;
  --err:#ff9b9b;
  --shadow:0 20px 40px rgba(0,0,0,.25);
  --radius:22px;
  --max:1280px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}

body{
  font-family:'Inter',system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(94,207,255,.14), transparent 22%),
    radial-gradient(circle at 0% 100%, rgba(21,104,255,.12), transparent 24%),
    linear-gradient(180deg, #081631 0%, #0d2144 100%);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}

:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(94,207,255,.18);
  border-radius:12px;
}

::selection{
  background:rgba(94,207,255,.28);
  color:#fff;
}

/* utility */
.notranslate{translate:none}
.hidden,.section[hidden]{display:none !important}
.row{display:flex;gap:12px;align-items:center}
.row-between{justify-content:space-between}
.row-end{justify-content:flex-end}
.row-center{justify-content:center}
.row-wrap{flex-wrap:wrap}
.push-right{margin-left:auto}
.soft-disabled{opacity:.55;pointer-events:none}
.space-bottom{margin-bottom:14px}

/* topbar */
.sonic-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:1200;
  height:78px;
  background:linear-gradient(180deg, rgba(36,70,122,.94), rgba(24,48,92,.94));
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 10px 28px rgba(0,0,0,.18);
}

.header-content{
  max-width:var(--max);
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  height:78px;
  display:flex;
  align-items:center;
  gap:18px;
}

.spacer{flex:1}

.logo-font{font-family:'Inter',system-ui,sans-serif}
.logo-animate{
  font-size:20px;
  font-weight:800;
  letter-spacing:.2px;
  color:#f5f8ff;
  background:none;
  -webkit-text-fill-color:initial;
  text-shadow:none;
  cursor:pointer;
  white-space:nowrap;
}

.burger{
  width:42px;
  height:42px;
  border:none;
  background:none;
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  padding:0;
  cursor:pointer;
  border-radius:12px;
}

.burger-bar{
  width:26px;
  height:3px;
  border-radius:999px;
  background:#eff7ff;
  margin:0;
  box-shadow:none;
  transition:.2s ease;
}

.burger.open .burger-bar:nth-child(1){transform:translateY(8px) rotate(45deg)}
.burger.open .burger-bar:nth-child(2){opacity:0}
.burger.open .burger-bar:nth-child(3){transform:translateY(-8px) rotate(-45deg)}

.nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  z-index:1100;
}

.nav-links a,
.nav-links button{
  position:relative;
  min-height:42px;
  padding:0 16px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#dbe6f7;
  font-size:16px;
  font-weight:600;
  border:none;
  background:transparent;
  cursor:pointer;
  transition:.18s ease;
}

.nav-links a:hover,
.nav-links button:hover{
  background:rgba(255,255,255,.04);
  color:#fff;
  transform:none;
}

.nav-links a.active{
  color:#fff;
}

.nav-links a.active::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:2px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#3ab7ff,#62ddff);
  box-shadow:0 0 12px rgba(58,183,255,.35);
}

@media (max-width:900px){
  .burger{display:flex}
  .nav-links{
    position:fixed;
    left:0;right:0;top:78px;
    flex-direction:column;
    gap:0;
    background:rgba(8,15,29,.98);
    border-bottom:1px solid rgba(255,255,255,.06);
    transform:translateY(-120%);
    opacity:0;
    pointer-events:none;
    transition:.22s ease;
    padding:10px 0 12px;
    box-shadow:0 14px 28px rgba(0,0,0,.24);
  }
  .nav-links.open{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
  }
  .nav-links a,
  .nav-links button{
    width:min(92%,460px);
    margin:6px auto;
    padding:14px 16px;
    border-radius:14px;
    background:rgba(255,255,255,.04);
    color:#eaf5ff;
    text-align:center;
    font-weight:700;
  }
}

/* layout */
.page{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
  padding:104px 0 40px;
}


.tabs-wrap{
  position:sticky;
  top:90px;
  z-index:400;
  margin-bottom:18px;
}

.tabs-toggle{
  display:none;
  width:100%;
  min-height:54px;
  padding:12px 16px;
  border-radius:16px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:var(--shadow);
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.tabs-toggle-caret{
  transition:.18s ease;
}

.tabs-wrap.open .tabs-toggle-caret{
  transform:rotate(180deg);
}

@media (max-width:760px){
  .tabs-wrap{
    top:78px;
    margin-bottom:14px;
  }

  .tabs-toggle{
    display:flex;
  }

  .tabs{
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    margin:0;
    padding:10px;
    border-radius:18px;
    background:rgba(8,15,29,.98);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 14px 28px rgba(0,0,0,.24);
    display:none;
  }

  .tabs-wrap.open .tabs{
    display:block;
  }

  .tabbar{
    grid-template-columns:1fr !important;
    gap:10px;
  }

  .tab-btn{
    width:100%;
    justify-content:center;
  }
}

/* tabs */
.tabs{
  position:sticky;
  top:90px;
  z-index:400;
  margin-bottom:18px;
}

.tabbar{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px;
}

.tab-btn{
  min-height:54px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  color:#dbe6f7;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
  box-shadow:var(--shadow);
}

.tab-btn:hover{
  transform:translateY(-1px);
  color:#fff;
}

.tab-btn[aria-selected="true"]{
  color:#fff;
  border-color:rgba(94,207,255,.28);
  background:
    linear-gradient(180deg, rgba(34,73,130,.98), rgba(23,49,97,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 32px rgba(20,92,255,.18);
}

@media (max-width:980px){
  .tabbar{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:520px){
  .tabbar{grid-template-columns:1fr}
}


.hero-panel{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
  padding:30px 32px;
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero-title{
  margin:0 0 10px;
  font-size:42px;
  line-height:1.05;
  font-weight:800;
  color:#fff;
  letter-spacing:-.03em;
}

.hero-sub{
  margin:0;
  max-width:720px;
  color:#c8d6eb;
  font-size:17px;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}

.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:18px;
}

.summary-card{
  min-height:168px;
  padding:18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.summary-label{
  color:#dbe7f7;
  font-size:14px;
  font-weight:700;
}

.summary-value{
  font-size:40px;
  line-height:1;
  font-weight:800;
  color:#9ad4ff;
  letter-spacing:-.03em;
}

.summary-note{
  color:#b8c8df;
  font-size:14px;
  line-height:1.5;
}

.quickstart-card{
  margin-top:0;
}

.quickstart-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:14px 0 18px;
}

.step-card{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:16px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}

.step-num{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  flex-shrink:0;
  background:linear-gradient(180deg,#49c2ff,#2480ff);
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 22px rgba(36,128,255,.28);
}

.step-title{
  color:#fff;
  font-size:16px;
  font-weight:800;
  margin-bottom:4px;
}

.step-text{
  color:#b8c8df;
  font-size:14px;
  line-height:1.5;
}

.btn-secondary{
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.08);
  color:#f3f7ff;
  box-shadow:none;
}

.btn-secondary:hover{
  background:linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1));
}

@media (max-width:980px){
  .hero-panel{
    grid-template-columns:1fr;
  }
  .summary-grid{
    grid-template-columns:1fr;
  }
  .quickstart-steps{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .hero-panel{
    padding:22px;
  }
  .hero-title{
    font-size:30px;
  }
  .hero-sub{
    font-size:16px;
  }
  .summary-card{
    min-height:136px;
  }
  .summary-value{
    font-size:34px;
  }
}

/* cards */
.section{display:block}
.section.active{display:block}
.section[hidden]{display:none !important}

.card{
  margin-top:18px;
  padding:22px 26px;
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.title{
  margin:0 0 10px;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  color:#fff;
  letter-spacing:-.02em;
}

.sub{
  color:#c8d6eb;
  font-size:15px;
  line-height:1.6;
}

/* pills / buttons */
.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:38px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#e8f3ff;
}

.btn{
  min-height:48px;
  padding:0 18px;
  border:none;
  border-radius:12px;
  background:linear-gradient(180deg, var(--blue1), var(--blue2));
  color:#fff;
  font-size:15px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:.18s ease;
}

.btn:hover{
  transform:translateY(-1px);
  filter:none;
}

.btn-flat{
  min-height:46px;
  padding:0 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#eef6ff;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  transition:.18s ease;
}

.btn-flat:hover{
  background:rgba(255,255,255,.12);
}

.btn.soft-disabled,
.btn-flat.soft-disabled,
.btn[disabled],
.btn-flat[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

/* forms */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.form-grid.compact{gap:14px}

@media (max-width:760px){
  .form-grid{grid-template-columns:1fr}
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label{
  font-size:14px;
  color:#dbe7f7;
  font-weight:700;
}

.input,
select,
textarea{
  width:100%;
  height:46px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#eef6ff;
  font-size:15px;
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

textarea{
  height:auto;
  min-height:120px;
  padding:12px 14px;
  resize:vertical;
}

.input::placeholder,
textarea::placeholder{
  color:#9fb0c8;
}

.input:focus,
select:focus,
textarea:focus{
  border-color:rgba(94,207,255,.4);
  box-shadow:0 0 0 3px rgba(94,207,255,.14);
}

.select-narrow{max-width:360px}


.accounts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
  gap:14px;
}

.account-card{
  border-radius:18px;
  padding:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
}

.account-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.account-badge{
  min-width:42px;
  height:42px;
  padding:0 12px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#49c2ff,#2480ff);
  color:#fff;
  font-weight:800;
  font-size:14px;
  box-shadow:0 10px 22px rgba(36,128,255,.28);
}

.account-name{
  margin:0;
  color:#fff;
  font-size:17px;
  font-weight:800;
  line-height:1.2;
}

.account-sub{
  color:#b8c8df;
  font-size:13px;
  line-height:1.5;
}

.account-meta{
  display:grid;
  gap:8px;
}

.account-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.account-meta-label{
  color:#b8c8df;
  font-size:13px;
}

.account-meta-value{
  color:#eef6ff;
  font-size:14px;
  font-weight:700;
  text-align:right;
  word-break:break-word;
}

.account-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:auto;
}

.account-actions .btn,
.account-actions .btn-flat{
  flex:1 1 140px;
}

.account-empty{
  padding:18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  color:#c8d6eb;
}

@media (max-width:760px){
  .accounts-grid{
    grid-template-columns:1fr;
  }
  .account-actions{
    flex-direction:column;
  }
}

/* lists */
.list{
  display:grid;
  gap:12px;
}

.item{
  border-radius:16px;
  padding:14px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-bottom:14px;
}

.log-list{
  list-style:none;
  padding-left:0;
  margin:0;
  display:grid;
  gap:10px;
}

.log-item{
  border-radius:16px;
  padding:12px 14px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
}

.log-item .when{
  color:#9ad4ff;
  margin-right:10px;
  display:inline-block;
  min-width:130px;
}

.log-item .text{
  color:#e5f6ff;
}

/* tasks */
.tasks-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill, minmax(260px,1fr));
}

.task-card{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  background:linear-gradient(180deg, rgba(28,50,90,.95), rgba(22,41,74,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
}

.task-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(94,207,255,.12), transparent 35%);
  pointer-events:none;
}

.task-inner{
  position:relative;
  z-index:1;
  padding:16px;
}

.task-head{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:8px;
}

.task-avatar{
  width:44px;
  height:44px;
  border-radius:12px;
  background:linear-gradient(180deg,#49c2ff,#2480ff);
  border:1px solid rgba(255,255,255,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:#fff;
  font-family:'Inter',system-ui,sans-serif;
  box-shadow:0 10px 22px rgba(36,128,255,.28);
}

.task-title{
  font-size:1.05rem;
  margin:0;
  color:#fff;
}

.task-meta{
  font-size:.9rem;
  color:#9bdfff;
}

.task-status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  margin:8px 0;
}

.task-status[data-status="running"]{
  border-color:rgba(143,247,194,.35);
  background:rgba(143,247,194,.12);
}

.task-status[data-status="paused"]{
  border-color:rgba(255,209,138,.35);
  background:rgba(255,209,138,.10);
}

.task-footer{
  display:flex;
  gap:8px;
  justify-content:flex-start;
  align-items:center;
  margin-top:10px;
}

#tasksBox{
  max-height:calc(100dvh - 320px);
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

/* banner */
.lock-banner{
  display:none;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(95,39,52,.88), rgba(72,25,39,.88));
  border:1px solid rgba(255,173,173,.22);
  color:#ffd7d7;
  box-shadow:var(--shadow);
}


.tasks-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:0 0 16px;
}

.tasks-summary-card{
  min-height:104px;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.tasks-summary-label{
  color:#dbe7f7;
  font-size:14px;
  font-weight:700;
}

.tasks-summary-value{
  font-size:34px;
  line-height:1;
  font-weight:800;
  color:#9ad4ff;
  letter-spacing:-.03em;
}

@media (max-width:760px){
  .tasks-summary{
    grid-template-columns:1fr;
  }
  .tasks-summary-value{
    font-size:30px;
  }
}


.log-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin:0 0 16px;
}

.log-summary-card{
  min-height:104px;
  padding:16px 18px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.log-summary-label{
  color:#dbe7f7;
  font-size:14px;
  font-weight:700;
}

.log-summary-value{
  font-size:34px;
  line-height:1;
  font-weight:800;
  color:#9ad4ff;
  letter-spacing:-.03em;
}

@media (max-width:760px){
  .log-summary{
    grid-template-columns:1fr;
  }
  .log-summary-value{
    font-size:30px;
  }
}

/* footer */
.footer{
  margin-top:28px;
  padding:0 0 20px;
  text-align:center;
  color:#bde6ff;
}

.footer .row{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

.footer .pill{
  background:rgba(255,255,255,.06);
}

/* translator */
.gt-fixed{
  position:fixed;
  left:12px;
  bottom:12px;
  z-index:90;
  max-width:220px;
}

@media (max-width:760px){
  .header-content,
  .page{
    width:min(100%, calc(100% - 20px));
  }

  .sonic-header{
    height:70px;
    min-height:70px;
  }

  .header-content{
    height:70px;
    gap:12px;
  }

  .logo-animate{
    font-size:18px;
  }

  .page{
    padding-top:86px;
    padding-bottom:28px;
  }

  .tabs{
    top:78px;
    margin-bottom:14px;
  }

  .tabbar{
    gap:10px;
  }

  .tab-btn{
    min-height:50px;
    font-size:14px;
    padding:10px 12px;
    border-radius:14px;
  }

  .hero-panel{
    padding:20px;
    margin-bottom:14px;
  }

  .hero-actions{
    gap:10px;
  }

  .summary-grid{
    gap:14px;
    margin-bottom:14px;
  }

  .card{
    padding:18px;
    margin-top:14px;
  }

  .title{
    font-size:24px;
  }

  .toolbar{
    gap:8px;
  }

  .input,
  select,
  textarea{
    font-size:16px;
  }

  .btn,
  .btn-flat{
    min-height:48px;
  }

  .gt-fixed{
    left:8px;
    bottom:8px;
    max-width:180px;
    opacity:.92;
    transform:scale(.94);
    transform-origin:left bottom;
  }
}


/* =========================================================================
   PAR Dashboard · Real Sonic Cabinet style override
   Based on /cabinet/support.html visual style
   ======================================================================= */

:root{
  --bg:#050914;
  --cyan:#00eaff;
  --blue:#1677ff;
  --violet:#8b5cff;
  --green:#63f4b2;
  --red:#ff7b96;
  --text:#ffffff;
  --muted:#b8d7ff;
  --soft:#d8ecff;
  --panel:rgba(8,18,44,.78);
  --panel-2:rgba(10,25,58,.92);
  --panel-3:rgba(13,36,80,.96);
  --line:rgba(0,234,255,.22);
  --line-2:rgba(255,255,255,.10);
  --shadow:0 24px 70px rgba(0,0,0,.38);
  --radius:24px;
  --max:1240px;
}

body{
  color:var(--text) !important;
  background:#050914 !important;
  font-family:Inter, Arial, sans-serif !important;
}

body::before{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:-3 !important;
  background:url('/assets/img/sonic-store/hero/castle-bg.png') center top / cover no-repeat !important;
  opacity:.52 !important;
  filter:saturate(1.15) contrast(1.12) brightness(.82) !important;
}

body::after{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:-2 !important;
  pointer-events:none !important;
  background:
    linear-gradient(180deg, rgba(3,7,18,.94) 0%, rgba(3,7,18,.68) 46%, rgba(3,7,18,.96) 100%),
    radial-gradient(circle at 18% 0%, rgba(0,234,255,.10), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(139,92,255,.13), transparent 30%) !important;
}

/* Header in cabinet visual language */

.sonic-header{
  height:78px !important;
  background:
    radial-gradient(circle at 45% 0%, rgba(0,234,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(7,18,39,.96), rgba(3,8,20,.98)) !important;
  border-bottom:1px solid rgba(0,234,255,.18) !important;
  box-shadow:0 18px 60px rgba(0,0,0,.34) !important;
  backdrop-filter:blur(14px) !important;
}

.header-content{
  height:78px !important;
  width:min(var(--max), calc(100% - 32px)) !important;
  max-width:var(--max) !important;
}

.logo-animate{
  min-height:64px !important;
  min-width:190px !important;
  font-size:0 !important;
  color:transparent !important;
  background:url('/assets/img/sonic-store/logo/sonic-store-logo-last-final.png?v=30') left center / contain no-repeat !important;
  filter:
    drop-shadow(0 0 10px rgba(0,234,255,.42))
    drop-shadow(0 0 22px rgba(37,117,255,.24)) !important;
}

.nav-links{
  gap:8px !important;
}

.nav-links a,
.nav-links button{
  min-height:44px !important;
  padding:0 15px !important;
  border-radius:14px !important;
  color:#dbeaff !important;
  font-size:15px !important;
  font-weight:900 !important;
  border:1px solid transparent !important;
  background:transparent !important;
}

.nav-links a:hover,
.nav-links button:hover,
.nav-links a.active{
  color:#fff !important;
  background:linear-gradient(90deg, #0d7df5 0%, #1ba7dd 100%) !important;
  border-color:rgba(90,220,255,.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 12px 28px rgba(0,137,255,.22) !important;
}

.nav-links a.active::after{
  display:none !important;
}

/* Page layout */

.page{
  width:min(var(--max), calc(100% - 32px)) !important;
  padding:104px 0 40px !important;
}

/* Tabs */

.tabs-wrap{
  top:90px !important;
  z-index:400 !important;
}

.tabs{
  padding:8px !important;
  border-radius:22px !important;
  border:1px solid rgba(0,234,255,.18) !important;
  background:rgba(8,18,44,.78) !important;
  box-shadow:var(--shadow) !important;
  backdrop-filter:blur(16px) !important;
}

.tabbar{
  gap:8px !important;
}

.tab-btn{
  min-height:48px !important;
  padding:0 18px !important;
  border-radius:15px !important;
  color:#dbeaff !important;
  font-weight:950 !important;
  border:1px solid transparent !important;
  background:transparent !important;
}

.tab-btn:hover,
.tab-btn.active,
.tab-btn[aria-selected="true"]{
  color:#fff !important;
  background:linear-gradient(90deg, #0d7df5 0%, #1ba7dd 100%) !important;
  border-color:rgba(90,220,255,.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 12px 28px rgba(0,137,255,.22) !important;
}

/* Main blocks */

.hero-panel,
.card,
.summary-card,
.step-card,
.log-summary-card,
.tasks-summary-card,
.account-card,
.task-card,
.item{
  border:1px solid rgba(0,234,255,.22) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(0,234,255,.12), transparent 44%),
    linear-gradient(180deg, rgba(8,18,44,.82), rgba(5,12,30,.78)) !important;
  box-shadow:var(--shadow) !important;
  border-radius:24px !important;
}

.hero-panel{
  padding:30px !important;
  overflow:hidden !important;
  position:relative !important;
}

.hero-panel::before{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(0,234,255,.13), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(139,92,255,.12), transparent 30%) !important;
}

.hero-copy,
.hero-actions{
  position:relative !important;
  z-index:2 !important;
}

.hero-title{
  margin:0 !important;
  color:#fff !important;
  font-family:Orbitron, Inter, Arial, sans-serif !important;
  font-size:clamp(34px,4.6vw,58px) !important;
  line-height:1.02 !important;
  letter-spacing:-.04em !important;
  text-shadow:0 0 24px rgba(0,234,255,.24) !important;
}

.hero-sub{
  color:#b8d7ff !important;
  font-size:16px !important;
  line-height:1.55 !important;
  max-width:720px !important;
}

.title{
  color:#fff !important;
  font-family:Orbitron, Inter, Arial, sans-serif !important;
  letter-spacing:-.02em !important;
}

.sub,
.summary-note,
.step-text,
.account-sub,
.account-meta-label{
  color:#a8c2e8 !important;
}

/* Summary cards */

.summary-grid{
  gap:16px !important;
}

.summary-card{
  padding:20px !important;
  min-height:148px !important;
}

.summary-label,
.log-summary-label,
.tasks-summary-label{
  color:#a8c2e8 !important;
  font-weight:950 !important;
  text-transform:uppercase !important;
  letter-spacing:.07em !important;
  font-size:12px !important;
}

.summary-value,
.log-summary-value,
.tasks-summary-value{
  color:#fff !important;
  font-size:34px !important;
  font-weight:950 !important;
  text-shadow:0 0 22px rgba(0,234,255,.22) !important;
}

/* Quick start */

.quickstart-card{
  margin-top:18px !important;
}

.quickstart-steps{
  gap:14px !important;
}

.step-card{
  padding:16px !important;
}

.step-num,
.account-badge{
  background:linear-gradient(135deg,#087cff,#20c8ff) !important;
  color:#fff !important;
  box-shadow:0 14px 28px rgba(0,145,255,.24) !important;
}

.step-title,
.account-name{
  color:#fff !important;
  font-weight:950 !important;
}

/* Buttons */

.btn,
.btn-flat{
  min-height:48px !important;
  border-radius:15px !important;
  font-weight:950 !important;
  font-size:16px !important;
}

.btn{
  border:0 !important;
  color:#fff !important;
  background:linear-gradient(135deg,#087cff,#20c8ff) !important;
  box-shadow:0 14px 28px rgba(0,145,255,.24) !important;
}

.btn:hover{
  transform:translateY(-2px) !important;
  box-shadow:0 18px 36px rgba(0,145,255,.32) !important;
}

.btn-secondary,
.btn-flat{
  color:#dbeaff !important;
  border:1px solid rgba(0,234,255,.20) !important;
  background:rgba(8,24,54,.82) !important;
  box-shadow:none !important;
}

.btn-secondary:hover,
.btn-flat:hover{
  color:#fff !important;
  border-color:rgba(90,220,255,.45) !important;
  background:rgba(13,125,245,.22) !important;
}

/* Inputs */

.input,
select,
textarea{
  min-height:50px !important;
  border-radius:15px !important;
  border:1px solid rgba(0,234,255,.18) !important;
  background:rgba(4,12,30,.82) !important;
  color:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.input:focus,
select:focus,
textarea:focus{
  border-color:rgba(0,234,255,.46) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 0 0 4px rgba(0,234,255,.10) !important;
}

.field label{
  color:#dbeaff !important;
  font-weight:900 !important;
}

/* Pills / banners */

.pill{
  color:#dbeaff !important;
  border:1px solid rgba(0,234,255,.20) !important;
  background:rgba(8,24,54,.82) !important;
  border-radius:999px !important;
  font-weight:900 !important;
}

.lock-banner{
  border:1px solid rgba(255,123,150,.28) !important;
  background:rgba(255,123,150,.12) !important;
  color:#ffd8e0 !important;
  border-radius:22px !important;
  box-shadow:var(--shadow) !important;
}

/* Lists */

.list,
.accounts-grid,
.tasks-grid,
.log-list{
  gap:14px !important;
}

.log-item{
  border:1px solid rgba(0,234,255,.16) !important;
  background:rgba(8,24,54,.62) !important;
  border-radius:18px !important;
}

/* Footer */

.footer{
  color:#8ea6c8 !important;
}

/* Mobile */

@media(max-width:900px){
  .burger{
    display:flex !important;
  }

  .nav-links{
    top:78px !important;
    background:
      radial-gradient(circle at 45% 0%, rgba(0,234,255,.10), transparent 32%),
      linear-gradient(180deg, rgba(7,18,39,.98), rgba(3,8,20,.99)) !important;
    border-bottom:1px solid rgba(0,234,255,.18) !important;
    box-shadow:0 18px 60px rgba(0,0,0,.34) !important;
  }

  .nav-links a,
  .nav-links button{
    width:min(92%,460px) !important;
    min-height:52px !important;
    margin:6px auto !important;
    background:rgba(8,24,54,.82) !important;
    border:1px solid rgba(0,234,255,.16) !important;
  }
}

@media(max-width:760px){
  .page{
    width:calc(100% - 24px) !important;
    padding-top:96px !important;
  }

  .tabs-wrap{
    top:84px !important;
  }

  .tabs-toggle{
    min-height:54px !important;
    border-radius:16px !important;
    color:#fff !important;
    border:1px solid rgba(0,234,255,.18) !important;
    background:rgba(8,18,44,.88) !important;
    box-shadow:var(--shadow) !important;
  }

  .tabs{
    margin-top:8px !important;
    border-radius:18px !important;
  }

  .tab-btn{
    width:100% !important;
  }

  .hero-panel{
    padding:22px !important;
    border-radius:24px !important;
  }

  .hero-title{
    font-size:32px !important;
  }

  .hero-sub{
    font-size:14px !important;
  }

  .hero-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .summary-grid,
  .quickstart-steps,
  .form-grid,
  .log-summary,
  .tasks-summary{
    grid-template-columns:1fr !important;
  }

  .card{
    padding:16px !important;
  }

  .btn,
  .btn-flat,
  .input,
  select{
    width:100% !important;
  }
}

@media(max-width:420px){
  .header-content{
    width:calc(100% - 20px) !important;
  }

  .logo-animate{
    min-width:150px !important;
    min-height:52px !important;
  }

  .hero-title{
    font-size:28px !important;
  }
}


/* =========================================================================
   PAR Dashboard · Cabinet left sidebar layout
   ======================================================================= */

:root{
  --sidebar:250px;
}

/* hide old top PAR header, use cabinet sidebar instead */
.sonic-header{
  display:none !important;
}

.gt-fixed{
  z-index:90 !important;
}

/* Cabinet sidebar copied visually from personal cabinet */
.sidebar{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:var(--sidebar);
  z-index:1100;
  padding:24px 16px 14px;
  display:flex;
  flex-direction:column;
  gap:16px;
  background:
    radial-gradient(circle at 45% 0%, rgba(0,234,255,.10), transparent 32%),
    linear-gradient(180deg, rgba(7,18,39,.98), rgba(3,8,20,.99));
  border-right:1px solid rgba(0,234,255,.18);
  box-shadow:18px 0 60px rgba(0,0,0,.34);
}

.side-logo{
  min-height:112px;
  height:112px;
  margin:0 0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0;
  color:transparent;
  position:relative;
}

.side-logo::before{
  content:"";
  width:210px;
  height:92px;
  background:url('/assets/img/sonic-store/logo/sonic-store-logo-last-final.png?v=30') center / contain no-repeat;
  filter:
    drop-shadow(0 0 10px rgba(0,234,255,.42))
    drop-shadow(0 0 22px rgba(37,117,255,.24));
}

.side-nav{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.side-link{
  min-height:54px;
  height:54px;
  padding:0 16px;
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:14px;
  color:#dbeaff;
  font-size:17px;
  font-weight:900;
  border:1px solid transparent;
  transition:.18s ease;
}

.side-link .ico{
  width:20px;
  min-width:20px;
  text-align:center;
  font-size:17px;
  opacity:.95;
}

.side-link:hover,
.side-link.active{
  color:#fff;
  background:linear-gradient(90deg, #0d7df5 0%, #1ba7dd 100%);
  border-color:rgba(90,220,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 12px 28px rgba(0,137,255,.22);
}

.sidebar-copy{
  margin-top:auto;
  color:#8ea6c8;
  font-size:13px;
  font-weight:700;
}

.mobile-topbar{
  display:none;
}

.mobile-backdrop{
  position:fixed;
  inset:0;
  z-index:1090;
  background:rgba(3,7,18,.62);
  backdrop-filter:blur(7px);
  opacity:0;
  pointer-events:none;
  transition:.22s ease;
}

body.menu-open .mobile-backdrop{
  opacity:1;
  pointer-events:auto;
}

/* PAR content starts after sidebar */
.page{
  margin-left:var(--sidebar) !important;
  width:calc(100% - var(--sidebar)) !important;
  max-width:none !important;
  padding:28px 28px 42px !important;
}

.tabs-wrap{
  top:18px !important;
}

/* tablet / mobile drawer */
@media(max-width:980px){
  .mobile-topbar{
    position:sticky;
    top:0;
    z-index:1080;
    height:68px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 14px;
    background:
      radial-gradient(circle at 45% 0%, rgba(0,234,255,.10), transparent 32%),
      linear-gradient(180deg, rgba(7,18,39,.98), rgba(3,8,20,.99));
    border-bottom:1px solid rgba(0,234,255,.18);
    box-shadow:0 14px 34px rgba(0,0,0,.30);
  }

  .mobile-logo{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
  }

  .mobile-logo img{
    width:42px;
    height:42px;
    object-fit:contain;
    filter:drop-shadow(0 0 12px rgba(0,234,255,.42));
  }

  .burger{
    width:56px;
    height:56px;
    border:0;
    border-radius:16px;
    background:rgba(8,24,54,.82);
    border:1px solid rgba(0,234,255,.18);
    display:flex !important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0;
  }

  .burger span{
    width:26px;
    height:3px;
    border-radius:99px;
    background:#eaf8ff;
    display:block;
  }

  .sidebar{
    transform:translateX(-105%);
    transition:.24s ease;
  }

  body.menu-open .sidebar{
    transform:translateX(0);
  }

  .page{
    margin-left:0 !important;
    width:100% !important;
    padding:18px 14px 34px !important;
  }

  .tabs-wrap{
    top:78px !important;
  }
}
