/* ===== BLOODLINE BANGLADESH — Premium Web App CSS v3 ===== */
/* ওনার: Md Tasin Chy */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: #c41e3a;
  --red-dark: #8b0000;
  --red-light: #e63946;
  --red-soft: #fde8e8;
  --gold: #b8860b;
  --gray-dark: #1a1a2e;
  --gray: #555;
  --gray-light: #f5f5f7;
  --gray-border: #e0e0e0;
  --white: #ffffff;
  --green: #1a8a3a;
  --green-dark: #146e2c;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Hind Siliguri","Segoe UI",system-ui,sans-serif;
  color: var(--gray-dark);
  background: var(--gray-light);
  line-height: 1.8;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.page { animation: fadeUp 0.4s ease; }

/* ===== Header ===== */
.site-header {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(139,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  animation: pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.35rem; font-weight: 700; letter-spacing: 1px;
  line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.brand-tagline { font-size: 0.8rem; opacity: 0.9; }

.main-nav { display: flex; gap: 4px; }

.main-nav a {
  color: var(--white); text-decoration: none;
  font-weight: 500; font-size: 0.9rem;
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: var(--transition); white-space: nowrap; position: relative;
  cursor: pointer;
}
.main-nav a::after {
  content: ""; position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 2px; background: var(--white);
  transition: var(--transition); transform: translateX(-50%);
}
.main-nav a:hover::after { width: 60%; }
.main-nav a:hover { background: rgba(255,255,255,0.15); }

.auth-area { display: flex; align-items: center; gap: 10px; }

.btn-login {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  white-space: nowrap; cursor: pointer;
}
.btn-login:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 28px; height: 3px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-light) 100%);
  color: var(--white); padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 70s-20-16-20-33a11 11 0 0 1 20-7 11 11 0 0 1 20 7c0 17-20 33-20 33z' fill='%23ffffff' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 140px; animation: slideIn 1s ease;
}
.hero::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px; background: linear-gradient(to bottom, transparent, var(--gray-light));
}
.hero-inner { position: relative; z-index: 1; animation: fadeUp 0.8s ease; }
.hero-title { font-size: 2.3rem; font-weight: 700; margin-bottom: 18px; line-height: 1.4; text-shadow: 0 3px 10px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.1rem; max-width: 680px; margin: 0 auto 36px; opacity: 0.95; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== How It Works ===== */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.how-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--gray-border);
  transition: var(--transition);
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.how-icon { font-size: 2.5rem; margin-bottom: 14px; }
.how-card h4 { font-size: 1.1rem; color: var(--gray-dark); margin-bottom: 8px; }
.how-card p { font-size: 0.9rem; color: var(--gray); }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: var(--transition); text-align: center; position: relative; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 0; height: 0; background: rgba(255,255,255,0.2);
  border-radius: 50%; transform: translate(-50%,-50%);
  transition: width 0.5s, height 0.5s;
}
.btn:hover::before { width: 300px; height: 300px; }

.btn-primary { background: var(--white); color: var(--red); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); transform: translateY(-3px); }

.btn-block {
  width: 100%; display: block; margin-top: 10px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); box-shadow: 0 4px 15px rgba(196,30,58,0.3);
}
.btn-block:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(196,30,58,0.4); }

.btn-call {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white); padding: 11px 22px; font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(26,138,58,0.3);
}
.btn-call:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(26,138,58,0.4); }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--gray-dark);
  text-align: center; margin-bottom: 10px; position: relative;
}
.section-title::after {
  content: ""; display: block; width: 70px; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  margin: 12px auto 0; border-radius: 2px;
}
.section-desc {
  text-align: center; color: var(--gray); margin-bottom: 40px;
  font-size: 1.02rem; max-width: 700px; margin-left: auto; margin-right: auto;
}

/* ===== Card & Form ===== */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 36px;
  border: 1px solid var(--gray-border); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); }
.form-card { max-width: 760px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; color: var(--gray-dark); }
.req { color: var(--red); }

