/* =============================================
   ফ্রি উমরাহ ও লিভারটন লটারি — পাবলিক স্টাইল
   ============================================= */

/* === CSS ভ্যারিয়েবল (থিম রঙ) === */
:root {
  --primary: #0d5c3a;
  --primary-dark: #083d27;
  --primary-light: #1a7a4a;
  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-dark: #a07c30;
  --bg: #f9f5ef;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --border: #e0d8c8;
  --shadow: 0 4px 20px rgba(13, 92, 58, 0.12);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

/* === রিসেট ও বেস === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; border: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === লোডিং স্পিনার === */
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--gold-light);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1.5rem auto;
}

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

/* =============================================
   হেডার
   ============================================= */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 1.25rem 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}

/* ইসলামিক জ্যামিতিক প্যাটার্ন */
.header-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(201,168,76,0.06) 0, rgba(201,168,76,0.06) 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, rgba(201,168,76,0.06) 0, rgba(201,168,76,0.06) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
  pointer-events: none;
}

.header-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.header-content {
  position: relative;
  z-index: 1;
}

.site-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.site-subtitle {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--gold-light);
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* =============================================
   CTA বাটন সেকশন
   ============================================= */
.cta-section {
  background: linear-gradient(180deg, var(--primary-dark) 0%, var(--bg) 100%);
  padding: 0 1.25rem 2.5rem;
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-gold), 0 0 0 4px rgba(201,168,76,0.2);
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.3);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transform: translateY(-1rem);
}

.cta-btn:hover {
  transform: translateY(-1.25rem) scale(1.03);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45), 0 0 0 6px rgba(201,168,76,0.15);
}

.cta-btn:active {
  transform: translateY(-0.8rem) scale(0.99);
}

.cta-icon {
  font-size: 1.4em;
}

.cta-desc {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =============================================
   সেকশন টাইটেল
   ============================================= */
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title .title-icon {
  font-size: 1.2em;
}

.section-desc {
  color: var(--text-muted);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
}

/* =============================================
   বর্তমান বিজয়ী সেকশন
   ============================================= */
.current-winners-section {
  padding: 2.5rem 0;
  background: white;
}

.winners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .winners-grid { grid-template-columns: 1fr; }
}

.winner-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.winner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(13, 92, 58, 0.2);
}

.winner-card-header {
  padding: 1.25rem 1.5rem 1rem;
  position: relative;
}

.weekly-card .winner-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.monthly-card .winner-card-header {
  background: linear-gradient(135deg, #6b3a0d 0%, #a05a20 100%);
  color: white;
}

.winner-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.winner-badge {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.weekly-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.monthly-badge {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.4);
}

.winner-card-body {
  padding: 1.5rem;
  background: var(--bg-card);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* বিজয়ীর তথ্য */
.winner-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.winner-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.winner-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.winner-details h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.winner-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.1rem 0;
}

.winner-details .winner-period {
  display: inline-block;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

/* শীঘ্রই ঘোষণা */
.coming-soon {
  text-align: center;
  color: var(--text-muted);
}

.coming-soon-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}

.coming-soon p {
  font-size: 1rem;
  font-weight: 500;
}

/* =============================================
   আগের বিজয়ীদের তালিকা
   ============================================= */
.past-winners-section {
  padding: 3rem 0;
  background: var(--bg);
}

.past-winners-group {
  margin-bottom: 1rem;
}

.past-winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.past-winner-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.past-winner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(13, 92, 58, 0.15);
  border-color: var(--gold-light);
}

.past-winner-card img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-light);
  margin-bottom: 0.75rem;
}

.past-winner-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--gold-light);
}

.past-winner-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
}

.past-winner-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.1rem 0;
}

