/* ============================================
   Fillable - Modern Design System
   ============================================ */

:root {
    /* Colors */
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-border: #e5e7eb;
    --color-border-light: #f3f4f6;
    --color-text: #0f172a;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;

    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #e0e7ff;

    --color-purple: #8b5cf6;
    --color-purple-dark: #7c3aed;
    --color-purple-light: #ede9fe;

    --color-blue: #3b82f6;
    --color-green: #10b981;
    --color-yellow: #f59e0b;
    --color-red: #ef4444;
    --color-pink: #ec4899;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.18);

    /* Sizes */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-page {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Landing Nav */
.landing-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.landing-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.landing-logo:hover .logo-svg {
    transform: rotate(-5deg) scale(1.05);
}

.logo-svg {
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 6px rgba(99, 102, 241, 0.25));
}

.sidebar .logo-svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.landing-logo .logo-icon {
    font-size: 24px;
}

.landing-nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    font-size: 14px;
}

.landing-nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.landing-nav-links a:hover {
    color: var(--color-text);
}

.btn-nav-cta {
    background: var(--color-text);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-nav-cta:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
}

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--color-text);
}

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

.hero-subtitle {
    font-size: 19px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--color-text);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--color-primary);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

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

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 520px;
}

.hero-card {
    position: absolute;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: translateY(-4px) rotate(0deg) !important;
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.hero-card-1 {
    top: 0;
    right: 20px;
    width: 280px;
    transform: rotate(2deg);
    z-index: 3;
}

.hero-card-header {
    background: var(--gradient-purple);
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 13px;
    margin: -20px -20px 14px -20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-card-body {
    font-size: 13px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.hero-card-2 {
    bottom: 30px;
    left: 0;
    width: 180px;
    transform: rotate(-4deg);
    z-index: 2;
}

.hero-card-3 {
    bottom: 60px;
    right: 50px;
    width: 200px;
    transform: rotate(4deg);
    z-index: 1;
}

.hero-card-stat {
    text-align: center;
    padding: 10px 0;
}

.stat-num {
    font-size: 40px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
    font-weight: 500;
}

/* Features */
.features {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--color-text);
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
}

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

.feature-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-icon-purple {
    background: var(--gradient-purple);
}

.feature-icon-blue {
    background: var(--gradient-blue);
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text);
}

.feature-card > p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 6px 0;
    color: var(--color-text-muted);
    font-size: 14px;
    padding-left: 24px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 700;
}

/* How It Works */
.how-it-works {
    padding: 80px 24px;
    background: white;
    margin: 0 -24px;
}

.how-it-works > * {
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.step p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Privacy */
.privacy {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.privacy-content {
    background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
    border: 1px solid var(--color-green);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
}

.privacy-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.privacy-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.privacy-content > p {
    color: var(--color-text-muted);
    margin-bottom: 36px;
    font-size: 16px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.privacy-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    align-items: flex-start;
}

.privacy-check {
    width: 28px;
    height: 28px;
    background: var(--color-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.privacy-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.privacy-item p {
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 0;
}

/* Final CTA */
.cta-final {
    padding: 100px 24px;
    text-align: center;
    background: var(--color-text);
    margin: 0 -24px;
    color: white;
}

.cta-final-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-final h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-final p {
    font-size: 18px;
    opacity: 0.7;
    margin-bottom: 32px;
}

.cta-final .btn-hero-primary {
    background: white;
    color: var(--color-text);
}

.cta-final .btn-hero-primary:hover {
    background: var(--color-primary-light);
}

/* Landing Footer */
.landing-footer {
    border-top: 1px solid var(--color-border);
    padding: 32px 24px;
    background: white;
}

.landing-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-footer-links {
    display: flex;
    gap: 16px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.landing-footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
}

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

/* ============================================
   APP (after Get Started)
   ============================================ */

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: var(--color-text);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sidebar .logo:hover {
    opacity: 0.8;
}

.sidebar .logo-icon {
    font-size: 24px;
}

.sidebar .logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.15s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-item.active {
    background: var(--color-primary);
    color: white;
}

.nav-icon {
    font-size: 16px;
}

.sidebar-section-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 18px;
    margin: 12px 0 8px;
}

.sidebar-stats {
    margin: 16px 12px 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.06);
}

.sidebar-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 12px;
}

.sidebar-stat-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.sidebar-stat-label {
    color: rgba(255,255,255,0.5);
}

.sidebar-stat-value {
    color: white;
    font-weight: 600;
}

.sidebar-stat-value.highlight {
    color: var(--color-primary);
}

.sidebar-tip {
    margin: 12px 12px 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(99,102,241,0.15) 100%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(139,92,246,0.2);
}

.tip-header {
    font-size: 11px;
    font-weight: 700;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tip-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 8px;
}

.sidebar-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}

