:root {
    --bg-dark: #050505;
    --bg-card: #0d0d0d;
    --primary: #a855f7; /* Purple */
    --primary-glow: rgba(168, 85, 247, 0.4);
    --secondary: #22c55e; /* Green */
    --secondary-glow: rgba(34, 197, 94, 0.4);
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --text-faint: rgba(255, 255, 255, 0.5);
    --text-dim: #888;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
    --purple: #a855f7;
    --purple-light: #c084fc;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 40px;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Base Layout for the App View */
.dashboard-body {
    padding-top: 100px; 
    min-height: 100vh;
}

.center-content {
    padding: 2rem;
}


/* ===================== REMOVE MY DATA SPECIFIC VIEWS ===================== */
.rmd-container { max-width: 1100px; margin: 0 auto; padding-bottom: 5rem; }
.rmd-header-wrap { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2.5rem; }
.rmd-header { flex: 1; }
.rmd-header h1 { font-family: 'Outfit', sans-serif; font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.rmd-header p { color: var(--text-faint); font-size: 0.9rem; line-height: 1.5; max-width: 800px; }
.btn-rmd-back { display: flex; align-items: center; gap: 0.5rem; color: var(--text-faint); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: color 0.2s; margin-top: 0.5rem; }
.btn-rmd-back:hover { color: var(--purple-light); }

.rmd-hero { display: grid; grid-template-columns: 1fr 400px; gap: 1.5rem; margin-bottom: 3.5rem; }
.rmd-card { background: rgba(255,255,255,0.015); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.rmd-card-main { width: 100%; }
.rmd-card-main h2 { font-family: 'Outfit', sans-serif; font-size: 2.2rem; color: #fff; margin-bottom: 0.75rem; }
.rmd-card-main p { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 2rem; line-height: 1.6; }
.btn-rmd-reclaim { background: var(--purple); color: white; border: none; padding: 0.85rem 2rem; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; width: max-content; }
.btn-rmd-reclaim:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(168,85,247,0.3); }

.rmd-card-dyk { background: rgba(168,85,247,0.03); display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.rmd-dyk-content { flex: 1; }
.rmd-dyk-content h3 { font-size: 0.85rem; color: var(--purple-light); margin-bottom: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.rmd-dyk-content div { font-family: 'Outfit', sans-serif; font-size: 2rem; color: #fff; font-weight: 800; margin-bottom: 0.5rem; }
.rmd-dyk-content p { font-size: 0.75rem; color: var(--text-faint); line-height: 1.4; }
.rmd-dyk-img { width: 120px; height: 120px; object-fit: contain; }

.rmd-filters { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.rmd-filter-pill { padding: 0.5rem 1.25rem; border-radius: 20px; font-size: 0.8rem; font-weight: 700; cursor: pointer; background: rgba(255,255,255,0.03); border: 1px solid var(--border); color: var(--text-faint); transition: all 0.2s; }
.rmd-filter-pill:hover { border-color: var(--text-dim); color: #fff; }
.rmd-filter-pill.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.rmd-filter-divider { width: 1px; height: 24px; background: var(--border); margin: 0 0.25rem; }
.rmd-filter-select { appearance: none; -webkit-appearance: none; background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 0.75rem center; border: 1px solid var(--border); border-radius: 20px; color: var(--text-faint); font-size: 0.8rem; font-weight: 700; padding: 0.5rem 2.25rem 0.5rem 1.25rem; cursor: pointer; transition: all 0.2s; outline: none; font-family: inherit; }
.rmd-filter-select:hover { border-color: var(--text-dim); color: #fff; }
.rmd-filter-select:focus { border-color: var(--purple); color: #fff; }
.rmd-filter-select option { background: #1a1a2e; color: #fff; }

.rmd-table-section { background: rgba(255,255,255,0.012); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.rmd-table { width: 100%; border-collapse: collapse; text-align: left; }
.rmd-table th { padding: 1.5rem; font-size: 0.8rem; color: var(--text-faint); font-weight: 600; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.015); }
.rmd-table td { padding: 1.5rem; font-size: 0.85rem; color: var(--text-main); border-bottom: 1px solid var(--border); }
.rmd-table tr:last-child td { border-bottom: none; }
.rmd-table tr:hover td { background: rgba(255,255,255,0.015); }

.risk-badge { padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.risk-badge.high { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.risk-badge.medium { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.risk-badge.low { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }

.diff-badge { padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.diff-badge.easy { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.diff-badge.medium { background: rgba(245,158,11,0.1); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.diff-badge.hard { background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.diff-badge.impossible { background: rgba(15,15,20,0.5); color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); }

.pagination-simple { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1.5rem; border-top: 1px solid var(--border); }
.page-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; font-size: 0.75rem; color: var(--text-faint); cursor: pointer; transition: 0.2s; }
.page-num:hover { background: rgba(255,255,255,0.05); color: #fff; }
.page-num.active { background: var(--purple); color: #fff; }
.page-num.page-arrow { padding: 0 4px; min-width: 28px; color: var(--text-dim); }
.page-num.page-arrow.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }

.broker-search-wrapper { position: relative; display: flex; align-items: center; }
.broker-search-wrapper .search-icon { position: absolute; left: 12px; color: var(--text-faint); width: 14px; height: 14px; }
.broker-search-input { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1rem 0.5rem 2.2rem; color: #fff; font-size: 0.85rem; width: 250px; transition: all 0.2s; font-family: inherit; }
.broker-search-input:focus { outline: none; border-color: var(--purple-light); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.1); }
.broker-search-input::placeholder { color: var(--text-faint); }
@media (max-width: 768px) {
    .broker-search-wrapper { margin-left: 0; width: 100%; margin-top: 1rem; }
    .broker-search-input { width: 100%; }
}

.info-button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--text-faint); cursor: pointer; margin-left: 10px; transition: all 0.2s; vertical-align: middle; border: 1px solid rgba(255,255,255,0.05); }
.info-button:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: scale(1.1); }
.info-button i { width: 10px; height: 10px; }

/* Info Modal */
.info-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); z-index: 10000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s; }
.info-modal.active { display: flex; opacity: 1; }
.info-modal-content { background: #111218; border: 1px solid var(--border); border-radius: 24px; width: 90%; max-width: 500px; padding: 2.5rem; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 100px rgba(168,85,247,0.05); transform: translateY(20px); transition: transform 0.3s; }
.info-modal.active .info-modal-content { transform: translateY(0); }
.info-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.info-modal-header h3 { font-family: 'Outfit', sans-serif; font-size: 1.35rem; color: #fff; margin: 0; font-weight: 700; }
.info-modal-close { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-faint); cursor: pointer; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.info-modal-close:hover { background: rgba(239,68,68,0.1); color: #ef4444; border-color: rgba(239,68,68,0.2); }
.info-modal-body { color: var(--text-dim); font-size: 1rem; line-height: 1.7; }
.info-modal-body p { margin: 0; }

/* PII Form Modal Styles */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 1.5rem; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.pii-modal-box { background: #12121a; border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 24px; width: 100%; max-width: 550px; padding: 2.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); position: relative; overflow: hidden; }
.pii-step { display: none; animation: fadeIn 0.4s ease; }
.pii-step.active { display: block; }

.pii-header { margin-bottom: 2rem; }
.pii-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.pii-header p { color: var(--text-dim); font-size: 0.85rem; }

.pii-progress { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.pii-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.05); border-radius: 2px; position: relative; overflow: hidden; }
.pii-progress-bar::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--purple); transition: width 0.3s ease; }
.pii-progress-bar.active::after { width: 100%; }

.pii-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 2rem; }
.pii-form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.pii-form-group.full { grid-column: span 2; }
.pii-label { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.pii-input { background: #1e1b2e !important; border: 1px solid var(--border); border-radius: 12px; padding: 0.8rem 1rem; color: #fff !important; font-size: 0.9rem; font-family: inherit; transition: all 0.2s; }
.pii-input:focus { outline: none; border-color: var(--purple); background: #261d3d !important; box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1); }
.pii-input:-webkit-autofill, .pii-input:-webkit-autofill:hover, .pii-input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #1e1b2e inset !important; -webkit-text-fill-color: #fff !important; transition: background-color 5000s ease-in-out 0s; }

.pii-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.btn-pii-next { background: var(--purple); color: white; border: none; padding: 0.8rem 2rem; border-radius: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.btn-pii-next:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-pii-next:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168,85,247,0.3); }
.btn-pii-back { background: transparent; color: var(--text-dim); border: 1px solid var(--border); padding: 0.8rem 1.5rem; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-pii-back:hover { color: #fff; border-color: var(--text-faint); }

.signature-preview { background: #09090d; border: 1px dashed var(--border); border-radius: 16px; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; position: relative; }
.signature-text { font-family: 'Dancing Script', cursive, 'Brush Script MT', cursive; font-size: 2.5rem; color: var(--purple-light); pointer-events: none; }
.signature-placeholder { color: var(--text-faint); font-size: 0.85rem; font-style: italic; }

.pii-checkbox-group { display: flex; gap: 0.75rem; align-items: flex-start; margin-top: 1rem; cursor: pointer; }
.pii-checkbox { width: 18px; height: 18px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; }
.pii-checkbox-label { font-size: 0.8rem; color: var(--text-dim); line-height: 1.4; user-select: none; }
.pii-checkbox-label span { color: var(--purple-light); text-decoration: underline; font-weight: 600; }

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

/* Pitch/Upgrade Modal */
.pitch-modal-box { background: #12121a; border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 20px; width: 100%; max-width: 480px; padding: 2.5rem; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.6); animation: fadeIn 0.4s ease; }
.pitch-modal-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; color: #fff; }
.pitch-modal-header p { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pitch-modal-details { margin-bottom: 1.25rem; }
.pitch-detail-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }
.pitch-detail-label { color: var(--text-dim); }
.pitch-detail-value { color: #fff; font-weight: 600; }
.pitch-order-summary { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.pitch-os-header { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 1rem; color: #fff; }
.pitch-os-row { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 0.75rem; }
.pitch-os-row span:last-child { color: #fff; }
.pitch-os-row.total { font-weight: 700; color: #fff; border-top: 1px dashed var(--border); padding-top: 1rem; margin-top: 1rem; }
.pitch-os-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-dim); }
.pitch-os-final { color: var(--purple-light); font-size: 1.25rem; font-weight: 800; font-family: 'Outfit', sans-serif; }
.pitch-actions { display: flex; gap: 1rem; }
.btn-pitch-confirm { flex: 1; background: var(--purple); color: white; padding: 1rem; border-radius: 12px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 0.5rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn-pitch-confirm:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(168,85,247,0.3); }
.btn-pitch-cancel { background: transparent; color: var(--text-faint); padding: 1rem; border: none; cursor: pointer; transition: all 0.2s; }
.btn-pitch-cancel:hover { color: #fff; }
