/* ===== Design Tokens ===== */
:root {
  --bg-page: #f6f7f9;
  --bg-elevated: #ffffff;
  --bg-soft: #f0f1f5;
  --bg-muted: #e8eaf0;
  --bg-overlay: rgba(255,255,255,0.72);
  --bg-overlay-strong: rgba(255,255,255,0.88);
  --text-primary: #0f0f14;
  --text-secondary: #3d3d48;
  --text-muted: #71717f;
  --text-on-accent: #ffffff;
  --border: rgba(15,15,20,0.09);
  --border-strong: rgba(15,15,20,0.16);
  --accent: #5b5bd6;
  --accent-hover: #4a4ac8;
  --accent-soft: rgba(91,91,214,0.10);
  --accent-glow: rgba(91,91,214,0.35);
  --success: #16a34a;
  --success-soft: rgba(22,163,74,0.12);
  --warning: #d97706;
  --warning-soft: rgba(217,119,6,0.12);
  --danger: #dc2626;
  --danger-soft: rgba(220,38,38,0.10);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-1: 0 1px 2px rgba(15,15,20,0.04), 0 8px 24px -12px rgba(15,15,20,0.10);
  --shadow-2: 0 2px 8px rgba(15,15,20,0.06), 0 20px 48px -20px rgba(15,15,20,0.16);
  --shadow-accent: 0 8px 32px -8px var(--accent-glow);
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --dur-fast: 150ms;
  --dur: 250ms;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'PingFang SC', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #07070a;
    --bg-elevated: #131318;
    --bg-soft: #1c1c24;
    --bg-muted: #232330;
    --bg-overlay: rgba(19,19,24,0.72);
    --bg-overlay-strong: rgba(19,19,24,0.88);
    --text-primary: #f4f4f8;
    --text-secondary: #c2c2d0;
    --text-muted: #7e7e90;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-soft: rgba(129,140,248,0.14);
    --accent-glow: rgba(129,140,248,0.40);
    --success: #22c55e;
    --success-soft: rgba(34,197,94,0.16);
    --warning: #f59e0b;
    --warning-soft: rgba(245,158,11,0.16);
    --danger: #ef4444;
    --danger-soft: rgba(239,68,68,0.16);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
    --shadow-2: 0 2px 8px rgba(0,0,0,0.4), 0 20px 48px -20px rgba(0,0,0,0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-page); color: var(--text-primary); min-height: 100vh; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse-glow { 0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 24px 4px var(--accent-glow); } }
@keyframes gradient-shift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.animate-fade-in { animation: fade-in var(--dur) var(--ease-out) both; }
.animate-slide-up { animation: slide-up var(--dur) var(--ease-out) both; }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--bg-overlay-strong); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--border); height: 3.75rem; display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.nav-brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--text-primary); }
.nav-brand-logo { width: 2rem; height: 2rem; border-radius: 0.5rem; overflow: hidden; flex-shrink: 0; box-shadow: 0 2px 8px var(--accent-glow); display: flex; align-items: center; justify-content: center; }
.nav-brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }
.nav-brand-text { font-weight: 700; font-size: 1rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.375rem; }
.nav-link { display: inline-flex; align-items: center; border-radius: var(--radius-sm); padding: 0.4375rem 0.875rem; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: all 0.2s; }
.nav-link:hover { color: var(--text-primary); background: var(--bg-soft); }
.nav-user { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text-primary); padding: 0.25rem 0.25rem 0.25rem 0.625rem; border-radius: 999px; border: 1px solid var(--border); transition: all 0.2s; }
.nav-user:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.nav-user-avatar { width: 1.75rem; height: 1.75rem; border-radius: 50%; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; }
.nav-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nav-user-name { font-size: 0.8125rem; font-weight: 600; max-width: 8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); cursor: pointer; }
@media (max-width: 768px) { .menu-btn { display: inline-flex; } .nav-links-desktop { display: none; } }