.sidebar-links a:hover {
    color: white;
}

.sidebar-link-danger {
    color: rgba(239, 68, 68, 0.7) !important;
}

.sidebar-link-danger:hover {
    color: #ef4444 !important;
}

.sidebar-link-sep {
    color: rgba(255,255,255,0.3);
}

.sidebar-version {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    font-weight: 500;
}

/* Main Content */
.main {
    flex: 1;
    margin-left: 220px;
    padding: 32px 40px;
    max-width: calc(100% - 220px);
}

/* Views */
.view {
    display: none;
}

.view.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.view-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.view-subtitle {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

.btn-primary {
    background: var(--color-text);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
    border-color: var(--color-text-light);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-danger {
    background: var(--color-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

/* Tracker Tabs */
.tracker-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.tracker-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
    font-family: inherit;
}

.tracker-tab:hover {
    color: var(--color-text);
}

.tracker-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Autofill */
.autofill-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 920px;
}

.autofill-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}

.autofill-card:hover {
    border-color: var(--color-text-light);
}

.autofill-card-primary {
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
    border-color: var(--color-purple);
    border-width: 2px;
}

/* Smart Paste */
.smart-paste-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fce7f3 100%);
    border: 2px solid var(--color-yellow);
}

.smart-paste-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    background: white;
    transition: all 0.15s;
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.smart-paste-input:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.smart-paste-results {
    margin-top: 14px;
    padding: 14px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.paste-detected-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
}

.paste-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #10b981;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.paste-field-label {
    font-weight: 600;
    color: #047857;
}

.paste-field-value {
    color: var(--color-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 8px;
    max-width: 60%;
    text-align: right;
}

.paste-empty {
    padding: 12px;
    background: #fef3c7;
    border-radius: var(--radius-sm);
    color: #92400e;
    font-size: 13px;
    text-align: center;
}

.smart-paste-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    align-items: center;
}

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

.card-header h3 {
    margin: 0;
}

