/* imageapp/static/imageapp/css/feedback_dashboard.css */

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

/* ===== THEME VARIABLES ===== */
:root {
    /* Light mode (default) */
    --bg-primary: linear-gradient(135deg, #0654ba 0%, #4285f4 100%);
    --bg-secondary: rgba(255, 255, 255, 0.95);
    --bg-card: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #1f2937;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Ubuntu Dark Theme */
    --bg-primary: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    --bg-secondary: rgba(45, 45, 45, 0.95);
    --bg-card: rgba(60, 60, 60, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --text-muted: #cccccc;
    --border-color: rgba(128, 128, 128, 0.3);
    --shadow: rgba(0, 0, 0, 0.6);

    /* Ubuntu Colors */
    --accent-primary: #e95420;
    --accent-secondary: #ff6a28;
    --accent-hover: #d14516;
    --success-color: #0e8420;
    --warning-color: #f99b11;
    --error-color: #c7162b;
}

/* ===== EBAY STAR COLORS ===== */
/* Based on official eBay feedback star color system */

.ebay-star {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
    display: inline-block;
    font-size: 1.1em;
}

/* Regular Stars (10-9,999 feedback) */
.yellow-star { color: #FFD700; } /* Yellow Star (10-49) */
.blue-star { 
    color: #4A9EFF; /* Lightened from #0000FF for better visibility on blue bg */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.5);
}
.turquoise-star { color: #40E0D0; } /* Turquoise Star (100-499) */
.purple-star { 
    color: #B347D9; /* Lightened from #800080 for better visibility */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.4);
}
.red-star { color: #FF4444; } /* Slightly lightened red for better pop */
.green-star { 
    color: #00CC00; /* Lightened from #008000 for better visibility */
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7), 0 0 5px rgba(255, 255, 255, 0.3);
}

/* Shooting Stars (10,000+ feedback) */
.yellow-shooting-star { 
    color: #FFD700; 
    animation: sparkle 2s infinite;
}
.turquoise-shooting-star { 
    color: #40E0D0; 
    animation: sparkle 2s infinite;
}
.purple-shooting-star { 
    color: #B347D9; 
    animation: sparkle 2s infinite;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.8), 0 0 5px rgba(255, 255, 255, 0.4);
}
.red-shooting-star { 
    color: #FF4444; 
    animation: sparkle 2s infinite;
}
.green-shooting-star { 
    color: #00CC00; 
    animation: sparkle 2s infinite;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7), 0 0 5px rgba(255, 255, 255, 0.3);
}
.silver-shooting-star { 
    color: #E6E6E6; /* Lightened silver for better visibility */
    animation: sparkle 2s infinite;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6), 0 0 5px rgba(255, 255, 255, 0.8);
}

/* Sparkle animation for shooting stars */
@keyframes sparkle {
    0%, 100% { 
        filter: brightness(1) drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); 
    }
    50% { 
        filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); 
    }
}

/* Dark theme adjustments for stars */
[data-theme="dark"] .ebay-star {
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

/* ===== HEADER SECTION ===== */
.header-section {
    background: var(--bg-primary);
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-primary);
    box-shadow: 0 4px 12px var(--shadow);
    position: relative;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}
.header-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-align: left; /* Changed from center to left */
    color: var(--text-primary);
}

.header-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    text-align: left; /* Changed from center to left */
    color: var(--text-primary);
}

/* ===== HEADER LAYOUT FIXES ===== */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap; /* Prevent wrapping */
    min-height: 60px;
}

.header-text {
    flex: 1;
    min-width: 0; /* Allow shrinking if needed */
}

.header-user-menu {
    flex-shrink: 0; /* Don't allow shrinking */
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap; /* Prevent text wrapping */
}

/* ===== eBay Connection Status Indicator ===== */
.ebay-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    margin: 0;  /* Remove margin-left to align with other buttons */
    cursor: pointer;
    box-sizing: border-box;
    height: 38px;  /* Exact height match */
    font-size: 0.85rem;  /* Match button font size */
    font-weight: 500;  /* Match button font weight */
}

.ebay-status-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ebay-status-indicator .status-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.9;
    white-space: nowrap;
}

.ebay-status-indicator .status-icon {
    position: relative;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Status dot for pulsing effect */
.status-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    z-index: 2;
}

/* Status symbol */
.status-symbol {
    position: relative;
    z-index: 3;
    font-size: 0.9rem;
}

/* Status label */
.status-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.8;
    margin-left: 0.25rem;
}

/* Connected state - Green pulsing */
.status-icon.connected {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.status-icon.connected .status-dot {
    background: #10b981;
    animation: pulse-success 3s infinite ease-in-out;
}

.status-icon.connected .status-symbol {
    color: #10b981;
}

/* Disconnected state - Red pulsing */
.status-icon.disconnected {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-icon.disconnected .status-dot {
    background: #ef4444;
    animation: pulse-error 2.5s infinite ease-in-out;
}

.status-icon.disconnected .status-symbol {
    color: #ef4444;
}

/* Checking state - Spinning indicator */
.status-icon.checking {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.status-icon.checking .status-dot {
    background: #fbbf24;
    animation: pulse-checking 2s infinite ease-in-out;
}

.status-icon.checking .status-symbol {
    color: #fbbf24;
    animation: spin 1.5s linear infinite;
}

/* Pulse animations */
@keyframes pulse-success {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.3);
    }
}

@keyframes pulse-error {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.3; 
        transform: scale(1.4);
    }
}

