/* ==========================================================================
   YOURMINDCARE - COMPONENTS STYLESHEET
   Announcement Marquee, Clean Floating WhatsApp Button, Reels & Modals
   ========================================================================== */

/* ==========================================================================
   1. MOVING ANNOUNCEMENT TICKER (Top of All Pages - Clean, No Badge, Non-clickable)
   ========================================================================== */

.top-announcement-bar {
  background: var(--yellow-gradient);
  color: var(--primary-green-dark);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.45rem 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--accent-yellow-border);
  display: flex;
  align-items: center;
}

.announcement-ticker-container {
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-ticker-track {
  display: inline-flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker-scroll var(--announcement-speed, 22s) linear infinite;
  color: var(--primary-green-dark);
  font-weight: 700;
  user-select: none;
}

.announcement-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.announcement-item-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-green-dark);
}

.ann-sep {
  opacity: 0.5;
  margin: 0 0.75rem;
  color: var(--primary-green-dark);
}

/* ==========================================================================
   2. FLOATING WHATSAPP BUTTON (Bottom Right - Pure WhatsApp Icon Only)
   ========================================================================== */

.floating-cta-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.floating-whatsapp-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  text-decoration: none;
  border: 3px solid #ffffff;
  animation: pulse-green-ring 2.5s infinite;
}

.floating-whatsapp-circle:hover {
  background: #1eb956;
  transform: translateY(-5px) scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-circle svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}

@keyframes pulse-green-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   3. AUTO REELS / SHORTS VIDEO PLAYER COMPONENT
   ========================================================================== */

.reels-section {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, var(--pure-white) 0%, var(--green-surface) 100%);
  border-top: 1px solid var(--green-border);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.reel-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary-green-dark);
  box-shadow: var(--shadow-md);
  aspect-ratio: 9 / 16;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--green-border);
}

.reel-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-lg);
}

.reel-video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.reel-video-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 40%, rgba(10, 56, 33, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  color: var(--pure-white);
}

.reel-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  z-index: 2;
}

.reel-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(10, 56, 33, 0.85);
  backdrop-filter: blur(8px);
  color: var(--accent-yellow-bright);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.reel-app-redirect-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: var(--transition);
  pointer-events: auto;
}

.reel-app-redirect-btn:hover {
  background: var(--accent-yellow);
  color: var(--primary-green-dark);
  border-color: var(--accent-yellow);
  transform: scale(1.05);
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow-gradient);
  color: var(--primary-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-yellow);
  transition: var(--transition);
  z-index: 2;
}

.reel-card:hover .reel-play-btn,
.subpage-single-reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.reel-info {
  z-index: 2;
}

.reel-info h4 {
  color: var(--pure-white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.reel-info p {
  color: var(--accent-yellow-bright);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.reel-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.reel-action-hint {
  font-size: 0.7rem;
  color: #d1e7dd;
  font-weight: 600;
}

.reel-action-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-yellow-bright);
  text-decoration: none;
  pointer-events: auto;
  transition: var(--transition);
}

.reel-action-link:hover {
  text-decoration: underline;
  color: #fff;
}

/* Fullscreen / Modal Reels Viewer */
.reels-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 56, 33, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.reels-modal.active {
  display: flex;
}

.reels-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 800px;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  border: 2px solid var(--accent-yellow);
  display: flex;
  flex-direction: column;
}

/* Top bar in modal */
.reels-modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.reels-modal-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-yellow-bright);
}

.reels-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.reels-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.btn-youtube-app {
  background: #ff0000;
  color: #fff;
}
.btn-youtube-app:hover {
  background: #cc0000;
  transform: translateY(-1px);
}

.btn-instagram-app {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.btn-instagram-app:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-generic-app {
  background: var(--primary-green);
  color: #fff;
}

.reels-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.reels-modal-close:hover {
  background: var(--accent-yellow);
  color: var(--primary-green-dark);
}

/* Player Frame Wrapper */
.reels-player-wrapper {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
}

.reels-video-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  display: block;
}

/* Modal Bottom Bar */
.reels-modal-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(10, 56, 33, 0.95), rgba(7, 39, 23, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  gap: 0.8rem;
}

.reels-modal-redirect-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition);
}

