/* UtilTok cinematic workspace theme */
:root {
  --ut-ink: #07162f;
  --ut-ink-soft: #183252;
  --ut-blue: #2563eb;
  --ut-blue-deep: #1748c8;
  --ut-cyan: #22d3ee;
  --ut-violet: #7c3aed;
  --ut-coral: #ff7a59;
  --ut-mint: #14b8a6;
  --ut-bg: #f3f7ff;
  --ut-surface: rgba(255, 255, 255, 0.94);
  --ut-line: rgba(37, 99, 235, 0.13);
  --ut-muted: #61718a;
  --ut-shadow-sm: 0 8px 24px rgba(7, 22, 47, 0.08);
  --ut-shadow-md: 0 18px 48px rgba(7, 22, 47, 0.12);
  --ut-shadow-lg: 0 28px 70px rgba(7, 22, 47, 0.2);
  --ut-radius-sm: 14px;
  --ut-radius-md: 22px;
  --ut-radius-lg: 30px;
  --ut-banner-image: url("../images/hero-utiltok-document.webp");
}

html {
  scroll-behavior: smooth;
  background: var(--ut-bg);
}

body {
  min-height: 100%;
  color: var(--ut-ink-soft);
  background:
    radial-gradient(circle at 8% 8%, rgba(34, 211, 238, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(124, 58, 237, 0.1), transparent 32rem),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 46%, #f8fbff 100%);
  font-family: "Lato", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

body p,
body li,
body label,
body .form-text {
  color: var(--ut-ink-soft);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  color: var(--ut-ink);
  letter-spacing: -0.035em;
}

body a {
  color: var(--ut-blue);
}

body a:hover {
  color: var(--ut-violet);
}

::selection {
  color: #fff;
  background: var(--ut-blue);
}

.ut-skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 2000;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff !important;
  background: var(--ut-ink);
  transform: translateY(-160%);
}

.ut-skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation */
body header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 35px rgba(7, 22, 47, 0.06);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

body header.fixed {
  padding: 10px 0;
  border-bottom-color: rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(7, 22, 47, 0.11);
}

body header .logo {
  max-width: none;
}

body header .logo a {
  min-height: 48px;
}

body header .logo img {
  filter: drop-shadow(0 7px 12px rgba(37, 99, 235, 0.2));
}

body header .logo img:hover {
  opacity: 1;
  transform: translateY(-1px) rotate(-2deg);
}

body .logo-text {
  color: transparent;
  background: linear-gradient(105deg, #0b1f3a 0%, #245fda 55%, #7146dc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body .menu > ul {
  margin-bottom: 0;
}

body .menu > ul > li {
  padding: 0 12px;
}

body .menu > ul > li > a {
  display: inline-flex;
  align-items: center;
  padding: 12px 0 20px;
  color: var(--ut-ink) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.035em;
}

body .menu > ul > li > a::before {
  bottom: 12px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ut-cyan), var(--ut-blue), var(--ut-violet));
}

body .menu ul ul {
  min-width: 285px;
  padding: 10px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 60px rgba(7, 22, 47, 0.18);
  backdrop-filter: blur(20px);
}

body .menu ul ul li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 0 !important;
  border-radius: 11px;
  color: var(--ut-ink-soft) !important;
  font-size: 14px;
  font-weight: 700;
}

body .menu ul ul li a:hover,
body .menu ul ul li:hover > a {
  padding-left: 14px;
  color: var(--ut-blue) !important;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1), rgba(37, 99, 235, 0.08));
}

body .menu-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 9px;
  place-items: center;
  border-radius: 9px;
  color: var(--ut-blue);
  background: rgba(37, 99, 235, 0.08);
}

body .signin {
  margin-left: 10px;
}

body .signin .btn-lg,
body .signin button.btn-lg {
  min-height: 42px;
  margin: 0 0 0 6px;
  padding: 9px 17px !important;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, var(--ut-blue), var(--ut-violet));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
  font-size: 13px;
  font-weight: 800;
}

body .signin .btn-success {
  color: #fff !important;
  background: linear-gradient(110deg, #087a6c, #0e7490);
}

body .buy-me-a-coffee img {
  filter: drop-shadow(0 5px 8px rgba(7, 22, 47, 0.15));
}

@media (min-width: 992px) {
  body .menu > ul > li.mega-menu {
    padding-right: 28px;
  }

  body .menu > ul > li.mega-menu::before {
    top: 50%;
    right: 9px;
    font-size: 13px;
    line-height: 1;
    transform: translateY(-50%);
  }

  body .menu > ul > li:hover.mega-menu::before {
    transform: translateY(-50%) rotate(180deg);
  }
}

body .top-scroll {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--ut-blue), var(--ut-violet));
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
  line-height: 40px;
}

