:root {
  --primary: #00A693;
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --sidebar-w: 260px;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
  --font-ar: 'Tajawal', system-ui, -apple-system, sans-serif;
  --font-en: 'Tajawal', system-ui, -apple-system, sans-serif;
  --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.25s ease-in-out, border-color 0.25s ease-in-out, color 0.25s ease-in-out, box-shadow 0.25s ease-in-out, fill 0.25s ease-in-out;
}

[data-theme="dark"] {
  --bg: #0B1120;
  --surface: #1E293B;
  --surface-hover: #334155;
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: #334155;
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: inherit; outline: none !important; }
body, .sidebar, .main-wrapper, .topbar, .search-form, .brand, .list-card, .info-card, .ai-card, .score-card, .metric-box, .card-mid-layer h3, .url-capsule, .url-capsule span, .url-capsule svg, .site-main-title, .domain-name, .site-description, .clean-url, .icon-square, .rescan-mini-wrap, .rescan-mini-btn, .progress-bar, .metric-label, .metric-val, .card-title h3, .analysis-paragraph, .tips-list li, .score-title, .percentage, .embed-section, .embed-section h4, .embed-code-wrapper, #embed-code, .copy-code-btn, .action-btn, .bottom-sheet, .sheet-header, .sheet-header h2, .sheet-content, .support-box, .support-title, .support-desc, .support-input, .issue-btn { transition: var(--transition); }
*:focus { outline: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

body, button, input, textarea, select {
  background-color: var(--bg);
  color: var(--text);
  transition: var(--transition);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[lang="ar"] { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font-en); }

.app-layout { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

.sidebar { width: var(--sidebar-w); background: var(--surface); border-inline-end: 1px solid var(--border); display: flex; flex-direction: column; z-index: 10; flex-shrink: 0; transition: var(--transition); }

.brand { height: 80px; display: flex; align-items: center; padding: 0 1.5rem; gap: 0.75rem; border-bottom: 1px solid var(--border); text-decoration: none; transition: var(--transition); cursor: pointer; }
.brand:hover { background: var(--surface-hover); }

.brand-name { font-family: var(--font-en) !important; font-weight: 900; font-size: 1.4rem; letter-spacing: -0.5px; color: var(--text); }
[lang="ar"] .brand-name { font-family: var(--font-ar) !important; font-size: 1.3rem; }

.side-nav { padding: 1.5rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.875rem 1rem; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; border-radius: 12px; transition: var(--transition); }
.nav-item:hover, .nav-item.active { background: var(--surface-hover); color: var(--primary); }
.nav-item.active svg { color: var(--primary); }

.main-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.topbar { height: 80px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; flex-shrink: 0; transition: var(--transition); position: relative; z-index: 10; }
.search-container { display: flex; flex-direction: column; position: relative; width: 100%; max-width: 600px; }
.search-form { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 0.35rem 0.35rem 0.35rem 1rem; width: 100%; transition: var(--transition); }
[dir="rtl"] .search-form { padding: 0.35rem 1rem 0.35rem 0.35rem; }
.search-form.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }
.search-form:focus-within:not(.invalid) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.1); }

.search-icon { color: var(--text-muted); margin-inline-end: 0.5rem; flex-shrink: 0; }

#url-input { flex: 1; border: none; background: transparent; color: var(--text); font-size: 0.95rem; outline: none; min-width: 0; }
[dir="rtl"] #url-input { text-align: right; }
[dir="ltr"] #url-input { text-align: left; }
#url-input::placeholder { direction: rtl; text-align: right; opacity: 0.7; }
[dir="ltr"] #url-input::placeholder { direction: ltr; text-align: left; }

