/* Base Styles and Variables */
:root {
    /* Primary Colors from Scopely */
    --primary-blue: #3A56DE;
    --dark-blue: #1E1E3A;
    --gold: #FFCC00;
    --accent-orange: #FF6B2B;
    --white: #FFFFFF;
    /* Secondary Colors */
    --light-blue: #4A66EE;
    --purple: #9013FE;
    --green: #00CC66;
    --red: #FF3B30;
    /* Background Colors */
    --background: #1A1A2E;
    --card-bg: #2A2A40;
    --modal-bg: #2D2D45;
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #BBBBCC;
    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-glow-blue: 0 0 15px rgba(58, 86, 222, 0.5);
    --shadow-glow-gold: 0 0 15px rgba(255, 204, 0, 0.5);
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    /* Container widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(58, 86, 222, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(0, 204, 255, 0.1) 0%, transparent 30%),
        linear-gradient(to bottom, rgba(26, 26, 46, 1) 0%, rgba(26, 26, 46, 0.9) 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lilita One', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--light-blue);
}

button {
    cursor: pointer;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: none;
    outline: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Mobile-First Grid System */
.grid {
    display: grid;
    gap: var(--space-md);
}
.grid-2 {
    grid-template-columns: 1fr;
}
.grid-3 {
    grid-template-columns: 1fr;
}
.grid-4 {
    grid-template-columns: 1fr;
}
.grid-6 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

/* Flex Utilities */
.flex {
    display: flex;
}
.flex-col {
    flex-direction: column;
}
.items-center {
    align-items: center;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.flex-wrap {
    flex-wrap: wrap;
}
.flex-1 {
    flex: 1;
}
.gap-sm {
    gap: var(--space-sm);
}
.gap-md {
    gap: var(--space-md);
}
.gap-lg {
    gap: var(--space-lg);
}

/* Spacing Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mx-auto { margin-left: auto; margin-right: auto; }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }

/* Language Selector */
.language-selector {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    font-family: 'Nunito', sans-serif;
}
.current-language {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    cursor: pointer;
}
.current-language i {
    margin-right: 0.5rem;
}
.current-language span {
    margin-right: 0.25rem;
}
.language-dropdown {
    display: none;
    position: absolute;
    top: 2.5rem;
    right: 0;
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}
.language-selector.active .language-dropdown {
    display: block;
}
.language-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
}
.language-option:hover {
    background: var(--purple);
}

/* Status Bar */
.status-bar {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    margin-bottom: var(--space-md);
}
.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.status-item {
    display: flex;
    align-items: center;
}
.status-label {
    margin-right: 0.5rem;
    font-weight: 600;
}
.status-indicator {
    display: flex;
    align-items: center;
}
.status-indicator i {
    margin-right: 0.25rem;
}
.status-indicator.online span {
    color: #4CAF50;
}
.status-indicator.offline span {
    color: #FF3B30;
}

/* Counters */
.counter-row {
    display: flex;
    justify-content: space-between;
}
.counter-item {
    text-align: center;
}
.counter-value {
    font-size: 1.5rem;
    font-weight: 700;
}
.counter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 0 2rem;
}
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.btn.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary-blue);
    color: #fff;
    border-radius: var(--border-radius-full);
    position: relative;
    overflow: hidden;
}
.btn.btn-primary.btn-lg {
    font-size: 1.125rem;
}
.btn.btn-primary .button-text {
    position: relative;
    z-index: 1;
}
.btn.btn-primary i {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}
.btn.btn-primary:hover i {
    transform: translateX(4px);
}
.btn.btn-shine::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Features */
.hero-features {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}
.feature {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    color: var(--text-secondary);
}
.feature i {
    margin-right: 0.5rem;
    color: var(--gold);
}
.feature span {
    font-size: 0.875rem;
}

