/* ==========================================================================
   CLEANUP.CSS — SaaS-Grade UI Polish Overrides
   ==========================================================================
   Loaded LAST after design-system.css, app.css.
   All rules use targeted specificity to override bloated spacing, padding,
   and layout issues. Goal: Intercom / Linear / Vercel level of compactness.
   
   Phase 3: Typography & Accessibility - Increased font sizes for better readability
   ========================================================================== */

/* Phase 3: Base font size increase (16px → 18px) */
html {
    font-size: 18px !important;
}

body {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

/* ------------------------------------------------------------------
   0. GLOBAL RESETS — Kill excessive utility-class spacing
   ------------------------------------------------------------------ */

/* Tighten utility margins that app.css / design-system.css set too large */
.mb-4 {
    margin-bottom: 12px !important;
}

.mb-6 {
    margin-bottom: 14px !important;
}

.mb-3 {
    margin-bottom: 8px !important;
}

.mt-4 {
    margin-top: 12px !important;
}

.mt-5 {
    margin-top: 12px !important;
}

.mt-6 {
    margin-top: 14px !important;
}

.pt-4 {
    padding-top: 10px !important;
}

.gap-2 {
    gap: 8px !important;
}

.p-4 {
    padding: 12px !important;
}

/* ------------------------------------------------------------------
   1. HEADER — PWA: use common/pwa-header.css for bar, logo, spacing.
   Only hide redundant links and keep action buttons compact.
   ------------------------------------------------------------------ */
/* Hide Privacy Policy link in header — already in footer */
.header-actions > a.text-sm-gray {
    display: none !important;
}

.header-actions > a[href*="privacy"] {
    display: none !important;
}

.header-actions {
    gap: clamp(0.5rem, 1vw + 0.35rem, 0.75rem) !important;
    flex-shrink: 0;
}

.header-btn {
    min-width: clamp(1.75rem, 4vw + 1rem, 2.25rem) !important;
    min-height: clamp(1.75rem, 4vw + 1rem, 2.25rem) !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px !important;
    font-size: clamp(0.8125rem, 1vw + 0.5rem, 0.875rem) !important;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   2. STATUS BAR — Compact pills, no overflow
   ------------------------------------------------------------------ */
.status-bar {
    padding: 8px 12px !important;
    gap: 6px !important;
    flex-wrap: wrap;
    overflow-x: visible !important;
}

.status-pill {
    padding: 6px 12px !important;
    font-size: 14px !important; /* Increased from 13px */
    gap: 6px !important;
    border-radius: 14px !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.status-pill:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.status-icon {
    font-size: 14px !important;
    line-height: 1;
    flex-shrink: 0;
}

.status-dot {
    width: 6px !important;
    height: 6px !important;
    flex-shrink: 0;
}

/* ------------------------------------------------------------------
   3. MAIN CONTENT — PWA main spacing is in common/pwa-header.css.
   Fallback for pages that don’t use .content-with-header.
   ------------------------------------------------------------------ */
.content:not(.content-with-header) {
    padding: 14px 16px !important;
}

/* ------------------------------------------------------------------
   4. AUTH CARD — Kill massive gaps, compact everything
   ------------------------------------------------------------------ */
.auth-card {
    padding: 24px 20px !important;
    margin: 16px auto !important;
    border-radius: 14px !important;
    max-width: 380px !important;
}

.auth-icon {
    width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
    font-size: 28px !important;
    margin: 0 auto 14px !important;
}

.auth-title {
    font-size: 24px !important; /* Increased from 20px (+20%) */
    margin-bottom: 6px !important;
}

.auth-desc {
    font-size: 15px !important; /* Increased from 13px (+15%) */
    margin-bottom: 16px !important;
    line-height: 1.6 !important;
}

.google-btn {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    gap: 8px !important;
}

/* "or" divider — thinner */
.anon-divider {
    margin: 12px 0 !important;
    font-size: 12px !important;
}

.anon-divider span {
    padding: 0 8px !important;
}

/* Anonymous sign-in button */
.btn-anon-layout {
    gap: 6px !important;
}

/* Auth card bottom links section — kill the mt-6 pt-4 gap */
.auth-card .mt-6 {
    margin-top: 12px !important;
}

.auth-card .pt-4 {
    padding-top: 8px !important;
}

.auth-card .flex-center-gap-4 {
    gap: 12px !important;
}

.auth-card .text-xs {
    font-size: 11px !important;
}

/* ------------------------------------------------------------------
   5. TABS — Proper spacing, no overlap with content
   ------------------------------------------------------------------ */
.tabs {
    padding: 4px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
    max-width: 100% !important;
}

.tab-btn {
    padding: 8px 6px !important;
    font-size: 14px !important; /* Increased from 12px (+17%) */
    border-radius: 8px !important;
}

/* Ensure tab-content starts cleanly below tabs */
.tab-content {
    padding-top: 0 !important;
}

/* Tabs row: tabs + Tutorials link (tutorials separate from footer) */
.tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tabs-row .tabs {
    margin-bottom: 0 !important;
    flex: 1;
    min-width: 0;
}
.nav-tutorial-link {
    font-size: 15px;
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
}
.nav-tutorial-link:hover {
    text-decoration: underline;
    color: var(--gold-light);
}
.tutorial-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.tutorial-btn {
    font-size: 12px;
    color: var(--gold, #D4AF37);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 4px 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}
.tutorial-btn:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.4);
}
.footer-studio-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}
.footer-studio-link:hover {
    text-decoration: underline;
}
.footer-credits .footer-sep {
    color: var(--text-tertiary);
    margin: 0 4px;
}

/* Settings Modal Styles */
.settings-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.settings-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.settings-section-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.space-y-3 > * + * {
    margin-top: 12px;
}

.space-y-4 > * + * {
    margin-top: 16px;
}

/* Bottom nav tabs on mobile — tighter */
@media (max-width: 768px) {
    .tabs {
        padding: 4px 0 !important;
        padding-bottom: max(4px, env(safe-area-inset-bottom)) !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
    }

    .tabs .tab-btn {
        padding: 4px 4px !important;
        font-size: 10px !important;
        gap: 1px !important;
        min-width: 52px !important;
    }

    .tabs .tab-btn .tab-icon {
        font-size: 18px !important;
    }

    /* Reduce bottom padding for content behind fixed nav */
    .popup-wrapper,
    .tab-content {
        padding-bottom: 64px !important;
    }
}

/* ------------------------------------------------------------------
   6. STATS GRID — Force 2-col on mobile, compact cards
   ------------------------------------------------------------------ */
.stats-grid {
    gap: 10px !important;
    margin-bottom: 14px !important;
}

.stat-card {
    padding: 12px 14px !important;
    border-radius: 12px !important;
}

.stat-label {
    font-size: 1rem !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.3px !important;
}

.stat-value {
    font-size: 26px !important; /* Increased from 22px (+18%) */
    line-height: 1.2 !important;
}

.stat-unit {
    font-size: 12px !important;
}

/* 2-col at 480px and below, guaranteed */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .stat-card {
        padding: 10px 12px !important;
    }

    .stat-value {
        font-size: 18px !important;
    }

    .stat-label {
        font-size: 1rem !important;
    }
}

/* Also force 2-col for the report stats grid */
.stats-grid.grid-2-cols {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
}

/* ------------------------------------------------------------------
   7. ACTION GRID — 2-col on mobile, smaller padding, no overlap
   ------------------------------------------------------------------ */
.action-grid {
    gap: 10px !important;
}

.action-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    gap: 6px !important;
}

