:root {
  --sidebar-width: 80px;
  --header-height: 60px;
  --footer-height: 48px;
  --radius-pill: 999px;
  --footer-bg-color: #262626;
  --footer-item-visited: #c6c6c6;
  --sidebar-gradient-start: #2BB5FF;
  --sidebar-gradient-end: #0043CE;
  --accent: #ff8a00;
  --text-main: #222222;
  --text-muted: #777777;
  --border-subtle: #e5e5e5;
  --page-bg: #ffffff;
  --video-bg: #2a2a2a;
  --avatar-border: #88e1ff;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,sans-serif;
  --text: #1f2a37;
  --muted: #6b7280;
  --expired-text: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --card-border: #cbcbcb;
  --card-text: #707070;
  --card-header-text: #f97316;
  --shadow: 0 8px 18px rgba(16, 24, 40, 0.12);
  --blue: #2196f3;
  --primaryTextColor:#1F66F7;
  --secondaryTextColor:#ff8a00;
  --color-error: #E20804;
  --color-success: #00980F;
  --color-white: #ffffff;
  --color-black: #000000;
  --notification-bg-success: #b4ffb9;
  --notification-bg-info: #90cdff;
  --notification-bg-warning: #ffe4a6;
  --notification-bg-error: #ffa6a6;

  --download-page-bg: #f4f4f4;
  --download-surface: #ffffff;
  --download-border: #d9d9d9;
  --download-border-soft: #e8e8e8;

  --download-text: #161616;
  --download-text-muted: #6f6f6f;
  --download-text-subtle: #8d8d8d;

  --download-blue: #33a6ea;
  --download-blue-hover: #1f8fd6;
  --download-blue-soft: #eaf6fd;

  --download-orange: #ff8a00;
  --download-orange-soft: #fff4e8;

  --download-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --download-shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-family);
  color: var(--text-main);
  background: var(--page-bg);
}

/* ---- Login Page ----*/
a.regLink {
    text-decoration: none;
    font-size: small;
    color: var(--primaryTextColor);
}

a.regLink:hover {
    text-decoration: underline;
    font-size: small;
    color: var(--secondaryTextColor);
}

.loginWelcome{
  font-size: 1.8rem;
  font-weight:500;
  color:var(--blue);
  white-space: nowrap;
}

.loginForm{
  display:flex;
  flex-direction: column;
  gap: 10px;
  width: 350px;
  align-items: center;
}

