:root {
    --bg: #0e0d0c;
    --surface: #161513;
    --surface2: #1e1c19;
    --surface3: #252320;
    --border: rgba(255,255,255,0.07);
    --border2: rgba(255,255,255,0.12);
    --text: #f0ede8;
    --text2: #a09890;
    --text3: #6a635c;
    --accent: #d4a96a;
    --accent2: #e8c898;
    --accent-glow: rgba(212,169,106,0.15);
    --red: #c0614a;
    --green: #5a9c72;
    --blue: #5a82c0;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* Background texture */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% 10%, rgba(212,169,106,0.04) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(90,130,192,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }

  .wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 48px 24px 80px;
  }

  /* Header */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }

  .logo-block { display: flex; flex-direction: column; gap: 4px; }

  .logo {
    font-family: 'Fraunces', serif;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--accent2);
    line-height: 1;
  }

  .logo span {
    font-style: italic;
    font-weight: 300;
  }

  .tagline {
    font-size: 13px;
    color: var(--text3);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* Divider */
  .divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 32px;
  }

  /* Mode selector */
  .mode-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: var(--surface);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .mode-btn {
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: transparent;
    color: var(--text3);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 400;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.01em;
  }

  .mode-btn:hover { color: var(--text2); }

  .mode-btn.active {
    background: var(--surface3);
    color: var(--accent2);
    border: 1px solid var(--border2);
  }

  /* Main editor area */
  .editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }

  .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
  }

  .panel:focus-within { border-color: var(--border2); }

  .panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .panel-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
  }

  .panel-actions {
    display: flex;
    gap: 6px;
    align-items: center;
  }

  .icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--text3);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.15s;
  }

  .icon-btn:hover { background: var(--surface3); color: var(--text2); }
  .icon-btn.active { color: var(--accent); }

  .char-count {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text3);
  }

  textarea {
    flex: 1;
    min-height: 240px;
    background: transparent;
    border: none;
    outline: none;
    padding: 16px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.7;
    resize: none;
    caret-color: var(--accent);
  }

  textarea::placeholder { color: var(--text3); }

  textarea:disabled { opacity: 0.5; }

  /* Controls panel */
  .controls-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }

  .control-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
  }

  .control-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text3);
    margin-bottom: 10px;
    font-weight: 500;
  }

  .control-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .pill {
    padding: 5px 11px;
    border-radius: 100px;
    font-size: 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
  }

  .pill:hover { border-color: var(--border2); color: var(--text); }

  .pill.active {
    background: var(--accent-glow);
    border-color: rgba(212,169,106,0.4);
    color: var(--accent2);
  }

  /* Action row */
  .action-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
  }

  .btn-primary {
    flex: 1;
    padding: 14px 24px;
    background: var(--accent);
    color: #1a1612;
    border: none;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    transition: background 0.2s;
  }

  .btn-primary:hover::before { background: rgba(255,255,255,0.1); }

  .btn-primary:active { transform: scale(0.99); }

  .btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }

  .btn-secondary {
    padding: 14px 18px;
    background: var(--surface);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
  }

  .btn-secondary:hover { border-color: var(--border2); color: var(--text); }

  /* Progress / Status */
  .status-bar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 48px;
    transition: all 0.3s;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text3);
    flex-shrink: 0;
    transition: background 0.3s;
  }

  .status-dot.loading {
    background: var(--accent);
    animation: pulse 1.2s ease-in-out infinite;
  }

  .status-dot.success { background: var(--green); }
  .status-dot.error { background: var(--red); }

  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
  }

  .status-text {
    font-size: 13px;
    color: var(--text2);
    flex: 1;
  }

  .status-time {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text3);
  }

  /* Progress bar */
  .progress-track {
    height: 2px;
    background: var(--surface3);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
    display: none;
  }

  .progress-track.visible { display: block; }

  .progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
  }

  /* Diff view */
  .diff-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    display: none;
  }

  .diff-panel.visible { display: block; }

  .diff-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  .diff-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    flex: 1;
  }

  .diff-toggle {
    display: flex;
    gap: 4px;
    background: var(--surface2);
    padding: 3px;
    border-radius: 8px;
  }

  .diff-toggle button {
    padding: 4px 12px;
    border: none;
    background: transparent;
    color: var(--text3);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.15s;
  }

  .diff-toggle button.active {
    background: var(--surface3);
    color: var(--text2);
  }

  .diff-content {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    font-weight: 300;
    max-height: 240px;
    overflow-y: auto;
  }

  mark.added {
    background: rgba(90,156,114,0.2);
    color: #7fc494;
    border-radius: 2px;
    padding: 0 2px;
  }

  mark.removed {
    background: rgba(192,97,74,0.2);
    color: #d47c68;
    border-radius: 2px;
    text-decoration: line-through;
    padding: 0 2px;
  }

  /* History sidebar feel */
  .history-section {
    margin-top: 32px;
  }

  .section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text3);
    font-weight: 500;
    margin-bottom: 12px;
    padding-left: 2px;
  }

  .history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .history-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .history-item:hover { border-color: var(--border2); }

  .history-preview {
    flex: 1;
    font-size: 13px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .history-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .history-mode {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 100px;
    background: var(--surface3);
    color: var(--text3);
    border: 1px solid var(--border);
  }

  .history-time {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--text3);
  }

  /* Scrollbar styling */
  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 13px;
    color: var(--text2);
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
    max-width: 280px;
    pointer-events: none;
  }

  .toast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  /* Strength meter */
  .strength-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-top: 1px solid var(--border);
  }

  .strength-label {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    flex-shrink: 0;
  }

  .strength-dots {
    display: flex;
    gap: 4px;
    flex: 1;
  }

  .strength-dot {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--surface3);
    transition: background 0.3s;
  }

  .strength-dot.filled { background: var(--accent); }
  .strength-dot.filled.low { background: var(--red); }
  .strength-dot.filled.mid { background: var(--accent); }
  .strength-dot.filled.high { background: var(--green); }

  .strength-score {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    flex-shrink: 0;
  }

  /* Loading shimmer in output */
  .shimmer-line {
    height: 14px;
    background: linear-gradient(90deg, var(--surface3) 25%, var(--surface2) 50%, var(--surface3) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
  }

  @keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .shimmer-line:nth-child(2) { width: 85%; }
  .shimmer-line:nth-child(3) { width: 92%; }
  .shimmer-line:nth-child(4) { width: 70%; }

  /* Empty output state */
  .output-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--text3);
    font-size: 13px;
    line-height: 1.6;
  }

  .output-empty .icon {
    font-size: 28px;
    margin-bottom: 8px;
    opacity: 0.4;
  }

  .contact-float{
    position:fixed;
    right:20px;
    bottom:20px;

    width:55px;
    height:55px;

    z-index:9999;

    border-radius:50%;

    transition:.25s;
}

