/**
 * QRDash - WordPress-ready styles
 * Converted from React/Tailwind. Use in your theme's style.css or enqueue separately.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ========== Design tokens (CSS variables) ========== */
:root {
  --background: 220 20% 97%;
  --foreground: 224 71% 10%;
  --card: 0 0% 100%;
  --card-foreground: 224 71% 10%;
  --primary: 238 84% 60%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 96%;
  --secondary-foreground: 224 71% 10%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --accent: 238 84% 95%;
  --accent-foreground: 238 84% 50%;
  --destructive: 0 84% 60%;
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 238 84% 60%;
  --radius: 0.75rem;

  --sidebar-background: 224 71% 10%;
  --sidebar-foreground: 220 14% 96%;
  --sidebar-primary: 238 84% 60%;
  --sidebar-primary-foreground: 0 0% 100%;
  --sidebar-accent: 224 50% 18%;
  --sidebar-border: 224 50% 18%;

  --gradient-primary: linear-gradient(135deg, hsl(238 84% 60%) 0%, hsl(258 84% 55%) 100%);
  --gradient-hero: linear-gradient(135deg, hsl(238 84% 98%) 0%, hsl(258 60% 96%) 50%, hsl(220 20% 97%) 100%);
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(220 20% 99%) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, hsl(238 84% 60% / 0.15) 0%, transparent 50%);

  --shadow-sm: 0 1px 2px 0 hsl(224 71% 10% / 0.05);
  --shadow-md: 0 4px 6px -1px hsl(224 71% 10% / 0.08), 0 2px 4px -2px hsl(224 71% 10% / 0.06);
  --shadow-lg: 0 10px 15px -3px hsl(224 71% 10% / 0.08), 0 4px 6px -4px hsl(224 71% 10% / 0.06);
  --shadow-xl: 0 20px 25px -5px hsl(224 71% 10% / 0.1), 0 8px 10px -6px hsl(224 71% 10% / 0.08);
  --shadow-glow: 0 0 40px hsl(238 84% 60% / 0.15);
  --shadow-card: 0 1px 3px hsl(224 71% 10% / 0.05), 0 10px 30px -5px hsl(224 71% 10% / 0.08);
}

/* ========== Base ========== */
* {
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ========== Layout ========== */
.qrdash-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ========== Header / Navbar ========== */
.qrdash-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 1.25rem 0;
  background: transparent;
}

.qrdash-header.scrolled {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-card);
}

.qrdash-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qrdash-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  font-size: 1.25rem;
}

.qrdash-logo:hover {
  opacity: 0.9;
}

.qrdash-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  /*   background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)); */
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrdash-nav-links {
  display: none;
}

@media (max-width: 768px) {

  .qrdash-auth-form-wrap {
    align-items: normal !important;

  }

  .page-id-38 .qrdash-auth-form-box {
    margin-top: 30%;
  }
}

@media (min-width: 768px) {
  .qrdash-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.qrdash-nav-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}

.qrdash-nav-links a:hover {
  color: hsl(var(--foreground));
}

.qrdash-nav-actions {
  display: none;
}

@media (min-width: 768px) {
  .qrdash-nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.qrdash-nav-actions a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.qrdash-nav-actions .link {
  color: hsl(var(--muted-foreground));
}

.qrdash-nav-actions .link:hover {
  color: hsl(var(--foreground));
}

.qrdash-mobile-toggle {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
}

@media (min-width: 768px) {
  .qrdash-mobile-toggle {
    display: none;
  }
}

.qrdash-mobile-toggle:hover {
  background: hsl(var(--secondary));
}

/* Mobile sidebar backdrop */
.qrdash-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: hsl(var(--foreground) / 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.qrdash-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .qrdash-mobile-backdrop {
    display: none;
  }
}

/* Mobile sidebar */
.qrdash-mobile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: hsl(var(--card));
  box-shadow: -4px 0 24px hsl(var(--foreground) / 0.12);
  z-index: 50;
  padding: 1.5rem;
  padding-top: 4rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.qrdash-mobile-sidebar-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.qrdash-mobile-sidebar-close:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.qrdash-mobile-sidebar.is-open {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .qrdash-mobile-sidebar {
    display: none;
  }
}

.qrdash-mobile-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.qrdash-mobile-sidebar-link {
  display: block;
  padding: 0.75rem 1rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}

.qrdash-mobile-sidebar-link:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

.qrdash-mobile-sidebar-link.qrdash-mobile-sidebar-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 500;
}

.qrdash-mobile-sidebar-link.qrdash-mobile-sidebar-cta:hover {
  color: hsl(var(--primary-foreground));
  background: var(--gradient-primary);
  opacity: 0.95;
  box-shadow: var(--shadow-md);
}

.qrdash-mobile-sidebar-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 0.75rem 0;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-weight: 500;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 0.875rem;
}

.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: red;
    color: #ffff;
    font-weight: 500;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 0.875rem;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Button loading state: spinner + "Loading" text (keeps button color) */
.btn-loading {
  pointer-events: none;
  position: relative;
}

.btn-loading .btn-loading-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: qrdash-btn-spin 0.6s linear infinite;
  flex-shrink: 0;
}

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

.btn-loading-text {
  font-size: inherit;
  font-weight: inherit;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-weight: 500;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.8);
  border-color: hsl(var(--primary) / 0.3);
}

/* ========== Hero ========== */
.qrdash-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0;
}

.qrdash-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -10;
  background: var(--gradient-hero);
}

.qrdash-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 600px;
  z-index: -10;
  background: var(--gradient-glow);
}

.qrdash-hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.qrdash-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.qrdash-hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  animation: qrdash-pulse 2s ease-in-out infinite;
}

@keyframes qrdash-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.qrdash-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 1.5rem;
  line-height: 1.1;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qrdash-hero-desc {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .qrdash-hero-desc {
    font-size: 1.25rem;
  }
}

.qrdash-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.qrdash-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid hsl(var(--border) / 0.5);
}

.qrdash-hero-stats .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .qrdash-hero-stats .stat-value {
    font-size: 2.25rem;
  }
}

.qrdash-hero-stats .stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* ========== Features ========== */
.qrdash-features {
  padding: 6rem 0;
  background: hsl(var(--secondary) / 0.3);
}

.qrdash-features-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.qrdash-features-header .label {
  color: hsl(var(--primary));
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qrdash-features-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 1rem 0;
}

