: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;
}

/* ===================== MOBILE NAVIGATION (Diary Pattern) ===================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Full-screen overlay (the backdrop) */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Drawer panel inside the overlay */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh; /* Accounts for mobile browser address bar */
    background: #12121a;
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    z-index: 2001;
    overflow: hidden;
}

.mobile-sidebar.active {
    transform: translateX(0);
}

.mobile-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.close-mobile-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-faint);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-mobile-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
}

/* Nav links — start from top, never overflow */
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    gap: 0;
    padding-top: 0.5rem;
}

.mobile-nav-links li a.mobile-link {
    display: block;
    padding: 1.1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.mobile-nav-links li a.mobile-link:hover {
    background: rgba(255,255,255,0.04);
    color: white;
}

/* Footer always locked to bottom — safe-area handles phone home bar */
.mobile-auth-section {
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.5rem;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    flex-shrink: 0;
}

.mobile-auth-section button,
.mobile-auth-section a {
    width: 100%;
    display: block;
    text-align: center;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    background: var(--purple);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-nav, .desktop-auth-btn {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
}
/* ===================== END MOBILE NAVIGATION ===================== */

/* ===================== DASHBOARD V2 LAYOUT (DeleteMe Style) ===================== */
.app-layout {
    display: flex;
    min-height: 100vh;
    background: #09090b;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #111114;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar-logo {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

.sidebar-menu {
    flex: 1;
    padding: 0 0.75rem;
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    color: var(--text-faint);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.menu-item.active {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-light);
    border-left: 3px solid var(--purple);
    border-radius: 4px 12px 12px 4px;
}

.menu-item i {
    width: 20px;
    height: 20px;
}

.menu-item.reward {
    color: #f59e0b;
    margin-top: 1rem;
}

/* Sidebar Submenu */
.sidebar-submenu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 1.5rem;
    margin-bottom: 0.25rem;
}

.sidebar-submenu.expanded {
    max-height: 200px;
}

.submenu-item {
    padding: 0.6rem 1rem;
    color: var(--text-faint);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.submenu-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.submenu-item.active {
    color: #fff;
}

.submenu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4b5563; /* Gray default */
    transition: all 0.2s ease;
}

.submenu-item.active .submenu-dot,
.submenu-item:hover .submenu-dot {
    background: #3b82f6; /* Blueish active color */
}

/* Advisor Card */
.advisor-card {
    margin: 1.5rem;
    padding: 1.25rem;
    background: rgba(168, 85, 247, 0.04);
    border: 1px solid rgba(168, 85, 247, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.advisor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple-light);
    margin-bottom: 0.75rem;
    border: 2px solid var(--purple);
    overflow: hidden;
}

.advisor-info h4 {
    font-size: 0.85rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.advisor-info p {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.btn-sidebar-request {
    background: var(--purple);
    color: #fff;
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-header {
    height: 70px;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: #09090b;
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-title h2 {
    font-size: 1.25rem;
    color: #fff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.action-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    cursor: pointer;
    transition: all 0.2s;
}

.action-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Header Pills */
.header-pill {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    height: 42px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-pill:hover {
    background: rgba(255, 255, 255, 0.05);
}

.wallet-pill {
    padding-left: 1rem;
    padding-right: 0;
    gap: 0.75rem;
    overflow: hidden;
}

.wallet-currency {
    color: #9ba1a6;
    font-size: 0.8rem;
    font-weight: 600;
}

.wallet-amount-badge {
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 0.75rem;
}

.wallet-amount {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.wallet-indicator {
    width: 20px;
    height: 100%;
    background: #f59e0b; /* Golden Yellow */
}

.profile-pill {
    padding: 0 0.85rem 0 0.35rem;
    gap: 0.75rem;
}

.header-avatar-new {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #f59e0b;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-email {
    color: var(--text-faint);
    font-size: 0.85rem;
    font-weight: 500;
}

.app-content {
    padding: 2.5rem;
}

/* Vertical Stepper UI */
.data-sheet-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.stepper-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 2rem;
}

.stepper-nav::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 2;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.completed {
    opacity: 0.8;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111114;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.step-indicator.active .step-circle {
    background: var(--purple);
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
}

.step-indicator.completed .step-circle {
    background: var(--secondary);
    border-color: var(--secondary);
}

.step-info span {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--purple-light);
    margin-bottom: 0.15rem;
}

.step-info h4 {
    font-size: 0.9rem;
    color: #fff;
}

/* View Containers */
.view-container {
    display: none;
    animation: fadeInView 0.4s ease forwards;
}

.view-container.active {
    display: block;
}

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

@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .sidebar-logo span, .menu-item span, .advisor-card { display: none; }
    .data-sheet-layout { grid-template-columns: 1fr; }
}
@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; }

/* LPOA Dashboard Card Styles */
.lpoa-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.lpoa-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lpoa-title-group i {
    color: var(--purple);
    width: 24px;
    height: 24px;
}

.lpoa-title-group h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    margin: 0;
    color: #fff;
}

.lpoa-status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lpoa-status-badge.active {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.lpoa-status-badge.revoked {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.lpoa-content {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.lpoa-dates {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lpoa-date-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.lpoa-date-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-faint);
}

.lpoa-date-value {
    color: #fff;
    font-weight: 600;
}

.lpoa-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-lpoa-revoke {
    background: transparent;
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-lpoa-revoke:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.1);
    border-color: #f87171;
}

.btn-lpoa-revoke:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* DeleteMe Dashboard Enhancements */
.rmd-card {
    background: #111114;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}
.rmd-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}
.rmd-card-main {
    flex: 2;
}
.rmd-card-dyk {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}
.rmd-hero {
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    align-items: flex-start; /* Prevent stretching */
}
.rmd-hero h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}
.rmd-hero p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}
.rmd-dyk-content {
    flex: 1;
}
.rmd-dyk-img {
    width: 130px;
    height: auto;
    border-radius: 8px;
}
.rmd-table-section {
    margin-top: 2rem;
    background: #111114;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}
.rmd-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.rmd-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.rmd-filter-pills {
    display: flex;
    gap: 0.5rem;
}
.rmd-filter-pill {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}
.rmd-filter-pill.active, .rmd-filter-pill:hover {
    background: var(--purple);
    color: #fff;
}
.rmd-filter-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    outline: none;
    color-scheme: dark; /* Forces native dark mode render engine */
}
.rmd-filter-select option {
    background-color: #18181b; /* Dark grey */
    color: #fff;
}
.lpoa-card {
    background: linear-gradient(145deg, rgba(168,85,247,0.1) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid var(--purple);
}
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.pii-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.pii-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.pii-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}
.pii-input {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    color-scheme: dark;
}
.pii-input option {
    background-color: #18181b;
    color: #fff;
}
.pii-input:focus {
    outline: none;
    border-color: var(--purple);
}
.broker-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.broker-search-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    color: #fff;
    font-size: 0.85rem;
    width: 250px;
    outline: none;
}
.broker-search-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    width: 16px;
    height: 16px;
}

/* Table Stylings */
.rmd-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.rmd-table th:nth-child(1) { width: 25%; }
.rmd-table th:nth-child(2) { width: 15%; }
.rmd-table th:nth-child(3) { width: 18%; }
.rmd-table th:nth-child(4) { width: 22%; }
.rmd-table th:nth-child(5) { width: 20%; }

.rmd-table th {
    text-align: left;
    padding: 1.25rem 1.5rem;
    color: #9ba1a6;
    font-size: 0.70rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
}
.rmd-table td {
    padding: 1.25rem 1.5rem;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}
.rmd-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Badges for Table */
.risk-badge, .diff-badge, .status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    border: 1px solid;
}
/* Risk Badges */
.risk-badge.low { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); }
.risk-badge.medium { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); }
.risk-badge.high { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); }

