@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/**
 * GameAdZone V2 - Premium Design System
 * Modern SaaS Dashboard UI
 * Version: 3.0.0
 */

/* ═══════════════════════════════════════════════════════════════
   1. CSS VARIABLES & THEME TOKENS
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ── Typography ── */
    --font-heading: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* ── Theme Colors - Light Mode (Organic Greens & Peaches) ── */
    --bg-primary: #FDF5EC;     /* bg-cream */
    --bg-secondary: #FBF5ED;   /* bg-cream-alt */
    --bg-tertiary: #E8F5E9;    /* bg-light-green */
    --bg-elevated: #FFFFFF;    /* card-bg */

    --text-primary: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-tertiary: #999999;
    --text-inverse: #FFFFFF;

    --border-light: #E8DDD0;   /* card-border */
    --border-default: #F0DFD1; /* card-border-alt */
    --border-strong: #F9D4AA;  /* border-peach */

    /* ── Brand Colors ── */
    --primary-50: #E8F5E9;
    --primary-100: #C8E6C9;
    --primary-500: #1B7A43;    /* base green */
    --primary-600: #2D9B5A;    /* primary-light */
    --primary-700: #15613A;    /* primary-dark */

    --secondary-500: #E8983E;  /* secondary */
    --secondary-600: #F5A623;  /* secondary-light */

    --accent-500: #E87040;     /* accent-orange */
    --accent-600: #FFD700;     /* star-gold */

    /* ── Semantic Colors ── */
    --success-50: #E8F5E9;
    --success-500: #2E9F60;
    --success-600: #1A8F50;
    --success-700: #15613A;

    --warning-50: #FFE8CD;     /* peach-light */
    --warning-500: #E8983E;
    --warning-600: #d97706;

    --danger-50: #fef2f2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;

    --info-50: #E8F5E9;
    --info-500: #279C66;
    --info-600: #1A8F50;

    /* ── Gradients ── */
    --gradient-green: linear-gradient(135deg, #1B7A43, #2D9B5A);
    --gradient-page: linear-gradient(135deg, #FDF5EC, #E8F5E9);
    --gradient-auth: linear-gradient(135deg, #FDF5EC 0%, #D4EDDA 50%, #C8E6C9 100%);

    /* ── Shadows ── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 8px 30px rgba(27, 122, 67, 0.08);
    --shadow-2xl: 0 12px 40px rgba(27, 122, 67, 0.12);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.04);

    --shadow-primary: 0 4px 15px rgba(27, 122, 67, 0.3);
    --shadow-success: 0 4px 14px rgba(46, 159, 96, 0.3);
    --shadow-hover: 0 8px 30px rgba(27, 122, 67, 0.15);

    /* ── Border Radius ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;

    /* ── Spacing ── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* ── Layout ── */
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --content-max-width: 1400px;

    /* ── Transitions ── */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 500ms ease;
}

/* ── Dark Theme Override (Organic Dark Green) ── */
[data-theme="dark"] {
    --bg-primary: #0a120d;      /* Deep forest black */
    --bg-secondary: #101b14;    /* Dark organic green surface */
    --bg-tertiary: #18281e;     /* Medium dark organic card background */
    --bg-elevated: #1c2e22;     /* Elevated dialog card background */

    --text-primary: #f0f7f3;
    --text-secondary: #ccdcd2;
    --text-tertiary: #769581;

    --border-light: #1d3326;
    --border-default: #2d4a38;
    --border-strong: #3f664d;

    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(27, 122, 67, 0.25);

    /* ── Gradients override ── */
    --gradient-page: linear-gradient(135deg, #0a120d, #101b14);
    --gradient-auth: linear-gradient(135deg, #0a120d 0%, #101b14 50%, #1c2e22 100%);
}

/* ═══════════════════════════════════════════════════════════════
   2. BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
}

input, select, textarea, button {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

a {
    color: var(--primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-600);
}

/* ═══════════════════════════════════════════════════════════════
   3. LAYOUT - DASHBOARD CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.v2-dashboard {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

/* Sidebar */
.v2-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    z-index: 105;
    transition: transform var(--transition-base);
}

.v2-sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-5);
    height: var(--header-height);
    border-bottom: 1px solid var(--border-light);
}

.v2-brand-logo {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.v2-sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
}

.v2-nav-section {
    margin-bottom: var(--space-6);
}

.v2-nav-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-1);
}

.v2-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    margin-bottom: 2px;
}

.v2-nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.v2-nav-item.active {
    background: #FFFFFF;
    color: var(--primary-700);
    border-left: 4px solid var(--primary-500);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .v2-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-500);
    border-left: 4px solid var(--primary-500);
}

.v2-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.v2-nav-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Main Content */
.v2-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Header */
.v2-header {
    position: sticky;
    top: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    z-index: 101;
}

.v2-header-right {
    position: relative;
}

.v2-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.v2-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: var(--space-2);
}

.v2-page-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.v2-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.v2-search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.v2-search-box input {
    width: 280px;
    padding: var(--space-2) var(--space-4);
    padding-left: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.v2-search-box input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(27, 122, 67, 0.15);
}

.v2-search-box i {
    position: absolute;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: var(--primary-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.v2-header-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-header-icon:hover {
    background: var(--bg-tertiary);
    color: var(--primary-600);
}

.v2-header-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--danger-500);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.v2-user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-user-menu:hover {
    background: var(--bg-tertiary);
}

.v2-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.v2-user-info {
    display: flex;
    flex-direction: column;
}

.v2-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.v2-user-role {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* User Dropdown */
.v2-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 1000;
    overflow: hidden;
}

/* Input Icon Wrapper */
.v2-input-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.v2-input-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.v2-input-icon input.v2-input,
.v2-input-icon select.v2-input {
    padding-left: 42px !important;
    width: 100%;
    box-sizing: border-box;
}

.v2-input-icon input.v2-input:focus ~ i,
.v2-input-icon input.v2-input:focus + i {
    color: var(--primary-500);
}

.v2-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: 14px;
    transition: background var(--transition-fast);
}

.v2-dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--primary-500);
}

.v2-dropdown-item.logout:hover {
    background: var(--danger-50);
    color: var(--danger-600);
}

.v2-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-2) 0;
}