@media (min-width: 768px) {
  .qrdash-features-header h2 {
    font-size: 2.25rem;
  }
}

.qrdash-features-header p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.qrdash-features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .qrdash-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .qrdash-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  border-color: hsl(var(--primary) / 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--accent));
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.2s, color 0.2s;
}

.feature-card:hover .feature-card-icon {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* ========== CTA section ========== */
.qrdash-cta {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.qrdash-cta-inner {
  position: relative;
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-primary);
}

@media (min-width: 768px) {
  .qrdash-cta-inner {
    padding: 4rem 2rem;
  }
}

.qrdash-cta-inner::before,
.qrdash-cta-inner .deco-circle {
  content: '';
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.qrdash-cta .deco-1 {
  top: 2.5rem;
  left: 2.5rem;
  width: 5rem;
  height: 5rem;
}

.qrdash-cta .deco-2 {
  bottom: 2.5rem;
  right: 2.5rem;
  width: 8rem;
  height: 8rem;
}

.qrdash-cta .deco-3 {
  top: 50%;
  left: 25%;
  width: 4rem;
  height: 4rem;
  transform: translateY(-50%);
}

.qrdash-cta-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.qrdash-cta h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem;
}

@media (min-width: 768px) {
  .qrdash-cta h2 {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .qrdash-cta h2 {
    font-size: 3rem;
  }
}

.qrdash-cta-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.qrdash-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.qrdash-cta-buttons .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: hsl(var(--primary));
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.qrdash-cta-buttons .btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.05);
}

.qrdash-cta-buttons .btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-weight: 500;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
  text-decoration: none;
  transition: background 0.2s;
}

.qrdash-cta-buttons .btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ========== Footer ========== */
.qrdash-footer {
  background: hsl(var(--sidebar-background));
  padding: 4rem 0;
}

.qrdash-footer-grid {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .qrdash-footer-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.qrdash-footer-brand .qrdash-logo {
  color: hsl(var(--sidebar-foreground));
  margin-bottom: 1rem;
}

.qrdash-footer-brand .qrdash-logo-icon {
  background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground));
}

.qrdash-footer-brand p {
  color: hsl(var(--sidebar-foreground) / 0.6);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.qrdash-footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qrdash-footer-social a {
  color: hsl(var(--sidebar-foreground) / 0.6);
  transition: color 0.2s;
}

.qrdash-footer-social a:hover {
  color: hsl(var(--sidebar-foreground));
}

.qrdash-footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qrdash-footer h4 {
  font-weight: 600;
  color: hsl(var(--sidebar-foreground));
  margin: 0 0 1rem;
}

.qrdash-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.qrdash-footer ul li {
  margin-bottom: 0.75rem;
}

.qrdash-footer ul a {
  color: hsl(var(--sidebar-foreground) / 0.6);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
}

.qrdash-footer ul a:hover {
  color: hsl(var(--sidebar-foreground));
}

.qrdash-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--sidebar-border));
  text-align: center;
}

.qrdash-footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--sidebar-foreground) / 0.4);
}

/* ========== Auth pages (Login / Register) ========== */
.qrdash-auth {
  min-height: 100vh;
  display: flex;
  background: var(--gradient-hero);
}

.qrdash-auth-side {
  display: none;
}

@media (min-width: 1024px) {
  .qrdash-auth-side {
    display: flex;
    width: 50%;
    background: hsl(var(--sidebar-background));
    padding: 3rem;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
}

.qrdash-auth-side .deco-circle {
  position: absolute;
  border: 1px solid hsl(var(--sidebar-foreground) / 0.1);
  border-radius: 50%;
}

.qrdash-auth-side .deco-1 {
  top: 5rem;
  right: 5rem;
  width: 16rem;
  height: 16rem;
}

.qrdash-auth-side .deco-2 {
  bottom: -5rem;
  left: -5rem;
  width: 24rem;
  height: 24rem;
}

.qrdash-auth-side .qrdash-logo {
  color: hsl(var(--sidebar-foreground));
  position: relative;
  z-index: 10;
}

.qrdash-auth-side .qrdash-logo-icon {
  background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground));
}

.qrdash-auth-side .copy {
  position: relative;
  z-index: 10;
}

.qrdash-auth-side .copy h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: hsl(var(--sidebar-foreground));
  margin: 0 0 1rem;
}

.qrdash-auth-side .copy p {
  color: hsl(var(--sidebar-foreground) / 0.6);
  font-size: 1.125rem;
  margin: 0;
}

.qrdash-auth-side .copy ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.qrdash-auth-side .copy ul li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: hsl(var(--sidebar-foreground) / 0.8);
  margin-bottom: 1rem;
}