.field{
  position: relative;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(30,160,255,.75);
  background: #fff;
  display:flex;
  align-items:center;
  padding: 0 14px;
  width: 340px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.field:hover{
  border-color: #1EA0FF;
  box-shadow: 0 10px 22px #006EDB1A;
}

.field:focus-within{
  border-color: #0A8DF0;
  box-shadow:
    0 0 0 4px #1EA0FF2E,
    0 12px 26px #006EDB24;
}

.fieldIcon{
  transition: opacity .15s ease, transform .15s ease;
  opacity: .75;
}
.field:hover .fieldIcon,
.field:focus-within .fieldIcon{
  opacity: .95;
}

.field:focus-within .fieldInput::placeholder{
  color: rgba(85,110,135,.35);
}

.fieldIcon{
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  opacity: .85;
}

.fieldIcon--user{
  background-image: url(/public/images/icon-login-usersname.svg);
}
.fieldIcon--lock{
  background-image: url(/public/images/icon-login-password.svg);
}

.fieldDivider{
  width: 1px;
  height: 22px;
  background: rgba(30,160,255,.35);
  margin: 0 10px;
  border-radius: 1px;
}

.fieldInput{
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 15px;
  color: var(--blue) !important;
  background: transparent;
  padding: 0;
}

.fieldInput::placeholder{
  color: rgba(85, 110, 135, .45);;
}

/* Remove browser autofill yellow/blue background (Chrome/Safari/Edge) */
.fieldInput:-webkit-autofill,
.fieldInput:-webkit-autofill:hover,
.fieldInput:-webkit-autofill:focus,
.fieldInput:-webkit-autofill:active{
  border-radius: 999px;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color: var(--blue) !important;
  caret-color: var(--blue);
  transition: background-color 9999s ease-out 0s;
}

/* Firefox */
.fieldInput:-moz-autofill{
  box-shadow: 0 0 0 1000px #fff inset !important;
  -moz-text-fill-color: var(--blue) !important;
}

.eyeBtn{
  border: none;
  background: transparent;
  padding: 0;
  margin-left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  cursor: pointer;
}

.eyeBtn:focus-visible{
  outline: 3px solid rgba(30,160,255,.35);
  outline-offset: 2px;
}

.eyeIcon{
  width: 18px;
  height: 18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size: 18px 18px;
  transition: opacity .15s ease;
}

.eyeIcon{
  background-image: url(/public/images/icon-eye-closed.svg);
}

.eyeBtn:hover .eyeIcon{
  filter: brightness(0) saturate(100%)
          invert(46%) sepia(86%) saturate(2220%)
          hue-rotate(186deg) brightness(98%) contrast(101%);
}

.eyeBtn.isOn .eyeIcon{
  background-image: url(/public/images/icon-eye.svg);
}

.loginButton{
  margin-top: 10px;
  height: 35px;
  border: none;
  border-radius: var(--radius-pill);
  color: var(--color-white);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  background: linear-gradient(180deg, #24b4ff 0%, #0a8df0 55%, #006edb 100%);
  box-shadow: 0 14px 26px rgba(0,110,219,.22);
  width: 250px;
}

.loginButton:hover{
  filter: brightness(1.09);
}

.loginButton:active{
  transform: translateY(1px);
}

.screenReaderOnly{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* Small responsiveness */
@media (max-width: 720px){
  .loginForm{ width: 100%; }
  .loginButton{ width: 100%; }
  .loginWelcome{ font-size: 36px; }
}

.app-root {
  min-height: 100vh;
}

/* main-column is everything to the right of the sidebar */
.main-column {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.main-content-wrapper,
.download-page {
  flex: 1;
  overflow: auto;
  min-height: 0;
  margin-top: var(--header-height);
  margin-bottom: var(--footer-height);
  margin-left: var(--sidebar-width);
}


/* ---- Sidebar ---- */

.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height) - var(--footer-height));
  background: linear-gradient(
    to bottom,
    var(--sidebar-gradient-start),
    var(--sidebar-gradient-end)
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.sidebar-logo {
  margin: 16px 0 16px;
}

.sidebar-logo img {
  display: block;
  width: 45px;
  height: auto;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.sidebar-nav-item {
  position: relative;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
  border-left: 5px solid transparent;
}

.sidebar-nav-item a img {
  width: 18px;
  height: 18px;
}

.sidebar-nav-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.sidebar-nav-item:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.sidebar-nav-item.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
  border-left: 5px solid var(--color-white);
}

/* ---- line between nav items ---- */
.sidebar-nav-item + .sidebar-nav-item::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* ---- Top bar ---- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--color-white);
  gap: 16px;
  z-index: 20;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ibm-mark img {
  display: block;
  height: 18px;
  width: auto;
}

.app-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

.app-download {
  width: 20px;
  height: 20px;
}

.app-download img {
  width: 100%;
  height: 100%;
}

.app-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 16px;
  color: var(--text-muted);
  white-space: nowrap;
}

.user-separator {
  display: inline-block;
  margin: 0 8px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-avatar img {
  width: 40px;
  height: 40px;
}

.user-name .signout-link {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: 500;
}

.user-name .signout-link:hover {
  color: var(--blue) !important;
  text-decoration: none;
}

.user-name .signout-link:visited,
.user-name .signout-link:active {
  color: inherit;
  text-decoration: none;
}

.user-name .signout-link {
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.user-name .signout-link:hover {
  opacity: 1;
}

.signout-link.is-logging-out {
  pointer-events: none;
  opacity: 0.7;
}

/* ---- Bottom bar ---- */

.bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--footer-bg-color);
  gap: 16px;
  z-index: 20;
}

.bottombar-left {
  margin-left: var(--sidebar-width);
  display: flex;
  align-items: center;
  gap: 32px;
}

.bottombar-left-item {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.16px;
  color: var(--color-white);
}

.bottombar-left-item,
.bottombar-left-item:visited {
  color: var(--footer-item-visited);
  text-decoration: none;
}

.bottombar-left-item:hover,
.bottombar-left-item:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Main content area ---- */

.main-content-wrapper {
  flex: 1;
  overflow: auto;
  margin-left: var(--sidebar-width);
}

.main-content-wrapper.home {
  display: grid;
  grid-template-columns: minmax(0, 1024px) minmax(0, 420px);
  grid-template-rows: 500px auto;
  grid-template-areas:
    "video features"
    "desc  .";
  column-gap: clamp(32px, 10vw, 180px);
  row-gap: 18px;
  align-items: start;
  position: relative;
  padding: clamp(24px, 6vw, 48px) clamp(16px, 6vw, 64px) 64px;
  box-sizing: border-box;
}

.video-content-container {
  grid-area: video;
  height: 100%;
  min-height: 0;
  display: block;
}


.section-title {
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Video card */
.video-card {
  background: var(--video-bg);
  border-radius: 10px;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
    box-shadow: inset 0 0 5px 4px #cccccc;
  background: url(../images/index_First_Frame.png);
}

.video-card > .video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: clamp(48px, 10vw, 64px);
  height: clamp(48px, 10vw, 64px);
  border-radius: 50%;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button::before {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--color-white);
  margin-left: 3px;
}

.section-description {
  grid-area: desc;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
  margin: 0;
  line-height: 1.55;
}

.feature-container {
  grid-area: features;
  height: 100%;
}

.feature-section {
  display: grid;
  gap: 44px;
  height: 100%;
}

.feature-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.feature-icon--gear {
  background-image: url(/public/images/icon-setting-feature.svg);
}

.feature-icon--download {
  background-image: url(/public/images/icon-download-feature.svg);
}

.feature-icon--security {
  background-image: url(/public/images/icon-security-compliant.svg);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--secondaryTextColor);
  line-height: 1.2;
  margin-top: 2px;
}

