/* ================================================================
   AED CARDIOLOGY BOOKS STORE — PLUGIN STYLESHEET
   Author : Dr. A M Thirugnanam, MD, MSICP, FSCAI, Ph.D.
   Version: 1.0.0
   ================================================================ */

/* ---------- CSS VARIABLES ---------- */
#aed-wrap {
  --blue-dark:   #1a3c6e;
  --blue-mid:    #2563eb;
  --blue-light:  #dbeafe;
  --green-mid:   #16a34a;
  --green-light: #dcfce7;
  --gold-light:  #fef3c7;
  --gold-mid:    #d97706;
  --red-mid:     #dc2626;
  --red-light:   #fee2e2;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-800:    #1f2937;
  --white:       #ffffff;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
  --shadow-md:   0 4px 12px rgba(0,0,0,.15);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.18);
  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.25s ease;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--gray-800);
  box-sizing: border-box;
}

#aed-wrap *, #aed-wrap *::before, #aed-wrap *::after { box-sizing: inherit; margin: 0; padding: 0; }

/* ---------- NAV ---------- */
.aed-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--blue-dark);
  box-shadow: var(--shadow-md);
}
.aed-nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
}
.aed-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
}
.aed-logo-icon { color: #f87171; font-size: 1.4rem; }
.aed-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}
.aed-nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.aed-nav-links a {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .875rem;
  padding: .4rem .7rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.aed-nav-links a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.aed-nav-right { display: flex; align-items: center; gap: .5rem; margin-left: .5rem; }

/* Currency Toggle */
.aed-currency-toggle { display: flex; background: rgba(255,255,255,.1); border-radius: 20px; overflow: hidden; }
.aed-curr-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .7rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.aed-curr-btn.active { background: rgba(255,255,255,.25); color: var(--white); }

/* Cart / Admin buttons */
.aed-cart-btn, .aed-admin-btn {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: background var(--transition);
}
.aed-cart-btn:hover, .aed-admin-btn:hover { background: rgba(255,255,255,.25); }
.aed-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #f87171;
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive nav */
@media (max-width: 768px) {
  .aed-hamburger { display: block; }
  .aed-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--blue-dark);
    padding: .5rem 1rem 1rem;
    gap: .25rem;
  }
  .aed-nav-links.open { display: flex; }
  .aed-nav-inner { position: relative; flex-wrap: wrap; }
}

/* ---------- TOAST ---------- */
.aed-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--gray-800);
  color: var(--white);
  padding: .75rem 1.5rem;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.aed-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.aed-toast.error   { background: var(--red-mid); }
.aed-toast.info    { background: var(--blue-mid); }
.aed-toast.success { background: var(--green-mid); }

/* ---------- PAGES ---------- */
.aed-page { display: none; }
.aed-page.active { display: block; }

/* ---------- HERO ---------- */
.aed-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, #1e4fa0 60%, #2563eb 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-height: 440px;
  text-align: left;
}
.aed-hero-content { max-width: 580px; }
.aed-hero-tag { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.aed-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.aed-hero-sub { font-size: 1rem; color: rgba(255,255,255,.85); line-height: 1.7; margin-bottom: 2rem; }
.aed-hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.aed-hero-img { display: flex; }
.aed-hero-badge {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
}
@media (max-width: 768px) {
  .aed-hero { flex-direction: column; text-align: center; padding: 3rem 1rem 2.5rem; gap: 2rem; min-height: auto; }
  .aed-hero-btns { justify-content: center; }
  .aed-hero-img { display: none; }
}

/* ---------- STATS BAR ---------- */
.aed-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.aed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--gray-200);
}
.aed-stat:last-child { border-right: none; }
.aed-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--blue-dark); }
.aed-stat span:last-child { font-size: .8rem; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; }