.qrdash-auth-side .copy ul li .check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--sidebar-primary) / 0.2);
  color: hsl(var(--sidebar-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrdash-auth-side .legal {
  position: relative;
  z-index: 10;
  font-size: 0.875rem;
  color: hsl(var(--sidebar-foreground) / 0.4);
}

.qrdash-auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.qrdash-auth-form-box {
  width: 100%;
  max-width: 28rem;
}

.qrdash-auth .mobile-logo {
  display: flex;
  margin-bottom: 2rem;
}

@media (min-width: 1024px) {
  .qrdash-auth .mobile-logo {
    display: none;
  }
}

.glass-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.qrdash-auth-form-box .form-title {
  text-align: center;
  margin-bottom: 2rem;
}

.qrdash-auth-form-box .form-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.qrdash-auth-form-box .form-title p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.qrdash-auth-form .field {
  margin-bottom: 1.25rem;
}

.qrdash-auth-form .field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.qrdash-auth-form .field .label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.qrdash-auth-form .field .label-row a {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  text-decoration: none;
}

.qrdash-auth-form .field .label-row a:hover {
  text-decoration: underline;
}

.qrdash-auth-form .input-wrap {
  position: relative;
}

.qrdash-auth-form .input-wrap .icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.qrdash-auth-form .input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3.5rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qrdash-auth-form .input-wrap input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
}

.qrdash-auth-form .input-wrap input.with-icon-right {
  padding-right: 3rem;
}

.qrdash-auth-form .input-wrap .icon-right {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrdash-auth-form .input-wrap .icon-right:hover {
  color: hsl(var(--foreground));
}

.qrdash-auth-form .input-wrap.border-success input {
  border-color: hsl(var(--success));
}

.qrdash-auth-form .input-wrap.border-error input {
  border-color: hsl(var(--destructive));
}

.qrdash-auth-form .field .error-msg {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  margin-top: 0.25rem;
}

.qrdash-auth-form .submit-wrap {
  margin-top: 1.5rem;
}

.qrdash-auth-form .submit-wrap .btn-primary {
  width: 100%;
}

.qrdash-auth-form .form-footer {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin-top: 1.5rem;
}

.qrdash-auth-form .form-footer a {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
}

.qrdash-auth-form .form-footer a:hover {
  text-decoration: underline;
}

/* Forgot Password page – light purple background, white card, blue–purple button */
.qrdash-forgot-page {
  background: hsl(260 35% 96%);
}

.qrdash-forgot-page .qrdash-forgot-card {
  background: hsl(0 0% 100%);
  border-radius: 12px;
  box-shadow: 0 4px 20px hsl(224 71% 10% / 0.08), 0 2px 8px hsl(224 71% 10% / 0.04);
  border: 1px solid hsl(var(--border) / 0.6);
  padding: 2rem;
}

.qrdash-forgot-page .form-title h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 0.5rem;
}

.qrdash-forgot-page .form-title p {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
}

.qrdash-forgot-page .input-wrap-no-icon input {
  padding-left: 1rem;
}

.qrdash-forgot-page .btn-forgot {
  background: linear-gradient(to right, #3b82f6, hsl(258 84% 55%));
  width: 100%;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.qrdash-forgot-page .btn-forgot:hover {
  background: linear-gradient(to right, #2563eb, hsl(258 84% 50%));
  box-shadow: 0 4px 14px hsl(238 84% 60% / 0.25);
}

.resend_otp {
  color: #3b82f6;
  background: transparent;
  border: none;
  text-decoration: underline;
}

/* Add QR: camera scan modals */
.qrdash-scan-modal {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrdash-scan-modal-inner {
  max-height: 90vh;
  overflow-y: auto;
}

.qrdash-scan-video-wrap {
  min-height: 200px;
}

.qrdash-add-qr-or {
  display: block;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid hsl(var(--primary-foreground) / 0.3);
  border-top-color: hsl(var(--primary-foreground));
  border-radius: 50%;
  animation: qrdash-spin 0.8s linear infinite;
}

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

.qrdash-success-state {
  text-align: center;
  padding: 2rem 0;
}

.qrdash-success-state .success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.qrdash-success-state h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.qrdash-success-state p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* ========== Animations (optional, for fade-in on scroll) ========== */
.qrdash-animate-in {
  opacity: 0;
  transform: translateY(20px);
}

.qrdash-animate-in.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Float animation for hero decorations */
@keyframes qrdash-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.qrdash-hero .float-icon {
  opacity: 0.1;
  animation: qrdash-float 6s ease-in-out infinite;
}

.qrdash-hero .float-icon.delay {
  animation-delay: 1s;
  animation-duration: 5s;
}

/* ========== Dashboard layout ========== */
.qrdash-dashboard {
  min-height: 100vh;
  background: hsl(var(--background));
}

.qrdash-dashboard-main {
  min-height: 100vh;
  padding-top: 4rem;
  transition: margin-left 0.3s ease;
}

@media (min-width: 1024px) {
  .qrdash-dashboard-main {
    padding-top: 0;
    margin-left: 260px;
  }

  .qrdash-dashboard.sidebar-collapsed .qrdash-dashboard-main {
    margin-left: 80px;
  }
}

.qrdash-dashboard-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .qrdash-dashboard-content {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .qrdash-dashboard-content {
    padding: 2.5rem 3rem;
  }
}

/* Dashboard sidebar */
.qrdash-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: hsl(var(--sidebar-background));
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  overflow: hidden;
}

@media (max-width: 1023px) {
  .qrdash-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .qrdash-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (min-width: 1024px) {
  .qrdash-sidebar.collapsed {
    width: 80px;
  }
}

.qrdash-sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--sidebar-border));
  flex-shrink: 0;
}

.qrdash-sidebar-header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qrdash-sidebar-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  /*   background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground)); */
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrdash-sidebar-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: hsl(var(--sidebar-foreground));
  white-space: nowrap;
  overflow: hidden;
}

.qrdash-sidebar.collapsed .qrdash-sidebar-title {
  display: none;
}

.qrdash-sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.qrdash-sidebar-nav a,
.qrdash-sidebar-nav .sidebar-link-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--sidebar-foreground) / 0.7);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-family: inherit;
}

.qrdash-sidebar-nav a:hover,
.qrdash-sidebar-nav .sidebar-link-btn:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-foreground));
}

.qrdash-sidebar-nav a.active {
  background: hsl(var(--sidebar-primary));
  color: hsl(var(--sidebar-primary-foreground));
}

.qrdash-sidebar-nav a span:first-child,
.qrdash-sidebar-nav .sidebar-link-btn span:first-child {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrdash-sidebar-nav a span:last-child,
.qrdash-sidebar-nav .sidebar-link-btn span:last-child {
  white-space: nowrap;
  overflow: hidden;
}

.qrdash-sidebar.collapsed .qrdash-sidebar-nav a span:last-child,
.qrdash-sidebar.collapsed .qrdash-sidebar-nav .sidebar-link-btn span:last-child {
  display: none;
}

.qrdash-sidebar-footer {
  padding: 1rem;
  border-top: 1px solid hsl(var(--sidebar-border));
}

.qrdash-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: hsl(var(--sidebar-foreground) / 0.6);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border: none;
  font-size: 1rem;
  font-family: inherit;
}

.qrdash-sidebar-logout:hover {
  background: hsl(var(--sidebar-accent));
  color: hsl(var(--sidebar-foreground));
}

.qrdash-sidebar-logout-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrdash-sidebar-logout-text {
  white-space: nowrap;
  overflow: hidden;
}

.qrdash-sidebar.collapsed .qrdash-sidebar-logout-text {
  display: none;
}

.qrdash-sidebar-collapse-btn {
  position: absolute;
  right: -0.75rem;
  top: 5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--sidebar-border));
  color: hsl(var(--sidebar-foreground) / 0.6);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 10;
}

.qrdash-sidebar-collapse-btn:hover {
  color: hsl(var(--sidebar-foreground));
}

@media (min-width: 1024px) {
  .qrdash-sidebar-collapse-btn {
    display: flex;
  }
}