body .top-scroll a {
  color: #fff !important;
}

/* Main layout and shared cinematic banner */
body .base_container {
  width: 100%;
  margin-top: 128px;
  padding-bottom: 86px !important;
}

.ut-page-content {
  position: relative;
  z-index: 1;
}

.ut-page-banner {
  position: relative;
  min-height: 238px;
  margin: 0 0 34px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--ut-radius-lg);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(2, 12, 31, 0.96) 0%, rgba(4, 22, 53, 0.83) 45%, rgba(4, 20, 48, 0.16) 100%),
    var(--ut-banner-image);
  background-position: center;
  background-size: cover;
  box-shadow: var(--ut-shadow-lg);
}

.ut-page-banner::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 56%, rgba(34, 211, 238, 0.12) 56.2%, transparent 56.6%),
    radial-gradient(circle at 78% 15%, rgba(124, 58, 237, 0.28), transparent 22rem);
}

.ut-page-banner__glow {
  position: absolute;
  right: -80px;
  bottom: -150px;
  width: 430px;
  height: 260px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.16);
  filter: blur(60px);
}

.ut-page-banner__content {
  position: relative;
  z-index: 2;
  max-width: 690px;
  padding: 42px 50px 40px;
}

.ut-page-banner__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #8beeff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.ut-page-banner__eyebrow::before {
  width: 28px;
  height: 2px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--ut-cyan), #fff);
}

.ut-page-banner__title {
  margin: 0 0 9px;
  color: #fff;
  font-family: "Poppins", "Malgun Gothic", sans-serif;
  font-size: clamp(1.85rem, 3.1vw, 2.65rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.045em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.ut-page-banner__description {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  font-weight: 600;
}

.ut-page-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 23px;
}

.ut-page-banner__chips span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

/* Route-based banner imagery */
body[data-page="upload_view"],
body[data-page="removebg"],
body[data-page="image_editor"],
body[data-page="image_converter"] {
  --ut-banner-image: url("../images/hero-utiltok-image.webp");
}

body[data-page="ppt_view"],
body[data-page="ppt_edit"],
body[data-page="shorts_view"],
body[data-page="reshorts"] {
  --ut-banner-image: url("../images/hero-utiltok-video.webp");
}

body[data-page="tts_view"],
body[data-page="stt_view"],
body[data-page="youtube_view"],
body[data-page="audiobook_view"],
body[data-page="audio_converter"],
body[data-page="ocr_view"],
body[data-page="capture"],
body[data-page="qrcode"],
body[data-page="doc_rectify"],
body[data-page="dewarp"],
body[data-page="image_to_pdf"] {
  --ut-banner-image: url("../images/hero-utiltok-document.webp");
}

body[data-page="login"],
body[data-page="register"],
body[data-page="mypage"],
body[data-page="files"],
body[data-page="socialaccount_login"],
body[data-page="socialaccount_signup"] {
  --ut-banner-image: url("../images/hero-utiltok-image.webp");
}

body[data-page="bbs_list"],
body[data-page="bbs_create"],
body[data-page="bbs_detail"],
body[data-page="ai_guide_detail"],
body[data-page="ai_news_detail"],
body[data-page="ai_qna_detail"],
body[data-page="ai_qna_create"] {
  --ut-banner-image: url("../images/hero-utiltok-video.webp");
}

/* Shared surface system */
body .ut-page-content > h1,
body .ut-page-content > div > h1,
body .ut-page-content [class$="-title"] {
  text-wrap: balance;
}

body .ut-page-content h1:not(.hero-title) {
  color: var(--ut-ink) !important;
  font-weight: 850 !important;
  line-height: 1.18;
}

body .ut-page-content .card,
body .ut-page-content .bbs-card,
body .ut-page-content .policy-card,
body .ut-page-content .ai-guide-card,
body .ut-page-content .ai-news-card,
body .ut-page-content .ai-qna-card,
body .ut-page-content .files-list-card,
body .ut-page-content .result-card,
body .ut-page-content .upload-card {
  border: 1px solid var(--ut-line) !important;
  border-radius: var(--ut-radius-md) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.93)) !important;
  box-shadow: var(--ut-shadow-md) !important;
}