.action-card:hover {
    transform: translateY(-2px) !important;
}

.action-icon {
    font-size: 24px !important;
    margin-bottom: 2px !important;
}

.action-title {
    font-size: 15px !important; /* Increased from 13px (+15%) */
    line-height: 1.3 !important;
}

.action-desc {
    font-size: 12px !important; /* Increased from 11px (+9%) */
    line-height: 1.4 !important;
}

/* Force 2-col at 480px instead of 1-col */
@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .action-card {
        padding: 10px 8px !important;
        gap: 4px !important;
    }

    .action-icon {
        font-size: 20px !important;
    }

    .action-title {
        font-size: 12px !important;
    }

    .action-desc {
        font-size: 10px !important;
    }
}

/* Tiny screens (360px) */
@media (max-width: 374px) {
    .action-card {
        padding: 8px 6px !important;
    }

    .action-title {
        font-size: 11px !important;
    }

    .action-desc {
        display: none;
    }
}

/* ------------------------------------------------------------------
   8. COMPOSE TAB — Tools bar fix, no button overlap
   ------------------------------------------------------------------ */
.tools-bar {
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    margin-bottom: 10px !important;
    z-index: 10;
    position: relative;
}

.tools-bar .flex {
    flex-wrap: wrap !important;
    gap: 2px !important;
}