.qrdash-sidebar-collapse-btn svg {
  transition: transform 0.3s;
}

.qrdash-dashboard.sidebar-collapsed .qrdash-sidebar-collapse-btn svg {
  transform: rotate(180deg);
}

.qrdash-dashboard-mobile-menu-btn {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .qrdash-dashboard-mobile-menu-btn {
    display: none;
  }
}

.qrdash-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--foreground) / 0.5);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.qrdash-sidebar-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .qrdash-sidebar-overlay {
    display: none;
  }
}

/* Dashboard panels (inner pages) */
.qrdash-panel {
  display: none;
}

.qrdash-panel.is-active {
  display: block;
}

.qrdash-panel-heading {
  margin-bottom: 2rem;
}

.qrdash-panel-heading h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

@media (min-width: 768px) {
  .qrdash-panel-heading h1 {
    font-size: 1.875rem;
  }
}

.qrdash-panel-heading p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Stat cards (dashboard) */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  background: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.stat-card .stat-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-card .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.stat-card .stat-change {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.stat-card .stat-icon-primary {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.stat-card .stat-icon-success {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.stat-card .stat-icon-warning {
  background: hsl(var(--warning) / 0.1);
  color: hsl(var(--warning));
}

.stat-card .stat-icon-destructive {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.stat-card .stat-change-primary {
  color: hsl(var(--primary));
}

.stat-card .stat-change-success {
  color: hsl(var(--success));
}

.stat-card .stat-change-warning {
  color: hsl(var(--warning));
}

.stat-card .stat-change-destructive {
  color: hsl(var(--destructive));
}

/* QR badges */
.qr-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.qr-badge-active {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.qr-badge-inactive {
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.qr-badge-expired {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

/* Dashboard page header with action */
.qrdash-page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .qrdash-page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Dashboard filters */
.qrdash-dashboard-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .qrdash-dashboard-filters {
    flex-direction: row;
  }
}

.qrdash-dashboard-filters .search-wrap {
  position: relative;
  flex: 1;
}

.qrdash-dashboard-filters .search-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.qrdash-dashboard-filters .search-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  border-radius: 0.5rem;
  font-size: 1rem;
}

.qrdash-dashboard-filters .filter-wrap {
  position: relative;
}

.qrdash-dashboard-filters .filter-wrap svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
  pointer-events: none;
}

.qrdash-dashboard-filters select {
  padding: 0.75rem 2rem 0.75rem 3rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--card));
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  appearance: none;
  min-width: 140px;
}

/* QR code cards grid */
.qrdash-qr-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .qrdash-qr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .qrdash-qr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .qrdash-qr-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qrdash-qr-card {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s, transform 0.3s;
}

.qrdash-qr-card:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.qrdash-qr-card-preview {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  background: linear-gradient(to bottom right, hsl(var(--muted)), hsl(var(--secondary)));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.qrdash-qr-card-preview svg {
  width: 4rem;
  height: 4rem;
  color: hsl(var(--primary) / 0.3);
}

.qrdash-qr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.qrdash-qr-card-title {
  font-weight: 600;
  margin-bottom: 0;
}

.qrdash-qr-card-header+.qrdash-qr-card-meta {
  margin-top: 0;
}

.qrdash-qr-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.qrdash-qr-card-actions {
  padding-top: 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.qrdash-qr-card-actions .btn-secondary {
  width: 100%;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.875rem;
}

/* Add QR - type selector */
.qrdash-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.qrdash-type-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 2px solid hsl(var(--border));
  background: transparent;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  text-align: left;
  font-family: inherit;
}

.qrdash-type-btn:hover {
  border-color: hsl(var(--primary) / 0.3);
}

.qrdash-type-btn.is-selected {
  border-color: hsl(var(--primary));
  background: hsl(var(--accent));
}

.qrdash-type-btn.is-selected svg {
  color: hsl(var(--primary));
}

.qrdash-type-btn:not(.is-selected) svg {
  color: hsl(var(--muted-foreground));
}

.qrdash-addqr-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  border-radius: 0.75rem;
  font-size: 1rem;
  resize: none;
  min-height: 8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qrdash-addqr-form textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 4px hsl(var(--primary) / 0.1);
}

.qrdash-qr-preview-box {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.qrdash-qr-preview-bg {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: linear-gradient(to bottom right, hsl(var(--primary) / 0.05), hsl(var(--accent)));
  overflow: hidden;
}

.qrdash-qr-preview-inner {
  position: absolute;
  inset: 1rem;
  border-radius: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.qrdash-qr-preview-inner .placeholder-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

.qrdash-qr-preview-inner .generated-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--success));
  margin-top: 1rem;
}

.qrdash-qr-preview-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Activity table */
.qrdash-activity-table-wrap {
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(24px);
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.qrdash-activity-table {
  width: 100%;
  border-collapse: collapse;
}

.qrdash-activity-table th {
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  font-size: 0.875rem;
  background: hsl(var(--muted) / 0.5);
  border-bottom: 1px solid hsl(var(--border));
}

.qrdash-activity-table td {
  padding: 1rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 0.875rem;
}

.qrdash-activity-table tr:last-child td {
  border-bottom: 0;
}

.qrdash-activity-table tr:hover td {
  background: hsl(var(--muted) / 0.3);
}

.qrdash-activity-table .cell-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qrdash-activity-table .cell-action-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrdash-activity-table .cell-code {
  font-family: ui-monospace, monospace;
  background: hsl(var(--muted));
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
}

.qrdash-activity-table .cell-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 767px) {

  .qrdash-activity-table .col-device,
  .qrdash-activity-table .col-location {
    display: none;
  }
}

/* Profile card */
.qrdash-profile-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background: var(--gradient-primary);
  color: hsl(var(--primary-foreground));
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qrdash-profile-section {
  margin-bottom: 2rem;
}

.qrdash-profile-section:last-child {
  margin-bottom: 0;
}

.qrdash-profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.qrdash-profile-section-header h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.qrdash-profile-edit-btn {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.qrdash-profile-edit-btn:hover {
  text-decoration: underline;
}

.qrdash-profile-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.qrdash-profile-info p {
  margin: 0;
  font-weight: 500;
}

.qrdash-profile-info .sub {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  font-weight: 400;
  margin-top: 0.25rem;
}

.qrdash-profile-form .input-wrap {
  position: relative;
  margin-bottom: 1rem;
}

.qrdash-profile-form .input-wrap .icon-left {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.qrdash-profile-form .input-wrap input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  border-radius: 0.5rem;
  font-size: 1rem;
}

.qrdash-profile-form .input-wrap input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qrdash-profile-form .input-wrap input.with-icon-right {
  padding-right: 3rem;
}

.qrdash-profile-form .input-wrap .icon-right {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qrdash-profile-form .input-wrap .icon-right:hover {
  color: hsl(var(--foreground));
}

.qrdash-profile-form .input-wrap .icon-right svg {
  width: 1.25rem;
  height: 1.25rem;
}

.qrdash-profile-form .form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
}

/* Recent activity list (dashboard home) */
.qrdash-recent-activity .activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.qrdash-recent-activity .activity-item:last-child {
  border-bottom: 0;
}

.qrdash-recent-activity .activity-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.qrdash-recent-activity .activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: hsl(var(--accent));
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qrdash-recent-activity .activity-title {
  font-weight: 500;
  font-size: 0.875rem;
}

.qrdash-recent-activity .activity-code {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.qrdash-recent-activity .activity-right {
  text-align: right;
}

.qrdash-recent-activity .activity-time {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.qrdash-recent-activity .activity-location {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Stats grid */
.qrdash-stats-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .qrdash-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .qrdash-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qrdash-stats-grid-3 {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .qrdash-stats-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Empty state */
.qrdash-empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.qrdash-empty-state svg {
  width: 4rem;
  height: 4rem;
  color: hsl(var(--muted-foreground) / 0.3);
  margin: 0 auto 1rem;
  display: block;
}

.qrdash-empty-state p {
  color: hsl(var(--muted-foreground));
  margin: 0;
}

/* Max width for narrow panels */
.qrdash-max-w {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.qrdash-addqr-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .qrdash-addqr-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== Settings – My Preferences (emergency contact + toggles) ========== */
.settings-preferences {
  padding: 0.5rem 0;
}

.settings-preferences-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: hsl(var(--foreground));
}

.settings-preferences-desc {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
}

.settings-preferences-form {
  max-width: 28rem;
}

.settings-pref-field {
  margin-bottom: 1.25rem;
}

.settings-pref-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.settings-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--input));
  border-radius: 0.5rem;
  font-size: 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.settings-input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
}

.settings-pref-toggles {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-pref-toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: hsl(var(--card));
}

.settings-pref-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.settings-pref-toggle-label i {
  color: hsl(var(--primary));
  width: 1.25rem;
  text-align: center;
}

.settings-toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.75rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.settings-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.settings-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: hsl(var(--muted));
  border-radius: 1.5rem;
  transition: background 0.2s;
}

.settings-toggle-slider::before {
  content: '';
  position: absolute;
  height: 1.125rem;
  width: 1.125rem;
  left: 0.25rem;
  bottom: 0.1875rem;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.settings-toggle-switch input:checked+.settings-toggle-slider {
  background: hsl(var(--primary));
}

.settings-toggle-switch input:checked+.settings-toggle-slider::before {
  transform: translateX(1.25rem);
}

.settings-pref-actions {
  margin-top: 1.5rem;
}

.settings-save-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  border: none;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.settings-save-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

.settings-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== App Download Section ========== */
.qrdash-app-download {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: hsl(var(--background));
}

.qrdash-app-download-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .qrdash-app-download-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  .qrdash-app-download-content {
    width: 50%;
  }
  .qrdash-app-download-media {
    width: 45%;
    display: flex;
    justify-content: center;
  }
}

.qrdash-app-download-content .label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.qrdash-app-download-content h2 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 768px) {
  .qrdash-app-download-content h2 {
    font-size: 3rem;
  }
}

.qrdash-app-download-content .section-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2.5rem;
}

