  :root {
    --bg: #0a0a0f;
    --surface: #12121a;
    --surface2: #1a1a26;
    --border: #2a2a3d;
    --accent1: #6c63ff;
    --accent2: #ff6584;
    --accent3: #43e97b;
    --accent4: #f7971e;
    --text: #f0f0f8;
    --text-muted: #8080a0;
    --gradient: linear-gradient(135deg, #6c63ff, #ff6584);
    --gradient2: linear-gradient(135deg, #43e97b, #38f9d7);
    --gradient3: linear-gradient(135deg, #f7971e, #ffd200);
    --radius: 16px;
    --radius-sm: 10px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Animated background */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% 10%, rgba(108,99,255,0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255,101,132,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 50% 60% at 50% 50%, rgba(67,233,123,0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  /* ===== NAV ===== */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
  }

  .nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    letter-spacing: -0.02em;
    text-decoration: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
  }

  .nav-link {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 7px;
  }

  .nav-link:hover { color: var(--text); background: var(--surface2); }
  .nav-link.active {
    color: var(--text);
    background: var(--surface2);
    border-color: var(--border);
  }
  .nav-link .badge {
    font-size: 0.65rem;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1px 6px;
    border-radius: 20px;
    font-weight: 500;
  }
  .nav-link.active .badge {
    background: var(--accent1);
    border-color: transparent;
    color: #fff;
  }
  .nav-link .soon {
    font-size: 0.6rem;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    color: #000;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.03em;
  }

  /* ===== HERO ===== */
  .hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 28px 40px 20px;
    max-width: 760px;
    margin: 0 auto;
  }

  .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108,99,255,0.12);
    border: 1px solid rgba(108,99,255,0.3);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    color: #a09aff;
    margin-bottom: 12px;
    font-weight: 500;
  }
  .hero-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent1); animation: pulse 2s infinite; }

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

  .hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
  }

  .hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 480px;
    margin: 0 auto;
  }

  /* ===== MAIN LAYOUT ===== */
  .main {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px 80px;
  }

  /* ===== FORMAT PILLS ===== */
  .format-section {
    margin-bottom: 28px;
  }

  .format-section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .format-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .format-pill {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.02em;
  }

  .format-pill:hover { border-color: var(--accent1); color: var(--text); }
  .format-pill.active {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(108,99,255,0.35);
  }

  /* ===== CONVERTER CARD ===== */
  .converter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
  }

  .converter-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 40px; right: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
  }

  /* ===== DROPZONE ===== */
  .dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    background: var(--surface2);
  }

  .dropzone:hover, .dropzone.drag-over {
    border-color: var(--accent1);
    background: rgba(108,99,255,0.06);
  }

  .dropzone-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(255,101,132,0.2));
    border: 1px solid rgba(108,99,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.3rem;
    transition: transform 0.3s;
  }

  .dropzone:hover .dropzone-icon { transform: translateY(-3px) scale(1.05); }

  .dropzone h3 {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
  }

  .dropzone p {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 14px;
  }

  .browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 20px rgba(108,99,255,0.3);
  }

  .browse-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(108,99,255,0.4); }

  .supported-formats {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  #fileInput { display: none; }

  /* ===== CONVERSION OPTIONS ===== */
  .options-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: end;
    margin-top: 24px;
  }

  .option-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
  }

  .select-styled {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238080a0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
  }

  .select-styled:focus { border-color: var(--accent1); }
  .select-styled option { background: var(--surface2); }

  .swap-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
    margin-bottom: 0;
    align-self: flex-end;
  }

  .swap-btn:hover {
    border-color: var(--accent1);
    color: var(--accent1);
    transform: rotate(180deg);
  }

  /* ===== QUALITY SLIDER ===== */
  .quality-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .quality-header label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
  }

  .quality-value {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent1);
  }

  input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--surface2);
    outline: none;
    cursor: pointer;
  }

  input[type=range]::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--accent1) var(--val, 85%), var(--surface2) var(--val, 85%));
  }

  input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent1);
    margin-top: -7px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(108,99,255,0.4);
    transition: transform 0.15s;
  }

  input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.2); }

  .quality-presets {
    display: flex;
    gap: 8px;
    margin-top: 12px;
  }

  .quality-preset {
    flex: 1;
    padding: 6px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    text-align: center;
    transition: all 0.18s;
  }

  .quality-preset:hover, .quality-preset.active {
    border-color: var(--accent1);
    color: var(--accent1);
    background: rgba(108,99,255,0.08);
  }

  /* ===== RESIZE OPTIONS ===== */
  .resize-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
  }

  .resize-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    cursor: pointer;
  }

  .resize-toggle-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .toggle-switch {
    width: 40px;
    height: 22px;
    border-radius: 11px;
    background: var(--surface2);
    border: 1px solid var(--border);
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
  }

  .toggle-switch.on { background: var(--accent1); border-color: var(--accent1); }

  .toggle-knob {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  }

  .toggle-switch.on .toggle-knob { left: 20px; }

  .resize-fields {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    display: none;
  }

  .resize-fields.visible { display: grid; }

  .resize-fields input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
  }

  .resize-fields input:focus { border-color: var(--accent1); }
  .resize-fields .x-divider { color: var(--text-muted); font-weight: 700; text-align: center; }

  /* ===== CONVERT BUTTON ===== */
  .convert-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 28px;
    transition: all 0.25s;
    box-shadow: 0 4px 24px rgba(108,99,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108,99,255,0.45);
  }

  .convert-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
  }

  /* ===== FILE QUEUE ===== */
  .file-queue {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
  }

  .file-queue:not(:empty) {
    margin-bottom: 20px;
  }

  .batch-bar:not(.visible) + .file-queue:empty {
    display: none;
  }

  .file-item {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 12px;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    animation: slideIn 0.2s ease;
  }

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

  .file-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    overflow: hidden;
  }

  .file-thumb img { width: 100%; height: 100%; object-fit: cover; }

  .file-info { min-width: 0; }
  .file-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
  }

  .file-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .file-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
  }

  .status-badge {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .status-badge.waiting { background: rgba(128,128,160,0.15); color: var(--text-muted); }
  .status-badge.converting { background: rgba(108,99,255,0.2); color: var(--accent1); }
  .status-badge.done { background: rgba(67,233,123,0.15); color: var(--accent3); }
  .status-badge.error { background: rgba(255,101,132,0.15); color: var(--accent2); }

  .download-btn {
    padding: 5px 14px;
    background: rgba(67,233,123,0.12);
    border: 1px solid rgba(67,233,123,0.3);
    border-radius: 100px;
    color: var(--accent3);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s;
    text-decoration: none;
  }

  .download-btn:hover {
    background: rgba(67,233,123,0.2);
    transform: translateY(-1px);
  }

  .remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.18s;
    line-height: 1;
  }

  .remove-btn:hover { color: var(--accent2); }

  /* ===== PROGRESS BAR ===== */
  .progress-bar-wrap {
    height: 3px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
    width: 80px;
  }

  .progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
  }

  /* ===== STATS ===== */
  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
  }

  .stat-card:nth-child(1)::after { background: var(--gradient); }
  .stat-card:nth-child(2)::after { background: var(--gradient2); }
  .stat-card:nth-child(3)::after { background: var(--gradient3); }

  .stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .stat-card:nth-child(1) .stat-value { color: var(--accent1); }
  .stat-card:nth-child(2) .stat-value { color: var(--accent3); }
  .stat-card:nth-child(3) .stat-value { color: var(--accent4); }

  .stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }

  /* ===== FEATURES ===== */
  .features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
  }

  .feature-card:hover { border-color: rgba(108,99,255,0.4); transform: translateY(-3px); }

  .feature-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .feature-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .feature-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* ===== SECTION TITLE ===== */
  .section-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  /* ===== COMING SOON BANNER ===== */
  .coming-soon-banner {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    display: none;
  }

  .coming-soon-banner.visible { display: block; }

  .coming-soon-banner h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
  }

  .coming-soon-banner p { color: var(--text-muted); font-size: 0.9rem; }

  .coming-soon-emoji { font-size: 3rem; margin-bottom: 16px; }

  /* ===== TOAST ===== */
  .toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .toast {
    padding: 12px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    animation: toastIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    max-width: 320px;
  }

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

  .toast.success { border-color: rgba(67,233,123,0.4); }
  .toast.error { border-color: rgba(255,101,132,0.4); }

  /* ===== FOOTER ===== */
  footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 56px 40px 0;
    margin-top: 40px;
  }

  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
  }

  .footer-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }

  .footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 280px;
  }

  .footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .footer-col { display: flex; flex-direction: column; gap: 10px; }

  .footer-col-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
    width: fit-content;
  }

  .footer-col a:hover { color: var(--text); }

  .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 20px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .footer-brand-inline {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }

  .footer-bottom-right {
    display: flex;
    gap: 20px;
  }

  .footer-bottom-right a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.18s;
  }

  .footer-bottom-right a:hover { color: var(--text); }

  @media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-links-group { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .nav-inner { gap: 12px; overflow-x: auto; }
    .nav-link { font-size: 0.8rem; padding: 6px 10px; }
    .hero { padding: 20px 20px 16px; }
    .main { padding: 0 16px 60px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-row .stat-card:last-child { grid-column: span 2; }
    .features-row { grid-template-columns: 1fr; }
    .options-row { grid-template-columns: 1fr; }
    .swap-btn { width: 100%; border-radius: 8px; }
  }

  /* Batch actions bar */
  .batch-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(108,99,255,0.08);
    border: 1px solid rgba(108,99,255,0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
  }

  .batch-bar.visible { display: flex; }
  .batch-bar-info { font-size: 0.85rem; font-weight: 600; color: var(--accent1); }

  .batch-download-all {
    padding: 7px 18px;
    background: var(--gradient);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
  }

  .batch-download-all:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,99,255,0.35); }

  /* Converting animation */
  @keyframes spin { to { transform: rotate(360deg); } }
  .spinner { display: inline-block; animation: spin 0.8s linear infinite; }

