/* ================= Brandit Design Generator Theme v9.9.8 ================= */
/* Complete CSS File - All Changes Integrated + Consistent Gradients */
/* Includes: Rounded inputs, Helper text interactions, Dropdown menus, Grid layout, Profile cards */
/* FIXED: Modal behavior, History delete UI, Dashboard layout consistency */
/* ADDED: Required field indicators, Disabled field styling, History checkbox styles, Navigation flicker prevention */

:root {
    --brandit-primary: #4208cc;
    --brandit-secondary: #d40253;
    --brandit-accent: #8b5cf6;
    --brandit-success: #10b981;
    --brandit-warning: #f59e0b;
    --brandit-error: #ef4444;
    --brandit-dark: #1e293b;
    --brandit-light: #f8fafc;
    
    --bg-main: #ffffff;
    --bg-soft: #f6f7f9;
    --bg-card: #ffffff;
    --border-soft: rgba(0,0,0,0.08);
    --border-light: rgba(0,0,0,0.04);

    --text-main: #000000;
    --text-secondary: #000000;
    --text-muted: #666666;

    /* Consistent Brand Gradient - Used throughout the plugin */
    --brand-gradient: linear-gradient(135deg, #4208cc, #d40253);
    --brand-gradient-hover: linear-gradient(135deg, #d40253, #4208cc);
    --success-gradient: linear-gradient(135deg, #10b981, #059669);
    --warning-gradient: linear-gradient(135deg, #f59e0b, #d97706);
    --accent-gradient: linear-gradient(135deg, #8b5cf6, var(--brandit-accent));
    --whatsapp-gradient: linear-gradient(90deg, #7B61FF, #00D4FF);
    --close-gradient: linear-gradient(135deg, #ff4444, #cc0000);
    --delete-gradient: linear-gradient(135deg, #ef4444, #25dc26);
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --shadow-brand: 0 8px 24px rgba(66, 8, 204, 0.3);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-delete: 0 4px 12px rgba(239, 68, 68, 0.3);
    --shadow-dropdown: 0 8px 24px rgba(0, 0, 0, 0.15);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 280px;
    --top-nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ====================================================== */
/* ========== NAVIGATION FLICKER PREVENTION ============= */
/* ====================================================== */

.brandit-content-container {
    transition: opacity 0.15s ease;
}

.brandit-content-container.navigating {
    opacity: 0.5;
    pointer-events: none;
}

/* ====================================================== */
/* ========== ROUNDED CORNERS FOR ALL INPUTS =========== */
/* ====================================================== */

/* Standardize border-radius across all input types */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="color"],
select,
textarea,
.brandit-form-group input,
.brandit-form-group select,
.brandit-form-group textarea,
.brandit-form-field input,
.brandit-form-field select,
.brandit-form-field textarea,
.form-control,
.brandit-select,
#business-profile-form-modal input,
#business-profile-form-modal select,
#business-profile-form-modal textarea {
    border-radius: 12px !important;
}

/* Color inputs need special handling */
input[type="color"] {
    border-radius: 8px !important;
    padding: 4px !important;
    height: 44px !important;
}

/* File upload areas */
.brandit-file-upload,
.upload-box,
.upload-box-small {
    border-radius: 16px !important;
}

/* Select dropdowns - ensure consistent rounding */
select {
    border-radius: 12px !important;
}

/* Modal inputs specifically */
.brandit-logo-modal input,
.brandit-logo-modal select,
.brandit-logo-modal textarea {
    border-radius: 12px !important;
}

/* Business Profile Modal specific rounded corners */
#business-profile-form-modal input,
#business-profile-form-modal select,
#business-profile-form-modal textarea {
    border-radius: 12px !important;
}

#business-profile-form-modal .brandit-file-upload {
    border-radius: 16px !important;
}

#business-profile-form-modal .brandit-color-input {
    border-radius: 8px !important;
}

/* ====================================================== */
/* ========== HELPER TEXT STYLES ======================= */
/* ====================================================== */

.brandit-helper-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    transition: opacity 0.15s ease;
}

/* ====================================================== */
/* ========== REQUIRED FIELD INDICATORS ================ */
/* ====================================================== */

.brandit-required-indicator {
    color: var(--brandit-error);
    margin-left: 4px;
    font-weight: 600;
}

.brandit-optional-indicator {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 400;
    margin-left: 6px;
}

.required-star {
    color: var(--brandit-error);
    margin-left: 2px;
    font-weight: 600;
}

.optional-badge {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 400;
    margin-left: 8px;
}

/* ====================================================== */
/* ========== DISABLED FIELD STYLING =================== */
/* ====================================================== */

.brandit-form-group input:disabled,
.brandit-form-group textarea:disabled,
.brandit-form-group select:disabled,
.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled,
.brandit-form-field input:disabled,
.brandit-form-field textarea:disabled,
.brandit-form-field select:disabled {
    background: var(--bg-soft);
    opacity: 0.7;
    cursor: not-allowed;
    border-color: var(--border-soft);
}

.brandit-form-group input:disabled:hover,
.brandit-form-group textarea:disabled:hover,
.form-group input:disabled:hover,
.form-group textarea:disabled:hover,
.brandit-form-field input:disabled:hover,
.brandit-form-field textarea:disabled:hover {
    border-color: var(--border-soft);
}

/* ====================================================== */
/* ========== BUSINESS PROFILE DROPDOWN OPTION ========= */
/* ====================================================== */

#business-profile-select option[value="__setup_new__"] {
    color: var(--brandit-primary) !important;
    font-weight: 500;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
    margin-top: 4px;
}

/* ====================================================== */
/* ========== DROPDOWN MENU STYLES ===================== */
/* ====================================================== */

.brandit-profile-menu-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--text-muted);
    transition: var(--transition);
}

.brandit-profile-menu-btn:hover {
    background: var(--bg-soft);
    color: var(--brandit-primary);
}

.brandit-profile-dropdown-menu {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-dropdown);
    min-width: 180px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brandit-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--text-secondary);
}

.brandit-dropdown-item:hover {
    background: var(--bg-soft);
}

.brandit-dropdown-edit {
    color: var(--brandit-primary);
}

.brandit-dropdown-edit:hover {
    background: rgba(66, 8, 204, 0.05);
}

.brandit-dropdown-delete {
    color: var(--brandit-error);
}

.brandit-dropdown-delete:hover {
    background: rgba(239, 68, 68, 0.05);
}

.brandit-dropdown-item span {
    font-size: 16px;
}

/* ====================================================== */
/* ========== SPACING FIXES - NO EXTRA GAPS ============= */
/* ====================================================== */

/* Remove all extra spacing between header and content */
.brandit-main-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.brandit-main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-soft);
    transition: margin-left 0.3s ease;
    width: calc(100% - var(--sidebar-width));
    position: relative;
    padding-top: 0 !important;
}

.brandit-content-container {
    padding: 20px 32px !important;
    max-width: 1400px;
    margin: 0 auto;
}

/* Remove extra spacing on form header wrapper */
.brandit-form-header-wrapper {
    margin-bottom: 24px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure top navbar has no bottom margin */
.brandit-top-navbar {
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-soft);
    padding: 0 32px;
    height: var(--top-nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
    margin-bottom: 0 !important;
    width: 100%;
}

/* Dashboard banner spacing */
.brandit-dashboard-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--brand-gradient);
    border-radius: var(--radius-md);
    padding: 24px 32px;
    margin-top: 0 !important;
    margin-bottom: 32px;
    color: white;
    animation: slideDownBanner 0.4s ease-out;
}

/* Banner CTA Styles */
.brandit-banner-cta {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.15);
    padding: 16px 20px;
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.brandit-banner-cta:hover {
    background: rgba(255, 255, 255, 0.22);
}

.brandit-banner-cta button,
#setup-business-profile-btn {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 24px;
    border-radius: 30px;
    white-space: nowrap;
    transition: var(--transition);
}

.brandit-banner-cta button:hover,
#setup-business-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#brandit-dynamic-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#brandit-dynamic-content > *:first-child {
    margin-top: 0 !important;
}

/* Form header spacing */
.brandit-form-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-soft);
    flex-wrap: wrap;
}

/* Mode toggle spacing */
.brandit-mode-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    background: var(--bg-soft);
    padding: 6px;
    border-radius: var(--radius-lg);
    width: fit-content;
}

