* { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      font-family: 'Inter', sans-serif;
      background: #0f172a;
      color: #f8fafc;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Glassmorphism Card */
    .glass-card {
      background: rgba(30, 41, 59, 0.6);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(148, 163, 184, 0.1);
      border-radius: 16px;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .glass-card:hover {
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
    }

    /* Gradient Text */
    .gradient-text {
      background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Gradient Border */
    .gradient-border {
      position: relative;
    }
    .gradient-border::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 16px;
      padding: 1px;
      background: linear-gradient(135deg, #f59e0b, #d97706, #fcd34d);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.3s;
    }
    .gradient-border:hover::before {
      opacity: 1;
    }

    /* Animated Background */
    .bg-mesh {
      background:
        radial-gradient(ellipse at 20% 50%, rgba(43, 135, 107, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(51, 146, 116, 0.06) 0%, transparent 50%),
        #0f172a;
    }

    /* Button Styles */
    .btn-primary {
      background: linear-gradient(135deg, #339274, #2B876B);
      color: white;
      padding: 10px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 14px;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
    .btn-primary:active { transform: translateY(0); }
    .btn-primary:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    .btn-secondary {
      background: rgba(51, 65, 85, 0.6);
      color: #e2e8f0;
      padding: 10px 24px;
      border-radius: 12px;
      font-weight: 500;
      font-size: 14px;
      border: 1px solid rgba(148, 163, 184, 0.15);
      cursor: pointer;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-secondary:hover {
      background: rgba(51, 65, 85, 0.9);
      border-color: rgba(148, 163, 184, 0.3);
    }

    .btn-danger {
      background: linear-gradient(135deg, #f43f5e, #e11d48);
      color: white;
      padding: 10px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 14px;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-danger:hover {
      box-shadow: 0 8px 25px rgba(244, 63, 94, 0.3);
    }

    .btn-success {
      background: linear-gradient(135deg, #10b981, #059669);
      color: white;
      padding: 10px 24px;
      border-radius: 12px;
      font-weight: 600;
      font-size: 14px;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .btn-success:hover {
      box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    }

    .btn-sm {
      padding: 6px 14px;
      font-size: 13px;
      border-radius: 8px;
    }

    /* Input Styles */
    .input-field {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(148, 163, 184, 0.15);
      color: #f8fafc;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 14px;
      font-family: 'Inter', sans-serif;
      width: 100%;
      transition: all 0.3s;
      outline: none;
    }
    .input-field:focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }
    .input-field::placeholder { color: #64748b; }

    select.input-field {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      padding-right: 36px;
    }

    /* Modal Overlay */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(2, 6, 23, 0.8);
      backdrop-filter: blur(4px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .modal-overlay.active {
      opacity: 1;
      pointer-events: all;
    }
    .modal-content {
      background: #1e293b;
      border: 1px solid rgba(148, 163, 184, 0.1);
      border-radius: 20px;
      padding: 32px;
      max-width: 520px;
      width: 90%;
      max-height: 85vh;
      overflow-y: auto;
      transform: scale(0.95) translateY(10px);
      transition: transform 0.3s;
    }
    .modal-overlay.active .modal-content {
      transform: scale(1) translateY(0);
    }

    /* Toast Notifications */
    .toast-container {
      position: fixed;
      top: 24px;
      right: 24px;
      z-index: 200;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .toast {
      padding: 14px 20px;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 10px;
      animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      min-width: 300px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    }
    .toast-success { background: #065f46; color: #a7f3d0; border: 1px solid #10b981; }
    .toast-error { background: #881337; color: #fecdd3; border: 1px solid #f43f5e; }
    .toast-info { background: #1e3a5f; color: #bfdbfe; border: 1px solid #3b82f6; }

    @keyframes slideInRight {
      from { transform: translateX(100px); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    @keyframes fadeOut {
      to { transform: translateX(100px); opacity: 0; }
    }

    /* Progress Bar */
    .progress-bar {
      background: rgba(51, 65, 85, 0.6);
      border-radius: 999px;
      height: 10px;
      overflow: hidden;
    }
    .progress-fill {
      height: 100%;
      border-radius: 999px;
      background: linear-gradient(90deg, #fcd34d, #f59e0b);
      transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .progress-fill.emerald {
      background: linear-gradient(90deg, #10b981, #34d399);
    }

    /* Sidebar */
    .sidebar {
      width: 260px;
      min-height: 100vh;
      background: rgba(15, 23, 42, 0.95);
      border-right: 1px solid rgba(148, 163, 184, 0.08);
      position: fixed;
      left: 0;
      top: 0;
      z-index: 50;
      transition: transform 0.3s;
      display: flex;
      flex-direction: column;
    }
    .sidebar.hidden {
      display: none !important;
    }
    .sidebar-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 20px;
      color: #94a3b8;
      font-size: 14px;
      font-weight: 500;
      border-radius: 10px;
      margin: 2px 12px;
      transition: all 0.2s;
      cursor: pointer;
      text-decoration: none;
    }
    .sidebar-link:hover {
      background: rgba(99, 102, 241, 0.1);
      color: #e2e8f0;
    }
    .sidebar-link.active {
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
    }

    /* Main Content */
    .main-content {
      margin-left: max(260px, calc(260px + (100vw - 260px - 1280px) / 2));
      min-height: 100vh;
      padding: 32px;
      max-width: 1280px;
    }

    /* Stat Card */
    .stat-card {
      position: relative;
      overflow: hidden;
      min-height: 130px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .stat-card .stat-icon {
      position: absolute;
      right: 16px;
      top: 16px;
      width: 48px;
      height: 48px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0.2;
    }

    /* Table */
    .data-table {
      width: 100%;
      border-collapse: collapse;
    }
    .data-table th {
      text-align: left;
      padding: 16px 24px;
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: #64748b;
      border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    }
    .data-table td {
      padding: 16px 24px;
      font-size: 14px;
      color: #cbd5e1;
      border-bottom: 1px solid rgba(148, 163, 184, 0.05);
    }
    .data-table tr:hover td {
      background: rgba(99, 102, 241, 0.03);
    }

    /* Badge */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 600;
    }
    .badge-active { background: rgba(16, 185, 129, 0.15); color: #34d399; }
    .badge-paused { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
    .badge-completed { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
    .badge-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
    .badge-succeeded { background: rgba(16, 185, 129, 0.15); color: #34d399; }
    .badge-failed { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

    /* Loading Spinner */
    .spinner {
      width: 20px;
      height: 20px;
      border: 2px solid rgba(255,255,255,0.2);
      border-top-color: white;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    .spinner-lg {
      width: 40px;
      height: 40px;
      border-width: 3px;
    }

    /* Full-page loader */
    .page-loader {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 60vh;
    }

    /* Stripe Elements */
    .stripe-element {
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid rgba(148, 163, 184, 0.15);
      padding: 14px 16px;
      border-radius: 12px;
      transition: border-color 0.3s;
    }
    .stripe-element.StripeElement--focus {
      border-color: #6366f1;
      box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    }

    /* Animations */
    .fade-in {
      animation: fadeIn 0.5s ease-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .sidebar { transform: translateX(-100%); }
      .sidebar.open { transform: translateX(0); }
      .main-content { margin-left: 0; padding: 16px; }
    }

    /* View sections — hidden by default */
    .view-section { display: none; }
    .view-section.active { display: block; }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #475569; }

    /* Label */
    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: #94a3b8;
      margin-bottom: 6px;
    }

    /* Donation Amount Selector */
    .amount-btn {
      padding: 12px 20px;
      border-radius: 12px;
      border: 1px solid rgba(148, 163, 184, 0.15);
      background: rgba(30, 41, 59, 0.5);
      color: #e2e8f0;
      font-weight: 600;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.2s;
      font-family: 'Inter', sans-serif;
    }
    .amount-btn:hover, .amount-btn.selected {
      border-color: #6366f1;
      background: rgba(99, 102, 241, 0.15);
      color: #818cf8;
    }

    /* Floating orbs for login bg */
    .orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.15;
      animation: floatOrb 20s infinite ease-in-out;
    }
    @keyframes floatOrb {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(30px, -40px) scale(1.1); }
      66% { transform: translate(-20px, 20px) scale(0.9); }
    }

    /* Tab Styles */
    .tab-btn {
      padding: 10px 20px;
      font-size: 14px;
      font-weight: 500;
      color: #94a3b8;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: all 0.2s;
      background: none;
      border-top: none;
      border-left: none;
      border-right: none;
      font-family: 'Inter', sans-serif;
    }
    .tab-btn:hover { color: #e2e8f0; }
    .tab-btn.active {
      color: #818cf8;
      border-bottom-color: #6366f1;
    }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* Empty state */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: #64748b;
    }
    .empty-state i { margin-bottom: 16px; }

    /* Landing Page Styles */
    .landing-nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 50;
      background: rgba(2, 6, 23, 0.8);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    }
    .landing-nav-inner {
      max-width: 1280px;
      margin: 0 auto;
      padding: 16px 32px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .feature-card {
      background: rgba(30, 41, 59, 0.5);
      border: 1px solid rgba(148, 163, 184, 0.08);
      border-radius: 20px;
      padding: 32px;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .feature-card:hover {
      transform: translateY(-4px);
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: 0 20px 60px rgba(99, 102, 241, 0.08);
    }
    .step-number {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 18px;
      flex-shrink: 0;
    }
    .glow-line {
      height: 2px;
      background: linear-gradient(90deg, transparent, #6366f1, #a78bfa, transparent);
      opacity: 0.4;
    }
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }

    /* Guided Walkthrough Styles */
    .tour-highlight {
      position: relative !important;
      z-index: 10005 !important; background: rgba(16, 185, 129, 0.05) !important; /* increased to be above backdrop */
      outline: 4px solid #10b981 !important;
      outline-offset: 4px;
      box-shadow: 0 0 25px 8px rgba(16, 185, 129, 0.45) !important;
      pointer-events: auto !important;
      animation: pulseHighlight 2s infinite !important;
    }
    @keyframes pulseHighlight {
      0% { outline-color: #10b981; box-shadow: 0 0 25px 6px rgba(16, 185, 129, 0.45); }
      50% { outline-color: #818cf8; box-shadow: 0 0 35px 12px rgba(129, 140, 248, 0.6); }
      100% { outline-color: #10b981; box-shadow: 0 0 25px 6px rgba(16, 185, 129, 0.45); }
    }
    #tour-backdrop {
      display: none !important;
    }
    #tour-bubble {
      transition: top 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease, transform 0.25s ease;
    }

    /* FAQ Section */
    .faq-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Print Reports Styling */
    @media print {
      body * {
        visibility: hidden;
      }
      #print-report-container, #print-report-container * {
        visibility: visible;
      }
      #print-report-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
      }
      .glass-card {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
      }
      body {
        background: #fff !important;
        color: #000 !important;
      }
      .print-page-break {
        page-break-before: always;
      }
    }
  
      /* Hardcore lock */
      body.tour-locked { pointer-events: none !important; }
      body.tour-locked #tour-bubble { pointer-events: auto !important; }