/* ===== VIDEO PAGE SPECIFIC STYLES ===== */

    --gradient-video: linear-gradient(135deg, #f7971e, #ff6584);
      radial-gradient(ellipse 80% 50% at 20% 10%, rgba(247,151,30,0.10) 0%, transparent 60%),
      radial-gradient(ellipse 50% 60% at 50% 50%, rgba(108,99,255,0.05) 0%, transparent 70%);


    background: var(--accent4);
    border: none;
    color: #000;
    font-weight: 700;

    background: rgba(247,151,30,0.12);
    border: 1px solid rgba(247,151,30,0.3);
    color: #ffb347;

  .hero-tag .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent4);
    animation: pulse 2s infinite;
  }
    background: var(--gradient-video);
    margin: 0 auto 24px;
  .ffmpeg-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-muted);
  }

  .ffmpeg-note strong { color: var(--text); }

  /* ===== MAIN ===== */
  .format-section { margin-bottom: 28px; }
  .format-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .format-pill:hover { border-color: var(--accent4); color: var(--text); }
    background: var(--gradient-video);
    box-shadow: 0 4px 16px rgba(247,151,30,0.3);
    background: var(--gradient-video);
    border-color: var(--accent4);
    background: rgba(247,151,30,0.05);
    width: 72px; height: 72px;
    background: linear-gradient(135deg, rgba(247,151,30,0.2), rgba(255,101,132,0.2));
    border: 1px solid rgba(247,151,30,0.3);
  .dropzone p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }
    background: var(--gradient-video);
    box-shadow: 0 4px 20px rgba(247,151,30,0.3);
  .browse-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(247,151,30,0.4); }
  .supported-formats { margin-top: 16px; font-size: 0.75rem; color: var(--text-muted); }
  /* ===== OPTIONS ===== */
  .select-styled:focus { border-color: var(--accent4); }
    width: 46px; height: 46px;
    border-color: var(--accent4);
    color: var(--accent4);
    background: var(--gradient-video);
    box-shadow: 0 4px 24px rgba(247,151,30,0.25);
    box-shadow: 0 8px 32px rgba(247,151,30,0.4);
  .convert-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
  .file-queue:not(:empty) { margin-bottom: 20px; }
    grid-template-columns: 80px 1fr auto;
    gap: 14px;
    width: 80px; height: 52px;
    position: relative;
  .file-thumb video {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 7px;
  }

    align-items: center;
  .status-badge.converting { background: rgba(247,151,30,0.2); color: var(--accent4); }
  .download-btn:hover { background: rgba(67,233,123,0.2); transform: translateY(-1px); }
  /* ===== PROGRESS ===== */
  .progress-wrap {
    width: 100%;
    height: 4px;
    margin-top: 6px;
    background: var(--gradient-video);
    transition: width 0.4s ease;
    width: 0%;
  }

  /* ===== FFMPEG LOADING OVERLAY ===== */
  .ffmpeg-loader {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    text-align: center;
    background: var(--surface2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 20px;
  }

  .ffmpeg-loader.visible { display: flex; }

  .loader-ring {
    width: 48px; height: 48px;
    border: 3px solid var(--border);
    border-top-color: var(--accent4);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
  }

  @keyframes spin { to { transform: rotate(360deg); } }

  .ffmpeg-loader h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
  }

  .ffmpeg-loader p { font-size: 0.82rem; color: var(--text-muted); }

  .ffmpeg-progress-text {
    font-size: 0.78rem;
    color: var(--accent4);
    font-weight: 600;
    font-family: 'Syne', sans-serif;
  }

  /* ===== LOG TERMINAL ===== */
  .log-box {
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #7aff9a;
    max-height: 120px;
    overflow-y: auto;
    margin-top: 16px;
    display: none;
    line-height: 1.6;
  .log-box.visible { display: block; }
  .log-line { opacity: 0.75; }
  .log-line.active { opacity: 1; color: #ffb347; }

  /* ===== BATCH BAR ===== */
  .batch-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(247,151,30,0.08);
    border: 1px solid rgba(247,151,30,0.25);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
  }

  .batch-bar.visible { display: flex; }
  .batch-bar-info { font-size: 0.85rem; font-weight: 600; color: var(--accent4); }

  .batch-download-all {
    padding: 7px 18px;
    background: var(--gradient-video);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
  }

  .batch-download-all:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(247,151,30,0.35); }

    background: var(--surface2);
  .stat-card:nth-child(1)::after { background: var(--gradient-video); }
  .stat-card:nth-child(3)::after { background: var(--gradient); }
  .stat-card:nth-child(1) .stat-value { color: var(--accent4); }
  .stat-card:nth-child(3) .stat-value { color: var(--accent1); }
  /* ===== FEATURES ===== */
  .features-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
  }

  .feature-card {
    border: 1px solid var(--border);
    padding: 24px;
    transition: border-color 0.2s, transform 0.2s;
  .feature-card:hover { border-color: rgba(247,151,30,0.4); transform: translateY(-3px); }
  .feature-icon { font-size: 1.8rem; margin-bottom: 12px; }
  .feature-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
  .feature-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
  /* ===== SPINNER ===== */
  .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
    bottom: 24px; right: 24px;
    max-width: 340px;
  .toast.info { border-color: rgba(247,151,30,0.4); }
  .footer-tagline { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }
  .footer-bottom-right { display: flex; gap: 20px; }
    .swap-btn { width: 100%; border-radius: 8px; height: 40px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-links-group { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .file-item { grid-template-columns: 60px 1fr auto; }

/* ===== SEO INFO BLOCK ===== */
.seo-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 32px;
}

.seo-info-block h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.seo-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.seo-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seo-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.seo-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

/* ===== RELATED CONVERSIONS ===== */
.related-conversions {
  margin-top: 32px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-link {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
  letter-spacing: 0.02em;
}

.related-link:hover {
  border-color: var(--accent1);
  color: var(--text);
  background: rgba(108,99,255,0.08);
}

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

/* ===== CONVERTERS TABLE SECTION ===== */
.conv-table-section {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
  box-sizing: border-box;
}

.conv-table-header {
  text-align: center;
  margin-bottom: 32px;
}

.conv-table-tag {
  display: inline-block;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a09aff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.conv-table-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.conv-table-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== TABLE WRAPPER ===== */
.conv-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ===== TABLE ===== */
.conv-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

/* Column headers */
.conv-table thead th {
  padding: 14px 8px;
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--col-color, var(--text-muted));
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
  white-space: nowrap;
}

/* Corner cell */
.conv-table-corner {
  font-size: 0.52rem !important;
  color: var(--text-muted) !important;
  text-align: center !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  opacity: 0.45;
  border-right: 2px solid var(--border) !important;
  background: var(--surface2) !important;
}

/* Row headers */
.conv-table-row-header {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--row-color, var(--text-muted));
  padding: 0 14px;
  white-space: nowrap;
  border-right: 2px solid var(--border);
  background: var(--surface2);
}

/* Rows */
.conv-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.conv-table tbody tr:last-child {
  border-bottom: none;
}

.conv-table tbody tr:hover td,
.conv-table tbody tr:hover .conv-table-row-header {
  background: rgba(108,99,255,0.04);
}

/* Cells */
.conv-table td {
  padding: 7px 5px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.conv-table td:last-child {
  border-right: none;
}

/* Dash */
.conv-cell-dash {
  display: block;
  text-align: center;
  color: var(--border);
  font-size: 0.75rem;
}

/* Convert button */
.conv-cell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--cell-color, #6c63ff);
  background: color-mix(in srgb, var(--cell-color, #6c63ff) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cell-color, #6c63ff) 30%, transparent);
}

.conv-cell-link:hover {
  background: color-mix(in srgb, var(--cell-color, #6c63ff) 22%, transparent);
  border-color: var(--cell-color, #6c63ff);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--cell-color, #6c63ff) 35%, transparent);
  transform: translateY(-1px) scale(1.06);
}

@media (max-width: 900px) {
  .conv-table-section { padding: 32px 12px 60px; }
  .conv-cell-link { font-size: 0.55rem; padding: 4px 7px; }
  .conv-table thead th,
  .conv-table-row-header { font-size: 0.58rem; padding: 10px 6px; }
}

/* ===== HAMBURGER BUTTON ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.2s;
}

.nav-hamburger:hover { background: var(--border); }

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE MENU BACKDROP ===== */
.mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 199;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu-backdrop.open {
  display: block;
  opacity: 1;
}

/* ===== MOBILE MENU PANEL ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 85vw);
  height: 100dvh;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open { right: 0; }

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Mobile menu header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
  flex-shrink: 0;
}

.mobile-menu-close {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: var(--border);
  color: var(--text);
}

/* Mobile menu links */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  flex: 1;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: all 0.18s;
  cursor: pointer;
}

.mobile-menu-link:hover:not(.disabled) {
  background: var(--surface2);
  border-color: var(--border);
}

.mobile-menu-link.active {
  background: rgba(108,99,255,0.1);
  border-color: rgba(108,99,255,0.3);
}

.mobile-menu-link.disabled {
  opacity: 0.5;
  cursor: default;
}

.mobile-menu-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-menu-link.active .mobile-menu-icon {
  background: rgba(108,99,255,0.15);
  border-color: rgba(108,99,255,0.3);
}

.mobile-menu-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.mobile-menu-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.mobile-menu-link .badge {
  margin-left: auto;
  font-size: 0.6rem;
  background: var(--accent1);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.mobile-menu-link .soon {
  margin-left: auto;
  font-size: 0.58rem;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #000;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== SHOW/HIDE BASED ON SCREEN SIZE ===== */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
}

@media (min-width: 769px) {
  .nav-hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .mobile-menu-backdrop { display: none !important; }
}

/* ===== LEGAL PAGES (privacy.php, terms.php) ===== */
.legal-hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(108,99,255,0.06) 0%, transparent 100%);
}

.legal-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.legal-tag {
  display: inline-block;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a09aff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.legal-hero p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
}

.legal-intro {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-intro a {
  color: var(--accent1);
  text-decoration: none;
}

.legal-intro a:hover { text-decoration: underline; }

.legal-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.legal-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section a {
  color: var(--accent1);
  text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-section strong { color: var(--text); font-weight: 600; }

.legal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.legal-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent1);
  font-size: 0.8rem;
}

.legal-list strong { color: var(--text); }

.legal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(108,99,255,0.07);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.legal-highlight-icon { font-size: 1.3rem; flex-shrink: 0; }

.legal-highlight p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0 !important;
}

.legal-contact {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.legal-contact a {
  color: var(--accent1);
  text-decoration: none;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.legal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}

.legal-nav-link:hover {
  border-color: var(--accent1);
  color: var(--text);
  background: rgba(108,99,255,0.06);
}

@media (max-width: 768px) {
  .legal-card { padding: 24px 16px; }
  .legal-hero { padding: 32px 16px 28px; }
  .legal-nav { flex-direction: column; align-items: stretch; text-align: center; }
}
/* ===== LEGAL PAGES ===== */
.legal-hero {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--border);
  padding: 48px 20px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(108,99,255,0.06) 0%, transparent 100%);
}
.legal-hero-inner { max-width: 700px; margin: 0 auto; }
.legal-tag {
  display: inline-block;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  color: #a09aff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.legal-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-hero p { font-size: 0.85rem; color: var(--text-muted); }
.legal-main {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 24px;
}
.legal-intro {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-intro a { color: var(--accent1); text-decoration: none; }
.legal-section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.legal-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.legal-section a { color: var(--accent1); text-decoration: none; }
.legal-section strong { color: var(--text); font-weight: 600; }
.legal-list { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}
.legal-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent1); font-size: 0.8rem; }
.legal-list strong { color: var(--text); }
.legal-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(108,99,255,0.07);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}
.legal-highlight-icon { font-size: 1.3rem; flex-shrink: 0; }
.legal-highlight p { font-size: 0.88rem; color: var(--text); line-height: 1.6; margin: 0 !important; }
.legal-contact {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.legal-contact a { color: var(--accent1); text-decoration: none; }
.legal-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.legal-nav-link:hover { border-color: var(--accent1); color: var(--text); background: rgba(108,99,255,0.06); }
@media (max-width: 768px) {
  .legal-card { padding: 24px 16px; }
  .legal-hero { padding: 32px 16px 28px; }
  .legal-nav { flex-direction: column; align-items: stretch; text-align: center; }
}