/* Dice Packs Section */
.dice-packs-section {
    padding: 2rem 0;
    text-align: center;
}
.section-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.dice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}
.dice-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 2px solid transparent;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    cursor: pointer;
}
.dice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(58, 86, 222, 0.3);
    border-color: var(--primary-blue);
}
.dice-card.popular {
    border-color: var(--primary-blue);
}
.dice-card.best-value {
    border-color: var(--gold);
}
.popular-tag, .value-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
}
.value-tag {
    background: var(--gold);
    color: #000;
}
.dice-image {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.dice-amount {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5rem 0;
}
.dice-value {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.select-button {
    background: var(--primary-blue);
    color: #fff;
    padding: 0.5rem;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Testimonials Section */
.testimonials-section {
    padding: 2rem 0;
    background: var(--card-bg);
}
.testimonials-container {
    overflow: hidden;
    position: relative;
}
.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}
.testimonial-card {
    min-width: 250px;
    max-width: 250px;
    background: var(--modal-bg);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    margin: 0 0.5rem;
}
.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.testimonial-avatar {
    width: 40px;
    height: 40px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-right: 0.5rem;
}
.testimonial-info {
    flex: 1;
}
.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
}
.testimonial-rating i {
    color: #FFD700;
}
.testimonial-body p {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0.5rem 0;
}
.testimonial-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: right;
}

/* How It Works Section */
.how-it-works-section {
    padding: 2rem 0;
}
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}
.step {
    width: 150px;
    margin: 1rem;
    text-align: center;
}
.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    line-height: 40px;
    margin: 0 auto 0.5rem;
}
.step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.step-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Activity Feed */
.activity-feed {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 300px;
    background: var(--modal-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    display: none;
}
.activity-header {
    background: var(--card-bg);
    padding: 0.5rem;
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
}
.activity-header i {
    margin-right: 0.5rem;
}
.activity-list {
    max-height: 200px;
    overflow-y: auto;
}
.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    opacity: 0;
    animation: fade-in 0.5s forwards;
}
.activity-item.new {
    opacity: 1;
}
@keyframes fade-in {
    to { opacity: 1; }
}
.activity-icon {
    margin-right: 0.5rem;
}
.activity-text {
    flex: 1;
}
.activity-username {
    font-weight: 600;
    margin-right: 0.25rem;
}
.activity-action {
    color: var(--text-secondary);
    margin-right: 0.25rem;
}
.activity-amount {
    font-weight: 600;
}
.activity-platform {
    margin-left: 0.5rem;
    color: var(--text-secondary);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: var(--modal-bg);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
}
.modal-header {
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 1.125rem;
}
.close-modal {
    background: none;
    color: #fff;
    font-size: 1.25rem;
}
.modal-body {
    padding: 1rem;
}
.modal-description {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.platform-options {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
}
.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
}
.platform-option.selected {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
}
.platform-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.platform-option span {
    font-size: 0.875rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}
.form-group input {
    width: 100%;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    border: 2px solid #333;
    background: #222;
    color: #fff;
}
.form-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}
.continue-button, .verify-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-blue);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}
.continue-button .button-text, .verify-button .button-text {
    pointer-events: none;
}

/* Generator Modal Specific */
.generator-modal-content {
    max-width: 500px;
}
.generator-info {
    background: var(--card-bg);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}
.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.info-label {
    font-weight: 600;
}
.info-value {
    font-weight: 600;
    color: var(--text-secondary);
}
.generator-console {
    background: #000;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}
.console-header {
    background: #111;
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}
.console-body {
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
}
.console-line {
    margin-bottom: 0.25rem;
}
.console-line.success {
    color: #4CAF50;
}
.console-line.warning {
    color: #FF9800;
}
.generator-progress {
    margin-bottom: 1rem;
}
.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.progress-bar {
    background: #333;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}
.progress-fill {
    background: var(--primary-blue);
    width: 0;
    height: 100%;
    transition: width 0.3s;
}

/* Verification Modal Specific */
.verification-message {
    text-align: center;
    margin-bottom: 1rem;
}
.verification-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}
.verification-message h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.verification-message p {
    font-size: 0.875rem;
    line-height: 1.4;
}
.verification-message span {
    font-weight: 700;
}
.verification-info {
    background: var(--card-bg);
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}
.verification-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}
.verification-info .info-item i {
    color: #4CAF50;
    margin-right: 0.25rem;
}
.verification-info .info-item:last-child i {
    color: #FFC107;
}

