 /* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #fdfdfd;
  color: #2b2b2b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

/* Header */
header {
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo a {
  color: #345fad;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 1.5rem;
}
nav a {
  color: #2b2b2b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}
nav a:hover {
  background: #f2f4f7;
}
.burger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #345fad;
}
@media (max-width: 600px) {
  .burger { display: block; }
  nav { display: none; flex-direction: column; width: 100%; margin-top: 10px; gap: 10px; }
  nav.show { display: flex; }
}

/* Main Container */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 60px;
}
.hero h2 {
  font-size: 2rem;
  color: #345fad;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto 2rem;
}
.cta-button {
  display: inline-block;
  background: #345fad;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-button:hover {
  background: #2c4f98;
  transform: translateY(-2px);
}

/* Info Section */
.info-section {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 60px;
}
.info-section h3 {
  font-size: 1.5rem;
  color: #345fad;
  margin-bottom: 1rem;
}
.info-section p, .info-section ul {
  color: #555;
  margin-bottom: 1rem;
}
.info-section ul {
  list-style: disc inside;
  margin-left: 1rem;
}
.info-section li {
  margin-bottom: 0.5rem;
}

/* New Sections */
section {
  margin-bottom: 60px;
}
.features-section h3,
.advantages-section h3,
.about-section h3,
.developer-section h3 {
  font-size: 1.5rem;
  color: #345fad;
  margin-bottom: 1rem;
}
.features-section ul,
.advantages-section ul {
  list-style: disc inside;
  color: #555;
  margin-left: 1.2rem;
}
.features-section li,
.advantages-section li {
  margin-bottom: 0.5rem;
}

/* Developer Section */
.developer-section {
  text-align: center;
}
.developer-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid #e6e6e6;
  animation: spin 12s linear infinite;
}
.developer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.developer-section p {
  color: #555;
}

/* Footer */
footer {
  background: #f7f9fb;
  border-top: 1px solid #e6e6e6;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: #777;
}
footer a {
  color: #345fad;
  text-decoration: underline;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .cta-button { width: 100%; }
  .hero h2 { font-size: 1.6rem; }
  .info-section, section { padding: 20px; }
}

.responsive-banner img {
  width: 90%;
  height: auto;
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.hero-box {
  background: #f9fafa;
  border-radius: 16px;
  padding: 40px 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  animation: fadeInSlide 1s ease-out;
  transition: transform 0.3s ease;
}
.hero-box:hover {
  transform: scale(1.015);
}

@keyframes fadeInSlide {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #345fad;
}
.card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #345fad;
}
.card p {
  font-size: 0.95rem;
  color: #555;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.qrj-icon svg {
  display: block;
}

.qrj-text strong {
  color: #345fad;
  font-weight: 700;
}

/* Steps Container */
.steps-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 12px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.step {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 22px;
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
  transition: box-shadow 0.2s;
}
.step:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.step-number {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #345fad;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  font-weight: bold;
  margin-right: 10px;
}
.step-content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-title {
  font-size: 1.22em;
  font-weight: bold;
  margin: 0 0 2px 0;
  color: #345fad;
}
.step-caption {
  color: #555;
  font-size: 1em;
  margin-bottom: 4px;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-image {
  width: 160px;
  max-width: 35vw;
  height: auto;
  border-radius: 10px;
  background: #eee;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  object-fit: contain;
  margin-left: 10px;
  opacity: 0;
  animation: fadeSlideUp 1s ease forwards;
  animation-delay: 0.3s;
}
@media (max-width: 700px) {
  .step {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 16px 10px;
  }
  .step-image {
    width: 95vw;
    max-width: 350px;
    margin-left: 0;
    margin-top: 10px;
  }
  .step-number {
    width: 42px;
    height: 42px;
    font-size: 1.2em;
    margin-right: 0;
    margin-bottom: 8px;
  }
}

/* Bob Banner */
.bob-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #345fad;
  color: #fff;
  text-align: center;
  padding: 16px 10px;
  font-size: 1rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  z-index: 9999;
}
.bob-banner a {
  color: #aadfff;
  font-weight: bold;
  text-decoration: underline;
  margin-left: 10px;
}
@media (max-width: 600px) {
  .bob-banner {
    font-size: 0.95rem;
    padding: 12px 8px;
  }
}
.cta-button:hover {
  background: #2c4f98;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

nav a:hover {
  background: rgba(52, 95, 173, 0.15);
  transform: scale(1.05);
}
nav a {
  position: relative;
  overflow: hidden;
}

nav a::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #345fad;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.hero-box {
  animation: fadeSlideUp 1s ease;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.bob-banner {
  animation: bob 3s infinite ease-in-out;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.cta-button {
  position: relative;
  overflow: hidden;
}

.cta-button:after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 0;
  height: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.cta-button:active:after {
  width: 200%;
  height: 200%;
  opacity: 0;
}
.card:hover,
.cta-button:hover {
  box-shadow: 0 0 10px #345fad;
}
html {
  scroll-behavior: smooth;
}
#queue-counter-section {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  max-width: 800px;
  margin: 40px auto;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
#queue-counter-section h2 {
  font-size: 1.8rem;
  color: #345fad;
  font-weight: 700;
  margin-bottom: 12px;
}
#queue-count {
  font-size: 3rem;
  font-weight: 800;
  color: #1cb556;
  letter-spacing: 1px;
}


