/* ===== RESET & BASE ===== */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    
    html {
      scroll-behavior: smooth;
    }
    
    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background-color: #0a0a0a;
      color: #e0e0e0;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }
    
    /* ===== CONTAINER ===== */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      width: 100%;
    }
    
    /* ===== HEADER ===== */
    header {
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
      border-bottom: 1px solid #333333;
      padding: 60px 0 40px;
      margin-bottom: 20px;
    }
    
    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 40px;
    }
    
    .header-info h1 {
      font-size: 48px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }
    
    .header-info p {
      font-size: 16px;
      color: #b0b0b0;
      margin-bottom: 20px;
    }
    
    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #1a3a2a;
      border: 1px solid #00ff88;
      border-radius: 6px;
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      color: #00ff88;
    }
    
    .status-indicator {
      display: inline-block;
      width: 8px;
      height: 8px;
      background-color: #00ff88;
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
      0%, 100% {
        opacity: 1;
      }
      50% {
        opacity: 0.5;
      }
    }
    
    .back-button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: #1a1a1a;
      border: 1px solid #333333;
      color: #00ff88;
      padding: 10px 20px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s ease;
    }
    
    .back-button:hover {
      background: #252525;
      border-color: #00ff88;
    }
    
    /* ===== MAIN CONTENT ===== */
    main {
      flex: 1;
    }
    
    /* ===== SERVICES SECTION ===== */
    .services-section {
      margin-bottom: 20px;
    }
    
    .services-section:last-of-type {
      margin-top: -40px;
    }
    
    .section-title {
      font-size: 28px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }
    
    .section-subtitle {
      font-size: 14px;
      color: #b0b0b0;
      margin-bottom: 30px;
    }
    
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 20px;
    }
    
    .service-card {
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
      border: 1px solid #333333;
      border-radius: 8px;
      padding: 24px;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .service-card:hover {
      border-color: #00ff88;
      box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    }
    
    .service-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 12px;
    }
    
    .service-name {
      font-size: 18px;
      font-weight: 600;
      color: #ffffff;
    }
    
    .service-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      padding: 4px 12px;
      border-radius: 4px;
      white-space: nowrap;
    }
    
    .status-operational {
      background: #1a3a2a;
      color: #00ff88;
    }
    
    .status-degraded {
      background: #3a2a1a;
      color: #ffcc00;
    }
    
    .status-offline {
      background: #3a1a1a;
      color: #ff3333;
    }
    
    .service-description {
      font-size: 13px;
      color: #b0b0b0;
    }
    
    .service-uptime {
      font-size: 13px;
      color: #909090;
      padding-top: 8px;
      border-top: 1px solid #222222;
    }
    
    /* ===== INCIDENTS SECTION ===== */
    .incidents-section {
      margin-bottom: 80px;
    }
    
    .timeline {
      border-left: 2px solid #333333;
      padding-left: 30px;
      position: relative;
    }
    
    .incident {
      margin-bottom: 40px;
      position: relative;
    }
    
    .incident::before {
      content: '';
      position: absolute;
      left: -38px;
      top: 0;
      width: 12px;
      height: 12px;
      background: #00ff88;
      border-radius: 50%;
      border: 3px solid #0a0a0a;
    }
    
    .incident.resolved::before {
      background: #00ff88;
    }
    
    .incident-date {
      font-size: 12px;
      color: #909090;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 4px;
    }
    
    .incident-title {
      font-size: 16px;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 8px;
    }
    
    .incident-description {
      font-size: 14px;
      color: #b0b0b0;
      margin-bottom: 8px;
    }
    
    .incident-severity {
      display: inline-block;
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: 4px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      margin-top: 8px;
    }
    
    .severity-low {
      background: #1a3a2a;
      color: #00ff88;
    }
    
    .severity-medium {
      background: #3a2a1a;
      color: #ffcc00;
    }
    
    .severity-high {
      background: #3a1a1a;
      color: #ff3333;
    }
    
    /* ===== SLA SECTION ===== */
    .sla-section {
      margin-bottom: 80px;
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
      border: 1px solid #333333;
      border-radius: 8px;
      padding: 40px;
    }
    
    .sla-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-top: 30px;
    }
    
    .sla-metric {
      text-align: center;
    }
    
    .sla-value {
      font-size: 36px;
      font-weight: 700;
      color: #00ff88;
      margin-bottom: 8px;
    }
    
    .sla-label {
      font-size: 14px;
      color: #b0b0b0;
    }
    
    /* ===== SUPPORT SECTION ===== */
    .support-section {
      background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
      border: 1px solid #333333;
      border-radius: 8px;
      padding: 40px;
      margin-bottom: 20px;
      text-align: center;
    }
    
    .support-title {
      font-size: 24px;
      font-weight: 700;
      color: #ffffff;
      margin-bottom: 12px;
    }
    
    .support-description {
      font-size: 15px;
      color: #b0b0b0;
      margin-bottom: 24px;
    }
    
    .support-buttons {
      display: flex;
      justify-content: center;
      gap: 16px;
      flex-wrap: wrap;
    }
    
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
    }
    
    .btn-primary {
      background: #00ff88;
      color: #0a0a0a;
    }
    
    .btn-primary:hover {
      background: #00e87c;
      box-shadow: 0 4px 16px rgba(0, 255, 136, 0.2);
    }
    
    .btn-secondary {
      background: #1a1a1a;
      color: #00ff88;
      border: 1px solid #00ff88;
    }
    
    .btn-secondary:hover {
      background: #252525;
    }
    
    /* ===== FOOTER ===== */
    footer {
      background: linear-gradient(135deg, #0f0f0f 0%, #000000 100%);
      border-top: 1px solid #333333;
      padding: 60px 0 40px;
      margin-top: 100px;
    }
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      margin-bottom: 40px;
    }
    
    .footer-column h4 {
      font-size: 14px;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 16px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .footer-column ul {
      list-style: none;
    }
    
    .footer-column li {
      margin-bottom: 12px;
    }
    
    .footer-column a {
      color: #b0b0b0;
      text-decoration: none;
      font-size: 13px;
      transition: color 0.2s ease;
    }
    
    .footer-column a:hover {
      color: #00ff88;
    }
    
    .footer-bottom {
      border-top: 1px solid #333333;
      padding-top: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
      font-size: 13px;
      color: #909090;
    }
    
    .footer-logo {
      font-size: 18px;
      font-weight: 700;
      color: #ff9500;
      letter-spacing: -0.5px;
    }
    
    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .header-content {
        flex-direction: column;
        gap: 20px;
      }
      
      .header-info h1 {
        font-size: 32px;
      }
      
      .services-grid {
        grid-template-columns: 1fr;
      }
      
      .sla-grid {
        grid-template-columns: 1fr;
      }
      
      .footer-bottom {
        flex-direction: column;
      }
    }
    
    @media (max-width: 480px) {
      header {
        padding: 40px 0 30px;
        margin-bottom: 40px;
      }
      
      .header-info h1 {
        font-size: 24px;
      }
      
      .section-title {
        font-size: 20px;
      }
      
      .container {
        padding: 0 16px;
      }

      /* Phase 2 CSP — inline style replacements */
      #geo-location { display: flex; align-items: center; }
      .u-status-icon-inline { font-size: 20px; margin-left: 4px; color: orange; }
      #user-ip { font-size: 14px; margin-left: 12px; }
      #server-location { color: #b0b0b0; font-size: 14px; margin: 4px 0 0 0; }
    }

    /* ===== GITHUB STATUS BUTTON ===== */
    .btn-check-github-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 4px;
      padding: 8px 16px;
      background: transparent;
      border: 1px solid #333333;
      border-radius: 6px;
      color: #00ff88;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .btn-check-github-status:hover {
      border-color: #00ff88;
      background: rgba(0, 255, 136, 0.05);
    }

    .btn-check-github-status .material-icons {
      font-size: 16px;
    }

    /* ===== GITHUB STATUS MODAL ===== */
    .github-status-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .github-status-modal-overlay.is-open {
      display: flex;
    }

    .github-status-modal-dialog {
      background: #1a1a1a;
      border: 1px solid #333333;
      border-radius: 10px;
      width: 100%;
      max-width: 480px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    }

    .github-status-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 1px solid #2a2a2a;
    }

    .github-status-modal-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .github-status-modal-title {
      font-size: 18px;
      font-weight: 700;
      color: #ffffff;
      margin: 0;
    }

    .github-status-modal-close {
      display: flex;
      align-items: center;
      justify-content: center;
      background: transparent;
      border: none;
      color: #909090;
      cursor: pointer;
      padding: 4px;
      border-radius: 4px;
      transition: color 0.2s ease;
    }

    .github-status-modal-close:hover {
      color: #ffffff;
    }

    .github-status-modal-body {
      padding: 28px 24px 24px;
      min-height: 100px;
    }

    .github-status-loading {
      display: flex;
      align-items: center;
      gap: 12px;
      color: #b0b0b0;
      font-size: 14px;
    }

    .github-status-loading.is-hidden {
      display: none;
    }

    .github-status-result {
      display: none;
      flex-direction: column;
      gap: 16px;
    }

    .github-status-result.is-visible {
      display: flex;
    }

    .github-status-error {
      display: none;
      align-items: flex-start;
      gap: 12px;
      font-size: 14px;
    }

    .github-status-error.is-visible {
      display: flex;
    }

    .github-status-error p {
      margin: 0;
      color: #b0b0b0;
    }

    .github-status-error .material-icons {
      color: #ff9500;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .github-status-pill-row {
      display: flex;
      align-items: center;
    }

    .github-status-pill {
      display: inline-flex;
      align-items: center;
      padding: 8px 18px;
      border-radius: 6px;
      font-size: 15px;
      font-weight: 700;
    }

    .github-status-pill--none {
      background: #1a3a2a;
      color: #00ff88;
    }

    .github-status-pill--minor {
      background: #2a2a1a;
      color: #ffcc00;
    }

    .github-status-pill--major {
      background: #3a2010;
      color: #ff9500;
    }

    .github-status-pill--critical {
      background: #3a1a1a;
      color: #ff3333;
    }

    .github-status-updated {
      font-size: 12px;
      color: #909090;
      margin: 0;
    }
