/* ============================================
   Welcome Page Styles - Extracted from Inline
   ============================================ */

:root {
    /* Premium Color Palette - Deep Navy & Electric Blue */
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --primary-light: #E0F2FE;
    --primary-glow: rgba(14, 165, 233, 0.4);
    --secondary: #10B981;
    --secondary-dark: #059669;
    --secondary-glow: rgba(16, 185, 129, 0.3);
    --accent: #6366F1;
    --navy: #0F172A;
    --navy-light: #1E293B;
    --navy-lighter: #334155;
    --dark: #0F172A;
    --light: #F9FAFB;
    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #6366F1 100%);
    --gradient-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --gradient-glow: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15), transparent 50%);
    --invoice-primary: #1f2937;
    --invoice-secondary: #4b5563;
    --paper-bg: #ffffff;
    --input-hover: #f9fafb;
    --input-focus: #eff6ff;
    --border-color: #e2e8f0;
    --border-color: #e5e7eb;
    
    /* Modern Soft Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 32px var(--primary-glow);
}

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Cairo:wght@400;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:lang(ar) {
    font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

:lang(en), body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--gray-800);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Hero Section - Premium Modern Design */
.hero {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, #ffffff 0%, var(--light) 100%);
    min-height: auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-layout.no-image {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    max-width: 1000px;
}

.hero-text {
    text-align: left;
}

.hero-layout.no-image .hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.75rem;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 32px;
    line-height: 1.8;
    font-weight: 500;
}

.hero-layout.no-image .hero-text p {
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    border: 1px solid var(--gray-200);
}

.hero-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Invoice Paper - Premium Glassmorphism Design */
.invoice-paper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* A4 Dimensions: 210mm x 297mm */
    width: 210mm;
    min-height: 297mm;
    padding: 20mm;
    margin: 0 auto;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    color: #1a202c;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border-radius: 20px;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Ensure container allows centering - Modern Dark Background */
.editor-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.editor-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
}

.brand-section {
    flex: 1;
}

.logo-upload-area {
    width: 200px;
    height: 80px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.logo-upload-area:hover {
    border-color: #a0aec0;
    background: #f7fafc;
}

.logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.meta-section {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.invoice-title,
.invoice-title-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--invoice-primary);
    letter-spacing: -0.025em;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Editable Inputs */
.editable-input,
.editable-textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    transition: all 0.2s;
    font-family: inherit;
    color: inherit;
    font-size: 0.9rem;
}

.editable-input:hover,
.editable-textarea:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    cursor: text;
}

.editable-input:focus,
.editable-textarea:focus {
    background: white;
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.editable-input::placeholder,
.editable-textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
}

/* Client Grid */
.client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.client-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Items Table */
.items-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.items-table th {
    text-align: left;
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    border-bottom: 2px solid var(--invoice-primary);
}

.items-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid #edf2f7;
    vertical-align: top;
}

.items-table td:last-child {
    text-align: right;
    padding-right: 0.5rem;
}

.remove-row-btn {
    opacity: 0;
    transition: opacity 0.2s;
    color: #e53e3e;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.25rem;
    margin-left: 0.5rem;
}

.items-table tr:hover .remove-row-btn {
    opacity: 1;
}