/* .................. */


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Create Form: Fullscreen Centered */
.create-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
}
.create-form.hidden {
  display: none;
}
.create-form h2 {
  text-align: center;
  margin-bottom: 20px;
}
/* .create-form form {
  width: 90%;
  max-width: 90%;
  padding: 20px;
  background: #fafafa;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
} */

/* Result Box: Responsive, Centered, Wide */
/* Result Box: Responsive, Centered, Wide, Different Color Scheme */
.result-box {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 30px 20px;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  background: #f0f4ff;          /* Light blue background for contrast */
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  border: 2px solid #c3d4f7;
}
.result-box.visible {
  display: flex;
  animation: fadeIn 0.8s ease-out;
}

/* Result Success Box inside Result */
.result-box .success {
  background: #eaf3ff;          /* Even lighter inner background */
  border-left: 6px solid #357edd; /* Bright blue accent */
  color: #234078;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 25px 20px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  text-align: center;
}

/* Result Headings */
.result-box h3 {
  color: #234078;
  margin-bottom: 20px;
}

/* Result Links & Sharing Buttons */
.result-box .links a {
  color: #234078;
  font-weight: 600;
}
.result-box .copy-share button,
.result-box .copy-share a button {
  background: #357edd;
  color: #fff;
}
.result-box .copy-share button:hover,
.result-box .copy-share a button:hover {
  background: #285bb5;
}
.result-box img {
  border: 2px solid #c3d4f7;
}

/* Headings */
h2, h3 {
  color: #111;
  margin-bottom: 20px;
  text-align: center;
}

/* Form Elements */
form label {
  font-weight: 600;
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 1.1em;
}
input, button {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
}
input:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
  outline: none;
}
button {
  margin-top: 25px;
  background: #111;
  color: #fff;
  font-weight: bold;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  transition: transform 0.2s ease;
}
button:hover {
  transform: translateY(-2px);
}

