  :root {
    --red: #C0392B;
    --red-dark: #922B21;
    --red-light: #F1948A;
    --teal: #1A6B5E;
    --teal-light: #5C8A84;
    --teal-pale: #D5EAE7;
    --cream: #FDF6F0;
    --white: #FFFFFF;
    --gray: #6B7280;
    --gray-light: #F3F4F6;
    --dark: #1C1C1E;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--dark);
    min-height: 100vh;
  }

  /* ===== HEADER ===== */
  header {
    background: linear-gradient(135deg, #1C1C1E 0%, #2D1B1B 60%, #922B21 100%);
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }

  .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .logo-drop {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }

  .logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 1px;
  }

  .logo-text h1 span { color: var(--red-light); }

  .logo-text p {
    font-size: 10px;
    letter-spacing: 3px;
    color: #aaa;
    text-transform: uppercase;
    margin-top: 2px;
  }

  nav {
    display: flex;
    gap: 6px;
  }

  nav button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
  }

  nav button:hover, nav button.active {
    background: var(--red);
    border-color: var(--red);
  }

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(160deg, #2D1B1B 0%, #1C1C1E 40%, #0D3B34 100%);
    color: white;
    padding: 60px 24px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .bld{ margin: 0px; padding: 0px; position: absolute; right: 0; bottom: -5px; }
  .bld img{ margin: 0px; padding: 0px; max-width: 100%; }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(192,57,43,0.15) 0%, transparent 60%),
                radial-gradient(circle at 80% 50%, rgba(26,107,94,0.12) 0%, transparent 60%);
  }

  .hero-content { position: relative; max-width: 650px; margin: 0 auto; }

  .hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero h2 em { color: var(--red-light); font-style: normal; }

  .hero p {
    font-size: 15px;
    color: #bbb;
    margin-bottom: 32px;
    line-height: 1.7;
  }

  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 10px;
  }

  .hero-stat { text-align: center; }
  .hero-stat .num {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--red-light);
  }
  .hero-stat .lbl { font-size: 11px; color: #999; letter-spacing: 2px; text-transform: uppercase; }

  /* ===== TABS ===== */
  .tab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .section { display: none; padding: 40px 0 60px; }
  .section.active { display: block; }

  /* ===== SEARCH SECTION ===== */
  .search-box {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 32px;
  }

  .search-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--red-dark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .search-title svg { width: 28px; height: 28px; }

  .search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }

  .search-row input, .search-row select {
    flex: 1;
    min-width: 180px;
    padding: 14px 18px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: var(--gray-light);
    transition: border-color 0.2s;
    outline: none;
  }

  .search-row input:focus, .search-row select:focus {
    border-color: var(--red);
    background: white;
  }

  .btn-search {
    background: var(--red);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }

  .btn-search:hover { background: var(--red-dark); transform: translateY(-1px); }

  /* Results table */
  .results-area { margin-top: 8px; }

  .results-count {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 12px;
    padding-left: 4px;
  }

  .table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: var(--shadow); }

  table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
  }

  thead tr {
    background: linear-gradient(90deg, var(--red-dark), var(--red));
    color: white;
  }

  thead th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  tbody tr {
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.15s;
  }

  tbody tr:hover { background: #FEF2F2; }
  tbody tr:last-child { border-bottom: none; }

  tbody td {
    padding: 14px 18px;
    color: var(--dark);
  }

  .badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .badge-red { background: #FEE2E2; color: var(--red-dark); }
  .badge-teal { background: var(--teal-pale); color: var(--teal); }

  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
  }
  .empty-state .big { font-size: 48px; margin-bottom: 12px; }
  .empty-state p { font-size: 15px; }

  /* ===== REGISTER SECTION ===== */
  .register-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }

  @media (max-width: 768px) {
    .register-wrap { grid-template-columns: 1fr; }
    nav button { padding: 7px 12px; font-size: 12px; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 24px; }
  }

  .register-form {
    background: white;
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-lg);
  }

  .form-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .form-group {
    margin-bottom: 18px;
  }

  .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
  }

  .form-group input, .form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: var(--gray-light);
    transition: border-color 0.2s;
    outline: none;
  }

  .form-group input:focus, .form-group select:focus {
    border-color: var(--teal);
    background: white;
  }

  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  .btn-register {
    width: 100%;
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    letter-spacing: 0.5px;
  }

  .btn-register:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,107,94,0.3); }

  .register-info {
    background: linear-gradient(135deg, #2D1B1B, #1C1C1E);
    border-radius: 20px;
    padding: 36px;
    color: white;
  }

  .register-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--red-light);
  }

  .info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(192,57,43,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
  }

  .info-item h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
  .info-item p { font-size: 13px; color: #aaa; line-height: 1.5; }

  /* ===== DASHBOARD SECTION ===== */
  .dash-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 28px;
  }

  .dash-title span { color: var(--red); }

  .blood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
  }

  .blood-card {
    background: white;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
  }

  .blood-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-light);
  }

  .blood-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
  }

  .blood-type {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
  }

  .blood-count {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
  }

  .blood-label { font-size: 11px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; }

  .dash-total {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: white;
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(192,57,43,0.3);
  }

  .dash-total .big-num {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
  }

  .dash-total .desc { font-size: 14px; color: rgba(255,255,255,0.8); margin-top: 4px; }
  .dash-total .right { text-align: right; }
  .dash-total .right p { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 6px; }

  /* Bar chart */
  .chart-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
  }

  .chart-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
  }

  .bar-chart { display: flex; flex-direction: column; gap: 10px; }

  .bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .bar-label {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--red);
    width: 44px;
    text-align: right;
    flex-shrink: 0;
  }

  .bar-track {
    flex: 1;
    background: #F3F4F6;
    border-radius: 50px;
    height: 28px;
    overflow: hidden;
  }

  .bar-fill {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--red-dark), var(--red-light));
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    min-width: 36px;
  }

  .bar-num {
    font-size: 12px;
    font-weight: 700;
    color: white;
  }

  /* Toast notification */
  .toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--teal);
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
    max-width: 300px;
  }

  .toast.show { transform: translateY(0); opacity: 1; }

  /* ===== RECENT DONORS ===== */
  .recent-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
  }

  .recent-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
  }

  .donor-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
  }

  .donor-item:last-child { border-bottom: none; }

  .donor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--red-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }

  .donor-name { font-weight: 600; font-size: 14px; color: var(--dark); }
  .donor-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }

  .footer {
    background: #1C1C1E;
    color: #888;
    text-align: center;
    padding: 24px;
    font-size: 13px;
    margin-top: 20px;
  }

  .footer span { color: var(--red-light); }

@media only screen and (max-width: 1024px) {
.logo-area{ display: block; }
.header-inner{padding: 15px 15px;}
.logo-text h1{ font-size: 20px; letter-spacing: 0; }
.logo-text p{ font-size: 8px; letter-spacing: 1px !important; }
.bld{ display: none; }
}