/* Vine Gremlin Styles */

* { box-sizing: border-box; }

/* Demo Banner */
.vg-demo-banner {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    position: sticky;
    top: 0;
    z-index: 1001;
}
.vg-demo-icon { font-size: 20px; }
.vg-demo-text { flex: 1; text-align: center; }
.vg-btn-demo-signup {
    background: white;
    color: #7c3aed;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.vg-btn-demo-signup:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}
#demo-countdown {
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.vg-body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1e293b;
    background: #f1f5f9;
}

/* Auth Pages */
.vg-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}

.vg-auth-container { width: 100%; max-width: 420px; padding: 20px; }

.vg-auth-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.vg-logo { text-align: center; margin-bottom: 30px; }
.vg-logo h1 { margin: 10px 0 0; font-size: 28px; color: #16a34a; }
.vg-logo-img { 
    max-width: 280px; 
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain; 
    display: block; 
    margin: 0 auto; 
}

.vg-auth-header {
    text-align: center;
    margin-bottom: 20px;
}
.vg-auth-logo {
    max-width: 250px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.vg-auth-box h2 { text-align: center; margin: 0 0 10px; font-size: 20px; color: #1e293b; }
.vg-subtitle { text-align: center; color: #64748b; margin: 0 0 25px; }

/* Layout */
.vg-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

.vg-header {
    background: #1e293b;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vg-header-left { display: flex; align-items: center; gap: 20px; }
.vg-header-right { display: flex; align-items: center; gap: 15px; }

.vg-logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.vg-logo-img-small { 
    max-width: 160px; 
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain; 
}

.vg-user-info { color: #94a3b8; font-size: 13px; }
.vg-user-info strong { color: white; }

/* Navigation */
.vg-nav {
    background: #334155;
    border-bottom: 1px solid #475569;
    padding: 0 30px;
}

.vg-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.vg-nav-list > li > a {
    display: block;
    padding: 12px 18px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
}

.vg-nav-list > li > a:hover { color: white; background: #475569; }
.vg-nav-list > li.active > a { color: white; background: #475569; font-weight: 500; }

/* Dropdowns */
.vg-nav-dropdown { position: relative; }

.vg-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 18px;
    color: #94a3b8;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px 6px 0 0;
    transition: all 0.2s;
}

.vg-dropdown-toggle:hover { color: white; background: #475569; }

/* Inventory - Green */
.vg-nav-inventory > .vg-dropdown-toggle { background: #166534; color: #bbf7d0; }
.vg-nav-inventory > .vg-dropdown-toggle:hover { background: #15803d; color: white; }
.vg-nav-inventory.active > .vg-dropdown-toggle,
.vg-nav-inventory.open > .vg-dropdown-toggle { color: white; background: #15803d; }
.vg-nav-inventory .vg-dropdown-menu { background: #f0fdf4; }
.vg-nav-inventory .vg-dropdown-menu li a:hover { background: #dcfce7; }
.vg-nav-inventory .vg-dropdown-menu li a.active { background: #dcfce7; color: #16a34a; }

/* Admin - Red/Orange */
.vg-nav-admin > .vg-dropdown-toggle { background: #9a3412; color: #fed7aa; }
.vg-nav-admin > .vg-dropdown-toggle:hover { background: #c2410c; color: white; }
.vg-nav-admin.active > .vg-dropdown-toggle,
.vg-nav-admin.open > .vg-dropdown-toggle { color: white; background: #c2410c; }
.vg-nav-admin .vg-dropdown-menu { background: #fff7ed; }
.vg-nav-admin .vg-dropdown-menu li a:hover { background: #ffedd5; }
.vg-nav-admin .vg-dropdown-menu li a.active { background: #ffedd5; color: #c2410c; }

/* Add Item - Green */
.vg-nav-additem > a { background: #166534 !important; color: #bbf7d0 !important; }
.vg-nav-additem > a:hover { background: #15803d !important; color: white !important; }
.vg-nav-additem.active > a { color: white !important; background: #15803d !important; }

/* Import - Blue */
.vg-nav-import > a { background: #1e40af !important; color: #bfdbfe !important; }
.vg-nav-import > a:hover { background: #1d4ed8 !important; color: white !important; }
.vg-nav-import.active > a { color: white !important; background: #1d4ed8 !important; }

.vg-arrow { font-size: 10px; transition: transform 0.2s; }
.vg-nav-dropdown.open .vg-arrow { transform: rotate(180deg); }

.vg-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.vg-nav-dropdown.open .vg-dropdown-menu { display: block; }

.vg-dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}

.vg-dropdown-menu li a:hover { background: #f1f5f9; color: #1e293b; }
.vg-dropdown-menu li a.active { background: #f0fdf4; color: #16a34a; font-weight: 500; }

.vg-dropdown-divider { height: 1px; background: #e2e8f0; margin: 8px 0; }

/* Nested Submenu */
.vg-has-submenu { position: relative; }
.vg-has-submenu > a { display: flex; justify-content: space-between; align-items: center; }
.vg-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff7ed;
    min-width: 200px;
    border-radius: 0 8px 8px 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}
.vg-has-submenu:hover > .vg-submenu,
.vg-has-submenu.open > .vg-submenu { display: block; }
.vg-submenu li a {
    display: block;
    padding: 10px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
}
.vg-submenu li a:hover { background: #ffedd5; }
.vg-submenu li a.active { background: #ffedd5; color: #c2410c; font-weight: 500; }
.vg-submenu .vg-dropdown-divider { height: 1px; background: #fed7aa; margin: 8px 0; }

/* Main Content */
.vg-main { flex: 1; padding: 30px; max-width: 1400px; margin: 0 auto; width: 100%; }

.vg-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.vg-page-header h2 { margin: 0; font-size: 24px; color: #1e293b; }

/* Cards */
.vg-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vg-card h3 { margin: 0 0 20px; font-size: 16px; color: #1e293b; }
.vg-card-narrow { max-width: 500px; }

/* Tables */
.vg-table-container { background: white; border-radius: 10px 10px 0 0; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.vg-table-container:last-child { border-radius: 10px; }
.vg-table-container > .vg-table-footer { min-width: 100%; }

.vg-table { width: 100%; border-collapse: collapse; }
.vg-table th, .vg-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.vg-table th { background: #f8fafc; font-weight: 600; color: #475569; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.vg-table tbody tr { background: white; }
.vg-table tbody tr:hover { background: #f8fafc; }
.vg-table tbody tr:last-child td { border-bottom: none; }
.vg-table code { background: #f1f5f9; padding: 2px 6px; border-radius: 4px; font-size: 12px; }

/* Sortable table headers */
.vg-table-sortable th[data-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 25px;
    transition: background 0.2s;
}
.vg-table-sortable th[data-sort]:hover {
    background: #e2e8f0;
}
.vg-table-sortable th[data-sort]::after {
    content: '⇅';
    position: absolute;
    right: 8px;
    opacity: 0.3;
    font-size: 10px;
}
.vg-table-sortable th.sort-asc::after {
    content: '↑';
    opacity: 1;
    color: #16a34a;
}
.vg-table-sortable th.sort-desc::after {
    content: '↓';
    opacity: 1;
    color: #16a34a;
}

.vg-table-footer { padding: 15px 20px; background: #f8fafc; border-top: 1px solid #e2e8f0; border-radius: 0 0 10px 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.vg-table-footer p { margin: 0; color: #64748b; }

/* Actions */
.vg-actions .vg-btn { margin-right: 5px; margin-bottom: 3px; }
.vg-actions .vg-btn:last-child { margin-right: 0; }

/* Buttons */
.vg-btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: inherit;
}

.vg-btn-primary { background: #16a34a; color: white; }
.vg-btn-primary:hover { background: #15803d; }

.vg-btn-secondary { background: #e2e8f0; color: #475569; }
.vg-btn-secondary:hover { background: #cbd5e1; }

.vg-btn-success { background: #16a34a; color: white; }
.vg-btn-success:hover { background: #15803d; }

.vg-btn-warning { background: #f59e0b; color: white; }
.vg-btn-warning:hover { background: #d97706; }

.vg-btn-kept { background: #00ACC1; color: white; }
.vg-btn-kept:hover { background: #00838F; }

.vg-btn-donated { background: #8b5cf6; color: white; }
.vg-btn-donated:hover { background: #7c3aed; }

.vg-btn-danger { background: #dc2626; color: white; }
.vg-btn-danger:hover { background: #b91c1c; }

.vg-btn-outline { background: #475569; border: 1px solid #64748b; color: white; }
.vg-btn-outline:hover { background: #64748b; border-color: #94a3b8; }

.vg-btn-sm { padding: 5px 10px; font-size: 12px; }
.vg-btn-xs { padding: 3px 8px; font-size: 11px; }
.vg-btn-block { display: block; width: 100%; text-align: center; }

.vg-btn-icon {
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}
.vg-btn-icon:hover { background: #e2e8f0; }
.vg-btn-icon.vg-btn-primary { background: #dcfce7; border-color: #86efac; }
.vg-btn-icon.vg-btn-primary:hover { background: #bbf7d0; }
.vg-btn-icon.vg-btn-success { background: #dcfce7; border-color: #86efac; }
.vg-btn-icon.vg-btn-success:hover { background: #bbf7d0; }
.vg-btn-icon.vg-btn-warning { background: #fef3c7; border-color: #fcd34d; }
.vg-btn-icon.vg-btn-warning:hover { background: #fde68a; }
.vg-btn-icon.vg-btn-danger { background: #fee2e2; border-color: #fca5a5; }
.vg-btn-icon.vg-btn-danger:hover { background: #fecaca; }
.vg-btn-icon.vg-btn-kept { background: #e0f7fa; border-color: #80deea; }
.vg-btn-icon.vg-btn-kept:hover { background: #b2ebf2; }
.vg-btn-icon.vg-btn-donated { background: #ede9fe; border-color: #c4b5fd; }
.vg-btn-icon.vg-btn-donated:hover { background: #ddd6fe; }

.vg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Forms */
.vg-form-group { margin-bottom: 18px; }
.vg-form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #374151; }

.vg-form-group input,
.vg-form-group select,
.vg-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.vg-form-group input:focus,
.vg-form-group select:focus,
.vg-form-group textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(107, 33, 168, 0.1);
}

.vg-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.vg-form-inline { display: flex; gap: 15px; align-items: flex-end; }
.vg-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 25px; }

.vg-form-error { background: #fef2f2; color: #dc2626; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; display: none; }
.vg-form-success { background: #f0fdf4; color: #16a34a; padding: 10px 15px; border-radius: 6px; margin-bottom: 15px; display: none; }

.vg-required { color: #dc2626; }

.vg-calculated-price { font-size: 24px; font-weight: bold; color: #16a34a; padding: 8px 0; }

.vg-checkbox-group { display: flex; flex-wrap: wrap; gap: 15px; }
.vg-checkbox-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.vg-checkbox-label input { width: auto; }

.vg-link-preview { display: inline-block; margin-top: 5px; font-size: 12px; color: #16a34a; }

/* Badges */
.vg-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.vg-badge-info { background: #dbeafe; color: #1e40af; }
.vg-badge-success { background: #dcfce7; color: #166534; }
.vg-badge-warning { background: #fef3c7; color: #92400e; }
.vg-badge-danger { background: #fee2e2; color: #991b1b; }
.vg-badge-secondary { background: #e2e8f0; color: #475569; }
.vg-badge-admin { background: #16a34a; color: white; }

/* Stats */
.vg-stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 25px; }

.vg-stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vg-stat-value { font-size: 28px; font-weight: bold; color: #1e293b; }
.vg-stat-label { font-size: 12px; color: #64748b; margin-top: 5px; }

/* Empty State */
.vg-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.vg-empty-icon { font-size: 48px; margin-bottom: 15px; }
.vg-empty h3 { margin: 0 0 10px; color: #1e293b; }
.vg-empty p { color: #64748b; margin: 0 0 20px; }

/* Modal */
.vg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.vg-modal.active { display: flex; }

.vg-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vg-modal-lg { max-width: 700px; }

.vg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.vg-modal-header h3 { margin: 0; font-size: 18px; }

.vg-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.vg-modal-close:hover { color: #1e293b; }

.vg-modal-body { padding: 20px; }
.vg-modal-body hr { border: none; border-top: 1px solid #e2e8f0; margin: 20px 0; }
.vg-modal-body h4 { margin: 0 0 15px; color: #64748b; font-size: 12px; text-transform: uppercase; }

.vg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Utilities */
.vg-hidden { display: none !important; }
.vg-muted { color: #94a3b8; }

/* Report Links */
.vg-report-links { display: flex; flex-direction: column; gap: 20px; }
.vg-report-section h4 { margin: 0 0 10px; color: #475569; font-size: 14px; }
.vg-report-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.vg-text-success { color: #16a34a !important; }
.vg-text-danger { color: #dc2626 !important; }

/* Marketplace Checkboxes */
.vg-marketplace-checkboxes { display: flex; flex-direction: column; gap: 5px; }
.vg-marketplace-checkboxes label { font-size: 12px; cursor: pointer; }

/* Quick Sell */
.vg-quick-sell { display: flex; flex-direction: column; gap: 5px; min-width: 140px; }
.vg-quick-sell input, .vg-quick-sell select { 
    padding: 5px 8px; 
    font-size: 12px; 
    border: 1px solid #d1d5db; 
    border-radius: 4px; 
    width: 100%;
}
.vg-quick-sell input:focus, .vg-quick-sell select:focus { 
    outline: none; 
    border-color: #16a34a; 
}

/* Mobile Responsive */
@media screen and (max-width: 1024px) {
    .vg-main { padding: 15px; }
    .vg-nav { padding: 0 15px; overflow: visible; }
    .vg-nav-list { min-width: max-content; }
    .vg-header { padding: 10px 15px; flex-wrap: wrap; gap: 10px; }
    .vg-logo-img-small { max-width: 140px; max-height: 40px; }
}

@media screen and (max-width: 768px) {
    .vg-header { flex-direction: column; align-items: flex-start; }
    .vg-header-left { width: 100%; justify-content: center; }
    .vg-header-right { width: 100%; justify-content: center; flex-wrap: wrap; }
    
    .vg-nav { padding: 0 10px; overflow: visible; position: relative; }
    .vg-nav-list { gap: 2px; flex-wrap: wrap; justify-content: center; width: 100%; }
    .vg-nav-dropdown { position: relative; }
    .vg-dropdown-toggle, .vg-nav-list > li > a { 
        padding: 10px 12px; 
        font-size: 12px; 
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile dropdown menus */
    .vg-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        z-index: 1001;
    }
    .vg-dropdown-menu li a {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    /* Mobile submenu - show inline instead of flyout */
    .vg-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: rgba(0,0,0,0.05);
    }
    .vg-submenu li a {
        padding-left: 30px;
    }
    .vg-has-submenu > a .vg-arrow { 
        transition: transform 0.2s; 
    }
    .vg-has-submenu.open > a .vg-arrow { 
        transform: rotate(90deg); 
    }
    
    .vg-page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    
    .vg-stats-row { flex-direction: column; }
    .vg-stat-card { min-width: 100%; }
    
    .vg-form-row { flex-direction: column; }
    .vg-form-row .vg-form-group { flex: 1 1 100%; }
    
    /* Bulk actions mobile */
    .vg-bulk-actions { flex-wrap: wrap; padding: 10px; }
    
    /* Card-style tables for mobile */
    .vg-table-responsive,
    .vg-table-container { background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
    .vg-table-responsive .vg-table,
    .vg-table-container .vg-table { border: 0; }
    .vg-table-responsive .vg-table thead,
    .vg-table-container .vg-table thead { display: none; }
    .vg-table-responsive .vg-table tbody tr,
    .vg-table-container .vg-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 12px;
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .vg-table-responsive .vg-table tbody tr:hover,
    .vg-table-container .vg-table tbody tr:hover { background: white; }
    .vg-table-responsive .vg-table td,
    .vg-table-container .vg-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 5px;
        border-bottom: 1px solid #f1f5f9;
        text-align: right;
    }
    .vg-table-responsive .vg-table td:last-child,
    .vg-table-container .vg-table td:last-child { border-bottom: none; }
    .vg-table-responsive .vg-table td::before,
    .vg-table-container .vg-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        text-align: left;
        flex-shrink: 0;
        margin-right: 10px;
    }
    
    /* Hide checkbox column on mobile */
    .vg-table .vg-checkbox-col { display: none; }
    
    /* Actions row styling for mobile - HORIZONTAL layout */
    .vg-table td.vg-actions,
    .vg-table td[data-label="Actions"],
    .vg-table-responsive td.vg-actions,
    .vg-table-container td.vg-actions { 
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
        border-bottom: none;
        margin-top: 5px;
    }
    .vg-table td.vg-actions::before,
    .vg-table td[data-label="Actions"]::before,
    .vg-table-responsive td.vg-actions::before,
    .vg-table-container td.vg-actions::before { display: none !important; content: none !important; }
    
    /* Icon buttons slightly larger on mobile for touch */
    .vg-btn-icon {
        padding: 8px 12px;
        font-size: 18px;
    }
    
    .vg-table td .vg-marketplace-checkboxes {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }
    
    /* Modals */
    .vg-modal-content { width: 95%; margin: 10px; max-height: 90vh; overflow-y: auto; }
    
    /* Table footer on mobile */
    .vg-table-footer { border-radius: 8px; margin-top: 10px; }
}

@media screen and (max-width: 480px) {
    .vg-logo-img-small { max-width: 120px; max-height: 35px; }
    .vg-dropdown-toggle, .vg-nav-list > li > a { padding: 8px 10px; font-size: 12px; }
    .vg-btn-sm { padding: 4px 8px; font-size: 11px; }
    .vg-user-info { font-size: 12px; }
    .vg-card { padding: 15px; }
    .vg-logo-img { max-width: 200px; max-height: 70px; }
    .vg-auth-logo { max-width: 180px; max-height: 60px; }
}

/* Registration page */
.vg-register-container { max-width: 500px; }
.vg-register-container .vg-auth-box { padding: 30px 40px; }
.vg-auth-title { margin: 0 0 5px; font-size: 24px; color: #1e293b; text-align: center; }
.vg-auth-subtitle { margin: 0 0 25px; color: #64748b; text-align: center; }
.vg-auth-footer { margin-top: 25px; text-align: center; color: #64748b; }
.vg-auth-footer a { color: #16a34a; text-decoration: none; font-weight: 500; }
.vg-auth-footer a:hover { text-decoration: underline; }

.vg-form-section-title {
    font-size: 14px;
    color: #475569;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.vg-form-section-title:first-of-type { margin-top: 0; }

.vg-form-help { display: block; margin-top: 5px; font-size: 12px; color: #94a3b8; }

.vg-plan-options { display: flex; gap: 15px; margin: 15px 0; }
.vg-plan-option { flex: 1; cursor: pointer; }
.vg-plan-option input { display: none; }
.vg-plan-card {
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.2s;
}
.vg-plan-option input:checked + .vg-plan-card {
    border-color: #16a34a;
    background: #f0fdf4;
}
.vg-plan-name { font-weight: 600; color: #1e293b; margin-bottom: 5px; }
.vg-plan-price { font-size: 24px; font-weight: bold; color: #16a34a; }
.vg-plan-price span { font-size: 14px; font-weight: normal; color: #64748b; }
.vg-plan-savings { font-size: 12px; color: #16a34a; margin-top: 5px; font-weight: 500; }

.vg-trial-notice {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}
.vg-trial-notice strong { color: #92400e; }
.vg-trial-notice p { margin: 10px 0 0; color: #78350f; font-size: 14px; }

.vg-btn-lg { padding: 12px 24px; font-size: 16px; }

/* Subscription banner */
.vg-subscription-banner {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.vg-subscription-banner.vg-banner-warning { background: #fef3c7; border: 1px solid #fcd34d; }
.vg-subscription-banner.vg-banner-danger { background: #fee2e2; border: 1px solid #fca5a5; }
.vg-subscription-banner p { margin: 0; }

/* ASIN Link styles */
.vg-asin-link {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.vg-asin-link:hover {
    background: #dbeafe;
    color: #1d4ed8;
    text-decoration: underline;
}

/* Alert styles */
.vg-alert { padding: 12px 15px; border-radius: 6px; margin-bottom: 15px; }
.vg-alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.vg-alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.vg-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.vg-alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.vg-alert-info a, .vg-link-strong { color: #1e40af; font-weight: 600; text-decoration: underline; }
.vg-alert-info a:hover { color: #1e3a8a; }

/* Tax Summary styles */
.vg-tax-form { margin-bottom: 0; }
.vg-tax-form .vg-form-row { align-items: flex-end; }
.vg-form-group-btn { display: flex; flex-direction: column; }
.vg-tax-summary-header { display: flex; justify-content: space-between; align-items: center; margin: 25px 0 15px 0; }
.vg-tax-summary-header h3 { margin: 0; }
.vg-stats-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.vg-stat-card-sm { padding: 12px 15px; }
.vg-stat-card-sm .vg-stat-value { font-size: 18px; }
.vg-stat-card-sm .vg-stat-label { font-size: 11px; }
.vg-stat-card-sm .vg-stat-sublabel { font-size: 10px; }
.vg-stat-sublabel { font-size: 11px; color: #6b7280; margin-top: 3px; }
.vg-stat-card-inline { display: inline-block; padding: 15px 25px; }
.vg-tax-section-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.vg-tax-section-col h4 { margin: 0 0 10px 0; font-size: 14px; color: #374151; }
.vg-table-sm { font-size: 12px; }
.vg-table-sm th, .vg-table-sm td { padding: 8px 10px; }
.vg-table tfoot th, .vg-table tfoot td { background: #f3f4f6; font-weight: 600; }

/* Bulk Actions */
.vg-bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    margin-bottom: 15px;
}
.vg-bulk-count { font-weight: 600; color: #92400e; }
.vg-checkbox-col { width: 40px; text-align: center; }
.vg-checkbox-col input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.vg-table-selectable tbody tr:hover { background: #f9fafb; }
.vg-table-selectable tbody tr.vg-row-selected { background: #fef9c3; }

@media (max-width: 900px) {
    .vg-stats-row-4 { grid-template-columns: repeat(2, 1fr); }
    .vg-tax-section-row { grid-template-columns: 1fr; }
    .vg-tax-summary-header { flex-direction: column; gap: 10px; align-items: flex-start; }
}


/* Review Status */
.vg-row-reviewed {
    background: #f0fdf4 !important;
    border-left: 4px solid #22c55e;
}
.vg-row-reviewed:hover {
    background: #dcfce7 !important;
}
.vg-review-btn {
    opacity: 0.4;
}
.vg-review-btn:hover {
    opacity: 1;
}
.vg-review-btn.vg-reviewed {
    opacity: 1;
    color: #f59e0b;
}


.vg-modal-sm .vg-modal-content { max-width: 350px; }
.vg-modal-sm .vg-modal-footer { justify-content: space-between; }