.tool-btn {
    padding: 4px 7px !important;
    font-size: 13px !important;
    border-radius: 5px !important;
    flex-shrink: 0;
}

/* Ensure emoji picker and dropdown don't collide */
.emoji-picker {
    top: 100% !important;
    left: 0 !important;
    z-index: 200 !important;
    width: min(100%, 300px) !important;
    max-height: 220px !important;
    padding: 8px !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 4px !important;
    margin-top: 4px !important;
}

.dropdown-menu {
    z-index: 200 !important;
    min-width: 160px !important;
    max-height: 200px !important;
    padding: 6px !important;
    margin-top: 4px !important;
}

/* Input & textarea fields — slightly tighter */
.input-group {
    margin-bottom: 16px !important;
    position: relative;
    z-index: 1;
}

.label {
    font-size: 13px !important; /* Increased from 12px (+8%) */
    margin-bottom: 4px !important;
}

.input-field,
.textarea-field,
.select-field {
    padding: 10px 12px !important;
    font-size: 15px !important; /* Increased from 13px (+15%) */
    border-radius: 8px !important;
}

.textarea-field {
    min-height: 140px !important;
}

/* Larger messaging window for Phase 1 */
.message-textarea-large {
    min-height: 280px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    padding: 14px 16px !important;
}

/* ------------------------------------------------------------------
   9. SEND TAB — Button group row fix, progress section
   ------------------------------------------------------------------ */