.card-badge {
    background: var(--color-purple-light);
    color: var(--color-purple-dark);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.autofill-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.card-description {
    color: var(--color-text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.warning-text {
    color: var(--color-yellow);
    font-weight: 500;
}

.kbd-hint {
    color: var(--color-text-light);
    font-size: 12px;
    margin-left: 8px;
}

.autofill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bookmarklet-drag-area {
    background: white;
    border: 2px dashed var(--color-purple);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin: 16px 0;
    transition: border-color 0.2s;
}

.bookmarklet-drag-area:hover {
    border-color: var(--color-purple-dark);
    border-style: solid;
}

.bookmarklet-button {
    display: inline-block;
    background: var(--gradient-purple);
    color: white !important;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    cursor: grab;
    user-select: none;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
}

.bookmarklet-button:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.bookmarklet-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.drag-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.bookmark-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.bookmark-status-ok {
    background: #d1fae5;
    color: #047857;
}

.bookmark-status-warning {
    background: #fef3c7;
    color: #92400e;
}

.bookmark-status-update {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
}

.bookmarklet-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.autofill-steps {
    margin: 12px 0 0 20px;
    padding: 0;
    counter-reset: stepCounter;
    list-style: none;
}

.autofill-steps li {
    padding: 14px 0;
    font-size: 14px;
    color: var(--color-text);
    counter-increment: stepCounter;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-left: 16px;
}

.autofill-steps li:last-child {
    border-bottom: none;
}

.autofill-steps li::before {
    content: counter(stepCounter);
    position: absolute;
    left: -16px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.autofill-steps li strong {
    color: var(--color-text);
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
    margin-left: 12px;
}

.autofill-steps li .step-detail {
    margin-left: 12px;
}

.step-detail {
    color: var(--color-text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.step-detail em {
    color: var(--color-primary);
    font-style: normal;
    font-weight: 500;
}

.step-detail kbd {
    margin: 0 2px;
}

.autofill-subcard {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.subcard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
}

.subcard-header strong {
    font-size: 13px;
    color: var(--color-text);
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    background: white;
    transition: all 0.15s;
    color: var(--color-text);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
    color: var(--color-text-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: white;
    transition: all 0.15s;
}

.checkbox-label:hover {
    background: var(--color-bg);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.search-input {
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    width: 280px;
    font-family: inherit;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 11px;
    color: var(--color-text-muted);
    box-shadow: inset 0 -1px 0 var(--color-border);
}

/* ============================================
   PIPELINE (within Tracker)
   ============================================ */

.kanban-board {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pipeline-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: white;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.pipeline-filter-btn {
    padding: 7px 14px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
    font-family: inherit;
}

.pipeline-filter-btn:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.pipeline-filter-btn.active {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.pipeline-filter-btn .filter-count {
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.pipeline-filter-btn.active .filter-count {
    background: rgba(255,255,255,0.2);
}

.pipeline-section {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.pipeline-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.pipeline-section-count {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.pipeline-list {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.pipeline-list-header,
.pipeline-list-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1.2fr 1.2fr 1fr 1fr 1.4fr;
    gap: 12px;
    padding: 12px 16px;
    align-items: center;
}

.pipeline-list-header {
    background: var(--color-bg);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
}

.pipeline-list-row {
    border-bottom: 1px solid var(--color-border-light);
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.pipeline-list-row:last-child {
    border-bottom: none;
}

.pipeline-list-row:hover {
    background: var(--color-bg);
}

.company-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 13px;
    margin-bottom: 2px;
}

.company-industry {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: capitalize;
}

.position-title {
    color: var(--color-text);
    font-size: 13px;
    margin-bottom: 2px;
}

.position-link {
    font-size: 11px;
    color: var(--color-primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 2px;
}

.position-link:hover {
    text-decoration: underline;
}

.link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 2px;
    flex-wrap: wrap;
}

.link-specific {
    color: var(--color-green);
    font-weight: 600;
}

.link-general {
    color: var(--color-text-muted);
}

.link-search {
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
}

.status-select {
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    background: white;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}

.status-select.status-saved { background: #f1f5f9; color: #475569; }
.status-select.status-applied { background: #dbeafe; color: #1d4ed8; }
.status-select.status-phone_screen { background: #ede9fe; color: #6d28d9; }
.status-select.status-interview { background: #fef3c7; color: #d97706; }
.status-select.status-final { background: #fce7f3; color: #be185d; }
.status-select.status-offer { background: #d1fae5; color: #047857; }
.status-select.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-select.status-withdrawn { background: #e5e7eb; color: #6b7280; }

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.status-saved { background: #f1f5f9; color: #475569; }
.status-applied { background: #dbeafe; color: #1d4ed8; }
.status-phone_screen { background: #ede9fe; color: #6d28d9; }
.status-interview { background: #fef3c7; color: #d97706; }
.status-final { background: #fce7f3; color: #be185d; }
.status-offer { background: #d1fae5; color: #047857; }
.status-rejected { background: #fee2e2; color: #b91c1c; }
.status-withdrawn { background: #e5e7eb; color: #6b7280; }

.pipeline-col-actions {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
}

.pipeline-col-actions .btn {
    padding: 4px 6px;
    font-size: 11px;
    min-width: 26px;
}

/* ============================================
   ANALYTICS
   ============================================ */

.analytics-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    border-left: 4px solid var(--color-text-light);
}

.kpi-card.kpi-blue { border-left-color: var(--color-blue); }
.kpi-card.kpi-purple { border-left-color: var(--color-purple); }
.kpi-card.kpi-green { border-left-color: var(--color-green); }
.kpi-card.kpi-orange { border-left-color: var(--color-yellow); }

.kpi-label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.kpi-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.kpi-trend {
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.analytics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.analytics-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.analytics-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text);
}

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

.funnel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.funnel-label {
    width: 100px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-align: right;
}

.funnel-bar-container {
    flex: 1;
    background: var(--color-bg);
    height: 28px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.funnel-bar {
    height: 100%;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 0.4s ease;
    min-width: 30px;
}

.funnel-percent {
    width: 40px;
    text-align: right;
    color: var(--color-text-muted);
    font-weight: 600;
}

.weekly-chart {
    display: flex;
    align-items: flex-end;
    height: 200px;
    gap: 6px;
    padding: 20px 0 30px 0;
}

.weekly-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.weekly-bar {
    width: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
    transition: height 0.4s ease;
}

.weekly-bar-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
    height: 14px;
}

.weekly-bar-label {
    font-size: 10px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

.distribution-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.distribution-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.distribution-label {
    width: 130px;
    color: var(--color-text);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.distribution-bar-container {
    flex: 1;
    background: var(--color-bg);
    height: 18px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.distribution-bar {
    height: 100%;
    background: var(--gradient-blue);
    border-radius: var(--radius-sm);
}

.distribution-bar.distribution-bar-purple {
    background: var(--gradient-purple);
}

.distribution-bar.distribution-bar-green {
    background: linear-gradient(90deg, #10b981, #047857);
}

.distribution-count {
    width: 30px;
    text-align: right;
    color: var(--color-text-muted);
    font-weight: 700;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.insight-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.insight-text {
    color: var(--color-text);
    line-height: 1.5;
}

.analytics-table-wrapper {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.analytics-table th {
    background: var(--color-bg);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
}

.analytics-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border-light);
}

.analytics-table tr:hover {
    background: var(--color-bg);
}

.empty-state-large {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-text-muted);
}

.empty-state-large h2 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
}

.empty-state {
    color: var(--color-text-light);
    font-size: 13px;
    padding: 16px 0;
    text-align: center;
}

/* ============================================
   MODALS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.modal-large {
    max-width: 900px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--color-text);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: var(--color-green);
}

.toast.error {
    background: var(--color-red);
}

/* Job Detail */
.job-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: var(--color-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.job-detail-meta-item label {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

.job-detail-meta-item value {
    font-size: 13px;
    color: var(--color-text);
}

.job-detail-section {
    margin-bottom: 24px;
}

.job-detail-section h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.job-detail-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--color-text-muted);
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 24px;
    }
    .hero-visual {
        height: 400px;
    }
    .hero-title {
        font-size: 44px;
    }
    .features-grid, .privacy-grid {
        grid-template-columns: 1fr;
    }
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    .logo-text, .nav-item span:not(.nav-icon), .sidebar-help-btn {
        display: none;
    }
    .main {
        margin-left: 60px;
        max-width: calc(100% - 60px);
        padding: 20px;
    }
    .hero-title {
        font-size: 36px;
    }
    .section-header h2 {
        font-size: 28px;
    }
    .steps {
        grid-template-columns: 1fr;
    }
    .landing-nav-links a:not(.btn-nav-cta) {
        display: none;
    }
    .pipeline-list-header,
    .pipeline-list-row {
        grid-template-columns: 1.5fr 2fr 1fr 1fr;
    }
    .pipeline-col-location, .pipeline-col-salary, .pipeline-col-date {
        display: none;
    }
}