.feature-desc {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #7a7f88;
}

.home-watermark {
  position: absolute;
  right: 36px;
  bottom: 24px;
  width: 260px;
  height: 260px;
  opacity: 50%;
  background: url(/public/images/icon-lock-watermark.svg) no-repeat;
  background-size: contain;
  background-position: right bottom;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1200px) {
  .main-content-wrapper.home {
    grid-template-columns: 1fr minmax(0, 380px);
    column-gap: 48px;
    grid-template-rows: 460px auto;
  }
}

@media (max-width: 1024px) {
  .main-content-wrapper.home {
    grid-template-columns: 1fr;
    grid-template-rows: 380px auto auto;
    grid-template-areas:
      "video"
      "desc"
      "features";
    row-gap: 18px;
    column-gap: 0;
  }

  .video-content-container {
    height: 100%;
  }

  .feature-container {
    height: auto;
  }

  .feature-section {
    height: auto;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .main-content-wrapper.home {
    grid-template-rows: 300px auto auto;
    padding: 20px 16px 48px;
  }

  .feature-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .feature-icon {
    width: 52px;
    height: 52px;
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-desc {
    font-size: 13px;
  }
}


/* -----------Load Spinner---------- */
.loader {
  background: url(/public/images/loader.svg) no-repeat;
  background-size: 45px;
  background-position: center;
  width: 50px;
  height: 50px;
  margin: 0 auto;
}

.loaderMedium {
  background: url(/public/images/loader.svg) no-repeat;
  background-size: 45px;
  background-position: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
}

.pageLoader {
  padding: 40px 0;
}

/* ---- Responsiveness (without moving sidebar) ---- */

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }

  .app-subtitle {
    display: none;
  }

  .video-content-container {
    padding-inline: 20px;
  }
}