.btn-group-row {
    margin-top: 14px !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.btn-group-row .btn-primary,
.btn-group-row .btn-secondary {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* For wider CTA buttons using w-full p-4 text-lg */
.btn-primary.w-full {
    padding: 10px 16px !important;
    font-size: 14px !important;
}

.btn-primary.text-lg {
    font-size: 14px !important;
}

/* Progress bar section */
.progress-bar-bg {
    height: 8px !important;
    margin-bottom: 8px !important;
    border-radius: 4px !important;
}

/* Report divider */
.report-divider {
    margin: 8px 0 !important;
}

/* Send tab button on mobile — stack neatly */
@media (max-width: 480px) {
    .btn-group-row {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .btn-group-row .btn-primary,
    .btn-group-row .btn-secondary {
        width: 100% !important;
        flex: none !important;
        text-align: center;
        justify-content: center;
    }
}

/* ------------------------------------------------------------------
   10. FOOTER — Drastically reduce padding and spacing
   ------------------------------------------------------------------ */

/* App footer bar */
.footer {
    padding: 10px 16px !important;
    font-size: 11px !important;
    background: #020617 !important;
}

.footer-links {
    gap: 14px !important;
}

.footer-link {
    font-size: 11px !important;
}

/* Global website footer - Phase 6: Standardized */
.global-footer {
    padding: 20px 16px 16px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    background: #020617 !important;
}

.global-footer-container {
    gap: 12px !important;
}

.global-footer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.global-footer-version {
    font-weight: 600;
    color: var(--gold);
}

.global-footer-separator {
    color: var(--text-tertiary);
    margin: 0 4px;
}

.global-footer-powered {
    color: var(--text-secondary);
}

.global-footer-studio {
    font-weight: 600;
    color: var(--gold);
}

.global-footer-logo {
    border-radius: 4px;
}

.global-footer-title {
    font-size: 16px !important;
    margin-bottom: 4px !important;
}

.global-footer-links {
    gap: 10px 20px !important;
    padding: 8px 0 !important;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.global-footer-link {
    font-size: 12px !important;
}

.global-footer-copy {
    font-size: 11px !important;
    margin-top: 4px !important;
    padding-top: 8px !important;
    text-align: center;
    color: var(--text-tertiary);
}

/* Footer contact section */
.footer-contact-section {
    gap: 8px !important;
    padding: 10px 0 !important;
}

.footer-contact-item {
    gap: 4px !important;
}

.footer-label {
    font-size: 12px !important;
}

.footer-contact-link {
    font-size: 13px !important;
}

@media (max-width: 640px) {
    .global-footer {
        padding: 16px 12px 12px !important;
        font-size: 11px !important;
    }

    .global-footer-title {
        font-size: 14px !important;
    }

    .global-footer-links {
        gap: 8px !important;
    }

    .global-footer-copy {
        font-size: 10px !important;
    }

    .footer-contact-section {
        gap: 6px !important;
    }

    .footer-contact-link {
        font-size: 12px !important;
    }
}

/* ------------------------------------------------------------------
   11. TRIAL BANNER — Compact
   ------------------------------------------------------------------ */
.trial-banner {
    padding: 8px 14px !important;
    border-radius: 10px !important;
    margin-bottom: 12px !important;
}

.trial-icon {
    font-size: 1.2rem !important;
}

.trial-title {
    font-size: 1.2rem !important;
}

.trial-desc {
    font-size: 1.2rem !important;
}

.btn-buy-license {
    padding: 4px 12px !important;
    font-size: 1.2rem !important;
}

/* ------------------------------------------------------------------
   12. SECTION LABEL — Tighter
   ------------------------------------------------------------------ */
.label.mb-3,
.label.text-sm {
    font-size: 12px !important;
    margin-bottom: 6px !important;
}

/* ------------------------------------------------------------------
   13. DATA TABLES — Compact cells
   ------------------------------------------------------------------ */
.data-table th {
    padding: 10px 12px !important;
    font-size: 10px !important;
}

.data-table td {
    padding: 10px 12px !important;
    font-size: 12px !important;
}

/* ------------------------------------------------------------------
   14. TEMPLATE LIST — Compact
   ------------------------------------------------------------------ */
.templates-list-container {
    max-height: 180px !important;
    padding: 6px !important;
    border-radius: 8px !important;
}

/* ------------------------------------------------------------------
   15. BUTTONS — Slightly smaller across the board
   ------------------------------------------------------------------ */
.btn-primary {
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-size: 15px !important; /* Increased from 13px (+15%) */
}

.btn-secondary {
    padding: 10px 18px !important;
    border-radius: 10px !important;
    font-size: 15px !important; /* Increased from 13px (+15%) */
}

/* ------------------------------------------------------------------
   16. TOAST / STATUS NOTIFICATIONS — Compact
   ------------------------------------------------------------------ */
.toast-status {
    padding: 8px 16px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
    bottom: 80px !important;
}

/* ------------------------------------------------------------------
   17. RESPONSIVE MICRO-ADJUSTMENTS (360px target)
   ------------------------------------------------------------------ */
@media (max-width: 374px) {
    .header-btn {
        min-width: clamp(1.75rem, 5vw + 1rem, 2rem) !important;
        min-height: clamp(1.75rem, 5vw + 1rem, 2rem) !important;
        font-size: clamp(0.75rem, 1vw + 0.5rem, 0.8125rem) !important;
    }

    .content:not(.content-with-header) {
        padding: 10px 10px !important;
    }

    .auth-card {
        padding: 16px 14px !important;
        margin: 10px 6px !important;
    }

    .auth-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 22px !important;
    }

    .auth-title {
        font-size: 17px !important;
    }

    .auth-desc {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .status-pill {
        padding: 3px 6px !important;
        font-size: 10px !important;
        max-width: 110px;
    }

    .stat-card {
        padding: 8px 8px !important;
    }

    .stat-value {
        font-size: 16px !important;
    }

    .stat-label {
        font-size: 9px !important;
    }

    .stat-unit {
        font-size: 10px !important;
    }

    .tab-btn {
        font-size: 10px !important;
        padding: 6px 4px !important;
    }

    .global-footer {
        padding: 12px 8px 8px !important;
    }

    .tools-bar {
        gap: 2px !important;
    }

    .tool-btn {
        padding: 3px 5px !important;
        font-size: 12px !important;
    }
}

/* ------------------------------------------------------------------
   18. DESKTOP REFINEMENTS (768px+)
   ------------------------------------------------------------------ */
@media (min-width: 769px) {
    .content:not(.content-with-header) {
        padding: 20px 24px !important;
    }

    .stats-grid {
        gap: 12px !important;
    }

    .action-grid {
        gap: 12px !important;
    }

    .stat-card {
        padding: 16px !important;
    }

    .action-card {
        padding: 16px 14px !important;
    }

    .global-footer {
        padding: 24px 24px 18px !important;
    }

    .global-footer-container {
        gap: 16px !important;
    }
}

/* ------------------------------------------------------------------
   19. MAX-WIDTH CONTAINER — Phase 4: Full screen width
   ------------------------------------------------------------------ */
.max-w-600 {
    max-width: 100% !important; /* Phase 4: Full width instead of 560px */
    width: 100% !important;
}

/* Phase 4: Full width panels */
.send-panel-full-width,
.report-panel-full-width {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

/* Report panel & empty state (messaging-statistics page) */
.stats-page-title {
    margin: 0 0 1.5rem 0 !important;
}
.stats-grid-messaging {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    align-items: stretch !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}
.stats-grid-messaging .stat-card {
    min-height: 0 !important;
}
.report-panel {
    background: var(--vvc-card-gradient, rgba(15, 23, 42, 0.6)) !important;
    border: 1px solid var(--vvc-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--vvc-card-radius, 32px);
    padding: 2.5rem;
    margin-bottom: 24px;
    text-align: center;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--vvc-card-shadow, 0 15px 35px rgba(0,0,0,0.3));
}
.report-icon { font-size: 2.5rem; margin-bottom: 12px; }
.report-title { margin-bottom: 8px; }
.report-desc { color: var(--vvc-text-muted, #94a3b8); margin-bottom: 20px; line-height: 1.5; font-size: 1rem; }
.report-panel .flex.flex-col.gap-3 { display: flex; flex-direction: column; gap: 12px; }
.empty-report {
    background: var(--vvc-card-gradient, rgba(15, 23, 42, 0.6)) !important;
    border: 1px solid var(--vvc-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--vvc-card-radius, 32px);
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 24px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--vvc-card-shadow, 0 15px 35px rgba(0,0,0,0.3));
}
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.8; }
.empty-text { color: var(--vvc-text-muted, #94a3b8); line-height: 1.6; font-size: 1rem; }
.mb-6 { margin-bottom: 24px; }
.text-green { color: #34d399; }
.text-red { color: #f87171; }

/* ------------------------------------------------------------------
   SEND CAMPAIGN PAGE — Organized Card Layout with Equal Fonts
   ------------------------------------------------------------------ */
.send-page-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.send-card {
    background: var(--vvc-card-gradient, linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%)) !important;
    border: 1px solid var(--vvc-card-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--vvc-card-radius, 32px);
    padding: 2rem 2.5rem;
    margin-bottom: 32px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--vvc-card-shadow, 0 15px 35px rgba(0,0,0,0.3));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}
.send-card:hover {
    transform: translateY(-8px);
    border-color: var(--vvc-card-accent, #60a5fa);
    box-shadow: var(--vvc-card-shadow-hover, 0 25px 50px rgba(0,0,0,0.5), 0 0 20px rgba(96,165,250,0.1));
}

.send-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.send-card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.send-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.send-card-hint {
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-top: 8px;
}

/* Status Badge */
.send-status-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.send-status-number {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
    line-height: 1.2;
}

.send-status-label {
    font-size: 18px !important;
    color: var(--text-primary) !important;
    font-weight: 700 !important;
}

/* Configuration Fields */
.send-config-row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.send-config-field {
    flex: 1;
}

.send-config-field-wide {
    flex: 1 1 100%;
}

.send-delay-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-delay-separator {
    font-size: 14px !important;
    color: var(--text-secondary) !important;
    white-space: nowrap;
    font-weight: 500;
}

/* Progress Section */
.send-progress-percent {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--gold) !important;
}

.send-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px !important;
    color: var(--text-secondary) !important;
    margin-top: 8px;
}

.send-progress-stats b {
    font-weight: 600 !important;
}

/* Button Group in Card */
.send-card .btn-group-row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.send-card .btn-primary,
.send-card .btn-secondary,
.send-card .btn-danger {
    font-size: 14px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    width: 100%;
}

.send-card .btn-secondary {
    margin-top: 0;
}

/* Select fields spacing in card */
.send-card-content .select-field {
    margin-bottom: 0;
}

.send-card-content .select-field + .select-field {
    margin-top: 12px;
}

.send-card-content .select-field + .btn-primary {
    margin-top: 12px;
}

/* Input fields in config */
.send-config-field .input-field {
    margin-bottom: 0;
    font-size: 14px !important;
}

.send-config-field .label {
    margin-bottom: 8px;
    font-size: 13px !important;
}

.send-card-content .select-field {
    font-size: 14px !important;
}

/* Progress bar spacing */
.send-card-content .progress-bar-bg {
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .send-config-row {
        flex-direction: column;
    }
    
    .send-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .send-status-badge {
        align-items: flex-start;
    }
    
    .send-card {
        padding: 16px;
    }
}

/* ------------------------------------------------------------------
   20. WHATSAPP AUTH MODAL — Compact within modal
   ------------------------------------------------------------------ */
#waAuthModal .fixed > div {
    padding: 20px !important;
    border-radius: 14px !important;
}

/* ------------------------------------------------------------------
   21. LICENSE GATE — Tighter spacing
   ------------------------------------------------------------------ */
.license-gate {
    padding: 16px !important;
}

.license-icon {
    font-size: 36px !important;
    margin-bottom: 10px !important;
}

.license-title {
    font-size: 20px !important;
    margin: 0 0 8px !important;
}

.license-desc {
    font-size: 13px !important;
    margin-bottom: 20px !important;
}

/* ------------------------------------------------------------------
   Brand Logo images — keep sizing consistent
   ------------------------------------------------------------------ */
.brand-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.auth-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* ------------------------------------------------------------------
   Profile Modal — Ensure clickability and proper z-index
   ------------------------------------------------------------------ */
.profile-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.85) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000 !important;
    padding: 20px !important;
}

.profile-modal-overlay.hidden {
    display: none !important;
}

.profile-modal-content {
    background: rgba(20, 20, 20, 0.95) !important;
    border: 1px solid var(--border-gold) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    max-width: 400px !important;
    width: 100% !important;
    z-index: 1001 !important;
    position: relative !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    backdrop-filter: var(--glass-blur) !important;
}

/* Phase 2: Ready/Not Ready Button - Golden Gradient */
.ready-status-btn {
    background: linear-gradient(135deg, #D4AF37, #F4D03F) !important;
    color: #0B0B0F !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
    z-index: 10 !important;
    position: relative !important;
    margin-right: 8px !important;
}

.ready-status-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4) !important;
}

.ready-status-btn.not-ready {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3) !important;
}

.ready-status-btn.not-ready:hover {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Ensure header buttons are clickable */
.header-btn {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 10 !important;
    position: relative !important;
}