.field input, .field select, .field textarea {
  padding: 13px 16px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  color: var(--gray-dark); background: #fafafa; transition: var(--transition); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.1); background: var(--white);
}
.field input::placeholder { color: #b0b0b0; }

/* ===== Auth Tabs ===== */
.auth-tabs {
  display: flex; justify-content: center; gap: 0; margin-bottom: 28px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.auth-tab {
  flex: 1; padding: 14px 24px; border: none; background: #eee;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  color: var(--gray); cursor: pointer; transition: var(--transition);
}
.auth-tab:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.auth-tab:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.auth-tab.active {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--white); box-shadow: 0 4px 12px rgba(196,30,58,0.3);
}

/* ===== Profile ===== */
.profile-info { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--white); font-weight: 700;
  box-shadow: 0 4px 15px rgba(196,30,58,0.3);
}
.profile-details { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.4rem; font-weight: 700; color: var(--gray-dark); }
.profile-uid { font-size: 0.9rem; color: var(--gray); }
.profile-rank-box {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 20px; margin-top: 10px;
  font-weight: 600; font-size: 0.95rem;
}
.profile-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px; margin-top: 24px;
}
.profile-stat {
  background: var(--gray-light); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; border: 1px solid var(--gray-border);
}
.profile-stat h4 { font-size: 1.6rem; color: var(--red); margin-bottom: 4px; }
.profile-stat p { font-size: 0.85rem; color: var(--gray); }

.profile-edit-btn {
  background: var(--gray-light); color: var(--gray-dark);
  border: 1.5px solid var(--gray-border);
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); margin-top: 20px;
}
.profile-edit-btn:hover { border-color: var(--red); color: var(--red); }

/* ===== Donor Board ===== */
.disclaimer-box {
  max-width: 820px; margin: 0 auto 32px;
  background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
  border: 1px solid #ffc107; border-left: 5px solid var(--gold);
  border-radius: var(--radius); padding: 22px 26px;
  color: #7a5c00; font-size: 0.96rem; line-height: 1.7;
  box-shadow: 0 4px 15px rgba(255,193,7,0.15);
}
.disclaimer-box p { margin-bottom: 8px; }
.disclaimer-box strong { color: #5d4a00; }

.board-filter {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 24px; flex-wrap: wrap;
}
.board-filter label { font-weight: 600; color: var(--gray-dark); font-size: 0.95rem; }
.board-filter select, .board-filter input {
  padding: 11px 18px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
  background: var(--white); transition: var(--transition); box-shadow: var(--shadow-sm);
}
.board-filter select { cursor: pointer; }
.board-filter select:focus, .board-filter input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.1);
}

.search-user-box {
  display: flex; gap: 12px; max-width: 500px; margin: 0 auto 24px;
}
.search-user-box input {
  flex: 1; padding: 12px 18px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem;
  background: var(--white); box-shadow: var(--shadow-sm);
}
.search-user-box input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.1);
}
.search-user-box .btn { padding: 12px 28px; }

/* ===== Request Board & Cards ===== */
.request-board {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.req-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
  border-top: 5px solid var(--red); transition: var(--transition);
  position: relative; border-left: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border); border-bottom: 1px solid var(--gray-border);
  overflow: hidden;
}
.req-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
}
.req-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.req-card.urgency-now { background: linear-gradient(180deg, #fff8f8 0%, var(--white) 40%); }
.req-card.completed { opacity: 0.7; border-top-color: var(--green); }
.req-card.completed::before { background: linear-gradient(90deg, var(--green), #2ecc71); }

.req-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; gap: 12px; }
.req-patient { font-size: 1.2rem; font-weight: 700; color: var(--gray-dark); }
.req-blood-big {
  font-size: 1.35rem; font-weight: 700; color: var(--red);
  background: var(--red-soft); padding: 5px 16px; border-radius: 20px;
  white-space: nowrap; border: 1px solid rgba(196,30,58,0.2);
}
.req-info { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; font-size: 0.93rem; color: var(--gray); }
.req-info p { display: flex; gap: 8px; }
.req-info strong { color: var(--gray-dark); min-width: 75px; }

.rank-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
}

.req-urgency-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 600; }
.req-urgency-tag.now { background: #ffcccc; color: #cc0000; }

.req-actions { display: flex; gap: 12px; }
.req-actions .btn { flex: 1; }

.btn-call-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--transition); border: none; cursor: pointer;
  box-shadow: 0 3px 10px rgba(196,30,58,0.3);
}
.btn-call-red:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(196,30,58,0.4); }