.qrdash-app-download-content .app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-badge-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}

.app-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.app-badge-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Phone Mockup */
.phone-mockup-wrapper {
  position: relative;
  width: 280px;
  height: 520px;
  padding: 12px;
  background: #1e293b;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 12px #0f172a;
}

.phone-mockup {
  width: 100%;
  height: 100%;
  background: #090d16;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.phone-notch {
  width: 110px;
  height: 18px;
  background: #0f172a;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.phone-body-content {
  height: 100%;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, #1e1b4b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.phone-app-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.phone-app-tagline {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.phone-app-mock-ui {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.mock-notification {
  text-align: left;
}

.mock-notification-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

.mock-notification-body {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Glow circles for mockup background */
.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.5;
}

.glow-circle-1 {
  width: 250px;
  height: 250px;
  background: hsl(var(--primary));
  top: -40px;
  left: -40px;
}

.glow-circle-2 {
  width: 200px;
  height: 200px;
  background: #3b82f6;
  bottom: -30px;
  right: -30px;
}

/* Hover effects for footer apps */
.footer-app-link:hover {
  transform: translateY(-2px);
}

/* Fix WordPress margin-top shifting layouts when the admin bar is hidden/not showing */
html {
  margin-top: 0 !important;
}

/* Restore top margin ONLY if the WordPress admin bar is actively showing on the page */
html:has(body.admin-bar) {
  margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
  html:has(body.admin-bar) {
    margin-top: 46px !important;
  }
}

/* ========== Responsive Activity Logs ========== */
.activity-logs-desktop-view {
  display: block;
}

.activity-logs-mobile-view {
  display: none;
}

@media (max-width: 768px) {
  .activity-logs-desktop-view {
    display: none;
  }
  .activity-logs-mobile-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

.activity-log-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: left;
}

.activity-log-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.log-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  padding-bottom: 0.5rem;
}

.log-card-date {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.log-card-date i {
  color: hsl(var(--primary));
}

.log-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.log-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.log-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.log-card-meta-item .meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.log-card-meta-item .meta-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.log-card-footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.channel-status {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.channel-status > span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* =========================================================
   QRTAG9 ALERT OWNER PAGE (alert_user.php)
   ========================================================= */

.qrdash-container.qrdash-alert-page {
  margin-top: 5.5rem;
  padding-top: 0.5rem;
  padding-bottom: 4rem;
}

/* Card Top Navigation & Status Row (Inside Card) */
.qrdash-card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* Navigation Back link */
.qrdash-back-link {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.qrdash-back-link:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateX(-2px);
}

/* Status Badge Top Right */
.qrdash-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #15803d;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
}

.qrdash-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Screen Card Container */
.qrdash-main-card-wrap {
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 1px rgba(15, 23, 42, 0.1);
}

/* Screen Title & Subtitle */
.qrdash-screen-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  text-align: left;
  letter-spacing: -0.4px;
}