/* Notifications Panel */
.v2-notifications-panel {
    position: fixed;
    top: var(--header-height);
    right: var(--space-4);
    width: 360px;
    max-height: calc(100vh - 100px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    z-index: 999;
    overflow: hidden;
}

.v2-notifications-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.v2-notifications-header h4 {
    font-size: 15px;
    font-weight: 600;
}

.v2-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.v2-notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

.v2-notification-item:hover {
    background: var(--bg-tertiary);
}

.v2-notification-item.unread {
    background: var(--primary-50);
}

[data-theme="dark"] .v2-notification-item.unread {
    background: rgba(27, 122, 67, 0.1);
}

.v2-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-notification-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.v2-notification-icon.primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.v2-notification-icon.warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.v2-notification-content {
    flex: 1;
    min-width: 0;
}

.v2-notification-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.4;
}

.v2-notification-time {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 4px;
    display: block;
}

/* Tooltip */
.v2-tooltip {
    position: relative;
}

.v2-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-3);
    background: var(--text-primary);
    color: var(--text-inverse);
    font-size: 12px;
    white-space: nowrap;
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
}

.v2-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Modal Styles */
.v2-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.v2-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.v2-modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-base);
}

.v2-modal-overlay.show .v2-modal {
    transform: scale(1) translateY(0);
}

.v2-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-light);
}

.v2-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.v2-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-modal-close:hover {
    background: var(--danger-50);
    color: var(--danger-600);
}

.v2-modal-body {
    padding: var(--space-5);
}

.v2-modal-footer {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    padding: var(--space-5);
    border-top: 1px solid var(--border-light);
}

/* Confirm Dialog */
.v2-confirm-modal .v2-modal {
    max-width: 400px;
    text-align: center;
}

.v2-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: 28px;
}

.v2-confirm-icon.danger {
    background: var(--danger-50);
    color: var(--danger-600);
}

.v2-confirm-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.v2-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.v2-confirm-message {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-5);
}

/* Content Area */
.v2-content {
    flex: 1;
    padding: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════
   4. CARDS & SURFACES
   ═══════════════════════════════════════════════════════════════ */

.v2-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    transition: all var(--transition-base);
}

.v2-card:hover {
    border-color: var(--border-default);
}

.v2-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.v2-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.v2-card-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   5. STAT CARDS / METRICS
   ═══════════════════════════════════════════════════════════════ */

.v2-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.v2-stat-card {
    background: #FFF8F2;
    border: 1px solid #EADCC9;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    justify-content: space-between;
    transition: all var(--transition-base);
}

.v2-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-500);
}

.v2-stat-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    background: #E88B35;
    opacity: 0.12;
    pointer-events: none;
    z-index: 1;
}

.v2-stat-arrow-btn {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #E88B35;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 3;
    transition: transform var(--transition-base), background var(--transition-fast);
}

.v2-stat-card:hover .v2-stat-arrow-btn {
    transform: scale(1.1);
    background: var(--primary-600);
}

.v2-stat-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: var(--space-1);
    position: relative;
    z-index: 2;
}

