:root {
  --bg: #050814;
  --bg-soft: #0a0f25;
  --glass: rgba(15, 20, 40, 0.35);
  --glass-alt: rgba(20, 25, 50, 0.25);
  --glass-light: rgba(255, 255, 255, 0.05);
  --brand: #4285F4;
  --brand-light: #8AB4F8;
  --brand-dark: #1a73e8;
  --brand-glow: rgba(66, 133, 244, 0.25);
  --accent: #E52592;
  --green: #10b981;
  --red: #ef4444;
  --txt: #f8fafc;
  --txt-mid: #94a3b8;
  --txt-dim: #64748b;
  --bd: rgba(255, 255, 255, 0.15);
  --bd-h: rgba(255, 255, 255, 0.25);
  --font: 'Nunito', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-full: 9999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-1: 0.15s;
  --dur-2: 0.25s;
  --dur-3: 0.4s;
  --dur-in: 0.5s;
  --container: 600px;
  --nav-h: 60px;
}
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-color: #131314;
  background-image: 
      radial-gradient(circle at 15% 50%, rgba(66, 133, 244, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 85% 30%, rgba(155, 81, 224, 0.1) 0%, transparent 40%),
      radial-gradient(circle at 50% 80%, rgba(229, 37, 146, 0.05) 0%, transparent 40%);
  background-size: 200% 200%;
  background-attachment: fixed;
  animation: bg-shift 20s ease-in-out infinite alternate;
}
@keyframes bg-shift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
::selection {
  background: var(--brand-light);
  color: #fff;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(66, 133, 244, 0.3);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(66, 133, 244, 0.5);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(66, 133, 244, 0.3) transparent;
}
a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color var(--dur-1) ease;
}
a:hover {
  color: var(--accent);
}
ul, ol {
  list-style: none;
}
img, svg {
  display: block;
  max-width: 100%;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: rgba(5, 8, 20, 0.4);
  backdrop-filter: blur(30px) saturate(2);
  -webkit-backdrop-filter: blur(30px) saturate(2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-container {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.125rem;
  color: var(--txt);
  letter-spacing: -0.02em;
  user-select: none;
  transition: opacity var(--dur-1) ease;
}
.navbar-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px var(--brand-glow));
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-2) var(--ease);
}
.btn:active {
  transform: scale(0.95);
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}
.btn .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.btn-primary {
  color: #fff;
  background: #2143a8;
  box-shadow: 0 0 15px rgba(33, 67, 168, 0.2);
  z-index: 1;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.15);
  opacity: 0;
  transition: opacity var(--dur-2) ease;
  z-index: -1;
}
.btn-primary:hover {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  color: #fff;
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0) scale(0.95);
}
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-2) var(--ease);
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.btn-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--dur-2) ease;
  z-index: -1;
}
.btn-copy .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}
.btn-copy:hover::before {
  opacity: 1;
}
.btn-copy:active {
  transform: translateY(0) scale(0.95);
}
.btn-copy.copied {
  background: linear-gradient(135deg, var(--green) 0%, #34d399 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}
.btn-copy.copied::before {
  background: linear-gradient(135deg, #34d399 0%, var(--green) 100%);
}
.btn-copy.copied:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.4);
}
.btn-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: var(--r-full);
  background: rgba(66, 133, 244, 0.15);
  border: 1px solid rgba(66, 133, 244, 0.35);
  color: var(--brand-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: 1.5rem;
  animation: fadeDown var(--dur-in) var(--ease) both;
  box-shadow: 0 0 25px rgba(66, 133, 244, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.2);
}
.hero-badge svg {
  opacity: 0.9;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--txt);
  margin-bottom: 1rem;
  animation: fadeDown var(--dur-in) var(--ease) 50ms both;
}
.gradient-text {
  background: linear-gradient(90deg, #4285F4, #8AB4F8, #ffffff, #8AB4F8, #4285F4);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gemini-gradient-text 5s linear infinite;
  position: relative;
  display: inline-block;
}
.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: inherit;
  background-size: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(12px);
  opacity: 0.8;
  animation: inherit;
}
@keyframes gemini-gradient-text {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--txt-mid);
  max-width: 450px;
  margin-inline: auto;
  line-height: 1.6;
  letter-spacing: -0.01em;
  animation: fadeUp var(--dur-in) var(--ease) 100ms both;
}
.tool-section {
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}
.glass-card {
  background-color: #121520;
  background-image: radial-gradient(circle at top left, rgba(33, 67, 168, 0.15) 0%, transparent 70%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 199, 197, 0.1);
  box-shadow: 0 0 30px rgba(33, 67, 168, 0.15);
  border-radius: var(--r-xl);
  padding: 2.25rem;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  animation: fadeUp var(--dur-in) var(--ease) 150ms both;
}
.glass-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 40px -10px rgba(66, 133, 244, 0.4);
  border-color: rgba(66, 133, 244, 0.4);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 3;
}
.card-header svg {
  width: 24px;
  height: 24px;
  color: var(--brand-light);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.card-header span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--txt);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.card-body {
  position: relative;
  z-index: 3;
}
.input-group {
  margin-bottom: 1.5rem;
}
.input-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt-mid);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}
.input-field {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--txt);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(0, 0, 0, 0.4);
  border-left-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
  resize: vertical;
  min-height: 110px;
  outline: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.1);
  transition: all var(--dur-2) ease;
}
.input-field::placeholder {
  color: rgba(255,255,255,0.3);
  font-family: var(--font);
}
.input-field:hover {
  border-color: rgba(66, 133, 244, 0.4);
  background: rgba(0, 0, 0, 0.3);
}
.input-field:focus {
  border-color: var(--brand-light);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(66, 133, 244, 0.3), 0 1px 1px rgba(255, 255, 255, 0.1);
}
.input-hint {
  font-size: 0.75rem;
  color: var(--txt-dim);
  margin-top: 0.5rem;
  opacity: 0.8;
  transition: all var(--dur-2) ease;
}
.input-field:focus ~ .input-hint {
  opacity: 1;
  color: var(--brand-light);
}
.result-area {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transform: translateY(-10px);
  transition: all var(--dur-3) var(--ease-spring);
}
.result-area.visible {
  max-height: 800px;
  opacity: 1;
  margin-top: 1.5rem;
  transform: translateY(0);
}
.result-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.result-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.result-header.error-state {
  color: var(--red);
}
.result-content {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--txt);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top-color: rgba(0, 0, 0, 0.3);
  border-left-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-md);
  padding: 1.25rem;
  word-break: break-all;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
  position: relative;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.4), 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}