.btn-done {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: 12px 22px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition); flex: 1;
  box-shadow: 0 3px 10px rgba(26,138,58,0.3);
}
.btn-done:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,138,58,0.4); }
.btn-done:disabled { background: #b0d8bf; cursor: not-allowed; box-shadow: none; }

.req-empty {
  grid-column: 1 / -1; text-align: center; padding: 48px;
  color: var(--gray); font-style: italic; background: var(--white);
  border-radius: var(--radius); border: 1px dashed var(--gray-border);
}

/* ===== Ambulance ===== */
.ambulance-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.amb-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 26px;
  border-left: 5px solid var(--red); transition: var(--transition);
  border-top: 1px solid var(--gray-border); border-right: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.amb-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-left-width: 8px; }
.amb-card h4 { font-size: 1.2rem; color: var(--gray-dark); margin-bottom: 8px; font-weight: 700; }
.amb-card .amb-area { color: var(--red); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.amb-card .amb-phone { color: var(--gray); font-size: 0.95rem; margin-bottom: 18px; }

/* ===== Messages ===== */
.msg-container {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  max-width: 900px; margin: 0 auto; height: 500px;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--gray-border);
}
.msg-sidebar { background: var(--white); border-right: 1px solid var(--gray-border); overflow-y: auto; }
.msg-sidebar input {
  width: 100%; padding: 14px 16px; border: none;
  border-bottom: 1px solid var(--gray-border);
  font-family: inherit; font-size: 0.95rem; background: #fafafa;
}
.msg-sidebar input:focus { outline: none; background: var(--white); }
.msg-user-item {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-border);
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
}
.msg-user-item:hover { background: var(--red-soft); }
.msg-user-item.active { background: var(--red-soft); border-left: 3px solid var(--red); }
.msg-user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.msg-user-info { flex: 1; min-width: 0; }
.msg-user-name { font-weight: 600; font-size: 0.9rem; color: var(--gray-dark); }
.msg-user-uid { font-size: 0.8rem; color: var(--gray); }