.v2-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1.2;
    font-family: var(--font-body);
    position: relative;
    z-index: 2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.v2-stat-trend {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 12px;
    font-weight: 600;
    margin-top: var(--space-2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 2;
}

.v2-stat-trend.up {
    color: var(--success-600);
    background: var(--success-50);
}

.v2-stat-trend.down {
    color: var(--danger-600);
    background: var(--danger-50);
}

.v2-stat-trend.neutral {
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .v2-stat-card {
    background: var(--bg-secondary);
    border-color: var(--border-light);
}

[data-theme="dark"] .v2-stat-card::after {
    background: var(--primary-500);
    opacity: 0.08;
}

[data-theme="dark"] .v2-stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .v2-stat-value {
    color: var(--primary-500);
}

[data-theme="dark"] .v2-stat-trend.up { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .v2-stat-trend.down { background: rgba(239, 68, 68, 0.15); }

/* ═══════════════════════════════════════════════════════════════
   6. BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-5);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.v2-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 122, 67, 0.3);
}

.v2-btn-primary {
    background: var(--gradient-green);
    color: white;
    box-shadow: var(--shadow-primary);
}

.v2-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.v2-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--primary-500);
    border: 1px solid rgba(27, 122, 67, 0.2);
}

.v2-btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-500);
    color: var(--primary-600);
    transform: translateY(-1px);
}

.v2-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.v2-btn-ghost:hover {
    background: var(--bg-tertiary);
    color: var(--primary-500);
}

.v2-btn-danger {
    background: var(--danger-500);
    color: white;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.v2-btn-danger:hover {
    background: var(--danger-600);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.4);
}

.v2-btn-sm {
    padding: var(--space-1) var(--space-3);
    font-size: 13px;
}

.v2-btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: 15px;
}

.v2-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════
   7. FORM ELEMENTS
   ═══════════════════════════════════════════════════════════════ */

.v2-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.v2-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(27, 122, 67, 0.15);
}

.v2-input::placeholder {
    color: var(--text-tertiary);
}

.v2-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.v2-input-group .v2-input {
    padding-left: 40px;
}

.v2-input-group i {
    position: absolute;
    left: 14px;
    color: var(--text-tertiary);
}

.v2-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 10px 38px 10px 14px;
    background-color: var(--bg-tertiary, #f8fafc);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236366f1' stroke-width='2.5'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
    border: 1.5px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.v2-select:hover {
    border-color: var(--primary-400, #818cf8);
    background-color: var(--bg-primary, #ffffff);
}

.v2-select:focus {
    border-color: var(--primary-600, #4f46e5);
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.15);
    background-color: var(--bg-primary, #ffffff);
}

.v2-select option {
    background-color: #ffffff;
    color: #1e293b;
    padding: 12px 14px;
    font-weight: 500;
    font-size: 13.5px;
}

[data-theme="dark"] .v2-select option {
    background-color: #1e293b;
    color: #f8fafc;
}

/* Custom Select Dropdown UI Component */
.v2-custom-select-container {
    position: relative;
    user-select: none;
}

.v2-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-primary, #ffffff);
    border: 1.5px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 42px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.v2-custom-select-trigger:hover,
.v2-custom-select-container.open .v2-custom-select-trigger {
    border-color: var(--primary-600, #4f46e5);
    box-shadow: 0 0 0 3.5px rgba(99, 102, 241, 0.12);
}

.v2-custom-select-val {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.v2-custom-select-val > span:first-child,
.v2-custom-select-option > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}

.v2-custom-select-val .v2-badge,
.v2-custom-select-option .v2-badge {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

.v2-custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    width: max-content;
    max-width: 340px;
    background: var(--bg-primary, #ffffff);
    border: 1.5px solid var(--border-light, #e2e8f0);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 260px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    padding: 6px 0;
    box-sizing: border-box;
}

/* Custom Sleek 5px Scrollbar for Dropdowns */
.v2-custom-select-options::-webkit-scrollbar,
.v2-date-picker-options::-webkit-scrollbar,
.v2-select-options-list::-webkit-scrollbar {
    width: 5px !important;
}

.v2-custom-select-options::-webkit-scrollbar-track,
.v2-date-picker-options::-webkit-scrollbar-track,
.v2-select-options-list::-webkit-scrollbar-track {
    background: transparent !important;
}

.v2-custom-select-options::-webkit-scrollbar-thumb,
.v2-date-picker-options::-webkit-scrollbar-thumb,
.v2-select-options-list::-webkit-scrollbar-thumb {
    background: rgba(156, 163, 175, 0.35) !important;
    border-radius: 10px !important;
}

.v2-custom-select-options::-webkit-scrollbar-thumb:hover,
.v2-date-picker-options::-webkit-scrollbar-thumb:hover,
.v2-select-options-list::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 163, 175, 0.6) !important;
}

.v2-custom-select-options:has(.v2-custom-select-search-wrap),
.v2-custom-select-options:has(.v2-select-search-wrap) {
    padding: 0 0 6px 0 !important;
}

.v2-custom-select-search-wrap,
.v2-select-search-wrap {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 0 6px 0 !important;
    padding: 10px 14px 10px 12px !important;
    border-bottom: 1px solid var(--border-light, #e2e8f0) !important;
    background: var(--bg-elevated, #ffffff) !important;
    z-index: 25 !important;
    border-top-left-radius: var(--radius-lg, 12px) !important;
    border-top-right-radius: var(--radius-lg, 12px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.v2-custom-select-container.open .v2-custom-select-options {
    display: flex;
}

.v2-custom-select-option {
    padding: 8px 12px !important;
    margin: 2px 6px !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #475569);
    border-radius: var(--radius-md, 8px);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
}

.v2-custom-select-option:hover,
.v2-custom-select-option.selected {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-600, #4f46e5);
    font-weight: 600;
}

/* Responsive Table Pagination Container */
.v2-pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
    box-sizing: border-box;
    width: 100%;
}

.v2-pagination-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.v2-pagination-pages {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 640px) {
    .v2-pagination-container {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 14px 10px !important;
        gap: 12px !important;
    }

    .v2-pagination-info {
        font-size: 12.5px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .v2-pagination-controls {
        width: 100% !important;
        justify-content: center !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }

    .v2-pagination-controls .v2-btn {
        padding: 5px 8px !important;
        font-size: 11.5px !important;
        min-width: 28px !important;
        height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.v2-form-group {
    margin-bottom: var(--space-4);
}

.v2-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

/* ═══════════════════════════════════════════════════════════════
   8. BADGES & TAGS
   ═══════════════════════════════════════════════════════════════ */

.v2-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.v2-badge-primary {
    background: var(--primary-50);
    color: var(--primary-700);
}

.v2-badge-success {
    background: var(--success-50);
    color: var(--success-700);
}

.v2-badge-warning {
    background: var(--warning-50);
    color: var(--warning-600);
}

.v2-badge-danger {
    background: var(--danger-50);
    color: var(--danger-700);
}

.v2-badge-info {
    background: var(--info-50);
    color: var(--info-600);
}

.v2-badge-gray {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .v2-badge-primary { background: rgba(27, 122, 67, 0.2); color: #86efac; }
[data-theme="dark"] .v2-badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
[data-theme="dark"] .v2-badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-theme="dark"] .v2-badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
[data-theme="dark"] .v2-badge-info { background: rgba(6, 182, 212, 0.2); color: #22d3ee; }
[data-theme="dark"] .v2-badge-gray { background: var(--bg-tertiary); color: var(--text-tertiary); }

/* ═══════════════════════════════════════════════════════════════
   9. TABLES
   ═══════════════════════════════════════════════════════════════ */

.v2-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.v2-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.v2-table thead {
    background: var(--bg-tertiary);
}

.v2-table th {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border-light);
}

.v2-table td {
    padding: var(--space-4);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.v2-table tbody tr {
    background: var(--bg-secondary);
    transition: background var(--transition-fast);
}

.v2-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.v2-table tbody tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════
   9a. APP LIST ROWS (HORIZONTAL LIST-BARS)
   ═══════════════════════════════════════════════════════════════ */

.v2-app-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.v2-app-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.v2-app-row:hover {
    transform: translateY(-2px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-md);
}

.v2-app-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.v2-app-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.v2-app-icon-fallback {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    font-family: var(--font-body);
}

.v2-app-details {
    display: flex;
    flex-direction: column;
}

.v2-app-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.v2-app-pkg {
    font-size: 12px;
    color: var(--text-tertiary);
}

.v2-app-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.v2-app-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--primary-500);
    color: white !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.v2-app-action-btn:hover {
    background: var(--primary-700);
    transform: scale(1.1);
}

[data-theme="dark"] .v2-app-row {
    background: var(--bg-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   10. CHARTS CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.v2-chart-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.v2-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.v2-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.v2-chart-controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.v2-chart-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.v2-chart-tab {
    padding: var(--space-2) var(--space-4);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-chart-tab:hover {
    color: var(--text-primary);
}

.v2-chart-tab.active {
    background: var(--bg-primary);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

.v2-chart-wrapper {
    position: relative;
    height: 300px;
}

.v2-chart-empty-state {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(253, 245, 236, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10;
    border-radius: var(--radius-xl);
    text-align: center;
}

[data-theme="dark"] .v2-chart-empty-state {
    background: rgba(16, 27, 20, 0.75);
}

/* ═══════════════════════════════════════════════════════════════
   11. DATE RANGE PICKER
   ═══════════════════════════════════════════════════════════════ */

.v2-date-range {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 4px;
}

.v2-date-btn {
    padding: var(--space-2) var(--space-3);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-date-btn:hover {
    color: var(--text-primary);
}

.v2-date-btn.active {
    background: var(--bg-primary);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════════════════════════════
   12. DROPDOWN MENU
   ═══════════════════════════════════════════════════════════════ */

.v2-dropdown {
    position: relative;
}

.v2-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

.v2-dropdown:hover .v2-dropdown-menu,
.v2-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.v2-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.v2-dropdown-item i {
    width: 16px;
    text-align: center;
    color: var(--text-tertiary);
}

.v2-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-2) 0;
}

/* ═══════════════════════════════════════════════════════════════
   13. EMPTY STATES
   ═══════════════════════════════════════════════════════════════ */

.v2-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-6);
    text-align: center;
}

.v2-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--text-tertiary);
    margin-bottom: var(--space-5);
}

.v2-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.v2-empty-text {
    font-size: 14px;
    color: var(--text-tertiary);
    max-width: 360px;
    margin-bottom: var(--space-5);
}

/* ═══════════════════════════════════════════════════════════════
   14. TOOLTIPS & POPOVERS
   ═══════════════════════════════════════════════════════════════ */

.v2-tooltip {
    position: relative;
}

.v2-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-2) var(--space-3);
    background: var(--text-primary);
    color: var(--text-inverse);
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
}

.v2-tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ═══════════════════════════════════════════════════════════════
   15. ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.v2-animate-fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.v2-animate-slide-up {
    animation: slideUp var(--transition-slow) ease-out;
}

.v2-animate-slide-down {
    animation: slideDown var(--transition-slow) ease-out;
}

/* Staggered animations for grids */
.v2-stats-grid > *:nth-child(1) { animation-delay: 0ms; }
.v2-stats-grid > *:nth-child(2) { animation-delay: 50ms; }
.v2-stats-grid > *:nth-child(3) { animation-delay: 100ms; }
.v2-stats-grid > *:nth-child(4) { animation-delay: 150ms; }

.v2-stats-grid > * {
    animation: slideUp var(--transition-slow) ease-out both;
}

/* ═══════════════════════════════════════════════════════════════
   16. RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Responsive Grids & Layout Containers */
.v2-stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.v2-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.v2-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* Landing Page Mobile Navigation */
.v2-landing-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: var(--space-2);
}

.v2-landing-mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: var(--space-5);
    gap: var(--space-4);
    z-index: 99;
    transform: translateY(-150%);
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.v2-landing-mobile-menu.show {
    transform: translateY(0);
}

@media (max-width: 1200px) {
    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .v2-stats-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .v2-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .v2-sidebar {
        transform: translateX(-100%);
    }

    .v2-sidebar.open,
    .v2-sidebar.show {
        transform: translateX(0);
    }

    .v2-main {
        margin-left: 0;
    }

    .v2-mobile-toggle {
        display: block;
    }

    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .v2-stats-grid-3 {
        grid-template-columns: 1fr;
    }

    .v2-profile-grid {
        grid-template-columns: 1fr;
    }

    .v2-header {
        padding: 0 var(--space-4);
    }

    .v2-search-box {
        display: none;
    }

    .v2-content {
        padding: var(--space-4);
    }

    .v2-user-info {
        display: none;
    }

    .v2-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-chart-tabs {
        width: 100%;
        overflow-x: auto;
    }

    /* Landing mobile toggle visibility */
    .v2-landing-mobile-toggle {
        display: block;
    }
    .v2-nav-links, .v2-nav-actions .v2-btn:not(.v2-btn-ghost) {
        display: none !important;
    }
    .v2-nav-actions {
        gap: 8px;
    }
}

@media (max-width: 576px) {
    .v2-app-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: var(--space-3);
        align-items: center;
        padding: var(--space-3);
    }

    .v2-app-meta {
        grid-column: 1 / -1;
        justify-content: flex-start;
        width: 100%;
        gap: var(--space-2);
    }

    .v2-app-action-btn {
        grid-row: 1;
        grid-column: 2;
    }
    
    .v2-app-pkg {
        max-width: 160px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .v2-stat-value {
        font-size: 22px;
    }
    
    .v2-page-title {
        font-size: 24px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   17. UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.text-primary { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted { color: var(--text-tertiary) !important; }
.text-success { color: var(--success-600) !important; }
.text-danger { color: var(--danger-600) !important; }
.text-warning { color: var(--warning-600) !important; }
.text-info { color: var(--info-600) !important; }

.bg-primary { background: var(--bg-primary) !important; }
.bg-secondary { background: var(--bg-secondary) !important; }
.bg-tertiary { background: var(--bg-tertiary) !important; }

.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sidebar overlay for mobile */
.v2-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 104;
}

@media (max-width: 768px) {
    .v2-sidebar-overlay.show {
        display: block;
    }
}

/* File Upload */
.v2-file-upload {
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    background: var(--bg-tertiary);
}

.v2-file-upload:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

[data-theme="dark"] .v2-file-upload:hover {
    background: rgba(27, 122, 67, 0.1);
}

/* Auth Pages */
.v2-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 20px;
}

.v2-auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-2xl);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
}

.v2-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.v2-auth-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.v2-auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.v2-auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.v2-auth-subtitle {
    text-align: center;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    font-size: 14px;
}

.v2-auth-form .v2-form-group {
    margin-bottom: 20px;
}

.v2-auth-form .v2-btn {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    margin-top: 8px;
}

.v2-auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-secondary);
}

.v2-auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-tertiary);
    font-size: 13px;
}

.v2-auth-divider::before,
.v2-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Policy Page */
.v2-policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.v2-policy-section {
    margin-bottom: 32px;
}

.v2-policy-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.v2-policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.v2-policy-section ul {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 16px;
}

.v2-policy-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   18. RESPONSIVE DESIGN - ALL BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* Large Desktop - 1400px+ */
@media (min-width: 1400px) {
    .v2-content {
        padding: var(--space-8);
    }
}

/* Desktop - 1200px */
@media (max-width: 1200px) {
    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-hero-content {
        gap: 48px;
    }
}

/* Tablet - 1024px */
@media (max-width: 1024px) {
    .v2-sidebar {
        transform: translateX(-100%);
    }

    .v2-sidebar.show {
        transform: translateX(0);
    }

    .v2-main {
        margin-left: 0;
    }

    .v2-mobile-toggle {
        display: flex !important;
    }

    .v2-page-title {
        font-size: 18px;
    }

    .v2-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .v2-hero-title {
        font-size: 42px;
    }

    .v2-hero-actions {
        justify-content: center;
    }

    .v2-hero-stats {
        justify-content: center;
    }

    .v2-features-grid,
    .v2-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .v2-notifications-panel {
        width: calc(100% - 32px);
        right: 16px;
    }
}

/* Tablet/Small - 768px */
@media (max-width: 768px) {
    .v2-content {
        padding: var(--space-4);
    }

    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .v2-stat-card {
        padding: var(--space-4);
    }

    .v2-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .v2-stat-value {
        font-size: 22px;
    }

    /* Chart */
    .v2-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .v2-chart-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .v2-chart-tab {
        flex-shrink: 0;
        padding: var(--space-2) var(--space-3);
        font-size: 12px;
    }

    .v2-chart-wrapper {
        height: 250px;
    }

    /* Tables */
    .v2-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .v2-table {
        min-width: 600px;
    }

    /* Cards */
    .v2-card {
        padding: var(--space-4);
    }

    .v2-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    /* Header */
    .v2-header {
        padding: 0 var(--space-4);
    }

    .v2-header-right {
        gap: var(--space-2);
    }

    .v2-user-info {
        display: none;
    }

    .v2-user-menu {
        padding: var(--space-1);
    }

    /* User Dropdown */
    .v2-user-dropdown {
        position: fixed;
        top: var(--header-height);
        right: 0;
        left: 0;
        width: 100%;
        border-radius: 0;
        max-width: none;
    }

    /* Forms */
    .v2-form-group {
        margin-bottom: var(--space-4);
    }

    .v2-input,
    .v2-select {
        padding: var(--space-3);
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Modals */
    .v2-modal {
        max-width: calc(100% - 32px);
        margin: 16px;
        border-radius: var(--radius-xl);
    }

    .v2-modal-header,
    .v2-modal-body,
    .v2-modal-footer {
        padding: var(--space-4);
    }

    /* Notifications Panel */
    .v2-notifications-panel {
        top: var(--header-height);
        right: 8px;
        left: 8px;
        width: auto;
        max-width: none;
    }

    /* Auth Pages */
    .v2-auth-card,
    .v2-login-card,
    .v2-register-card {
        padding: var(--space-6);
        border-radius: var(--radius-xl);
    }

    /* Navigation */
    .v2-nav {
        padding: 0 var(--space-4);
    }

    .v2-nav-links {
        display: none;
    }

    .v2-hero {
        padding: 100px var(--space-4) var(--space-8);
    }

    .v2-hero-title {
        font-size: 32px;
    }

    .v2-hero-text {
        font-size: 16px;
    }

    .v2-hero-stats {
        flex-direction: column;
        gap: var(--space-4);
    }

    .v2-hero-stat {
        text-align: center;
    }

    .v2-features-grid,
    .v2-steps-grid {
        grid-template-columns: 1fr;
    }

    .v2-section {
        padding: var(--space-8) var(--space-4);
    }

    .v2-section-title {
        font-size: 28px;
    }

    .v2-cta {
        margin: var(--space-6) 0 0 0;
        padding: var(--space-6);
    }

    .v2-cta-title {
        font-size: 24px;
    }

    .v2-footer {
        padding: var(--space-6) var(--space-4);
    }

    /* Apps Grid */
    .v2-apps-grid {
        grid-template-columns: 1fr;
    }

    /* Profile Page */
    .v2-profile-grid {
        grid-template-columns: 1fr;
    }

    /* Filter Form */
    .v2-filter-form {
        flex-direction: column;
    }
}

/* Mobile - 480px */
@media (max-width: 480px) {
    .v2-content {
        padding: var(--space-3);
    }

    .v2-page-title {
        font-size: 16px;
    }

    .v2-stat-card {
        padding: var(--space-3);
    }

    .v2-stat-value {
        font-size: 20px;
    }

    .v2-stat-label {
        font-size: 12px;
    }

    .v2-chart-wrapper {
        height: 200px;
    }

    .v2-btn {
        padding: var(--space-2) var(--space-3);
        font-size: 13px;
    }

    /* Hide elements on very small screens */
    .v2-hide-mobile {
        display: none !important;
    }

    .v2-modal-footer {
        flex-direction: column;
    }

    .v2-modal-footer .v2-btn {
        width: 100%;
    }

    /* Better touch targets */
    .v2-header-icon {
        width: 36px;
        height: 36px;
    }

    /* Notification badge */
    .v2-header-icon .badge {
        width: 16px;
        height: 16px;
        font-size: 9px;
        top: -1px;
        right: -1px;
        border-width: 1.5px;
    }
}

/* Extra Small - 360px */
@media (max-width: 360px) {
    .v2-hero-title {
        font-size: 26px;
    }

    .v2-btn-lg {
        padding: var(--space-3) var(--space-4);
        font-size: 14px;
    }
}

/* Trusted Partners Auto-scroll Ticker */
.v2-partners-section {
    padding: 64px 48px;
    background: var(--bg-secondary);
    border-top: none;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}
.v2-partners-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    font-family: var(--font-body);
}
.v2-ticker-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}
.v2-ticker {
    display: flex;
    width: max-content;
    gap: 80px;
    animation: tickerLoop 25s linear infinite;
}
.v2-ticker:hover {
    animation-play-state: paused;
}
.v2-ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.v2-ticker-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.v2-ticker-item a:hover {
    color: var(--primary-500);
    transform: scale(1.05);
}
.v2-ticker-item i {
    font-size: 24px;
}

@keyframes tickerLoop {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 768px) {
    .v2-partners-section {
        padding: 40px 24px;
    }
    .v2-ticker {
        gap: 40px;
    }
}

/* ──────────────────────────────────────────────────────────────
   LANDING PAGE, HEADER, FOOTER & COMMON LAYOUTS
   ────────────────────────────────────────────────────────────── */

/* Navbar & Header */
.v2-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 100;
    transition: background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base), box-shadow var(--transition-base);
}

.v2-nav.scrolled {
    background: rgba(253, 245, 236, 0.85); /* Light Cream glass */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.v2-nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] .v2-nav {
    background: transparent;
}

[data-theme="dark"] .v2-nav.scrolled {
    background: rgba(10, 18, 13, 0.85); /* Deep Forest glass */
}

.v2-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.v2-nav-brand-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: 48px;
}

.v2-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.v2-nav-link:hover {
    color: var(--text-primary);
}

.v2-nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.v2-landing-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.v2-landing-mobile-toggle:hover {
    background: var(--bg-tertiary);
}

.v2-landing-mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 99;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    box-shadow: var(--shadow-lg);
}

.v2-landing-mobile-menu.show {
    transform: translateY(0);
}

/* Hero Section */
.v2-hero {
    padding: 160px 48px 80px;
    position: relative;
    overflow: hidden;
}

.v2-hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
}

.v2-hero-glow-1 {
    background: var(--primary-500);
    top: -200px;
    left: -100px;
}

.v2-hero-glow-2 {
    background: var(--accent-500);
    bottom: -200px;
    right: -100px;
}

.v2-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.v2-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

[data-theme="dark"] .v2-hero-badge {
    background: rgba(99, 102, 241, 0.15);
}

.v2-hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 24px;
}