.result-content + .btn-copy {
  margin-top: 0.75rem;
}
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
  animation: fadeUp var(--dur-in) var(--ease) 250ms both;
}
.feature-card {
  background: rgba(15, 20, 40, 0.4);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--dur-2) var(--ease);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(66, 133, 244, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  background: rgba(20, 25, 50, 0.5);
}
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.2), rgba(66, 133, 244, 0.2));
  color: var(--brand-light);
  transition: all var(--dur-2) ease;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.35), rgba(66, 133, 244, 0.35));
  color: #fff;
  transform: scale(1.05);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 4px 10px rgba(0, 0, 0, 0.3);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.feature-desc {
  font-size: 0.8125rem;
  color: var(--txt-mid);
  line-height: 1.6;
}
.footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 8, 20, 0.6);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 1;
}
.footer-text {
  font-size: 0.8125rem;
  color: var(--txt-dim);
}
.footer-text strong {
  color: var(--txt-mid);
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .glass-card { padding: 1.5rem; }
}
.tab-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  isolation: isolate;
  position: relative;
  z-index: 10;
}
.tab-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--r-full);
  background: rgba(8, 12, 28, 0.75);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.tab-glider {
  position: absolute;
  z-index: 0;
  border-radius: var(--r-full);
  transition: left 0.26s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.26s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.16) 100%
  );
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 -1px 0 rgba(0, 0, 0, 0.15) inset;
  overflow: hidden;
}
.tab-glider::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 50%
  );
  pointer-events: none;
}
.tab-btn {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 22px;
  border-radius: var(--r-full);
  border: none;
  background: transparent;
  color: var(--txt-mid);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--dur-2) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.tab-btn svg {
  flex-shrink: 0;
  transition: opacity var(--dur-2) var(--ease);
}
.tab-btn.active {
  color: var(--txt);
  text-shadow: 0 0 20px rgba(255,255,255,0.4);
}
.tab-btn:hover:not(.active) {
  color: rgba(248, 250, 252, 0.7);
}
.tab-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease);
}
.tab-panel.active {
  display: block;
  animation: panelIn var(--dur-3) var(--ease) forwards;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4),
              0 4px 20px rgba(220, 38, 38, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5),
              0 6px 28px rgba(220, 38, 38, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-danger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  opacity: 0;
  transition: opacity var(--dur-2) ease;
  z-index: -1;
}
.btn-danger:hover::before {
  opacity: 1;
}
.btn-danger:not(:disabled):active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4),
              0 2px 8px rgba(220, 38, 38, 0.3),
              inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.card-header--danger {
  background: transparent;
  border-color: transparent;
  color: var(--txt);
}
.card-header--danger svg {
  color: #ef4444;
}
.card-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 1.25rem;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.card-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #ef4444;
}
.card-notice strong {
  color: #fca5a5;
}
.dl-card {
    padding: 40px;
}
.dl-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 0 0 12px rgba(255,255,255,0.4), 0 0 24px rgba(255,255,255,0.2);
}
.dl-btn {
    padding: 20px 60px;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

@media (max-width: 480px) {
    .dl-card {
        padding: 25px 20px;
    }
    .dl-title {
        font-size: 1.5rem;
    }
    .dl-btn {
        padding: 15px 20px;
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: auto;
    padding: 40px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.8s ease-out, border-color 0.8s ease-out;
}

@media (max-width: 480px) {
    .modal-box {
        padding: 25px 20px;
        width: 95%;
        padding: 25px 15px;
    }
    .modal-box h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    .modal-box p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .modal-actions .btn {
        padding: 12px;
        font-size: 1rem;
    }
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-box h3 {
    font-size: 1.5rem;
    color: #ff4757;
    margin-bottom: 20px;
}
.modal-box p {
    font-size: 1.1rem;
    color: var(--txt-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-actions .btn {
    width: 100%;
    padding: 15px;
    justify-content: center;
    font-size: 1.1rem;
    white-space: normal;
    height: auto;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--txt);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-md);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
#modal-download-btn:disabled {
    opacity: 0.5;
}
.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4),
              0 4px 20px rgba(220, 38, 38, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.5),
              0 6px 28px rgba(220, 38, 38, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.btn-danger::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  opacity: 0;
  transition: opacity var(--dur-2) ease;
  z-index: -1;
}
.btn-danger:hover::before {
  opacity: 1;
}
.btn-danger:not(:disabled):active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.4),
              0 2px 8px rgba(220, 38, 38, 0.3),
              inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
.card-header--danger {
  background: transparent;
  border-color: transparent;
  color: var(--txt);
}
.card-header--danger svg {
  color: #ef4444;
}
.card-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 1.25rem;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.card-notice svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #ef4444;
}
.card-notice strong {
  color: #fca5a5;
}
.dl-card {
    padding: 40px;
}
.dl-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
    text-shadow: 0 0 12px rgba(255,255,255,0.4), 0 0 24px rgba(255,255,255,0.2);
}
.dl-btn {
    padding: 20px 60px;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

@media (max-width: 480px) {
    .dl-card {
        padding: 25px 20px;
    }
    .dl-title {
        font-size: 1.5rem;
    }
    .dl-btn {
        padding: 15px 20px;
        font-size: 1.2rem;
        width: 100%;
        justify-content: center;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin: auto;
    padding: 40px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.8s ease-out, border-color 0.8s ease-out;
}

@media (max-width: 480px) {
    .modal-box {
        padding: 25px 20px;
        width: 95%;
        padding: 25px 15px;
    }
    .modal-box h3 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
    .modal-box p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .modal-actions .btn {
        padding: 12px;
        font-size: 1rem;
    }
}
.modal-overlay.active .modal-box {
    transform: translateY(0);
}
.modal-box h3 {
    font-size: 1.5rem;
    color: #ff4757;
    margin-bottom: 20px;
}
.modal-box p {
    font-size: 1.1rem;
    color: var(--txt-dim);
    margin-bottom: 30px;
    line-height: 1.6;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-actions .btn {
    width: 100%;
    padding: 15px;
    justify-content: center;
    font-size: 1.1rem;
    white-space: normal;
    height: auto;
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--txt);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-md);
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
#modal-download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(66, 133, 244, 0.3);
    border-color: transparent;
    box-shadow: none;
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--txt-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}
.close-modal:hover {
    color: var(--txt);
}
.tutor-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2px;
    gap: 4px;
}
.tutor-btn {
    background: transparent;
    border: none;
    color: var(--txt-dim);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tutor-btn:hover {
    color: var(--txt);
    background: rgba(255, 255, 255, 0.05);
}
.tutor-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