/* On very small screens, shrink sidebar width a bit to free content space */
@media (max-width: 600px) {
  :root {
    --sidebar-width: 52px;
  }

  .sidebar-logo img {
    width: 26px;
  }

  .sidebar-nav-item {
    width: 32px;
    height: 32px;
  }

  .sidebar-nav-item img {
    width: 16px;
    height: 16px;
  }

  .topbar {
    padding: 0 12px;
    min-height: 52px;
  }

  .user-name {
    display: none;
  }

  .section-description {
    margin-top: 24px;
  }
}

@media (max-width: 400px) {
  .app-name {
    font-size: 13px;
  }
}

/* CREDENTIALS PAGE */
.download-page {
  background: var(--page-bg);
  padding: 22px 56px 24px;
  box-sizing: border-box;
}

.download-top, .upload-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 12px;
}

.upload-top{
    padding: 5px 0 17px !important;
}

.download-title, .upload-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0;
}

.download-search {
  position: relative;
  width: min(420px, 45vw);
}

.download-searchIcon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: #9aa4b2;
  pointer-events: none;
}

.download-searchInput{
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--color-white);
  border-radius: 18px;
  padding: 0 12px 0 38px;
  font-size: 12px;
  color: var(--text);
  outline: none;
}

.download-searchInput::placeholder{
  color: #98a2b3;
}

.download-divider{
  height: 1px;
  background: var(--line);
  margin: 0 0 18px;
}

.upload-divider {
  height: 0.5px;
  background: var(--line);
  margin: 0 0 18px;
}


/* No Credentials message */
.noData{
  background: #ffe4a6;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 1px 0 rgba(17, 24, 39, 0.04);
  max-width: 820px;
  margin: 18px auto;
}

.noData-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.45);
  background: rgba(255,255,255,0.35);
  flex: 0 0 auto;
  position: relative;
  margin-top: 2px;
}

.noData-icon::before{
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 22px;
  height: 22px;
  background-color: rgba(15, 23, 42, 0.45);
  -webkit-mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
          mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
}

.noCredential-text{
  flex: 1 1 auto;
  min-width: 0;
}

.noData h3{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.1px;
}