/* ==========================================================================
   4. QUICK ENQUIRY POPUP MODAL
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 56, 33, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.enquiry-modal-box {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--green-border);
  animation: modal-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--green-soft);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-green-dark);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--accent-yellow);
}

/* ==========================================================================
   5. ADMIN PANEL CUSTOM STYLES
   ========================================================================== */

.admin-dashboard {
  padding: 3rem 0;
  background: var(--off-white);
  min-height: 80vh;
}

.admin-header-card {
  background: var(--primary-green-dark);
  color: var(--pure-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--green-border);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.admin-header-card h2 {
  color: var(--pure-white);
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.admin-header-card p {
  color: var(--green-border);
  font-size: 0.95rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--green-border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.admin-tab-btn {
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--primary-green);
}

.admin-tab-btn.active {
  color: var(--primary-green);
  border-bottom-color: var(--primary-green);
  background: var(--green-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.admin-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--green-surface);
}

.admin-card-header h3 {
  font-size: 1.3rem;
  color: var(--primary-green-dark);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  background: var(--green-surface);
  color: var(--primary-green-dark);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--green-border);
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--green-surface);
  font-size: 0.9rem;
  color: var(--text-main);
  vertical-align: middle;
}

.badge-status {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-active {
  background: #d1e7dd;
  color: #0f5132;
}

.badge-disabled {
  background: #f8d7da;
  color: #842029;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-green);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Toast alert */
.toast-alert {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-green-dark);
  color: var(--accent-yellow-bright);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--accent-yellow);
  z-index: 3000;
  transition: transform 0.4s ease;
  pointer-events: none;
}

.toast-alert.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   ADMIN SPEED CONTROLLER & TESTIMONIALS STYLES
   ========================================================================== */

.speed-control-card {
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-border);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.speed-control-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .speed-control-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.speed-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.speed-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.speed-slider-val-badge {
  background: var(--green-soft);
  color: var(--primary-green-dark);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--green-border);
}

.admin-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.admin-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.admin-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: var(--primary-green-dark);
}

.admin-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  cursor: pointer;
}

.speed-presets-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.speed-preset-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.speed-preset-btn:hover {
  background: var(--green-soft);
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.speed-preset-btn.active {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}

.speed-preview-container {
  background: #0f172a;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.speed-preview-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

.speed-preview-box {
  background: var(--yellow-gradient);
  color: var(--primary-green-dark);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  overflow: hidden;
  position: relative;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.speed-preview-track {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll var(--preview-speed, 22s) linear infinite;
}

/* Testimonial Admin Specific Elements */
.admin-avatar-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow-gradient);
  color: var(--primary-green-dark);
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.admin-rating-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.admin-quote-cell {
  max-width: 320px;
  font-style: italic;
  color: #475569;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.admin-author-cell {
  display: flex;
  align-items: center;
}

.admin-author-meta {
  display: flex;
  flex-direction: column;
}

.admin-author-meta strong {
  color: var(--primary-green-dark);
  font-size: 0.92rem;
}

.admin-author-meta small {
  color: var(--text-muted);
  font-size: 0.78rem;
}


/* ==========================================================================
   ADMIN AUTHENTICATION & LOGIN CARD STYLES (Clean & Simple)
   ========================================================================== */

.admin-auth-wrapper {
  max-width: 460px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.admin-auth-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.admin-auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.admin-auth-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.75rem;
  background: #f0fdf4;
  color: var(--primary-green);
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.admin-auth-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-green-dark);
  margin-bottom: 0.35rem;
}

.admin-auth-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.admin-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.admin-auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.admin-auth-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.admin-auth-input:focus {
  outline: none;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.admin-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-password-wrapper .admin-auth-input {
  padding-right: 2.8rem;
}

.admin-toggle-pass-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  color: #64748b;
  line-height: 1;
}

.admin-auth-btn {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--primary-green);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.admin-auth-btn:hover {
  background: var(--primary-green-dark);
}

.admin-auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.admin-auth-links {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.88rem;
}

.admin-link-btn {
  background: none;
  border: none;
  color: var(--primary-green);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.admin-link-btn:hover {
  color: var(--primary-green-dark);
}

.admin-auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  display: none;
}

.admin-auth-alert.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.admin-auth-alert.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.admin-config-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  text-align: left;
}

.admin-config-box code {
  background: #dbeafe;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Top session bar inside authenticated dashboard */
.admin-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.admin-session-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}

.admin-session-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
}

.admin-logout-button {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.admin-logout-button:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