body .ut-page-content .card-header,
body .ut-page-content .files-list-card-header {
  border: 0 !important;
  border-radius: var(--ut-radius-md) var(--ut-radius-md) 0 0 !important;
  color: #fff !important;
  background:
    linear-gradient(110deg, rgba(8, 31, 70, 0.98), rgba(37, 99, 235, 0.94) 62%, rgba(124, 58, 237, 0.9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15);
}

body .ut-page-content .card-header *,
body .ut-page-content .files-list-card-header * {
  color: #fff !important;
}

body .ut-page-content .card-body {
  padding: clamp(22px, 4vw, 42px);
}

body .ut-page-content .feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 15px;
  color: #fff !important;
  background: linear-gradient(145deg, var(--ut-blue), var(--ut-violet));
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.24);
  font-size: 1.35rem;
}

body .ut-page-content .form-control,
body .ut-page-content input[type="text"],
body .ut-page-content input[type="email"],
body .ut-page-content input[type="password"],
body .ut-page-content input[type="url"],
body .ut-page-content input[type="number"],
body .ut-page-content input[type="file"],
body .ut-page-content select,
body .ut-page-content textarea {
  min-height: 48px;
  border: 1px solid rgba(65, 93, 132, 0.22) !important;
  border-radius: 13px !important;
  color: var(--ut-ink) !important;
  background: rgba(248, 251, 255, 0.96) !important;
  box-shadow: inset 0 1px 2px rgba(7, 22, 47, 0.02);
}

body .ut-page-content textarea,
body .ut-page-content textarea.form-control {
  min-height: 120px;
  padding: 14px 16px;
}

body .ut-page-content .form-control:focus,
body .ut-page-content input:focus,
body .ut-page-content select:focus,
body .ut-page-content textarea:focus {
  border-color: rgba(37, 99, 235, 0.7) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.11) !important;
}

body .ut-page-content label:not([class*="upload-label"]):not(.btn):not(.btn-lg) {
  margin-bottom: 7px;
  color: var(--ut-ink) !important;
  font-weight: 750;
}

