/* Premium mobile-first stylesheet */

:root {
  --bg-overlay: rgba(10, 14, 23, 0.55);
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f7fb;
  --text-muted: #c9c9d1;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --space-xxs: 6px;
  --space-xs: 10px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 20px;
  --space-xl: 24px;

  /* brand accents for buttons - Internet offers */
  --bl: linear-gradient(135deg, #ff9100 0%, #ff6f00 100%);
  --gp: linear-gradient(135deg, #4db6ff 0%, #0d8bff 100%);
  --rb: linear-gradient(135deg, #ff5c7a 0%, #ff2e4c 100%);
  --ar: linear-gradient(135deg, #ff6045 0%, #c21807 100%);

  /* brand accents for buttons - Minute offers */
  --blmb: linear-gradient(135deg, #ffad42 0%, #ff9100 100%);
  --gpmb: linear-gradient(135deg, #5aa8ff 0%, #2979ff 100%);
  --rbmb: linear-gradient(135deg, #ff7a94 0%, #ff3e5e 100%);   /* Robi minutes */
  --armb: linear-gradient(135deg, #ff7a60 0%, #d32a18 100%);   /* Airtel minutes */

  /* notice palette (non-glass) */
  --notice-bg: #111827;            /* slate-900 */
  --notice-text: #e5e7eb;          /* gray-200 */
  --notice-accent: #60a5fa;        /* blue-400 */
  --notice-secondary-bg: #0f172a;  /* slate-950 */
  --notice-secondary-accent: #f59e0b; /* amber-500 */
}

html {
  box-sizing: border-box;
  -webkit-scroll-behavior: smooth;
  -moz-scroll-behavior: smooth;
  -ms-scroll-behavior: smooth;
  scroll-behavior: smooth;
  height: 100%;
}

*, *::before, *::after { box-sizing: inherit; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: #0a0e17;
  position: relative;
  overflow-x: hidden;
}

/* Background image with overlay for perfect mobile cover */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--bg-overlay), var(--bg-overlay)), url("../images/background.jpg");
  background-size: 300px 300px;
  background-repeat: repeat;
  background-position: top left;
  z-index: -1;
  transform: translateZ(0);
}


/* Safe area support for notches */
.container {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  width: min(94%, 420px);
  margin: max(14px, env(safe-area-inset-top)) auto var(--space-xl);
  padding: calc(var(--space-lg) + env(safe-area-inset-top) / 2) var(--space-lg) var(--space-lg);
}

.header p {
  margin: 0 0 var(--space-sm) 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-align: center;
  color: var(--text);
}

.header p strong { font-weight: 800; }
.header p span { font-weight: 800; }

/* Vibrant gradient headline */
.headline {
  background: linear-gradient(90deg, #22d3ee 0%, #60a5fa 35%, #a78bfa 70%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(96, 165, 250, 0.25), 0 2px 10px rgba(0, 0, 0, 0.35);
}

.banner img {
  width: 100%;
  margin: var(--space-sm) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  display: block;
}

/* Notices: solid, high-contrast (not glass) */
.notice {
  margin: var(--space-sm) 0;
  padding: calc(var(--space-md) - 2px) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--notice-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  position: relative;
  display: flex;             
  align-items: center;       
  justify-content: center;   
  min-height: 60px;        
  text-align: center;
}

.notice::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--notice-accent), #2563eb);
}

.notice p {
  margin: 0;
  color: var(--notice-text);
  font-size: 0.98rem;
  line-height: 1.55;
  letter-spacing: 0.1px;
}

.notice--secondary {
  background: var(--notice-secondary-bg);
}

.notice--secondary::before {
  background: linear-gradient(180deg, var(--notice-secondary-accent), #b45309);
}

@media (max-width: 360px) {
  .notice p { font-size: 0.94rem; line-height: 1.5; }
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
  padding: var(--space-sm);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.time-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 62px;
}

.time-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffd166;
}

.time-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.time-separator {
    font-size: 28px;
    font-weight: 800;
    color: #ffd166;
    align-self: flex-end;
    margin-bottom: 18px;
    padding: 0 var(--space-xs);
}

/* Collector info section */
.collector-info {
  margin: var(--space-md) 0;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.data-card {
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.8s ease-in-out;
  transform: translateX(0);
}

/* Slide out to left animation */
.data-card.slide-out-left {
  transform: translateX(-100%);
  opacity: 0;
}

/* Slide in from right animation */
.data-card.slide-in-right {
  transform: translateX(100%);
  opacity: 0;
  animation: slideInFromRight 0.8s ease-out forwards;
}

.collector-text {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.collector-name {
  color: #60a5fa;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.3);
}

.offer-name {
  color: #f472b6;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(244, 114, 182, 0.3);
}

.collection-time {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Right-to-left slide animation */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Section title */
.offer-title p {
  text-align: center;
  margin: var(--space-sm) 0 var(--space-xs);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.offer-title hr {
  height: 1px;
  border: 0;
  background: var(--surface-strong);
  margin: var(--space-xs) 0 var(--space-sm);
}

.offer-button { margin: var(--space-sm) 0; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  border-radius: var(--radius-md);
  border: 0;
  outline: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, filter 0.2s ease, opacity 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:active { transform: translateY(1px) scale(0.99); }
.button:disabled { cursor: default; opacity: 0.7; }

/* Carrier themes with premium gradients */
.bllink { background: var(--bl); }
.gplink { background: var(--gp); }
.rblink { background: var(--rb); }
.arlink { background: var(--ar); }
.blmblink { background: var(--blmb); }
.gpmblink { background: var(--gpmb); }
.rbmblink { background: var(--rbmb); }   /* Robi minutes */
.armblink { background: var(--armb); }   /* Airtel minutes */

/* Subtle hover for devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .button:hover { filter: brightness(1.03) saturate(1.02); }
}

/* Success banner */
.success-banner {
  margin: var(--space-lg) 0 var(--space-md) 0;
  padding: var(--space-lg);
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-text {
  margin: 0 0 var(--space-xs) 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner-subtext {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* Tight mobile refinements */
@media only screen and (max-width: 800px) {
  .container {
    width: 94%;
    padding: var(--space-md);
    margin-top: 16px;
    border-radius: var(--radius-md);
  }
  .header p { font-size: 1.12rem; }
  .banner img { margin: var(--space-xs) 0; }
  .countdown { margin: var(--space-sm) 0; padding: var(--space-xs); }
  .time-value { font-size: 24px; }
  .time-label { font-size: 11px; }
  .time-separator { font-size: 24px; margin-bottom: 14px; }
  .collector-info { margin: var(--space-sm) 0; padding: var(--space-sm); }
  .data-card { padding: var(--space-sm); }
  .collector-text { font-size: 1rem; }
  .collection-time { font-size: 0.85rem; }
  .offer-title p { font-size: 1rem; margin: var(--space-xs) 0; }
  .button { padding: 12px 14px; min-height: 46px; }
  .success-banner { margin: var(--space-md) 0; padding: var(--space-md); }
  .banner-text { font-size: 1rem; }
  .banner-subtext { font-size: 0.9rem; }
}

@media (max-width: 360px) {
  .container { padding: var(--space-sm); }
  .header p { font-size: 1.02rem; }
  .time-value { font-size: 22px; }
  .time-label { font-size: 10px; }
  .time-separator { font-size: 22px; }
  .data-card { padding: 10px; }
  .collector-text { font-size: 0.95rem; }
  .collection-time { font-size: 0.8rem; }
  .offer-title p { font-size: 0.96rem; }
  .button { padding: 10px 12px; min-height: 44px; }
  .success-banner { margin: var(--space-sm) 0; padding: var(--space-sm); }
  .banner-text { font-size: 0.95rem; }
  .banner-subtext { font-size: 0.85rem; }

}
