* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Light theme (default) */
:root {
  --primary: #5a67d8;
  --primary-dark: #4c51bf;
  --secondary: #9f7aea;
  --secondary-dark: #805ad5;
  --danger: #fc8181;
  --warning: #f6ad55;
  --yellow: #fbbf24;
  --success: #68d391;
  --bg-gradient-start: #1a202c;
  --bg-gradient-end: #2d3748;
  --bg-white: rgba(255, 255, 255, 0.95);
  --bg-light: rgba(247, 250, 252, 0.9);
  --bg-light-blue: rgba(90, 103, 216, 0.05);
  --bg-dark: #1f2937;
  --bg-darker: #111827;
  --bg-code: #1e293b;
  --text-primary: #1a202c;
  --text-secondary: #2d3748;
  --text-muted: #4a5568;
  --text-dark: #1a202c;
  --text-light: #e2e8f0;
  --text-code: #a0aec0;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e0;
  --border-dark: #4a5568;
  --border-blue: #cbd5e0;
  --code-bg: #0f172a;
  --code-text: #a5f3fc;
  --linkedin: #0077b5;
  --linkedin-dark: #005582;
  --tip-bg: #fefcbf;
  --tip-text: #744210;
  --tip-border: #fbbf24;
  --border-radius-sm: 0.375rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-full: 1.875rem;
  --shadow-sm: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
  --shadow-md: 0 0.5rem 0.9375rem rgba(90, 103, 216, 0.15);
  --shadow-lg: 0 1.875rem 3.75rem rgba(0, 0, 0, 0.15);
  --shadow-primary: 0 0.25rem 0.75rem rgba(90, 103, 216, 0.3);
  --shadow-success: 0 0.25rem 0.375rem rgba(104, 211, 145, 0.2);
  --shadow-success-hover: 0 0.5rem 0.9375rem rgba(104, 211, 145, 0.3);
  --transition-fast: all 0.2s;
  --transition-normal: all 0.3s;
}

/* Dark theme */
[data-theme='dark'] {
  --primary: #9f7aea;
  --primary-dark: #b794f4;
  --secondary: #5a67d8;
  --secondary-dark: #4c51bf;
  --bg-gradient-start: #0f172a;
  --bg-gradient-end: #1e1b4b;
  --bg-white: rgba(15, 23, 42, 0.95);
  --bg-light: rgba(30, 27, 75, 0.9);
  --bg-light-blue: rgba(159, 122, 234, 0.1);
  --bg-dark: #0a0a1a;
  --bg-darker: #050510;
  --bg-code: #0f0f23;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dark: #e2e8f0;
  --text-light: #f8fafc;
  --text-code: #c084fc;
  --border-light: #334155;
  --border-medium: #475569;
  --border-dark: #1e293b;
  --border-blue: #5b21b6;
  --code-bg: #0a0a1a;
  --code-text: #c084fc;
  --linkedin: #3b82f6;
  --linkedin-dark: #60a5fa;
  --tip-bg: #422006;
  --tip-text: #fbbf24;
  --tip-border: #f59e0b;
  --shadow-sm: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.3);
  --shadow-md: 0 0.5rem 0.9375rem rgba(159, 122, 234, 0.2);
  --shadow-lg: 0 1.875rem 3.75rem rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 0.25rem 0.75rem rgba(159, 122, 234, 0.4);
  --shadow-success: 0 0.25rem 0.375rem rgba(168, 85, 247, 0.3);
  --shadow-success-hover: 0 0.5rem 0.9375rem rgba(168, 85, 247, 0.4);
}

[data-theme='dark'] .strength-text {
  color: #94a3b8;
  font-weight: 600;
}

[data-theme='dark'] .site-description,
[data-theme='dark'] p[data-i18n='subtitle'] {
  color: var(--text-secondary);
}