.v2-hero-title span {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-hero-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.v2-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.v2-btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.v2-btn-gradient {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
}

.v2-btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    color: white;
}

.v2-hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.v2-hero-stat h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.v2-hero-stat p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* Dashboard Preview */
.v2-dashboard-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.v2-dashboard-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-light);
}

.v2-dashboard-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.v2-dashboard-body {
    padding: 24px;
}

/* Sections */
.v2-section {
    padding: 80px 48px;
    width: 100%;
}

.v2-section-header,
.v2-features-grid,
.v2-steps-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.v2-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.v2-section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-50);
    color: var(--primary-600);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

[data-theme="dark"] .v2-section-badge {
    background: rgba(99, 102, 241, 0.15);
}

.v2-section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.v2-section-title span {
    background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-section-text {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.v2-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.v2-feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.v2-feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow: var(--shadow-lg);
}

.v2-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.v2-feature-icon.primary {
    background: var(--primary-50);
    color: var(--primary-600);
}

.v2-feature-icon.success {
    background: var(--success-50);
    color: var(--success-600);
}

.v2-feature-icon.info {
    background: var(--info-50);
    color: var(--info-600);
}

[data-theme="dark"] .v2-feature-icon.primary { background: rgba(99, 102, 241, 0.15); }
[data-theme="dark"] .v2-feature-icon.success { background: rgba(16, 185, 129, 0.15); }
[data-theme="dark"] .v2-feature-icon.info { background: rgba(6, 182, 212, 0.15); }

.v2-feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.v2-feature-card p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.6;
}