/* Footer */
.footer {
    background: #111;
    padding: 1rem 0;
    text-align: center;
}
.footer-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0.25rem 0;
}
/* 1. Responsive grid for dice packs */
@media (max-width: 400px) {
  /* On very narrow screens, show one card per row for readability */
  .dice-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  /* On tablets, use 3 columns for dice grid (before large desktop jumps to 3/6) */
  .dice-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2. Mobile-friendly modals and buttons */
@media (max-width: 400px) {
  /* Platform options stack vertically on small screens */
  .platform-options {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: stretch;
  }
  .platform-option {
    width: 100% !important;           /* override fixed width 140px :contentReference[oaicite:25]{index=25} */
    padding: var(--space-lg) !important;  /* reduce padding a bit (1.5rem) for smaller screens */
    margin-bottom: var(--space-md);   /* add spacing between stacked buttons */
  }
  .close-modal {
    font-size: 1.5rem; /* larger close icon for easier tapping */
  }
  .modal-body {
    padding: var(--space-md) !important; /* use 1rem padding on very small screens */
  }
}
/* Ensure final verify button is full-width like the continue button :contentReference[oaicite:26]{index=26} */
.verify-button {
  width: 100%;
}

/* 3. Smooth scrolling for scrollable sections */
.testimonials-track {
  -webkit-overflow-scrolling: touch;  /* enable momentum scrolling on iOS :contentReference[oaicite:27]{index=27} */
  scroll-behavior: smooth;           /* smooth scrolling behavior */
}
.activity-list {
  -webkit-overflow-scrolling: touch;  /* momentum scrolling for activity feed */
}

/* (Optional) Slightly increase base line-height on small screens for readability */
@media (max-width: 600px) {
  body {
    line-height: 1.6;
  }
}
/* Horizontal scroll for How It Works section on small screens */
@media (max-width: 600px) {
  .steps-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
  }

  .step {
    flex: 0 0 200px;
    scroll-snap-align: center;
    background-color: rgba(42, 42, 64, 0.7);
    border-radius: var(--border-radius-lg);
    padding: var(--space-md);
    min-width: 180px;
  }

  .step-number {
    background-color: var(--gold); /* Step 1 default yellow */
    color: var(--dark-blue);
    font-weight: 900;
  }

  .step:nth-child(2) .step-number {
    background-color: #00CC66; /* Step 2 green */
    color: #fff;
  }

  .step:nth-child(3) .step-number {
    background-color: #FF3B30; /* Step 3 red */
    color: #fff;
  }

  .step:nth-child(4) .step-number {
    background-color: #3A56DE; /* Step 4 blue */
    color: #fff;
  }
}
@media (max-width: 600px) {
  .steps-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--space-sm);
    padding-bottom: var(--space-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .step {
    flex: 0 0 80%;
    max-width: 220px;
    background-color: rgba(42, 42, 64, 0.7);
    border-radius: var(--border-radius-lg);
    text-align: center;
    scroll-snap-align: center;
    padding: var(--space-md);
    margin-right: var(--space-sm);
  }

  .step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--space-sm);
    font-size: 1rem;
    font-weight: bold;
  }

  .step:nth-child(1) .step-number { background-color: var(--gold); color: var(--dark-blue); }
  .step:nth-child(2) .step-number { background-color: var(--green); color: #fff; }
  .step:nth-child(3) .step-number { background-color: var(--red); color: #fff; }
  .step:nth-child(4) .step-number { background-color: var(--primary-blue); color: #fff; }
}
@media (max-width: 600px) {
  .testimonials-track {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: var(--space-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-sm);
  }

  .testimonial-card {
    min-width: 260px;
    scroll-snap-align: center;
    flex: 0 0 auto;
  }
}
/* Swap Best Value above Popular */
.dice-card.best-value {
  order: -1;
}

/* Remove 30 and 80 packs */
.dice-card[data-amount="30"],
.dice-card[data-amount="80"] {
  display: none;
}
.hero-title,
.section-title {
    font-family: 'Lilita One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400; /* Lilita One has only one weight */
}
h1, h2, h3 {
    font-family: 'Lilita One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
/* ===== RIGHT SIDE NOTIFICATIONS ===== */
#notif-box {
  position: fixed;
  bottom: 25px;
  right: 12px;
  width: auto;
  max-width: 260px;
  z-index: 999999999;
  font-family: Arial, sans-serif;
}
/* ===== PHONE ONLY: 2×2 compact dice layout ===== */
@media (max-width: 600px) {

  /* 2 columns on phone */
  .dice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
    justify-items: center;
  }

  /* Compact card, same size even for BEST VALUE / POPULAR */
  .dice-card,
  .dice-card.best-value,
  .dice-card.popular {
    width: 150px !important;
    min-height: 220px !important;
    padding: 0.8rem 0.6rem 0.6rem;
    border-radius: 14px;
  }

  /* Image size inside the card */
  .dice-image {
    width: 95px !important;
    height: auto;
    margin: 0 auto 0.4rem;
    display: block;
  }

  .dice-amount {
    font-size: 1.3rem;
    margin: 0.2rem 0 0.1rem;
  }

  .dice-value {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .select-button {
    margin-top: auto;
    padding: 0.45rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 8px;
    width: 100%;
    text-align: center;
  }
}
/* ===== STATUS BAR – SUPERSELL STYLE ===== */

.status-bar {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #252844, #17192c);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Left side: Android / iOS */
.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.status-label {
  font-weight: 600;
  margin-right: 0.25rem;
  color: var(--text-primary);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.status-indicator i {
  font-size: 0.6rem;
}

.status-indicator.online {
  color: var(--green);
}

.status-indicator.offline {
  color: var(--red);
}

/* Right side: small stat cards */
.counter-row {
  display: flex;
  gap: 0.75rem;
}

.counter-item {
  background: rgba(19, 23, 46, 0.98);
  border-radius: 16px;
  padding: 0.55rem 1.3rem;
  min-width: 120px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.counter-value {
  font-family: "Source Code Pro", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

.counter-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .counter-row {
    width: 100%;
    justify-content: space-between;
  }

  .counter-item {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .status-row {
    gap: 0.75rem;
  }

  .counter-row {
    flex-direction: row;
    gap: 0.5rem;
  }

  .counter-item {
    padding: 0.5rem 0.75rem;
  }

  .counter-value {
    font-size: 1rem;
  }
}
/* Tighten space between "Android/iOS" row and counters on mobile */
@media (max-width: 768px) {
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;   /* was larger, now almost no space */
  }
}
/* ============================
   Brawl Stars–style MODALS
   (overrides previous styles)
============================ */

/* Backdrop */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

/* Modal box */
.modal-content,
.generator-modal-content {
  width: 100%;
  max-width: 540px;
  background: #262842; /* outer panel */
  border-radius: 32px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* Generator modal a bit wider */
.generator-modal-content {
  max-width: 620px;
}

/* Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 2rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h3 {
  margin: 0;
  font-family: 'Lilita One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  color: var(--primary-blue);
  text-shadow: 0 0 10px rgba(58, 86, 222, 0.6);
}

/* Close button */
.close-modal {
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: rotate(90deg);
}

/* Body */
.modal-body {
  padding: 1.8rem 2rem 2.1rem;
}

/* Description text */
.modal-description {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==== PLATFORM CARDS SIDE BY SIDE ==== */

/* Container: row layout, icons/cards next to each other */
#platform-modal .platform-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Each platform card */
#platform-modal .platform-option {
    flex: 0 0 45% !important;       /* two columns */
    max-width: 220px;
    padding: 1.5rem 1.25rem;
    border-radius: 22px;
    background: #262842;
    border: 2px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;         /* icon above text INSIDE each card */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

/* Icon + label styling */
#platform-modal .platform-option i {
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

#platform-modal .platform-option span {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* Hover + selected state */
#platform-modal .platform-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

#platform-modal .platform-option.selected {
    border-color: var(--primary-blue);
    background: radial-gradient(
        circle at 0% 0%,
        rgba(58, 86, 222, 0.6),
        #24263f
    );
    box-shadow:
        0 0 0 2px rgba(58, 86, 222, 0.7),
        0 22px 50px rgba(0, 0, 0, 0.85);
}

/* Small screens: still two per row, allow wrap */
@media (max-width: 480px) {
    #platform-modal .platform-options {
        flex-wrap: wrap;
    }

    #platform-modal .platform-option {
        flex: 0 0 calc(50% - 0.75rem) !important;
    }
}

/* === Tighter spacing in "Enter Your Player ID" modal === */
#playerid-modal .modal-body {
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

/* Text under the title */
#playerid-modal .modal-description {
    margin-bottom: 0.75rem; /* was space-lg (too big) */
}

/* Block with label + input + helper text */
#playerid-modal .form-group {
    margin-bottom: 0.75rem; /* was space-xl (very big) */
}

#playerid-modal .form-group label {
    margin-bottom: 0.3rem; /* smaller gap above input */
}

/* Helper text under input */
#playerid-modal .form-help {
    margin-top: 0.25rem;
    margin-bottom: 0;       /* remove extra gap */
}

