
    :root {
      --bg-dark: #200B47; 
      --bg-card: #371775; 
      --accent-gold: #FFD23F; 
      --accent-glow: rgba(255, 210, 63, 0.6);
      --accent-border: rgba(255, 210, 63, 0.35);
      --accent-pink: #FF2E93; 
      --accent-pink-glow: rgba(255, 46, 147, 0.6);
      --accent-blue: #1877F2;
      --text-primary: #FFFFFF; 
      --text-muted: #D1C4E9; 
      --glass-bg: rgba(55, 23, 117, 0.75);
      --glass-border: rgba(255, 255, 255, 0.15);
      --font-main: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Plus Jakarta Sans", sans-serif;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: var(--font-main);
      -webkit-tap-highlight-color: transparent;
      -webkit-font-smoothing: antialiased;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-primary);
      overflow-x: hidden;
      padding-bottom: max(40px, env(safe-area-inset-bottom)); 
      padding-top: max(10px, env(safe-area-inset-top));
      min-height: 100vh;
    }

    .app-container {
      max-width: 650px;
      margin: 0 auto;
      padding: 0 12px;
    }

    /* iOS Sticky Navigation Bar */
    .ios-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(32, 11, 71, 0.85);
      backdrop-filter: blur(25px) saturate(180%);
      -webkit-backdrop-filter: blur(25px) saturate(180%);
      border-bottom: 0.5px solid var(--glass-border);
      padding: 12px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .back-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      border: 0.5px solid var(--glass-border);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
      font-size: 0.95rem;
      transition: transform 0.2s ease;
    }

    .back-btn:active {
      transform: scale(0.9);
    }

    .header-title {
      font-size: 1.15rem;
      font-weight: 900;
      letter-spacing: -0.3px;
      background: linear-gradient(135deg, #FFFFFF 40%, var(--accent-gold) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .mark-read-btn {
      background: rgba(255, 210, 63, 0.15);
      border: 0.5px solid var(--accent-border);
      color: var(--accent-gold);
      font-size: 0.7rem;
      font-weight: 800;
      padding: 6px 12px;
      border-radius: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s ease;
    }

    .mark-read-btn:active {
      transform: scale(0.95);
      opacity: 0.8;
    }

    /* iOS Segmented Control (Tabs) */
    .segmented-control {
      display: flex;
      background: rgba(15, 4, 34, 0.6);
      padding: 3px;
      border-radius: 14px;
      border: 0.5px solid var(--glass-border);
      margin-bottom: 16px;
      gap: 2px;
      overflow-x: auto;
      scrollbar-width: none;
    }

    .segmented-control::-webkit-scrollbar { display: none; }

    .segment-btn {
      flex: 1;
      min-width: 80px;
      padding: 8px 10px;
      border: none;
      background: transparent;
      color: var(--text-muted);
      font-size: 0.72rem;
      font-weight: 800;
      border-radius: 11px;
      cursor: pointer;
      text-align: center;
      white-space: nowrap;
      transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .segment-btn.active {
      background: var(--bg-card);
      color: var(--accent-gold);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      border: 0.5px solid var(--accent-border);
    }

    /* Notification List Styling */
    .notif-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .notif-card {
      position: relative;
      background: var(--bg-card);
      border-radius: 20px;
      padding: 14px;
      border: 0.5px solid var(--glass-border);
      display: flex;
      gap: 12px;
      align-items: flex-start;
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      transition: transform 0.2s ease, background-color 0.2s ease;
      cursor: pointer;
      text-decoration: none;
      color: inherit;
    }

    .notif-card:active {
      transform: scale(0.98);
      background: rgba(55, 23, 117, 0.95);
    }

    .notif-card.unread {
      border-color: var(--accent-border);
      background: linear-gradient(135deg, rgba(55, 23, 117, 0.95) 0%, rgba(32, 11, 71, 0.9) 100%);
    }

    .notif-card.unread::after {
      content: '';
      position: absolute;
      top: 14px;
      right: 14px;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent-pink);
      box-shadow: 0 0 8px var(--accent-pink-glow);
    }

    /* Icon Ring Avatar */
    .notif-icon-ring {
      position: relative;
      width: 42px;
      height: 42px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1.05rem;
    }

    .icon-comment {
      background: rgba(255, 210, 63, 0.15);
      border: 1px solid var(--accent-gold);
      color: var(--accent-gold);
    }

    .icon-message {
      background: rgba(24, 119, 242, 0.15);
      border: 1px solid var(--accent-blue);
      color: var(--accent-blue);
    }

    .icon-user {
      background: rgba(255, 46, 147, 0.15);
      border: 1px solid var(--accent-pink);
      color: var(--accent-pink);
    }

    .icon-system {
      background: rgba(0, 230, 118, 0.15);
      border: 1px solid #00E676;
      color: #00E676;
    }

    .notif-content {
      flex-grow: 1;
      min-width: 0;
      padding-right: 12px;
    }

    .notif-header-text {
      font-size: 0.85rem;
      font-weight: 800;
      line-height: 1.3;
      margin-bottom: 3px;
      color: #fff;
    }

    .notif-header-text span {
      color: var(--accent-gold);
    }

    .notif-body-text {
      font-size: 0.75rem;
      color: var(--text-muted);
      line-height: 1.35;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-bottom: 6px;
    }

    .notif-timestamp {
      font-size: 0.62rem;
      font-weight: 700;
      color: rgba(255, 255, 255, 0.45);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* Empty state loader */
    .app-loader {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 180px;
    }

    .spinner {
      width: 32px;
      height: 32px;
      border: 3px solid rgba(255, 210, 63, 0.2);
      border-top-color: var(--accent-gold);
      border-radius: 50%;
      animation: spin 0.8s infinite linear;
    }

    @keyframes spin { to { transform: rotate(360deg); } }

    .empty-notif-box {
      text-align: center;
      padding: 50px 20px;
      color: var(--text-muted);
    }

    .empty-notif-box i {
      font-size: 2.8rem;
      color: var(--accent-gold);
      margin-bottom: 12px;
      opacity: 0.8;
    }

    .empty-notif-box h4 {
      font-size: 0.95rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 4px;
    }

    .hidden { display: none !important; }
  