    :root{
      /* Solar Energy Professional Palette */
      --primary: #004AAD;        /* Deep Blue (from logo) */
      --primary-light: #007BFF;  /* Bright Blue */
      --secondary: #16a34a;      /* Solar Green */
      --secondary-light: #22c55e; /* Light Green */
      --accent: #f59e0b;         /* Solar Orange */
      --accent-light: #fbbf24;   /* Light Orange */
      
      /* Enhanced Colors */
      --ink: #003366;            /* Dark Blue Text */
      --text-medium: #475569;    /* Medium Text */
      --muted: #6b7280;          /* Light Text */
      --bg: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 50%, #fffbeb 100%); /* Solar gradient bg */
      --card: rgba(255, 255, 255, 0.95); /* Glass card */
      --border: rgba(0, 74, 173, 0.1);   /* Subtle border */
      --hover: #f1f5f9;          /* Hover state */
      --ring: rgba(0,74,173,.15); /* Focus ring */
    }
    *{box-sizing:border-box}
    
    body{
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background: var(--bg);
      background-attachment: fixed;
      margin: 0;
      color: var(--ink);
      line-height: 1.6;
      min-height: 100vh;
      /* Copy protection */
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
    }
    


    /* Enhanced Header */
    header{
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 12px 24px;
      background: var(--card);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 4px 20px rgba(0, 74, 173, 0.08);
      position: static;
      /* Removed sticky positioning - now follows page scroll */
    }
    
    .header-brand{
      display: flex;
      align-items: center;
      gap: 16px;
      flex: 1;
      justify-content: center;
    }
    
    /* Header contact styles removed - now in footer */
    
    header img{
      max-height: 80px; /* Bigger logo */
      transition: all 0.3s ease;
      filter: drop-shadow(0 2px 8px rgba(0, 74, 173, 0.1));
    }
    
    header img:hover{
      transform: scale(1.05);
      filter: drop-shadow(0 4px 12px rgba(0, 74, 173, 0.2));
    }
    
    .header-title{
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    header h1{
      margin: 0;
      color: var(--ink);
      font-size: 28px;
      font-weight: 700;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      letter-spacing: -0.5px;
    }
    
    .header-subtitle{
      font-size: 14px;
      color: var(--text-medium);
      font-weight: 500;
      margin: 0;
      opacity: 0.9;
    }
    /* Enhanced Language Links */
    #langLinks{
      display: flex;
      gap: 2px;
      background: rgba(0, 74, 173, 0.05);
      padding: 4px;
      border-radius: 12px;
      border: 1px solid var(--border);
      backdrop-filter: blur(10px);
    }
    
    #langLinks a{
      color: var(--text-medium);
      text-decoration: none;
      padding: 10px 16px;
      border-radius: 8px;
      font-weight: 500;
      font-size: 14px;
      transition: all 0.3s ease;
    }
    
    #langLinks a:hover{
      background: rgba(255, 255, 255, 0.9);
      color: var(--primary);
      box-shadow: 0 2px 8px rgba(0, 74, 173, 0.15);
      transform: translateY(-1px);
    }
    
    #langLinks a.active{
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      box-shadow: 0 4px 12px rgba(0, 74, 173, 0.3);
    }
    
    #langLinks span{
      display: none;
    }
    
    /* Enhanced Layout */
    .wrap{
      max-width: 1000px;
      margin: 32px auto;
      padding: 0 24px;
      padding-bottom: 120px; /* Space for footer */
    }
    
    .container{
      background: var(--card);
      backdrop-filter: blur(20px);
      border-radius: 20px;
      border: 1px solid var(--border);
      padding: 32px;
      box-shadow: 0 8px 32px rgba(0, 74, 173, 0.1);
      position: relative;
    }
    
    .container::before{
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
      border-radius: 20px 20px 0 0;
    }
    /* Enhanced Section Headers */
    h2{
      font-size: 20px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 0 0 20px;
      font-weight: 600;
    }
    
    h2::before{
      content: "";
      width: 4px;
      height: 24px;
      border-radius: 2px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      display: inline-block;
    }
    
    /* Enhanced Form Elements */
    label{
      display: block;
      margin-top: 20px;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--ink);
      font-size: 14px;
    }
    
    input[type="file"], input[type="number"]{
      width: 100%;
      padding: 14px 16px;
      border: 2px solid var(--border);
      border-radius: 12px;
      font-size: 16px;
      background: var(--card);
      color: var(--ink);
      outline: none;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }
    
    input[type="file"]:hover, input[type="number"]:hover{
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(0, 74, 173, 0.1);
      transform: translateY(-1px);
    }
    
    input:focus{
      border-color: var(--primary);
      box-shadow: 0 0 0 4px var(--ring), 0 4px 12px rgba(0, 74, 173, 0.15);
      transform: translateY(-1px);
    }
    /* Enhanced Buttons */
    button{
      margin-top: 20px;
      padding: 14px 20px;
      border: none;
      border-radius: 12px;
      color: white;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      width: 100%;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      box-shadow: 0 4px 16px rgba(0, 74, 173, 0.2);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    button::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;
    }
    
    button:hover:not(:disabled)::before{
      left: 100%;
    }
    
    button:hover:not(:disabled){
      background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 74, 173, 0.3);
    }
    
    button:disabled{
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
      background: var(--muted);
      box-shadow: none;
    }
    
    .btn-secondary{
      background: var(--card);
      color: var(--ink);
      border: 2px solid var(--border);
      box-shadow: 0 2px 8px rgba(0, 74, 173, 0.05);
      backdrop-filter: blur(10px);
    }
    
    .btn-secondary:hover:not(:disabled){
      background: var(--hover);
      border-color: var(--primary);
      color: var(--primary);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 74, 173, 0.15);
    }
    
    .btn-row{
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
      margin-top: 24px;
    }
    .kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
    .kpi{background:#fff;border:1px solid #eef2ff;border-radius:16px;padding:16px 18px;box-shadow:0 8px 20px rgba(0,0,0,.05)}
    .kpi .label{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px}
    .kpi .value{font-size:26px;font-weight:900;margin-top:4px;color:var(--ink)}
    .kpi .hint{font-size:12px;color:var(--muted);margin-top:6px}
    .card{background:#fff;border:1px solid #eef2ff;border-radius:16px;padding:18px;margin-top:16px}
    .card h3{margin:0 0 10px;color:var(--ink);font-size:18px}
    .compare{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:stretch}
    .pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:12px}
    .pill.green{background:#eaf8ef;color:#1c7c3a}
    .pill.gray{background:#eef3ff;color:var(--ink)}
    .price{font-size:22px;font-weight:900;color:var(--ink);margin-top:6px}
    .delta{display:flex;align-items:center;justify-content:center;gap:8px;background:#f0fbf4;border:1px solid #dcfce7;color:#15803d;border-radius:14px;padding:14px 16px;font-weight:900;font-size:22px}
    .note{font-size:14px;color:#0f766e;background:#ecfeff;border:1px solid #cffafe;border-radius:12px;padding:12px;margin-top:12px}
    .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
    .grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;width:100%;box-sizing:border-box}
    .grid-3 .card{min-width:0;overflow:hidden}
    .hidden{display:none}
    .muted{color:var(--muted)}
    .uploadStatus{display:flex;align-items:center;gap:8px;margin-top:8px;font-weight:700}
    .spinner{width:16px;height:16px;border:2px solid #cbd5e1;border-top-color:#2563eb;border-radius:50%;animation:spin 1s linear infinite}
    @keyframes spin{to{transform:rotate(360deg)}}
    
    /* File list styling */
    .file-item{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:6px;position:relative}
    .file-item .file-name{font-weight:600;color:var(--ink);flex:1}
    .file-item .file-status{font-size:12px;color:var(--muted)}
    .file-item.processing{background:#fef3c7;border-color:#f59e0b}
    .file-item.complete{background:#ecfdf5;border-color:#10b981}
    .file-item.error{background:#fef2f2;border-color:#ef4444}
    .file-delete{position:absolute;top:4px;right:4px;background:#ef4444;color:white;border:none;border-radius:50%;width:20px;height:20px;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center}
    .file-delete:hover{background:#dc2626}
    
    /* Monthly input styling */
    .monthly-input{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:10px;background:#f8fafc;border-radius:8px}
    .monthly-input label{min-width:120px;font-weight:600;color:var(--ink);margin:0}
    .monthly-input input{flex:1;margin:0}
    
    /* Table styling */
    .monthly-table{width:100%;border-collapse:collapse;margin-top:10px}
    .monthly-table th,.monthly-table td{padding:10px;text-align:left;border-bottom:1px solid #e5e7eb}
    .monthly-table th{background:#f9fafb;font-weight:700;color:var(--ink)}
    .monthly-table td{color:var(--muted)}
    .monthly-table .highlight{color:var(--ink);font-weight:600}
    
    /* Professional Header Styling */
    .report-header{background:#ffffff;padding:12px 0;margin-bottom:16px;display:none}
    .header-content{display:flex;align-items:flex-start;justify-content:space-between;max-width:794px;margin:0 auto}
    .header-left{flex-shrink:0}
    .header-logo{height:50px;width:auto}
    .header-right{flex:1;margin-left:15px;text-align:right}
    .company-info{font-size:10px;line-height:1.3;color:#333}
    .address-line{margin-bottom:1px}
    .contact-info{margin-top:4px;display:flex;justify-content:flex-end;gap:15px;font-weight:600}
    .header-divider{height:2px;background:linear-gradient(90deg,#1e40af,#06b6d4);margin-top:8px;border-radius:1px}
    .report-title{text-align:center;margin-top:12px}
    .report-title h1{margin:0;font-size:18px;font-weight:bold;color:var(--primary);text-transform:uppercase;letter-spacing:1px}
    
    /* Show header only in PDF mode */
    .pdf-mode .report-header{display:block}

    /* Simple Clean Table */
    .clean-table{width:100%;border-collapse:collapse;background:white;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
    .clean-table thead th{background:var(--primary);color:white;padding:12px;text-align:center;font-weight:600;font-size:13px}
    .clean-table tbody td{padding:12px;text-align:center;border-bottom:1px solid #f1f5f9;font-size:14px}
    .clean-table tbody tr:nth-child(even){background:#f9fafb}
    .clean-table .col-date{text-align:center;font-weight:600}
    .clean-table .col-savings{font-weight:700;color:#059669;font-size:16px}
    .clean-table tfoot td{padding:14px 12px;background:#f8fafc;font-weight:700;border-top:2px solid var(--primary);text-align:center}
    .clean-table .total-savings{background:#059669;color:white;font-size:18px;font-weight:800}
    
    /* Detailed Table (when expanded) */
    .detailed-table thead th{padding:8px 4px;font-size:10px}
    .detailed-table tbody td{padding:8px 4px;font-size:11px}
    .detailed-table .col-date{width:20%}
    .detailed-table .col-gen{width:8%}
    .detailed-table .col-direct{width:8%}
    .detailed-table .col-export{width:8%}
    .detailed-table .col-import{width:8%}
    .detailed-table .col-total{width:8%}
    .detailed-table .col-before{width:12%}
    .detailed-table .col-after{width:12%}
    .detailed-table .col-savings{width:12%;font-size:12px}
    
    /* Table Explanation */
    .table-explanation{margin-top:16px;padding:12px;background:#f8fafc;border-radius:8px;border-left:4px solid var(--primary)}
    .math-formula strong{color:var(--primary);font-size:14px}
    .formula-item{margin:6px 0}
    .formula-text{font-size:12px;color:#374151;background:#ffffff;padding:4px 8px;border-radius:4px;display:inline-block}
    
    /* ========= PROFESSIONAL FOOTER ========= */
    .main-footer {
      position: relative;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      color: white;
      z-index: 1000;
      box-shadow: 0 -4px 20px rgba(0, 74, 173, 0.2);
      backdrop-filter: blur(20px);
    }
    
    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px 24px 12px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
      align-items: start;
    }
    
    .footer-section h4 {
      margin: 0 0 12px 0;
      font-size: 14px;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.95);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .footer-section h4::before {
      content: '';
      width: 3px;
      height: 16px;
      background: var(--accent);
      border-radius: 2px;
    }
    
    .footer-address {
      font-size: 12px;
      line-height: 1.4;
      color: rgba(255, 255, 255, 0.85);
      margin-bottom: 8px;
    }
    
    .footer-address strong {
      color: var(--accent-light);
      font-weight: 600;
    }
    
    .footer-bottom {
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding: 16px 40px 20px 40px; /* More side padding for better centering */
      background: rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: center; /* Center the content horizontally */
      align-items: center;
      flex-wrap: wrap;
      gap: 10px; /* Reduced space between copyright and contact */
    }
    
    /* Desktop: contact on left, copyright on right */
    .footer-contact {
      order: 1;
    }
    
    .footer-copyright {
      order: 2;
    }
    
    .footer-copyright {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
      font-weight: 500;
    }
    
    .footer-contact {
      display: flex;
      gap: 20px;
      font-size: 11px;
    }
    
    .footer-contact a {
      color: rgba(255, 255, 255, 0.9);
      text-decoration: none;
      font-weight: 500;
      transition: all 0.3s ease;
    }
    
    .footer-contact a:hover {
      color: var(--accent-light);
      text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
      letter-spacing: 0.3px;
    }
    
    @media(max-width:740px){ 
      .kpis{grid-template-columns:1fr} 
      .compare{grid-template-columns:1fr} 
      .grid-2{grid-template-columns:1fr}
      .grid-3{grid-template-columns:1fr} 
      .btn-row{grid-template-columns:1fr}
      .monthly-input{flex-direction:column;align-items:stretch;gap:6px}
      .monthly-input label{min-width:auto}
      
      /* Footer contact mobile adjustments */
      .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0px;
        padding: px; /* More generous padding on mobile */
      }
      
      .footer-contact {
        order: -10 !important; /* Force contact above copyright on mobile */
        justify-content: center;
        gap: 16px;
      }
      
      .footer-copyright {
        order: 10 !important; /* Force copyright below contact on mobile */
      }
      
      .footer-content {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px 16px 8px;
      }
      
      .footer-section h4 {
        font-size: 13px;
      }
      
      .footer-address {
        font-size: 11px;
      }
      
      .footer-bottom {
        padding: 8px 16px;
      }
      
      .footer-copyright {
        font-size: 10px;
      }
    }
    /* PDF Title Section - Hidden by default, only show in PDF mode */
    .pdf-title-section{
      display:none;
      text-align:center;
      margin-bottom:30px;
      padding:20px;
      border-bottom:3px solid var(--primary);
    }
    
    /* Show PDF title only when generating PDF */
    .pdf-mode .pdf-title-section{
      display:block;
    }
    
    .pdf-title-section h1{
      margin:0 0 10px 0;
      font-size:28px;
      font-weight:900;
      color:var(--primary);
      letter-spacing:1px;
      text-transform:uppercase;
      line-height:1.2;
      word-wrap:break-word;
    }
    
    .pdf-date-range{
      font-size:16px;
      font-weight:600;
      color:var(--green-primary);
      margin-top:8px;
    }
    
    /* A4 PDF export mode (forces desktop layout width on mobile) */
    .pdf-mode .wrap{max-width:794px}
    .pdf-mode .container{max-width:794px;width:794px;box-shadow:none}
    .pdf-mode #printArea{width:794px}
    
    /* Mobile PDF optimizations */
    .mobile-pdf-mode .wrap{
      max-width:794px !important;
      margin:0 auto !important;
      padding:0 !important;
    }
    
    .mobile-pdf-mode .container{
      max-width:794px !important;
      width:794px !important;
      padding:16px !important;
      border-radius:0 !important;
      margin:0 !important;
    }
    
    .mobile-pdf-mode #printArea{
      width:794px !important;
      min-height:auto !important;
    }
    
    .mobile-pdf-mode .kpis{
      grid-template-columns:repeat(3,1fr) !important;
      gap:8px !important;
    }
    
    .mobile-pdf-mode .kpi{
      padding:8px !important;
      font-size:11px !important;
    }
    
    .mobile-pdf-mode .kpi .value{
      font-size:16px !important;
    }
    
    .mobile-pdf-mode .grid-2{
      grid-template-columns:1fr 1fr !important;
      gap:8px !important;
    }
    
    .mobile-pdf-mode .grid-3{
      grid-template-columns:1fr 1fr 1fr !important;
      gap:6px !important;
    }
    
    .mobile-pdf-mode .card{
      padding:12px !important;
      margin-top:8px !important;
    }
    
    .mobile-pdf-mode h2{
      font-size:16px !important;
      margin-bottom:12px !important;
    }
    
    .mobile-pdf-mode h3{
      font-size:14px !important;
      margin-bottom:8px !important;
    }
    
    /* Mobile PDF table optimizations */
    .mobile-pdf-mode .clean-table{
      font-size:10px !important;
      margin:8px 0 !important;
    }
    
    .mobile-pdf-mode .clean-table thead th{
      padding:6px 4px !important;
      font-size:9px !important;
    }
    
    .mobile-pdf-mode .clean-table tbody td{
      padding:5px 4px !important;
      font-size:9px !important;
      line-height:1.2 !important;
    }
    
    .mobile-pdf-mode .clean-table tfoot td{
      padding:6px 4px !important;
      font-size:10px !important;
    }
    
    .mobile-pdf-mode .detailed-table thead th{
      padding:4px 2px !important;
      font-size:8px !important;
    }
    
    .mobile-pdf-mode .detailed-table tbody td{
      padding:4px 2px !important;
      font-size:8px !important;
    }
    
    /* Mobile PDF chart optimizations */
    .mobile-pdf-mode .chart-container{
      height:200px !important;
      margin:8px 0 !important;
    }
    
    .mobile-pdf-mode canvas{
      max-width:100% !important;
      height:auto !important;
    }
    
    /* Mobile PDF text optimizations */
    .mobile-pdf-mode .price{
      font-size:16px !important;
    }
    
    .mobile-pdf-mode .delta{
      font-size:14px !important;
      padding:8px !important;
    }
    
    .mobile-pdf-mode .note{
      font-size:11px !important;
      padding:8px !important;
    }
    
    .mobile-pdf-mode .compare{
      gap:6px !important;
    }
    
    .mobile-pdf-mode .pill{
      font-size:10px !important;
      padding:4px 6px !important;
    }
    
    /* Multi-month PDF optimizations */
    .pdf-mode .clean-table{
      font-size: 12px !important;
      margin: 10px 0 !important;
    }
    
    .pdf-mode .clean-table thead th{
      padding: 8px 6px !important;
      font-size: 11px !important;
    }
    
    .pdf-mode .clean-table tbody td{
      padding: 6px 5px !important;
      font-size: 11px !important;
      line-height: 1.3 !important;
    }
    
    .pdf-mode .clean-table tfoot td{
      padding: 8px 6px !important;
      font-size: 12px !important;
    }
    
    .pdf-mode .detailed-table thead th{
      padding: 6px 4px !important;
      font-size: 10px !important;
    }
    
    .pdf-mode .detailed-table tbody td{
      padding: 5px 4px !important;
      font-size: 10px !important;
    }
    
    .pdf-mode .chart-container{
      height: 300px !important;
      margin: 12px 0 !important;
    }
    
    .pdf-mode .grid-2{
      gap: 12px !important;
    }
    
    .pdf-mode .kpi-card{
      padding: 8px !important;
      margin: 4px 0 !important;
    }
    
    .pdf-mode .kpi-value{
      font-size: 18px !important;
    }
    
    .pdf-mode .kpi-label{
      font-size: 10px !important;
    }

    /* PDF Watermark */
    .pdf-watermark {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-45deg);
      z-index: 1;
      pointer-events: none;
      text-align: center;
      font-size: 42px;
      font-weight: bold;
      color: rgba(128, 128, 128, 0.3);
      white-space: nowrap;
      font-family: Arial, sans-serif;
      letter-spacing: 2px;
      font-family: Arial, sans-serif;
      letter-spacing: 2px;
      display: none;
      width: 100%;
      text-align: center;
    }
    
    .pdf-mode .pdf-watermark {
      display: block;
    }
    
    /* Removed unused watermark classes - using simple .pdf-watermark only */
    
    .pdf-mode #printArea {
      position: relative;
    }
    
    /* Hide footer in PDF mode */
    .pdf-mode .main-footer {
      display: none !important;
    }

    /* ========= SAVINGS ESTIMATION STYLES ========= */
    
    /* Feature Toggle Buttons */
    .feature-toggle {
      display: flex;
      gap: 8px;
      margin-bottom: 32px;
      background: rgba(0, 74, 173, 0.05);
      padding: 8px;
      border-radius: 16px;
      border: 1px solid var(--border);
      backdrop-filter: blur(10px);
      justify-content: center;
    }
    
    .toggle-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border: none;
      border-radius: 12px;
      background: transparent;
      color: var(--text-medium);
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .toggle-btn:hover {
      background: rgba(0, 74, 173, 0.1);
      color: var(--primary);
      transform: translateY(-1px);
    }
    
    .toggle-btn.active {
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(0, 74, 173, 0.3);
    }
    
    .toggle-btn.active::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
      animation: shimmer 2s infinite;
    }
    
    .toggle-icon {
      font-size: 18px;
    }
    
    /* Savings Input Groups */
    .savings-input-group {
      margin-bottom: 24px;
    }
    
    .savings-input-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: var(--ink);
      font-size: 15px;
    }
    
    .savings-input-group input,
    .savings-input-group select {
      width: 100%;
      padding: 14px 18px;
      border: 2px solid var(--border);
      border-radius: 12px;
      font-size: 16px;
      background: rgba(255, 255, 255, 0.95);
      color: var(--ink);
      outline: none;
      transition: all 0.3s ease;
      font-weight: 500;
      box-shadow: 0 2px 8px rgba(0, 74, 173, 0.05);
      backdrop-filter: blur(10px);
    }
    
    .savings-input-group input:focus,
    .savings-input-group select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.1);
      background: white;
    }
    
    /* Savings Results */
    .savings-results {
      margin-top: 32px;
      padding: 24px;
      background: var(--card);
      border-radius: 20px;
      border: 1px solid var(--border);
      backdrop-filter: blur(20px);
      box-shadow: 0 8px 32px rgba(0, 74, 173, 0.1);
    }
    
    .savings-summary {
      display: flex;
      align-items: center;
      gap: 20px;
      margin-bottom: 24px;
      justify-content: center;
      flex-wrap: wrap;
    }
    
    .savings-card {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 16px;
      padding: 20px;
      text-align: center;
      border: 2px solid var(--border);
      backdrop-filter: blur(10px);
      min-width: 180px;
      transition: all 0.3s ease;
    }
    
    .savings-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(0, 74, 173, 0.15);
    }
    
    .savings-card.current-bill {
      border-color: rgba(185, 28, 28, 0.3);
      background: rgba(254, 242, 242, 0.9);
    }
    
    .savings-card.new-bill {
      border-color: rgba(34, 197, 94, 0.3);
      background: rgba(240, 253, 244, 0.9);
    }
    
    .savings-card h3 {
      margin: 0 0 8px 0;
      font-size: 14px;
      font-weight: 600;
      color: var(--text-medium);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .savings-card .amount {
      font-size: 24px;
      font-weight: 900;
      color: var(--ink);
      margin-bottom: 4px;
    }
    
    .savings-card .usage {
      font-size: 12px;
      color: var(--text-medium);
      font-weight: 500;
    }
    
    .savings-arrow {
      font-size: 24px;
      color: var(--primary);
      font-weight: bold;
    }
    
    .savings-highlight {
      text-align: center;
      padding: 20px;
      background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
      border-radius: 16px;
      margin-bottom: 24px;
      color: white;
    }
    
    .savings-amount {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 4px;
    }
    
    .savings-amount .amount {
      font-size: 28px;
      font-weight: 900;
      margin-left: 8px;
    }
    
    .savings-percentage {
      font-size: 14px;
      opacity: 0.9;
      font-weight: 500;
    }
    
    .savings-details {
      background: rgba(255, 255, 255, 0.7);
      border-radius: 12px;
      padding: 16px;
      border: 1px solid var(--border);
    }
    
    .savings-details h4 {
      margin: 0 0 12px 0;
      font-size: 16px;
      color: var(--ink);
      font-weight: 600;
    }
    
    .energy-flow {
      display: grid;
      gap: 8px;
    }
    
    .flow-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 8px;
      border: 1px solid rgba(0, 74, 173, 0.1);
      font-size: 14px;
    }
    
    .flow-item span:first-child {
      color: var(--text-medium);
      font-weight: 500;
    }
    
    .flow-item span:last-child {
      color: var(--ink);
      font-weight: 600;
    }
    
    /* Button Styles */
    .btn-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 16px 24px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
      color: white;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 16px rgba(0, 74, 173, 0.2);
      position: relative;
      overflow: hidden;
    }
    
    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0, 74, 173, 0.3);
    }
    
    .btn-primary:active {
      transform: translateY(0);
    }
    
    .btn-icon {
      font-size: 18px;
    }
    
    /* Responsive Design for Savings */
    @media (max-width: 768px) {
      .feature-toggle {
        flex-direction: column;
        gap: 4px;
      }
      
      .toggle-btn {
        justify-content: center;
        padding: 14px 20px;
      }
      
      .savings-summary {
        flex-direction: column;
        gap: 16px;
      }
      
      .savings-arrow {
        transform: rotate(90deg);
      }
      
      .savings-card {
        min-width: auto;
        width: 100%;
      }
      
      /* Header improvements - clean 3-row layout */
      header {
        flex-direction: column !important; /* Stack vertically */
        align-items: center !important;
        padding: 16px 12px 8px 12px !important;
        gap: 12px !important;
      }
      
      .header-brand {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        justify-content: center !important;
      }
      
      header img {
        max-height: 55px !important; /* Good size for mobile */
        transition: all 0.3s ease !important;
      }
      
      .header-title {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Center align */
        text-align: center !important;
      }
      
      .header-title h1 {
        font-size: 20px !important; /* Larger since no overlap */
        margin: 0 !important;
        line-height: 1.2 !important;
      }
      
      .header-subtitle {
        font-size: 11px !important; /* Readable size */
        line-height: 1.2 !important;
        margin: 4px 0 0 0 !important;
        opacity: 0.8 !important;
        max-width: 200px !important;
      }
      
      /* Language switcher - below header in its own row */
      #langLinks {
        position: static !important; /* Remove absolute positioning */
        display: flex !important;
        gap: 4px !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 8px 0 !important;
        background: rgba(255,255,255,0.9) !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        backdrop-filter: blur(10px) !important;
      }
      
      #langLinks a {
        padding: 8px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.8) !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        text-decoration: none !important;
        color: #666 !important;
        font-weight: 500 !important;
        min-width: 40px !important;
        text-align: center !important;
        transition: all 0.2s ease !important;
        border: 1px solid rgba(0,0,0,0.1) !important;
      }
      
      #langLinks a:hover {
        background: rgba(255,255,255,1) !important;
        transform: translateY(-1px) !important;
      }
      
      #langLinks a.active {
        background: var(--primary) !important;
        color: white !important;
        box-shadow: 0 2px 6px rgba(30, 64, 175, 0.3) !important;
        border: 1px solid var(--primary) !important;
      }
      
      #langLinks span {
        display: none !important; /* Hide separators */
      }
    }

    /* ========= FLOATING WHATSAPP BUTTON ========= */
    .whatsapp-float {
      position: fixed;
      bottom: 120px; /* Above footer */
      right: 30px;
      width: 60px;
      height: 60px;
      background: #25D366;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
      cursor: pointer;
      transition: all 0.3s ease;
      z-index: 1000;
      text-decoration: none;
      border: none;
      outline: none;
    }
    
    .whatsapp-float:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
      background: #128C7E;
    }
    
    .whatsapp-float:active {
      transform: translateY(-1px);
    }
    
    .whatsapp-float svg {
      width: 32px;
      height: 32px;
      fill: white;
    }
    
    /* Pulse animation */
    .whatsapp-float::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      border-radius: 50%;
      background: #25D366;
      animation: whatsapp-pulse 2s infinite;
      z-index: -1;
    }
    
    @keyframes whatsapp-pulse {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      50% {
        transform: scale(1.1);
        opacity: 0.7;
      }
      100% {
        transform: scale(1.2);
        opacity: 0;
      }
    }
    
    /* Mobile responsive */
    @media (max-width: 768px) {
      .whatsapp-float {
        bottom: 110px; /* Above footer on mobile */
        right: 20px;
        width: 55px;
        height: 55px;
      }
      
      .whatsapp-float svg {
        width: 28px;
        height: 28px;
      }
    }

    /* ========= COPY PROTECTION ========= */
    
    /* Disable text selection and context menu */
    * {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
      -webkit-tap-highlight-color: transparent;
    }
    
    /* Allow selection for input fields */
    input, textarea, select {
      -webkit-user-select: text !important;
      -moz-user-select: text !important;
      -ms-user-select: text !important;
      user-select: text !important;
    }
    
    /* Disable drag and drop for images */
    img {
      -webkit-user-drag: none;
      -khtml-user-drag: none;
      -moz-user-drag: none;
      -o-user-drag: none;
      user-drag: none;
      pointer-events: none;
    }
    
    /* Re-enable pointer events for interactive elements */
    button, a, input, select, textarea, .toggle-btn, .whatsapp-float {
      pointer-events: auto !important;
    }

    /* ========= BACKGROUND PATTERN WATERMARK ========= */
    
    /* Background watermark removed as requested - using original logo watermark in PDF only */
    
    /* Mobile responsive watermark */
    @media (max-width: 768px) {
      .watermark-logo img {
        width: 250px !important;
      }
    }
    
    @media (max-width: 480px) {
      .watermark-logo img {
        width: 200px !important;
      }
    }
    
    @media (max-width: 320px) {
      .watermark-logo img {
        width: 180px !important;
      }
    }