.brandit-mode-toggle-wrapper {
    margin-bottom: 28px;
}

/* Generator view spacing */
.brandit-generator-view {
    background: var(--bg-soft);
    min-height: 100vh;
    padding: 20px 32px 40px;
}

.brandit-generator-view .brandit-form-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
}

/* ====================================================== */
/* ========== GLOBAL FONT CONSISTENCY ================== */
/* ====================================================== */

body,
.brandit-container,
.brandit-guest-view,
.brandit-logo-generator-widget,
input,
select,
textarea,
button {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif !important;
    color: #666;
}

/* Headers - Black and Semi-Bold */
h1, h2, h3, h4, h5, h6,
.brandit-form-title,
.brandit-dashboard-card h3,
.brandit-guest-card h3,
.brandit-profile-fullname,
.brandit-password-section h3,
.brandit-credits-balance h3,
.brandit-logo-header h3,
.brandit-invoice-section h4,
.brandit-history-header h2 {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Invoice Preview Headers - Black and Semi-Bold */
.invoice-preview h2,
.invoice-preview h3,
.invoice-preview h4,
.invoice-preview strong,
.invoice-preview .company-details-title,
.invoice-preview .bill-to-title,
.invoice-preview .payment-title,
.invoice-preview .notes-title {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Invoice Preview Body Text - Grey */
.invoice-preview,
.invoice-preview p,
.invoice-preview span,
.invoice-preview td,
.invoice-preview .company-details-text,
.invoice-preview .bill-to-text,
.invoice-preview .payment-text,
.invoice-preview .notes-text {
    color: #666666 !important;
}

/* Invoice Table Header - Consistent Gradient */
.invoice-preview thead tr th {
    background: var(--brand-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
}

.brandit-dashboard-banner-content h2 {
    color: white !important;
}

.brandit-guest-hero h1 {
    font-size: 48px;
    color: white !important;
}

label {
    font-size: 14px;
    font-weight: 500;
}

/* ====================================================== */
/* ========== HEADER LOGO STYLES ======================= */
/* ====================================================== */

.brandit-header-logo {
    height: 50px;
    width: auto;
    max-height: 55px;
}

/* ====================================================== */
/* ========== GLOBAL FORM ALIGNMENT ==================== */
/* ====================================================== */

.brandit-form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 6px;
}

.brandit-form-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.brandit-form-group input,
.brandit-form-group textarea,
.brandit-form-group select {
    width: 100%;
}

/* Compact form groups for modals */
.brandit-form-group.compact {
    margin-bottom: 12px;
    gap: 4px;
}

.brandit-form-group.compact label {
    font-size: 13px;
    margin-bottom: 4px;
}

.brandit-form-group.compact input {
    padding: 10px 12px;
    font-size: 14px;
}

/* ====================================================== */
/* ========== FORM TITLES FOR MOBILE =================== */
/* ====================================================== */

.brandit-form-title {
    display: none;
}

/* ====================================================== */
/* ========== DROPDOWN ARROW SPACING =================== */
/* ====================================================== */

select,
.brandit-form-group select,
.brandit-invoice-form select,
.brandit-business-card-form select,
.brandit-flyer-form select,
.flyer-form-container select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 40px !important;
}

select::-ms-expand {
    display: none;
}

/* ====================================================== */
/* ========== HIDE EMPTY PREVIEW CONTAINERS ============ */
/* ====================================================== */

.brandit-upload-preview-grid:empty,
.brandit-partner-logos-preview:empty,
#brandit-bc-upload-preview:empty,
#brandit-flyer-logo-preview:empty,
#brandit-flyer-background-preview:empty,
#brandit-flyer-foreground-preview:empty,
#brandit-flyer-partner-preview:empty,
#brandit-invoice-logo-preview:empty,
.brandit-prompt-file-list:empty,
.upload-preview-grid:empty {
    display: none !important;
}

.brandit-upload-preview-grid:not(:empty),
.brandit-partner-logos-preview:not(:empty),
#brandit-bc-upload-preview:not(:empty),
#brandit-flyer-logo-preview:not(:empty),
#brandit-flyer-background-preview:not(:empty),
#brandit-flyer-foreground-preview:not(:empty),
#brandit-flyer-partner-preview:not(:empty),
#brandit-invoice-logo-preview:not(:empty),
.brandit-prompt-file-list:not(:empty),
.upload-preview-grid:not(:empty) {
    display: flex !important;
}

/* ====================================================== */
/* ========== PROMPT UPLOAD - INLINE WITH TEXTAREA ===== */
/* ====================================================== */

.brandit-prompt-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-soft);
    cursor: pointer;
    transition: var(--transition);
}

.brandit-prompt-upload-wrapper:hover {
    border-color: var(--brandit-primary);
    background: rgba(66, 8, 204, 0.02);
}

.brandit-prompt-upload-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.brandit-prompt-upload-text {
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}

.brandit-prompt-file-input {
    display: none;
}

.brandit-prompt-file-list {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ====================================================== */
/* ========== MODE TOGGLE BUTTON OUTLINES ============== */
/* ====================================================== */

.brandit-mode-btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-muted);
    transition: var(--transition);
    min-height: 44px;
}

.brandit-mode-btn.active {
    background: var(--brand-gradient) !important;
    color: white !important;
    border: 2px solid #4208cc !important;
    outline: 3px solid rgba(66, 8, 204, 0.3) !important;
    outline-offset: 2px !important;
    box-shadow: 0 4px 12px rgba(66, 8, 204, 0.4) !important;
    transform: scale(1.02);
}

.brandit-mode-btn:not(.active) {
    background: transparent;
    color: var(--text-muted);
    border: 2px solid rgba(66, 8, 204, 0.25) !important;
    opacity: 0.9;
}

.brandit-mode-btn:not(.active):hover {
    background: rgba(66, 8, 204, 0.05);
    color: var(--brandit-primary);
    border-color: var(--brandit-primary) !important;
    opacity: 1;
}

.brandit-mode-btn:focus-visible {
    outline: 3px solid var(--brandit-primary) !important;
    outline-offset: 2px !important;
    border: 2px solid #4208cc !important;
}

.brandit-mode-btn:focus {
    outline: none;
}

/* ====================================================== */
/* ========== UI SWITCHING CLASSES ===================== */
/* ====================================================== */

.ui-new-flyer,
.ui-general-poster {
    transition: opacity 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Event Type & Specify Fields Container */
.brandit-event-fields-container {
    grid-column: span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ====================================================== */
/* ========== FLYER FORM CONTAINER ===================== */
/* ====================================================== */

.flyer-form-container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-main);
    min-height: 48px;
}

.form-control:focus {
    outline: none;
    border-color: var(--brandit-primary);
    box-shadow: 0 0 0 3px rgba(66, 8, 204, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Upload Box */
.upload-box {
    border: 2px dashed var(--brandit-primary);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    background: var(--bg-soft);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.upload-box:hover {
    background: var(--bg-main);
    border-color: var(--brandit-secondary);
}

.upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box .upload-icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
    color: var(--brandit-primary);
}

.upload-box .upload-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Upload Box Small (for photo rows) */
.upload-box-small {
    border: 2px dashed var(--brandit-primary);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    background: var(--bg-soft);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-box-small:hover {
    background: var(--bg-main);
    border-color: var(--brandit-secondary);
}

.upload-box-small input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-box-small .upload-icon {
    font-size: 28px;
    margin-bottom: 4px;
    display: block;
    color: var(--brandit-primary);
}

.upload-box-small .upload-text {
    font-size: 12px;
    color: var(--text-muted);
}

/* Photo Preview Small */
.photo-preview-small {
    margin-top: 8px;
    position: relative;
    display: inline-block;
}

.photo-preview-small img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--brandit-primary);
}

.remove-photo-preview {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--close-gradient);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo Row */
.photo-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 16px;
    margin-bottom: 16px;
    align-items: center;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.photo-upload-col {
    min-width: 120px;
}

.photo-desc-col input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 14px;
}

.photo-delete-col .remove-photo-btn {
    background: var(--close-gradient);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
}

.photo-delete-col .remove-photo-btn:hover {
    transform: scale(1.05);
}

/* Add Photo Button */
.btn-add-photo {
    background: #000000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
}