.contact-float:hover{
    transform:scale(1.1);
}

.contact-float img{
    width:100%;
    height:100%;
    object-fit:contain;
}

  @media (max-width: 640px) {
    .editor-grid { grid-template-columns: 1fr; }
    .controls-row { grid-template-columns: 1fr 1fr; }
    .header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .header-stats { align-self: flex-end; }
  }

/* login */
.login-btn{
  background:#1a1a1a;
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  cursor:pointer;
  font-size:14px;
  transition:.25s;
}

.login-btn:hover{
  background:#242424;
}

.login-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.75);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:99999;
}

.login-modal.show{
  display:flex;
}

.login-box{
  width:90%;
  max-width:420px;
  background:#141414;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:28px;
  position:relative;
}
/* Login tabs */
.login-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border, rgba(0,0,0,0.12));
  margin-bottom: 20px;
}

.login-tab {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: none;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -1.5px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text3, #888);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.01em;
}

.login-tab:hover {
  color: var(--text, #111);
}

.login-tab.active {
  color: var(--text, #111);
  font-weight: 500;
  border-bottom-color: var(--accent, #7f77dd); /* màu tím như logo */
}

.close-login{
  position:absolute;
  top:12px;
  right:12px;
  background:none;
  border:none;
  color:#999;
  cursor:pointer;
  font-size:18px;
}

.login-box h2{
  margin-bottom:10px;
}

.login-desc{
  color:#888;
  margin-bottom:20px;
}

.login-input{
  width:100%;
  margin-bottom:12px;
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background:#0f0f0f;
  color:#fff;
}

.login-submit{
  width:100%;
  padding:14px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  margin-bottom:10px;
}

.google-btn{

  width:100%;

  height:56px;

  border:none;

  border-radius:16px;

  cursor:pointer;

  font-size:17px;

  font-weight:600;

  color:#fff;

  background:
    linear-gradient(
      135deg,
      #4285F4,
      #34A853,
      #FBBC05,
      #EA4335
    );

  background-size:
    300% 300%;

  animation:
    googleFlow 8s ease infinite;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.google-btn:hover{

  transform:
    translateY(-2px);

  box-shadow:
    0 10px 30px
    rgba(66,133,244,.35);
}

.google-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  margin-right:10px;
  border-radius:50%;
  background:white;
  color:#4285F4;
  font-weight:800;
}
@keyframes googleFlow{
  0%{
    background-position:0% 50%;
  }
  50%{
    background-position:100% 50%;
  }
  100%{
    background-position:0% 50%;
  }
}

.coming-soon{
  margin-top:16px;
  text-align:center;
  color:#d4a85d;
}
/* theme switch — icons inside track */
.theme-switch {
  cursor: pointer;
  user-select: none;
}

.theme-track {
  width: 72px;
  height: 34px;
  border-radius: 999px;
  background: #1c1a17;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.35s, border-color 0.35s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
}

.theme-icon-moon,
.theme-icon-sun {
  font-size: 14px;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s;
}

.theme-icon-moon { opacity: 0.5; }
.theme-icon-sun  { opacity: 0.25; }

.theme-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d4a85d;
  position: absolute;
  top: 3px;
  left: 4px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), background 0.3s;
  box-shadow: 0 0 12px rgba(212,168,93,0.4);
  z-index: 2;
}

body.light .theme-track {
  background: #e8dece;
  border-color: rgba(180,140,80,0.25);
}

body.light .theme-thumb {
  transform: translateX(38px);
  background: #c9870a;
  box-shadow: 0 0 14px rgba(201,135,10,0.35);
}

body.light .theme-icon-moon { opacity: 0.2; }
body.light .theme-icon-sun  { opacity: 0.8; }
/* ===== LIGHT MODE — Luxury Warm Cream ===== */
body.light {
  --bg: #f2ede4;
  --surface: #faf7f2;
  --surface2: #f0ead9;
  --surface3: #e8dece;
  --border: rgba(160,120,60,0.12);
  --border2: rgba(160,120,60,0.22);
  --text: #1e1a14;
  --text2: #5a4e3c;
  --text3: #9c8a6e;
  --accent: #b07d2e;
  --accent2: #8a5f18;
  --accent-glow: rgba(176,125,46,0.12);
  background: #f2ede4;
  color: #1e1a14;
}

body.light::before {
  background:
    radial-gradient(ellipse 80% 50% at 15% 5%, rgba(212,169,106,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 85%, rgba(160,120,60,0.04) 0%, transparent 50%);
}

body.light .logo { color: #8a5f18; }
body.light .tagline { color: #9c8a6e; }
body.light .divider { background: rgba(160,120,60,0.15); }

body.light .mode-bar {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.15);
}
body.light .mode-btn { color: #9c8a6e; }
body.light .mode-btn:hover { color: #5a4e3c; }
body.light .mode-btn.active {
  background: #f2ede4;
  color: #8a5f18;
  border-color: rgba(160,120,60,0.3);
}

body.light .control-card {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.14);
}
body.light .control-label { color: #9c8a6e; }
body.light .pill {
  color: #7a6a50;
  border-color: rgba(160,120,60,0.18);
}
body.light .pill:hover { color: #1e1a14; border-color: rgba(160,120,60,0.35); }
body.light .pill.active {
  background: rgba(176,125,46,0.1);
  border-color: rgba(176,125,46,0.35);
  color: #7a4e10;
}

body.light .panel {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.14);
}
body.light .panel:focus-within { border-color: rgba(160,120,60,0.28); }
body.light .panel-head { border-bottom-color: rgba(160,120,60,0.1); }
body.light .panel-title { color: #9c8a6e; }
body.light .char-count { color: #9c8a6e; }
body.light .icon-btn { color: #9c8a6e; }
body.light .icon-btn:hover { background: #f0ead9; color: #5a4e3c; }
body.light textarea { color: #1e1a14; caret-color: #b07d2e; }
body.light textarea::placeholder { color: #b8a98c; }
body.light .strength-row { border-top-color: rgba(160,120,60,0.1); }
body.light .strength-label { color: #9c8a6e; }
body.light .strength-dot { background: #e0d4c0; }
body.light .strength-score { color: #b07d2e; }
body.light .output-empty { color: #b8a98c; }

body.light .status-bar {
  background: #2a231a;
  border-color: rgba(0,0,0,0.18);
  color: #e8dece;
}
body.light .status-text { color: #c8b898; }
body.light .status-time { color: #8a7a5e; }
body.light #usageCounter { color: #e8c080; }

body.light .btn-primary {
  background: #b07d2e;
  color: #faf7f2;
}
body.light .btn-secondary {
  background: #faf7f2;
  color: #5a4e3c;
  border-color: rgba(160,120,60,0.2);
}
body.light .btn-secondary:hover { border-color: rgba(160,120,60,0.38); color: #1e1a14; }

body.light .diff-panel {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.14);
}
body.light .diff-head { border-bottom-color: rgba(160,120,60,0.1); }
body.light .diff-title { color: #9c8a6e; }
body.light .diff-toggle { background: #f0ead9; }
body.light .diff-toggle button { color: #9c8a6e; }
body.light .diff-toggle button.active { background: #faf7f2; color: #5a4e3c; }

body.light .history-item {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.14);
}
body.light .history-item:hover { border-color: rgba(160,120,60,0.28); }
body.light .history-preview { color: #5a4e3c; }
body.light .history-mode {
  background: #f0ead9;
  color: #9c8a6e;
  border-color: rgba(160,120,60,0.15);
}
body.light .history-time { color: #9c8a6e; }
body.light .section-label { color: #9c8a6e; }

body.light .toast {
  background: #2a231a;
  border-color: rgba(0,0,0,0.2);
  color: #e8dece;
}

body.light .login-btn {
  background: #2a231a;
  border-color: rgba(0,0,0,0.15);
  color: #f0e8d4;
}
body.light .login-btn:hover { background: #3a3020; }

body.light .login-box {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.18);
  color: #1e1a14;
}
body.light .login-box h2 { color: #1e1a14; }
body.light .login-desc { color: #7a6a50; }
body.light .login-input {
  background: #f0ead9;
  border-color: rgba(160,120,60,0.2);
  color: #1e1a14;
}
body.light .close-login { color: #9c8a6e; }

body.light ::-webkit-scrollbar-thumb { background: rgba(160,120,60,0.25); }

/* ===== PRO BUTTON ===== */
.header-top-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
 
.pro-btn {
  background: linear-gradient(135deg, #d4a96a 0%, #b07d2e 100%);
  color: #1a1410;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  box-shadow: 0 2px 12px rgba(212,169,106,0.3);
}
 
.pro-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212,169,106,0.45);
}
 
.pro-btn:active { transform: scale(0.98); }
 
/* Light mode pro btn */
body.light .pro-btn {
  box-shadow: 0 2px 12px rgba(176,125,46,0.25);
}
 
/* ===== PRO MODAL ===== */
.pro-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  padding: 16px;
}
 
.pro-modal.show { display: flex; }
 
.pro-box {
  width: 100%;
  max-width: 820px;
  max-height: 92vh;
  overflow-y: auto;
  background: #161513;
  border: 1px solid rgba(212,169,106,0.18);
  border-radius: 24px;
  padding: 36px 32px 28px;
  position: relative;
}
 
.close-pro {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.15s;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
 
.close-pro:hover { color: var(--text2); background: var(--surface3); }
 
/* Pro header */
.pro-header { text-align: center; margin-bottom: 24px; }
 
.pro-crown {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
  animation: floatCrown 3s ease-in-out infinite;
}
 
@keyframes floatCrown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
 
.pro-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
 
.pro-title span {
  font-style: italic;
  color: var(--accent2);
}
 
.pro-subtitle {
  font-size: 14px;
  color: var(--text3);
  font-weight: 300;
}
 
/* Billing toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 10px;
}
 
.billing-btn {
  padding: 8px 22px;
  border: none;
  background: transparent;
  color: var(--text3);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
 
.billing-btn.active {
  background: var(--surface3);
  color: var(--accent2);
  border: 1px solid rgba(212,169,106,0.25);
}
 
.billing-save {
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 400;
}
 
/* Plans grid */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
 
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 20px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s;
}
 
.plan-card:hover { border-color: var(--border2); }
 
.plan-featured {
  border: 1.5px solid rgba(212,169,106,0.45);
  background: linear-gradient(160deg, #1e1b16 0%, #181510 100%);
}
 
.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4a96a, #b07d2e);
  color: #1a1410;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}
 
.plan-name {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}
 
.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
 
.plan-price-old {
  font-size: 15px;
  color: var(--text3);
  text-decoration: line-through;
  font-family: 'DM Mono', monospace;
}
 
.plan-price {
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 500;
  color: var(--accent2);
  line-height: 1;
}
 
.plan-featured .plan-price { color: #e8c070; }
 
.plan-price-unit {
  font-size: 12px;
  color: var(--text3);
}
 
.plan-period {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 16px;
}
 
/* Plan buttons */
.plan-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
 
.plan-btn-outline {
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--text2);
}
 
.plan-btn-outline:hover {
  background: var(--surface3);
  color: var(--text);
}
 
.plan-btn-gold {
  background: linear-gradient(135deg, #d4a96a 0%, #a8721e 100%);
  border: none;
  color: #1a1410;
  box-shadow: 0 3px 14px rgba(212,169,106,0.3);
}
 
.plan-btn-gold:hover {
  box-shadow: 0 5px 20px rgba(212,169,106,0.45);
  transform: translateY(-1px);
}
 
/* Features list */
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}
 
.plan-features li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.4;
  font-weight: 300;
}
 
.plan-featured .plan-features li { color: #c8b080; }
 
.plan-features li strong { color: var(--accent2); font-weight: 500; }
 
/* Trust bar */
.pro-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 14px;
}
 
.trust-avatars { font-size: 20px; letter-spacing: -2px; }
 
.trust-text {
  font-size: 13px;
  color: var(--text2);
}
 
.trust-text strong { color: var(--accent2); font-weight: 500; }
 
/* Footer pills */
.pro-footer-pills {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
 
.pro-footer-pills span {
  font-size: 12px;
  color: var(--text3);
}
 
/* ===== LIGHT MODE — Pro Modal ===== */
body.light .pro-box {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.2);
}
 
body.light .close-pro { color: #9c8a6e; }
body.light .close-pro:hover { background: #f0ead9; }
 
body.light .pro-title { color: #1e1a14; }
body.light .pro-subtitle { color: #9c8a6e; }
body.light .pro-crown { color: #b07d2e; }
 
body.light .billing-toggle {
  background: #f0ead9;
  border-color: rgba(160,120,60,0.18);
}
body.light .billing-btn { color: #9c8a6e; }
body.light .billing-btn.active {
  background: #faf7f2;
  color: #7a4e10;
  border-color: rgba(160,120,60,0.28);
}
body.light .billing-save { color: #a06820; }
 
body.light .plan-card {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.15);
}
body.light .plan-card:hover { border-color: rgba(160,120,60,0.3); }
body.light .plan-featured {
  background: linear-gradient(160deg, #fdf8ef 0%, #f5edda 100%);
  border-color: rgba(176,125,46,0.4);
}
body.light .plan-name { color: #1e1a14; }
body.light .plan-price { color: #7a4e10; }
body.light .plan-featured .plan-price { color: #8a4a08; }
body.light .plan-price-old { color: #b8a98c; }
body.light .plan-price-unit { color: #9c8a6e; }
body.light .plan-period { color: #9c8a6e; }
 
body.light .plan-btn-outline {
  border-color: rgba(160,120,60,0.25);
  color: #5a4e3c;
}
body.light .plan-btn-outline:hover { background: #f0ead9; color: #1e1a14; }
 
body.light .plan-features li { color: #5a4e3c; }
body.light .plan-featured .plan-features li { color: #6a4a18; }
body.light .plan-features li strong { color: #7a4e10; }
 
body.light .pro-trust {
  background: #f0ead9;
  border-color: rgba(160,120,60,0.15);
}
body.light .trust-text { color: #5a4e3c; }
body.light .trust-text strong { color: #7a4e10; }
body.light .pro-footer-pills span { color: #9c8a6e; }
 
/* Responsive */
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; }
  .pro-box { padding: 28px 18px 20px; }
  .header-top-btns { flex-direction: column; gap: 6px; align-items: flex-end; }
}
 
/* ===== TOP TABS ===== */
.top-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
 
.top-tab {
  padding: 12px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text3);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0.01em;
}
 
.top-tab:hover { color: var(--text2); }
 
.top-tab.active {
  color: var(--accent2);
  border-bottom-color: var(--accent);
  font-weight: 500;
}
 
body.light .top-tab { color: #9c8a6e; }
body.light .top-tab:hover { color: #5a4e3c; }
body.light .top-tab.active { color: #7a4e10; border-bottom-color: #b07d2e; }
 
/* ===== CHECK SECTION ===== */
.check-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
 
.check-intro-icon { font-size: 28px; }
 
.check-intro-title {
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
 
.check-intro-sub {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}
 
.check-input-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}
 
.check-input-panel:focus-within { border-color: var(--border2); }
 
.check-input-panel textarea {
  min-height: 200px;
}
 
.check-action-row {
  display: flex;
  margin-bottom: 24px;
}

.check-meta{
  margin-top:12px;
  text-align:center;
  opacity:.8;
  font-size:14px;
}
 
/* Score cards */
.check-scores {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
 
.score-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}
 
.score-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}
 
.score-ring {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}
 
.ring-bg {
  fill: none;
  stroke: var(--surface3);
  stroke-width: 6;
}
 
.ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
}
 
.ring-ai   { stroke: #c06060; }
.ring-ori  { stroke: #5a9c72; }
.ring-read { stroke: #5a82c0; }
 
.score-ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
 
.score-card-label {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
 
.score-card-verdict {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--text2);
  min-height: 18px;
}
 
/* Verdict banner */
.verdict-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  transition: all 0.3s;
}
 
.verdict-banner.danger  { background: rgba(192,96,96,0.1); border-color: rgba(192,96,96,0.25); }
.verdict-banner.warning { background: rgba(212,169,106,0.1); border-color: rgba(212,169,106,0.25); }
.verdict-banner.safe    { background: rgba(90,156,114,0.1); border-color: rgba(90,156,114,0.25); }
 
.verdict-icon { font-size: 28px; }
 
.verdict-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
 
.verdict-sub {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}
 
/* Detail cards */
.check-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
 
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
 
.detail-card-title {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  margin-bottom: 14px;
}
 
.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
 
.detail-list li {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
 
.detail-list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--text3);
}
 
.detail-list li.signal-bad::before  { content: '⚠'; left: 0; color: #c06060; }
.detail-list li.signal-good::before { content: '✓'; left: 0; color: #5a9c72; }
 
.detail-narrative {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 300;
}
 
/* Text stats */
.text-stats-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
 
.text-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
 
.text-stat-val {
  font-family: 'DM Mono', monospace;
  font-size: 20px;
  color: var(--accent2);
  line-height: 1;
}
 
.text-stat-lbl {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
 
/* Highlight panel */
.highlight-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
}
 
.highlight-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3);
}
 
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
 
.ai-dot    { background: rgba(192,96,96,0.7); }
.human-dot { background: rgba(90,156,114,0.7); }
 
.highlight-content {
  padding: 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text2);
  font-weight: 300;
  max-height: 280px;
  overflow-y: auto;
}
 
mark.ai-mark {
  background: rgba(192,96,96,0.18);
  border-bottom: 1.5px solid rgba(192,96,96,0.5);
  border-radius: 2px;
  padding: 0 2px;
  color: var(--text);
}
 
mark.human-mark {
  background: rgba(90,156,114,0.15);
  border-bottom: 1.5px solid rgba(90,156,114,0.4);
  border-radius: 2px;
  padding: 0 2px;
  color: var(--text);
}
 
/* Loading shimmer for check */
.check-shimmer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
 
/* Light mode */
body.light .check-intro { background: #faf7f2; border-color: rgba(160,120,60,0.14); }
body.light .check-intro-title { color: #1e1a14; }
body.light .check-intro-sub { color: #9c8a6e; }
body.light .check-input-panel { background: #faf7f2; border-color: rgba(160,120,60,0.14); }
body.light .score-card { background: #faf7f2; border-color: rgba(160,120,60,0.14); }
body.light .ring-bg { stroke: #e8dece; }
body.light .score-ring-num { color: #1e1a14; }
body.light .score-card-label { color: #9c8a6e; }
body.light .score-card-verdict { color: #5a4e3c; }
body.light .verdict-title { color: #1e1a14; }
body.light .verdict-sub { color: #5a4e3c; }
body.light .detail-card { background: #faf7f2; border-color: rgba(160,120,60,0.14); }
body.light .detail-card-title { color: #9c8a6e; }
body.light .detail-list li { color: #5a4e3c; }
body.light .detail-narrative { color: #5a4e3c; }
body.light .text-stat-val { color: #7a4e10; }
body.light .text-stat-lbl { color: #9c8a6e; }
body.light .highlight-panel { background: #faf7f2; border-color: rgba(160,120,60,0.14); }
body.light .highlight-legend { color: #9c8a6e; }
body.light .highlight-content { color: #5a4e3c; }
 
@media (max-width: 640px) {
  .check-scores { grid-template-columns: 1fr; }
  .check-details-grid { grid-template-columns: 1fr; }
  .check-details-grid .detail-card[style] { grid-column: 1; }
  .top-tab { padding: 10px 14px; font-size: 13px; }
}
 @media (max-width: 640px){
  .header{
      flex-direction:row !important;
      justify-content:space-between;
      align-items:flex-start;
  }
  .header-right{
      display:flex;
      flex-direction:column;
      align-items:flex-end;
      gap:8px;
  }
  .logo{
      font-size:28px;
  }
  .tagline{
      font-size:11px;
  }
  .contact-float{
      width:48px;
      height:48px;
      right:12px;
      bottom:12px;
  }
}

/* ===== BETA MODAL ===== */
.beta-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.beta-box {
  width: min(100%, 520px);
  background: #161513;
  border: 1px solid rgba(212,169,106,0.2);
  border-radius: 22px;
  padding: 32px 28px 24px;
  font-family: 'Outfit', sans-serif;
}

/* Header */
.beta-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.beta-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(212,169,106,0.1);
  border: 1px solid rgba(212,169,106,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.beta-title {
  font-size: 18px;
  font-weight: 500;
  color: #e8c898;
  margin-bottom: 3px;
}

.beta-version {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text3);
  font-weight: 500;
}

/* List */
.beta-list {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.beta-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
}

.beta-item-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.beta-item strong {
  color: var(--accent2);
  font-weight: 500;
}

/* Thanks */
.beta-thanks {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(212,169,106,0.06);
  border: 1px solid rgba(212,169,106,0.14);
  border-radius: 12px;
  padding: 13px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.55;
}

/* Custom checkbox */
.beta-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  cursor: pointer;
  user-select: none;
}

.beta-checkbox input[type="checkbox"] {
  display: none;
}

.beta-check-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid rgba(212,169,106,0.35);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-size: 12px;
  color: #1a1410;
}

.beta-checkbox input:checked + .beta-check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.beta-checkbox input:checked + .beta-check-box::after {
  content: '✓';
}

.beta-check-label {
  font-size: 13px;
  color: var(--text3);
}

/* Button */
.beta-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #d4a96a 0%, #b07d2e 100%);
  color: #1a1410;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: all 0.2s;
}

.beta-btn:hover {
  box-shadow: 0 4px 16px rgba(212,169,106,0.35);
  transform: translateY(-1px);
}

.beta-btn:active {
  transform: scale(0.99);
}

/* Footer */
.beta-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: #3a3530;
}

/* Light mode */
body.light .beta-box {
  background: #faf7f2;
  border-color: rgba(160,120,60,0.2);
}

body.light .beta-title   { color: #8a5f18; }
body.light .beta-version { color: #9c8a6e; }
body.light .beta-list    { background: #f0ead9; border-color: rgba(160,120,60,0.12); }
body.light .beta-item    { color: #5a4e3c; }
body.light .beta-item strong { color: #7a4e10; }
body.light .beta-thanks  { background: rgba(176,125,46,0.06); border-color: rgba(176,125,46,0.14); color: #9c8a6e; }
body.light .beta-check-box   { border-color: rgba(160,120,60,0.35); }
body.light .beta-check-label { color: #9c8a6e; }
body.light .beta-footer  { color: #c8b898; }

/* avatar */
.user-card{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--card);
  padding:10px 14px;
  border-radius:14px;
  cursor:pointer;
}
.user-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
}
.user-name{
  max-width:120px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-weight:600;
}
.logout-btn{
  border:none;
  background:none;
  cursor:pointer;
  font-size:18px;
  color:inherit;
}
/* ===== FILE UPLOAD BADGE ===== */
.file-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 6px;
  margin: 0 0 8px 0;
  font-size: 12px;
  color: var(--accent);
}

.file-badge-remove {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 11px;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}

.file-badge-remove:hover {
  color: var(--red);
}
/* ===== PAYMENT MODALS ===== */
.pay-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.pay-modal.show { display: flex; }

.pay-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 28px 24px 24px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.pay-warn-icon { font-size: 2.4rem; text-align: center; margin-bottom: 8px; }

.pay-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
}

.pay-body {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.7;
}
.pay-body ul {
  padding-left: 4px;
  margin: 12px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pay-body li { padding-left: 4px; }
.pay-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text3);
  font-style: italic;
}
.pay-link { color: var(--accent); text-decoration: none; }
.pay-link:hover { text-decoration: underline; }

.pay-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.pay-btn-decline {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.pay-btn-decline:hover { background: var(--surface2); }

.pay-btn-accept {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--accent);
  color: #1a1510;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pay-btn-accept:hover { opacity: 0.85; }

/* QR modal */
.pay-plan-badge {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 12px;
  margin-bottom: 12px;
}
.pay-amount-line {
  text-align: center;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 16px;
}
.pay-amount-line strong { color: var(--accent); font-size: 16px; }

.pay-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pay-method-tab {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--text2);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.pay-method-tab.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.pay-info-block { display: flex; flex-direction: column; gap: 14px; }

.pay-qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  border: 2px dashed var(--border2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 13px;
  text-align: center;
  gap: 6px;
}
.pay-qr-placeholder span { font-size: 11px; color: var(--text3); }

.pay-bank-info { display: flex; flex-direction: column; gap: 8px; }
.pay-bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}
.pay-bank-row span { color: var(--text3); }
.pay-bank-row strong { color: var(--text); }

.pay-reminder {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text2);
  text-align: center;
  line-height: 1.6;
}
/* Nút Get Pro khi user đã có gói */
.pro-btn.pro-active {
  background: linear-gradient(135deg, #d4a96a 0%, #b07d2e 100%);
  color: #1a1410;
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 0 12px rgba(212,169,106,0.35);
}

.pro-btn.pro-active:hover {
  box-shadow: 0 0 20px rgba(212,169,106,0.5);
  opacity: 0.92;
}