/* ---------- SECTIONS ---------- */
.aed-section { padding: 3.5rem 1.5rem; max-width: 1280px; margin: 0 auto; }
.aed-section-alt { background: var(--gray-50); max-width: 100%; padding: 3.5rem 1.5rem; }
.aed-section-alt .aed-section { padding: 0; max-width: 1280px; }
.aed-section-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.75rem; }
.aed-section-hdr h2 { font-size: 1.5rem; font-weight: 700; color: var(--blue-dark); }
.aed-link { color: var(--blue-mid); text-decoration: none; font-weight: 600; font-size: .9rem; }
.aed-link:hover { text-decoration: underline; }

/* ---------- GRID ---------- */
.aed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* ---------- CARDS ---------- */
.aed-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--gray-200);
}
.aed-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.aed-card-img { height: 180px; overflow: hidden; position: relative; background: var(--blue-light); }
.aed-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aed-card-img-placeholder { display: flex; align-items: center; justify-content: center; color: var(--blue-dark); opacity: .5; }
.aed-cme-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: var(--gold-mid);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 20px;
}
.aed-card-body { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.aed-badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; background: var(--blue-light); color: var(--blue-dark); width: fit-content; text-transform: uppercase; letter-spacing: .04em; }
.aed-badge-green { background: var(--green-light); color: var(--green-mid); }
.aed-card-title { font-size: 1rem; font-weight: 700; color: var(--gray-800); line-height: 1.4; }
.aed-card-meta { font-size: .8rem; color: var(--gray-600); }
.aed-card-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.aed-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.aed-price { font-size: 1.15rem; font-weight: 800; color: var(--blue-dark); }