/* Steps */
.v2-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.v2-step-card {
    text-align: center;
    padding: 32px;
}

.v2-step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.v2-step-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.v2-step-card p {
    color: var(--text-tertiary);
    font-size: 14px;
}

/* CTA */
.v2-cta {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: none;
    padding: 80px 24px;
    text-align: center;
    margin: 80px 0 0 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.v2-cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-500);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.v2-cta-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.v2-cta-text {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
    position: relative;
}

/* Footer styling */
.v2-footer {
    padding: 80px 48px var(--space-8);
    background: #000000; /* Rich pure black background */
    border-top: 1px solid #111111;
    color: #aaaaaa;
}

.v2-footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}

.v2-footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff; /* Light text for titles */
    margin-bottom: 24px;
}

.v2-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.v2-footer-list a {
    color: #888888; /* Muted gray for links */
    font-size: 14px;
    transition: color 0.2s;
}

.v2-footer-list a:hover {
    color: var(--primary-500);
}

.v2-footer p {
    color: #888888 !important; /* Override inline styles */
}

.v2-footer .v2-nav-brand span {
    color: #ffffff !important; /* Keep brand text light */
}

.v2-footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #111111;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.v2-footer-bottom p {
    color: #555555 !important; /* Muted copyright */
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .v2-hero-content {
        grid-template-columns: 1fr;
    }
    .v2-features-grid,
    .v2-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .v2-nav { padding: 0 24px; }
    .v2-nav-links { display: none; }
    .v2-landing-mobile-toggle { display: block; }
    .v2-hero { padding: 120px 24px 60px; }
    .v2-hero-title { font-size: 36px; }
    .v2-hero-stats { flex-wrap: wrap; gap: 24px; }
    .v2-features-grid,
    .v2-steps-grid { grid-template-columns: 1fr; }
    .v2-section { padding: 48px 24px; }
    .v2-cta { margin: 48px 0 0 0; padding: 32px; }
    .v2-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    .v2-footer-col h4 {
        margin-bottom: 16px;
    }
    .v2-footer {
        padding: 48px 24px var(--space-6);
    }
}