body {
  font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  background: linear-gradient(
    135deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.9375rem;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(137, 148, 247, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 191, 255, 0.12) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  animation: subtleGridMove 8s linear infinite;
}

[data-theme='dark'] body::before {
  background-image:
    linear-gradient(rgba(159, 122, 234, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 122, 234, 0.15) 1px, transparent 1px);
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(90, 103, 216, 0.08) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(159, 122, 234, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(90, 103, 216, 0.06) 0%,
      transparent 35%
    );
  pointer-events: none;
  z-index: 0;
  animation: glowWave 12s ease-in-out infinite;
}

[data-theme='dark'] body::after {
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(159, 122, 234, 0.15) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(159, 122, 234, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(159, 122, 234, 0.12) 0%,
      transparent 35%
    );
}

@keyframes subtleGridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

@keyframes glowWave {
  0% {
    opacity: 0.3;
    background-position: 0% 0%;
  }
  25% {
    opacity: 0.5;
    background-position: 10% 20%;
  }
  50% {
    opacity: 0.6;
    background-position: 30% 40%;
  }
  75% {
    opacity: 0.4;
    background-position: 20% 10%;
  }
  100% {
    opacity: 0.3;
    background-position: 0% 0%;
  }
}

.background-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(90, 103, 216, 0.02) 30px,
    rgba(90, 103, 216, 0.02) 60px
  );
  pointer-events: none;
  z-index: 0;
  animation: rotateAura 40s linear infinite;
}

[data-theme='dark'] .background-aura {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 30px,
    rgba(159, 122, 234, 0.05) 30px,
    rgba(159, 122, 234, 0.05) 60px
  );
}

@keyframes rotateAura {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1.2);
  }
}

.container {
  background-color: var(--bg-white);
  backdrop-filter: blur(10px);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  padding: 1.875rem;
  max-width: 87.5rem;
  width: 100%;
  position: relative;
  z-index: 1;
  transition: var(--transition-normal);
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-normal);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(90, 103, 216, 0.5);
}

[data-theme='dark'] .theme-toggle {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.theme-toggle .sun-icon {
  display: inline-block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme='dark'] .theme-toggle .sun-icon {
  display: none;
}

[data-theme='dark'] .theme-toggle .moon-icon {
  display: inline-block;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.logo-circle {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateLogo 12s linear infinite;
}

@keyframes rotateLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.logo-circle svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(90, 103, 216, 0.3));
}

[data-theme='dark'] .logo-circle svg {
  filter: drop-shadow(0 0 8px rgba(159, 122, 234, 0.5));
}

.logo-text {
  flex: 1;
  max-width: 420px;
}

.logo-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #4c51bf, #9f7aea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.3;
}

[data-theme='dark'] .logo-title {
  background: linear-gradient(135deg, #9f7aea, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
  letter-spacing: 1.5;
}

.language-switcher {
  display: flex;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 0.625rem;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  color: white;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.lang-btn:hover::before {
  left: 100%;
}

.lang-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-primary);
}

.lang-btn.active {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--secondary-dark)
  );
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.4);
}

.site-description {
  font-size: 1.875rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 0.625rem;
  font-weight: 600;
  line-height: 1.3;
}

h2 {
  color: var(--text-secondary);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 0.9375rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid var(--border-light);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.125rem;
  left: 0;
  width: 50px;
  height: 0.125rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.interactive-guide {
  background: var(--bg-light);
  border-radius: var(--border-radius-xl);
  padding: 1.25rem;
  margin: 2.5rem 0 0.9375rem;
  border: 0.0625rem solid var(--border-light);
  backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.interactive-guide:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9375rem;
  margin: 0.9375rem 0;
}

.step {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  backdrop-filter: blur(5px);
}

[data-theme='dark'] .step {
  background: rgba(30, 27, 75, 0.8);
}

.step:hover {
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-md);
  background: white;
}