#audit-btn { background: var(--primary); color: #ffffff; border: none; padding: 0 1.5rem; height: 40px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
#audit-btn:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 166, 147, 0.2); }
#audit-btn.loading { pointer-events: none; opacity: 0.8; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: currentColor; animation: spin 1s linear infinite; }
#audit-btn.loading .btn-text { display: none; }
#audit-btn.loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.controls { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn-icon { background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; transition: var(--transition); }
.btn-icon:hover { background: var(--surface-hover); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.dashboard-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 2rem; display: flex; flex-direction: column; scroll-behavior: smooth; position: relative; }
.view-section { opacity: 0; visibility: hidden; position: absolute; top: 2rem; left: 2rem; right: 2rem; transition: opacity 0.3s ease-out, transform 0.3s ease-out; transform: translateY(20px); pointer-events: none; }
.view-section.transition-active { opacity: 1; visibility: visible; position: relative; top: 0; left: 0; right: 0; transform: translateY(0); pointer-events: auto; }
.hidden { display: none !important; }

.hero-empty { text-align: center; margin-top: 5vh; transition: var(--transition); }
.hero-empty h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; line-height: 1.2; }
.hero-empty p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }

.lists-container { display: flex; flex-direction: column; gap: 3rem; margin-top: 2rem; width: 100%; }
.list-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.list-title-main { font-size: 1.4rem; font-weight: 800; color: var(--text); margin-bottom: 0; }
.view-all-link { font-size: 0.95rem; font-weight: 700; color: var(--primary); text-decoration: none; background: var(--surface); border: 1px solid var(--border); padding: 0.4rem 1.2rem; border-radius: 50px; transition: var(--transition); display: inline-flex; align-items: center; justify-content: center; }
.view-all-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 166, 147, 0.2); }
.grid-layout { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.list-card { background: var(--surface); border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); border: 1px solid var(--border); width: 100%; height: 100%; min-height: 195px; cursor: pointer; transition: all 0.3s ease; animation: fadeUpIn 0.4s ease-out forwards; opacity: 0; }
.list-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06); border-color: var(--border); }
[data-theme="dark"] .list-card { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); }
[data-theme="dark"] .list-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); border-color: var(--primary); }

.card-top-layer { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.icon-square { width: 54px; height: 54px; border-radius: 14px; background: var(--surface); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06); border: 1px solid var(--border); padding: 6px; }
[data-theme="dark"] .icon-square { box-shadow: 0 4px 12px rgba(0,0,0,0.3); background: var(--surface-hover); }
.icon-square img { width: 100%; height: 100%; object-fit: contain; }

.score-display { display: flex; align-items: baseline; direction: ltr; margin-top: -5px; }
.score-number { font-size: 2.8rem; font-weight: 900; line-height: 1; font-family: var(--font-en); letter-spacing: -1.5px; }
.score-mark { font-size: 1.2rem; font-weight: 800; font-family: var(--font-en); margin-inline-start: 2px; }

.card-mid-layer { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.card-mid-layer h3 { font-size: 1.15rem; font-weight: 800; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; margin: 0; line-height: 1.5; }

.card-bot-layer { margin-top: auto; width: 100%; }
.url-capsule { display: flex; align-items: center; gap: 8px; background: var(--bg); padding: 8px 14px; border-radius: 50px; border: 1px solid var(--border); direction: ltr; width: 100%; transition: background 0.3s ease, border-color 0.3s ease; }
.url-capsule svg { width: 14px; height: 14px; flex-shrink: 0; stroke: var(--text-muted); transition: stroke 0.3s ease; }
.url-capsule span { font-size: 0.85rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-family: var(--font-en); transition: color 0.3s ease; text-align: left; width: 100%; }
.list-card:hover .url-capsule { background: var(--surface-hover); border-color: var(--primary); }
.list-card:hover .url-capsule span { color: var(--primary); }
.list-card:hover .url-capsule svg { stroke: var(--primary); }

@keyframes fadeUpIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; max-width: 1100px; margin: 0 auto; width: 100%; align-items: start; }
.center-panel { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.info-card, .ai-card, .score-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow-soft); transition: var(--transition); margin: 0; }
.info-card:hover, .ai-card:hover, .score-card:hover { box-shadow: var(--shadow-hover); }

.skeleton-bar { background: linear-gradient(90deg, var(--surface-hover) 25%, var(--border) 50%, var(--surface-hover) 75%); background-size: 200% 100%; animation: skeletonLoading 1.5s infinite; border-radius: 8px; border: none !important; }
@keyframes skeletonLoading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.hidden-img { display: none !important; }