body .ut-page-content label[class*="upload-label"],
body .ut-page-content label.btn,
body .ut-page-content label.btn-lg {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .ut-page-content label[class*="upload-label"] {
  border-color: transparent !important;
  background: linear-gradient(110deg, var(--ut-blue), var(--ut-violet)) !important;
}

body .ut-page-content label[class*="upload-label"]:hover,
body .ut-page-content label[class*="upload-label"]:focus-visible {
  color: #fff !important;
  background: linear-gradient(110deg, #1748c8, #6530c7) !important;
}

body .ut-page-content .btn,
body .ut-page-content button:not(.hero-dot):not(.close):not(.swal2-close) {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(7, 22, 47, 0.1);
}

body .ut-page-content .btn:hover,
body .ut-page-content button:not(.hero-dot):not(.close):not(.swal2-close):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(7, 22, 47, 0.16);
}

body .ut-page-content .btn-primary,
body .ut-page-content .btn-info {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(110deg, var(--ut-blue), var(--ut-violet));
}

body .ut-page-content .btn-success {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(110deg, #087a6c, #0f766e);
}

body .ut-page-content .btn-danger {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: linear-gradient(110deg, #c81e4b, #b93824);
}

body .ut-page-content .btn-primary *,
body .ut-page-content .btn-info *,
body .ut-page-content .btn-success *,
body .ut-page-content .btn-danger *,
body .ut-page-content label[class*="upload-label"] * {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}

body .ut-page-content .part .btn-outline-danger {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body .ut-page-content .btn-secondary,
body .ut-page-content .btn-light {
  color: var(--ut-ink);
  background: #edf3fc;
}

body .ut-page-content .nav-tabs {
  gap: 7px;
  padding: 7px;
  border: 1px solid var(--ut-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: var(--ut-shadow-sm) !important;
}

body .ut-page-content .nav-tabs .nav-link,
body .ut-page-content .nav-link2,
body .ut-page-content [role="tab"] {
  border: 0 !important;
  border-radius: 11px !important;
  color: var(--ut-muted) !important;
  background: transparent !important;
  font-weight: 800;
}

body .ut-page-content .nav-tabs .nav-link.active,
body .ut-page-content .nav-link2.active,
body .ut-page-content [role="tab"].active {
  color: #fff !important;
  background: linear-gradient(110deg, var(--ut-blue), var(--ut-violet)) !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

body .ut-page-content .nav-link2.active::after {
  display: none;
}

body .ut-page-content table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--ut-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

body .ut-page-content table thead th,
body .ut-page-content .bbs-table th {
  border-color: rgba(37, 99, 235, 0.12) !important;
  color: #17458f !important;
  background: linear-gradient(180deg, #eef5ff, #e4efff) !important;
  font-weight: 800;
}

body .ut-page-content table td {
  border-color: rgba(37, 99, 235, 0.08) !important;
}

body .ut-page-content table tbody tr:hover {
  background: rgba(37, 99, 235, 0.045) !important;
}

body .ut-page-content .alert {
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 14px;
  box-shadow: var(--ut-shadow-sm);
}

body .ut-page-content .badge,
body .ut-page-content [class$="-badge"] {
  border-radius: 999px;
}

body .ut-page-content .progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef8;
}

body .ut-page-content .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ut-cyan), var(--ut-blue), var(--ut-violet));
}

body .ut-page-content .dropzone,
body .ut-page-content [class*="drop-zone"],
body .ut-page-content [class*="upload-area"] {
  border: 2px dashed rgba(37, 99, 235, 0.28) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.09), transparent 50%),
    rgba(247, 250, 255, 0.9) !important;
}

body .ut-page-content img,
body .ut-page-content video,
body .ut-page-content canvas {
  border-radius: 14px;
}

body .modal-content,
body .swal2-popup {
  overflow: hidden;
  border: 1px solid var(--ut-line);
  border-radius: 24px !important;
  box-shadow: var(--ut-shadow-lg) !important;
}

/* Main page */
body[data-page="index"] .base_container {
  margin-top: 128px;
}

body[data-page="index"] .hero-section {
  min-height: 500px;
  border-radius: 32px;
  box-shadow: 0 28px 75px rgba(4, 20, 48, 0.28);
}

body[data-page="index"] .hero-overlay {
  background: linear-gradient(90deg, rgba(2, 12, 31, 0.97) 0%, rgba(4, 22, 53, 0.8) 50%, rgba(4, 20, 48, 0.11) 100%);
}

body[data-page="index"] .hero-content {
  padding: 88px 62px 92px;
}

body[data-page="index"] .hero-title {
  font-size: clamp(2.5rem, 4.8vw, 4.15rem);
  letter-spacing: -0.055em;
}

body[data-page="index"] .hero-desc {
  font-size: 1.18rem;
}

body[data-page="index"] .feature-section,
body[data-page="index"] .example-section {
  border: 1px solid var(--ut-line) !important;
  border-radius: 28px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  box-shadow: var(--ut-shadow-md) !important;
  backdrop-filter: blur(14px);
}

body[data-page="index"] .feature-title,
body[data-page="index"] .example-title {
  color: var(--ut-ink) !important;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

body[data-page="index"] .ut-page-content .feature-card,
body[data-page="index"] .ut-page-content .example-card {
  border: 1px solid rgba(37, 99, 235, 0.1) !important;
  border-radius: 20px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92)) !important;
  box-shadow: 0 10px 28px rgba(7, 22, 47, 0.08) !important;
}

body[data-page="index"] .ut-page-content .feature-card:hover,
body[data-page="index"] .ut-page-content .example-card:hover {
  border-color: rgba(37, 99, 235, 0.24) !important;
  background: #fff !important;
  box-shadow: 0 22px 46px rgba(37, 99, 235, 0.15) !important;
  transform: translateY(-6px) !important;
}