/* ===== Container ===== */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 28rem; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.5625rem 1.125rem; border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: all 0.2s; text-decoration: none; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-secondary); font-family: inherit; white-space: nowrap; }
.btn:hover { border-color: var(--border-strong); color: var(--text-primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.875rem; border-radius: var(--radius-md); }
.btn-sm { padding: 0.3125rem 0.625rem; font-size: 0.75rem; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Hero (Landing) ===== */
.hero { position: relative; padding: 8rem 0 4rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 60rem; height: 40rem; background: radial-gradient(ellipse at center, var(--accent-glow), transparent 60%); opacity: 0.5; filter: blur(40px); }
.hero-bg::after { content: ''; position: absolute; top: 10%; right: 10%; width: 20rem; height: 20rem; background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 60%); filter: blur(60px); }
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.875rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--border); font-size: 0.75rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; }
.hero-badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); animation: pulse-glow 2s infinite; }
.hero-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 1.25rem; }
.hero-title .gradient-text { background: linear-gradient(120deg, var(--accent), #8b5cf6, var(--accent)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradient-shift 6s ease infinite; }
.hero-subtitle { font-size: clamp(0.9375rem, 2vw, 1.125rem); color: var(--text-secondary); max-width: 36rem; margin: 0 auto 2rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ===== Section ===== */
.section { padding: 3rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 0.9375rem; }

/* ===== Feature Grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.feature-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: all 0.3s var(--ease-out); }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-4px); }
.feature-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.375rem; margin-bottom: 1rem; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; }
.feature-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; }

/* ===== Tool Preview ===== */
.tool-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; }
.preview-chip { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; border-radius: var(--radius-md); background: var(--bg-elevated); border: 1px solid var(--border); transition: all 0.2s; }
.preview-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.preview-chip-icon { width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; flex-shrink: 0; }
.preview-chip-name { font-size: 0.8125rem; font-weight: 600; }

/* ===== CTA ===== */
.cta-section { padding: 4rem 0; }
.cta-card { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent), #7c3aed); border-radius: var(--radius-xl); padding: 3rem 2rem; text-align: center; color: #fff; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2), transparent 50%); }
.cta-card-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.625rem; }
.cta-subtitle { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-card .btn { background: #fff; color: var(--accent); border-color: #fff; }
.cta-card .btn:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* ===== Auth Pages ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; z-index: 0; }
.auth-bg::before { content: ''; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 40rem; height: 40rem; background: radial-gradient(circle, var(--accent-glow), transparent 60%); opacity: 0.4; filter: blur(60px); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 24rem; background: var(--bg-overlay-strong); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-2); }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.625rem; margin-bottom: 1.5rem; text-decoration: none; color: var(--text-primary); }
.auth-title { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 0.375rem; letter-spacing: -0.02em; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }

/* ===== Form ===== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.375rem; }
.form-input { width: 100%; height: 2.75rem; padding: 0 0.875rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text-primary); font-size: 0.875rem; outline: none; transition: all 0.2s; font-family: inherit; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { height: auto; padding: 0.625rem 0.875rem; resize: vertical; min-height: 5rem; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.375rem; }
.form-footer { text-align: center; margin-top: 1.25rem; font-size: 0.8125rem; color: var(--text-muted); }
.form-footer a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

/* ===== Dashboard ===== */
.dash-section { padding-top: 5.75rem; padding-bottom: 3rem; min-height: 100vh; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem; }
.dash-greeting { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.dash-greeting span { color: var(--accent); }

.status-banner { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.status-banner.authorized { background: var(--success-soft); border-color: var(--success); }
.status-banner.unauthorized { background: var(--warning-soft); border-color: var(--warning); }
.status-banner-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.status-banner.authorized .status-banner-icon { background: var(--success); color: #fff; }
.status-banner.unauthorized .status-banner-icon { background: var(--warning); color: #fff; }
.status-banner-info { flex: 1; min-width: 0; }
.status-banner-title { font-weight: 700; font-size: 0.9375rem; }
.status-banner-desc { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 0.125rem; }

/* ===== Stats Grid ===== */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.stat-card.accent .stat-value { color: var(--accent); }
.stat-card.success .stat-value { color: var(--success); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; } }

/* ===== Tool Grid ===== */
.tool-section-header { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }
.tool-section-header h2 { font-size: 1.125rem; font-weight: 700; }
.tool-section-stick { width: 0.25rem; height: 1.25rem; border-radius: 999px; background: var(--accent); }
.cat-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.cat-tab { padding: 0.375rem 0.875rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.cat-tab:hover { color: var(--text-primary); border-color: var(--border-strong); }
.cat-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.75rem; }
.tool-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; cursor: pointer; transition: all 0.25s var(--ease-out); position: relative; overflow: hidden; }
.tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.tool-card.maintain { opacity: 0.6; }
.tool-card-icon { width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 0.75rem; }
.tool-card-icon-wrap { position: relative; width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem; }
.tool-card-icon-wrap .tool-card-icon { margin-bottom: 0; }
.tool-status-dot { position: absolute; bottom: -2px; right: -2px; width: 0.625rem; height: 0.625rem; border-radius: 9999px; border: 2px solid var(--bg-elevated); z-index: 1; }
.tool-status-dot::before { content: ''; position: absolute; inset: -2px; border-radius: 9999px; background: inherit; opacity: 0.5; animation: tool-pulse 1.8s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes tool-pulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(2.2); opacity: 0; } 100% { transform: scale(2.2); opacity: 0; } }
.tool-status-tag { display: inline-flex; align-items: center; font-size: 0.5625rem; font-weight: 700; padding: 0.0625rem 0.375rem; border-radius: 9999px; border: 1px solid; margin-left: 0.25rem; vertical-align: middle; }
.tool-card-name { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
.tool-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card-cat { position: absolute; top: 0.75rem; right: 0.75rem; font-size: 0.625rem; color: var(--text-muted); background: var(--bg-soft); padding: 0.125rem 0.5rem; border-radius: 999px; }

/* ===== Card ===== */
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.card + .card { margin-top: 1rem; }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

/* ===== Activate Box ===== */
.activate-box { display: flex; gap: 0.5rem; }
.activate-box .form-input { flex: 1; font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace; }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: all 0.25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 32rem; max-height: 85vh; background: var(--bg-elevated); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-2); overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95) translateY(10px); transition: transform 0.25s var(--ease-out); }
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 1rem; font-weight: 700; }
.modal-close { width: 2rem; height: 2rem; border-radius: var(--radius-sm); border: none; background: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; transition: all 0.2s; }
.modal-close:hover { color: var(--text-primary); background: var(--bg-soft); }
.modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.5rem; justify-content: flex-end; }

