:root {
  --ink: #18212f;
  --muted: #687385;
  --line: #e0e5ec;
  --canvas: #f4f6f8;
  --white: #fff;
  --blue: #2869d8;
  --blue-dark: #1c52b0;
  --blue-soft: #edf3ff;
  --green: #187654;
  --green-soft: #e9f5ef;
  --amber: #9b681e;
  --amber-soft: #fff4df;
  --red: #a63d35;
}

@font-face {
  font-family: "UTM Colossalis";
  src: url("fontsys/UTM%20Colossalis.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; background: var(--canvas); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font: 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.shop-shell { min-height: 100vh; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 48px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.brand-copy strong { display: block; font-size: 13px; line-height: 1.2; font-weight: 750; }
.brand-copy small { display: block; margin-top: 3px; color: var(--blue); font-size: 9px; font-weight: 750; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid #e1e6ed;
  border-radius: 6px;
  background: #f3f5f8;
}
.desktop-nav a {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #536071;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.desktop-nav a:hover { color: var(--blue-dark); background: #fff; }
.desktop-nav a[aria-current="page"] {
  border-color: #dce2ea;
  background: #fff;
  color: var(--blue-dark);
  box-shadow: 0 1px 3px rgb(25 43 71 / 10%);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.runtime { display: flex; align-items: center; gap: 7px; color: #536071; font-size: 11px; }
.status-dot, .pill-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #239164; }
.status-dot { box-shadow: 0 0 0 0 rgb(35 145 100 / 35%); animation: status-pulse 2.4s ease-out infinite; }
@keyframes status-pulse {
  70%, 100% { box-shadow: 0 0 0 7px rgb(35 145 100 / 0%); }
}
.auth-actions { display: flex; align-items: center; gap: 7px; }
.auth-user-actions { align-items: center; gap: 9px; min-height: 44px; padding: 5px 6px 5px 9px; border: 1px solid #e2e7ee; border-radius: 6px; background: #f8f9fb; }
.auth-user-actions .avatar { width: 27px; height: 27px; flex: 0 0 27px; border: 0; background: #e7eefb; color: var(--blue-dark); }
.auth-user-actions .user-name { max-width: 110px; overflow: hidden; color: #344054; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.auth-user-actions .account-balance { margin-left: -3px; color: var(--green); font-size: 10px; font-weight: 700; white-space: nowrap; }
.account-divider { width: 1px; height: 22px; margin: 0 1px; background: #dfe4eb; }
.auth-user-actions .ghost-button { min-height: 30px; height: 30px; padding: 0 9px; background: #fff; }
.auth-user-actions .account-admin { display: inline-flex; align-items: center; justify-content: center; border-color: #d5e2fa; color: var(--blue-dark); }
.auth-user-actions .account-logout { border-color: transparent; background: transparent; color: #667085; }
.auth-user-actions .account-logout:hover { border-color: #e2e7ee; background: #fff; color: var(--ink); }
.ghost-button, .solid-button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d6dce5;
  border-radius: 4px;
  background: #fff;
  color: #475366;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.ghost-button:hover { border-color: #aebbd0; background: #f8faff; }
.solid-button { border-color: var(--blue); background: var(--blue); color: #fff; }
.solid-button:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 11px; font-weight: 750; }
.user-name { max-width: 120px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.account-balance { color: var(--green); font-size: 11px; font-weight: 750; white-space: nowrap; }

.notice-bar {
  min-height: 32px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf3fa;
  color: #526276;
  font-size: 10px;
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 360px;
  padding: 54px 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #17172b url("../image/backround.png") center 43% / cover no-repeat;
}
.hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgb(11 14 28 / 18%);
  content: "";
}
.hero #hero-scene { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding-right: 52%;
  color: #fff;
  animation: content-enter .7s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes content-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 3px;
  background: rgb(15 21 36 / 40%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.hero .pill-dot { background: #45cf91; }
.hero .pill-dot { box-shadow: 0 0 0 0 rgb(69 207 145 / 45%); animation: status-pulse 2.4s ease-out infinite; }
.hero h1 { max-width: 700px; margin: 17px 0 9px; color: #fff; font-size: 38px; line-height: 1.12; font-weight: 800; text-shadow: 0 2px 15px rgb(0 0 0 / 42%); overflow-wrap: anywhere; }
.hero h1, .plans-heading h2, .intro h2, .link-check-heading h2, .admin-heading h1 { font-family: "UTM Colossalis", Inter, ui-sans-serif, sans-serif; }
.hero p { max-width: 510px; margin: 0; color: #edf1f7; font-size: 14px; line-height: 1.6; }
.hero-actions { min-height: 40px; margin-top: 20px; display: flex; align-items: center; gap: 17px; }
.primary-button {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #397be6;
  border-radius: 4px;
  background: #2869d8;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}
.primary-button:hover { border-color: #5d94ee; background: #1c52b0; }
.primary-button, .solid-button, .plan-button, .process-button, .download-button, .auth-submit {
  transition: transform .18s ease, box-shadow .18s ease, color .15s ease, background .15s ease, border-color .15s ease;
}
.primary-button:hover, .solid-button:hover, .plan-button:hover, .download-button:hover, .auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 13px rgb(24 33 47 / 14%);
}
.primary-button:active, .solid-button:active, .plan-button:active, .process-button:active:not(:disabled), .download-button:active, .auth-submit:active:not(:disabled) {
  transform: translateY(0) scale(.98);
}
.primary-button svg { width: 15px; height: 15px; }
.format-note { display: flex; align-items: center; gap: 8px; color: #e0e7f0; font-size: 10px; font-weight: 700; }
.format-note i { width: 3px; height: 3px; border-radius: 50%; background: #aeb8c7; }

.content-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.tool-tabs { display: none; }
.tool-tab { min-height: 36px; padding: 0 14px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #596578; display: inline-flex; align-items: center; justify-content: center; font-family: "UTM Colossalis", Inter, ui-sans-serif, sans-serif; font-size: 11px; font-weight: 700; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.tool-tab:hover { color: var(--ink); }
.tool-tab.is-active { border-color: #dce2ea; background: #fff; color: var(--blue-dark); box-shadow: 0 1px 3px rgb(25 43 71 / 10%); }
.tool-panel[hidden] { display: none !important; }
.plans-section, .workspace, .site-footer { animation: section-enter .65s cubic-bezier(.2,.75,.25,1) both; }
.workspace { animation-delay: .08s; }
@keyframes section-enter {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
.plans-section { margin-top: 8px; padding: 10px 12px; border: 1px solid #dce4ef; border-radius: 6px; background: rgb(255 255 255 / 58%); box-shadow: 0 2px 8px rgb(24 33 47 / 3%); }
.plans-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.plans-heading > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; row-gap: 2px; }
.plans-heading .eyebrow { flex-basis: 100%; margin: 0; color: var(--blue); font-size: 8px; font-weight: 800; }
.plans-heading h2 { margin: 0; font-size: 16px; line-height: 1.25; }
.plans-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.plans-heading-actions { display: flex; align-items: center; gap: 8px; }
.account-plan { padding: 7px 10px; border: 1px solid #d7dfe9; border-radius: 4px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 650; }
.plans-toggle { min-height: 32px; padding: 0 9px; border: 1px solid #cbd7e8; border-radius: 4px; background: #fff; color: var(--blue-dark); display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgb(40 105 216 / 9%); animation: plans-nudge 2.8s ease-in-out infinite; transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.plans-toggle:hover { border-color: #9bb6df; background: var(--blue-soft); box-shadow: 0 3px 10px rgb(40 105 216 / 15%); animation: none; }
.plans-toggle svg { width: 14px; height: 14px; transition: transform .2s ease; }
.plans-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.plans-content { padding-top: 8px; transform-origin: top; animation: plans-reveal .34s cubic-bezier(.2,.75,.25,1) both; }
.plans-content[hidden] { display: none; }
.processing-quota { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.processing-quota[data-unlimited="true"] { color: var(--green); font-weight: 650; }
@keyframes plans-reveal { from { opacity: 0; transform: translateY(-9px) scaleY(.97); filter: blur(2px); } to { opacity: 1; transform: translateY(0) scaleY(1); filter: blur(0); } }
@keyframes plans-nudge { 0%, 78%, 100% { box-shadow: 0 2px 6px rgb(40 105 216 / 9%); } 86% { box-shadow: 0 0 0 4px rgb(40 105 216 / 9%), 0 3px 10px rgb(40 105 216 / 14%); } }
@media (prefers-reduced-motion: reduce) {
  .plans-toggle, .plans-content { animation: none; }
}
.plan-list { margin-top: 11px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.plan-item {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e0e5ec;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(24 33 47 / 3%);
  transform-style: preserve-3d;
  transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease;
  animation: plan-arrive .85s cubic-bezier(.2,.8,.25,1) both;
}
.plan-item:nth-child(2) { animation-delay: .08s; }
.plan-item:nth-child(3) { animation-delay: .16s; }
.plan-item.is-entered { animation: none; }
@keyframes plan-arrive {
  from { opacity: 0; transform: perspective(850px) translateY(24px) rotateX(12deg) rotateY(-5deg); }
  to { opacity: 1; transform: perspective(850px) translateY(0) rotateX(0) rotateY(0); }
}
.plan-item:hover {
  transform: perspective(850px) translateY(-6px) rotateX(4deg) rotateY(-3deg);
  border-color: #b6c9e7;
  box-shadow: 0 10px 24px rgb(33 58 94 / 10%);
}
.plan-item:hover .plan-price { transform: translateZ(18px); }
.plan-item h3 { margin: 0 0 3px; font-size: 11px; }
.plan-item { text-align: center; }
.plan-item h3 { font-family: "UTM Colossalis", Inter, ui-sans-serif, sans-serif; }
.plan-price { display: block; color: var(--ink); font-size: 17px; line-height: 1.25; }
.plan-item p { margin: 2px 0 7px; color: var(--muted); font-size: 9px; }
.plan-button { min-height: 29px; padding: 0 9px; border: 1px solid #b9ccef; border-radius: 4px; background: #fff; color: var(--blue-dark); font-size: 9px; font-weight: 700; cursor: pointer; }
.plan-button:hover { border-color: var(--blue); background: var(--blue-soft); }
.plan-button[data-plan-active="true"] { border-color: #b9dfca; background: var(--green-soft); color: var(--green); }
.plan-button[data-plan-active="true"]:hover { border-color: var(--green); }
.plan-notice { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.workspace {
  padding-top: 34px;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(390px, 1.12fr);
  column-gap: 52px;
  row-gap: 14px;
  align-content: start;
}
.link-check { padding: 0 0 42px; }
.link-check-heading { position: relative; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 12px 22px; border: 1px solid #d9e3f1; border-radius: 6px; background: #fff; text-align: center; box-shadow: 0 3px 12px rgb(24 33 47 / 4%); }
.link-check-heading::before { position: absolute; top: -1px; left: 50%; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--blue); content: ""; transform: translateX(-50%); }
.link-check-heading h2 { margin: 0; color: var(--ink); font-size: 20px; line-height: 1.25; }
.link-check-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.link-check-form { margin-top: 15px; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 9px; }
.link-check-form input { width: 100%; min-width: 0; height: 43px; padding: 0 12px; border: 1px solid #cbd4e0; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.link-check-form input:focus { border-color: var(--blue); outline: 2px solid rgb(47 105 216 / 14%); }
.link-check-form .process-button { margin: 0; }
.link-check-message { margin-top: 12px; padding: 10px 12px; border: 1px solid #efd4d1; border-radius: 5px; background: #fff8f7; color: var(--red); font-size: 11px; }
.video-metadata:not([hidden]) { margin: 14px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; display: grid; grid-template-columns: minmax(120px, .35fr) 1fr; gap: 8px 16px; animation: panel-enter .24s ease-out both; }
.video-metadata dt { color: var(--muted); font-size: 10px; }
.video-metadata dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 650; }
.video-metadata .metadata-caption { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; font-weight: 450; }
.video-thumbnail:not([hidden]) { width: min(100%, 220px); max-height: 300px; margin-top: 14px; border: 1px solid var(--line); border-radius: 4px; background: #e9edf2; object-fit: contain; object-position: center; animation: panel-enter .24s ease-out both; }
.trim-tool { padding: 0 0 36px; }
.trim-heading { margin: 0 auto 18px; text-align: center; }
.trim-heading h2 { margin: 0 0 5px; font-family: "UTM Colossalis", Inter, ui-sans-serif, sans-serif; font-size: 22px; }
.trim-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.trim-form { width: min(620px, 100%); margin: 0 auto; padding: 16px; border: 1px solid #dce3ec; border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgb(24 33 47 / 5%); }
.trim-dropzone { position: relative; min-height: 112px; padding: 14px; border: 1px dashed #aebfda; border-radius: 5px; background: #f8faff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: var(--ink); cursor: pointer; text-align: center; }
.trim-dropzone:focus-within { outline: 2px solid rgb(47 105 216 / 16%); }
.trim-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.trim-file-icon { width: 30px; height: 30px; margin-bottom: 2px; border-radius: 5px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.trim-file-icon svg { width: 17px; height: 17px; }
.trim-dropzone strong { font-size: 11px; }
.trim-dropzone small { color: var(--muted); font-size: 9px; }
.trim-preview:not([hidden]) { display: block; width: 100%; max-height: 260px; margin-top: 12px; border-radius: 4px; background: #111; }
.trim-timeline { position: relative; height: 30px; margin: 8px 9px 0; --trim-from: 0%; --trim-span: 100%; }
.trim-timeline[hidden] { display: none; }
.trim-track { position: absolute; top: 2px; right: 0; left: 0; height: 22px; overflow: hidden; border-radius: 4px; background-color: #e4e9f0; background-image: var(--trim-filmstrip); background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.trim-selected { position: absolute; top: 0; bottom: 0; left: var(--trim-from); width: var(--trim-span); border: 2px solid var(--blue); border-top: 0; border-bottom: 0; background: rgb(40 105 216 / 22%); }
.trim-timeline input[type="range"] { position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; appearance: none; background: transparent; pointer-events: none; }
.trim-timeline input[type="range"]::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.trim-timeline input[type="range"]::-moz-range-track { height: 5px; background: transparent; }
.trim-timeline input[type="range"]::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; appearance: none; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 4px rgb(24 33 47 / 25%); pointer-events: auto; cursor: ew-resize; }
.trim-timeline input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 4px rgb(24 33 47 / 25%); pointer-events: auto; cursor: ew-resize; }
.trim-timeline input[type="range"]:focus-visible { outline: none; }
.trim-timeline input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgb(40 105 216 / 20%); }
.trim-timeline input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgb(40 105 216 / 20%); }
.trim-time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.trim-time-grid label { display: grid; gap: 5px; color: #566174; font-size: 10px; font-weight: 650; }
.trim-time-grid input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #cbd4e0; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.trim-time-grid input:focus { border-color: var(--blue); outline: 2px solid rgb(47 105 216 / 14%); }
.trim-duration, .trim-note { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.trim-submit { width: 100%; margin-top: 12px; }
.trim-message { width: min(620px, 100%); margin: 12px auto 0; padding: 10px 12px; border: 1px solid #efd4d1; border-radius: 5px; background: #fff8f7; color: var(--red); font-size: 11px; }
.trim-result:not([hidden]) { width: min(620px, 100%); margin: 12px auto 0; padding: 10px 12px; border: 1px solid #cce5d7; border-radius: 5px; background: #f2faf5; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--green); font-size: 11px; font-weight: 650; }
.trim-note { width: min(620px, 100%); margin: 9px auto 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.intro { grid-column: 1; grid-row: 1 / span 4; align-self: center; padding: 10px 0; }
.intro h2 { margin: 0 0 9px; color: var(--ink); font-size: 25px; line-height: 1.2; font-weight: 780; }
.subtitle { max-width: 40ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.feature-list { margin-top: 22px; display: grid; gap: 13px; }
.feature-list > div { display: flex; align-items: center; gap: 10px; }
.feature-mark { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 4px; font-size: 8px; font-weight: 800; }
.feature-mark--blue { background: var(--blue-soft); color: var(--blue-dark); }
.feature-mark--green { background: var(--green-soft); color: var(--green); }
.feature-mark--amber { background: var(--amber-soft); color: var(--amber); }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { font-size: 11px; font-weight: 700; }
.feature-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }

#upload-form, .progress-panel, .message, .result-panel { grid-column: 2; }
#upload-form { padding: 14px; border: 1px solid #dde3eb; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px rgb(28 43 66 / 6%); }
.dropzone {
  width: 100%;
  min-height: 202px;
  padding: 25px 18px;
  border: 1px dashed #9aabc2;
  border-radius: 4px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dropzone:hover, .dropzone.is-over {
  transform: translateY(-1px);
  border-color: var(--blue);
  background: #f1f6ff;
  box-shadow: inset 0 0 0 1px rgb(40 105 216 / 8%);
}
.upload-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  transition: transform .2s ease;
}
.dropzone:hover .upload-icon, .dropzone.is-over .upload-icon { transform: translateY(-3px); }
.upload-icon svg { width: 22px; height: 22px; }
.drop-title { font-size: 13px; font-weight: 700; }
.drop-hint { color: var(--muted); font-size: 11px; }
.drop-meta { margin-top: 7px; color: #78869a; font-size: 9px; }
.file-row { min-height: 58px; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: #f8fafc; display: flex; align-items: center; gap: 10px; }
.file-row:not([hidden]), .progress-panel:not([hidden]), .result-panel:not([hidden]), .message:not([hidden]) { animation: panel-enter .24s ease-out both; }
@keyframes panel-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.file-type { min-width: 40px; min-height: 30px; padding: 0 5px; border-radius: 3px; background: var(--blue-soft); color: var(--blue-dark); display: grid; place-items: center; font-size: 8px; font-weight: 800; }
.file-details { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.file-details strong { overflow: hidden; color: var(--ink); font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.file-details small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.icon-button { width: 30px; height: 30px; flex: 0 0 30px; padding: 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: #eaf0f8; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.process-button {
  width: 100%;
  min-height: 43px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.process-button:hover:not(:disabled) { border-color: #105c40; background: #105c40; }
.process-button:disabled { border-color: #cfd8d2; background: #e9eeeb; color: #748078; cursor: not-allowed; }
.process-button .button-arrow { width: 16px; height: 16px; }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgb(255 255 255 / 45%); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.process-button.is-busy .button-spinner { display: block; }
.process-button.is-busy .button-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-panel { padding: 13px 14px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.progress-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; }
.progress-heading strong { font-weight: 700; }
.progress-heading span { color: var(--blue); font-variant-numeric: tabular-nums; }
.progress-track { height: 5px; margin-top: 9px; overflow: hidden; border-radius: 5px; background: #e8edf4; }
.progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .2s ease; }
.progress-panel[hidden] { display: none; }
.progress-panel:not([hidden]) .progress-fill { background-image: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / 35%) 50%, transparent 75%); background-size: 220% 100%; animation: progress-sheen 1.8s linear infinite; }
@keyframes progress-sheen { to { background-position: -220% 0; } }
.progress-panel p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.message { padding: 10px 12px; border: 1px solid #efd4d1; border-radius: 5px; background: #fff8f7; color: var(--red); font-size: 11px; }
.result-panel { padding: 11px 12px; border: 1px solid #cfe7d9; border-radius: 5px; background: #f4faf6; display: flex; align-items: center; gap: 10px; }
.result-check { width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center; border-radius: 50%; background: #dcefe4; color: var(--green); }
.result-check svg { width: 16px; height: 16px; }
.result-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.result-copy strong { font-size: 10px; font-weight: 700; }
.result-copy span { color: var(--muted); font-size: 9px; }
.download-button { min-height: 32px; padding: 0 10px; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.download-button:hover { background: #105c40; }
.download-button svg { width: 15px; height: 15px; }

.site-footer { width: min(1180px, calc(100% - 48px)); min-height: 76px; margin: 0 auto; padding: 14px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 9px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark { width: 29px; height: 29px; flex-basis: 29px; font-size: 9px; }
.footer-brand strong { color: var(--ink); font-size: 10px; }
.footer-brand p { margin: 2px 0 0; font-size: 9px; }
.social-footer { width: 100%; padding: 4px 24px 14px; background: var(--canvas); }
.social-links { width: min(100%, 900px); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.social-link { min-width: 104px; min-height: 40px; padding: 0 11px; border: 1px solid #dce2e9; border-radius: 6px; background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-family: "UTM Colossalis", Inter, ui-sans-serif, sans-serif; font-size: 11px; font-weight: 700; transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.social-link:hover { transform: translateY(-2px); border-color: #bdc9d8; background: #fff; box-shadow: 0 4px 12px rgb(24 33 47 / 8%); }
.social-link[aria-disabled="true"] { cursor: default; }
.social-link[aria-disabled="true"]:hover { transform: none; border-color: #dce2e9; box-shadow: none; }
.social-link svg { width: 17px; height: 17px; flex: 0 0 17px; }
.social-link--youtube svg { color: #ff1616; }
.social-link--discord svg { color: #6675f5; }
.social-link--telegram svg { color: #29a9e8; }
.social-link--zalo svg { color: #1685f8; }

.modal { position: fixed; z-index: 50; inset: 0; padding: 16px; background: rgb(18 27 42 / 56%); display: grid; place-items: center; animation: modal-fade .18s ease-out both; }
.auth-card { position: relative; width: min(100%, 400px); max-height: calc(100vh - 32px); overflow: auto; padding: 25px; border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; box-shadow: 0 20px 55px rgb(28 47 80 / 22%); }
.auth-card { animation: modal-rise .24s cubic-bezier(.2,.75,.25,1) both; }
.purchase-dialog { width: min(100%, 420px); padding: 25px; border: 1px solid #dce4ee; border-radius: 6px; background: #fff; box-shadow: 0 20px 55px rgb(28 47 80 / 22%); animation: modal-rise .24s cubic-bezier(.2,.75,.25,1) both; }
.purchase-dialog-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 18px; font-weight: 800; }
.purchase-dialog h2 { margin: 14px 0 5px; font-size: 18px; line-height: 1.3; }
.purchase-dialog p { margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.purchase-dialog .solid-button { min-width: 90px; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.modal-close:hover { background: #f0f4fa; color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 4px; background: #eef2f8; }
.tab { min-height: 31px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 650; cursor: pointer; }
.tab.is-active { background: #fff; color: var(--blue-dark); box-shadow: 0 1px 3px rgb(25 43 71 / 12%); }
.auth-card h2 { margin: 18px 0 4px; font-size: 20px; line-height: 1.3; }
.auth-sub { margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 650; }
.field input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: #fbfcff; color: var(--ink); font: inherit; font-size: 11px; }
.field input:focus { border-color: var(--blue); outline: 2px solid rgb(47 105 216 / 14%); }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 54px; }
.pass-toggle { position: absolute; top: 4px; right: 4px; height: 31px; padding: 0 8px; border: 0; border-radius: 3px; background: transparent; color: var(--blue-dark); font-size: 9px; font-weight: 650; cursor: pointer; }
.pass-toggle:hover { background: var(--blue-soft); }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.auth-error { margin-bottom: 11px; padding: 9px 10px; border: 1px solid #efd4d1; border-radius: 4px; background: #fff8f7; color: var(--red); font-size: 10px; line-height: 1.5; }
.auth-submit { width: 100%; min-height: 40px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.auth-submit:hover:not(:disabled) { border-color: var(--blue-dark); background: var(--blue-dark); }
.auth-submit:disabled { opacity: .65; cursor: wait; }

.desktop-nav a, .ghost-button, .solid-button, .plan-button, .primary-button, .process-button, .download-button, .pass-toggle, .modal-close { transition: color .15s ease, background .15s ease, border-color .15s ease; }

.admin-main { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 60px; }
.admin-heading { padding-bottom: 18px; }
.admin-heading .eyebrow { margin-bottom: 4px; }
.admin-heading h1 { margin: 0; font-size: 24px; line-height: 1.25; }
.admin-section { padding: 21px 0; border-top: 1px solid var(--line); }
.admin-section h2 { margin: 0 0 15px; font-size: 15px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.admin-form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; }
.admin-form-grid input { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font: inherit; }
.admin-form-grid input:focus { border-color: var(--blue); outline: 2px solid rgb(47 105 216 / 14%); }
.admin-status { min-height: 22px; margin: 2px 0; color: var(--green); font-size: 12px; }
.request-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.request-heading h2 { margin-bottom: 4px; }
.request-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.request-tools { display: flex; align-items: center; gap: 8px; }
.request-tools select { height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 11px; }
.request-list { margin-top: 10px; }
.request-row { min-width: 0; padding: 13px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.request-details { min-width: 0; flex: 1; display: grid; gap: 3px; }
.request-details strong { overflow-wrap: anywhere; font-size: 12px; }
.request-details span { color: var(--muted); font-size: 10px; }
.request-status { padding: 4px 7px; border-radius: 3px; background: #f1f3f6; color: #586475; font-size: 9px; font-weight: 700; white-space: nowrap; }
.request-status.is-pending { background: var(--amber-soft); color: var(--amber); }
.request-status.is-approved { background: var(--green-soft); color: var(--green); }
.request-status.is-rejected { background: #fff0ee; color: var(--red); }
.request-actions { display: flex; align-items: center; gap: 6px; }
.request-actions .solid-button, .request-actions .ghost-button { min-height: 31px; font-size: 10px; }

@media (max-width: 820px) {
  .header-inner { width: min(100% - 32px, 680px); min-height: 62px; gap: 14px; }
  .desktop-nav { display: flex; margin-left: auto; }
  .runtime { display: none; }
  .content-section, .site-footer { width: min(100% - 32px, 680px); }
  .tool-tabs { margin-top: 4px; }
  .plan-list { gap: 9px; }
  .plan-item { padding: 10px; }
  .workspace { grid-template-columns: 1fr; row-gap: 17px; padding-top: 27px; padding-bottom: 12px; }
  .intro { grid-column: 1; grid-row: auto; padding: 0; }
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
  .feature-list > div { align-items: flex-start; gap: 7px; }
  .feature-mark { width: 25px; height: 25px; flex-basis: 25px; }
  .feature-list small { line-height: 1.35; }
  #upload-form, .progress-panel, .message, .result-panel { grid-column: 1; }
}
@media (max-width: 560px) {
  .header-inner, .content-section, .site-footer { width: calc(100% - 24px); }
  .social-footer { padding: 4px 12px 12px; }
  .social-links { gap: 7px; }
  .social-link { min-width: 0; min-height: 38px; flex: 1 1 calc(50% - 7px); padding: 0 8px; font-size: 10px; }
  .tool-tab { flex: 1; padding: 0 8px; }
  .header-inner { min-height: 58px; height: auto; gap: 7px 8px; flex-wrap: wrap; padding: 7px 0; }
  .brand { order: 1; }
  .header-actions { order: 2; margin-left: auto; }
  .desktop-nav { order: 3; flex-basis: 100%; justify-content: center; }
  .brand { gap: 7px; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 8px; }
  .desktop-nav { gap: 1px; padding: 3px; }
  .desktop-nav a { min-height: 30px; padding: 0 7px; font-size: 9px; }
  .header-actions { gap: 0; }
  .auth-actions { gap: 4px; }
  .ghost-button, .solid-button { min-height: 30px; padding: 0 7px; font-size: 9px; }
  .auth-user-actions { min-height: 38px; gap: 5px; padding: 4px; }
  .auth-user-actions .user-name { max-width: 64px; }
  .auth-user-actions .account-balance { font-size: 9px; }
  .account-divider { height: 18px; }
  .auth-user-actions .ghost-button { min-height: 28px; height: 28px; padding: 0 6px; }
  .notice-bar { min-height: 34px; padding: 6px 12px; font-size: 8px; line-height: 1.4; }
  .hero { min-height: 320px; padding: 38px 20px; }
  .hero::before { background: rgb(11 14 28 / 28%); }
  .hero #hero-scene { opacity: .78; }
  .hero-content { padding-right: 0; }
  .hero h1 { max-width: 12ch; font-size: 30px; }
  .hero p { max-width: 34ch; font-size: 12px; }
  .hero-actions { gap: 12px; flex-wrap: wrap; margin-top: 17px; }
  .plans-section { margin-top: 6px; padding: 9px; }
  .plans-heading { gap: 8px; }
  .plans-heading p { flex-basis: 100%; }
  .plans-heading-actions { gap: 5px; }
  .plans-toggle { min-height: 30px; padding: 0 8px; }
  .account-plan { max-width: 42%; padding: 6px 7px; text-align: right; }
  .plans-heading { align-items: flex-start; }
  .plans-heading h2 { font-size: 18px; }
  .plans-heading p { max-width: 34ch; }
  .account-plan { max-width: 42%; text-align: right; }
  .plan-list { grid-template-columns: 1fr; gap: 8px; }
  .plan-item { padding: 10px; }
  .workspace { padding-top: 22px; padding-bottom: 10px; }
  .link-check { padding-bottom: 30px; }
  .link-check-form { grid-template-columns: 1fr; }
  .video-metadata:not([hidden]) { grid-template-columns: 1fr; gap: 3px; }
  .video-metadata dd { margin-bottom: 8px; }
  .trim-form { padding: 11px; }
  .trim-time-grid { gap: 8px; }
  .trim-result:not([hidden]) { align-items: flex-start; flex-direction: column; }
  .intro h2 { font-size: 22px; }
  .subtitle { font-size: 11px; }
  .feature-list { grid-template-columns: 1fr; gap: 9px; margin-top: 14px; }
  .feature-list > div { align-items: center; }
  #upload-form { padding: 10px; }
  .dropzone { min-height: 180px; padding: 20px 12px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 9px; padding: 14px 0 18px; }
  .admin-main { width: calc(100% - 28px); padding-top: 24px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .request-heading { align-items: flex-start; flex-direction: column; }
  .request-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .request-actions { width: 100%; }
  .request-actions button { flex: 1; }
  .auth-card { padding: 21px 18px; }
  .result-panel { flex-wrap: wrap; }
  .download-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  * { scroll-behavior: auto !important; }
}

/* Polished visual system */
:root {
  --ink: #14233b;
  --muted: #60718a;
  --line: #dce5f1;
  --canvas: #f3f6fc;
  --white: #fff;
  --blue: #3868f5;
  --blue-dark: #244cc8;
  --blue-soft: #edf2ff;
  --green: #087c69;
  --green-soft: #e8f7f1;
  --amber: #9b6111;
  --amber-soft: #fff5e5;
  --red: #b33c4b;
  --shadow-card: 0 18px 48px rgb(31 56 102 / 8%), 0 2px 8px rgb(31 56 102 / 4%);
}

body {
  background:
    radial-gradient(ellipse at 12% 42%, rgb(221 232 255 / 62%), transparent 37rem),
    radial-gradient(ellipse at 92% 76%, rgb(227 239 255 / 55%), transparent 34rem),
    var(--canvas);
}

.site-header {
  border-bottom-color: rgb(215 226 241 / 80%);
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 5px 24px rgb(29 52 92 / 5%);
  backdrop-filter: blur(18px) saturate(145%);
}

.header-inner { min-height: 72px; gap: 30px; }
.brand { gap: 11px; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #5285ff, #3158dd 64%, #243db7);
  box-shadow: 0 7px 16px rgb(56 104 245 / 28%), inset 0 1px 0 rgb(255 255 255 / 35%);
  font-size: 12px;
}
.brand-copy strong { color: #172842; font-size: 14px; letter-spacing: -.02em; }
.brand-copy small { color: #5474d7; font-size: 9px; letter-spacing: .13em; }

.desktop-nav {
  gap: 4px;
  padding: 5px;
  border-color: #e5ebf4;
  border-radius: 12px;
  background: #f6f8fc;
}
.desktop-nav a { min-height: 38px; padding-inline: 14px; border-radius: 9px; font-size: 12px; }
.desktop-nav a[aria-current="page"] {
  border-color: #e2eaff;
  color: #244cc8;
  box-shadow: 0 2px 7px rgb(31 56 102 / 9%);
}
.ghost-button, .solid-button { min-height: 38px; padding-inline: 14px; border-radius: 10px; font-size: 12px; }
.ghost-button { border-color: #dce5f1; color: #334662; }
.solid-button, .auth-submit {
  border-color: #3868f5;
  background: linear-gradient(135deg, #4b7dff, #315ce4 70%, #294fd0);
  box-shadow: 0 6px 15px rgb(56 104 245 / 20%);
}
.solid-button:hover, .auth-submit:hover:not(:disabled) {
  border-color: #244cc8;
  background: linear-gradient(135deg, #3b6df1, #244cc8);
  box-shadow: 0 9px 20px rgb(56 104 245 / 27%);
}
.auth-user-actions { border-radius: 12px; background: #f7f9fd; }
.auth-user-actions .avatar { border-radius: 9px; }

.notice-bar {
  min-height: 36px;
  border-bottom: 1px solid #e3ebf5;
  background: linear-gradient(90deg, #eef5ff, #f7faff 48%, #edf7ff);
  color: #526984;
  font-size: 11px;
}

.hero {
  min-height: 430px;
  padding-block: 70px;
  background-color: #101a39;
  background-position: center 46%;
}
.hero::before {
  background: linear-gradient(105deg, rgb(9 17 42 / 90%) 0%, rgb(14 24 56 / 79%) 43%, rgb(17 28 66 / 35%) 100%);
}
.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(ellipse at 28% 80%, rgb(49 116 255 / 20%), transparent 40%),
    radial-gradient(ellipse at 78% 10%, rgb(123 83 255 / 18%), transparent 38%);
  content: "";
  pointer-events: none;
  animation: hero-glow 16s ease-in-out infinite alternate;
}
@keyframes hero-glow {
  from { opacity: .55; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}
.hero-content { padding-right: 48%; }
.hero-pill {
  padding: 7px 12px;
  border-color: rgb(183 207 255 / 30%);
  border-radius: 999px;
  background: rgb(14 29 67 / 52%);
  color: #dce8ff;
  font-size: 10px;
  letter-spacing: .1em;
  backdrop-filter: blur(10px);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(38px, 4.3vw, 58px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-shadow: 0 4px 24px rgb(0 0 0 / 36%);
}
.hero p { max-width: 48ch; color: #dce6f8; font-size: 15px; line-height: 1.75; }
.hero-actions { margin-top: 26px; }
.primary-button {
  min-height: 46px;
  padding-inline: 18px;
  border: 1px solid rgb(167 195 255 / 55%);
  border-radius: 12px;
  background: linear-gradient(135deg, #5285ff, #315ee8 68%, #3150d2);
  box-shadow: 0 10px 24px rgb(37 86 214 / 30%);
  font-size: 12px;
}
.primary-button:hover { border-color: #c8d8ff; background: linear-gradient(135deg, #6593ff, #3155d6); }
.format-note { color: #d5e0f4; font-size: 11px; }

.plans-section {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  padding: 20px 22px;
  border-color: #e0e8f4;
  border-radius: 18px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}
.plans-heading h2 { color: #172842; font-size: 20px; letter-spacing: -.02em; }
.plans-heading .eyebrow { color: #5273d7; font-size: 9px; letter-spacing: .15em; }
.plans-heading p { max-width: 65ch; font-size: 11px; line-height: 1.6; }
.account-plan { border-color: #e0e8f2; border-radius: 9px; background: #f9fbff; font-size: 11px; }
.plans-toggle { min-height: 38px; padding-inline: 12px; border-color: #d7e2fa; border-radius: 10px; background: #f8faff; font-size: 11px; }
.processing-quota { margin-top: 10px; color: #64758d; font-size: 11px; }
.plan-list { gap: 12px; }
.plan-item {
  padding: 18px;
  border-color: #e1e8f2;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, #fbfcff);
  box-shadow: 0 5px 16px rgb(30 53 93 / 5%);
}
.plan-item:nth-child(2) {
  border-color: #b7c9ff;
  background: linear-gradient(155deg, #f5f8ff, #fff 70%);
  box-shadow: 0 8px 23px rgb(56 104 245 / 10%);
}
.plan-item:hover { transform: translateY(-4px); border-color: #b7c9ff; box-shadow: 0 14px 30px rgb(31 56 102 / 12%); }
.plan-item:hover .plan-price { transform: none; }
.plan-item h3 { margin-bottom: 7px; color: #263b5c; font-size: 13px; }
.plan-price { color: #172842; font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
.plan-item p { min-height: 30px; margin: 6px 0 12px; font-size: 10px; line-height: 1.5; }
.plan-button { min-height: 36px; padding-inline: 13px; border-radius: 9px; font-size: 11px; }
.plan-item:nth-child(2) .plan-button { border-color: #3868f5; background: #3868f5; color: #fff; }
.plan-item:nth-child(2) .plan-button:hover { background: #244cc8; }
.plan-notice { font-size: 11px; }

.workspace { padding-top: 44px; column-gap: 64px; }
.intro h2 { margin-bottom: 12px; color: #172842; font-size: 30px; letter-spacing: -.025em; }
.subtitle { color: #5e7089; font-size: 13px; line-height: 1.8; }
.feature-list { gap: 10px; margin-top: 25px; }
.feature-list > div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e2eaf5;
  border-radius: 12px;
  background: rgb(255 255 255 / 74%);
  box-shadow: 0 3px 10px rgb(31 56 102 / 3%);
}
.feature-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; font-size: 9px; }
.feature-list strong { color: #273d5d; font-size: 12px; }
.feature-list small { color: #6a7b92; font-size: 10px; }

#upload-form {
  padding: 18px;
  border-color: #e0e8f3;
  border-radius: 18px;
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--shadow-card);
}
.dropzone {
  min-height: 230px;
  border: 1.5px dashed #a8bbdf;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 0%, #f0f5ff, #f9fbff 70%);
  gap: 7px;
}
.dropzone:hover, .dropzone.is-over {
  transform: translateY(-2px);
  border-color: #5c81ee;
  background: radial-gradient(ellipse at 50% 0%, #e8efff, #f8faff 72%);
  box-shadow: inset 0 0 0 1px rgb(56 104 245 / 10%), 0 9px 22px rgb(56 104 245 / 8%);
}
.upload-icon, .trim-file-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, #5d8bff, #365fe6 68%, #2f4fc8);
  box-shadow: 0 8px 19px rgb(56 104 245 / 24%);
}
.upload-icon svg { width: 24px; height: 24px; }
.drop-title { color: #213654; font-size: 15px; }
.drop-hint { color: #71829b; font-size: 11px; }
.drop-meta { margin-top: 5px; padding: 5px 10px; border-radius: 999px; background: #edf3ff; color: #4564ae; font-size: 10px; }
.process-button {
  min-height: 48px;
  border: 1px solid #3868f5;
  border-radius: 11px;
  background: linear-gradient(135deg, #4b7dff, #315ce4 70%, #294fd0);
  box-shadow: 0 8px 18px rgb(56 104 245 / 20%);
  font-size: 13px;
}
.process-button:hover:not(:disabled) {
  border-color: #244cc8;
  background: linear-gradient(135deg, #3d70f2, #244cc8);
  box-shadow: 0 11px 23px rgb(56 104 245 / 27%);
}
.process-button:disabled { border-color: #e0e6ef; background: #e9edf4; color: #7b8798; box-shadow: none; }
.progress-panel, .message, .result-panel { border-radius: 12px; }
.progress-panel { padding: 16px; border-color: #dfe7f2; box-shadow: 0 5px 16px rgb(31 56 102 / 5%); }
.progress-track { height: 8px; border-radius: 999px; background: #e7edf7; }
.progress-fill { background: linear-gradient(90deg, #4c7dff, #67b5ff); }
.result-panel { padding: 14px; border-color: #ccebe0; background: linear-gradient(120deg, #effaf6, #fafffc); }
.download-button { min-height: 38px; padding-inline: 13px; border-radius: 9px; background: linear-gradient(135deg, #0b9278, #08715f); font-size: 11px; }

.link-check, .trim-tool { padding-bottom: 48px; }
.link-check-heading {
  padding: 18px 26px;
  border-color: #e0e8f3;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.link-check-heading::before { width: 54px; height: 4px; border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #4d7cff, #8a66ff); }
.link-check-heading h2, .trim-heading h2 { color: #172842; font-size: 25px; letter-spacing: -.025em; }
.link-check-heading p, .trim-heading p { color: #667992; font-size: 12px; }
.link-check-form input, .trim-time-grid input, .request-tools select {
  min-height: 44px;
  border-color: #d8e2ef;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
}
.link-check-form input:focus, .trim-time-grid input:focus { border-color: #6384ec; outline: 3px solid rgb(56 104 245 / 13%); }
.video-metadata:not([hidden]) { padding: 18px; border-color: #e1e8f2; border-radius: 14px; box-shadow: 0 8px 22px rgb(31 56 102 / 6%); }
.video-metadata dt { color: #6b7c93; font-size: 11px; }
.video-metadata dd { color: #253a58; font-size: 12px; }
.video-thumbnail:not([hidden]) { border-radius: 12px; box-shadow: 0 8px 20px rgb(31 56 102 / 10%); }
.trim-form { padding: 20px; border-color: #e0e8f3; border-radius: 18px; box-shadow: var(--shadow-card); }
.trim-dropzone { min-height: 142px; border-color: #a8bbdf; border-radius: 13px; background: #f7f9ff; }
.trim-dropzone:hover { border-color: #5c81ee; background: #f0f4ff; }
.trim-file-icon { width: 40px; height: 40px; }
.trim-time-grid label { color: #536781; font-size: 11px; }
.trim-duration, .trim-note { color: #6c7d94; font-size: 10px; }
.trim-result:not([hidden]) { border-radius: 12px; }
.social-footer { padding-top: 14px; padding-bottom: 24px; }
.social-link { min-height: 44px; border-color: #e0e7f1; border-radius: 12px; box-shadow: 0 3px 10px rgb(31 56 102 / 4%); }
.social-link:hover { border-color: #c6d5ee; background: #fdfdff; box-shadow: 0 9px 20px rgb(31 56 102 / 9%); }

.modal { background: rgb(13 25 48 / 62%); backdrop-filter: blur(8px); }
.auth-card, .purchase-dialog {
  border-color: rgb(222 231 243 / 90%);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgb(8 21 47 / 28%);
}
.auth-card { padding: 30px; }
.tabs { padding: 4px; border-radius: 11px; background: #f1f5fb; }
.tab { min-height: 36px; border-radius: 8px; font-size: 12px; }
.tab.is-active { box-shadow: 0 3px 9px rgb(31 56 102 / 9%); }
.auth-card h2 { margin-top: 22px; color: #172842; font-size: 24px; letter-spacing: -.02em; }
.auth-sub { font-size: 12px; }
.field { margin-bottom: 15px; }
.field > span { color: #344b69; font-size: 11px; }
.field input { height: 44px; padding-inline: 12px; border-color: #dce5f1; border-radius: 10px; background: #fbfcff; font-size: 12px; }
.field input:focus { border-color: #6384ec; outline: 3px solid rgb(56 104 245 / 13%); }
.auth-submit { min-height: 46px; border-radius: 11px; font-size: 12px; }
.auth-error, .link-check-message, .trim-message, .message { border-radius: 10px; }
.modal-close { top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; }
.site-footer { min-height: 86px; color: #6c7d94; font-size: 10px; }

@media (max-width: 820px) {
  .header-inner { min-height: 66px; }
  .workspace { padding-top: 36px; column-gap: 24px; }
  .plans-section { padding: 18px; }
}

@media (max-width: 560px) {
  .header-inner { min-height: 58px; }
  .desktop-nav { border-radius: 10px; }
  .desktop-nav a { min-height: 34px; border-radius: 8px; }
  .hero { min-height: 355px; padding: 42px 20px; }
  .hero::before { background: linear-gradient(100deg, rgb(9 17 42 / 89%), rgb(14 24 56 / 70%) 72%, rgb(17 28 66 / 48%)); }
  .hero-content { padding-right: 0; }
  .hero h1 { max-width: 13ch; font-size: clamp(34px, 10vw, 44px); }
  .hero p { max-width: 36ch; font-size: 13px; }
  .hero-actions { gap: 11px; }
  .primary-button { min-height: 43px; }
  .plans-section { margin-top: -18px; padding: 15px; border-radius: 15px; }
  .plans-heading { align-items: flex-start; flex-direction: column; }
  .plans-heading-actions { width: 100%; justify-content: space-between; }
  .account-plan { max-width: 58%; text-align: left; }
  .plan-list { grid-template-columns: 1fr; }
  .plan-item { padding: 15px; }
  .plan-item p { min-height: 0; }
  .workspace { padding-top: 30px; }
  .intro h2 { font-size: 26px; }
  .feature-list > div { min-height: 54px; }
  #upload-form { padding: 12px; border-radius: 15px; }
  .dropzone { min-height: 205px; border-radius: 12px; }
  .link-check-heading { padding: 15px 16px; border-radius: 13px; }
  .link-check-heading h2, .trim-heading h2 { font-size: 22px; }
  .trim-form { padding: 14px; border-radius: 15px; }
  .auth-card { padding: 24px 19px; border-radius: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