/* Landscape mode on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .v2-hero {
        padding-top: 80px;
    }

    .v2-modal {
        max-height: 90vh;
        margin-top: 20px;
    }
}

/* Dashboard Bottom Grid */
.v2-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
}

/* Profile Grid */
.v2-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* Sidebar Overlay */
.v2-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.v2-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 3-Column Stats Grid */
.v2-stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

/* Hide desktop navbar actions on mobile */
@media (max-width: 768px) {
    .v2-nav-btn-desktop {
        display: none !important;
    }
}

/* Dashboard Bottom Grid responsive */
@media (max-width: 1024px) {
    .v2-dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .v2-stats-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .v2-main {
        margin-left: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* Print styles */
@media print {
    .v2-sidebar,
    .v2-header,
    .v2-mobile-toggle,
    .v2-btn,
    .v2-chart-controls {
        display: none !important;
    }

    .v2-main {
        margin-left: 0;
    }

    .v2-content {
        padding: 0;
    }

    .v2-card,
    .v2-stat-card {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Logo Image Styling */
.v2-nav-brand-logo img,
.v2-brand-logo img,
.v2-login-logo img,
.v2-register-logo img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Responsive Chart Controls for Mobile Viewports */
@media (max-width: 576px) {
    .v2-chart-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: var(--space-3);
    }

    .v2-chart-tabs, 
    .v2-date-range {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .v2-chart-tab, 
    .v2-date-btn {
        flex: 1;
        text-align: center;
        padding: var(--space-2) var(--space-1);
        font-size: 11px;
    }

    .v2-chart-container {
        padding: var(--space-3) !important;
    }
}

/* Custom Dropdown Selector */
.v2-custom-select-container {
    position: relative;
    width: 100%;
}

.v2-custom-select-trigger {
    width: 100%;
    padding: 10px 14px;
    padding-left: 36px !important;
    font-size: 13px;
    background: #FFF8F2 !important;
    border: 1px solid #EADCC9 !important;
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .v2-custom-select-trigger {
    background: var(--bg-secondary) !important;
    border-color: var(--border-light) !important;
}

.v2-custom-select-trigger:focus {
    outline: none;
    border-color: var(--primary-500) !important;
    box-shadow: 0 0 0 3px rgba(27, 122, 67, 0.15);
}

.v2-custom-select-val {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    width: calc(100% - 16px);
    min-width: 0;
}

.v2-custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    padding: 6px;
    pointer-events: none;
}

.v2-custom-select-container.open .v2-custom-select-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.v2-custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.v2-custom-select-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.v2-custom-select-option.selected {
    background: var(--primary-50);
    color: var(--primary-700);
}

[data-theme="dark"] .v2-custom-select-option.selected {
    background: rgba(27, 122, 67, 0.2);
    color: var(--primary-500);
}

.v2-custom-select-option-content {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.v2-custom-select-option-content span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* App Avatars for Selector Dropdown */
.v2-select-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
}

/* Platform Badges */
.v2-platform-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v2-platform-badge.android {
    background: #e6f7ed;
    color: #1b7a43;
}
[data-theme="dark"] .v2-platform-badge.android {
    background: rgba(27, 122, 67, 0.2);
    color: #86efac;
}

.v2-platform-badge.ios {
    background: #f1f5f9;
    color: #475569;
}
[data-theme="dark"] .v2-platform-badge.ios {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.v2-platform-badge.web {
    background: #e0f2fe;
    color: #0369a1;
}
[data-theme="dark"] .v2-platform-badge.web {
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* Date Picker Popup Panel */
.v2-date-picker-options {
    width: 330px !important;
    min-width: 330px !important;
    padding: 16px !important;
    background: var(--bg-elevated) !important;
    border: 1.5px solid var(--border-light) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
    box-sizing: border-box !important;
    max-height: none !important;
}

.v2-date-picker-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.v2-date-presets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: var(--space-4);
}

.v2-preset-btn {
    padding: 9px 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
}

.v2-preset-btn:hover,
.v2-preset-btn.active {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-600);
    font-weight: 600;
}

[data-theme="dark"] .v2-preset-btn:hover,
[data-theme="dark"] .v2-preset-btn.active {
    background: rgba(27, 122, 67, 0.15);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.v2-date-picker-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-4) 0;
}

.v2-custom-range-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.v2-custom-date-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.v2-date-label {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-tertiary);
    border-right: 1px solid var(--border-light);
    background: var(--bg-tertiary);
    min-width: 60px;
    text-align: center;
}

.v2-custom-date-field input[type="date"] {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
}

/* Swap field icon with custom select avatar when present */
.v2-filter-input-wrap:has(.v2-select-avatar) > i {
    display: none !important;
}

.v2-filter-input-wrap:has(.v2-select-avatar) .v2-custom-select-trigger {
    padding-left: 14px !important;
}

/* Toast Notification Styles */
.v2-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.v2-toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    background: var(--bg-elevated);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transform: translateX(120%);
    transition: all var(--transition-slow);
    animation: toastSlideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v2-toast.hide {
    animation: toastSlideOut 0.3s forwards ease;
}

@keyframes toastSlideIn {
    to { transform: translateX(0); }
}

@keyframes toastSlideOut {
    to { transform: translateX(120%); opacity: 0; }
}

.v2-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 500;
}

.v2-toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.v2-toast-success {
    border-left-color: var(--success-500);
}
.v2-toast-success .v2-toast-icon {
    color: var(--success-500);
}

.v2-toast-error {
    border-left-color: var(--danger-500);
}
.v2-toast-error .v2-toast-icon {
    color: var(--danger-500);
}

.v2-toast-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-toast-close:hover {
    color: var(--text-primary);
}

/* Filter Input Wrap and Icons */
.v2-filter-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.v2-filter-input-wrap > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-500);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.v2-filter-input-wrap .v2-input,
.v2-filter-input-wrap .v2-select {
    width: 100%;
    padding: 10px 14px;
    padding-left: 36px !important;
    font-size: 13px;
    background: #FFF8F2 !important;
    border: 1px solid #EADCC9 !important;
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-primary);
}