.add-item-btn {
    background: transparent;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    color: #718096;
    width: 100%;
    padding: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.add-item-btn:hover {
    border-color: #a0aec0;
    color: #4a5568;
    background: #f7fafc;
}

/* Totals Section */
.totals-section-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.totals-grid {
    width: 300px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.total-row.final {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--invoice-primary);
    margin-top: 0.5rem;
    padding-top: 1rem;
    color: var(--invoice-primary);
}

/* Invoice Footer */
.invoice-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.signature-area {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    position: relative;
}

.signature-upload-label {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #cbd5e0;
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
}

.signature-preview {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.trust-section {
    padding: 120px 0;
    background: #ffffff;
}

.section-title {
    font-size: 1.875rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--gray-900);
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Bento Grid Layout - Modern Asymmetric Design */
.features-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    text-align: left;
}

.features-grid .feature-card:nth-child(1) {
    grid-column: span 3;
    grid-row: span 2;
}

.features-grid .feature-card:nth-child(2) {
    grid-column: span 3;
}

.features-grid .feature-card:nth-child(3) {
    grid-column: span 3;
}

.features-grid .feature-card:nth-child(4) {
    grid-column: span 2;
}

.features-grid .feature-card:nth-child(5) {
    grid-column: span 2;
}

.features-grid .feature-card:nth-child(6) {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid .feature-card:nth-child(1),
    .features-grid .feature-card:nth-child(2),
    .features-grid .feature-card:nth-child(3),
    .features-grid .feature-card:nth-child(4),
    .features-grid .feature-card:nth-child(5),
    .features-grid .feature-card:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Glassmorphism Icons */
.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(14, 165, 233, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    color: var(--primary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15);
    transition: all 0.4s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 48px rgba(14, 165, 233, 0.25);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.feature-text {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: none;
    z-index: 10;
}

.pricing-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.plan-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-top: -12px;
}

.plan-period {
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.plan-desc {
    color: var(--gray-500);
    margin-bottom: 32px;
    min-height: 48px;
}

.plan-features {
    text-align: left;
    margin-bottom: 32px;
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-800);
}

.feature-check {
    color: var(--secondary);
    font-weight: 800;
}

.feature-check.disabled {
    color: var(--gray-200);
}

.feature-item.disabled {
    color: var(--gray-500);
    text-decoration: line-through;
}

/* Conversion/CTA Section - Premium Dark with Glow */
.conversion-section {
    background: var(--gradient-dark);
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.conversion-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.conversion-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.02"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.conversion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
}

.conversion-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
    letter-spacing: -0.03em;
}

.conversion-section p {
    font-size: 1.2rem;
    color: var(--gray-300);
    margin-bottom: 40px;
    line-height: 1.7;
}

.check-list {
    list-style: none;
    margin: 32px 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--gray-100);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--secondary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 0 20px var(--secondary-glow), var(--shadow-md);
    font-size: 14px;
    flex-shrink: 0;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.comparison-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.comparison-card h3 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.comparison-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row span:first-child {
    color: var(--gray-400);
    font-weight: 500;
}

.comparison-row span:last-child {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}

/* Action Bar */
.action-bar {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Hero Trust Badge */
.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-top: 12px;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    .hero-layout,
    .conversion-grid {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        gap: 40px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .invoice-paper {
        margin: 0 -10px;
        transform: none;
        width: 100%;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .conversion-grid {
        gap: 40px;
    }

    .conversion-section h2 {
        font-size: 2.25rem;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    /* Detailed Features Split Layout Responsive */
    section[style*="grid-template-columns: 1fr 1fr"] > div {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
}

/* ============================================
   Invoice Tabs Styles (Dashboard Match)
   ============================================ */

.invoice-tabs-container {
    max-width: 1000px;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
    text-align: center;
}

.invoice-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.5rem;
    background: #e2e8f0;
    border-radius: 999px;
}

.invoice-tab {
    background: transparent;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.invoice-tab:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.5);
}

.invoice-tab.active {
    background: white;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hide scrollbars for cleaner look */
.invoice-tabs::-webkit-scrollbar {
    display: none;
}

.invoice-tabs {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Type-specific fields styling */
.type-fields {
    display: none;
    margin-top: 1.5rem;
}

.type-fields.active {
    display: block;
}

/* Invoice Footer Grid */
.invoice-footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: auto;
}

.notes-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .invoice-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem;
    }

    .invoice-tab {
        flex-shrink: 0;
    }

    .invoice-footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   FAQ Accordion Styles
   ============================================ */

.faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 0 28px 24px 28px !important;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: #0EA5E9 !important;
    color: white !important;
}

.faq-item:hover {
    border-color: rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.15) !important;
}

.faq-question:hover {
    color: #0EA5E9 !important;
}

/* SEO Content Sidebar Responsive */
@media (max-width: 900px) {
    .seo-content-layout {
        display: block !important;
    }
    
    .seo-sidebar {
        display: none;
    }
}

/* ============================================
   Form Flip Animation - 3D Paper Effect
   ============================================ */

.form-flipper-container {
    perspective: 2000px;
    width: 100%;
    max-width: 216mm;
    margin: 0 auto;
}

.form-flipper {
    position: relative;
    width: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.form-flipper.flipped {
    transform: rotateY(180deg);
}

.form-face {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.form-face.form-front {
    position: relative;
    z-index: 2;
}

.form-face.form-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
    z-index: 1;
}

/* When flipped, swap z-index */
.form-flipper.flipped .form-front {
    z-index: 1;
}

.form-flipper.flipped .form-back {
    z-index: 2;
}

/* Credit Note Specific Styling */
.invoice-paper.credit-note {
    --invoice-primary: #dc2626;
    --invoice-secondary: #991b1b;
}

.invoice-paper.credit-note .invoice-title {
    color: #dc2626;
}

.invoice-paper.credit-note .items-table th {
    border-bottom-color: #dc2626;
    background: #fef2f2;
    color: #991b1b;
}

.invoice-paper.credit-note .total-row.final {
    border-top-color: #dc2626;
    color: #dc2626;
}

.invoice-paper.credit-note .add-item-btn:hover {
    border-color: #fca5a5;
    color: #dc2626;
    background: #fef2f2;
}

/* Credit Note Badge */
.credit-note-badge {
    display: inline-block;
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Tab active state for Credit Note */
.invoice-tab[data-type="credit_note"].active {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Animation timing adjustments for mobile */
@media (max-width: 768px) {
    .form-flipper-container {
        perspective: 1500px;
    }

    .form-flipper {
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}