[data-theme='dark'] .step:hover {
  background: var(--bg-dark);
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.step-number {
  width: 1.5rem;
  height: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8em;
  box-shadow: 0 0 8px rgba(90, 103, 216, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.guide-tip {
  margin-top: 0.9375rem;
  padding: 0.625rem 0.9375rem;
  background: var(--tip-bg);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--tip-text);
  border-left: 0.25rem solid var(--tip-border);
  font-size: 1rem;
}

.tip-icon {
  font-size: 1.2em;
}

.input-group {
  background-color: var(--bg-light);
  padding: 1.5625rem;
  border-radius: var(--border-radius-lg);
  margin: 1.25rem 0;
  display: flex;
  gap: 0.9375rem;
  flex-wrap: wrap;
  align-items: center;
  border: 0.0625rem solid var(--border-light);
  backdrop-filter: blur(5px);
}

.input-group label {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 1.125rem;
  min-width: 8.125rem;
}

.input-group input {
  flex: 2;
  min-width: 15.625rem;
  padding: 0.75rem 1.125rem;
  border: 0.125rem solid var(--border-light);
  border-radius: 0.625rem;
  font-size: 1em;
  transition: var(--transition-normal);
  background: white;
  color: var(--text-primary);
}

[data-theme='dark'] .input-group input {
  background: var(--bg-dark);
  color: var(--text-primary);
  border-color: var(--border-dark);
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1875rem rgba(90, 103, 216, 0.2);
}

.input-group button {
  flex: 0 0 auto;
  padding: 0.75rem 2.1875rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 0.625rem;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  letter-spacing: 0.0313rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.input-group button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.input-group button:hover {
  transform: translateY(-0.0625rem);
  box-shadow: var(--shadow-primary);
}

.password-settings {
  background: var(--bg-light-blue);
  padding: 1.125rem 1.25rem;
  border-radius: var(--border-radius-lg);
  margin: 1.25rem 0;
  border: 0.0625rem solid var(--border-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  backdrop-filter: blur(5px);
}

.password-settings h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 24px;
}

.password-options {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.password-options label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-full);
  transition: var(--transition-fast);
}

.password-options label:hover {
  background: rgba(90, 103, 216, 0.1);
}

.password-options input[type='radio'] {
  width: 0.875rem;
  height: 0.875rem;
  accent-color: var(--primary);
}

.password-note {
  margin-left: auto;
  background: var(--bg-light);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme='dark'] .password-note {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.password-note::before {
  content: 'ℹ️';
  font-size: 0.9rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5625rem;
  margin-bottom: 1.875rem;
}

.result-section {
  background-color: var(--bg-light);
  padding: 1.25rem;
  border-radius: var(--border-radius-lg);
  border: 0.0625rem solid var(--border-light);
  backdrop-filter: blur(5px);
  transition: var(--transition-normal);
}

.result-section:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.result-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 1rem;
  background-color: white;
  border-radius: var(--border-radius-md);
  border: 0.0625rem solid var(--border-light);
  transition: var(--transition-fast);
  flex-wrap: wrap;
  gap: 0.5rem;
}

[data-theme='dark'] .result-item {
  background-color: var(--bg-dark);
  border-color: var(--border-dark);
}

.result-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(90, 103, 216, 0.15);
}

.label {
  font-weight: 600;
  min-width: 8.125rem;
  color: var(--text-muted);
  padding-left: 0.3125rem;
  font-size: 1rem;
}

.result-item code,
.code-section pre {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.result-item code {
  flex: 1;
  background: linear-gradient(135deg, #f5f5ff, #ffffff);
  padding: 0.375rem 0.625rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.875em;
  color: #4c51bf;
  margin: 0 0.625rem;
  overflow-x: auto;
  white-space: nowrap;
  border: 0.0625rem solid var(--border-light);
  min-width: 7.5rem;
}

[data-theme='dark'] .result-item code {
  background: linear-gradient(135deg, #1e1b4b, #0a0a1a);
  color: #c084fc;
  border-color: var(--border-dark);
}

.copy-btn,
.refresh-btn {
  background: none;
  border: 0.0625rem solid var(--border-medium);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.375rem 0.75rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  background-color: white;
  color: #4a5568;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

[data-theme='dark'] .copy-btn,
[data-theme='dark'] .refresh-btn {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  border-color: var(--border-dark);
}

.copy-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
  transform: translateY(-0.0625rem);
  box-shadow: 0 2px 8px rgba(90, 103, 216, 0.3);
}

.refresh-btn {
  padding: 0.375rem 0.625rem;
  font-size: 1em;
}

.refresh-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
  transform: translateY(-0.0625rem);
  box-shadow: 0 2px 8px rgba(90, 103, 216, 0.3);
}

.password-strength {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: white;
  border-radius: var(--border-radius-md);
  border: 0.0625rem solid var(--border-light);
}

[data-theme='dark'] .password-strength {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.strength-meter {
  height: 0.375rem;
  background: #edf2f7;
  border-radius: 0.1875rem;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

[data-theme='dark'] .strength-meter {
  background: #334155;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition:
    width 0.3s,
    background-color 0.3s;
}

.strength-text {
  font-size: 0.875rem;
  font-weight: 500;
}

.code-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5625rem;
  margin: 1.875rem 0 1.5625rem;
}

.code-section {
  background-color: var(--bg-dark);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem;
  border: 0.0625rem solid var(--border-dark);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 21.875rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.code-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--secondary),
    var(--primary)
  );
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.code-section h3 {
  color: var(--text-light);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.code-section pre {
  background-color: var(--code-bg);
  color: var(--code-text);
  padding: 0.9375rem;
  border-radius: var(--border-radius-md);
  overflow-x: auto;
  overflow-y: auto;
  font-size: 0.85em;
  line-height: 1.5;
  margin: 0.75rem 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  word-break: break-word;
  border: 0.0625rem solid var(--border-dark);
  flex: 1;
  max-height: 15.625rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.code-section-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  width: 100%;
}

.code-section .copy-btn {
  background-color: #2d3748;
  border-color: #4a5568;
  color: var(--text-light);
  width: 100%;
  justify-content: center;
  padding: 0.625rem;
  font-size: 1rem;
  box-sizing: border-box;
  border-radius: var(--border-radius-sm);
}

[data-theme='dark'] .code-section .copy-btn {
  background-color: var(--bg-dark);
  border-color: var(--border-dark);
}

.code-section .copy-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: white;
}

.export-section {
  display: flex;
  justify-content: center;
  margin: 1.5625rem 0;
}

.export-btn {
  padding: 0.75rem 2.5rem;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border: none;
  border-radius: 3.125rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-success);
  border: 0.0625rem solid rgba(255, 255, 255, 0.2);
  min-width: 12.5rem;
  position: relative;
  overflow: hidden;
}

.export-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.export-btn:hover::before {
  left: 100%;
}

.export-btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-success-hover);
}