@keyframes pulse-checking {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

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

.user-info-clean {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: max-content; /* Ensure it doesn't shrink */
}

.username-clean {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.ebay-id-clean {
    font-size: 0.8rem;
    opacity: 0.9;
    color: var(--text-primary);
}

.btn-logout-clean {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap; /* Prevent button text wrapping */
    box-sizing: border-box;
    height: 38px;  /* Exact height match */
    display: flex;
    align-items: center;
}

.btn-logout-clean:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Login Button (for unauthenticated users) */
.btn-login-clean {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    box-sizing: border-box;
    height: 38px;
    display: flex;
    align-items: center;
}

.btn-login-clean:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ===== BACK TO APPS BUTTON ===== */
/* Enhanced navigation button with icon and text - high contrast for visibility */
.back-to-apps-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;  /* Darker text for better contrast */
    text-decoration: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Door icon with left arrow via ::before pseudo-element */
.back-to-apps-btn::before {
    content: "🚪";  /* Door icon for "exit to apps" - can also use: ← ↩️ ⬅️ 🏠 */
    font-size: 1.15rem;
    line-height: 1;
}

.back-to-apps-btn:hover {
    color: #0654ba;  /* Primary blue */
    background: #f3f4f6;
    border-color: #0654ba;
    transform: translateX(-3px);
    box-shadow: 0 4px 8px rgba(6, 84, 186, 0.15);
}

.back-to-apps-btn:active {
    transform: translateX(-5px);
    box-shadow: 0 2px 4px rgba(6, 84, 186, 0.2);
}

/* Mobile responsive - keep compact but visible on smaller screens */
@media (max-width: 768px) {
    .back-to-apps-btn {
        padding: 0.45rem 0.8rem;
        font-size: 0.9rem;
        gap: 0.4rem;
    }
}


/* ===== THEME TOGGLE ===== */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.theme-toggle {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px var(--shadow);
}

/* ===== THEME TOGGLE ICON FIXES ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
}

/* Show sun in light mode, hide moon */
[data-theme="light"] .light-icon {
    opacity: 1;
    transform: scale(1);
}

[data-theme="light"] .dark-icon {
    opacity: 0;
    transform: scale(0.8);
}

/* Show moon in dark mode, hide sun */
[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: scale(0.8);
}

[data-theme="dark"] .dark-icon {
    opacity: 1;
    transform: scale(1);
}

/* ===== STATS CARDS ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0;
    position: relative;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    color: var(--text-primary);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow);
}

/* ✅ NEW: Real-time stats update animations */
@keyframes stat-update {
    0% { background-color: rgba(16, 185, 129, 0.1); transform: scale(1); }
    50% { background-color: rgba(16, 185, 129, 0.3); transform: scale(1.05); }
    100% { background-color: transparent; transform: scale(1); }
}

@keyframes stats-refresh {
    0% { opacity: 0.8; }
    50% { opacity: 1; transform: translateY(-2px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== MAIN PANELS ===== */
.main-container {
    display: flex;
    height: calc(100vh - 220px);
    gap: 1.5rem;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feedback-panel {
    flex: 0 0 400px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-panel {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    /* Enhanced for filter integration */
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

/* ===== SEARCH FUNCTIONALITY ===== */

.search-container {
    position: relative;
    margin-bottom: 1rem;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem; /* Right padding for X button */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #0654ba;
    box-shadow: 0 0 0 3px rgba(6, 84, 186, 0.1);
}

.clear-search {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.clear-search.visible {
    opacity: 1;
}

.search-clear-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: #6b7280;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-clear-btn:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.search-clear-btn.visible {
    opacity: 1;
}
/* ===== FEEDBACK ITEMS ===== */
.feedback-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.feedback-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
    border-left: 3px solid #0654ba;
}

.feedback-item.selected {
    background-color: #eff6ff;
    border-left: 4px solid #0654ba;
    transform: translateX(8px);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feedback-buyer {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    flex: 0 0 auto;
}

.feedback-content {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feedback-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.feedback-footer {
    display: block;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid #e5e7eb;
}

.feedback-date {
    font-size: 0.8rem;
    color: #9ca3af;
    line-height: 1.4;
    margin-bottom: 0.4rem;
}

.feedback-item-desc {
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feedback-type {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    flex: 0 0 auto;
    letter-spacing: 0.3px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.feedback-type.positive {
    background-color: rgba(16, 185, 129, 0.15);
    color: #047857;
    border-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
}

.feedback-type.negative {
    background-color: rgba(239, 68, 68, 0.15);
    color: #7f1d1d;
    border-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.15);
}

.feedback-type.neutral {
    background-color: rgba(107, 114, 128, 0.1);
    color: #374151;
    border-color: #9ca3af;
    box-shadow: 0 0 6px rgba(107, 114, 128, 0.1);
}

.feedback-date {
    color: #9ca3af;
}

/* ===== PLACEHOLDER CONTENT ===== */
.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6b7280;
    padding: 2rem;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== FEEDBACK DETAIL STYLES ===== */
.feedback-detail-container {
    padding: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

.feedback-section {
    margin-bottom: 2rem;
}

.feedback-section h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.feedback-display {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.feedback-content-display {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin: 0.75rem 0;
    line-height: 1.5;
}

.feedback-date {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ===== RESPONSE SECTION ===== */
.response-section h4 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.response-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-generate-ai {
    background: linear-gradient(135deg, #0654ba 0%, #4285f4 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-generate-ai:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 84, 186, 0.3);
}

.btn-clear {
    background: #6b7280;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-clear:hover {
    background: #4b5563;
}

/* Submit to eBay button */
.btn-submit-to-ebay {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-submit-to-ebay:hover:not(:disabled) {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
}

.btn-submit-to-ebay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success state for submit button */
.btn-submit-to-ebay.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Warning state for submit button (posting) */
.btn-submit-to-ebay.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.response-textarea {
    width: 100%;
    min-height: 120px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.response-textarea:focus {
    outline: none;
    border-color: #0654ba;
    box-shadow: 0 0 0 3px rgba(6, 84, 186, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0.5rem 0 1rem;
}

.response-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-save-response {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-save-response:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-preview {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-preview:hover {
    background: #7c3aed;
}

/* ===== REPLY SUCCESS STATES ===== */
.response-success {
    background: linear-gradient(135deg, #dcfdf4 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.success-message {
    color: #047857;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.posted-response {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #d1fae5;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.posted-response strong {
    color: #047857;
    display: block;
    margin-bottom: 0.5rem;
}

.response-text {
    background: #f3f4f6;
    border-left: 3px solid #10b981;
    padding: 0.75rem;
    border-radius: 4px;
    font-style: italic;
    color: #374151;
}

.success-actions {
    text-align: center;
    margin-top: 1rem;
}

.btn-select-another {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-select-another:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

/* ===== ENHANCED REPLY STATUS INDICATORS ===== */
.reply-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid;
    transition: all 0.2s ease;
}

.reply-status-indicator .status-icon {
    font-size: 0.8rem;
}

.reply-status-indicator .status-text {
    white-space: nowrap;
}

/* Reply Status Badge (new template format) */
.reply-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    border: 1.5px solid;
    transition: all 0.2s ease;
    flex: 0 0 auto;
    margin-left: auto;
}

.reply-status-badge .status-badge-icon {
    font-size: 0.9rem;
}

.reply-status-badge .status-badge-text {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Status-specific styling */
.status-replied {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #065f46;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
    font-weight: 700;
}

.status-posting {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #92400e;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
    font-weight: 700;
}

.status-ebay-direct {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.status-ebay-auto-feedback {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #1e3a8a;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    font-weight: 700;
}

.status-needs-reply {
    background: rgba(239, 68, 68, 0.25);
    border-color: #dc2626;
    color: #7f1d1d;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
    font-weight: 700;
    animation: pulse-attention 2s infinite;
}

.status-failed {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #7f1d1d;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
}

.status-failed:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Pulse animation for posting status */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* More urgent pulse for needs-reply status */
@keyframes pulse-attention {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
    }
    50% {
        opacity: 0.75;
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
}

/* Legacy support for old reply-indicator (keep for backward compatibility) */
.reply-indicator {
    color: #059669 !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    margin-top: 4px !important;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    display: inline-block;
}

/* ===== DARK THEME OVERRIDES FOR SUCCESS STATES ===== */
[data-theme="dark"] .response-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.4);
}

[data-theme="dark"] .success-message {
    color: #34d399;
}

[data-theme="dark"] .posted-response {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .posted-response strong {
    color: #34d399;
}

[data-theme="dark"] .response-text {
    background: rgba(45, 45, 45, 0.8);
    border-left-color: #10b981;
    color: #f0f0f0;
}

[data-theme="dark"] .reply-indicator {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.2);
}

/* ===== DARK THEME - ENHANCED STATUS INDICATORS ===== */
[data-theme="dark"] .status-replied {
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.4);
    color: #34d399;
}

[data-theme="dark"] .status-posting {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    color: #fbbf24;
}

[data-theme="dark"] .status-ebay-direct {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    color: #60a5fa;
}

[data-theme="dark"] .status-failed {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.4);
    color: #f87171;
}

[data-theme="dark"] .status-failed:hover {
    background: rgba(248, 113, 113, 0.2);
}

[data-theme="dark"] .status-needs-reply {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ff6b6b;
}

/* ===== UBUNTU DARK THEME OVERRIDES ===== */
[data-theme="dark"] {
    background: #1a1a1a;
}

[data-theme="dark"] .panel-header {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    border-bottom-color: #404040;
}

[data-theme="dark"] .feedback-item {
    background: var(--bg-card);
    border-bottom-color: #404040;
    color: var(--text-secondary);
}

[data-theme="dark"] .feedback-item:hover {
    background: rgba(80, 80, 80, 0.8);
    border-left-color: var(--accent-primary);
}

[data-theme="dark"] .feedback-item.selected {
    background: rgba(233, 84, 32, 0.1);
    border-left-color: var(--accent-primary);
}

[data-theme="dark"] .feedback-buyer {
    color: var(--text-secondary);
}

[data-theme="dark"] .feedback-content {
    color: var(--text-muted);
}

[data-theme="dark"] .btn-generate-ai {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: 1px solid var(--accent-hover);
}

[data-theme="dark"] .btn-save-response {
    background: var(--success-color);
    border: 1px solid #0a6b1a;
}

[data-theme="dark"] .feedback-display {
    background: rgba(60, 60, 60, 0.8);
    border-color: #404040;
}

[data-theme="dark"] .feedback-content-display {
    background: rgba(45, 45, 45, 0.9);
    border-color: #404040;
    color: var(--text-secondary);
}

[data-theme="dark"] .response-textarea {
    background: rgba(45, 45, 45, 0.9);
    border-color: #404040;
    color: var(--text-secondary);
}

[data-theme="dark"] .response-textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .search-input {
    background: rgba(45, 45, 45, 0.9);
    border-color: #404040;
    color: var(--text-secondary);
}

[data-theme="dark"] .search-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(233, 84, 32, 0.1);
}

[data-theme="dark"] .search-clear-btn {
    color: #9ca3af;
}

[data-theme="dark"] .search-clear-btn:hover {
    color: #f3f4f6;
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 1024px) {
    .header-title {
        font-size: 1.8rem;
    }

    .header-subtitle {
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }

    .header-text {
        text-align: center;
    }

    .header-title {
        text-align: center;
        font-size: 1.6rem;
    }

    .header-subtitle {
        text-align: center;
    }

    .header-user-menu {
        justify-content: center;
    }

    .user-info-clean {
        align-items: center;
    }

    .main-container {
        flex-direction: column;
        height: auto;
        gap: 1rem;
        padding: 1rem;
    }

    .feedback-panel {
        flex: none;
        min-height: 300px;
    }

    /* ✅ MOBILE: Transform work-panel into modal overlay */
    .work-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 1000;
        display: none; /* Hidden by default on mobile */
        padding: 1rem;
        animation: fadeIn 0.3s ease;
    }

    .work-panel.mobile-modal-active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .work-panel.mobile-modal-active .panel-content {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        max-height: 90vh;
        width: 100%;
        max-width: 500px;
        overflow-y: auto;
        position: relative;
        padding: 1.5rem;
    }

    /* Mobile modal close button */
    .work-panel.mobile-modal-active::before {
        content: '✕';
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(0, 0, 0, 0.8);
        color: #ffffff;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1001;
        font-size: 18px;
        font-weight: bold;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.8);
        transition: all 0.2s ease;
    }

    .work-panel.mobile-modal-active::before:hover {
        background: rgba(0, 0, 0, 0.9);
        border: 2px solid #ffffff;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .response-controls {
        flex-direction: column;
    }

    .response-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .header-user-menu {
        flex-direction: column;
        gap: 0.75rem;
    }

    .user-info-clean {
        align-items: center;
        text-align: center;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #6b7280;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
}

.error-message {
    background: #fecaca;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #fca5a5;
}

[data-theme="dark"] .success-message {
    background: rgba(14, 132, 32, 0.2);
    color: #4ade80;
    border-color: rgba(14, 132, 32, 0.3);
}

[data-theme="dark"] .error-message {
    background: rgba(199, 22, 43, 0.2);
    color: #f87171;
    border-color: rgba(199, 22, 43, 0.3);
}

/* ===== ACCOUNT MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.modal-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 700px;
    min-height: 600px;
    overflow: hidden;
    animation: slideUp 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* Prevent shrinking */
}

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

.modal-icon {
    font-size: 1.5rem;
}

.modal-title h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
}

.modal-subtitle {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.02);
    flex-shrink: 0; /* Prevent shrinking */
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tab-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
}

.tab-btn.active {
    color: #4285f4;
    background: rgba(66, 133, 244, 0.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #4285f4;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    height: 100%;
}

.tab-pane {
    display: none;
    padding: 2rem;
    height: 100%;
    min-height: 450px;
    box-sizing: border-box;
}

.tab-pane.active {
    display: block;
}

/* Section Styling */
.tab-section {
    margin-bottom: 2rem;
}

.tab-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.section-header .section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.status-indicator {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator.recently-updated {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.btn-refresh {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.5rem;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-refresh:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.btn-refresh:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.section-icon {
    font-size: 1.25rem;
}

.section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Form Styling */
.account-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* Read-only form values - styled like inputs but read-only */
.form-group .form-value {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(245, 245, 245, 0.8);
    color: var(--text-secondary);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    position: relative;
}

.form-group .form-value a {
    color: #4285f4;
    text-decoration: none;
}

.form-group .form-value a:hover {
    text-decoration: underline;
}

/* Profile Fields - Vertical Layout (Label above field) */
.profile-fields {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-field .field-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-field .field-value {
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(245, 245, 245, 0.8);
    color: var(--text-secondary);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    position: relative;
}

.profile-field .field-value a {
    color: #4285f4;
    text-decoration: none;
}

.profile-field .field-value a:hover {
    text-decoration: underline;
}

/* Readonly Profile Inputs - Match form styling */
.account-form input[readonly] {
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-secondary);
    cursor: default;
}

.account-form input[readonly]:focus {
    outline: none;
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow: none;
}

/* Input with Toggle (for passwords) */
.input-with-toggle {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.password-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

/* Success and Error Button States */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    border: none !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.btn-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    border: none !important;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3) !important;
}

.btn-gradient-billing {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Integration Controls Container - Override parent alignment */
.integration-controls {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

/* Action Buttons with Status Layout - Updated for explicit two-row layout */
.action-buttons-with-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    width: 100%;
}

.action-buttons button {
    min-width: 160px;
    font-weight: 600;
    transition: all 0.2s ease;
    /* Maintain consistent size during state changes */
    box-sizing: border-box;
    height: 40px;
    padding: 8px 16px;
}

.sync-status-inline {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    width: 100%;
}

.sync-status-inline .status-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sync-status-inline strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Responsive design for action buttons */
@media (max-width: 768px) {
    .action-buttons-with-status {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .action-buttons {
        order: 1;
        justify-content: flex-start;
    }
    
    .sync-status-inline {
        order: 2;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Sync Status Display */
.sync-status {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.status-item:not(:last-child) {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.status-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.status-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(16, 185, 129, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Specific status value states */
.status-value.never {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.status-value.enabled {
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.status-value.disabled {
    color: #7c2d12;
    background: rgba(251, 146, 60, 0.1);
    border-color: rgba(251, 146, 60, 0.2);
}

/* Button Loading States - Maintain Size and Position */
.btn-loading {
    position: relative;
    pointer-events: none;
    min-width: 160px; /* Prevent width changes */
    height: 40px; /* Fixed height to prevent size changes */
    box-sizing: border-box;
    opacity: 0.8;
    /* Keep original background color but slightly dimmed */
    filter: brightness(0.9);
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px; /* Position spinner on the right side */
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

/* Keep original text visible with loading indicator */
.btn-loading {
    /* Don't hide the text completely */
    color: inherit !important;
    padding-right: 40px; /* Make room for spinner */
}

/* Remove the loading text overlay - keep original button text */
.btn-loading::before {
    display: none;
}

/* Button Success State - Maintain Size */
.btn-success {
    background: #059669 !important;
    border-color: #059669 !important;
    color: white !important;
    min-width: 160px; /* Consistent width */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    transform: none; /* Remove scale changes */
}

/* Button Error State - Maintain Size */
.btn-error {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: white !important;
    min-width: 160px; /* Consistent width */
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    transform: none; /* Remove scale changes */
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Current Plan Display */
.current-plan {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.plan-badge {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.plan-usage {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Founder Tier Special Badge */
.founder-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.founder-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.plan-badge.founder-tier {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #000;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

/* Subscription Summary */
.subscription-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.subscription-price {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.subscription-billing {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.days-remaining {
    color: #4285f4;
    font-weight: 500;
}

/* Usage Stats Display */
.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.usage-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.usage-icon {
    font-size: 1.1rem;
}

.usage-bar {
    background: rgba(0, 0, 0, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    grid-column: 1 / 2;
    width: 100%;
}

.usage-progress {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.usage-percentage {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    grid-column: 2 / 3;
    text-align: right;
    min-width: 40px;
}

/* Auto-renew checkbox */
.auto-renew {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.auto-renew input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.auto-renew input[type="checkbox"]:checked + .checkmark {
    background: #4285f4;
}

.auto-renew input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Pricing Plans */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.plan-card.current {
    border: 2px solid #4285f4;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.plan-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 700;
    color: #4285f4;
}

.plan-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plan-btn {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.current-plan-btn {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
    color: white;
    border: none;
}

/* User Actions in Header */
.user-actions-clean {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* ===== INTEGRATION TAB SPECIFIC STYLES ===== */
.connection-status {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.connection-status.connected {
    border-color: rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(22, 163, 74, 0.05) 100%);
}

.connection-status.disconnected {
    border-color: rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05) 0%, rgba(234, 88, 12, 0.05) 100%);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.account-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.detail-row label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-secondary);
    font-family: monospace;
}

.warning-badge {
    background: rgba(249, 115, 22, 0.1);
    color: #ea580c;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== TOKEN DISPLAY STYLES ===== */
.token-status-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.token-item {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.token-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.token-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.token-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-status.valid {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.token-status.expired {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.token-status.missing {
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.token-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.token-value, .token-expiry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.token-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    min-width: 70px;
}

.token-text {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    word-break: break-all;
    max-width: 300px;
}

.token-masked {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.token-toggle {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.token-toggle:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.05);
}

.token-date {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.token-remaining {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Dark theme adjustments for token display */
[data-theme="dark"] .token-item {
    background: rgba(60, 60, 60, 0.9);
    border-color: rgba(128, 128, 128, 0.3);
}

[data-theme="dark"] .token-text,
[data-theme="dark"] .token-masked,
[data-theme="dark"] .token-date {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.locked-field {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
}

.field-lock {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.field-help {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-style: italic;
}

.sync-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sync-option {
    display: flex;
    align-items: center;
}

.sync-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sync-checkbox input[type="checkbox"] {
    display: none;
}

.sync-checkbox .checkmark {
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.sync-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #4285f4;
}

.sync-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.btn-account-settings {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    height: 38px;  /* Exact height match */
    display: flex;
    align-items: center;
}

.btn-account-settings:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Dark Theme Overrides */
[data-theme="dark"] .modal-container {
    background: rgba(45, 45, 45, 0.95);
    border-color: rgba(128, 128, 128, 0.3);
}

[data-theme="dark"] .tab-navigation {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(128, 128, 128, 0.3);
}

[data-theme="dark"] .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-btn.active {
    background: rgba(66, 133, 244, 0.15);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(128, 128, 128, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .form-group .form-value {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(128, 128, 128, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .account-form input[readonly] {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(128, 128, 128, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .profile-field .field-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .profile-field .field-value {
    background: rgba(50, 50, 50, 0.8);
    border-color: rgba(128, 128, 128, 0.3);
    color: var(--text-secondary);
}

[data-theme="dark"] .plan-card {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(128, 128, 128, 0.3);
}

[data-theme="dark"] .current-plan {
    background: linear-gradient(135deg, rgba(60, 60, 60, 0.8) 0%, rgba(45, 45, 45, 0.9) 100%);
}

/* Sync Policy Styles */
.sync-policy {
    margin: 1rem 0;
}

.policy-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.policy-icon {
    font-size: 1.5rem;
    color: var(--success-color);
}

.policy-details {
    flex: 1;
}

.policy-details strong {
    display: block;
    color: var(--success-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.policy-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-subtitle,
    .tab-pane {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .user-actions-clean {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== eBay-Style Seller Info Card ===== */
.seller-info-card {
    padding: 1rem;
    text-align: left;
}

.seller-info-card .seller-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 100%;
}

.seller-info-card .seller-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.seller-info-card .seller-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.seller-info-card .positive-feedback {
    color: var(--text-secondary);
    font-weight: 500;
}

.seller-info-card .member-info {
    color: var(--text-muted);
}

.seller-info-card .top-rated {
    color: var(--text-secondary);
    font-size: 0.8rem;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.seller-info-card .top-rated strong {
    color: #10b981;
}

/* ===== ONBOARDING MODAL STYLES ===== */
.onboarding-modal {
    z-index: 10000; /* Higher than regular modals */
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.4s ease-out;
}

.onboarding-modal .modal-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.8);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    overflow-y: auto;
}

[data-theme="dark"] .onboarding-modal .modal-container {
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border: 2px solid #4a5568;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.onboarding-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4285f4, #0654ba, #9333ea, #f59e0b);
    background-size: 300% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

[data-theme="dark"] .onboarding-modal::before {
    background: linear-gradient(90deg, #e95420, #ff6a28, #d14516, #f99b11);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.onboarding-container {
    animation: slideUpBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpBounce {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-title h2 {
    background: linear-gradient(135deg, #4285f4, #9333ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0;
}

[data-theme="dark"] .onboarding-title h2 {
    background: linear-gradient(135deg, #e95420, #ff6a28);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-content {
    padding: 2rem;
    padding-top: 1rem;
}

.onboarding-hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.onboarding-hero h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.onboarding-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(66, 133, 244, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(66, 133, 244, 0.1);
    transition: all 0.3s ease;
}

[data-theme="dark"] .benefit-item {
    background: rgba(233, 84, 32, 0.1);
    border: 1px solid rgba(233, 84, 32, 0.2);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
}

[data-theme="dark"] .benefit-item:hover {
    box-shadow: 0 8px 25px rgba(233, 84, 32, 0.3);
}

.benefit-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.benefit-text strong {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
}

[data-theme="dark"] .onboarding-progress {
    background: rgba(255, 255, 255, 0.05);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 100%;
    width: 2rem;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: #10b981;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    background: #e5e7eb;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.progress-step.current .step-number {
    background: #4285f4;
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

[data-theme="dark"] .progress-step.current .step-number {
    background: #e95420;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.progress-step.completed .step-label {
    color: #10b981;
}

.progress-step.current .step-label {
    color: #4285f4;
    font-weight: 600;
}

[data-theme="dark"] .progress-step.current .step-label {
    color: #e95420;
}

.onboarding-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    background: linear-gradient(135deg, #4285f4 0%, #0654ba 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

[data-theme="dark"] .cta-button {
    background: linear-gradient(135deg, #e95420 0%, #d14516 100%);
    box-shadow: 0 4px 12px rgba(233, 84, 32, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4);
}

[data-theme="dark"] .cta-button:hover {
    box-shadow: 0 8px 25px rgba(233, 84, 32, 0.5);
}

.cta-button:active {
    transform: translateY(0);
}

.remind-button {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

[data-theme="dark"] .remind-button {
    border: 1px solid #4a5568;
    color: var(--text-muted);
}

.remind-button:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

[data-theme="dark"] .remind-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #6b7280;
}

.onboarding-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

[data-theme="dark"] .onboarding-trust {
    border-top: 1px solid #4a5568;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.trust-icon {
    opacity: 0.7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .onboarding-modal .modal-container {
        width: 95%;
        margin: 1rem;
    }
    
    .onboarding-content {
        padding: 1.5rem;
    }
    
    .onboarding-benefits {
        gap: 0.75rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
    
    .onboarding-progress {
        gap: 0.5rem;
    }
    
    .onboarding-trust {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .onboarding-actions {
        gap: 0.75rem;
    }
}

/* ===== ENTERPRISE MODAL STYLES ===== */
.enterprise-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.enterprise-container {
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

.enterprise-hero {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.enterprise-hero h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.enterprise-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.enterprise-features {
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.4;
    font-size: 0.95rem;
}

.enterprise-form {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.enterprise-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.enterprise-form .form-group {
    display: flex;
    flex-direction: column;
}

.enterprise-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.enterprise-form input,
.enterprise-form select,
.enterprise-form textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.enterprise-form input:focus,
.enterprise-form select:focus,
.enterprise-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.enterprise-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-accent {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Dark theme support for Enterprise modal */
[data-theme="dark"] .enterprise-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .enterprise-form input,
[data-theme="dark"] .enterprise-form select,
[data-theme="dark"] .enterprise-form textarea {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .enterprise-container {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .enterprise-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== INTEGRATION TAB ENHANCEMENTS ===== */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.connection-health {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.health-badge.healthy {
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    border-color: rgba(34, 197, 94, 0.2);
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.detail-row label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 140px;
    font-size: 0.9rem;
}

.detail-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex: 1;
    text-align: right;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-badge.dual {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.auth-badge.authnauth {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.auth-badge.oauth {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.auth-badge.disconnected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.coverage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.coverage-badge.full {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.detail-value small {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
    line-height: 1.3;
}

.connection-prompt {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.prompt-content h4 {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.prompt-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.benefits {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Dark theme support for integration enhancements */
[data-theme="dark"] .health-badge.healthy {
    background: rgba(34, 197, 94, 0.15);
    color: #10b981;
}

[data-theme="dark"] .connection-prompt {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border-color: rgba(99, 102, 241, 0.3);
}

/* Mobile responsiveness for integration tab */
@media (max-width: 768px) {
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .detail-row label {
        min-width: auto;
        width: 100%;
    }
    
    .detail-value {
        align-items: flex-start;
        text-align: left;
        width: 100%;
    }
    
    .benefits {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== TOP RATED SELLER BADGE ===== */
.trs-badge-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.trs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 2px solid #f59e0b;
    border-radius: 25px;
    box-shadow: 
        0 4px 12px rgba(255, 215, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    font-weight: 700;
    font-size: 0.85rem;
    color: #8b5000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: trsGlow 2s ease-in-out infinite alternate;
}

.trs-badge:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.trs-crown {
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.trs-text {
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.trs-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.trs-no {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

@keyframes trsGlow {
    0% {
        box-shadow: 
            0 4px 12px rgba(255, 215, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 4px 16px rgba(255, 215, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Dark theme support for TRS badge */
[data-theme="dark"] .trs-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fbbf24 100%);
    border-color: #d97706;
    color: #451a03;
}

[data-theme="dark"] .trs-checkmark {
    background: linear-gradient(135deg, #059669, #047857);
}

/* Mobile responsive TRS badge */
@media (max-width: 768px) {
    .trs-badge-container {
        justify-content: flex-start;
    }
    
    .trs-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        gap: 0.4rem;
    }
    
    .trs-text {
        display: none; /* Hide text on mobile, keep crown and checkmark */
    }
    
    .trs-crown {
        font-size: 1rem;
    }
}

/* ===== FEEDBACK FILTERS SECTION ===== */

/* Filter Toggle Button in Panel Header */
.panel-header h3 {
    flex: 1;
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
}

.filter-toggle-btn {
    background: rgba(6, 84, 186, 0.1);
    border: 1px solid rgba(6, 84, 186, 0.2);
    color: #0654ba;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.filter-toggle-btn:hover {
    background: rgba(6, 84, 186, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 84, 186, 0.2);
}

.filter-toggle-btn.collapsed {
    transform: rotate(180deg);
    background: rgba(6, 84, 186, 0.08);
}

.filter-toggle-btn.collapsed:hover {
    transform: rotate(180deg) translateY(-1px);
}

.search-container {
    flex: 1;
    min-width: 250px;
    margin-bottom: 0;
}

/* Main Filter Section */
.feedback-filters-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 1000px; /* Large enough for expanded state */
    opacity: 1;
    transform: translateY(0);
}

.feedback-filters-section.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    transform: translateY(-10px);
}

/* Filter Header Actions */
.filter-header-actions {
    padding: 1rem 1rem 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-action-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.filter-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.filter-action-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Apply button special animation when changes pending */
.filter-action-btn.has-changes {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
    }
}

.filters-container {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    align-items: start;
}

/* Compact 4-Column Grid Layout */
.filters-container.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.filter-column {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.3rem;
}

.filter-column label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.filter-column label:hover {
    color: #0654ba;
    background-color: rgba(6, 84, 186, 0.1);
}

.filter-column input[type="radio"],
.filter-column input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
}

/* Sort Buttons Group */
.sort-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.sort-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    background-color: #f8f9fa;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: left;
}

.sort-toggle-btn:hover {
    background-color: #e8eef5;
    border-color: #0654ba;
    color: #0654ba;
}

.sort-toggle-btn.active {
    background-color: #0654ba;
    color: white;
    border-color: #0654ba;
    font-weight: 500;
}

.sort-indicator {
    font-size: 0.75rem;
    margin-left: 0.4rem;
    min-width: 1rem;
    text-align: right;
}

/* Filter Help Text */
.filter-help-text {
    display: block;
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
    margin-left: 1.5rem;
    font-style: italic;
}

/* Auto-Feedback Filter Row (Separate Line) */
.auto-feedback-filter-row {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(6, 84, 186, 0.05);
    border-radius: 0.25rem;
    border: 1px solid rgba(6, 84, 186, 0.1);
}

.auto-feedback-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

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

/* Info Icon Styling */
.auto-feedback-label .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: help;
    margin-left: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.auto-feedback-label .info-icon:hover {
    opacity: 1;
}

.auto-feedback-filter-row .filter-help-text {
    margin-left: 0;
    margin-top: 0.5rem;
}

/* Individual Filter Groups */
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: filterGroupSlideIn 0.4s ease-out forwards;
}

/* Staggered animation delays */
.filter-group:nth-child(1) { animation-delay: 0.1s; }
.filter-group:nth-child(2) { animation-delay: 0.2s; }
.filter-group:nth-child(3) { animation-delay: 0.3s; }
.filter-group:nth-child(4) { animation-delay: 0.4s; }

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

/* When section is hidden, reset animations */
.feedback-filters-section.hidden .filter-group {
    animation: none;
    opacity: 0;
    transform: translateY(20px);
}

.filter-group > label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.radio-group label:hover {
    background: rgba(6, 84, 186, 0.05);
    border-color: rgba(6, 84, 186, 0.2);
    transform: translateX(2px) scale(1.02);
    box-shadow: 0 2px 8px rgba(6, 84, 186, 0.1);
}

.radio-group input[type="radio"] {
    margin: 0;
    accent-color: #0654ba;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.radio-group input[type="radio"]:hover {
    transform: scale(1.2);
}

.radio-group label:has(input:checked) {
    background: rgba(6, 84, 186, 0.1);
    border-color: #0654ba;
    color: #0654ba;
    font-weight: 500;
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 3px 12px rgba(6, 84, 186, 0.15);
}

/* Filter Status Row */
.filter-status {
    padding: 0.5rem 1rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-result-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Dark Theme Support */
[data-theme="dark"] .feedback-filters-section {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    border-bottom-color: rgba(128, 128, 128, 0.3);
}

[data-theme="dark"] .filter-header-actions {
    border-bottom-color: rgba(128, 128, 128, 0.2);
}

[data-theme="dark"] .filter-toggle-btn {
    background: rgba(233, 84, 32, 0.15);
    border-color: rgba(233, 84, 32, 0.3);
    color: #e95420;
}

[data-theme="dark"] .filter-toggle-btn:hover {
    background: rgba(233, 84, 32, 0.25);
}

[data-theme="dark"] .radio-group label {
    background: rgba(60, 60, 60, 0.6);
    border-color: rgba(128, 128, 128, 0.2);
    color: var(--text-secondary);
}

[data-theme="dark"] .radio-group label:hover {
    background: rgba(233, 84, 32, 0.1);
    border-color: rgba(233, 84, 32, 0.3);
}

[data-theme="dark"] .radio-group label:has(input:checked) {
    background: rgba(233, 84, 32, 0.2);
    border-color: #e95420;
    color: #ff6a28;
}

[data-theme="dark"] .radio-group input[type="radio"] {
    accent-color: #e95420;
}

[data-theme="dark"] .filter-result-count {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(128, 128, 128, 0.2);
    color: var(--text-muted);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .filter-header-actions {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .filter-action-btn {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
        min-width: 100px;
    }
    
    .filters-container {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .filter-group > label {
        font-size: 0.75rem;
    }
    
    .radio-group label {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
    }
    
    .filter-status {
        padding: 0 0.75rem 0.75rem;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-container {
        min-width: auto;
        order: 2;
    }
    
    .filter-toggle-btn {
        align-self: flex-end;
        order: 1;
    }
}

@media (max-width: 480px) {
    .filter-header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-action-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        min-width: auto;
    }
    
    .filters-container {
        grid-template-columns: 1fr;
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .radio-group {
        gap: 0.25rem;
    }
    
    .radio-group label {
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ========================================
   SUBSCRIPTION TAB - Billing Toggle & Grid Layout
   ======================================== */

/* Billing Toggle Container */
#billing-toggle-container {
    text-align: center !important;
    margin-bottom: 30px !important;
    width: 100%;
}

/* Billing Period Toggle */
.billing-toggle {
    display: inline-flex;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin: 0 auto;
}

.billing-option {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
    position: relative;
}

.billing-option:hover {
    background: #e0e0e0;
}

.billing-option.active {
    background: white;
    color: #007bff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.save-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #28a745;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Plans Grid - 2x2 Layout (Override old .pricing-plans styles) */
#plans-container.plans-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    #plans-container.plans-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Plan Card Styling */
.plan-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.plan-card.current {
    border-color: #007bff;
    background: #f8f9ff;
}

.plan-card.starter-tier {
    border-color: #6c757d;
}

.plan-card.standard-tier {
    border-color: #17a2b8;
}

.plan-card.premium-tier {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffef7 0%, #fff9e6 100%);
}

.plan-card.enterprise-tier {
    border-color: #6f42c1;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0ebff 100%);
}

/* Plan Header */
.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.popular-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.plan-price {
    margin-top: 12px;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #333;
}

.price-period {
    font-size: 16px;
    color: #666;
}

.price-note {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

/* Plan Features */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

.plan-features li::before {
    content: '✓ ';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* Plan Action Button */
.plan-action-btn {
    width: 100%;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.plan-action-btn.btn-secondary {
    background: #007bff;
    color: white;
}

.plan-action-btn.btn-secondary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.plan-action-btn.btn-primary {
    background: #6c757d;
    color: white;
}

.plan-action-btn.btn-accent {
    background: #6f42c1;
    color: white;
}

.plan-action-btn.btn-accent:hover {
    background: #5a32a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111,66,193,0.3);
}

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

.plan-action-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading State */
.plans-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.plans-error {
    text-align: center;
    padding: 40px 20px;
}