/* ---------- BUTTONS ---------- */
.aed-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.aed-btn:active { transform: scale(.97); }
.aed-btn-primary  { background: var(--blue-dark); color: var(--white); }
.aed-btn-primary:hover  { background: #153269; box-shadow: 0 4px 12px rgba(26,60,110,.35); }
.aed-btn-success  { background: var(--green-mid); color: var(--white); }
.aed-btn-success:hover  { background: #15803d; }
.aed-btn-outline  { background: var(--white); color: var(--blue-dark); border-color: var(--blue-dark); }
.aed-btn-outline:hover  { background: var(--blue-light); }
.aed-btn-danger   { background: var(--red-mid); color: var(--white); }
.aed-btn-danger:hover   { background: #b91c1c; }
.aed-btn-stripe   { background: #6772e5; color: var(--white); }
.aed-btn-stripe:hover   { background: #5469d4; }
.aed-btn-sm       { padding: .35rem .75rem; font-size: .8rem; }
.aed-btn-block    { width: 100%; justify-content: center; }
.aed-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- BLOG GRID ---------- */
.aed-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.aed-blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.aed-blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.aed-blog-img { height: 160px; background: var(--blue-light); overflow: hidden; }
.aed-blog-img img { width: 100%; height: 100%; object-fit: cover; }
.aed-blog-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--blue-dark); opacity: .5; }
.aed-blog-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.aed-blog-title { font-size: .98rem; font-weight: 700; color: var(--gray-800); line-height: 1.4; }
.aed-blog-excerpt { font-size: .85rem; color: var(--gray-600); line-height: 1.6; flex: 1; }
.aed-blog-meta { font-size: .78rem; color: var(--gray-400); }

/* ---------- NEWSLETTER ---------- */
.aed-newsletter { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); padding: 4rem 1.5rem; text-align: center; color: var(--white); }
.aed-newsletter-inner { max-width: 560px; margin: 0 auto; }
.aed-newsletter h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.aed-newsletter p { color: rgba(255,255,255,.85); margin-bottom: 1.5rem; }
.aed-nl-form { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.aed-nl-form input {
  flex: 1;
  min-width: 200px;
  padding: .7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: var(--white);
  font-size: .9rem;
}
.aed-nl-form input::placeholder { color: rgba(255,255,255,.6); }
.aed-nl-form input:focus { outline: none; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.15); }

/* ---------- PAGE HERO ---------- */
.aed-page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.aed-page-hero h1 { font-size: clamp(1.5rem,4vw,2.2rem); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: .6rem; }
.aed-page-hero p  { color: rgba(255,255,255,.85); margin-top: .5rem; font-size: 1rem; }

/* ---------- CONTAINER ---------- */
.aed-container { max-width: 1280px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ---------- FILTER BAR ---------- */
.aed-filter-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.aed-filter-bar input,
.aed-filter-bar select {
  padding: .6rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .875rem;
  background: var(--white);
  flex: 1;
  min-width: 160px;
}
.aed-filter-bar input:focus,
.aed-filter-bar select:focus { outline: none; border-color: var(--blue-mid); }

/* ---------- ABOUT PAGE ---------- */
.aed-about-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .aed-about-wrap { grid-template-columns: 1fr; } }
.aed-about-avatar { width: 200px; height: 200px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; color: var(--blue-dark); margin: 0 auto; }
.aed-about-bio h2 { font-size: 1.8rem; color: var(--blue-dark); }
.aed-about-creds { color: var(--gray-600); margin: .25rem 0 1rem; font-weight: 600; }
.aed-about-bio p, .aed-about-bio h3 { margin: .75rem 0; }
.aed-about-bio h3 { font-size: 1.1rem; color: var(--blue-dark); margin-top: 1.25rem; }
.aed-cred-list { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.aed-cred-list li { display: flex; align-items: center; gap: .5rem; color: var(--gray-600); font-size: .9rem; }
.aed-cred-list i { color: var(--green-mid); }

/* ---------- CONTACT PAGE ---------- */
.aed-contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
@media (max-width: 768px) { .aed-contact-wrap { grid-template-columns: 1fr; } }
.aed-contact-info h3 { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 1rem; }
.aed-contact-info p { display: flex; align-items: center; gap: .5rem; color: var(--gray-600); margin-bottom: .5rem; font-size: .9rem; }
.aed-social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.aed-social-links a { color: var(--gray-600); font-size: 1.3rem; transition: color var(--transition); }
.aed-social-links a:hover { color: var(--blue-dark); }
.aed-contact-form h3 { font-size: 1.2rem; color: var(--blue-dark); margin-bottom: 1rem; }
.aed-contact-form input,
.aed-contact-form textarea {
  display: block;
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: .75rem;
  font-family: inherit;
}
.aed-contact-form input:focus,
.aed-contact-form textarea:focus { outline: none; border-color: var(--blue-mid); }

/* ---------- CART DRAWER ---------- */
.aed-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 950;
  backdrop-filter: blur(2px);
}
.aed-overlay.show { display: block; }
.aed-cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--white);
  z-index: 960;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transition: right .35s cubic-bezier(.4,0,.2,1);
}
.aed-cart-drawer.open { right: 0; }
.aed-cart-hdr { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); }
.aed-cart-hdr h3 { font-size: 1.1rem; color: var(--blue-dark); display: flex; align-items: center; gap: .5rem; }
.aed-close-btn { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray-600); padding: .2rem; }
.aed-close-btn:hover { color: var(--gray-800); }
.aed-cart-items { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; }
.aed-cart-empty { text-align: center; color: var(--gray-400); padding: 3rem 0; display: flex; flex-direction: column; align-items: center; gap: .75rem; font-size: .95rem; }
.aed-cart-item { display: flex; align-items: center; gap: .75rem; padding: .75rem; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--gray-50); }
.aed-ci-info { flex: 1; min-width: 0; }
.aed-ci-info strong { display: block; font-size: .88rem; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aed-ci-info small { color: var(--gray-400); font-size: .75rem; }
.aed-ci-qty { display: flex; align-items: center; gap: .35rem; }
.aed-ci-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.aed-ci-qty button:hover { background: var(--gray-100); }
.aed-ci-qty span { font-weight: 700; font-size: .9rem; min-width: 20px; text-align: center; }
.aed-ci-price { font-weight: 700; font-size: .9rem; color: var(--blue-dark); white-space: nowrap; }
.aed-ci-del { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: .9rem; }
.aed-ci-del:hover { color: var(--red-mid); }
.aed-cart-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--gray-200); display: flex; flex-direction: column; gap: .75rem; }
.aed-cart-total { display: flex; justify-content: space-between; font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }

/* ---------- CHECKOUT MODAL ---------- */
.aed-checkout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(.95);
  width: 95%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 970;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.aed-checkout-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.aed-modal-hdr { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200); background: var(--blue-dark); color: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.aed-modal-hdr h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.aed-modal-hdr .aed-close-btn { color: rgba(255,255,255,.8); }
.aed-modal-hdr .aed-close-btn:hover { color: var(--white); }
.aed-modal-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.aed-checkout-section h4 { font-size: .95rem; font-weight: 700; color: var(--blue-dark); margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 1px solid var(--gray-200); }
.aed-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .aed-form-row { grid-template-columns: 1fr; } }
.aed-form-group { display: flex; flex-direction: column; gap: .3rem; }
.aed-form-group label { font-size: .8rem; font-weight: 600; color: var(--gray-600); }
.aed-checkout-section input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
}
.aed-checkout-section input:focus { outline: none; border-color: var(--blue-mid); }

.aed-chk-item { display: flex; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--gray-100); font-size: .875rem; color: var(--gray-600); }
.aed-chk-total { display: flex; justify-content: flex-end; font-weight: 700; font-size: 1rem; color: var(--blue-dark); margin-top: .5rem; }

/* Payment tabs */
.aed-payment-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.aed-pay-tab {
  flex: 1;
  min-width: 160px;
  padding: .65rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  transition: border-color var(--transition), background var(--transition);
  color: var(--gray-600);
}
.aed-pay-tab.active { border-color: var(--blue-dark); background: var(--blue-light); color: var(--blue-dark); }
.aed-pay-panel { display: none; }
.aed-pay-panel.active { display: flex; flex-direction: column; gap: .75rem; }
.aed-pay-info { display: flex; align-items: flex-start; gap: .5rem; background: var(--gray-50); padding: .75rem; border-radius: 8px; font-size: .85rem; color: var(--gray-600); }
.aed-pay-info i { color: var(--green-mid); margin-top: .1rem; }
.aed-test-note { font-size: .78rem; color: var(--gold-mid); background: var(--gold-light); padding: .5rem .75rem; border-radius: 6px; display: flex; align-items: center; gap: .4rem; }

/* Stripe card element */
.aed-stripe-element {
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: .75rem 1rem;
  background: var(--white);
  transition: border-color var(--transition);
}
.aed-stripe-element.StripeElement--focus { border-color: var(--blue-mid); }

/* ---------- ADMIN MODALS ---------- */
.aed-admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) scale(.95);
  width: 95%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 970;
  opacity: 0;
  pointer-events: none;
  transition: transform .3s ease, opacity .3s ease;
}
.aed-admin-modal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.aed-modal-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .5rem; padding-top: 1rem; border-top: 1px solid var(--gray-200); }