.qrdash-screen-subtitle {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  margin: 0 0 18px;
  text-align: left;
  line-height: 1.4;
}

/* Custom QRTAG9 Metallic License Plate Badge */
.indian-plate-badge {
  border: 2px solid #0f172a;
  border-radius: 14px;
  background: #ffffff;
  max-width: 350px;
  margin: 10px 0 22px;
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease;
}

.indian-plate-badge:hover {
  transform: translateY(-1px);
}

.plate-header-bar {
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 4px 0;
  text-align: center;
  border-bottom: 1px solid #1e293b;
}

.plate-middle-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.plate-flag-strip {
  display: flex;
  flex-direction: column;
  width: 20px;
  height: 34px;
  border-radius: 3px;
  overflow: hidden;
  margin-right: 14px;
  border: 1px solid #cbd5e1;
  flex-shrink: 0;
}

.plate-flag-strip .flag-saffron { background: #ff9933; flex: 1; }
.plate-flag-strip .flag-white { background: #ffffff; flex: 1; display: flex; align-items: center; justify-content: center; }
.plate-flag-strip .flag-green { background: #138808; flex: 1; }
.plate-flag-strip .ashoka-wheel { width: 9px; height: 9px; }

.plate-number-display {
  font-family: 'Courier New', Courier, monospace, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.plate-footer-rating {
  background: #fefce8;
  border-top: 1px solid #fef08a;
  padding: 5px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plate-footer-rating .stars { color: #eab308; font-size: 13px; }
.plate-footer-rating .score { color: #475569; font-weight: 600; }

/* Choice Cards Grid */
.qrdash-choice-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.qrdash-choice-card {
  border-radius: 20px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.qrdash-choice-card:hover {
  transform: translateY(-3px);
}

.card-masked-call {
  background: linear-gradient(145deg, #f0f7ff 0%, #e0f2fe 100%);
  border: 1.5px solid #bae6fd;
}

.card-masked-call:hover {
  border-color: #38bdf8;
  box-shadow: 0 12px 28px -6px rgba(56, 189, 248, 0.22);
}

.card-message-call {
  background: linear-gradient(145deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #a7f3d0;
}

.card-message-call:hover {
  border-color: #4ade80;
  box-shadow: 0 12px 28px -6px rgba(34, 197, 94, 0.22);
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 6px 14px -3px rgba(0,0,0,0.12);
}

.icon-blue-bg { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.icon-green-bg { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }

.card-heading {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.card-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
}

.chip-blue {
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.chip-green {
  background: rgba(22, 163, 74, 0.10);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Emergency Pill Button */
.qrdash-emergency-wrapper {
  margin-bottom: 22px;
  text-align: center;
}

.btn-emergency-pill {
  width: 100%;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe4e4 100%);
  border: 1.5px solid #fca5a5;
  border-radius: 9999px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #e11d48;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.08);
  transition: all 0.2s ease;
}

.btn-emergency-pill:hover {
  background: linear-gradient(135deg, #ffe4e4 0%, #fecdd3 100%);
  border-color: #f87171;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.16);
}

.emergency-icon-pulse {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.15);
}

.emergency-caption {
  font-size: 12px;
  color: #64748b;
  margin: 8px 0 0;
}

/* Bottom Information Box */
.qrdash-info-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  text-align: left;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.info-bullet-list {
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
}

.info-bullet-list li {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 4px;
}

.info-links-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.info-link-item {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.info-link-item:hover {
  color: #2563eb;
  text-decoration: underline;
}

.link-divider {
  color: #cbd5e1;
  font-size: 12px;
}

@media (max-width: 480px) {
  .qrdash-container.qrdash-alert-page {
    margin-top: 4.5rem !important;
  }
  .qrdash-card-top-header {
    margin-bottom: 1rem !important;
  }
  .qrdash-main-card-wrap {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
  }
  .qrdash-screen-title {
    font-size: 19px !important;
  }
  .qrdash-screen-subtitle {
    font-size: 12px !important;
    margin-bottom: 14px !important;
  }
  .indian-plate-badge {
    max-width: 100% !important;
    margin: 8px 0 16px !important;
  }
  .plate-number-display {
    font-size: 17px !important;
    letter-spacing: 2px !important;
  }
  .qrdash-choice-cards-grid {
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .qrdash-choice-card {
    padding: 16px 8px !important;
    border-radius: 16px !important;
  }
  .card-icon-wrapper {
    width: 44px !important;
    height: 44px !important;
    margin-bottom: 8px !important;
  }
  .card-heading {
    font-size: 14px !important;
    margin-bottom: 6px !important;
  }
  .card-chip {
    font-size: 10px !important;
    padding: 2px 6px !important;
  }
  .btn-emergency-pill {
    padding: 11px 16px !important;
    font-size: 14px !important;
  }
  .qrdash-emergency-wrapper {
    margin-bottom: 16px !important;
  }
}

/* Alert Step 2 & 3 Styles */
.qrdash-alert-page .qrdash-alert-title { font-size: 22px; font-weight: 800; margin: 0 0 6px; color: #0f172a; letter-spacing: -0.4px; }
.qrdash-alert-page .qrdash-alert-vehicle { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.25rem; color: #0f172a; }
.qrdash-alert-page .qrdash-alert-instruction { font-size: 13px; color: #64748b; margin: 0 0 16px; line-height: 1.4; }

/* Mini License Plate Badge for Step 2 */
.mini-plate-badge {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #0f172a;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px 10px;
    margin: 4px 0 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    gap: 8px;
}

.mini-flag-strip {
    background: #0f172a;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 2px 5px;
    border-radius: 4px;
}

.mini-plate-number {
    font-family: 'Courier New', Courier, monospace, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Interactive Reason Cards */
.qrdash-alert-page .alert_option .op {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.qrdash-alert-page .alert_option .op:hover {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.10);
}

.qrdash-alert-page .alert_option .op.is-selected,
.qrdash-alert-page .alert_option .op:has(.opp:checked) {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%) !important;
    box-shadow: 0 8px 22px -4px rgba(37, 99, 235, 0.18) !important;
    transform: translateY(-2px);
}

.qrdash-alert-page .qrdash-alert-option-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.qrdash-alert-page .alert-icon {
    max-width: 26px;
    max-height: 26px;
    object-fit: contain;
}

.qrdash-alert-page .alert_option .op.is-selected .qrdash-alert-option-icon,
.qrdash-alert-page .alert_option .op:has(.opp:checked) .qrdash-alert-option-icon {
    background: #dbeafe;
    border-color: #bfdbfe;
    transform: scale(1.05);
}

.qrdash-alert-page .qrdash-alert-option-label {
    display: flex;
    align-items: center;
    flex: 1;
}

.qrdash-alert-page .qrdash-alert-option-label .opp {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.qrdash-alert-page .qrdash-alert-option-label span {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}

/* Custom Checkmark Badge */
.qrdash-radio-custom {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    margin-left: 10px;
}

.qrdash-radio-custom .check-icon {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qrdash-alert-page .alert_option .op.is-selected .qrdash-radio-custom,
.qrdash-alert-page .alert_option .op:has(.opp:checked) .qrdash-radio-custom {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.qrdash-alert-page .alert_option .op.is-selected .qrdash-radio-custom .check-icon,
.qrdash-alert-page .alert_option .op:has(.opp:checked) .qrdash-radio-custom .check-icon {
    opacity: 1;
    transform: scale(1);
}

/* Action Buttons & Step 3 Fields */
.qrdash-alert-page .qrdash-alert-actions { margin-top: 1.5rem; }
.qrdash-alert-page .qrdash-alert-step .field { margin-bottom: 1.25rem; }
.qrdash-alert-page .qrdash-alert-step .field label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: #0f172a; }
.qrdash-alert-page .qrdash-input { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #cbd5e1; border-radius: 0.75rem; font-size: 1rem; background: #ffffff; color: #0f172a; transition: all 0.2s ease; }
.qrdash-alert-page .qrdash-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12); }

/* Prefix Icon inside input-wrap */
.input-wrap.has-prefix-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap.has-prefix-icon .input-prefix-icon {
    position: absolute;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.input-wrap.has-prefix-icon .qrdash-input {
    padding-left: 44px !important;
}

/* Location Share Segmented Toggle Switch */
.qrdash-alert-page .qrdash-share-location-wrap { margin-bottom: 1.25rem; }
.qrdash-alert-page .qrdash-share-location-label { font-size: 0.875rem; color: #0f172a; margin: 0 0 0.6rem; font-weight: 600; }
.qrdash-alert-page .qrdash-share-location-btns {
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 14px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.qrdash-alert-page .qrdash-loc-btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    color: #64748b;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.qrdash-alert-page .qrdash-loc-btn:hover {
    color: #0f172a;
}

.qrdash-alert-page .qrdash-loc-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.qrdash-alert-page .qrdash-loc-allow.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3) !important;
}

.qrdash-alert-page .qrdash-loc-deny.active {
    background: #ffffff !important;
    color: #475569 !important;
}

/* WhatsApp Send Message Button Styling */
.send_vechicle,
.send_lost {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px -4px rgba(37, 211, 102, 0.42) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.send_vechicle:hover,
.send_lost:hover {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.55) !important;
    transform: translateY(-2px);
}

.qrdash-alert-page .qrdash-alert-buttons-row { display: flex; flex-direction: column; gap: 0.75rem; }
.qrdash-alert-page .qrdash-alert-buttons-row .btn-primary { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 14px; border-radius: 14px; font-weight: 700; font-size: 15px; }

/* Next Button Enhancement */
.qrdash-btn-next {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.35) !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.qrdash-btn-next:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 12px 25px -4px rgba(37, 99, 235, 0.48) !important;
    transform: translateY(-2px);
}

.qrtag9-call-modal,
#qrtag9-call-modal,
#qrtag9-emergency-modal {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.qrtag9-call-modal-inner {
    position: relative;
    width: 100%;
    max-width: 430px;
    padding: 34px 28px 24px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.20), 0 10px 30px rgba(0, 0, 0, 0.10);
    text-align: center;
    animation: qrtag9ModalOpen 0.25s ease;
}

#qrtag9-call-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

#qrtag9-call-close:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: rotate(90deg);
}

.qrtag9-call-modal-inner::before {
    content: "☎";
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #c3c5f8;
    color: #6030EC;
    font-size: 28px;
}

.qrtag9-call-modal-inner h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.qrtag9-call-modal-inner p {
    margin: 0 auto 22px;
    max-width: 350px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

#qrtag9-scanner-mobile {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    box-sizing: border-box;
    border: 1px solid #dbe2ea;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

#qrtag9-scanner-mobile:focus {
    background: #ffffff;
    border-color: #c3c5f8;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.10);
}

#qrtag9-scanner-mobile::placeholder {
    color: #94a3b8;
}

#qrtag9-start-call {
    width: 100%;
    height: 54px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #6030EC;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.20);
    transition: all 0.2s ease;
}

#qrtag9-start-call:hover {
    background: #6030EC;
    transform: translateY(-1px);
}

#qrtag9-start-call:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#qrtag9-call-cancel {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#qrtag9-call-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

#qrtag9-call-error {
    min-height: 20px;
    margin-top: 10px;
    color: #dc2626;
    font-size: 13px;
}

@keyframes qrtag9ModalOpen {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    #qrtag9-call-modal {
        padding: 15px;
    }
    .qrtag9-call-modal-inner {
        padding: 30px 20px 20px;
        border-radius: 20px;
    }
    .qrtag9-call-modal-inner h3 {
        font-size: 21px;
    }
}

/* Footer & Bottom Nav Styles */
.parking-tag-footer { padding: 1rem 0 1.5rem; }
.parking-tag-footer-bar { display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.parking-tag-footer-bar-3 { justify-content: space-around; }
.parking-tag-footer-bar-5 { justify-content: space-around; }
.parking-tag-footer-item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem; color: hsl(var(--sidebar-foreground) / 0.8); text-decoration: none; font-size: 0.75rem; border-radius: 0.5rem; transition: color 0.2s, background 0.2s; }
.parking-tag-footer-item:hover { color: hsl(var(--sidebar-foreground)); background: hsl(var(--sidebar-accent)); }
.parking-tag-footer-item i { font-size: 1.25rem; }
.field__rules li.pass { color: hsl(var(--success)); }
.field__rules.password-rules li.pass { color: hsl(142, 76%, 36%); }
.field__rules.password-rules li.pass::before { content: "✓ "; font-weight: bold; }

@media (min-width: 1025px) {
  .parking-tag-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .parking-tag-bottom-nav {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    margin: 0 !important;
    padding: 0.5rem 0.25rem !important;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0.5rem)) !important;
    background: hsl(var(--sidebar-background));
    border-top: 1px solid hsl(var(--sidebar-border));
    box-shadow: 0 -2px 12px hsl(var(--foreground) / 0.08);
  }
  .parking-tag-bottom-nav .parking-tag-footer-item {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.25rem;
  }
  .parking-tag-bottom-nav .parking-tag-footer-item i {
    font-size: 1.35rem;
  }
  body:has(.parking-tag-footer) .qrdash-footer .qrdash-footer-bottom {
    margin-bottom: 4rem;
  }
}

/* Activity Log Badges */
.log-badge { display:inline-block; padding:0.2em 0.5em; border-radius:4px; font-size:0.75rem; font-weight:500; text-transform:lowercase; }
.log-sent { background:hsl(142,76%,36%); color:#fff; }
.log-failed { background:hsl(0,84%,60%); color:#fff; }
.log-skipped { background:hsl(var(--muted)); color:hsl(var(--muted-foreground)); }

/* =========================================================
   EMERGENCY CONTACT MODAL STYLES
   ========================================================= */
.qrtag9-emergency-modal-inner {
    border: 1.5px solid #fecdd3 !important;
}

.qrtag9-emergency-modal-inner::before {
    display: none !important;
}

#qrtag9-emergency-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffe4e6;
    color: #e11d48;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

#qrtag9-emergency-close:hover {
    background: #fecdd3;
    color: #be123c;
    transform: rotate(90deg);
}

.emergency-modal-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #ffe4e6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.15);
}

.emergency-contact-display-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff5f5;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 18px 0 20px;
    text-align: left;
}

.emergency-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fda4af;
    flex-shrink: 0;
}

.emergency-details-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.emergency-person-name {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.emergency-privacy-label {
    font-size: 11px;
    color: #e11d48;
    font-weight: 600;
}

.btn-start-emergency-masked-call {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.25);
    transition: all 0.2s ease;
}

.btn-start-emergency-masked-call:hover {
    background: linear-gradient(135deg, #be123c 0%, #9f1239 100%);
    transform: translateY(-1px);
}

#qrtag9-emergency-cancel {
    width: 100%;
    height: 44px;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

#qrtag9-emergency-cancel:hover {
    background: #f8fafc;
    color: #0f172a;
}

/* =========================================================
   INVALID QR CODE SCREEN STYLES (PREMIUM ENHANCED)
   ========================================================= */
.qrdash-invalid-qr-card {
    padding: 2rem 1.5rem;
    max-width: 440px;
    margin: 0 auto;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}
.qrdash-invalid-icon-pulse-outer {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0.5rem auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qrdash-invalid-icon-pulse-outer::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.18);
    animation: qrdashPulseRed 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes qrdashPulseRed {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.2; }
}
.qrdash-invalid-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.18);
}
.qrdash-invalid-qr-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.qrdash-quick-links-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}
.qrdash-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 99px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.qrdash-quick-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.status-dot.dot-red {
    background: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.qrdash-status-badge.status-inactive {
    background: #fef2f2;
    border-color: #fee2e2;
    color: #991b1b;
}

/* =========================================================
   QRTAG9 MODERN AUTH PAGES (LOGIN, REGISTER, FORGOT)
   ========================================================= */
.qrdash-auth-card-modern {
    padding: 2.25rem 2rem;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
}

@media (max-width: 767px) {
    .qrdash-auth-form-wrap {
        padding: 1.25rem 1rem 3rem !important;
        margin-top: 3.5rem !important;
    }
    .qrdash-auth-card-modern {
        padding: 1.75rem 1.25rem !important;
    }
}

.qrdash-auth-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
}

.qrdash-auth-form-box .form-title h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 0.35rem;
}

.qrdash-auth-form-box .form-title p {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 400;
}

.qrdash-auth-form .field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.qrdash-auth-form .forgot-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.qrdash-auth-form .forgot-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

.qrdash-auth-form .input-wrap .qrdash-input-modern {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 3.25rem;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #0f172a;
    transition: all 0.2s ease;
}

.qrdash-auth-form .input-wrap .qrdash-input-modern:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.qrdash-auth-submit-btn {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3) !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
}