[data-theme="dark"] .v2-filter-input-wrap .v2-input,
[data-theme="dark"] .v2-filter-input-wrap .v2-select {
    background: var(--bg-secondary) !important;
    border-color: var(--border-light) !important;
    color: var(--text-primary);
}

/* Platform and Family Select Pills */
.v2-platform-pills, .v2-family-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 6px;
}
.v2-family-pills {
    grid-template-columns: repeat(2, 1fr);
}

.v2-platform-pill, .v2-family-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.v2-platform-pill:hover, .v2-family-pill:hover {
    border-color: var(--primary-500);
    background: var(--bg-secondary);
}

.v2-platform-pill.active, .v2-family-pill.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
    color: var(--primary-700);
    box-shadow: 0 0 0 1px var(--primary-500);
}

[data-theme="dark"] .v2-platform-pill.active,
[data-theme="dark"] .v2-family-pill.active {
    background: rgba(45, 155, 90, 0.08);
    color: var(--primary-500);
}

.v2-form-help-text {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
    display: block;
}

@media (max-width: 992px) {
    .v2-profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}

/* Disabled platform pill styles */
.v2-platform-pill.disabled,
.v2-platform-pill.disabled:hover {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    border-color: var(--border-default) !important;
    background: var(--bg-primary) !important;
    color: var(--text-tertiary) !important;
    box-shadow: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVENESS & TOUCH UI ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Responsive Table Wrapper */
.v2-table-wrapper,
.v2-table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-sizing: border-box;
}

.v2-table-wrapper table,
.v2-table-responsive table {
    min-width: 600px;
}