.btn-icon {
  font-size: 1.2em;
  line-height: 1;
}

.footer-note {
  margin: 1.5625rem 0;
  padding: 0.9375rem 1.125rem;
  background: linear-gradient(
    135deg,
    rgb(35 47 156 / 18%),
    rgba(159, 122, 234, 0.08)
  );
  border-radius: 0.625rem;
  border-left: 0.25rem solid var(--primary);
  backdrop-filter: blur(5px);
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

[data-theme='dark'] .footer-note {
  background: linear-gradient(
    135deg,
    rgba(159, 122, 234, 0.15),
    rgba(90, 103, 216, 0.1)
  );
}

.footer-note p {
  color: var(--text-dark);
  font-size: 1em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1.5625rem;
  border-top: 0.125rem solid var(--border-light);
}

.footer-content {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-size: 1.1em;
  color: var(--text-muted);
  margin-bottom: 0.9375rem;
  font-weight: 500;
}

.footer-divider {
  height: 0.125rem;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-light),
    transparent
  );
  margin: 0.9375rem 0;
}

.copyright-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-block: 1.25rem;
  color: var(--text-muted);
  font-size: 0.875em;
}

.copyright-year,
.copyright-rights {
  color: var(--text-muted);
}

.linkedin-link {
  color: var(--linkedin);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-normal);
}

.linkedin-link:hover {
  color: var(--linkedin-dark);
  text-decoration: underline;
}

.code-section pre::-webkit-scrollbar {
  height: 0.375rem;
  width: 0.375rem;
}

.code-section pre::-webkit-scrollbar-track {
  background: var(--bg-dark);
  border-radius: 0.1875rem;
}

.code-section pre::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 0.1875rem;
}

.code-section pre::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

.logo-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, #4c51bf, #9f7aea, #4c51bf);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1.3;
  display: inline-block;
  border-right: 3px solid #5a67d8;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation:
    typeWriter 1.5s steps(22) forwards,
    gradientShift 3s ease infinite,
    blinkCursor 0.75s step-end infinite;
  animation-delay: 0s, 0s, 1.5s;
}

