/* ==========================================================================
   PDFMaster - Protect PDF (PDF Locker)
   ========================================================================== */

/* ===== DESIGN TOKENS ===== */
:root {
  --accent: #e8372a;
  --accent-dark: #c42d21;
  --accent-light: rgba(232, 55, 42, 0.08);
  --accent-glow: rgba(232, 55, 42, 0.25);

  --shield-green: #10b981;
  --shield-green-dark: #059669;
  --shield-green-bg: rgba(16, 185, 129, 0.1);
  --shield-green-border: rgba(16, 185, 129, 0.35);

  --warning-orange: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);

  --danger-red: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);

  --font-heading: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;
  --max-w: 1240px;
  --nav-h: 68px;
}

[data-theme="light"] {
  --bg: #f8f7f5;
  --surface: #ffffff;
  --surface-2: #f2f1ef;
  --surface-3: #eae9e6;
  --border: #e4e2de;
  --border-focus: #c8c5be;
  --text: #1a1917;
  --text-2: #4a4845;
  --text-3: #7a7875;
  --nav-bg: rgba(248, 247, 245, 0.94);
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
  --modal-overlay: rgba(15, 15, 15, 0.65);
  --badge-bg: #f1f0ee;
  --thumb-bg: #ffffff;
}

[data-theme="dark"] {
  --bg: #111110;
  --surface: #1c1b1a;
  --surface-2: #252422;
  --surface-3: #2e2c2a;
  --border: #333230;
  --border-focus: #4a4845;
  --text: #f0ede8;
  --text-2: #b5b0a8;
  --text-3: #7a7875;
  --nav-bg: rgba(17, 17, 16, 0.94);
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --modal-overlay: rgba(0, 0, 0, 0.82);
  --badge-bg: #272523;
  --thumb-bg: #181716;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition:
    background var(--transition),
    color var(--transition);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--transition),
    border-color var(--transition);
}

.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Header Buttons */
.theme-toggle,
.recovery-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.2s,
    color 0.2s;
  color: var(--text-2);
  flex-shrink: 0;
  cursor: pointer;
}

.theme-toggle:hover,
.recovery-btn:hover {
  background: rgba(232, 55, 42, 0.07);
  border-color: rgba(232, 55, 42, 0.18);
  color: var(--accent);
  transform: scale(1.08);
}

.theme-toggle svg,
.recovery-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.recovery-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(232, 55, 42, 0.6);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(232, 55, 42, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(232, 55, 42, 0);
  }
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition:
    background 0.2s,
    border-color 0.2s;
}

.hamburger-btn:hover {
  background: var(--surface-2);
  border-color: var(--border-focus);
}

.h-bar {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* ===== SIDE MENU (MOBILE) ===== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
}

.side-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.side-menu.active {
  right: 0;
}

.side-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.side-menu-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.close-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}

.close-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}

.side-nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.side-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item a {
  color: var(--text-2);
  transition: color var(--transition);
}

.breadcrumb__item a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  color: var(--text-3);
  user-select: none;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 48px 0 32px;
  text-align: center;
}

.hero-content {
  max-width: 860px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  border: 1px solid rgba(232, 55, 42, 0.2);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin-bottom: 16px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b5e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  display: inline;
}


.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 28px;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}

.hero-badge svg {
  color: var(--accent);
}

/* ===== TOOL SECTION & UPLOAD ZONE ===== */
.tool-section {
  padding-bottom: 60px;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
  background: var(--surface);
  transition: all var(--transition);
  cursor: pointer;
  max-width: 800px;
  margin: 0 auto;
}

.upload-zone:hover,
.upload-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.upload-zone__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.upload-zone__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.upload-zone__sub {
  color: var(--text-3);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

.upload-zone__formats {
  color: var(--text-3);
  font-size: 0.82rem;
  margin-top: 18px;
}

#fileInput {
  display: none;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 3px 12px rgba(232, 55, 42, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(232, 55, 42, 0.4);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(232, 55, 42, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 10px;
  transition: all var(--transition);
}

.btn-ghost:hover {
  background: var(--accent-light);
  border-color: var(--accent);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 14px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
}

/* ===== ACTIVE WORKSPACE ===== */
.workspace {
  display: none;
  margin-top: 10px;
}

.file-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.file-info-bar__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.file-info-bar__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.file-info-bar__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  word-break: break-all;
}

.file-info-bar__size {
  font-size: 0.84rem;
  color: var(--text-3);
}

/* ===== 2-COLUMN WORKSPACE GRID ===== */
.workspace-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  margin-bottom: 30px;
  align-items: start;
}