body[data-page="index"] .feature-card-title {
  color: var(--ut-ink) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

body[data-page="index"] .feature-card-desc {
  color: var(--ut-muted) !important;
}

/* Existing article-list heroes gain the same image-led treatment */
body .ut-page-content .ai-guide-hero,
body .ut-page-content .ai-news-hero,
body .ut-page-content .ai-qna-hero {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: 52px 42px !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px !important;
  box-shadow: var(--ut-shadow-lg) !important;
  background-position: center !important;
  background-size: cover !important;
}

body .ut-page-content .ai-guide-hero {
  background-image: linear-gradient(90deg, rgba(2, 12, 31, 0.96), rgba(37, 99, 235, 0.55), rgba(4, 20, 48, 0.12)), url("../images/hero-utiltok-image.webp") !important;
}

body .ut-page-content .ai-news-hero {
  background-image: linear-gradient(90deg, rgba(2, 12, 31, 0.96), rgba(13, 148, 136, 0.54), rgba(4, 20, 48, 0.12)), url("../images/hero-utiltok-document.webp") !important;
}

body .ut-page-content .ai-qna-hero {
  background-image: linear-gradient(90deg, rgba(2, 12, 31, 0.96), rgba(124, 58, 237, 0.54), rgba(4, 20, 48, 0.12)), url("../images/hero-utiltok-video.webp") !important;
}

body .ut-page-content .ai-guide-hero h1,
body .ut-page-content .ai-news-hero h1,
body .ut-page-content .ai-qna-hero h1,
body .ut-page-content .ai-guide-hero p,
body .ut-page-content .ai-news-hero p,
body .ut-page-content .ai-qna-hero p {
  position: relative;
  z-index: 1;
  max-width: 660px;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

/* Footer */
body footer.bg-pattern {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  background:
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.24), transparent 22rem),
    radial-gradient(circle at 12% 90%, rgba(34, 211, 238, 0.16), transparent 24rem),
    linear-gradient(135deg, #06142c, #0b2751 58%, #15204b) !important;
}

body footer .footer {
  border-color: rgba(255, 255, 255, 0.12);
}

body footer p,
body footer li,
body footer span,
body footer a {
  color: rgba(255, 255, 255, 0.75) !important;
}

body footer a:hover {
  color: #8beeff !important;
}

body footer .footer-logo img {
  padding: 5px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.88);
}

body footer .footer-logo span {
  color: #fff !important;
}

/* Tablet */
@media (min-width: 992px) and (max-width: 1199px) {
  body .logo-text {
    font-size: 2.05rem;
  }

  body .menu > ul > li {
    padding: 0 8px;
  }

  body .menu > ul > li > a {
    font-size: 12px;
  }

  body .signin .btn-lg,
  body .signin button.btn-lg {
    padding: 8px 12px !important;
  }
}