/* Global Mobile Breakpoint (<= 991px) */
@media (max-width: 991px) {
    .v2-finance-grid,
    .v2-profile-grid,
    .v2-report-section-layout,
    .v2-usecase-grid,
    .v2-faq-container,
    .v2-referral-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .v2-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .v2-txn-filters,
    .v2-filter-bar {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
}

/* Tablet & Mobile Breakpoint (<= 768px) */
@media (max-width: 1024px) {
    .v2-main {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .v2-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    }

    .v2-content {
        padding: 16px !important;
    }

    .v2-page-header {
        margin-bottom: 20px !important;
    }

    .v2-page-title {
        font-size: 24px !important;
    }

    .v2-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .v2-platform-pills {
        grid-template-columns: 1fr !important;
    }

    .v2-family-pills {
        grid-template-columns: 1fr !important;
    }

    /* Modal responsiveness */
    .v2-modal,
    .v2-modal-container {
        width: 95vw !important;
        max-width: 95vw !important;
        max-height: 90vh !important;
        margin: 10px auto !important;
        padding: 16px !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        border-radius: var(--radius-lg) !important;
    }

    /* Form Controls & Buttons on Mobile */
    .v2-filter-input-wrap {
        width: 100% !important;
    }

    .v2-filter-input-wrap .v2-input,
    .v2-filter-input-wrap .v2-select,
    .v2-custom-select-trigger {
        min-height: 42px !important;
        font-size: 13px !important;
    }

    .v2-btn {
        min-height: 40px !important;
        padding: 8px 16px !important;
        font-size: 13.5px !important;
    }

    /* Toast Notification on Mobile */
    .v2-toast-container {
        top: 12px !important;
        right: 12px !important;
        left: 12px !important;
    }

    .v2-toast {
        min-width: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Responsive Tool Forms & Custom Selects on Mobile */
    .v2-tool-form-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .v2-tool-form-grid > div,
    .v2-tool-form-grid button,
    .v2-tool-form-grid input,
    .v2-tool-form-grid select,
    .v2-custom-select-container {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .v2-custom-select-val {
        max-width: calc(100% - 20px) !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .v2-custom-select-trigger {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Small Smartphone Breakpoint (<= 576px) */
@media (max-width: 576px) {
    .v2-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .v2-page-title {
        font-size: 20px !important;
    }

    .v2-card {
        padding: 16px !important;
        border-radius: var(--radius-lg) !important;
    }

    .v2-btn-group,
    .v2-modal-footer {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .v2-modal-footer .v2-btn {
        width: 100% !important;
    }
}

/* Global Custom Select Floating Dropdowns Fix */
.v2-custom-select-container {
    position: relative !important;
    width: 100% !important;
}

.v2-custom-select-options {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 100% !important;
    width: max-content !important;
    min-width: 170px !important;
    max-width: 280px !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    border-radius: 14px !important;
    border: 1px solid var(--border-light, #e8ddd0) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16) !important;
    background: var(--bg-elevated, #ffffff) !important;
    padding: 6px !important;
    z-index: 9999 !important;
    box-sizing: border-box !important;
}

/* Right-aligned or second-column floating dropdowns to prevent horizontal viewport overflow */
#custom-select-month .v2-custom-select-options,
.v2-custom-select-options.align-right,
.v2-txn-filters .v2-filter-input-wrap:nth-child(even) .v2-custom-select-options,
.v2-txn-filters .v2-filter-input-wrap:last-of-type .v2-custom-select-options {
    left: auto !important;
    right: 0 !important;
}

[data-theme="dark"] .v2-custom-select-options {
    background: #182232 !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
}

/* Custom Select Options Items & Spacing (Image 3 Style) */
.v2-custom-select-option {
    padding: 9px 12px !important;
    margin: 3px 0 !important;
    border-radius: 8px !important;
    gap: 10px !important;
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    border: 1px solid transparent !important;
    transition: all 0.18s ease !important;
    color: var(--text-primary, #1a1a1a) !important;
    cursor: pointer !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.v2-custom-select-option:hover {
    background: rgba(27, 122, 67, 0.08) !important;
    border-color: rgba(27, 122, 67, 0.2) !important;
    color: var(--primary-500, #1B7A43) !important;
    transform: translateY(-1px) !important;
}

.v2-custom-select-option.selected {
    background: rgba(27, 122, 67, 0.12) !important;
    border-color: var(--primary-500, #1B7A43) !important;
    color: var(--primary-500, #1B7A43) !important;
    font-weight: 700 !important;
}

[data-theme="dark"] .v2-custom-select-option:hover {
    background: rgba(45, 155, 90, 0.2) !important;
    border-color: rgba(45, 155, 90, 0.35) !important;
    color: #4ade80 !important;
}

[data-theme="dark"] .v2-custom-select-option.selected {
    background: rgba(45, 155, 90, 0.28) !important;
    border-color: #2D9B5A !important;
    color: #4ade80 !important;
}

.v2-custom-select-option-content {
    min-width: 0 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.v2-custom-select-option-content > span {
    display: block !important;
    font-size: 13.5px !important;
    color: inherit !important;
}

/* Mobile Transaction History Card Improvements & Strict Page Overflow Lock */
@media (max-width: 768px) {
    html, body, .v2-app-container, .v2-main-content, #page-content-wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    .v2-txn-filters {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .v2-filter-input-wrap {
        flex: 1 1 calc(50% - 6px) !important;
        min-width: 130px !important;
        max-width: 100% !important;
        position: relative !important;
    }
    .v2-custom-select-options {
        min-width: 160px !important;
        max-width: calc(100vw - 32px) !important;
    }
    .v2-txn-filters .v2-filter-input-wrap:nth-child(even) .v2-custom-select-options,
    .v2-txn-filters .v2-filter-input-wrap:last-of-type .v2-custom-select-options,
    #custom-select-month .v2-custom-select-options {
        left: auto !important;
        right: 0 !important;
    }
    .v2-month-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        padding: 14px 16px !important;
    }
    .v2-month-ending-balance {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-top: 10px !important;
        border-top: 1px dashed var(--border-light, #e8ddd0) !important;
        font-size: 13px !important;
    }
    .v2-month-body {
        padding: 12px 12px !important;
    }
    .v2-usd-subtext {
        display: block !important;
        font-size: 11px !important;
        color: var(--text-tertiary) !important;
        margin-top: 2px !important;
        font-weight: normal !important;
    }

    .v2-form-grid-2col {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 16px !important;
    }

    .v2-app-form-card {
        padding: 20px 16px !important;
    }
}

.v2-form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.v2-app-form-card {
    padding: 32px;
}





