/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans Tamil', 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(255, 107, 107, 0.3);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a2e;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  margin-bottom: 10px;
  animation: bounce 2s infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #2d2d44;
  margin-bottom: 30px;
}

/* Countdown Section */
.countdown-section {
  padding: 40px 20px;
  background: rgba(26,26,46,0.5);
}

.countdown-box {
  text-align: center;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(106,17,203,0.4);
}

.countdown-label {
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.countdown-timer {
  font-size: 3rem;
  font-weight: 700;
  color: #ffd93d;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
}

.countdown-end {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Form Section */
.form-section {
  padding: 60px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #ffd93d;
  margin-bottom: 10px;
}

.section-header p {
  color: #ccc;
  font-size: 1.1rem;
}

.loto-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(26,26,46,0.8);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

/* Inline flag images in user cards */
.flag-inline {
  width: 20px;       /* small width */
  height: auto;      /* keep aspect ratio */
  vertical-align: middle;
  margin-left: 5px;  /* space between city and flag */
  border-radius: 3px; /* optional rounded corners */
  box-shadow: 0 0 2px rgba(0,0,0,0.5); /* subtle shadow */
}


.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffd93d;
  font-size: 1.1rem;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #444;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #ffd93d;
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,217,61,0.3);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  border: none;
  border-radius: 12px;
  color: #1a1a2e;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,107,107,0.6);
}

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

.message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.message.show {
  display: block;
}

.message.success {
  background: rgba(76,175,80,0.2);
  border: 2px solid #4caf50;
  color: #4caf50;
}

.message.error {
  background: rgba(244,67,54,0.2);
  border: 2px solid #f44336;
  color: #f44336;
}

/* Winners Section */
.winners-section {
  padding: 60px 20px;
  background: rgba(26,26,46,0.3);
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.winner-card {
  background: linear-gradient(135deg, rgba(106,17,203,0.3) 0%, rgba(37,117,252,0.3) 100%);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  border: 2px solid rgba(255,217,61,0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.winner-card::before {
  content:'';
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:linear-gradient(45deg,transparent,rgba(255,217,61,0.1),transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.winner-card.confirmed {
  border-color:#4caf50;
  box-shadow:0 0 30px rgba(76,175,80,0.4);
}

.winner-card.pending {
  border-color:#ff9800;
  box-shadow:0 0 30px rgba(255,152,0,0.3);
}

.winner-icon { font-size:3rem; margin-bottom:15px; }
.winner-name { font-size:1.5rem; font-weight:700; color:#ffd93d; margin-bottom:10px; }
.winner-mobile { font-size:1.2rem; color:#fff; margin-bottom:10px; font-family:'Courier New', monospace; }
.winner-country { color:#ccc; margin-bottom:15px; }
.winner-status { display:inline-block; padding:8px 20px; border-radius:20px; font-weight:600; font-size:0.9rem; }

.confirmed .winner-status { background: rgba(76,175,80,0.3); color:#4caf50; }
.pending .winner-status { background: rgba(255,152,0,0.3); color:#ff9800; }

.no-winner, .no-users { text-align:center; padding:40px; color:#999; font-size:1.2rem; }

.warning-box {
  display:flex; align-items:center; gap:20px;
  background:rgba(255,152,0,0.1);
  border:2px solid #ff9800;
  padding:20px;
  border-radius:15px;
  margin-top:30px;
}

.warning-icon { font-size:3rem; flex-shrink:0; }
.warning-text { color:#ffb74d; line-height:1.8; }

/* Users Section */
.users-section { padding:60px 20px; }
.users-grid { display:grid; gap:15px; max-width:800px; margin:0 auto; }
.user-card {
  display:flex; align-items:center; gap:20px;
  background:rgba(26,26,46,0.6);
  padding:20px; border-radius:15px;
  border:1px solid rgba(255,217,61,0.2);
  transition: all 0.3s ease;
}
.user-card:hover { background:rgba(26,26,46,0.8); border-color:rgba(255,217,61,0.5); transform:translateX(5px); }
.user-number { font-size:1.5rem; font-weight:700; color:#ffd93d; min-width:50px; }
.user-info { flex:1; }
.user-name { font-size:1.2rem; font-weight:600; color:#fff; margin-bottom:5px; }
.user-mobile { color:#ccc; font-family:'Courier New', monospace; margin-bottom:5px; }
.user-country { font-size:0.9rem; color:#999; }

/* Footer */
.footer { background:#0a0a0a; padding:40px 20px; text-align:center; color:#999; border-top:2px solid rgba(255,217,61,0.2); }
.footer p { margin-bottom:10px; }
.footer a { color:#ffd93d; text-decoration:none; transition:color 0.3s ease; }
.footer a:hover { color:#ff6b6b; }
/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 16px;
  background: rgba(26, 26, 46, 0.6);
  color: #ffd93d;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 40px;
  text-align: center;
}

.pagination a:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  color: #1a1a2e;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
  transform: translateY(-2px);
}

.pagination .active {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #ffd93d;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.5);
}
a:link, a:visited {
  text-decoration: none;
}

.pagination .disabled {
  background: rgba(26, 26, 46, 0.3);
  color: #555;
  cursor: not-allowed;
}
/* Centered Text Utility */
.text-center {
  text-align: center;
  color: #fcefd4; /* matches your neon/gold theme */
  font-weight: 600;
  font-size: 1.1rem;
  margin: 15px 0;
}

/* Optional small responsive adjustment */
@media (max-width: 768px) {
  .text-center {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .text-center {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .pagination a,
  .pagination span {
    padding: 8px 12px;
    min-width: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .pagination a,
  .pagination span {
    padding: 6px 10px;
    min-width: 30px;
    font-size: 0.8rem;
  }
}


/* Responsive */
@media (max-width:768px) {
  .hero-title { font-size:2rem; }
  .hero-subtitle { font-size:1.2rem; }
  .countdown-timer { font-size:2rem; }
  .loto-form { padding:25px; }
  .section-header h2 { font-size:1.8rem; }
  .winners-grid { grid-template-columns:1fr; }
  .warning-box { flex-direction:column; text-align:center; }
}

@media (max-width:480px) {
  .hero-title { font-size:1.5rem; }
  .countdown-timer { font-size:1.5rem; }
  .btn-submit { font-size:1.1rem; }
}

/* Animations */
@keyframes bounce { 0%,100%{transform:translateY(0);}50%{transform:translateY(-10px);} }