@media (max-width: 991px) {
  body.mobile-menu-open {
    overflow: hidden;
  }

  body header,
  body header.fixed {
    min-height: 70px;
    padding: 10px 0;
  }

  body .menu-toggle {
    right: 16px;
    width: 30px;
    height: 22px;
  }

  body .menu {
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    width: 100vw;
    max-width: none;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
    min-height: calc(100vh - 70px);
    padding: 20px 18px 36px;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgba(248, 251, 255, 0.98);
    box-shadow: 0 20px 45px rgba(7, 22, 47, 0.2);
    backdrop-filter: blur(18px);
  }

  body header.fixed .menu {
    top: 70px;
    height: calc(100vh - 70px) !important;
    height: calc(100dvh - 70px) !important;
  }

  body .menu > ul {
    width: 100%;
    padding-top: 0;
  }

  body .menu > ul > li {
    width: 100%;
    margin-bottom: 9px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(7, 22, 47, 0.06);
  }

  body .menu > ul > li > a {
    display: flex;
    min-height: 62px;
    padding: 18px 62px 18px 18px;
    border-radius: 0;
    font-size: 17px;
    letter-spacing: 0.02em;
  }

  body .menu > ul > li > a::before {
    display: none;
  }

  body .menu ul ul {
    position: static;
    min-width: 0;
    margin: -3px 10px 12px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: none;
    background: rgba(37, 99, 235, 0.045);
  }

  body .menu ul ul li a {
    min-height: 50px;
    padding: 10px 12px;
    font-size: 15px;
  }

  body .menu .opener {
    top: 31px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
  }

  body .menu .opener::before {
    right: 12px;
    width: 18px;
  }

  body .menu .opener::after {
    right: 20px;
    height: 18px;
  }

  body .menu .signin {
    width: 100%;
    margin: 10px 0 0;
  }

  body .menu .signin .btn-lg,
  body .menu .signin button.btn-lg {
    width: 100%;
    min-height: 52px;
    margin: 0;
    text-align: center;
  }

  body .base_container,
  body[data-page="index"] .base_container {
    margin-top: 94px;
  }

  .ut-page-banner {
    min-height: 218px;
  }

  .ut-page-banner__content {
    max-width: 590px;
    padding: 36px 38px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body {
    font-size: 14px;
    background:
      radial-gradient(circle at 10% 4%, rgba(34, 211, 238, 0.12), transparent 19rem),
      linear-gradient(180deg, #f7faff, #eef4ff 58%, #f8fbff);
  }

  body header .container {
    padding-right: 14px;
    padding-left: 14px;
  }

  body header .logo img {
    max-height: 40px;
  }

  body .logo-text {
    margin-left: 8px;
    font-size: 1.65rem;
  }

  body header .buy-me-a-coffee {
    margin-left: 6px;
  }

  body header .buy-me-a-coffee img {
    width: 26px !important;
  }

  body .base_container,
  body[data-page="index"] .base_container {
    max-width: 100%;
    margin-top: 82px;
    padding-right: 14px;
    padding-bottom: 58px !important;
    padding-left: 14px;
  }

  .ut-page-banner {
    min-height: 178px;
    margin-bottom: 22px;
    border-radius: 20px;
    background-image:
      linear-gradient(90deg, rgba(2, 12, 31, 0.95) 0%, rgba(4, 22, 53, 0.77) 62%, rgba(4, 20, 48, 0.31) 100%),
      var(--ut-banner-image);
    background-position: 63% center;
  }

  .ut-page-banner__content {
    max-width: 82%;
    padding: 25px 22px 24px;
  }

  .ut-page-banner__eyebrow {
    margin-bottom: 8px;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
  }

  .ut-page-banner__title {
    margin-bottom: 7px;
    font-size: 1.52rem;
  }

  .ut-page-banner__description {
    font-size: 0.84rem;
    line-height: 1.52;
  }

  .ut-page-banner__chips {
    display: none;
  }

  body .ut-page-content h1:not(.hero-title) {
    font-size: 1.65rem !important;
  }

  body .ut-page-content h2 {
    font-size: 1.32rem;
  }

  body .ut-page-content .card,
  body .ut-page-content .bbs-card,
  body .ut-page-content .policy-card,
  body .ut-page-content .ai-guide-card,
  body .ut-page-content .ai-news-card,
  body .ut-page-content .ai-qna-card,
  body .ut-page-content .files-list-card,
  body .ut-page-content .result-card,
  body .ut-page-content .upload-card {
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(7, 22, 47, 0.1) !important;
  }

  body .ut-page-content .card-header,
  body .ut-page-content .files-list-card-header {
    padding: 15px 18px !important;
    border-radius: 18px 18px 0 0 !important;
    font-size: 1rem !important;
  }

  body .ut-page-content .card-body,
  body .ut-page-content .policy-card,
  body .ut-page-content .bbs-card {
    padding: 22px 16px !important;
  }

  body .ut-page-content .form-control,
  body .ut-page-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  body .ut-page-content select,
  body .ut-page-content textarea {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  body .ut-page-content .btn-lg {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  body .ut-page-content .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body .ut-page-content .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  body .ut-page-content .nav-tabs .nav-item,
  body .ut-page-content .nav-tabs .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body .ut-page-content .table-responsive,
  body .ut-page-content table {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  body .ut-page-content img,
  body .ut-page-content video,
  body .ut-page-content canvas {
    max-width: 100%;
    height: auto;
  }

  body[data-page="index"] .hero-section {
    min-height: 390px;
    border-radius: 22px;
  }

  body[data-page="index"] .hero-content {
    padding: 54px 24px 72px;
  }

  body[data-page="index"] .hero-title {
    font-size: 2.15rem;
  }

  body[data-page="index"] .hero-desc {
    font-size: 0.98rem;
  }

  body[data-page="index"] .feature-section,
  body[data-page="index"] .example-section {
    padding: 30px 0 16px !important;
    border-radius: 20px !important;
  }

  body[data-page="index"] .ut-page-content .feature-card:hover,
  body[data-page="index"] .ut-page-content .example-card:hover,
  body .ut-page-content .btn:hover,
  body .ut-page-content button:not(.hero-dot):not(.close):not(.swal2-close):hover {
    transform: none !important;
  }

  body .ut-page-content .ai-guide-hero,
  body .ut-page-content .ai-news-hero,
  body .ut-page-content .ai-qna-hero {
    min-height: 210px;
    padding: 34px 22px !important;
    border-radius: 21px !important;
    background-position: 62% center !important;
  }

  body footer.bg-pattern {
    padding-top: 34px !important;
  }

  body footer .buy-me-a-coffee {
    margin: 4px 0 14px;
  }
}

@media (max-width: 420px) {
  .ut-page-banner__content {
    max-width: 88%;
    padding: 23px 18px;
  }

  .ut-page-banner__title {
    font-size: 1.35rem;
  }

  body .logo-text {
    font-size: 1.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