.noData p{
  margin: 6px 0 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Responsive: stack nicely on small screens */
@media (max-width: 640px){
  .noData{
    flex-direction: column;
    align-items: stretch;
  }
  .noData__actions{
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* Responsive */
@media (max-width: 900px){
  .download-search{
    width: min(360px, 52vw);
  }
}

@media (max-width: 560px){
  .download-top{
    flex-direction: column;
    align-items: flex-start;
  }
  .download-search{
    width: 100%;
  }
}

/* simple utility to hide */
.hideDisplay {
  display: none !important;
}

/* NOTIFICATIONS */
.notification{
  width: min(620px, 100%);
  padding: 16px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 220ms ease, opacity 220ms ease;
  font-family: inherit;
}

.notification.show{
  opacity: 1;
  transform: translateX(0);
}
.notification.hide{
  opacity: 0;
  transform: translateX(16px);
}

.notification.success{ background: var(--notification-bg-success); }
.notification.info{ background: var(--notification-bg-info); }
.notification.warning{ background: var(--notification-bg-warning); }
.notification.error{ background: var(--notification-bg-error); }

.notificationIconWrap{
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(15, 23, 42, 0.45);
  background: rgba(255,255,255,0.35);
}

.notificationIcon{
  width: 16px;
  height: 16px;
  background-color: rgba(15, 23, 42, 0.75);
  -webkit-mask: none;
  mask: none;
}

.notificationIcon.success{
  -webkit-mask: url("/public/images/icon-alert-success.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-success.svg") no-repeat center / contain;
}
.notificationIcon.info{
  -webkit-mask: url("/public/images/icon-alert-info.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-info.svg") no-repeat center / contain;
}
.notificationIcon.warning{
  -webkit-mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-warning.svg") no-repeat center / contain;
}
.notificationIcon.error{
  -webkit-mask: url("/public/images/icon-alert-error.svg") no-repeat center / contain;
  mask: url("/public/images/icon-alert-error.svg") no-repeat center / contain;
}

.notificationText{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notificationTitle{
  font-weight: 700;
  font-size: 18px;
  color: rgba(15, 23, 42, 0.92);
  line-height: 1.1;
}

.notificationBody{
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
  line-height: 1.25;
}

.notificationBody, .notificationTitle{
  overflow-wrap: anywhere;
}

/* Close button */
.notificationClose{
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.55);
  display: grid;
  place-items: center;
  padding: 0;
}

.notificationClose:hover{
  color: rgba(15, 23, 42, 0.85);
  background: rgba(255,255,255,0.35);
}

.notification-password-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.notification-password-label{
  white-space: nowrap;
}

.notification-password-value{
  word-break: break-all;
}

.notification-copy-btn{
  padding: 0;
  margin-left: 2px;
  flex: 0 0 auto;
}

/* New Download Page Styles */

.download-content-wrapper {
  animation: fadeSlideIn 0.28s ease;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-content-wrapper {
  max-width: 1080px;
  margin: 36px auto 56px;
  padding: 0 20px;
}

/* Header / hero */
.download-hero {
  margin-bottom: 20px;
  padding: 24px 24px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(14, 91, 191, 0.12);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.download-content-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.download-content-subtitle {
  font-size: 14px;
  color: var(--download-text-muted);
  margin-top: -8px;
  margin-bottom: 24px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.download-meta-pill {
  min-width: 170px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
}

.download-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--card-text);
  margin-bottom: 4px;
}

.download-meta-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--download-text);
  word-break: break-word;
}

/* List shell */
.file-list-shell {
  background: var(--color-white);
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.file-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #edf2f7;
  background: #fbfcfe;
}

.file-list-header-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.file-list-header-subtext {
  font-size: 13px;
  color: #6b7280;
}

/* Rows */

.file-list-container {
  padding: 8px 8px 8px 14px;
}

.file-list-container {
  position: relative;
  background: var(--download-surface);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 28px;
}

.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.file-row + .file-row {
  margin-top: 6px;
}

.file-row:hover {
  background: var(--download-blue-soft);
  border-color: rgba(51, 166, 234, 0.18);
  box-shadow: 0 2px 10px rgba(51, 166, 234, 0.08);
  transform: translateY(-1px);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.file-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef5ff;
  border: 1px solid #dbe9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.file-icon {
  width: 22px;
  height: 22px;
  background-image: url('/public/images/icon-file.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.file-text {
  min-width: 0;
}

.file-name {
  font-size: 15px;
  color: var(--download-text);
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.file-meta {
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.file-size {
  font-size: 13px;
  color: var(--download-text-muted);
  min-width: 80px;
  text-align: right;
  font-weight: 600;
}

/* Buttons */
.file-download-btn {
  min-width: 116px;
}

.download-all-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.download-all-btn {
  min-width: 220px;
  height: 40px;
  font-size: 14px;
  padding: 0 22px;
}

/* Existing button base */

.btnPrimary {
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--download-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(51, 166, 234, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btnPrimary:hover {
  background: var(--download-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(51, 166, 234, 0.22);
}

.btnPrimary:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.btnPrimary::before {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url(/public/images/icon-download.svg) no-repeat center / contain;
  mask: url(/public/images/icon-download.svg) no-repeat center / contain;
  flex: 0 0 auto;
}

.btnLoading {
  position: relative;
  color: transparent;
  cursor: not-allowed;
  pointer-events: none;
}

.btnLoading::before {
  opacity: 0;
}

.btnLoading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  -webkit-mask: url(/public/images/loader.svg) no-repeat center / contain;
  mask: url(/public/images/loader.svg) no-repeat center / contain;
}

/* Responsive */
@media (max-width: 768px) {
  .download-content-wrapper {
    margin-top: 24px;
    padding: 0 14px;
  }

  .download-hero {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .download-content-title {
    font-size: 22px;
  }

  .file-list-header {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .file-list-container {
    padding: 6px;
  }

  .file-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .file-actions {
    width: 100%;
    justify-content: space-between;
  }

  .file-size {
    min-width: auto;
    text-align: left;
  }

  .file-download-btn {
    min-width: 120px;
  }

  .download-all-wrapper {
    margin-top: 18px;
  }

  .download-all-btn {
    width: 100%;
    min-width: 0;
  }
}