.qrdash-auth-submit-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.38) !important;
}

/* =========================================================
   QRTAG9 HOME PAGE ENHANCEMENTS (HOW IT WORKS & USE CASES)
   ========================================================= */
.qrdash-how-it-works {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}
.qrdash-section-header {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 3.5rem;
}
.qrdash-section-header .section-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 99px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.qrdash-section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 0.75rem;
}
.qrdash-section-header p {
    font-size: 1.1rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.qrdash-steps-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}
@media (min-width: 768px) {
    .qrdash-steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.qrdash-step-card {
    position: relative;
    padding: 2.25rem 1.75rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    transition: all 0.3s ease;
}
.qrdash-step-card:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.08);
}
.qrdash-step-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 13px;
    font-weight: 800;
    color: #94a3b8;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 99px;
}
.qrdash-step-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.25);
}
.qrdash-step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.qrdash-step-card p {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Use Cases Section */
.qrdash-usecases {
    padding: 6rem 0;
    background: #f8fafc;
}
.qrdash-usecases-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .qrdash-usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .qrdash-usecases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.qrdash-usecase-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}
.qrdash-usecase-card:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    box-shadow: 0 16px 32px -10px rgba(99, 102, 241, 0.15);
}
.qrdash-usecase-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.qrdash-usecase-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
.qrdash-usecase-card p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* =========================================================
   THANK YOU & 404 ERROR PAGE ENHANCEMENTS
   ========================================================= */
.qrdash-thankyou-card {
    padding: 2.25rem 1.5rem;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}
.qrdash-success-icon-pulse {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0.5rem auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qrdash-success-icon-pulse::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.18);
    animation: qrdashPulseGreen 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
@keyframes qrdashPulseGreen {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.2; }
}
.qrdash-success-icon-wrapper {
    position: relative;
    z-index: 2;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #6ee7b7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}
.qrdash-info-pill-delivered {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 99px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1.25rem;
}