.past-winner-period {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.no-winners-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  background: white;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

/* =============================================
   সার্চ বার
   ============================================= */
.search-bar { margin-bottom: 1.25rem; }

.search-input-wrap {
  display: flex;
  align-items: center;
  background: #f4f7f5;
  border: 2px solid #d0e6da;
  border-radius: 50px;
  padding: 0.55rem 1rem;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrap:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(13,92,58,0.1);
}

.search-icon { font-size: 1rem; flex-shrink: 0; opacity: 0.6; }

.search-input-wrap input[type="search"] {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
}

.search-input-wrap input::placeholder { color: #9ab3a6; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }

.search-clear {
  background: none;
  border: none;
  color: #9ab3a6;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.search-clear:hover { color: var(--primary); }

/* =============================================
   কুপন জমাদানকারীদের টেবিল
   ============================================= */
.submitters-section {
  padding: 3rem 0 4rem;
  background: white;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.submitters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.submitters-table th {
  background: var(--primary);
  color: white;
  padding: 1rem 1.25rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.submitters-table th:first-child {
  text-align: center;
  width: 50px;
}

.submitters-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.submitters-table td:first-child {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.submitters-table tr:last-child td {
  border-bottom: none;
}

.submitters-table tr:hover td {
  background: var(--bg);
}

.submitters-table tr:nth-child(even) td {
  background: rgba(249, 245, 239, 0.5);
}

.submitters-table tr:hover td {
  background: rgba(13, 92, 58, 0.04);
}

.loading-cell {
  text-align: center;
  padding: 2rem !important;
}

.table-footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.total-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.load-more-btn {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

.load-more-btn:hover {
  background: var(--primary-dark);
}

/* =============================================
   ফুটার
   ============================================= */
.site-footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.footer-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(201,168,76,0.05) 0, rgba(201,168,76,0.05) 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.footer-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  position: relative;
  z-index: 1;
}

.footer-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}

.admin-link {
  display: inline-block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.8rem;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
}

.admin-link:hover {
  color: var(--gold-light);
}

/* =============================================
   কুপন মডাল
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 92, 58, 0.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-container {
  background: white;
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem 0 0;
  width: 36px;
  height: 36px;
  background: var(--bg);
  color: var(--text);
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: #fee;
  color: #c00;
}

.modal-header {
  padding: 1.75rem 1.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  clear: both;
}

.modal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ফর্ম স্টাইল */
.coupon-form, .winner-form, .dispute-form {
  padding: 1.5rem 1.75rem 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.required { color: #e53e3e; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
  background: #fff5f5;
}

.field-error {
  display: block;
  color: #e53e3e;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  min-height: 1.2em;
}

.field-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
}

.form-error {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: #c53030;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* সাবমিট বাটন */
.submit-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.submit-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(13, 92, 58, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ডুপ্লিকেট নোটিশ */
.duplicate-notice {
  padding: 1.5rem 1.75rem 2rem;
  text-align: center;
}

.duplicate-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.duplicate-notice h3 {
  font-size: 1.2rem;
  color: #d97706;
  margin-bottom: 0.5rem;
}

.duplicate-notice > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.dispute-btn {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.dispute-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.back-btn {
  width: 100%;
  padding: 0.7rem;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =============================================
   স্পিন হুইল (ধাপ ২)
   ============================================= */
.spin-section {
  padding: 1.5rem 1.75rem 2rem;
  text-align: center;
}

.spin-wheel-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.spin-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  color: var(--primary-dark);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  line-height: 1;
}

#spinCanvas {
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--gold), 0 0 0 10px rgba(201,168,76,0.3), var(--shadow-gold);
  display: block;
}

.spin-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.spin-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(201,168,76,0.5);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.spin-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* =============================================
   পুরস্কার ফলাফল (ধাপ ৩)
   ============================================= */
.result-container {
  padding: 2.5rem 1.75rem;
  text-align: center;
}

.result-win {
  animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

.result-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.result-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.result-prize {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0.5rem 0;
}

.result-prize.no-prize {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.result-message {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.6;
}

.close-result-btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.close-result-btn:hover {
  background: var(--primary-dark);
}

/* কনফেটি ইফেক্টের জন্য */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* =============================================
   রেসপন্সিভ
   ============================================= */
@media (max-width: 768px) {
  .cta-btn {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  .past-winners-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .submitters-table th, .submitters-table td {
    padding: 0.7rem 0.75rem;
    font-size: 0.88rem;
  }

  .modal-container {
    border-radius: var(--radius) var(--radius) 0 0;
    margin-top: auto;
    max-height: 95vh;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  #spinCanvas {
    width: 280px !important;
    height: 280px !important;
  }
}

@media (max-width: 480px) {
  .site-title { font-size: 1.6rem; }
  .site-subtitle { font-size: 0.9rem; }

  .winners-grid { gap: 1rem; }

  .coupon-form, .winner-form, .dispute-form {
    padding: 1.25rem;
  }

  .modal-header { padding: 1.25rem 1.25rem 0.75rem; }
}