.btn-add-photo:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Photos Section */
.photos-section {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.photos-section label {
    font-weight: 600;
    margin-bottom: 16px;
    display: block;
}

/* Color Picker Wrapper */
.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    border: 1px solid var(--border-light);
}

.color-preview-bar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.color-input-group {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-input {
    width: 50px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid var(--border-soft);
    cursor: pointer;
}

.color-hex-input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px solid var(--border-soft);
    font-size: 14px;
    font-family: monospace;
}

/* Create Designs Button */
.btn-create-designs {
    background: #5bbd7a;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    display: block;
    text-align: center;
}

.btn-create-designs:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 189, 122, 0.3);
    background: #4aa86a;
}

.btn-create-designs .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Form Actions */
.form-actions {
    text-align: center;
}

/* Flyer Processing */
.flyer-processing {
    text-align: center;
    padding: 40px;
    margin-top: 20px;
}

.flyer-processing .spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(66, 8, 204, 0.2);
    border-top-color: var(--brandit-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.flyer-processing .loading-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.flyer-processing .progress-container {
    background: rgba(66, 8, 204, 0.1);
    border-radius: 20px;
    height: 6px;
    margin-top: 20px;
    overflow: hidden;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.flyer-processing .progress-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* Upload Preview Grid */
.upload-preview-grid {
    margin-top: 16px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

/* ====================================================== */
/* ========== SIDEBAR STYLES ========================== */
/* ====================================================== */

.brandit-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-main);
    border-right: 1px solid var(--border-soft);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.brandit-sidebar-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.brandit-sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}

.brandit-sidebar-header .brandit-header-logo {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.brandit-sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brandit-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    cursor: pointer;
    min-height: 48px;
}

.brandit-nav-item:hover {
    background: rgba(66, 8, 204, 0.05);
    color: var(--brandit-primary);
}

.brandit-nav-item.active {
    background: linear-gradient(135deg, rgba(66, 8, 204, 0.1), rgba(212, 2, 83, 0.1));
    color: var(--brandit-primary);
    font-weight: 600;
}

.brandit-nav-item .nav-text {
    font-size: 15px;
    flex: 1;
}

.brandit-nav-item .nav-count {
    margin-left: auto;
    font-size: 12px;
    background: rgba(66, 8, 204, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    color: var(--brandit-primary);
}

.brandit-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-soft);
    margin-top: auto;
}

.brandit-sidebar-logout-btn {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--brandit-error);
    color: var(--brandit-error);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

.brandit-sidebar-logout-btn .brandit-sidebar-icon {
    width: 24px;
    height: 24px;
    margin: 0;
}

.brandit-sidebar-logout-btn:hover {
    background: var(--close-gradient);
    color: white;
    transform: translateY(-2px);
}

.brandit-sidebar-logout-btn:hover .brandit-sidebar-icon {
    filter: brightness(0) invert(1);
}

/* ====================================================== */
/* ========== TOP NAVBAR STYLES ======================== */
/* ====================================================== */

.brandit-current-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.brandit-current-tab-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.brandit-navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.brandit-credit-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-soft);
    padding: 8px 20px;
    border-radius: 50px;
    white-space: nowrap;
}

.brandit-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.brandit-credit-amount {
    font-weight: 700;
    font-size: 16px;
    color: var(--brandit-primary);
    white-space: nowrap;
}

/* ====================================================== */
/* ========== CONSISTENT GRADIENT STYLING =============== */
/* ====================================================== */

/* All primary buttons use the same brand gradient */
.brandit-generate-btn,
.brandit-prompt-generate-btn,
.brandit-card-btn,
.brandit-purchase-btn,
.brandit-modal-download,
.brandit-add-credits-btn,
.brandit-guest-card-btn,
.brandit-guest-signup-btn,
.brandit-guest-promo-signup,
.brandit-empty-state-btn,
#brandit-login-submit,
#brandit-signup-submit,
#brandit-forgot-submit,
#brandit-verify-submit,
#brandit-reset-submit,
#auth-prompt-signup-btn,
.success-download-btn,
#save-business-profile-btn,
#bp-modal-save-btn,
#add-business-profile-btn,
#add-new-profile-from-manage-btn,
.brandit-profile-edit-btn,
.manage-profile-edit-btn,
.brandit-dropdown-edit,
#toggle-delete-mode {
    background: var(--brand-gradient) !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.brandit-generate-btn:hover:not(:disabled),
.brandit-prompt-generate-btn:hover:not(:disabled),
.brandit-card-btn:hover,
.brandit-purchase-btn:hover,
.brandit-modal-download:hover,
.brandit-add-credits-btn:hover,
.brandit-guest-card-btn:hover,
.brandit-guest-signup-btn:hover,
.brandit-guest-promo-signup:hover,
.brandit-empty-state-btn:hover,
.success-download-btn:hover,
#save-business-profile-btn:hover,
#bp-modal-save-btn:hover,
#add-business-profile-btn:hover,
#add-new-profile-from-manage-btn:hover,
.brandit-profile-edit-btn:hover,
.manage-profile-edit-btn:hover,
#toggle-delete-mode:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand) !important;
}

.brandit-add-credits-btn {
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    min-height: 40px;
}

/* Close/Remove/Delete buttons use close/delete gradient */
.brandit-remove-image,
.brandit-remove-flyer-logo,
.brandit-remove-flyer-photo,
.brandit-remove-background-photo,
.brandit-remove-foreground-photo,
.brandit-remove-partner-logo,
.brandit-remove-prompt-file,
.brandit-remove-invoice-logo,
.remove-photo-preview,
.brandit-remove-item,
.brandit-profile-delete-btn,
.manage-profile-delete-btn,
.brandit-dropdown-delete,
.delete-history-item,
#bulk-delete-btn,
#brandit-history-delete-btn {
    background: var(--close-gradient) !important;
    color: white !important;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.brandit-profile-delete-btn:hover,
.manage-profile-delete-btn:hover,
.brandit-dropdown-delete:hover,
.delete-history-item:hover,
#bulk-delete-btn:hover:not(:disabled),
#brandit-history-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-delete) !important;
}

/* ====================================================== */
/* ========== HISTORY DELETE UI STYLES ================= */
/* ====================================================== */

#bulk-delete-actions {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brandit-error);
    animation: slideDown 0.3s ease-out;
}

#bulk-delete-actions > div {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

#selected-count {
    color: var(--brandit-error);
    font-weight: 600;
    font-size: 14px;
}

#bulk-delete-btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
}

#bulk-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

#cancel-bulk-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: auto;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

#cancel-bulk-delete:hover {
    background: var(--bg-soft);
    color: var(--text-main);
}

/* Select All Checkbox */
.brandit-select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 14px;
    background: var(--bg-soft);
    border-radius: 30px;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.brandit-select-all-checkbox:hover {
    background: rgba(66, 8, 204, 0.05);
    border-color: var(--brandit-primary);
}

.brandit-select-all-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--brandit-primary);
}

/* History Item Checkbox */
.history-checkbox-wrapper {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: white;
    border-radius: 6px;
    padding: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.history-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brandit-primary);
    flex-shrink: 0;
    display: block;
}

.brandit-asset-card {
    position: relative;
}

.delete-history-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
    cursor: pointer;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#toggle-delete-mode {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    min-height: 44px;
}

/* ====================================================== */
/* ========== DASHBOARD BANNER WITH ROBOT ============== */
/* ====================================================== */

@keyframes slideDownBanner {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brandit-dashboard-banner-content {
    flex: 1;
}

.brandit-dashboard-banner-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
    color: white !important;
}

.brandit-dashboard-banner-content p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.brandit-dashboard-robot img {
    max-width: 160px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    display: block;
}

/* ====================================================== */
/* ========== DASHBOARD CARDS - FIXED LAYOUT =========== */
/* ====================================================== */

.brandit-dashboard-cards {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 28px !important;
    justify-content: center !important;
    margin-bottom: 40px;
}

.brandit-dashboard-card {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 1 1 calc(25% - 28px) !important;
    min-width: 240px !important;
    max-width: 280px !important;
    display: flex;
    flex-direction: column;
}

.brandit-dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.brandit-dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.brandit-dashboard-card:hover::before {
    transform: scaleX(1);
}

.brandit-card-icon img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 20px;
}

.brandit-dashboard-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-main);
}

.brandit-dashboard-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
    flex: 1;
}