/* Button closer to input */
#playerid-modal .continue-button {
    margin-top: 0.5rem;
}


/* ========= Generator modal ========= */
.generator-info {
  background: #1f2238;
  border-radius: 24px;
  padding: 1.25rem 1.6rem;
  margin-bottom: 1.4rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.95rem;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  color: var(--text-secondary);
}

.info-value {
  color: var(--primary-blue);
  font-weight: 700;
}

/* Console block */
.generator-console {
  background: #141628;
  border-radius: 24px;
  margin-bottom: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.console-header {
  background: #232853;
  padding: 0.7rem 1.4rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.console-body {
  max-height: 180px;
  padding: 1rem 1.4rem;
  overflow-y: auto;
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.console-line {
  margin-bottom: 0.25rem;
}

.console-line.success {
  color: #26d67a;
}

.console-line.warning {
  color: #ffbf47;
}

.console-line.error {
  color: #ff4b5c;
}

/* Progress */
.generator-progress {
  margin-top: 1.6rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.progress-bar {
  height: 22px;
  border-radius: 999px;
  background: #151628;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2f80ff, #5fa7ff);
  box-shadow: 0 0 18px rgba(47, 128, 255, 0.9);
  transition: width 0.3s ease-out;
}

/* ===== FINAL VERIFICATION MODAL STYLE ===== */

/* Header title like in screenshot */
#verification-modal .modal-header h3 {
  font-family: 'Lilita One', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.4rem;
  color: var(--primary-blue);
  text-shadow: 0 0 10px rgba(58, 86, 222, 0.6);
}

/* Main message + big shield icon */
.verification-message {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.verification-message i {
  /* overrides old style */
  font-size: 1.6rem;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  background: radial-gradient(circle at 30% 0%, #4a66ee, #202545);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.verification-message h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.verification-message p {
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Dark rounded card for the 3 status lines */
.verification-info {
  background: #1a1d36;
  border-radius: 18px;
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

/* Each line: icon + text, perfectly centered vertically */
.verification-info .info-item {
  display: flex;
  align-items: center;          /* icon centered with text */
  gap: 0.6rem;
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.verification-info .info-item:last-child {
  margin-bottom: 0;
}

/* Small circular icons */
.verification-info .info-item i {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.35);
  color: var(--green);          /* default green */
}

/* Last line icon = yellow (waiting) */
.verification-info .info-item:last-child i {
  color: var(--gold);
}

/* Full-width rounded CTA button */
.verify-button {
  width: 100%;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-md);
}

/* ========= Responsive tweaks ========= */
@media (max-width: 600px) {
  .modal-content,
  .generator-modal-content {
    max-width: 100%;
    border-radius: 24px;
    padding: 0;
  }

  .modal-header {
    padding: 1.3rem 1.4rem 1rem;
  }

  .modal-header h3 {
    font-size: 1.6rem;
  }

  .modal-body {
    padding: 1.4rem 1.4rem 1.8rem;
  }

  .platform-options {
    flex-direction: column;
  }

  .platform-option {
    width: 100%;
  }
}
/* Make the dice amount gold in the verification step */
.verification-message #verification-dice {
    color: #FFCC00;
    font-weight: 800;
}