.site-header-actions { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.site-header-top-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; }
.site-identity-group { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.icon-square-wrap { width: 48px; height: 48px; border-radius: 12px; background: var(--surface-hover); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; padding: 6px; }
.icon-square-wrap img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.site-url-group { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; min-width: 0; }
.domain-name { font-size: 1.1rem; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-en); direction: ltr; text-align: start; line-height: 1; }
.clean-url { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; font-weight: 600; font-family: var(--font-en); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: start; transition: var(--transition); line-height: 1; display: inline-flex; align-items: center; width: fit-content; padding: 2px 0; }
.clean-url:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; }
.site-actions-group { display: flex; align-items: center; flex-shrink: 0; }
.site-main-title { font-size: 1.4rem; font-weight: 800; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; margin: 0; }
.rescan-mini-wrap { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-hover); border: 1px solid var(--border); padding: 4px; border-radius: 50px; height: 44px; min-width: 90px; justify-content: space-between; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
[dir="ltr"] .rescan-mini-wrap { padding: 4px; }
.rescan-mini-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); flex-shrink: 0; padding: 0; margin: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.06); }
.rescan-mini-btn svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.rescan-mini-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.rescan-mini-btn:hover:not(:disabled) svg { transform: rotate(-45deg); }
.rescan-mini-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rescan-mini-badge { font-size: 0.95rem; font-weight: 800; color: var(--text-muted); font-family: var(--font-en); line-height: 1; padding: 0 10px; margin-top: 2px; }
.rescan-mini-badge.limit-reached { color: var(--danger); }
.site-description { color: var(--text-muted); font-size: 1rem; overflow-wrap: break-word; line-height: 1.6; margin-top: -0.5rem; }
.preview-wrapper { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-hover); position: relative; min-height: 250px; }
#preview-img { width: 100%; display: block; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: var(--shadow-soft); }

.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.metric-box { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-soft); transition: var(--transition); }
.metric-label { width: 70px; font-weight: 700; font-size: 0.9rem; color: var(--text); flex-shrink: 0; }
.progress-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 1.5s ease, background 0.5s ease; width: 0%; }
.metric-val { width: 45px; text-align: right; font-weight: 800; font-family: var(--font-en); font-size: 1.1rem; flex-shrink: 0; }