/* Alerts */
.success, .error {
  width: 90%;
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.success {
  background: #e8f5e9;
  border-left: 6px solid #43a047;
}
.error {
  color: #b71c1c;
  background: #ffebee;
  border-left: 5px solid #d32f2f;
}

/* Links & Sharing */
.links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}
.links a {
  display: block;
  margin: 6px 0;
  color: #111;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
  text-align: center;
}
.links a:hover {
  text-decoration: underline;
}
.copy-share {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.copy-share button,
.copy-share a button {
  flex: 1 1 45%;
  max-width: 200px;
  background: #607d8b;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px;
  transition: background 0.3s ease;
  cursor: pointer;
}
.copy-share button:hover,
.copy-share a button:hover {
  background: #546e7a;
}
img {
  margin-top: 15px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  width: 100%;
  padding: 20px;
  text-align: center;
  background: #fff;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}
footer a {
  color: #666;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-container {
    padding: 16px 20px;
  }
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
  }
  nav.show {
    display: flex;
  }
  .burger {
    display: block;
  }
  main {
    padding: 20px;
  }
  .create-form form {
    width: 95%;
    padding: 16px;
  }
  .result-box {
    width: 95%;
    padding: 16px;
  }
  h2 {
    font-size: 1.6rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  input, button {
    font-size: 1rem;
    padding: 12px 14px;
  }
  .copy-share button,
  .copy-share a button {
    flex: 1 1 100%;
    max-width: none;
  }
  .links {
    gap: 16px;
  }
}
@media (max-width: 400px) {
  .header-container {
    flex-direction: row;
    align-items:center;
    padding: 14px 16px;
  }
  .logo a {
    font-size: 1.3rem;
  }
  .burger {
    font-size: 2rem;
  }
  main {
    padding: 16px;
    margin: 20px auto;
  }
  .create-form form {
    padding: 12px;
  }
  h2 {
    font-size: 1.4rem;
  }
  h3 {
    font-size: 1.2rem;
  }
  input, button {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
  .copy-share {
    flex-direction: column;
    gap: 8px;
  }
  .copy-share button,
  .copy-share a button {
    width: 100%;
  }
}
.custom-checkbox-label {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #111;
  user-select: none;
}

.custom-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s, border-color 0.2s;
}

.custom-checkbox-label input[type="checkbox"]:checked {
  background-color: #000;
  border-color: #000;
}

.custom-checkbox-label input[type="checkbox"]:checked::after {
content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 20px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 0 auto;
  bottom: 0;
  right: 0;
  line-height: 0px;
}


/* .................. */


  .post {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 255, 153, 0.05);
  }
  .post h3 {
    margin-top: 0;
    color: #66ff99;
  }
  .post img {
    max-width: 100%;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(102, 255, 153, 0.1);
  }
  .post p {
    line-height: 1.6;
    color: #ddd;
  }
  .admin-links a {
    margin-right: 10px;
    color: #66ff99;
    text-decoration: underline;
  }
  .admin-links a:hover {
    text-decoration: none;
  }
  .burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #66ff99;
    cursor: pointer;
  }
  @media (max-width: 768px) {
    .burger {
      display: block;
    }
    .nav-menu {
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
      background: #111;
      margin-top: 10px;
      text-align: center;
    }
    .nav-menu.show {
      display: flex;
    }
    .nav-menu a {
      padding: 1rem;
      border-top: 1px solid #222;
    }
  }

  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 30px;
  }

  .post {
    background: #222;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 255, 153, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
  }

  .post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 255, 153, 0.15);
  }

  .post a {
    display: block;
    color: #66ff99;
    text-decoration: none;
  }

  .post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
  }

  .post h3 {
    margin: 15px 10px;
    font-size: 1.2rem;
    color: #66ff99;
  }

  /* ................. */

  
  .cover-image {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(102, 255, 153, 0.05);
  }
  .content {
    white-space: pre-wrap;
    line-height: 1.8;
    /* color: #ddd; */
    /* background: #111; */
    padding: 1rem;
    border-radius: 8px;
  }
  .back-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: #66ff99;
    text-decoration: underline;
  }
  .back-link:hover {
    text-decoration: none;
  }

  /* ...........  */

 .save-warning {
  text-align: center;
  color: #4dd2ff;  /* Cyan text */
  font-size: 1rem;
  margin-top: 30px;
  animation: pulseGlow 1.5s infinite alternate;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid #4dd2ff;
}

@keyframes pulseGlow {
  from {
    color: #ffffff;
    background: rgba(233, 14, 14, 0.38);
    text-shadow: 0 0 2px #66ffff;
  }
  to {
    color: #FFF;
    background: rgba(255, 2, 2, 0.8);
    text-shadow: 0 0 10px #66ffff;
  }
}

.logout {
      text-align: right;
      margin-bottom: 10px;
    }
    .logout a {
      color: #fff;
      background: #444;
      padding: 8px 12px;
      border-radius: 6px;
      text-decoration: none;
      font-weight: bold;
      transition: background 0.2s;
    }
    .logout a:hover {
      background: #666;
    }

     button.delete-btn:hover {
      background: #d32f2f;
      transform: scale(1.05);
    }
    button.delete-btn {
      margin-top: 10px;
      background: #b71c1c;
      color: white;
      border: none;
      padding: 10px 14px;
      border-radius: 8px;
      cursor: pointer;
    }
    .queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0;
  margin: 20px 0;
}