.msg-chat { display: flex; flex-direction: column; background: var(--gray-light); }
.msg-chat-header {
  padding: 16px 20px; background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  font-weight: 600; color: var(--gray-dark);
}
.msg-chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.msg-bubble {
  max-width: 70%; padding: 10px 16px; border-radius: 14px;
  font-size: 0.92rem; line-height: 1.5; word-wrap: break-word;
}
.msg-bubble.sent {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; align-self: flex-end; border-bottom-right-radius: 4px;
}
.msg-bubble.received {
  background: var(--white); color: var(--gray-dark);
  align-self: flex-start; border-bottom-left-radius: 4px;
  border: 1px solid var(--gray-border);
}
.msg-time { font-size: 0.72rem; color: #999; margin-top: 4px; }
.msg-chat-input {
  display: flex; gap: 8px; padding: 12px 16px;
  background: var(--white); border-top: 1px solid var(--gray-border);
}
.msg-chat-input input {
  flex: 1; padding: 12px 16px; border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
}
.msg-chat-input input:focus { outline: none; border-color: var(--red); }
.msg-chat-input .btn { padding: 12px 24px; font-size: 0.9rem; }

/* ===== Admin Panel ===== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin-bottom: 14px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 24px; text-align: center;
  border-top: 5px solid var(--red); transition: var(--transition);
  border-left: 1px solid var(--gray-border); border-right: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card h4 { font-size: 2.2rem; color: var(--red); margin-bottom: 6px; font-weight: 700; }
.stat-card p { font-size: 0.86rem; color: var(--gray); font-weight: 500; }

.sub-h4 { font-size: 1.25rem; color: var(--gray-dark); margin-bottom: 14px; font-weight: 700; }
.sub-empty {
  color: var(--gray); font-style: italic; padding: 24px;
  background: var(--white); border-radius: var(--radius-sm);
  text-align: center; border: 1px dashed var(--gray-border);
}
.table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--white);
  border: 1px solid var(--gray-border); margin-bottom: 24px;
}
.sub-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 600px; }
.sub-table th {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff; padding: 14px 12px; text-align: left; font-weight: 600; white-space: nowrap;
}
.sub-table td { padding: 12px; border-bottom: 1px solid var(--gray-border); color: var(--gray-dark); }
.sub-table tbody tr { transition: var(--transition); }
.sub-table tbody tr:hover { background: var(--red-soft); }
.sub-table a { color: var(--red); text-decoration: none; font-weight: 500; }
.sub-table a:hover { text-decoration: underline; }
.sub-time { font-size: 0.8rem; color: #999; white-space: nowrap; }
.blood-badge {
  display: inline-block; background: var(--red-soft); color: var(--red);
  font-weight: 700; padding: 3px 12px; border-radius: 20px;
  font-size: 0.85rem; border: 1px solid rgba(196,30,58,0.2);
}
.btn-del {
  background: linear-gradient(135deg, #cc0000 0%, #a30000 100%);
  color: #fff; border: none; padding: 7px 16px; border-radius: 6px;
  font-family: inherit; font-size: 0.85rem; cursor: pointer;
  transition: var(--transition); box-shadow: 0 2px 6px rgba(204,0,0,0.2);
}
.btn-del:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(204,0,0,0.3); }

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(135deg, var(--gray-dark) 0%, #0d0d1a 100%);
  color: #ccc; padding: 44px 0; text-align: center; position: relative;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-light), var(--red));
}
.footer-brand { font-size: 1.3rem; font-weight: 700; color: var(--white); margin-bottom: 8px; letter-spacing: 1px; }
.footer-credit { font-size: 0.98rem; margin-bottom: 8px; }
.footer-credit strong { color: var(--red-light); }
.footer-copy { font-size: 0.86rem; opacity: 0.6; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 36px; left: 50%;
  transform: translateX(-50%) translateY(140px);
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; padding: 18px 32px; border-radius: 12px;
  font-size: 1.02rem; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  opacity: 0; transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
  z-index: 9999; max-width: 90%; text-align: center; line-height: 1.5;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .brand-title { font-size: 1.05rem; }
  .brand-tagline { font-size: 0.72rem; }
  .brand-logo { width: 42px; height: 42px; }

  .main-nav {
    position: fixed; top: 64px; right: 0;
    background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%);
    flex-direction: column; width: 260px; padding: 20px; gap: 6px;
    transform: translateX(100%); transition: transform 0.3s ease;
    box-shadow: -6px 0 20px rgba(0,0,0,0.25); height: calc(100vh - 64px); overflow-y: auto;
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 14px 18px; border-radius: var(--radius-sm); }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .auth-area { display: none; }
  .main-nav.open ~ .auth-area { display: flex; }

  .hero { padding: 55px 0; }
  .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: 0.98rem; }
  .hero-actions .btn { width: 100%; max-width: 340px; }

  .grid-2 { grid-template-columns: 1fr; }
  .section-title { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .card { padding: 26px 20px; }
  .request-board { grid-template-columns: 1fr; }
  .ambulance-list { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .how-it-works { grid-template-columns: 1fr; }

  .msg-container { grid-template-columns: 1fr; height: auto; }
  .msg-sidebar { height: 200px; }
  .msg-chat { height: 400px; }

  .board-filter { flex-direction: column; align-items: stretch; }
  .board-filter select, .board-filter input { width: 100%; }
}

@media (max-width: 420px) {
  .brand-logo { width: 38px; height: 38px; }
  .brand-logo svg { width: 26px; height: 26px; }
  .hero-title { font-size: 1.35rem; }
  .hero-sub { font-size: 0.9rem; }
  .section-title { font-size: 1.3rem; }
  .stat-card h4 { font-size: 1.8rem; }
  .profile-avatar { width: 64px; height: 64px; font-size: 1.5rem; }
}