/* Difficulty Badges */
.diff-badge.easy { color: #22c55e; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); }
.diff-badge.medium { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.1); }
.diff-badge.hard, .diff-badge.impossible { color: #ef4444; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.1); }

/* Status Badges */
.status-badge.completed { color: #22c55e; border: none; }
.status-badge.in-progress { color: #f59e0b; border: none; }
.status-badge.not-started { color: var(--text-dim); border: none; }

/* Pagination Styling */
.pagination-simple {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
}
.page-arrow, .page-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-faint);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.page-arrow:hover, .page-num:hover:not(.active):not(.ellipsis) {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.page-num.active {
    background: var(--purple);
    color: #fff;
    font-weight: 700;
}
.page-num.ellipsis {
    cursor: default;
}

/* View Toggle Buttons */
.view-toggle-btn {
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-faint);
    transition: all 0.2s;
}
.view-toggle-btn.active {
    background: var(--purple);
    color: #fff;
}
.view-toggle-btn:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

/* Broker Grid View */
.broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.broker-grid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.broker-grid-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.1);
}
.bgc-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.bgc-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.bgc-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.bgc-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.bgc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}
.bgc-label {
    color: var(--text-dim);
}
.bgc-value {
    color: #fff;
}

/* Dashboard Overview Widgets */
.dash-overview { margin-bottom: 2rem; }
.dash-action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.dash-action-card { background: #16161f; border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; position: relative; border: 1px solid rgba(255,255,255,0.02); }

.dac-top-right { position: absolute; top: 1.5rem; right: 1.5rem; }
.amber-link { color: #f59e0b; text-decoration: none; font-size: 0.85rem; font-weight: 600; transition: color 0.2s; }
.amber-link:hover { color: #d97706; }
.dac-title { font-size: 1.1rem; color: #fff; font-weight: 700; margin-bottom: 0.25rem; font-family: 'Outfit', sans-serif; }
.dac-subtitle { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1.5rem; }

.dac-center-icon { display: flex; align-items: center; gap: 1rem; margin: auto 0 2rem 0; }
.dac-icon-ring { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.dac-icon-text { color: #fff; font-weight: 600; font-size: 0.95rem; }

.dac-subscription-info { display: flex; align-items: center; gap: 1rem; margin-top: auto; margin-bottom: 2rem; }

.dac-footer { display: flex; align-items: center; margin-top: auto; justify-content: space-between; }
.dac-footer.right-align { justify-content: flex-end; }
.dac-footer.space-between { justify-content: space-between; }
.dac-footer-text { font-size: 0.85rem; color: var(--text-dim); }

.dac-relative-info { display: flex; align-items: center; gap: 1rem; margin-top: auto; margin-bottom: 2rem; }
.dac-avatar-blue { width: 48px; height: 48px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center; }
.dac-relative-name { color: #fff; font-weight: 600; font-size: 1.1rem; }

.dac-relative-buttons { display: flex; gap: 0.5rem; margin-top: auto; }

.btn-outline-amber { background: transparent; border: 1px solid #f59e0b; color: #f59e0b; padding: 0.5rem 1.25rem; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; }
.btn-outline-amber:hover { background: rgba(245, 158, 11, 0.1); }
.btn-solid-white { background: #fff; border: 1px solid #fff; color: #000; padding: 0.5rem 1.25rem; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.85rem; transition: all 0.2s; white-space: nowrap; }
.btn-solid-white:hover { background: #e5e5e5; }

.dash-divider { height: 1px; border-top: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; width: 100%; }

.dash-metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.dash-metric-card { background: #16161f; border-radius: 16px; border: 1px solid rgba(255,255,255,0.02); padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
.dm-value { font-size: 4.5rem; font-weight: 300; color: #60a5fa; line-height: 1; margin-bottom: 0.5rem; font-family: 'Outfit', sans-serif; }
.dm-label { font-size: 0.75rem; color: #fff; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

@media (max-width: 1024px) {
    .dash-metrics-grid { grid-template-columns: 1fr; }
}

/* Dynamic Reports Cards */
.report-card-hover { transition: transform 0.2s, background 0.2s, box-shadow 0.2s; }
.report-card-hover:hover { transform: translateY(-4px); background: rgba(255,255,255,0.05) !important; box-shadow: 0 10px 20px rgba(0,0,0,0.5) !important; }

/* Wallet & Billing */
.wallet-tabs, .billing-tabs {
    user-select: none;
}
.wallet-tab, .billing-tab {
    transition: all 0.2s;
}
.wallet-tab:hover, .billing-tab:hover {
    color: var(--text) !important;
}

.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 10px;
    background: var(--border);
    outline: none;
    transition: 0.2s;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    border: 5px solid var(--purple);
}
.range-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
    border: 5px solid var(--purple);
}

.preset-chip {
    transition: all 0.2s;
}
.preset-chip:hover {
    border-color: var(--purple) !important;
    color: #fff !important;
    background: rgba(168,85,247,0.1) !important;
}

.amount-btn {
    transition: all 0.2s;
}
.amount-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-color: var(--purple) !important;
}

.help-item {
    transition: all 0.2s;
}
.help-item:hover {
    border-color: rgba(168,85,247,0.5) !important;
    background: rgba(255,255,255,0.05) !important;
}
.help-item.active {
    border-color: var(--purple) !important;
    background: rgba(168,85,247,0.05) !important;
}

tbody tr {
    transition: background 0.2s;
}
tbody tr:hover {
    background: rgba(255,255,255,0.02) !important;
}

.info-icon-wrapper {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-dim);
    line-height: 0;
}

.info-icon-wrapper:hover {
    color: #fff;
}
