:root {
    --bg-page: #F8FAFC;
    --bg-hero-start: #F0FDFA;
    --bg-hero-end: #F1F5F9;
    --bg-card: #FFFFFF;
    --primary-accent: #0D9488;
    --primary-accent-light: #CCFBF1;
    --text-dark: #1E293B;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --border-color: #E2E8F0;
    --error-bg: #FEF2F2;
    --error-text: #DC2626;
    --warning-bg: #FFFBEB;
    --warning-text: #B45309;
    --success-bg: #ECFDF5;
    --success-text: #065F46;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-medium);
    line-height: 1.6;
    overflow-x: hidden;
  }
  
  h1, h2, h3, h4 {
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 600;
  }
  
  h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
  }
  
  h2.section-title {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 1.25rem;
  }
  
  h3.subsection-title {
    font-size: clamp(1rem, 3vw, 1.1rem);
    margin-bottom: 0.75rem;
  }
  
  /* Navigation */
  .navbar {
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem clamp(0.75rem, 3vw, 1rem);
  }
  
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .nav-logo {
    height: 32px;
    width: auto;
  }
  
  .brand-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
  }
  
  /* Navigation Toggle */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 1002;
  }
  
  .nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  /* Navigation Slider */
  .nav-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
  }
  
  .nav-slider.active {
    right: 0;
  }
  
  .slider-content {
    padding: 1.5rem;
    height: 100%;
  }
  
  .slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .slider-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
  }
  
  .slider-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .slider-link {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
  }
  
  .slider-link:hover, .slider-link.active {
    background-color: var(--primary-accent-light);
    color: var(--primary-accent);
  }
  
  /* Overlay when slider is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, var(--bg-hero-start) 0%, var(--bg-hero-end) 100%);
    padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .hero-text p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-medium);
  }
  
  /* Cards */
  .card {
    background-color: var(--bg-card);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .main-card {
    margin-top: -2rem;
    position: relative;
    z-index: 10;
  }
  
  /* Centered Form Container */
  .centered-form-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* Main Tabs - Button Style */
  .main-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
  }
  
  .main-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--primary-accent);
    border-radius: 0.75rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--primary-accent);
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.1);
    min-width: 140px;
    justify-content: center;
  }
  
  .main-tab:hover {
    background-color: var(--primary-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
  }
  
  .main-tab.active {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
  }
  
  .main-tab i {
    font-size: 1.1rem;
  }
  
  /* Tab Content */
  .tab-content {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .tab-content.active {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Common Options */
  .common-options {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
  }
  
  /* Form Elements */
  .form-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .input-group label {
    font-weight: 500;
    color: var(--text-dark);
  }
  
  .input-group input, .input-group select, .input-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background-color: white;
  }
  
  .input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  }
  
  .input-help {
    font-size: 0.875rem;
    color: var(--text-light);
  }
  
  .input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  
  /* Buttons */
  .calculate-button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    width: 100%;
  }
  
  .calculate-button:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--primary-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
  }
  
  .cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
  }
  
  .action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    text-align: center;
  }
  
  .action-button:hover {
    border-color: var(--primary-accent);
    color: var(--primary-accent);
  }
  
  .action-button.secondary {
    background-color: var(--bg-page);
  }
  
  .print-button {
    background-color: var(--primary-accent);
    color: white;
    border: none;
  }
  
  .print-button:hover {
    background-color: #0f766e;
    color: white;
  }
  
  .save-button {
    background-color: #3B82F6;
    color: white;
    border: none;
  }
  
  .save-button:hover {
    background-color: #2563EB;
    color: white;
  }
  
  /* Checkbox */
  .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
  }
  
  .checkbox-label input[type="checkbox"] {
    display: none;
  }
  
  .checkmark {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
  }
  
  .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
  }
  
  .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: white;
    font-size: 0.75rem;
  }
  
  /* Items Table */
  .items-table-container {
    margin-top: 1.5rem;
    overflow-x: auto;
  }
  
  .items-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }
  
  .items-table th, .items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  
  .items-table th {
    background-color: var(--bg-page);
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .items-table td:last-child {
    text-align: center;
  }
  
  /* Totals Section */
  .totals-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }
  
  .invoice-totals {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
  }
  
  .total-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .total-row.grand-total {
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: none;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-accent);
  }
  
  /* Invoice Preview */
  .preview-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .invoice-preview {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    background-color: white;
    min-height: 400px;
  }
  
  .preview-actions {
    display: flex;
    justify-content: center;
  }
  
  /* Action Buttons Grid */
  .action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  
  @media (min-width: 480px) {
    .action-buttons {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  /* Notices */
  .privacy-notice, .disclaimer-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .privacy-notice {
    background-color: var(--success-bg);
    border-left: 4px solid var(--success-text);
  }
  
  .disclaimer-box {
    background-color: var(--warning-bg);
    border-left: 4px solid var(--warning-text);
  }
  
  .privacy-title, .disclaimer-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
  }
  
  .privacy-text, .disclaimer-text {
    font-size: 0.875rem;
    color: var(--text-medium);
  }
  
  /* Animations */
  .animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive Adjustments */
  @media (max-width: 767px) {
    .input-row {
      grid-template-columns: 1fr;
    }
    
    .main-tabs {
      flex-direction: column;
      align-items: center;
    }
    
    .main-tab {
      min-width: auto;
      width: 100%;
      max-width: 280px;
    }
    
    .action-buttons {
      grid-template-columns: 1fr;
    }
    
    .invoice-totals {
      max-width: 100%;
    }
  }
  
  @media (max-width: 480px) {
    .main-tab {
      padding: 0.75rem 1rem;
      font-size: 0.8rem;
    }
    
    .main-tab i {
      font-size: 1rem;
    }
  }
  
  /* Footer */
  .footer {
    background-color: var(--bg-card);
    padding: 2rem 1rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
  }
  
  .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 1rem 0;
  }
  
  .footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .footer-links a:hover {
    color: var(--primary-accent);
  }
  
  .disclaimer {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* FAQ Section */
  .content-section {
    padding: 3rem 1rem;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .faq-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .faq-item {
    background: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  
  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
  
  .faq-item h3 {
    color: var(--primary-accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .faq-item p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  /* Overview Section */
  .overview-section {
    padding: 4rem 1rem;
    background: var(--bg-page);
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .overview-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .overview-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .overview-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .overview-icon i {
    font-size: 1.5rem;
    color: var(--primary-accent);
  }
  
  .overview-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .overview-card p {
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.95rem;
  }
  
  .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  /* Logo Preview */
  .logo-preview {
    margin-top: 0.5rem;
    padding: 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 0.5rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo-preview img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
  }
  
  /* Price Input with Currency Symbol */
  .price-input-container {
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .currency-symbol {
    position: absolute;
    left: 0.75rem;
    color: var(--text-medium);
    font-weight: 500;
    z-index: 1;
  }
  
  .price-input-container input {
    padding-left: 2rem;
  }
  
  /* Preview Controls */
  .preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
  }
  
  .preview-scale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .preview-scale select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
  }
  
  /* Invoice Preview Container */
  .invoice-preview-container {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: auto;
    background: white;
    margin-bottom: 1.5rem;
    max-height: 600px;
  }
  
  .invoice-preview {
    padding: 2rem;
    background: white;
    min-height: 400px;
    transform-origin: top left;
  }
  
  /* Quick Actions */
  .quick-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1rem;
  }
  
  /* Template-specific styles */
  .invoice-preview.modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  }
  
  .invoice-preview.professional {
    background: white;
    border-left: 4px solid var(--primary-accent);
  }
  
  .invoice-preview.minimal {
    background: white;
    font-family: 'Inter', sans-serif;
  }
  
  .invoice-preview.classic {
    background: #fefefe;
    border: 1px solid #e5e5e5;
  }
  
  .invoice-preview.colorful {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  }
  
  .invoice-preview.colorful * {
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
  }
  
  .invoice-preview.colorful th {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
  }
  
  .invoice-preview.colorful .watermark {
    color: rgba(255,255,255,0.7) !important;
  }
  
  /* QR Code */
  .qr-code {
    margin: 1rem 0;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    display: inline-block;
  }
  
  .qr-code canvas {
    border: 1px solid var(--border-color);
  }
  
  /* Signature Field */
  .signature-field {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
  }
  
  .signature-line {
    width: 200px;
    border-bottom: 1px solid var(--text-dark);
    margin-bottom: 0.5rem;
  }
  
  /* Watermark */
  .watermark {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
    opacity: 0.5;
  }
  
  /* Loading States */
  .loading {
    opacity: 0.7;
    pointer-events: none;
  }
  
  .loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-accent);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
  }
  
  /* Toast Notifications */
  .toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: var(--success-bg);
    color: var(--success-text);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .toast.show {
    transform: translateY(0);
    opacity: 1;
  }
  
  .toast.error {
    background: var(--error-bg);
    color: var(--error-text);
  }
  
  .toast.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
  }
  
  /* Enhanced Items Table */
  .items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
  }
  
  .items-table th {
    background: var(--primary-accent-light);
    color: var(--primary-accent);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid var(--primary-accent);
  }
  
  .items-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }
  
  .items-table tr:hover {
    background: var(--bg-page);
  }
  
  /* Tax Breakdown */
  .tax-breakdown {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-page);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
  }
  
  .tax-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
  }
  
  /* Responsive Improvements */
  @media (max-width: 768px) {
    .preview-controls {
      flex-direction: column;
      gap: 1rem;
      align-items: stretch;
    }
    
    .preview-scale {
      justify-content: space-between;
    }
    
    .invoice-preview {
      padding: 1rem;
      transform: scale(0.9);
    }
    
    .items-table {
      font-size: 0.875rem;
    }
    
    .items-table th,
    .items-table td {
      padding: 0.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .invoice-preview {
      transform: scale(0.8);
    }
    
    .action-buttons {
      grid-template-columns: 1fr;
    }
  }
  
  /* Add these template-specific styles to your existing CSS file */
  
  /* Modern Template */
  .invoice-preview.modern {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }
  
  .invoice-preview.modern .invoice-header {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #0f766e 100%);
    color: white;
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
    border-radius: 0.5rem 0.5rem 0 0;
  }
  
  .invoice-preview.modern .invoice-header * {
    color: white !important;
  }
  
  .invoice-preview.modern table th {
    background: var(--primary-accent);
    color: white;
    border: none;
  }
  
  /* Professional Template */
  .invoice-preview.professional {
    background: white;
    border-left: 4px solid var(--primary-accent);
    font-family: 'Georgia', serif;
  }
  
  .invoice-preview.professional .invoice-header {
    border-bottom: 2px solid var(--primary-accent);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
  }
  
  .invoice-preview.professional table {
    border: 1px solid #e2e8f0;
  }
  
  .invoice-preview.professional table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 600;
  }
  
  .invoice-preview.professional .total-row.grand-total {
    background: #f0fdfa;
    padding: 1rem;
    border-radius: 0.25rem;
  }
  
  /* Minimal Template */
  .invoice-preview.minimal {
    background: white;
    font-family: 'Inter', sans-serif;
    border: none;
    box-shadow: none;
  }
  
  .invoice-preview.minimal .invoice-header {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }
  
  .invoice-preview.minimal table {
    border: none;
  }
  
  .invoice-preview.minimal table th {
    background: transparent;
    color: var(--text-dark);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 500;
  }
  
  .invoice-preview.minimal table td {
    border-bottom: 1px solid #f1f5f9;
  }
  
  .invoice-preview.minimal .total-row {
    border-bottom: 1px solid #f1f5f9;
  }
  
  .invoice-preview.minimal .total-row.grand-total {
    border-top: 2px solid var(--primary-accent);
    border-bottom: none;
  }
  
  /* Classic Template */
  .invoice-preview.classic {
    background: #fefefe;
    border: 2px solid #d1d5db;
    font-family: 'Times New Roman', serif;
  }
  
  .invoice-preview.classic .invoice-header {
    background: #374151;
    color: white;
    margin: -2rem -2rem 2rem -2rem;
    padding: 2rem;
  }
  
  .invoice-preview.classic .invoice-header * {
    color: white !important;
  }
  
  .invoice-preview.classic table {
    border: 1px solid #d1d5db;
  }
  
  .invoice-preview.classic table th {
    background: #6b7280;
    color: white;
    border: 1px solid #9ca3af;
  }
  
  .invoice-preview.classic table td {
    border: 1px solid #e5e7eb;
    background: white;
  }
  
  .invoice-preview.classic .total-row.grand-total {
    background: #1f2937;
    color: white;
    padding: 0.75rem;
    border: none;
  }
  
  /* Colorful Template (Keep as is) */
  .invoice-preview.colorful {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
  }
  
  .invoice-preview.colorful * {
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
  }
  
  .invoice-preview.colorful th {
    background-color: rgba(255,255,255,0.2) !important;
    color: white !important;
  }
  
  .invoice-preview.colorful .watermark {
    color: rgba(255,255,255,0.7) !important;
  }
  
  /* Template-specific adjustments for preview */
  .invoice-preview.modern .preview-content,
  .invoice-preview.professional .preview-content,
  .invoice-preview.minimal .preview-content,
  .invoice-preview.classic .preview-content,
  .invoice-preview.colorful .preview-content {
    min-height: 400px;
    position: relative;
  }
  
  /* New Sections Styles */
  
  /* Use Cases Section */
  .use-cases-section {
    padding: 4rem 1rem;
    background: var(--bg-card);
  }
  
  .use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .use-cases-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .use-cases-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .use-case-card {
    background: var(--bg-page);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .use-case-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .use-case-icon i {
    font-size: 1.5rem;
    color: var(--primary-accent);
  }
  
  .use-case-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .problem-solution {
    margin-bottom: 1.5rem;
  }
  
  .problem, .solution {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
  .problem {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-text);
  }
  
  .solution {
    background: var(--success-bg);
    border-left: 4px solid var(--success-text);
  }
  
  .pro-tip {
    background: var(--primary-accent-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-accent);
  }
  
  .benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
  }
  
  .benefit-tag {
    background: var(--primary-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* How-To Section */
  .how-to-section {
    padding: 4rem 1rem;
    background: var(--bg-page);
  }
  
  .how-to-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .how-to-step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
  }
  
  .step-number {
    background: var(--primary-accent);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
  }
  
  .step-content {
    flex: 1;
  }
  
  .step-content h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .step-content p {
    margin-bottom: 1rem;
    color: var(--text-medium);
  }
  
  .quick-tip {
    background: var(--primary-accent-light);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--primary-accent);
  }
  
  .troubleshooting {
    background: var(--warning-bg);
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--warning-text);
  }
  
  @media (max-width: 768px) {
    .how-to-step {
      flex-direction: column;
      gap: 1rem;
    }
    
    .step-number {
      align-self: flex-start;
    }
  }
  
  /* Tips Section */
  .tips-section {
    padding: 4rem 1rem;
    background: var(--bg-card);
  }
  
  .tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .tips-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .tip-card {
    background: var(--bg-page);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .tip-number {
    background: var(--primary-accent);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  .tip-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .tip-card p {
    margin-bottom: 1rem;
    color: var(--text-medium);
  }
  
  .tip-example {
    background: var(--primary-accent-light);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--primary-accent);
  }
  
  /* Advantages Section */
  .advantages-section {
    padding: 4rem 1rem;
    background: var(--bg-page);
  }
  
  .advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .advantages-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .advantages-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .advantage-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
  }
  
  .advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .advantage-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }
  
  .advantage-icon i {
    font-size: 2rem;
    color: var(--primary-accent);
  }
  
  .advantage-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .advantage-card p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
  }
  
  .advantage-metric {
    background: var(--primary-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
  }
  
  /* Success Stories Section */
  .success-stories-section {
    padding: 4rem 1rem;
    background: var(--bg-card);
  }
  
  .success-stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .success-stories-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .success-stories-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .success-story-card {
    background: var(--bg-page);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .success-story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .user-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .user-avatar i {
    font-size: 1.5rem;
    color: var(--primary-accent);
  }
  
  .success-story-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .before-after {
    margin-bottom: 1.5rem;
  }
  
  .before, .after {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }
  
  .before {
    background: var(--warning-bg);
    border-left: 4px solid var(--warning-text);
  }
  
  .after {
    background: var(--success-bg);
    border-left: 4px solid var(--success-text);
  }
  
  .testimonial {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-accent);
  }
  
  .results {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .result-tag {
    background: var(--primary-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
  
  /* Technical Section */
  .technical-section {
    padding: 4rem 1rem;
    background: var(--bg-page);
  }
  
  .technical-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  
  @media (min-width: 768px) {
    .technical-content {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (min-width: 1024px) {
    .technical-content {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  .technical-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
  }
  
  .technical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  }
  
  .technical-card h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }
  
  .technical-card p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
  }
  
  .algorithm-breakdown, .privacy-features, .performance-metrics {
    background: var(--bg-page);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
  }
  
  .algorithm-breakdown h4, .privacy-features h4, .performance-metrics h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  
  .algorithm-breakdown ol, .privacy-features ul, .performance-metrics ul {
    padding-left: 1.5rem;
    color: var(--text-medium);
  }
  
  .algorithm-breakdown li, .privacy-features li, .performance-metrics li {
    margin-bottom: 0.5rem;
  }