.brandit-card-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    min-height: 44px;
}

/* ====================================================== */
/* ========== GUEST VIEW - MODERN SAAS LANDING PAGE ===== */
/* ====================================================== */

.brandit-guest-view {
    background: #f7f7fb;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----- GUEST AUTH BARS ----- */
.brandit-guest-auth-bar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 90%;
    width: auto;
    border-radius: 12px;
    padding: 12px 24px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.4s ease-out;
}

.brandit-guest-auth-bar.success {
    background: var(--success-gradient);
    color: white;
}

.brandit-guest-auth-bar.info {
    background: var(--warning-gradient);
    color: white;
}

.brandit-guest-auth-bar.error {
    background: var(--close-gradient);
    color: white;
}

.brandit-guest-auth-bar.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ----- GUEST HEADER ----- */
.brandit-guest-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brandit-guest-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brandit-guest-logo img {
    height: 50px;
    width: auto;
    max-height: 55px;
}

.brandit-guest-nav-buttons {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.brandit-guest-login-link {
    color: var(--brandit-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 30px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
}

.brandit-guest-login-link:hover {
    background: rgba(66, 8, 204, 0.05);
}

.brandit-guest-signup-btn {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(66, 8, 204, 0.2);
    min-height: 44px;
}

/* ----- HERO SECTION ----- */
.brandit-guest-hero {
    background: linear-gradient(135deg, #6a00ff, #4000cc);
    padding: 80px 32px 120px;
    position: relative;
    overflow: visible;
}

.brandit-guest-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.brandit-guest-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.brandit-guest-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.brandit-guest-hero-left {
    flex: 1;
    color: white;
}

.brandit-guest-hero-left h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.brandit-guest-hero-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 550px;
    color: rgba(255,255,255,0.9);
}

.brandit-guest-hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.brandit-guest-hero-robot {
    width: 100%;
    max-width: 320px;
}

.brandit-hero-robot-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    animation: float 4s ease-in-out infinite;
    display: block;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ----- FLOATING CARDS SECTION ----- */
.brandit-guest-cards-wrapper {
    position: relative;
    margin-top: -60px;
    margin-bottom: 60px;
    z-index: 10;
    padding: 0 32px;
    display: flex;
    flex-wrap: wrap;
}

.brandit-guest-cards-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.brandit-guest-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.brandit-guest-card {
    background: var(--bg-main);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    flex: 1 1 calc(25% - 28px);
    min-width: 240px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
}

.brandit-guest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.brandit-guest-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.brandit-guest-card:hover::before {
    transform: scaleX(1);
}

.brandit-guest-card-icon {
    margin-bottom: 24px;
}

.brandit-guest-card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.brandit-guest-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.brandit-guest-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex: 1;
}

.brandit-guest-card-btn {
    padding: 12px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

/* ----- PROMO SECTION ----- */
.brandit-guest-promo {
    padding: 80px 32px;
    background: var(--bg-soft);
}

.brandit-guest-promo-container {
    max-width: 1200px;
    margin: 0 auto;
}

.brandit-guest-promo-card {
    background: linear-gradient(135deg, #a0d8ef, #caa6ff);
    border-radius: 32px;
    display: flex;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.brandit-guest-promo-left {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.brandit-guest-promo-image {
    position: relative;
    height: 100%;
    min-height: 450px;
}

.brandit-guest-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brandit-guest-promo-success {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
}

.brandit-guest-promo-success .success-icon {
    width: 48px;
    height: 48px;
    background: var(--brandit-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.brandit-guest-promo-success .success-text {
    flex: 1;
}

.brandit-guest-promo-success .success-text strong {
    display: block;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.brandit-guest-promo-success .success-text span {
    font-size: 13px;
    color: var(--text-muted);
}

.brandit-guest-promo-success .success-download-btn {
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    min-height: 40px;
}

.brandit-guest-promo-right {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brandit-guest-promo-right h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.brandit-guest-promo-right p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.brandit-guest-promo-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.brandit-guest-promo-signup {
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    min-height: 48px;
}

.brandit-guest-promo-login {
    color: var(--brandit-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 28px;
    border-radius: 50px;
    transition: var(--transition);
    background: white;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
}

.brandit-guest-promo-login:hover {
    background: rgba(255,255,255,0.9);
    transform: translateX(2px);
}

/* ====================================================== */
/* ========== GENERATOR VIEW CONTAINER ================= */
/* ====================================================== */

.brandit-guest-generator-container {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
}

.brandit-generator-view .brandit-form-back-btn,
.brandit-form-back-btn {
    color: #000000 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
}

.brandit-generator-view .brandit-form-back-btn:hover,
.brandit-form-back-btn:hover {
    color: white !important;
    background: var(--brand-gradient);
    transform: translateX(-5px);
}

/* ====================================================== */
/* ========== UPLOAD PREVIEW STYLES ==================== */
/* ====================================================== */

.brandit-file-upload {
    position: relative;
    border: 2px dashed var(--brandit-primary);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    background: var(--bg-soft);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 0;
}

.brandit-file-upload:hover {
    background: var(--bg-main);
    border-color: var(--brandit-secondary);
}

.brandit-file-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    cursor: pointer;
}

.brandit-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--brandit-primary);
}

.brandit-upload-text {
    font-size: 14px;
    color: var(--text-muted);
}

.brandit-image-preview {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.brandit-image-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brandit-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--brandit-primary);
    display: block;
}

.brandit-remove-image,
.brandit-remove-flyer-logo,
.brandit-remove-flyer-photo,
.brandit-remove-background-photo,
.brandit-remove-foreground-photo,
.brandit-remove-partner-logo,
.brandit-remove-prompt-file,
.brandit-remove-invoice-logo {
    position: absolute;
    top: -8px;
    right: -8px;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.brandit-remove-image:hover,
.brandit-remove-flyer-logo:hover,
.brandit-remove-flyer-photo:hover,
.brandit-remove-background-photo:hover,
.brandit-remove-foreground-photo:hover,
.brandit-remove-partner-logo:hover,
.brandit-remove-prompt-file:hover,
.brandit-remove-invoice-logo:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #ff0000, #990000);
}

/* ====================================================== */
/* ========== WHATSAPP GRADIENT LINK STYLES ============ */
/* ====================================================== */

.brandit-edit-note {
    margin-top: 15px;
    padding: 12px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    font-size: 14px;
}

.brandit-edit-note a {
    background: var(--whatsapp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.brandit-edit-note a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ====================================================== */
/* ========== FORM STYLES ============================== */
/* ====================================================== */

.brandit-form-container,
.brandit-business-card-form,
.brandit-invoice-form {
    max-width: 100%;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

/* Form Grid Layout - Desktop Side by Side */
@media (min-width: 769px) {
    .brandit-form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .brandit-form-group.full-width {
        grid-column: span 2;
    }
}

.brandit-form-field input,
.brandit-form-field select,
.brandit-form-field textarea,
.brandit-business-name-field input,
.brandit-invoice-form input,
.brandit-invoice-form select,
.brandit-business-card-form input,
.brandit-business-card-form select,
.brandit-prompt-textarea,
.brandit-form-container input,
.brandit-form-container select {
    width: 100%;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border-soft);
    background: var(--bg-main);
    font-size: 15px;
    transition: var(--transition);
    height: 56px;
}

.brandit-form-field textarea,
.brandit-invoice-form textarea,
.brandit-business-card-form textarea,
.brandit-prompt-textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
}

.brandit-form-field input:focus,
.brandit-form-field select:focus,
.brandit-form-field textarea:focus,
.brandit-prompt-textarea:focus {
    outline: none;
    border-color: var(--brandit-primary);
    box-shadow: 0 0 0 3px rgba(66, 8, 204, 0.1);
}

/* Generate Button */
.brandit-generate-btn,
.brandit-prompt-generate-btn {
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0;
    display: block;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    min-height: 56px;
}

.brandit-generate-btn:disabled,
.brandit-prompt-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Intelligence Notice */
.brandit-intelligence-notice {
    background: linear-gradient(135deg, rgba(66, 8, 204, 0.05), rgba(212, 2, 83, 0.05));
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid var(--brandit-primary);
}

.brandit-intelligence-icon {
    font-size: 28px;
}

.brandit-intelligence-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Color Picker */
.brandit-color-picker-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.brandit-color-input-wrapper {
    flex: 1;
    min-width: 120px;
}

.brandit-color-input {
    width: 100%;
    height: 52px;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    cursor: pointer;
}

.brandit-color-hex-input {
    width: 100%;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 14px;
    font-family: monospace;
    margin-top: 8px;
}

/* ====================================================== */
/* ========== BUSINESS PROFILES GRID LAYOUT ============ */
/* ====================================================== */

/* Desktop Grid View for Business Profiles */
@media (min-width: 769px) {
    .brandit-profiles-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* For larger screens, use 3 columns */
    @media (min-width: 1200px) {
        .brandit-profiles-grid {
            grid-template-columns: repeat(3, 1fr) !important;
        }
    }
}

/* Profile Card Styling */
.brandit-profile-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.brandit-profile-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--brandit-primary);
    transform: translateY(-2px);
}

/* Profile Card Header */
.brandit-profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.brandit-profile-card h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* Default Badge */
.brandit-profile-default-badge {
    background: var(--brandit-success);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: 10px;
    display: inline-block;
}

/* Profile Card Content */
.brandit-profile-card-content {
    flex: 1;
    margin-bottom: 16px;
}

.brandit-profile-card p {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.brandit-profile-card-details {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.brandit-profile-card-details div {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brandit-profile-card-details a {
    color: var(--brandit-primary);
    text-decoration: none;
}

.brandit-profile-card-details a:hover {
    text-decoration: underline;
}

/* Color Swatches in Profile Card */
.brandit-profile-colors {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.brandit-profile-color-swatch {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* Profile Card Actions - Edit and Delete Buttons */
.brandit-profile-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.brandit-profile-edit-btn {
    flex: 1;
    background: var(--brand-gradient) !important;
    color: white !important;
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.brandit-profile-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand) !important;
}

.brandit-profile-delete-btn {
    flex: 1;
    background: var(--close-gradient) !important;
    color: white !important;
    border: none;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.brandit-profile-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-delete) !important;
}

/* ====================================================== */
/* ========== MANAGEMENT MODAL PROFILE LIST ============ */
/* ====================================================== */

.manage-profile-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.manage-profile-item:hover {
    background: var(--bg-soft);
}

.manage-profile-info {
    flex: 1;
}

.manage-profile-info strong {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--text-main);
}

.manage-profile-info .profile-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.manage-profile-colors {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.manage-profile-color-dot {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.manage-profile-actions {
    display: flex;
    gap: 8px;
}

.manage-profile-edit-btn {
    background: var(--brand-gradient) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.manage-profile-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand) !important;
}

.manage-profile-delete-btn {
    background: var(--close-gradient) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.manage-profile-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-delete) !important;
}

/* ====================================================== */
/* ========== BUSINESS PROFILES PAGE STYLES ============= */
/* ====================================================== */

.brandit-profile-page .brandit-profile-container {
    max-width: 800px;
    margin: 0 auto;
}

#manage-profiles-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.edit-profile-page-btn {
    background: none;
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.edit-profile-page-btn:hover {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
}

#business-profile-select {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
    background: var(--bg-main);
}

/* ====================================================== */
/* ========== BUSINESS PROFILE MODAL 2-COLUMN LAYOUT === */
/* ====================================================== */

#business-profile-form-modal .brandit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#business-profile-form-modal .brandit-form-group.full-width {
    grid-column: span 2;
}

#business-profile-form-modal .brandit-form-group {
    margin-bottom: 0;
}

/* ====================================================== */
/* ========== PROFILE SECTION ========================== */
/* ====================================================== */

.brandit-profile-page .brandit-profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 40px;
}

.brandit-profile-page .brandit-profile-avatar-large {
    width: 120px;
    height: 120px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    margin: 0 auto;
}

.brandit-profile-page .brandit-profile-fullname {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    text-align: center;
}

.brandit-profile-page .brandit-profile-info-large {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    text-align: left;
}

.brandit-profile-page .info-group {
    margin-bottom: 24px;
}

.brandit-profile-page .info-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}

.brandit-profile-page .info-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
    background: var(--bg-soft);
}

.brandit-profile-page .info-group input:disabled {
    background: var(--bg-soft);
    color: var(--text-muted);
}

.brandit-profile-page .brandit-password-section {
    margin-top: 32px;
}

.brandit-profile-page .brandit-password-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-main);
    text-align: center;
}