.queue-card {
background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: thin solid #DDD;
}

.queue-card strong {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #0080b3;
}

.queue-card a {
  color: #0080b3;
  text-decoration: none;
  margin: 5px 0;
  display: inline-block;
}

.queue-card a:hover {
  text-decoration: underline;
}

.queue-card img {
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.1);
  width: 120px;
}

.queue-card form {
  margin-top: 10px;
}

.queue-card button.delete-btn {
  margin-top: 10px;
  background: #b71c1c;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.queue-card button.delete-btn:hover {
  background: #d32f2f;
  transform: scale(1.05);
}
.pin-section {
  margin-top: 10px;
  background: #1a1a1a;
  padding: 12px;
  border-radius: 8px;
  box-shadow: inset 0 1px 3px rgba(255,255,255,0.05);
}

.pin-section p {
  margin: 0 0 10px;
  color: #ccc;
}

.pin-section input[type="text"] {
  width: 80%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #444;
  margin-bottom: 10px;
  background: #111;
  color: #fff;
}

.pin-section input[type="text"]::placeholder {
  color: #888;
}

.pin-section button.confirm-button {
  background: #064d1f;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.pin-section button.confirm-button:hover {
  background: #056b2a;
}
:root{
  --brand:#4f52c8; /* tweak to match your button */
  --ink:#2b2d42;
  --muted:#6b6f88;
  --card-bg:#ffffff;
}

.stat-wrap{
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

.stat-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  background:var(--card-bg);
  border-radius:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  padding:28px clamp(20px,4vw,40px);
  position:relative;
  overflow:hidden;
}

.stat-title{
  margin:0 0 6px 0;
  font-size: clamp(22px, 2.2vw, 28px);
  color:var(--ink);
  letter-spacing:.2px;
}

.stat-sub{
  margin:0 0 16px 0;
  color:var(--muted);
  font-size:15px;
}

.stat-number{
  font-weight:800;
  font-size: clamp(44px, 6vw, 64px);
  line-height:1;
  color:var(--brand);
  letter-spacing:1px;
  transform: translateY(8px);
  opacity:0;
  animation: slideUp .8s ease-out .2s forwards;
}

/* mini row (optional, keep or remove) */
.stat-mini{
  margin-top:10px;
  font-size:14px;
  color:var(--muted);
  background: rgba(79,82,200,.08);
  padding:8px 12px;
  border-radius:999px;
  display:inline-block;
}

.stat-right{
  display:flex;
  align-items:center;
  gap:16px;
  position:relative;
}

.stat-cta{
  appearance:none;
  border:0;
  background:var(--brand);
  color:#fff;
  padding:14px 18px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 8px 18px rgba(79,82,200,.25);
}
.stat-cta:hover{ transform: translateY(-1px); }
.stat-cta:active{ transform: translateY(0); }

.pulse{
  width:12px; height:12px; border-radius:50%;
  background: var(--brand);
  box-shadow:0 0 0 0 rgba(79,82,200,.6);
  animation:pulse 2s infinite;
  position:absolute; right:140px; top:6px;
}

.spark{
  position:absolute; right:-40px; top:-40px;
  width:160px; height:160px; border-radius:50%;
  background: radial-gradient(closest-side, rgba(79,82,200,.18), transparent 70%);
  filter: blur(6px);
  animation: drift 7s ease-in-out infinite alternate;
}

@keyframes pulse{
  0% { box-shadow:0 0 0 0 rgba(79,82,200,.6) }
  70% { box-shadow:0 0 0 16px rgba(79,82,200,0) }
  100% { box-shadow:0 0 0 0 rgba(79,82,200,0) }
}
@keyframes drift{
  from { transform: translate(0,0) rotate(0deg) }
  to   { transform: translate(-10px,10px) rotate(6deg) }
}
@keyframes slideUp{
  to { transform: translateY(0); opacity:1; }
}

/* NEW: tiny pop each second for the live counter */
.stat-number.tick { animation: pop .25s ease-out; }
@keyframes pop { 0%{transform:scale(1)} 40%{transform:scale(1.04)} 100%{transform:scale(1)} }

/* Responsive */
@media (max-width:720px){
  .stat-card{ flex-direction:column; align-items:flex-start; }
  .pulse{ right:16px; top:16px; }
}