@keyframes typeWriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes blinkCursor {
  from,
  to {
    border-right-color: #5a67d8;
  }
  50% {
    border-right-color: transparent;
  }
}

/* ========== FAQ SECTION ========== */
.faq-section {
  margin: 2.5rem 0 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(247, 250, 252, 0.9),
    rgba(237, 242, 247, 0.9)
  );
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(5px);
}

[data-theme='dark'] .faq-section {
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.9),
    rgba(15, 23, 42, 0.9)
  );
  border-color: var(--border-dark);
}

.faq-section h3 {
  margin-bottom: 1.5rem;
  font-size: 24px;
  text-align: center;
  color: var(--text-dark);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-light);
}

[data-theme='dark'] .faq-item {
  background: var(--bg-dark);
  border-color: var(--border-dark);
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-dark);
  background: white;
  transition: all 0.25s ease;
  user-select: none;
}

[data-theme='dark'] .faq-question {
  background: var(--bg-dark);
  color: var(--primary);
}

.faq-question span:nth-child(2) {
  flex: 1;
  transition: color 0.2s ease;
}

.faq-question:hover span:nth-child(2) {
  color: var(--primary);
}

.accordion-icon {
  font-size: 0.8rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-muted);
}

.faq-item.active .accordion-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.3s ease,
    padding 0.3s ease;
  padding: 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
  background: white;
  opacity: 0;
}

[data-theme='dark'] .faq-answer {
  background: var(--bg-dark);
}

.faq-item.active .faq-answer {
  max-height: 800px;
  padding: 1rem 1.25rem 1rem 1.25rem;
  opacity: 1;
}

.faq-answer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition:
    color 0.2s ease,
    text-decoration 0.2s ease;
}