/* ===== Toast ===== */
.toast-container { position: fixed; top: 4.5rem; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--text-primary); box-shadow: var(--shadow-2); pointer-events: auto; display: flex; align-items: center; gap: 0.5rem; animation: slide-down 0.25s var(--ease-out) both; min-width: 12rem; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 0.8125rem; color: var(--text-muted); flex-wrap: wrap; gap: 0.5rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-link { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-link:hover { color: var(--text-primary); }

/* ===== Empty ===== */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }

@media (max-width: 640px) {
  .hero { padding: 6rem 0 2rem; }
  .nav-user-name { display: none; }
}

/* ===== SVG Icon Sizing ===== */
.feature-icon svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.tool-card-icon svg { width: 1.375rem; height: 1.375rem; color: var(--accent); }
.tool-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); }
.preview-chip-icon svg { width: 1.125rem; height: 1.125rem; color: var(--text-secondary); }
.preview-chip-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.status-banner-icon svg { width: 1.375rem; height: 1.375rem; }
.modal-close svg { width: 1rem; height: 1rem; }
.empty-state-icon { margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state-icon svg { color: var(--text-muted); }
.modal-title svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }

/* ===== Drawer (Mobile sidebar) ===== */
.drawer-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transition: all 0.3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 16rem; max-width: 80vw; background: var(--bg-elevated); border-left: 1px solid var(--border); transform: translateX(100%); transition: transform 0.3s var(--ease-out); display: flex; flex-direction: column; padding: 1.25rem; gap: 0.5rem; z-index: 101; overflow-y: auto; }
.drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.drawer-title { font-weight: 700; }
.drawer-link { justify-content: flex-start; }
.drawer-section { padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid var(--border); }

/* ===== User Nav Cards ===== */
.nav-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.nav-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-elevated); border: 1px solid var(--border); text-decoration: none; color: var(--text-primary); transition: all 0.25s var(--ease-out); }
.nav-card:hover { border-color: var(--accent); box-shadow: var(--shadow-1); transform: translateY(-3px); }
.nav-card-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md); background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.nav-card-icon svg { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.nav-card-title { font-size: 1rem; font-weight: 700; }
.nav-card-desc { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

/* ===== Profile ===== */
.profile-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; }
.profile-avatar { width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: var(--bg-soft); flex-shrink: 0; border: 3px solid var(--bg-elevated); box-shadow: var(--shadow-1); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.profile-meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.8125rem; color: var(--text-muted); font-weight: 500; }
.info-value { font-size: 0.875rem; font-weight: 600; }

/* ===== Notice Bar ===== */
.notice-bar { background: var(--accent-soft); border-bottom: 1px solid var(--border); padding: 0.75rem 0; margin-top: 3.75rem; }
.notice-bar-inner { display: flex; align-items: center; gap: 1rem; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.notice-bar-icon { width: 1.25rem; height: 1.25rem; color: var(--accent); flex-shrink: 0; }
.notice-bar-content { flex: 1; font-size: 0.8125rem; color: var(--text-primary); line-height: 1.6; }
.notice-bar-content p { margin: 0; }
.notice-bar-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.notice-bar-close { width: 1.5rem; height: 1.5rem; border: none; background: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0.25rem; transition: all 0.15s; flex-shrink: 0; }
.notice-bar-close:hover { color: var(--text-primary); background: var(--bg-soft); }
.notice-bar-close svg { width: 0.875rem; height: 0.875rem; }
.notice-bar-dismissed { display: none; }

/* ===== Skeleton ===== */
.skeleton { background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-muted) 50%, var(--bg-soft) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-md); }
.skeleton-chip { height: 3.25rem; border-radius: var(--radius-md); }