.brandit-profile-page .brandit-password-form {
    max-width: 450px;
    margin: 0 auto;
}

.brandit-profile-page .brandit-password-form .info-group {
    margin-bottom: 24px;
}

.brandit-profile-page .brandit-password-form .info-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
}

.brandit-profile-page .brandit-password-form .info-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
}

.brandit-profile-page .brandit-generate-btn {
    max-width: 300px;
    margin: 20px auto 0;
    display: block;
}

/* ====================================================== */
/* ========== ENHANCED INVOICE FORM STYLES ============= */
/* ====================================================== */

.brandit-invoice-section {
    margin-bottom: 28px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    border: 1px solid var(--border-light);
}

.brandit-invoice-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-main);
}

.brandit-invoice-type-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.brandit-business-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.brandit-business-details-grid .full-width {
    grid-column: span 2;
}

.brandit-logo-prompt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.brandit-logo-prompt label {
    font-weight: 600;
    margin: 0;
}

.brandit-create-logo-link {
    font-size: 13px;
}

.brandit-create-logo-link a {
    color: var(--brandit-primary);
    text-decoration: none;
    font-weight: 500;
}

.brandit-create-logo-link a:hover {
    text-decoration: underline;
}

.brandit-invoice-number-field {
    margin-top: 8px;
}

.brandit-invoice-number-input input {
    width: 100%;
    max-width: 250px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
}

.brandit-products-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 12px;
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--border-soft);
    margin-bottom: 12px;
}

.brandit-invoice-item-row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    background: white;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.brandit-invoice-item-row input {
    padding: 12px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-xs);
    font-size: 14px;
    height: 48px;
    width: 100%;
}

.item-total {
    font-weight: 600;
    color: var(--brandit-primary);
    text-align: right;
    display: block;
}

.mobile-product-field label {
    display: none;
}

.brandit-remove-item {
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: var(--transition);
}

.brandit-remove-item:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #ff0000, #990000);
}

.brandit-add-item-btn {
    color: rgb(5, 5, 5);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 16px;
    font-weight: 600;
    transition: var(--transition);
    min-height: 44px;
}

.brandit-add-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

.brandit-section-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.brandit-vat-wrapper {
    background: var(--bg-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.brandit-vat-header h4 {
    margin: 0 0 16px 0;
}

.brandit-vat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.brandit-vat-input-wrapper input {
    width: 120px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-soft);
    height: 48px;
    font-size: 16px;
}

.brandit-vat-percent-symbol {
    font-size: 18px;
    font-weight: 600;
}

.brandit-vat-note {
    font-size: 12px;
    color: var(--text-muted);
    margin: 8px 0 0;
}

.brandit-summary-wrapper {
    background: var(--bg-soft);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.brandit-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.brandit-summary-row.grand-total {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px solid var(--border-soft);
    border-bottom: none;
    padding-top: 16px;
    margin-top: 8px;
    color: var(--brandit-primary);
}

/* ====================================================== */
/* ========== HISTORY SECTION ========================== */
/* ====================================================== */

.brandit-history-header {
    margin-bottom: 32px;
}

.brandit-history-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}

.brandit-history-header p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
}

.brandit-history-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-soft);
    overflow-x: auto;
    padding-bottom: 4px;
}

.brandit-history-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.brandit-history-tab:hover {
    color: var(--brandit-primary);
}

.brandit-history-tab.active {
    color: var(--brandit-primary);
    font-weight: 600;
}

.brandit-history-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-gradient);
}

.brandit-tab-count {
    background: rgba(66, 8, 204, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brandit-primary);
}

.brandit-history-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.brandit-search-bar {
    flex: 1;
    position: relative;
}

.brandit-search-bar input {
    width: 100%;
    padding: 14px 16px 14px 42px;
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-main);
    height: 52px;
}

.brandit-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.brandit-assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.brandit-asset-card {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.brandit-asset-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brandit-primary);
}

.brandit-asset-preview {
    aspect-ratio: 1;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brandit-asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 200px;
    max-height: 200px;
}