@media (max-width: 900px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* Configuration Cards */
.security-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.config-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.config-card__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.config-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.config-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.config-card__desc {
  font-size: 0.86rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Inputs & Form Controls */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.required-tag {
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 500;
}

.match-tag {
  font-size: 0.76rem;
  font-weight: 600;
}

.match-tag.is-match {
  color: var(--shield-green);
}

.match-tag.is-mismatch {
  color: var(--danger-red);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 12px 42px 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.94rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-icon-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  padding: 6px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.btn-icon-toggle:hover {
  color: var(--accent);
}

/* Real-Time Password Strength Meter */
.strength-meter-wrap {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.strength-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.strength-val {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
}

.strength-val.strength-none {
  color: var(--text-3);
}

.strength-val.strength-weak {
  color: var(--danger-red);
}

.strength-val.strength-fair {
  color: var(--warning-orange);
}

.strength-val.strength-good {
  color: #3b82f6;
}

.strength-val.strength-strong {
  color: var(--shield-green);
}

.strength-val.strength-invulnerable {
  color: #8b5cf6;
}

.entropy-val {
  font-size: 0.74rem;
  color: var(--text-3);
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 6px;
}

.strength-bar {
  background: var(--border);
  border-radius: 3px;
  transition: background 0.3s ease;
}

.strength-bar.fill-weak {
  background: var(--danger-red);
}

.strength-bar.fill-fair {
  background: var(--warning-orange);
}

.strength-bar.fill-good {
  background: #3b82f6;
}

.strength-bar.fill-strong {
  background: var(--shield-green);
}

.strength-bar.fill-invulnerable {
  background: #8b5cf6;
}

.crack-time-hint {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 8px;
}

/* Permissions Checklist */
.permissions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perm-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.perm-item:hover {
  background: var(--surface-3);
  border-color: var(--border-focus);
}

.perm-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  cursor: pointer;
}

.perm-item__content {
  flex: 1;
}

.perm-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.perm-item__sub {
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* Owner Password Accordion */
.owner-accordion {
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.owner-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: left;
  padding: 4px 0;
}

.owner-accordion__toggle:hover {
  color: var(--accent);
}

.owner-accordion__content {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

.owner-accordion__hint {
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* Algorithm Selector Cards */
.algo-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.algo-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.algo-card:hover {
  background: var(--surface-3);
}

.algo-card.is-active {
  border-color: var(--accent);
  background: var(--accent-light);
}

.algo-card input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 3px;
  cursor: pointer;
}

.algo-card__content {
  flex: 1;
}

.algo-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.algo-card__name {
  font-size: 0.92rem;
  font-weight: 700;
}

.algo-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-2);
}

.algo-badge-green {
  background: var(--shield-green-bg);
  color: var(--shield-green);
  border: 1px solid var(--shield-green-border);
}

.algo-card__desc {
  font-size: 0.8rem;
  color: var(--text-3);
  line-height: 1.45;
}

/* ===== RIGHT COLUMN: SECURITY SHIELD & PREVIEW ===== */
.preview-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shield-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.shield-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all var(--transition);
}

.shield-icon.is-secure {
  background: var(--shield-green-bg);
  color: var(--shield-green);
}

.shield-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.shield-status {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--danger-bg);
  color: var(--danger-red);
  margin-bottom: 20px;
}

.shield-status.is-ready {
  background: var(--shield-green-bg);
  color: var(--shield-green);
}

.shield-specs {
  list-style: none;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
}

.shield-specs li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.shield-spec__label {
  color: var(--text-3);
}

.shield-privacy-note {
  font-size: 0.78rem;
  color: var(--text-3);
  background: var(--surface-2);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

/* Document Quick Preview Strip */
.preview-strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.preview-strip-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.preview-strip-card__header h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.badge-sm {
  font-size: 0.76rem;
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-2);
  font-weight: 600;
}

.preview-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 4px;
}

.thumb-card {
  background: var(--thumb-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  text-align: center;
  position: relative;
}

.thumb-card canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #ffffff;
}

.thumb-card__num {
  font-size: 0.7rem;
  color: var(--text-3);
  margin-top: 4px;
  font-weight: 600;
}

/* ===== BOTTOM ACTION BAR ===== */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  bottom: 20px;
  z-index: 50;
  gap: 16px;
}

@media (max-width: 650px) {
  .action-bar {
    flex-direction: column;
    text-align: center;
  }
  .action-bar__btn-wrap {
    width: 100%;
  }
  .action-bar__btn-wrap .btn-primary {
    width: 100%;
  }
}