/* ---------- ADMIN DASHBOARD ---------- */
.aed-admin-login { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem; }
.aed-login-box { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.5rem; text-align: center; width: 100%; max-width: 380px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.aed-login-icon { color: var(--blue-dark); margin-bottom: .5rem; }
.aed-login-box h2 { font-size: 1.4rem; color: var(--blue-dark); }
.aed-login-box input { width: 100%; padding: .75rem 1rem; border: 1px solid var(--gray-200); border-radius: 8px; font-size: .95rem; text-align: center; }
.aed-login-box input:focus { outline: none; border-color: var(--blue-mid); }
.aed-err { color: var(--red-mid); font-size: .85rem; }

.aed-admin-dash { display: flex; min-height: 70vh; }
.aed-admin-sidebar { width: 220px; background: var(--blue-dark); color: var(--white); display: flex; flex-direction: column; padding: 1.5rem 0; flex-shrink: 0; }
.aed-sidebar-logo { font-size: 1.1rem; font-weight: 800; padding: 0 1.25rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: .5rem; }
.aed-sidebar-logo i { color: #f87171; }
.aed-admin-sidebar nav { display: flex; flex-direction: column; padding: .75rem 0; }
.aed-admin-sidebar nav a { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.75); text-decoration: none; padding: .7rem 1.25rem; font-size: .9rem; transition: background var(--transition); }
.aed-admin-sidebar nav a:hover, .aed-admin-sidebar nav a.active { background: rgba(255,255,255,.12); color: var(--white); }
.aed-admin-sidebar .aed-btn-danger { margin: 1rem 1.25rem 0; }
.aed-admin-content { flex: 1; overflow: hidden; background: var(--gray-50); }
.aed-admin-panel { display: none; padding: 1.5rem; }
.aed-admin-panel.active { display: block; }
.aed-panel-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.aed-panel-hdr h2 { font-size: 1.2rem; color: var(--blue-dark); }
.aed-admin-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.aed-admin-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .875rem; }
.aed-admin-table th { background: var(--blue-dark); color: var(--white); padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.aed-admin-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-600); vertical-align: middle; }
.aed-admin-table tr:hover td { background: var(--gray-50); }

/* Gateway & Status badges */
.aed-gw-badge, .aed-status-badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.aed-gw-razorpay { background: #fff3e0; color: #e65100; }
.aed-gw-stripe    { background: #ede7f6; color: #4527a0; }
.aed-status-paid  { background: var(--green-light); color: var(--green-mid); }
.aed-status-pending { background: var(--gold-light); color: var(--gold-mid); }
.aed-status-failed  { background: var(--red-light); color: var(--red-mid); }

/* Admin form elements */
.aed-modal-body input[type="text"],
.aed-modal-body input[type="email"],
.aed-modal-body input[type="url"],
.aed-modal-body input[type="number"],
.aed-modal-body input[type="tel"],
.aed-modal-body select,
.aed-modal-body textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  background: var(--white);
}
.aed-modal-body input:focus,
.aed-modal-body select:focus,
.aed-modal-body textarea:focus { outline: none; border-color: var(--blue-mid); }

/* ---------- FOOTER ---------- */
.aed-footer { background: var(--blue-dark); color: var(--white); padding: 3rem 1.5rem 0; }
.aed-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; max-width: 1280px; margin: 0 auto; padding-bottom: 2.5rem; }
@media (max-width: 768px) { .aed-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; } }
.aed-footer-brand p { color: rgba(255,255,255,.7); font-size: .875rem; margin-top: .5rem; line-height: 1.6; }
.aed-footer-brand .aed-logo-icon { font-size: 1.2rem; }
.aed-footer-links { display: flex; flex-direction: column; gap: .35rem; }
.aed-footer-links h4,
.aed-footer-contact h4 { color: rgba(255,255,255,.9); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .5rem; }
.aed-footer-links a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color var(--transition); }
.aed-footer-links a:hover { color: var(--white); }
.aed-footer-contact p { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.65); font-size: .875rem; margin-bottom: .35rem; }
.aed-footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1rem 1.5rem; text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); max-width: 100%; }

/* ---------- EMPTY STATE ---------- */
.aed-empty { text-align: center; color: var(--gray-400); padding: 3rem 0; grid-column: 1/-1; font-size: 1rem; }

/* ---------- SCROLLBAR ---------- */
#aed-wrap ::-webkit-scrollbar { width: 6px; height: 6px; }
#aed-wrap ::-webkit-scrollbar-track { background: var(--gray-100); }
#aed-wrap ::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 3px; }

/* ---------- RESPONSIVE SIDEBAR ---------- */
@media (max-width: 640px) {
  .aed-admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: .5rem; }
  .aed-admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .aed-admin-dash { flex-direction: column; }
}