.brandit-asset-info {
    padding: 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brandit-asset-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.brandit-asset-details {
    flex: 1;
    min-width: 0;
}

.brandit-asset-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brandit-asset-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* Empty State */
.brandit-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-main);
    border-radius: var(--radius-lg);
}

.brandit-empty-state-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.brandit-empty-state h3 {
    font-size: 24px;
    margin: 0 0 12px;
    color: var(--text-main);
}

.brandit-empty-state p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 16px;
}

.brandit-empty-state-btn {
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    min-height: 48px;
}

/* ====================================================== */
/* ========== CREDITS PAGE ============================= */
/* ====================================================== */

.brandit-credits-page {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.brandit-credits-balance {
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    color: white;
    margin-bottom: 48px;
}

.brandit-credits-balance h3 {
    font-size: 20px;
    margin: 0 0 12px;
    opacity: 0.9;
    color: white !important;
}

.brandit-credits-balance .balance-amount {
    font-size: 64px;
    font-weight: 800;
    margin: 0;
}

.brandit-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 28px;
}

@media (min-width: 1200px) {
    .brandit-packages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1199px) and (min-width: 769px) {
    .brandit-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .brandit-packages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.brandit-package-card {
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.brandit-package-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brandit-primary);
}

.brandit-package-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.brandit-package-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--text-main);
}

.brandit-package-credits {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.brandit-package-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--brandit-primary);
    margin-bottom: 24px;
}

.brandit-purchase-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    min-height: 48px;
}

/* ====================================================== */
/* ========== FLEXIBLE PACKAGE CARD STYLES ============= */
/* ====================================================== */

.brandit-package-card:has(#flexible-package-trigger),
.brandit-package-card:has(#flexible-package-page-trigger) {
    border: 2px solid var(--brandit-primary);
    position: relative;
    overflow: hidden;
}

.brandit-package-card:has(#flexible-package-trigger)::after,
.brandit-package-card:has(#flexible-package-page-trigger)::after {
    content: '🎯';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    opacity: 0.3;
}

#flexible-package-trigger,
#flexible-package-page-trigger {
    background: var(--brand-gradient) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

#flexible-package-trigger::before,
#flexible-package-page-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

#flexible-package-trigger:hover::before,
#flexible-package-page-trigger:hover::before {
    left: 100%;
}

/* ====================================================== */
/* ========== FLEXIBLE PACKAGE MODAL STYLES ============ */
/* ====================================================== */

#brandit-flexible-modal .brandit-logo-modal-content {
    animation: modalFadeInScale 0.3s ease-out;
    max-width: 500px;
    width: 95%;
}

@keyframes modalFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#flexible-currency,
#flexible-amount {
    transition: all 0.3s ease;
    font-size: 16px;
}

#flexible-currency:focus,
#flexible-amount:focus {
    border-color: var(--brandit-primary);
    box-shadow: 0 0 0 3px rgba(66, 8, 204, 0.1);
    outline: none;
}

#currency-symbol {
    font-weight: 600;
    color: var(--brandit-primary);
    pointer-events: none;
}

#flexible-validation-message {
    animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#flexible-credits-display {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====================================================== */
/* ========== MODAL STYLES ============================= */
/* ====================================================== */

.brandit-logo-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.brandit-logo-modal.active {
    display: flex;
}

.brandit-logo-modal-content {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    position: relative;
    overflow-y: auto;
    pointer-events: auto;
}

/* Auth modal width refinement */
#brandit-login-modal .brandit-logo-modal-content,
#brandit-signup-modal .brandit-logo-modal-content,
#brandit-forgot-password-modal .brandit-logo-modal-content,
#brandit-verify-code-modal .brandit-logo-modal-content,
#brandit-reset-password-modal .brandit-logo-modal-content,
#brandit-verify-email-modal .brandit-logo-modal-content,
#manage-profiles-modal .brandit-logo-modal-content {
    max-width: 380px !important;
}

/* Business Profile Modal - Wider for 2-column layout */
#business-profile-form-modal .brandit-logo-modal-content {
    max-width: 600px !important;
}

.brandit-logo-modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-soft);
    min-height: 300px;
}

.brandit-logo-modal-image-container img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.brandit-logo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.brandit-logo-modal-close:hover {
    background: var(--brandit-error);
    transform: scale(1.1);
}

.brandit-modal-actions {
    display: flex;
    gap: 16px;
    padding: 28px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.brandit-modal-download {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    flex: 1;
    min-height: 48px;
}

.brandit-modal-close-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    min-height: 48px;
}

.brandit-invoice-preview-actions {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.brandit-invoice-preview-actions button {
    min-width: 140px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.brandit-invoice-preview-actions button:first-child {
    color: white;
    border: none;
}

.brandit-invoice-preview-actions button:last-child {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    color: var(--text-main);
}

.brandit-invoice-preview-actions button:last-child:hover {
    background: rgba(66, 8, 204, 0.05);
    border-color: var(--brandit-primary);
}

/* Auth Forms (Compact styling) */
.brandit-auth-form {
    padding: 32px;
}

.brandit-auth-form h3 {
    margin: 0 0 24px;
    text-align: center;
    color: var(--text-main);
    font-size: 24px;
}

.brandit-auth-form p {
    font-size: 13px;
}

.brandit-auth-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--brandit-error);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.brandit-auth-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--brandit-success);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.brandit-auth-loading {
    background: rgba(66, 8, 204, 0.1);
    color: var(--brandit-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
}

.brandit-forgot-password-link {
    text-align: center;
    margin-top: 12px;
}

.brandit-forgot-password-link a {
    color: var(--brandit-primary);
    text-decoration: none;
    font-size: 13px;
}

.brandit-forgot-password-link a:hover {
    text-decoration: underline;
}

.brandit-auth-terms {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.brandit-auth-terms a {
    color: var(--brandit-primary);
    text-decoration: none;
}

/* ====================================================== */
/* ========== LOADING STATES =========================== */
/* ====================================================== */

.brandit-loading {
    text-align: center;
    padding: 48px;
}

.brandit-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(66, 8, 204, 0.2);
    border-top-color: var(--brandit-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.brandit-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(66, 8, 204, 0.2);
    border-top-color: var(--brandit-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

.brandit-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(66, 8, 204, 0.2);
    border-top-color: var(--brandit-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.brandit-progress-container {
    background: rgba(66, 8, 204, 0.1);
    border-radius: 20px;
    height: 6px;
    margin-top: 20px;
    overflow: hidden;
}

.brandit-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.brandit-loading-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

.brandit-credit-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--success-gradient);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    max-width: 360px;
}

.brandit-credit-toast.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ====================================================== */
/* ========== PROMPT MODE STYLES ======================= */
/* ====================================================== */

.brandit-prompt-mode {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border-light);
}

.brandit-prompt-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    border-radius: 16px;
    border: 1.5px solid var(--border-soft);
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 0;
}

#brandit-prompt-file-list {
    display: flex !important;
}

.brandit-prompt-file-list .brandit-image-preview {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.brandit-prompt-file-list .brandit-image-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.brandit-prompt-file-list .brandit-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--brandit-primary);
    display: block;
}

.brandit-prompt-file-list .brandit-remove-prompt-file {
    position: absolute;
    top: -8px;
    right: -8px;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.brandit-prompt-file-list .brandit-remove-prompt-file:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #ff0000, #990000);
}

.brandit-prompt-file-list .brandit-empty-preview {
    color: #999;
    font-size: 13px;
    padding: 16px;
    text-align: center;
    width: 100%;
}

/* ====================================================== */
/* ========== LOGO RESULTS STYLES ====================== */
/* ====================================================== */

.brandit-logo-header {
    margin: 32px 0 24px;
    text-align: center;
}

.brandit-logo-header h3 {
    font-size: 26px;
    margin-bottom: 8px;
}

.brandit-logo-item {
    background: var(--bg-main);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 20px;
}

.brandit-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brandit-primary);
}

.brandit-logo-preview {
    width: 100px;
    height: 100px;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.brandit-logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brandit-logo-name {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--text-main);
}