.action-bar__status {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ===== SUCCESS MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--modal-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: scaleUp 0.2s ease;
}

@keyframes scaleUp {
  from {
    transform: scale(0.96);
  }
  to {
    transform: scale(1);
  }
}

.modal-icon-success {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--shield-green-bg);
  color: var(--shield-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 20px;
}

.modal-summary-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  font-size: 0.86rem;
}

.modal-summary-row {
  display: flex;
  justify-content: space-between;
}

.modal-summary-row span {
  color: var(--text-3);
}

.modal-warning {
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--text);
  font-size: 0.8rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  text-align: left;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== EDUCATIONAL & SEO CONTENT ===== */
.info-section {
  padding: 40px 0 60px;
}

.section-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-2);
  max-width: 650px;
  margin-bottom: 36px;
}

/* Steps Grid */
.guide-card {
  margin-bottom: 70px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* Deep Tech Explanation */
.tech-explanation {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-bottom: 70px;
  box-shadow: var(--shadow-sm);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

.tech-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.3;
}

.tech-text {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 14px;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.tech-list li {
  font-size: 0.88rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
}

.tech-list li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1.3rem;
  top: -2px;
}

/* Crypto Card Aesthetic */
.crypto-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-family: monospace;
}

.crypto-card__header {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crypto-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.crypto-dot.red {
  background: #ef4444;
}

.crypto-dot.yellow {
  background: #f59e0b;
}

.crypto-dot.green {
  background: #10b981;
}

.crypto-title {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 8px;
}

.crypto-card__body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.crypto-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.crypto-k {
  color: #94a3b8;
}

.crypto-v {
  color: #e2e8f0;
  font-weight: 600;
  text-align: right;
}

.crypto-v.highlight-green {
  color: #34d399;
}

/* Features Grid */
.features-block {
  margin-bottom: 70px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.feat-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feat-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feat-card__desc {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* FAQ Block */
.faq-block {
  margin-bottom: 70px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q svg {
  color: var(--text-3);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] .faq-q svg {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  padding: 0 22px 20px;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Related Tools */
.related-block {
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.rel-tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.rel-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.rel-tool-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.rel-tool-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.rel-tool-card p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.45;
  flex: 1;
  margin-bottom: 14px;
}

.rel-tool-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 850px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer__col ul li a {
  font-size: 0.88rem;
  color: var(--text-2);
  transition: color var(--transition);
}

.footer__col ul li a:hover {
  color: var(--accent);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.5;
  margin-bottom: 18px;
  max-width: 320px;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.footer__social-link:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom-links a:hover {
  color: var(--accent);
}

.sep {
  opacity: 0.4;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3000;
  pointer-events: none;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: var(--text);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}

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

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.back-top.active {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ===== ZERO-TRACE RAM GUARANTEE BANNER ===== */
.zero-trace-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--shield-green-bg);
  border: 1px solid var(--shield-green-border, rgba(16, 185, 129, 0.3));
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.zero-trace-banner__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--shield-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zero-trace-banner__content {
  flex: 1;
}

.zero-trace-banner__tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--shield-green);
  margin-bottom: 4px;
}

.zero-trace-banner__desc {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
  margin: 0;
}

.zero-trace-banner__desc strong {
  color: var(--text);
}

/* ===== SOCIAL PROOF TRUST METRICS BAR ===== */
.hero-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-2);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-item strong {
  color: var(--text);
  font-weight: 700;
}

/* ===== COMPARISON MATRIX TABLE ===== */
.comparison-block {
  margin-bottom: 70px;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--surface-2);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text);
  width: 28%;
}

.comparison-table .col-highlight {
  background: rgba(16, 185, 129, 0.04);
  color: var(--text);
  font-weight: 600;
}

[data-theme="dark"] .comparison-table .col-highlight {
  background: rgba(16, 185, 129, 0.07);
}

.comparison-table th.col-highlight {
  color: var(--shield-green);
  border-bottom: 2px solid var(--shield-green);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--surface-2);
}

.comparison-table tr:hover td.col-highlight {
  background: rgba(16, 185, 129, 0.08);
}

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--shield-green);
  font-weight: 700;
}

.tag-cross {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--danger-red);
}

/* ===== ENTERPRISE & INDUSTRY USE CASES ===== */
.industries-block {
  margin-bottom: 70px;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 992px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .industries-grid {
    grid-template-columns: 1fr;
  }
}

.industry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--border-focus);
}

.industry-card__icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-block;
}

.industry-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.industry-card__desc {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 14px;
}

.industry-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-3);
}