.faq-answer a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.faq-answer code {
  background: rgba(90, 103, 216, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

[data-theme='dark'] .faq-answer code {
  background: rgba(159, 122, 234, 0.2);
  color: var(--primary);
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--border-light);
  transition: all 0.2s ease;
  transform: translateX(0);
}

.feature-list li:hover {
  transform: translateX(5px);
  border-bottom-color: var(--primary);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li code {
  background: rgba(90, 103, 216, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--primary-dark);
}

.faq-list-item {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px dashed var(--border-light);
  transition: all 0.2s ease;
  transform: translateX(0);
}

.faq-list-item:last-child {
  border-bottom: none;
}

/* ========== ADAPTABILITY ========== */
@media screen and (max-width: 1024px) {
  .container {
    padding: 1.5625rem;
  }
  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .label {
    min-width: 7.5rem;
  }
}

@media screen and (max-width: 768px) {
  body {
    padding: 0.625rem;
  }
  .container {
    padding: 1.25rem;
  }
  .logo-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .logo-text {
    order: 1;
    flex: 1;
  }
  .language-switcher {
    order: 2;
    margin-left: 0;
  }
  .logo-title {
    font-size: 1.5625rem;
  }
  .site-description {
    font-size: 1.625rem;
  }
  .input-group {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }
  .input-group label {
    min-width: auto;
  }
  .input-group input {
    min-width: 100%;
    width: 100%;
  }
  .input-group button {
    width: 100%;
  }
  .password-settings {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .password-options {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .password-note {
    margin-left: 0;
    width: 100%;
    text-align: center;
    justify-content: center;
    white-space: normal;
  }

  .results-grid,
  .code-blocks {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .code-section {
    min-height: 18.75rem;
    width: 100%;
  }
  .code-section pre {
    font-size: 0.8em;
    padding: 0.75rem;
    max-height: 12.5rem;
  }
  .export-btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
  }
  .faq-section {
    padding: 1rem;
  }
  .faq-section h3 {
    font-size: 1.5rem;
  }
  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
  .faq-item.active .faq-answer {
    padding: 0.875rem 1rem;
  }
  .feature-list li {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }
  .theme-toggle {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 600px) {
  .container {
    padding: 0.9375rem;
  }
  .logo-circle {
    display: none;
  }
  .logo-subtitle {
    font-size: 0.875rem;
  }
  .guide-steps {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  .guide-tip {
    align-items: flex-start;
  }
  .step {
    padding: 0.625rem;
  }
  .step-content p {
    font-size: 0.875rem;
  }
  .input-group {
    padding: 0.9375rem;
  }
  .input-group input {
    padding: 0.625rem 0.9375rem;
    font-size: 0.95em;
  }
  .result-item {
    flex-direction: column;
    align-items: stretch;
  }
  .label {
    min-width: auto;
    width: 100%;
    padding-left: 0;
    margin-bottom: 0.3125rem;
  }
  .result-item code {
    margin: 0.3125rem 0;
    width: 100%;
    font-size: 0.85em;
    padding: 0.5rem;
    word-break: break-all;
  }
  .copy-btn,
  .refresh-btn {
    width: 100%;
    justify-content: center;
    margin-left: 0;
  }
  .refresh-btn {
    margin-top: 0.3125rem;
  }
  .code-section {
    padding: 0.75rem;
    min-height: 17.5rem;
    width: 100%;
  }
  .code-section h3 {
    font-size: 1em;
  }
  .code-section pre {
    padding: 0.625rem;
    font-size: 0.75em;
    max-height: 11.25rem;
  }
  .footer-note p {
    font-size: 1rem;
    flex-wrap: wrap;
    text-align: left;
  }
  .footer-text {
    font-size: 1em;
  }
  .copyright-wrapper {
    flex-direction: column;
    gap: 0.3125rem;
    padding-block: 0.625rem;
    font-size: 0.875rem;
  }
  .interactive-guide,
  .input-group,
  .password-settings,
  .result-section {
    padding: 0.625rem;
  }
  .logo-text {
    margin-bottom: 0.625rem;
  }
  .faq-section {
    padding: 0.875rem;
  }
  .faq-section h3,
  .password-settings h3,
  h2,
  h3 {
    font-size: 20px;
  }
  .faq-question {
    padding: 0.75rem 0.875rem;
  }
  .faq-answer {
    font-size: 0.875rem;
  }
  .faq-item.active .faq-answer {
    padding: 0.75rem 0.875rem;
  }
  .feature-list li {
    font-size: 0.8rem;
    padding: 0.25rem 0;
  }
  body::before {
    animation: none;
  }
  body::after {
    animation: none;
    opacity: 0.3;
  }
  .background-aura {
    animation: none;
  }
  .logo-circle {
    animation: none;
  }
  .code-section::before {
    animation: none;
  }
  .logo-title {
    animation: gradientShift 3s ease infinite;
    white-space: normal;
    width: auto;
    border-right: none;
  }
  .step:hover,
  .result-item:hover,
  .copy-btn:hover,
  .refresh-btn:hover,
  .export-btn:hover,
  .lang-btn:hover,
  .input-group button:hover {
    transform: none;
  }
  .input-group button::before,
  .export-btn::before,
  .lang-btn::before {
    animation: none;
    display: none;
  }
  .logo-container {
    flex-wrap: wrap;
    gap: 0.75rem;
    flex-direction: column;
    justify-content: left;
    align-items: flex-start;
  }
  .theme-toggle {
    bottom: 0.875rem;
    right: 0.875rem;
    width: 36px;
    height: 36px;
  }
}

@media screen and (max-width: 420px) {
  .logo-title {
    font-size: 1.375rem;
  }
}

@media screen and (max-width: 380px) {
  .container {
    padding: 0.625rem;
  }
  .logo-circle {
    width: 40px;
    height: 40px;
  }
  .logo-title {
    font-size: 1.25rem;
  }
  .logo-subtitle {
    font-size: 0.75rem;
  }
  .lang-btn {
    padding: 10px 20px;
    font-size: 0.7em;
  }
  .password-note {
    font-size: 0.75em;
    padding: 0.25rem 0.5rem;
  }
  .code-section {
    min-height: 15.625rem;
    padding: 0.625rem;
  }
  .code-section pre {
    padding: 0.5rem;
    font-size: 0.7em;
    max-height: 10rem;
  }
  .export-btn {
    font-size: 0.95em;
    padding: 0.625rem 0.9375rem;
  }
  .footer-text {
    font-size: 0.85em;
  }
  .copyright-wrapper {
    font-size: 0.75em;
    padding-block: 0.75rem;
  }
  .theme-toggle {
    bottom: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}