.brandit-logo-select {
    background: var(--brand-gradient);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.brandit-quality-notice {
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    margin-top: 24px;
    text-align: center;
    border-left: 3px solid var(--brandit-success);
}

/* Edit Prompt Button */
.brandit-edit-prompt-btn {
    background: transparent;
    border: 1px solid var(--brandit-primary);
    color: var(--brandit-primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 8px;
    transition: var(--transition);
    display: inline-block;
}

.brandit-edit-prompt-btn:hover {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
}

.brandit-logo-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* ====================================================== */
/* ========== INVOICE PREVIEW STYLES =================== */
/* ====================================================== */

.brandit-invoice-preview-container {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.brandit-invoice-preview-container .invoice-preview {
    font-family: inherit;
    background: white;
    padding: 30px;
    border-radius: var(--radius-md);
}

.brandit-invoice-preview-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.brandit-invoice-preview-container th,
.brandit-invoice-preview-container td {
    border: 1px solid #ddd;
    padding: 10px;
}

.brandit-invoice-preview-container th {
    background: var(--brand-gradient) !important;
    color: white !important;
    font-weight: 600 !important;
}

.brandit-invoice-preview-container .bill-to-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

/* ====================================================== */
/* ========== MOBILE MENU & SIDEBAR ==================== */
/* ====================================================== */

.brandit-mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: var(--brand-gradient);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    align-items: center;
    justify-content: center;
}

.brandit-mobile-menu-toggle.open {
    background: var(--brand-gradient);
}

.brandit-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.brandit-sidebar-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ====================================================== */
/* ========== RESPONSIVE DESIGN ========================= */
/* ====================================================== */

@media (min-width: 1025px) {
    .brandit-guest-cards-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 28px;
    }
    
    .brandit-guest-card {
        flex: 1 1 calc(25% - 28px);
        max-width: 280px;
    }
    
    .brandit-mobile-menu-toggle {
        display: none !important;
    }
    
    .brandit-dashboard-cards {
        display: flex !important;
        flex-wrap: wrap !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .brandit-guest-cards-wrapper {
        margin-top: -40px;
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .brandit-guest-cards-grid {
        flex-wrap: wrap !important;
        gap: 20px;
    }
    
    .brandit-guest-card {
        flex: 1 1 calc(50% - 20px) !important;
        min-width: 240px;
        max-width: calc(50% - 20px);
    }
    
    .brandit-dashboard-cards {
        gap: 20px !important;
    }
    
    .brandit-dashboard-card {
        flex: 1 1 calc(50% - 20px) !important;
        max-width: calc(50% - 20px) !important;
    }
    
    .brandit-guest-hero {
        padding: 60px 20px 100px;
    }
    
    .brandit-guest-hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .brandit-guest-hero-left p {
        margin: 0 auto;
    }
    
    .brandit-guest-hero-left h1 {
        font-size: 36px;
    }
    
    .brandit-guest-promo-card {
        flex-direction: column;
    }
    
    .brandit-guest-promo-right {
        padding: 40px;
        text-align: center;
    }
    
    .brandit-mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .brandit-sidebar {
        transform: translateX(-100%);
    }
    
    .brandit-sidebar.open {
        transform: translateX(0);
    }
    
    .brandit-main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .brandit-top-navbar {
        padding: 0 16px;
        justify-content: flex-end;
    }
    
    .brandit-current-tab {
        display: none;
    }
    
    .brandit-content-container {
        padding: 80px 16px 16px !important;
    }
}

@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="search"],
    select,
    textarea {
        border-radius: 10px !important;
    }
    
    .brandit-file-upload,
    .upload-box {
        border-radius: 14px !important;
    }
    
    .brandit-form-title {
        display: block;
        font-size: 20px;
        font-weight: 600;
        color: #000000;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .brandit-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .brandit-content-container {
        padding: 16px !important;
    }
    
    .brandit-top-navbar {
        height: 60px;
        padding: 0 12px;
    }
    
    .brandit-mode-toggle {
        width: 100%;
        justify-content: center;
        gap: 8px;
        padding: 4px;
    }
    
    .brandit-mode-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 40px;
        flex: 1;
        text-align: center;
    }
    
    .brandit-mode-btn.active {
        border: 2px solid #4208cc !important;
        outline: 4px solid rgba(66, 8, 204, 0.4) !important;
        outline-offset: 2px !important;
        box-shadow: 0 4px 15px rgba(66, 8, 204, 0.5) !important;
    }
    
    .brandit-sidebar {
        width: 260px;
    }
    
    .brandit-sidebar-icon {
        width: 18px;
        height: 18px;
    }
    
    .brandit-nav-item {
        padding: 10px 14px;
        gap: 10px;
        min-height: 44px;
    }
    
    .brandit-nav-item .nav-text {
        font-size: 14px;
    }
    
    .brandit-sidebar-logout-btn {
        padding: 10px 14px;
        font-size: 14px;
        gap: 10px;
        min-height: 44px;
    }
    
    .brandit-sidebar-logout-btn .brandit-sidebar-icon {
        width: 18px;
        height: 18px;
    }
    
    .brandit-sidebar-nav {
        padding: 16px 12px;
        gap: 4px;
    }
    
    .brandit-sidebar-header {
        padding: 16px;
    }
    
    .brandit-sidebar-header .brandit-header-logo {
        max-width: 140px;
    }
    
    .brandit-sidebar-footer {
        padding: 16px;
    }
    
    .brandit-guest-hero {
        padding: 40px 16px 80px;
        text-align: center;
    }
    
    .brandit-guest-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    
    .brandit-guest-hero-left {
        text-align: center;
        width: 100%;
    }
    
    .brandit-guest-hero-left h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .brandit-guest-hero-left p {
        font-size: 14px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .brandit-guest-hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .brandit-guest-hero-robot {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .brandit-hero-robot-img {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .brandit-guest-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
    }
    
    .brandit-guest-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .brandit-dashboard-cards {
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .brandit-dashboard-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    
    .brandit-guest-cards-wrapper {
        margin-top: -30px;
        padding: 0 16px;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .brandit-dashboard-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .brandit-banner-cta {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .brandit-banner-cta button,
    #setup-business-profile-btn {
        width: 100%;
    }
    
    .brandit-dashboard-banner-content {
        margin-bottom: 20px;
    }
    
    .brandit-dashboard-banner-content h2 {
        font-size: 20px;
    }
    
    .brandit-dashboard-robot img {
        max-width: 120px;
        margin: 0 auto;
    }
    
    .brandit-current-tab-icon-img {
        width: 22px;
        height: 22px;
    }
    
    .brandit-top-navbar {
        padding: 0 16px;
        justify-content: flex-end;
    }
    
    .brandit-current-tab {
        display: none;
    }
    
    .brandit-content-container {
        padding: 60px 16px 16px !important;
    }
    
    .brandit-credit-display {
        padding: 6px 12px;
    }
    
    .brandit-credit-amount {
        font-size: 13px;
    }
    
    .brandit-add-credits-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-height: 36px;
    }
    
    .brandit-user-avatar {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .brandit-form-container,
    .brandit-business-card-form,
    .brandit-invoice-form {
        padding: 20px;
    }
    
    .flyer-form-container {
        padding: 20px;
    }
    
    .brandit-form-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .brandit-form-group.full-width {
        grid-column: span 1;
    }
    
    .brandit-event-fields-container {
        grid-column: span 1;
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .photo-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .photo-delete-col {
        text-align: right;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .brandit-generate-btn,
    .brandit-prompt-generate-btn,
    .brandit-guest-card-btn,
    .brandit-card-btn,
    .brandit-purchase-btn,
    .brandit-empty-state-btn,
    .brandit-modal-download,
    .brandit-modal-close-btn,
    .btn-create-designs {
        min-height: 48px;
    }
    
    .brandit-guest-promo {
        padding: 40px 16px;
    }
    
    .brandit-guest-promo-right {
        padding: 32px 24px;
        text-align: center;
    }
    
    .brandit-guest-promo-right h2 {
        font-size: 24px;
    }
    
    .brandit-guest-promo-right p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .brandit-guest-promo-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .brandit-guest-promo-signup,
    .brandit-guest-promo-login {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .brandit-guest-promo-success {
        left: 15px;
        right: 15px;
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .brandit-guest-promo-success .success-text span {
        font-size: 11px;
    }
    
    .brandit-guest-header-container {
        height: 70px;
        padding: 0 16px;
    }
    
    .brandit-guest-logo img {
        height: 40px;
    }
    
    .brandit-guest-nav-buttons {
        gap: 12px;
    }
    
    .brandit-guest-login-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .brandit-guest-signup-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 40px;
    }
    
    .brandit-upload-preview-grid,
    .brandit-partner-logos-preview,
    .brandit-prompt-file-list,
    .upload-preview-grid {
        padding: 12px;
        gap: 12px;
    }
    
    .brandit-image-preview img {
        width: 70px;
        height: 70px;
    }
    
    .brandit-logo-modal-image-container img {
        max-height: 300px;
    }
    
    .brandit-modal-actions {
        flex-direction: column;
    }
    
    .brandit-modal-download,
    .brandit-modal-close-btn {
        min-width: 100%;
    }
    
    .brandit-assets-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brandit-history-tabs {
        gap: 4px;
    }
    
    .brandit-history-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    #bulk-delete-actions > div {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brandit-products-header {
        display: none;
    }
    
    .brandit-invoice-item-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        position: relative;
    }
    
    .mobile-product-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    .mobile-product-field label {
        display: block;
        font-size: 12px;
        font-weight: 500;
        color: var(--text-muted);
    }
    
    .brandit-invoice-item-row .brandit-remove-item {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .item-total {
        text-align: left;
    }
    
    .brandit-section-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .brandit-invoice-type-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .brandit-business-details-grid {
        grid-template-columns: 1fr;
    }
    
    .brandit-business-details-grid .full-width {
        grid-column: span 1;
    }
    
    .brandit-color-picker-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .brandit-color-input-wrapper {
        width: 100%;
    }
    
    .brandit-logo-item {
        flex-direction: column;
        text-align: center;
    }
    
    .brandit-logo-preview {
        margin: 0 auto;
    }
    
    .brandit-prompt-mode {
        padding: 20px;
    }
    
    .brandit-prompt-file-list {
        padding: 12px;
        gap: 12px;
    }
    
    .brandit-prompt-file-list .brandit-image-preview img {
        width: 70px;
        height: 70px;
    }
    
    .brandit-prompt-file-list .brandit-remove-prompt-file {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: -6px;
        right: -6px;
    }
    
    .brandit-mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .brandit-sidebar {
        transform: translateX(-100%);
    }
    
    .brandit-sidebar.open {
        transform: translateX(0);
    }
    
    .brandit-main-content {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    #brandit-flexible-modal .brandit-logo-modal-content {
        max-width: 95%;
        margin: 20px;
        padding: 20px;
    }
    
    #flexible-amount {
        font-size: 16px;
        padding: 14px 14px 14px 55px;
    }
    
    #currency-symbol {
        left: 14px;
        font-size: 14px;
    }
    
    #flexible-credits-display {
        font-size: 28px;
    }
    
    .brandit-credits-balance {
        padding: 15px !important;
    }
    
    .brandit-profiles-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    
    .brandit-profile-card-actions {
        flex-direction: row;
    }
    
    .manage-profile-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .brandit-profile-dropdown-menu {
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .brandit-mode-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .brandit-mode-toggle {
        gap: 6px;
    }
    
    .brandit-sidebar-icon {
        width: 16px;
        height: 16px;
    }
    
    .brandit-sidebar-logout-btn .brandit-sidebar-icon {
        width: 16px;
        height: 16px;
    }
    
    .brandit-nav-item {
        padding: 8px 12px;
        min-height: 40px;
    }
    
    .brandit-sidebar {
        width: 240px;
    }
    
    .brandit-credits-balance .balance-amount {
        font-size: 40px;
    }
    
    .brandit-packages-grid {
        gap: 16px;
    }
    
    .brandit-guest-hero-left h1 {
        font-size: 24px;
    }
    
    .brandit-guest-card {
        padding: 20px 16px;
    }
    
    .brandit-guest-card h3 {
        font-size: 18px;
    }
    
    .brandit-dashboard-card {
        padding: 24px 16px;
    }
    
    .brandit-dashboard-card h3 {
        font-size: 18px;
    }
    
    .brandit-auth-form {
        padding: 24px;
    }
    
    .brandit-auth-form h3 {
        font-size: 22px;
    }
    
    #flexible-credits-display {
        font-size: 24px;
    }
    
    .brandit-credits-balance h3 {
        font-size: 16px;
    }
}

/* ====================================================== */
/* ========== PREVENT HORIZONTAL SCROLLING ============= */
/* ====================================================== */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

.brandit-guest-view,
.brandit-logged-in-wrapper,
.brandit-main-layout {
    max-width: 100%;
    overflow-x: hidden;
}

/* ====================================================== */
/* ========== DRAFT MODE STYLES ======================== */
/* ====================================================== */

.brandit-draft-mode-toggle {
    background: rgba(245, 158, 11, 0.1);
    padding: 15px;
    border-radius: var(--radius-sm);
    border-left: 3px solid #f59e0b;
}

.brandit-draft-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.brandit-draft-badge {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* ====================================================== */
/* ========== HISTORY INVOICE PREVIEW CARD ============= */
/* ====================================================== */

.brandit-asset-card.invoice-card .brandit-asset-preview {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brandit-asset-card.invoice-card .brandit-asset-preview .invoice-preview-icon {
    font-size: 48px;
    text-align: center;
}

.brandit-asset-card.invoice-card .brandit-asset-preview .invoice-preview-icon span {
    font-size: 14px;
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
}

/* ====================================================== */
/* ========== DARK MODE SUPPORT ========================= */
/* ====================================================== */

@media (prefers-color-scheme: dark) {
    .brandit-mode-btn.active {
        outline-color: rgba(66, 8, 204, 0.5) !important;
    }
    
    .brandit-mode-btn:focus-visible {
        outline-color: #4208cc !important;
    }
}

/* ====================================================== */
/* ========== HIGH CONTRAST MODE SUPPORT ================ */
/* ====================================================== */

@media (prefers-contrast: high) {
    .brandit-mode-btn.active {
        outline: 4px solid #4208cc !important;
        outline-offset: 3px !important;
        border: 2px solid white !important;
    }
    
    .brandit-mode-btn:focus-visible {
        outline: 4px solid #000000 !important;
        outline-offset: 3px !important;
    }
}

/* ====================================================== */
/* ========== FOREGROUND PREVIEW STYLES ================ */
/* ====================================================== */

#brandit-flyer-foreground-preview {
    margin-top: 12px;
}

#brandit-flyer-foreground-preview .brandit-image-preview {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

#brandit-flyer-foreground-preview .brandit-image-preview:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#brandit-flyer-foreground-preview .brandit-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--brandit-primary);
    display: block;
}

/* ====================================================== */
/* ========== PRINT STYLES FOR INVOICE ================= */
/* ====================================================== */

@media print {
    .brandit-logo-modal-close,
    .brandit-invoice-preview-actions,
    .brandit-modal-actions {
        display: none !important;
    }
    
    .brandit-logo-modal {
        position: static;
        background: white;
        backdrop-filter: none;
        padding: 0;
    }
    
    .brandit-logo-modal-content {
        box-shadow: none;
        max-width: 100%;
    }
    
    .invoice-preview {
        padding: 0;
    }
}
/* ====================================================== */
/* ========== PROMPT MODE LOGO PREVIEW STYLES ========== */
/* ====================================================== */

.brandit-prompt-logo-preview {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.brandit-prompt-logo-preview label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

#prompt-logo-preview-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

#prompt-logo-preview-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 2px solid var(--brandit-primary);
    background: white;
    padding: 4px;
}

#prompt-logo-preview-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

#prompt-logo-preview-content strong {
    color: var(--brandit-primary);
    font-weight: 600;
}

/* Flyer logo preview with business profile indicator */
#brandit-flyer-logo-preview .brandit-image-preview[data-source="business-profile"] {
    position: relative;
    padding-bottom: 8px;
}

#brandit-flyer-logo-preview .brandit-image-preview[data-source="business-profile"] span {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: var(--brandit-primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Invoice logo preview with business profile indicator */
#brandit-invoice-logo-preview .brandit-image-preview[data-source="business-profile"] {
    position: relative;
    padding-bottom: 8px;
}

#brandit-invoice-logo-preview .brandit-image-preview[data-source="business-profile"] span {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 11px;
    color: var(--brandit-primary);
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile responsive for prompt logo preview */
@media (max-width: 768px) {
    #prompt-logo-preview-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #prompt-logo-preview-img {
        width: 60px;
        height: 60px;
    }
}