.card-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; color: var(--primary); }
.card-title h3 { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.analysis-paragraph { margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }
.tips-list { list-style: none; padding: 0; }
.tips-list li { background: var(--bg); padding: 1.25rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.95rem; border: 1px solid var(--border); color: var(--text); line-height: 1.6; display: flex; align-items: center; gap: 10px; transition: var(--transition); }
[dir="rtl"] .tips-list li { border-right: 4px solid var(--primary); }
[dir="ltr"] .tips-list li { border-left: 4px solid var(--primary); }

.right-panel { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 0; align-self: flex-start; }
.score-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%); width: 100%; }
.score-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; color: var(--text); }
.radial-container { width: 100%; max-width: 260px; margin-bottom: 2rem; }
.circular-chart.gauge { width: 100%; height: auto; overflow: visible; }
.circle-bg { fill: none; stroke: var(--border); stroke-width: 3.5; stroke-linecap: round; }
.circle { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.percentage.giant-text { font-size: 0.55em; font-family: var(--font-en); fill: var(--text); font-weight: 900; text-anchor: middle; }

.embed-section { width: 100%; margin-top: 1rem; text-align: start; background: var(--surface); padding: 1.5rem; border-radius: 16px; border: 1px solid var(--border); }
.embed-section h4 { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 1.25rem; font-weight: 700; }

.badge-preview-container { width: 100%; margin-bottom: 1.5rem; display: flex; justify-content: center; }

.embed-code-wrapper { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.75rem; }
#embed-code { width: 100%; min-height: 90px; background: transparent; border: none; color: var(--text-muted); font-family: monospace; font-size: 0.8rem; resize: none; outline: none; direction: ltr; text-align: left; padding: 1rem; line-height: 1.6; }
[dir="rtl"] #embed-code { text-align: left; }

.copy-code-btn { width: 100%; background: var(--surface-hover); border: 1px solid var(--border); color: var(--text); padding: 0.7rem; border-radius: 12px; font-weight: 700; font-size: 0.95rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.5rem; transition: var(--transition); }
.copy-code-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.copy-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Share Buttons Restructured */
.share-links-container { width: 100%; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.share-group { display: flex; gap: 0.5rem; justify-content: center; }
.action-btn { flex: 1; min-width: 40px; height: 44px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.action-btn:hover { background: var(--surface-hover); color: var(--primary); transform: translateY(-2px); border-color: var(--primary); }

.app-footer { margin-top: auto; padding-top: 3rem; text-align: center; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; transition: opacity 0.3s ease-out; opacity: 1; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.bottom-sheet { background: var(--surface); width: 100%; max-width: 600px; border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 2rem; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto; }
.modal-overlay.active .bottom-sheet { transform: translateY(0); }
.sheet-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; position: sticky; top: 0; background: var(--surface); padding-bottom: 1rem; border-bottom: 1px solid var(--border); z-index: 2; }
.sheet-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.modal-close { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--surface-hover); color: var(--danger); }
.sheet-content { color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--text); color: var(--bg); padding: 12px 24px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 1000; opacity: 0; transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.4s ease; text-align: center; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 1150px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .right-panel { position: static; }
  .sidebar { width: 80px; }
  .brand-name { display: none; }
  .brand { justify-content: center; padding: 0; }
  .side-nav span { display: none; }
  .nav-item { justify-content: center; padding: 1rem 0; }
}

@media (max-width: 768px) {
  .app-layout { flex-direction: column; overflow: auto; }
  .sidebar { width: 100%; height: auto; border-inline-end: none; border-bottom: 1px solid var(--border); flex-direction: row; align-items: center; justify-content: space-between; padding: 0 1rem; z-index: 20; }
  .brand { border: none; height: 60px; padding: 0; }
  .side-nav { flex-direction: row; padding: 0; overflow-y: visible; overflow-x: auto; }
  .nav-item { padding: 0.5rem; }
  .topbar { flex-direction: column; gap: 1rem; padding: 1rem; height: auto; align-items: stretch; }
  .search-container { max-width: 100%; }
  .dashboard-scroll { overflow: visible; padding: 1rem; }
  .view-section { position: relative; top: 0; left: 0; right: 0; }
}

.legal-content h3 { color: var(--text); font-size: 1.15rem; font-weight: 800; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1rem; line-height: 1.8; }
.legal-content h3:first-child { margin-top: 0; }
.support-tabs-container { display: flex; flex-direction: column; gap: 2rem; }
.support-box { display: flex; flex-direction: column; gap: 1rem; }
.support-title { color: var(--text); font-size: 1.2rem; font-weight: 800; }
.support-desc { color: var(--text-muted); font-size: 0.95rem; }
.support-divider { border: 0; border-top: 1px solid var(--border); margin: 0.5rem 0; }
.support-form { display: flex; flex-direction: column; gap: 1rem; }
.input-group-row { display: flex; gap: 1rem; }
.input-group-row > input { flex: 1; }
.support-input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 0.875rem 1rem; border-radius: 12px; font-size: 0.95rem; outline: none; transition: var(--transition); }
.support-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 166, 147, 0.1); }
.support-textarea { resize: vertical; min-height: 100px; }
.support-submit-btn { background: var(--primary); color: #fff; border: none; padding: 0.875rem 1.5rem; border-radius: 12px; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: var(--transition); align-self: flex-start; }
.support-submit-btn:hover { background: #008f7f; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 166, 147, 0.2); }
@media (max-width: 600px) {
  .input-group-row { flex-direction: column; }
  .support-submit-btn { align-self: stretch; }
}

.quick-report-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; width: 100%; }
.issue-btn { flex: 1 1 auto; width: auto; min-height: 56px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 0 1.5rem; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; line-height: 1.4; display: flex; align-items: center; justify-content: center; }
.issue-btn:hover { border-color: var(--primary); color: var(--text); background: var(--surface-hover); transform: translateY(-2px); }
.issue-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(0, 166, 147, 0.2); }