/* Import Quicksand Font */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* Custom styles for Lightning Lottery */

:root {
    --bitcoin-orange: #f39c12;
    --lightning-purple: #6c5ce7;
    --success-green: #00b894;
    --warning-yellow: #fdcb6e;
    --danger-red: #e17055;
    --dark-bg: #2d3436;
    --light-gray: #ddd;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Global Styles */
body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    touch-action: manipulation; /* Prevents double-tap zoom on mobile */
    -webkit-touch-callout: none; /* iOS Safari specific */
    -webkit-user-select: none; /* iOS Safari specific */
    -webkit-tap-highlight-color: transparent; /* iOS Safari specific */
}

/* Disable body scroll on lottery detail page */
body[data-page="lottery-detail"] {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

/* Prevent zoom on double-tap for interactive elements */
* {
    touch-action: manipulation;
}

/* Force white icons on warning buttons in modals */
.modal .btn-warning i,
.modal .btn-warning .bi,
#copy-login-lnurl i,
#copy-register-lnurl i,
#copy-payment-invoice i {
    color: white !important;
}

/* Force white icons on all warning buttons */
.btn-warning i,
.btn-warning .bi {
    color: white !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

.main-content {
    padding-top: 64px;
    flex: 1;
    min-height: calc(100vh - 64px);
}

/* Navigation Styles */
.navbar-toggler {
    border: none !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 1.25rem !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 1.5em !important;
    height: 1.5em !important;
}

/* Modern User Badge - Adapté pour navbar blanche */
.user-badge {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-badge:hover {
    background: white;
    border-color: var(--bitcoin-orange);
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.user-badge:focus {
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
    outline: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--bitcoin-orange), #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    flex-grow: 1;
}

.username {
    font-weight: 600;
    color: #333;
}

.user-status {
    color: #666;
    font-size: 0.75rem;
    margin-top: 1px;
}

.dropdown-arrow {
    color: #666;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-badge[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}

/* Cacher la flèche Bootstrap par défaut */
.user-badge::after {
    display: none !important;
}

/* Modern Login/Register Buttons */
.auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.auth-btn {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 90px;
    justify-content: center;
}

.auth-btn-login {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.auth-btn-login:hover {
    background: #f8f9fa;
    border-color: var(--bitcoin-orange);
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-btn-register {
    background: var(--bitcoin-orange);
    color: white;
    border-color: var(--bitcoin-orange);
}

.auth-btn-register:hover {
    background: #e68900;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Force tous les boutons primary en orange */
.btn-primary {
    background-color: var(--bitcoin-orange) !important;
    border-color: var(--bitcoin-orange) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #e68900 !important;
    border-color: #e68900 !important;
    color: white !important;
}

.btn-outline-primary {
    border-color: var(--bitcoin-orange) !important;
    color: var(--bitcoin-orange) !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--bitcoin-orange) !important;
    border-color: var(--bitcoin-orange) !important;
    color: white !important;
}

/* Spinners orange */
.spinner-border.text-primary {
    color: var(--bitcoin-orange) !important;
}

/* Hero Section - Minimaliste */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #636e72 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23f39c12" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--bitcoin-orange);
}

.hero-image {
    text-align: center;
    position: relative;
}

.bitcoin-animation {
    font-size: 15rem;
    color: var(--bitcoin-orange);
    animation: pulse 2s infinite;
    text-shadow: 0 0 30px rgba(243, 156, 18, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cards - Minimaliste */
.card {
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Cartes lotterie épurées et cohérentes */
.lottery-card {
    height: 100%;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
    background: white;
}

.lottery-card:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.lottery-card .card-header {
    background: #fafafa;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    position: relative;
}

.lottery-card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.lottery-card .card-body {
    padding: 1.5rem;
}

.lottery-card .jackpot-amount {
    color: var(--bitcoin-orange);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.lottery-card .jackpot-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.lottery-card .lottery-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.lottery-card .ticket-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.lottery-card .btn {
    width: 100%;
    font-weight: 500;
    padding: 0.75rem;
    border-radius: 6px;
}

/* Boutons cohérents avec la palette */
.lottery-card .btn-success,
.lottery-card .btn-primary {
    background: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

.lottery-card .btn-success:hover,
.lottery-card .btn-primary:hover {
    background: var(--bitcoin-orange) !important;
    border-color: var(--bitcoin-orange) !important;
    color: white !important;
}

/* Lottery cards - Completed state with alpha effect */
.lottery-completed {
    opacity: 0.6;
    position: relative;
    transition: all 0.3s ease;
}

.lottery-completed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

.lottery-completed:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.lottery-completed .card-header {
    background: rgba(248, 249, 250, 0.7);
}

.lottery-completed .card-title {
    color: #777;
}

.lottery-completed .jackpot-amount {
    color: #999 !important;
}

.lottery-completed .jackpot-label {
    color: #888;
}

.lottery-completed .lottery-meta {
    color: #888;
}

.lottery-completed .progress-bar {
    background-color: #6c757d !important;
}

.lottery-completed .btn {
    position: relative;
    z-index: 2;
    background: #6c757d !important;
    border-color: #6c757d !important;
}

.lottery-completed .btn:hover {
    background: #5a6268 !important;
    border-color: #5a6268 !important;
}

/* Lottery completion info styling */
.lottery-completed-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    position: relative;
    z-index: 2;
}

.lottery-completed-info .completion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.lottery-completed-info .completion-date i {
    color: #6c757d;
    font-size: 1rem;
}

.lottery-completed-info .completion-date span {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: capitalize;
}

.lottery-completed-info .winner-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.lottery-completed-info .winner-info i {
    color: var(--bitcoin-orange);
    font-size: 1.1rem;
}

.lottery-completed-info .winner-info span {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

/* Motivational lottery CTA buttons */
.lottery-cta-btn {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%) !important;
    border: none !important;
    font-weight: 600 !important;
    text-transform: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.lottery-cta-btn:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4) !important;
}

.lottery-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.lottery-cta-btn:hover::before {
    left: 100%;
}

.lottery-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background-color: #f0f8f0;
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

.status-completed {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
}

.status-cancelled {
    background-color: #fdf2f2;
    color: var(--danger-red);
    border: 1px solid var(--danger-red);
}

/* Progress bars */
.progress {
    height: 6px;
    border-radius: 3px;
    background-color: #f0f0f0;
}

.progress-bar {
    border-radius: 3px;
    background: var(--bitcoin-orange);
}

/* Listing lotteries - Layout épuré */
#lotteries-grid .col-md-6 {
    margin-bottom: 1.5rem;
}

/* Stats cards - clean simple icons */
.card-body .bi {
    font-size: 2.5rem;
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
    display: block;
}

/* Filtres de lotteries épurés */
.btn-group .btn {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    color: #666;
    background: white;
    border-radius: 6px !important;
    margin-right: 0.5rem;
}

.btn-group .btn:hover {
    color: #333;
    border-color: #bbb;
    background: #f8f9fa;
}

.btn-group .btn.active {
    background: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
    color: white;
}

.btn-group .btn.active:hover {
    background: #e67e22;
    border-color: #e67e22;
}

/* Bouton Create Lottery cohérent */
#create-lottery-btn {
    background: #333 !important;
    border-color: #333 !important;
    color: white !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

#create-lottery-btn:hover {
    background: var(--bitcoin-orange) !important;
    border-color: var(--bitcoin-orange) !important;
}

/* Feature cards propres et structurées */
.feature-card-clean {
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    height: 100%;
    transition: all 0.2s ease;
    text-align: left;
}

.feature-card-clean:hover {
    border-color: #ddd;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-icon-clean {
    width: 50px;
    height: 50px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon-clean i {
    font-size: 1.5rem;
    color: #666;
}

.feature-card-clean h5 {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
}

.feature-card-clean p {
    color: #666;
    line-height: 1.6;
}

/* Page lottery-detail avec structure et hiérarchie */
.lottery-detail-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 2rem;
}

.lottery-detail-card .card-header {
    background: #fafafa;
    border-bottom: 1px solid #e9ecef;
    padding: 2rem 2.5rem 1.5rem;
}

.lottery-detail-card .card-header h2 {
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0;
}

.lottery-detail-card .card-body {
    padding: 2.5rem;
}

/* Section jackpot avec plus d'air */
.jackpot-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.jackpot-amount-large {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.jackpot-label {
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Liste d'infos mieux structurée */
.lottery-info-list {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-label {
    color: #666;
    font-weight: 500;
    font-size: 1rem;
}

.info-value {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
}

/* Ticket summary mieux espacé */
.ticket-summary-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-title {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.summary-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.summary-label {
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Header de page avec plus d'air */
.lottery-header {
    padding: 3rem 0;
    text-align: center;
    background: #f8f9fa;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.lottery-header h1 {
    color: #333;
    margin-bottom: 1rem;
}

.lottery-header .lead {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Icônes dans les boutons héritent de la couleur du texte */
.btn i {
    color: inherit !important;
}

/* Cacher le footer sur les pages de détail de loterie */
body[data-page="lottery"] footer {
    display: none !important;
}

/* Heroes modernes pour toutes les pages */
.fairness-hero,
.home-hero,
.lotteries-hero,
.faq-hero,
.dashboard-hero,
.styleguide-hero,
.profile-hero,
.security-hero,
.privacy-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.min-vh-50 {
    min-height: 40vh;
}

.min-vh-75 {
    min-height: 60vh;
}

.min-vh-60 {
    min-height: 50vh;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem !important;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.fairness-features,
.home-features,
.lotteries-features,
.faq-features,
.dashboard-features,
.styleguide-features,
.profile-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-badge {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-badge i {
    font-size: 1.5rem;
    color: var(--bitcoin-orange);
}

.feature-badge span {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
}

/* Actions du hero */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
}

.hero-actions .btn-primary {
    background: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
    color: white;
}

.hero-actions .btn-primary:hover {
    background: #e85a00;
    border-color: #e85a00;
}

.hero-actions .btn-outline-secondary {
    border-color: #666;
    color: #666;
}

.hero-actions .btn-outline-secondary:hover {
    background: #666;
    border-color: #666;
    color: white;
}

/* Dashboard Cards */
.dashboard-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.dashboard-card-header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.dashboard-card-header h2 {
    color: #333;
    font-weight: 600;
}

.dashboard-card-header i {
    color: var(--bitcoin-orange);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Styleguide Cards */
.styleguide-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.styleguide-card-header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.styleguide-card-header h2 {
    color: #333;
    font-weight: 600;
}

.styleguide-card-header i {
    color: var(--bitcoin-orange);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.color-box {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
}

.color-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.color-info code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Typography Samples */
.typography-samples h1,
.typography-samples h2,
.typography-samples h3,
.typography-samples h4,
.typography-samples h5 {
    margin-bottom: 0.5rem;
}

/* Button Samples */
.button-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-nav {
    background: #666;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
}

.btn-nav:hover {
    background: #333;
    color: white;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 0.5rem;
}

.icon-item i {
    font-size: 2rem;
}

.icon-item small {
    color: #666;
    font-size: 0.75rem;
}

/* Profile Cards */
.profile-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.profile-card-header {
    background: #fafafa;
    border-bottom: 1px solid #eee;
    padding: 1.5rem;
}

.profile-card-header h2 {
    color: #333;
    font-weight: 600;
}

.profile-card-header i {
    color: var(--bitcoin-orange);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Activity Info */
.activity-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.activity-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Statistics */
.stat-item {
    position: relative;
    padding: 2rem 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-weight: 500;
}

.stat-icon {
    font-size: 2rem;
    color: var(--bitcoin-orange);
    opacity: 0.3;
    margin: 1rem auto 0;
    display: block;
    text-align: center;
}

/* Authentication Methods */
.auth-method-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
    transition: all 0.2s ease;
}

.auth-method-card:hover {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 2px 8px rgba(247, 147, 26, 0.1);
}

.auth-status .badge {
    font-size: 0.75rem;
}

.auth-add {
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding-top: 1rem;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-icon {
    position: static;
    width: 60px;
    height: 60px;
    background: var(--bitcoin-orange);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.5rem;
    flex-shrink: 0;
    opacity: 1;
}

.stat-card .stat-icon i {
    color: white !important;
}

.stat-card .stat-content {
    flex: 1;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.quick-action-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quick-action-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    width: 50px;
    height: 50px;
    background: var(--bitcoin-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.quick-action-desc {
    font-size: 0.85rem;
    color: #666;
}

/* Account Summary */
.account-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
    flex: 1;
}

.summary-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

/* FAQ Accordion Styles */
.accordion-item {
    border: 1px solid #eee;
    border-radius: 8px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    background-color: #fafafa !important;
    color: #333 !important;
    border: none !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bitcoin-orange) !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: transparent !important;
}

.accordion-button::after {
    filter: brightness(0) invert(1) !important;
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1) !important;
}

.accordion-body {
    padding: 1.5rem;
    background-color: white;
    color: #666;
    line-height: 1.6;
}

/* FAQ Category Headers */
.faq-category-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.faq-category-header h3 {
    color: #333;
    margin: 0;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.faq-category-header i {
    color: var(--bitcoin-orange);
    margin-right: 0.75rem;
}

/* Modal Styles */
.modal-title {
    color: #333 !important;
    font-weight: 600;
}

.modal-title i {
    color: var(--bitcoin-orange);
    margin-right: 0.5rem;
}

/* Modal Tabs */
.modal .nav-tabs {
    border-bottom: 2px solid #eee;
}

.modal .nav-tabs .nav-link {
    color: #666 !important;
    border: none !important;
    background: none !important;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 3px solid transparent !important;
}

.modal .nav-tabs .nav-link:hover {
    color: var(--bitcoin-orange) !important;
    border-bottom-color: var(--bitcoin-orange) !important;
    background: none !important;
}

.modal .nav-tabs .nav-link.active {
    color: var(--bitcoin-orange) !important;
    background: none !important;
    border-bottom-color: var(--bitcoin-orange) !important;
    font-weight: 600;
}

.modal .nav-tabs .nav-link i {
    margin-right: 0.5rem;
}

/* Modal Body */
.modal-body {
    padding: 1.5rem;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 1rem 1.5rem;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stat-card .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-card .stat-icon i {
        color: white !important;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-action-item {
        padding: 1rem;
    }
    
    .accordion-button {
        padding: 1rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
}

.fairness-content {
    padding: 3rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.key-principle-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.principle-icon {
    width: 60px;
    height: 60px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.principle-icon i {
    font-size: 1.8rem;
    color: white;
}

.principle-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.principle-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Timeline compact pour les 6 étapes */
.process-timeline {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-step {
    text-align: center;
    flex: 1;
}

.step-number-compact {
    width: 35px;
    height: 35px;
    background: var(--bitcoin-orange);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-title-compact {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.step-desc-compact {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.timeline-arrow {
    color: #ddd;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 1rem;
}

/* Section démo simplifiée */
.demo-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo simple styling - minimalistic to avoid cluttered appearance */

.demo-simple .btn-group .btn {
    border: 1px solid #ddd;
    color: #666;
    background: white;
}

.demo-simple .btn-group .btn.active,
.demo-simple .btn-group .btn:checked {
    background: #333;
    border-color: #333;
    color: white;
}

.demo-simple .btn-group .btn:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

/* Section de vérification indépendante */
.verification-example {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.verification-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.verification-icon {
    width: 45px;
    height: 45px;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verification-icon i {
    font-size: 1.3rem;
    color: white;
}

.verification-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.verification-content {
    padding: 2rem;
}

.verification-scenario {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.verification-steps {
    display: grid;
    gap: 1rem;
}

.verification-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #666;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: #666;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: #333;
    line-height: 1.5;
}

.step-text code {
    background: #e9ecef;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Grille des cartes fairness */
.fairness-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.fairness-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fairness-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.fairness-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bitcoin-orange), #ff8c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.fairness-icon i {
    font-size: 1.5rem;
    color: white;
}

.fairness-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.fairness-card-text {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Features de transparence */
.transparency-features {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.transparency-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.transparency-item:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.transparency-icon {
    width: 60px;
    height: 60px;
    background: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transparency-icon i {
    font-size: 1.8rem;
    color: white;
}

.transparency-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.transparency-text {
    color: #666;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .fairness-features,
    .home-features,
    .lotteries-features,
    .faq-features,
    .dashboard-features,
    .styleguide-features,
    .profile-features {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-badge {
        padding: 1rem 1.5rem;
    }
    
    .key-principle-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .timeline-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .fairness-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .transparency-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .transparency-item:hover {
        transform: translateY(-5px);
    }
}

/* Legacy purchase section styles - overridden by lottery-detail-layout */
/* Kept for backwards compatibility with other pages */
body:not([data-page="lottery-detail"]) #purchaseSection {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

body:not([data-page="lottery-detail"]) #purchaseSection .card {
    border: none;
    background: transparent;
    margin: 0;
}

body:not([data-page="lottery-detail"]) #purchaseSection .card-body {
    padding: 0;
}

/* Espacement pour éviter que le contenu soit caché derrière la section fixe */
body.has-purchase-section:not([data-page="lottery-detail"]) {
    padding-bottom: 200px;
}

/* How it works section - Minimaliste */
.how-it-works-card {
    padding: 2rem;
    height: 100%;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.how-it-works-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bitcoin-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
    font-family: 'Quicksand', sans-serif;
}

.fairness-explanation {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

/* Stats section - Minimaliste */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bitcoin-orange);
    font-family: 'Quicksand', sans-serif;
}

/* Buttons - Minimaliste */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
}

.btn-warning {
    background-color: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
    transform: translateY(-1px);
}

.btn-lightning {
    background: linear-gradient(45deg, var(--lightning-purple), #a29bfe);
    border: none;
    color: white;
}

.btn-lightning:hover {
    background: linear-gradient(45deg, #5f3dc4, var(--lightning-purple));
    color: white;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.modal-title {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

/* QR Code styling */
.qr-code-container {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    display: inline-block;
    box-shadow: var(--card-shadow);
}

/* Forms - Minimaliste */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
}

.form-control:focus {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.25);
}

.form-label {
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

/* Navigation - Ultra minimaliste */
.navbar {
    background: white !important;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: 'Quicksand', sans-serif;
    color: #333 !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    transition: color 0.3s ease;
    color: #666 !important;
    padding: 8px 16px !important;
}

.navbar-nav .nav-link:hover {
    color: #333 !important;
}

.navbar-nav .nav-link.active {
    color: var(--bitcoin-orange) !important;
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--bitcoin-orange);
    border-radius: 1px;
}

/* Active dropdown items in user menu */
.dropdown-menu .dropdown-item.active {
    background-color: var(--bitcoin-orange) !important;
    color: white !important;
}

.dropdown-menu .dropdown-item.active i {
    color: white !important;
}

/* Boutons navigation - Fond uni pour user */
.navbar .btn-outline-light {
    color: white !important;
    border: none !important;
    background: #666 !important;
    padding: 6px 12px !important;
}

.navbar .btn-outline-light:hover {
    color: white !important;
    background: #333 !important;
}

.navbar .btn-warning {
    background: #333 !important;
    border: none !important;
    color: white !important;
    padding: 6px 12px !important;
}

.navbar .btn-warning:hover {
    background: #555 !important;
    color: white !important;
}

/* Logo avec éclair orange */
.navbar-brand .bi {
    color: var(--bitcoin-orange) !important;
    margin-right: 8px;
}

/* Dropdown dans navbar */
.navbar .dropdown-menu {
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.navbar .dropdown-item {
    color: #666;
    font-family: 'Quicksand', sans-serif;
}

.navbar .dropdown-item:hover {
    background: #f8f9fa;
    color: #333;
}

/* Filters */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.btn-group .btn:last-child {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-features {
        margin-top: 2rem;
    }
    
    .feature-item {
        font-size: 1rem;
    }
    
    .bitcoin-animation {
        font-size: 8rem;
    }
    
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .bitcoin-animation {
        font-size: 6rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .how-it-works-card {
        padding: 1.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Success/Error messages - Minimaliste */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.alert-success {
    background-color: #d1f2eb;
    color: var(--success-green);
    border-left: 4px solid var(--success-green);
}

.alert-danger {
    background-color: #fadbd8;
    color: var(--danger-red);
    border-left: 4px solid var(--danger-red);
}

.alert-warning {
    background-color: #fef5e7;
    color: var(--bitcoin-orange);
    border-left: 4px solid var(--bitcoin-orange);
}

.alert-info {
    background-color: #f8f9fa;
    color: #495057;
    border-left: 4px solid #6c757d;
}

/* Ticket display */
.ticket-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.ticket-item:hover {
    background: #e9ecef;
}

.ticket-number {
    font-weight: bold;
    color: var(--bitcoin-orange);
    font-size: 1.1rem;
    font-family: 'Quicksand', sans-serif;
}

/* Dashboard styles */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-stat {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.dashboard-stat h4 {
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility classes - Icônes sobres et cohérentes */
.text-bitcoin {
    color: var(--bitcoin-orange) !important;
}

.text-lightning {
    color: var(--lightning-purple) !important;
}

.bg-bitcoin {
    background-color: var(--bitcoin-orange) !important;
}

.bg-lightning {
    background-color: var(--lightning-purple) !important;
}

.border-bitcoin {
    border-color: var(--bitcoin-orange) !important;
}

.border-lightning {
    border-color: var(--lightning-purple) !important;
}

/* Icônes ultra-minimalistes - Seulement 2 couleurs */
.bi {
    color: #666; /* Gris par défaut pour TOUTES les icônes */
}

/* Seulement orange pour les éléments vraiment importants */
.hero-section .bi,
.bitcoin-animation {
    color: var(--bitcoin-orange) !important;
}

/* Icônes BLANCHES dans les cercles colorés ET badges foncés */
.lightning-feature-card .feature-icon .bi,
.lnurl-benefit-card .benefit-icon .bi,
.method-icon .bi,
.security-icon .bi,
.getting-started-step .step-icon .bi,
.wallet-icon .bi,
.privacy-icon .bi,
.anon-step .step-icon .bi,
.tech-icon .bi,
.lightning-badge .bi,
.bitcoin-badge .bi {
    color: white !important;
}

/* Icônes GRISES dans les badges clairs (même couleur que le texte) */
.anon-badge .bi {
    color: #666 !important;
}

/* Tout le reste en gris - fini les couleurs partout */
.text-success,
.text-danger, 
.text-info,
.text-primary,
.text-warning,
.text-muted,
.text-secondary {
    color: #666 !important;
}

/* Exception: seulement dans les alertes pour garder le sens */
.alert-success {
    color: var(--success-green) !important;
}

.alert-danger {
    color: var(--danger-red) !important;
}

.alert-warning {
    color: var(--bitcoin-orange) !important;
}

/* Navigation: tout en gris */
.navbar .bi {
    color: inherit;
}

/* Boutons: icônes héritent la couleur */
.btn .bi {
    color: inherit;
}

/* Stats: remove any conflicting styles */

/* Lottery Detail Page */
.lottery-header {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, var(--warning-yellow) 100%);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.lottery-header h1 {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
}

.lottery-header .lead {
    color: white;
    font-weight: 400;
    opacity: 0.95;
}

/* Print styles */
@media print {
    .navbar,
    .modal,
    .btn,
    .hero-section {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Ticket Grid Styles */
.ticket-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: white;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ticket-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ticket-item.selectable {
    cursor: pointer;
}

.ticket-item.selectable:hover {
    border-color: var(--bitcoin-orange);
}

.ticket-item.selected {
    border-color: var(--bitcoin-orange);
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.ticket-item.selected .ticket-checkbox {
    opacity: 1;
    color: var(--bitcoin-orange);
}

.ticket-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    font-family: 'Quicksand', sans-serif;
}

.ticket-status {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Quicksand', sans-serif;
}

.ticket-owner {
    font-size: 0.7rem;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-checkbox {
    position: absolute;
    top: 4px;
    right: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: 1rem;
}

/* Ticket Status Colors - Ultra-minimaliste */
.ticket-available {
    border-color: #333;
    background: white;
    opacity: 1;
}

.ticket-available .ticket-status {
    color: #333;
}

.ticket-reserved {
    border-color: #999;
    background: #f8f9fa;
    opacity: 0.7; /* Transparence légère pour les réservés */
}

.ticket-reserved .ticket-status {
    color: #666;
}

.ticket-paid {
    border-color: #666;
    background: #f0f0f0;
    opacity: 0.4; /* Plus de transparence pour les vendus */
}

.ticket-paid .ticket-status {
    color: #333;
}

.ticket-cancelled {
    border-color: #ccc;
    background: #f8f9fa;
    opacity: 0.3; /* Encore plus transparent pour les annulés */
}

.ticket-cancelled .ticket-status {
    color: #999;
}

.ticket-unknown {
    border-color: #ddd;
    background: #f8f9fa;
}

.ticket-unknown .ticket-status {
    color: #666;
}

/* Ticket Grid Responsive */
@media (max-width: 768px) {
    .ticket-item {
        min-height: 70px;
        padding: 8px 6px;
    }
    
    .ticket-number {
        font-size: 1rem;
    }
    
    .ticket-status {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .ticket-item {
        min-height: 60px;
        padding: 6px 4px;
    }
    
    .ticket-number {
        font-size: 0.9rem;
    }
    
    .ticket-status {
        font-size: 0.65rem;
    }
    
    .ticket-owner {
        font-size: 0.6rem;
    }
}

/* Purchase Section */
#purchaseSection {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

#selectedTicketsList {
    max-height: 100px;
    overflow-y: auto;
}

#selectedTicketsList .badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

/* Loading Animation */
#ticketsLoading {
    min-height: 200px;
}

/* Summary Cards */
#ticketSummary .col-3 {
    border-right: 1px solid #e9ecef;
}

#ticketSummary .col-3:last-child {
    border-right: none;
}

#ticketSummary .fw-bold {
    font-size: 1.5rem;
}

/* Break all for long text */
.break-all {
    word-break: break-all;
}

/* Fixed purchase section at bottom */
#purchaseSection {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--bitcoin-orange);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  min-height: 80px;
}

/* Add bottom padding to main content to prevent overlap */
main {
  padding-bottom: 120px; /* Adjust based on purchase section height */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #purchaseSection {
    padding: 0.75rem 0;
    min-height: 70px;
  }
  
  main {
    padding-bottom: 100px;
  }
}

/* Ensure purchase section content is properly spaced */
#purchaseSection .card {
  margin: 0;
  border: none;
  background: transparent;
}

#purchaseSection .card-body {
  padding: 0.5rem 1rem;
}

/* Selected tickets badges */
#selectedTicketsList .badge {
  font-size: 0.8rem;
  margin: 0.1rem;
}

/* Total cost styling */
#totalCost {
  font-weight: bold;
  color: var(--bitcoin-orange);
}

/* Buy button styling */
#buyTicketsBtn {
  min-width: 150px;
}

/* User-owned ticket styles - GOLDEN! */
.ticket-item.user-owned {
  border: 2px solid #ffd700;
  background: linear-gradient(135deg, #fff8dc 0%, #ffefd5 100%);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
  position: relative;
}

.ticket-item.user-owned::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.4;
}

.ticket-item.user-owned .ticket-number {
  color: #b8860b;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ticket-item.user-owned .ticket-status {
  color: #b8860b;
  font-weight: 500;
}

/* Hover effect for user-owned tickets */
.ticket-item.user-owned:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
}

/* Admin Dashboard Styles */
.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.admin-header {
    background: white;
    color: #333;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--bitcoin-orange);
}

.admin-title {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Quicksand', sans-serif;
    color: #333;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-title i {
    color: var(--bitcoin-orange);
    font-size: 2.75rem;
}

.admin-subtitle {
    margin: 0.5rem 0 0 0;
    opacity: 0.8;
    font-size: 1.1rem;
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user-name {
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
}

.admin-nav {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.admin-nav .nav-pills {
    gap: 0.5rem;
}

.admin-nav .nav-link {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s ease;
}



.admin-nav .nav-link.active {
    background-color: var(--bitcoin-orange) !important;
    color: white !important;
    border-color: var(--bitcoin-orange) !important;
}

/* Force les couleurs sur tous les onglets */
.admin-nav .nav-link {
    color: #666 !important;
    border: 1px solid transparent !important;
}

.admin-nav .nav-link:hover {
    background-color: #e9ecef !important;
    color: #495057 !important;
}

.admin-nav .nav-link i {
    color: inherit !important;
}

.admin-content {
    padding: 2rem 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.admin-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-card .card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #495057;
    font-family: 'Quicksand', sans-serif;
}

.admin-card .card-body {
    padding: 1.5rem;
}

.admin-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Force horizontal layout for contact stats row */
#contact-stats .row {
    display: flex !important;
    flex-wrap: wrap !important;
}

#contact-stats .col-lg-3 {
    flex: 0 0 25% !important;
    max-width: 25% !important;
}

@media (max-width: 992px) {
    #contact-stats .col-lg-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--bitcoin-orange);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stat-content h3 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #495057;
    font-family: 'Quicksand', sans-serif;
}

.stat-content p {
    margin: 0.25rem 0 0 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-title {
        font-size: 2rem;
    }
    
    .admin-header {
        padding: 1.5rem 0;
    }
    
    .admin-content {
        padding: 1rem 0;
    }
    
    .admin-stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .admin-user-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .admin-nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .admin-stat-card {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Admin Tables & Actions - Design moderne et élégant */
.admin-card .table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-card .table {
    margin-bottom: 0;
    background: white;
}

.admin-card .table thead th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    font-family: 'Quicksand', sans-serif;
}

.admin-card .table tbody td {
    border: none;
    color: #495057;
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.admin-card .table tbody tr {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.admin-card .table tbody tr:hover {
    background: rgba(245, 158, 11, 0.04);
}

/* Action Buttons - Petits et basiques PARTOUT */
.admin-card .table .btn,
.admin-card .table .btn-group .btn {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    border-radius: 0.25rem !important;
    margin: 0 0.125rem !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
}

/* Reset des styles custom sur les boutons admin */
.admin-card .table .btn-outline-primary,
.admin-card .table .btn-outline-secondary, 
.admin-card .table .btn-outline-danger,
.admin-card .table .btn-success,
.admin-card .table .btn-danger,
.admin-card .table .btn-info {
    background: transparent !important;
    border-width: 1px !important;
}

/* Remettre les couleurs de base pour les boutons colorés */
.admin-card .table .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: white !important;
}

.admin-card .table .btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

/* Cellule Actions - Plus compacte */
.admin-card .table td:last-child {
    width: 140px;
    text-align: center;
    white-space: nowrap;
}

.admin-card .table th:last-child {
    width: 140px;
    text-align: center;
}



/* Status Badges - Plus simples et élégants */
.admin-card .badge {
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Quicksand', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: rgba(40, 167, 69, 0.3) !important;
}

.bg-warning {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #ffc107 100%) !important;
    color: white !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
    border-color: rgba(23, 162, 184, 0.3) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    border-color: rgba(108, 117, 125, 0.3) !important;
}

/* Contact Stats Cards - Plus attrayantes */
.admin-card #contact-stats .stat-card {
    background: white;
    border: 2px solid #f1f3f4;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-card #contact-stats .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bitcoin-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 2px 2px;
}

.admin-card #contact-stats .stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--bitcoin-orange);
    box-shadow: 0 12px 40px rgba(245, 158, 11, 0.12);
}

.admin-card #contact-stats .stat-card:hover::before {
    transform: scaleX(1);
}

.admin-card #contact-stats .stat-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--bitcoin-orange);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Quicksand', sans-serif;
}

.admin-card #contact-stats .stat-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Quicksand', sans-serif;
}

/* Header Controls - Plus modernes */
.header-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-controls .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    font-weight: 600;
    min-width: 150px;
    font-family: 'Quicksand', sans-serif;
    background-color: white;
    transition: all 0.3s ease;
}

.header-controls .form-select:focus {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.15);
}

.header-controls .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    font-family: 'Quicksand', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-controls .btn:hover {
    transform: translateY(-1px);
}

/* Pagination - Plus moderne */
.admin-card .pagination {
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

.admin-card .page-link {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    color: #495057;
    font-weight: 600;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Quicksand', sans-serif;
    background: white;
}

.admin-card .page-link:hover {
    border-color: var(--bitcoin-orange);
    color: var(--bitcoin-orange);
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.admin-card .page-item.active .page-link {
    background: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

/* Loading Animation - Plus fluide */
.admin-card .spinner-border {
    color: var(--bitcoin-orange);
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Responsive pour tables */
@media (max-width: 768px) {
    .admin-card .table thead th {
        font-size: 0.7rem;
        padding: 1rem;
    }
    
    .admin-card .table tbody td {
        padding: 1rem;
    font-size: 0.9rem;
}

    .admin-card .table .btn {
        padding: 0.1875rem 0.375rem !important;
        font-size: 0.6875rem !important;
        margin: 0 0.0625rem !important;
    }
    
    .admin-card .table td:last-child,
    .admin-card .table th:last-child {
        width: 110px;
    }
    
    .admin-card #contact-stats .stat-card {
        padding: 1.25rem 1rem;
    }
    
    .admin-card #contact-stats .stat-value {
        font-size: 1.75rem;
    }
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 5rem 0;
    position: relative;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f59e0b' fill-opacity='0.03'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
    pointer-events: none;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-title i {
    color: var(--bitcoin-orange);
    margin-right: 1rem;
    font-size: 2.2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    font-weight: 400;
    max-width: 500px;
    margin: 0 auto;
}

.how-it-works-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 158, 11, 0.1);
}

.how-it-works-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(245, 158, 11, 0.2);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.step-icon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    border: 3px solid rgba(245, 158, 11, 0.1);
    transition: all 0.3s ease;
}

.how-it-works-card:hover .step-icon {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    border-color: var(--bitcoin-orange);
    transform: scale(1.1);
}

.step-icon i {
    font-size: 2rem;
    color: #666;
    transition: all 0.3s ease;
}

.how-it-works-card:hover .step-icon i {
    color: white;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.step-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Responsive adjustments for How It Works */
@media (max-width: 768px) {
    .how-it-works-section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .how-it-works-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: -12px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
}

/* Security Page Specific Styles */
.security-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.security-card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.security-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.security-card-header h4 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.security-card-body {
    padding: 0 2rem 2rem;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list li i {
    color: var(--bitcoin-orange);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.security-practices {
    max-width: 800px;
    margin: 0 auto;
}

.practice-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease;
}

.practice-item:hover {
    transform: translateY(-2px);
}

.practice-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bitcoin-orange);
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 2px solid rgba(245, 158, 11, 0.1);
}

.practice-content h5 {
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
}

.practice-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.security-report-card {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.report-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #d97706;
        font-size: 2rem;
    }
    
.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.contact-method i {
    color: var(--bitcoin-orange);
        font-size: 1.5rem;
    }
    
.contact-method h6 {
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 600;
}

.contact-method p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Security features in hero */
.security-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for Security */
@media (max-width: 768px) {
    .security-card-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .security-card-body {
        padding: 0 1.5rem 1.5rem;
}

    .practice-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .security-report-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .security-features {
        gap: 1rem;
    }
}

/* ================================
   How It Works Page Specific Styles
   ================================ */

.how-it-works-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Lightning Feature Cards */
.lightning-feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.lightning-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.lightning-feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bitcoin-orange), #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.lightning-feature-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lightning-feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* LNURL Benefit Cards */
.lnurl-benefit-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.lnurl-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.lnurl-benefit-card .benefit-icon {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.lnurl-benefit-card h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.lnurl-benefit-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* Wallet Cards */
.wallet-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.wallet-header {
    background: #f8f9fa;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.wallet-icon {
    width: 50px;
    height: 50px;
    background: var(--bitcoin-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.wallet-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-weight: 600;
}

.wallet-platforms {
    display: flex;
        gap: 0.5rem;
    }

.platform-badge {
    background: #333;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.wallet-body {
    padding: 1.5rem;
}

.wallet-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.wallet-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--bitcoin-orange);
}

.wallet-download-btn {
    width: 100%;
    background: var(--bitcoin-orange);
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wallet-download-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

/* Getting Started Steps */
.getting-started-step {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.getting-started-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.getting-started-step .step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--bitcoin-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.getting-started-step .step-icon {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.getting-started-step h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.getting-started-step p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.9rem;
}

/* ================================
   Contact Page Specific Styles
   ================================ */

.contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.contact-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--bitcoin-orange);
}

.feature-badge i {
    color: var(--bitcoin-orange);
    font-size: 1.1rem;
}

/* Contact Form Card */
.contact-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.contact-card-header {
    background: #f8f9fa;
    padding: 2rem;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}

.contact-card-header h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-card-header i {
    color: var(--bitcoin-orange);
    margin-right: 0.5rem;
}

.contact-form {
    padding: 2rem;
}

.contact-submit-btn {
    background: var(--bitcoin-orange);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 160px;
}

.contact-submit-btn:hover {
    background: #e68900;
    transform: translateY(-2px);
}

.contact-submit-btn:disabled {
    background: #ccc;
    transform: none;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contact Method Cards */
.contact-method-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.method-icon {
    width: 80px;
    height: 80px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--bitcoin-orange);
}

.contact-method-card h5 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-method-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* FAQ Quick Links */
.faq-quick-links {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-quick-links h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.faq-link:hover {
    background: #f8f9fa;
    color: var(--bitcoin-orange);
    border-color: var(--bitcoin-orange);
    transform: translateX(5px);
}

.faq-link i {
    color: var(--bitcoin-orange);
    font-size: 1.2rem;
}

/* Form Validation Styles - Non agressif */
.form-control {
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bitcoin-orange);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

.form-control:invalid {
    border-color: #e9ecef; /* Pas de rouge avant validation */
}

.form-control:valid {
    border-color: var(--bitcoin-orange);
}

/* Seulement après soumission */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: var(--bitcoin-orange);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23f39c12' d='m2.3 6.73.94-.94 4.94-4.94L8.96.11 7.08 2 2.96 6.11z'/%3e%3c/svg%3e");
}

/* Custom Contact Alerts */
.contact-alert-success {
    background-color: #f8f9fa;
    border-color: var(--bitcoin-orange);
    color: #333;
    border-left: 4px solid var(--bitcoin-orange);
}

.contact-alert-success i {
    color: var(--bitcoin-orange);
}

.contact-alert-error {
    background-color: #f8f9fa;
    border-color: #666;
    color: #333;
    border-left: 4px solid #666;
}

.contact-alert-error i {
    color: #666;
}

/* Privacy Alert Info */
.privacy-alert-info {
    background-color: #f8f9fa;
    border-color: var(--bitcoin-orange);
    color: #333;
    border-left: 4px solid var(--bitcoin-orange);
}

.privacy-alert-info i {
    color: var(--bitcoin-orange);
}

/* Privacy Page Specific Styles */
.privacy-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bitcoin-orange), #f97316);
}

.privacy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.anonymous-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.lightning-card:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

.bitcoin-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.privacy-card-header {
    padding: 2.5rem 2rem 1rem;
    text-align: center;
}

.privacy-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
}

.privacy-card-header h4 {
    margin: 0;
    color: #333;
    font-weight: 700;
    font-size: 1.5rem;
}

.privacy-card-body {
    padding: 0 2rem 2.5rem;
    text-align: center;
}

.privacy-card-body .lead {
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
}

.privacy-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #555;
}

.privacy-list li i {
    flex-shrink: 0;
    font-size: 1rem;
}

.anonymous-card .privacy-list li i {
    color: #ef4444;
}

.lightning-card .privacy-list li i,
.bitcoin-card .privacy-list li i {
    color: var(--bitcoin-orange);
}

.anon-badge,
.lightning-badge,
.bitcoin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
}

.anon-badge {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #333;
}

.lightning-badge {
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    color: white;
}

.bitcoin-badge {
    background: linear-gradient(135deg, #333 0%, #1f2937 100%);
    color: white;
}

/* Anonymous Steps */
.anon-steps {
    max-width: 800px;
    margin: 0 auto;
}

.anon-step {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease;
}

.anon-step:hover {
    transform: translateY(-3px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.step-content {
    flex: 1;
}

.step-content h5 {
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.anon-step .step-icon {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid var(--bitcoin-orange);
}

/* Privacy Commitments */
.privacy-commitments {
    max-width: 900px;
    margin: 0 auto;
}

.commitment-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: transform 0.2s ease;
}

.commitment-card:hover {
    transform: translateY(-2px);
}

.commitment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.commitment-header i {
    color: var(--bitcoin-orange);
    font-size: 1.5rem;
}

.commitment-header h5 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.commitment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commitment-list li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.commitment-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bitcoin-orange);
    font-weight: bold;
}

/* Technical Privacy */
.tech-privacy-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bitcoin-orange) 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 2rem;
}

.tech-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    height: 100%;
}

.tech-feature i {
    color: var(--bitcoin-orange);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tech-feature h6 {
    margin-bottom: 0.25rem;
    color: #333;
    font-weight: 600;
}

.tech-feature p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Privacy features in hero */
.privacy-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Responsive adjustments for Privacy */
@media (max-width: 768px) {
    .privacy-card-header {
        padding: 2rem 1.5rem 1rem;
    }

    .privacy-card-body {
        padding: 0 1.5rem 2rem;
    }

    .anon-step {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .step-content {
        order: 2;
    }

    .step-icon {
        order: 3;
    }

    .tech-privacy-card {
        padding: 2rem 1.5rem;
    }

    .tech-feature {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .commitment-card {
        padding: 1.5rem;
    }

    .privacy-features {
        gap: 1rem;
    }
}

/* ============================================
   OPTIMIZED LOTTERY DETAIL STYLES
   ============================================ */

/* Ticket Scroll Zone */
.ticket-scroll-zone {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
}

/* Scroll zone header removed - info now in fixed top header */

/* Virtual Scrolling Container */
.virtual-scroll-container {
    position: relative;
    background: white;
    /* iOS scroll fix */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    overscroll-behavior: contain;
    -webkit-overscroll-behavior: contain;
}

.virtual-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.virtual-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.virtual-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.virtual-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ticket Row Styles */
.ticket-row {
    transition: all 0.15s ease;
    background: white;
    border-left: 3px solid transparent;
}

.ticket-row:hover {
    background: #f8f9fa !important;
    border-left-color: var(--bitcoin-orange);
}

.ticket-row.selected {
    background: rgba(247, 147, 26, 0.1) !important;
    border-left-color: var(--bitcoin-orange);
    box-shadow: inset 0 0 0 1px rgba(247, 147, 26, 0.3);
}

.ticket-row.user-owned {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.ticket-row.user-owned.selected {
    background: rgba(247, 147, 26, 0.15) !important;
    border-left-color: var(--bitcoin-orange);
}

/* Status-specific styling */
.ticket-row.status-available {
    cursor: pointer;
}

.ticket-row.status-reserved {
    opacity: 0.7;
    cursor: not-allowed;
}

.ticket-row.status-paid {
    opacity: 0.8;
    cursor: not-allowed;
}

.ticket-row.status-cancelled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Virtual Grid Ticket Styles - Grid styles are applied via JavaScript for dynamic responsive behavior */

.ticket-grid-virtual .ticket-item {
    /* Ensure consistent height for virtual scrolling */
    min-height: 100px;
    max-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ticket-grid-virtual .ticket-number {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.ticket-grid-virtual .ticket-status {
    font-size: 0.7rem;
    margin-bottom: 2px;
}

.ticket-grid-virtual .ticket-owner {
    font-size: 0.65rem;
    margin-top: auto;
}

.ticket-grid-virtual .ticket-select-indicator,
.ticket-grid-virtual .ticket-checkbox {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.9rem;
}

/* Enhanced ticket scroll zone */
.ticket-scroll-zone {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Scroll zone header styles removed */

.scroll-progress-bar {
    background: linear-gradient(90deg, var(--bitcoin-orange), #ff8c00);
    box-shadow: 0 1px 3px rgba(247, 147, 26, 0.4);
}

/* Search highlight animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(247, 147, 26, 0.8);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(247, 147, 26, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(247, 147, 26, 0.8);
    }
}

/* Loading Indicators */
.loading-overlay {
    backdrop-filter: blur(2px);
    background: rgba(255, 255, 255, 0.9) !important;
}

.infinite-loading-indicator {
    animation: fadeInOut 1.5s ease-in-out infinite;
}

.infinite-loading-indicator .spin {
    animation: spin 1s linear infinite;
}

.scroll-progress-bar {
    transition: width 0.1s ease;
    box-shadow: 0 1px 3px rgba(247, 147, 26, 0.3);
}

/* Animations */
@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search and Actions Bar */
#purchaseSection .input-group {
    max-width: 400px;
    margin: 0 auto;
}

#purchaseSection .btn-group .btn {
    white-space: nowrap;
}

/* Selected Tickets Display */
#selectedTicketsList .badge {
    font-size: 0.75rem;
    margin: 2px;
}

/* Responsive adjustments for large lottery interface */
@media (max-width: 768px) {
    /* ticket-scroll-zone sizing handled by JavaScript positioning */
    
    /* virtual-scroll-container height managed by JavaScript */
    
    /* Scroll zone header mobile styles removed */
    
    /* Scroll position indicator removed */
    
    .ticket-row {
        padding: 0.75rem 0.5rem !important;
        font-size: 0.9rem;
    }
    
    .ticket-row .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .ticket-row .col-3 {
        flex: 0 0 35%;
        max-width: 35%;
    }
    
    .ticket-row .col-4 {
        flex: 0 0 25%;
        max-width: 25%;
        display: none; /* Hide owner info on mobile */
    }
    
    #purchaseSection .row.mb-3 .col-12 .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #purchaseSection .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobile scroll improvements */
    .virtual-scroll-container {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    .scroll-progress-bar {
        height: 4px; /* Thicker on mobile */
    }
}

/* Performance optimizations */
.virtual-container {
    contain: layout style;
}

.ticket-row {
    contain: layout style;
    will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ticket-row.selected {
        background: rgba(0, 0, 0, 0.1) !important;
        border-left-color: #000;
        box-shadow: inset 0 0 0 2px #000;
    }
    
    .ticket-row:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        border-left-color: #000;
    }
}

/* ===== SPECIALIZED LOTTERY DETAIL LAYOUT ===== */

/* Hide default main-content on lottery detail page */
body[data-page="lottery-detail"] .main-content {
    display: none !important;
}

/* Main layout container for lottery detail page */
body[data-page="lottery-detail"] .lottery-detail-layout {
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding-top: 64px !important; /* Account for fixed navigation */
    position: relative !important;
}

/* Fixed header section */
body[data-page="lottery-detail"] .lottery-detail-header {
    position: fixed !important;
    top: 64px !important; /* Below navbar */
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    border-bottom: 1px solid #e9ecef !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    z-index: 999 !important;
    padding: 1rem 0 !important;
    width: 100% !important;
}

/* Header info section */
.lottery-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.lottery-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    line-height: 1.2;
}

.lottery-title .lottery-description {
    font-size: 0.95rem;
    color: #666;
    margin: 0.25rem 0 0 0;
    line-height: 1.3;
}

/* Desktop */
@media (min-width: 768px) {
    .lottery-title h1 {
        margin: 8px 0 12px;
    }
}

.lottery-jackpot {
    text-align: center;
    background: #f8f9fa;
    border: 2px solid var(--bitcoin-orange);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    min-width: 120px;
    position: relative;
}

.lottery-jackpot .prize-tag {
    position: absolute;
    top: -8px;
    left: 8px;
    background: var(--bitcoin-orange);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.lottery-jackpot .jackpot-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bitcoin-orange);
    line-height: 1;
}

.lottery-jackpot .jackpot-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.lottery-jackpot .jackpot-bitcoin {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.lottery-jackpot .jackpot-bitcoin .jackpot-amount {
    margin: 0;
}

.lottery-jackpot .jackpot-bitcoin .jackpot-label {
    margin: 0;
    font-size: 0.9rem;
}

/* Progress summary section */
.lottery-progress-summary {
    padding: 0 12px; /* Mobile */
}

/* Desktop */
@media (min-width: 576px) {
    .lottery-progress-summary {
        padding: 0 25px 10px;
    }
}

.progress-info {
    display: flex;
    margin-bottom: 6px;
}

.progress-info span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.progress-bar-container {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bitcoin-orange), #f97316);
    transition: width 0.3s ease;
    border-radius: 3px;
}

/* Main content area - will be positioned dynamically by JS */
body[data-page="lottery-detail"] .lottery-detail-content {
    /* Positioning and dimensions handled by JavaScript calculateContainerSize() */
}

/* Tickets section */
body[data-page="lottery-detail"] .tickets-section {
    height: 100%;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Loading state */
.tickets-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.tickets-loading .spinner-border {
    color: var(--bitcoin-orange);
    margin-bottom: 1rem;
}

.tickets-loading .loading-text {
    margin: 0;
    font-size: 0.95rem;
}

/* Search Notch */
.search-notch {
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-notch-btn {
    background: var(--bitcoin-orange);
    border: none;
    color: white !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-notch-btn i {
    color: white !important;
}

.search-notch-btn:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    color: white !important;
}

.search-notch-btn:hover i {
    color: white !important;
}

.search-notch-btn.active {
    background: #d97706;
    transform: scale(1.1);
    color: white !important;
}

.search-notch-btn.active i {
    color: white !important;
}

.search-expanded {
    position: absolute;
    top: 35px;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 4px;
    min-width: 140px;
}

.search-expanded input {
    flex: 1;
    min-width: 80px;
}

.search-expanded .btn {
    padding: 0.25rem 0.5rem;
}

/* Removable ticket badges */
.ticket-badge-removable {
    transition: all 0.2s ease;
    user-select: none;
}

.ticket-badge-removable:hover {
    background-color: #dc3545 !important;
    color: white !important;
    transform: scale(1.05);
}

/* Lucky tag */
.lucky-tag {
    background: #f59e0b;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.lucky-tag:hover {
    background: #d97706;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.lucky-tag:active,
.lucky-tag:focus {
    background: #d97706;
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.lucky-tag i {
    margin-right: 0.25rem;
    color: white !important;
}

/* Cart container */
.cart-container {
    display: flex;
    gap: 12px;
    padding: 8px 12px;
    align-items: stretch;
}

/* Left info block */
.cart-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-row {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.cart-label {
    font-size: 0.9rem;
    color: #666;
    margin-right: 8px;
    white-space: nowrap;
    min-width: 65px;
}

.cart-value {
    font-size: 0.9rem;
}

.selected-tickets-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.selected-tickets-badges .text-muted {
    font-size: 0.9rem;
}

/* Right checkout block */
.cart-checkout {
    display: flex;
    align-items: center;
}

.checkout-btn {
    background: #000 !important;
    border: none !important;
    color: white !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkout-btn:hover:not(:disabled) {
    background: #333 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.checkout-btn:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
}

.checkout-btn i {
    font-size: 1.1rem;
    color: inherit !important;
}

.checkout-btn span {
    color: inherit !important;
    font-size: 0.8em;
}



/* Tickets grid */
body[data-page="lottery-detail"] .tickets-grid {
    padding: 0 !important; /* No padding at all */
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Keep ticket items styled normally - only remove list container backgrounds */

body[data-page="lottery-detail"] .visible-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

body[data-page="lottery-detail"] .ticket-scroll-zone {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Results section for completed lotteries */
body[data-page="lottery-detail"] .lottery-results-section {
    padding: 1rem !important;
    background: transparent !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Lottery Results Styles */
.lottery-results-container {
  max-width: 800px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
}

.result-header h3 {
  color: #333;
  margin-bottom: 10px;
}

.winner-announcement {
  margin-bottom: 30px;
}

.winner-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.winner-badge {
  background: var(--bitcoin-orange);
  color: white;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
}

.winning-ticket {
  margin-bottom: 20px;
}

.ticket-label,
.jackpot-label {
  display: block;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
  margin-bottom: 5px;
}

.ticket-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  color: #333;
}

.jackpot-amount {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.draw-details {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 25px;
}

.draw-details h4 {
  color: #333;
  margin-bottom: 15px;
}

.blockchain-proof {
  margin-top: 20px;
}

.proof-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.proof-item:last-child {
  border-bottom: none;
}

.proof-label {
  font-weight: 500;
  color: #666;
}

.proof-value {
  font-weight: bold;
  color: #333;
  font-family: 'Courier New', monospace;
}

/* Winner verification link */
.winner-verification {
  text-align: center;
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.9rem;
}

.verify-link {
  color: var(--bitcoin-orange);
  text-decoration: underline;
  font-weight: 500;
}

.verify-link:hover {
  color: var(--bitcoin-orange);
  text-decoration: none;
}

/* Custom orange button with white text */
.btn-bitcoin-orange {
  background-color: var(--bitcoin-orange) !important;
  border-color: var(--bitcoin-orange) !important;
  color: white !important;
}

.btn-bitcoin-orange:hover,
.btn-bitcoin-orange:focus,
.btn-bitcoin-orange:active {
  background-color: #e67e22 !important;
  border-color: #e67e22 !important;
  color: white !important;
}

.btn-bitcoin-orange i {
  color: white !important;
}



/* Completed Lottery Footer Styles */
.completed-lottery-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 20px;
}

.completion-status {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.status-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.completion-status.winner .status-icon {
  color: #28a745;
}

.completion-status.participated .status-icon {
  color: #6c757d;
}

.completion-status.not-participated .status-icon {
  color: #ffc107;
}

.status-content {
  flex: 1;
}

.status-content h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.status-content p {
  margin: 0;
  font-size: 0.9rem;
}

.status-action {
  flex-shrink: 0;
}

.status-action .btn {
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 25px;
}



/* Winning ticket styles */
.ticket-item.winning-ticket {
  background: var(--bitcoin-orange) !important;
  border: 2px solid var(--bitcoin-orange) !important;
  color: white !important;
  opacity: 1 !important;
  position: relative;
}

.ticket-item.winning-ticket .ticket-number,
.ticket-item.winning-ticket .ticket-info,
.ticket-item.winning-ticket .ticket-status,
.ticket-item.winning-ticket .ticket-owner,
.ticket-item.winning-ticket * {
  color: white !important;
}

.winning-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  background: black !important;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white !important;
}


}


}

/* Body spacing for completed footer */
body.has-completed-footer {
  padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .completion-status {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .status-icon {
    font-size: 2rem;
  }
  
  .status-content h4 {
    font-size: 1rem;
  }
  
  .status-content p {
    font-size: 0.85rem;
  }
  
  .completed-lottery-footer {
    padding: 10px 15px;
  }
  
  body.has-completed-footer {
    padding-bottom: 100px;
  }
}

/* Enhanced purchase section - compact and fixed */
body[data-page="lottery-detail"] #purchaseSection {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: white !important;
    border-top: 1px solid #e9ecef !important;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1) !important;
    padding: 0.5rem 0.75rem !important;
}

#purchaseSection .card {
    border: none;
    background: transparent;
    margin: 0;
}

#purchaseSection .card-body {
    padding: 0;
}

/* Compact purchase section content */
body[data-page="lottery-detail"] #purchaseSection .row {
    margin: 0 !important;
    align-items: center !important;
}

body[data-page="lottery-detail"] #purchaseSection .col-5,
body[data-page="lottery-detail"] #purchaseSection .col-4,
body[data-page="lottery-detail"] #purchaseSection .col-3,
body[data-page="lottery-detail"] #purchaseSection .col-md-3,
body[data-page="lottery-detail"] #purchaseSection .col-md-6 {
    display: flex !important;
    align-items: center !important;
}

body[data-page="lottery-detail"] #purchaseSection .col-12,
body[data-page="lottery-detail"] #purchaseSection .col-md-6,
body[data-page="lottery-detail"] #purchaseSection .col-md-4,
body[data-page="lottery-detail"] #purchaseSection .col-md-3,
body[data-page="lottery-detail"] #purchaseSection .col-md-2,
body[data-page="lottery-detail"] #purchaseSection .col-6 {
    padding: 0.25rem !important;
}

/* Desktop layout improvements */
@media (min-width: 768px) {
    body[data-page="lottery-detail"] #purchaseSection .col-md-3:first-child {
        justify-content: flex-start;
    }
    
    body[data-page="lottery-detail"] #purchaseSection .col-md-6 {
        justify-content: center;
    }
    
    body[data-page="lottery-detail"] #purchaseSection .col-md-3:last-child {
        justify-content: flex-end;
    }
}

body[data-page="lottery-detail"] #purchaseSection .input-group {
    margin-bottom: 0.25rem !important;
}

body[data-page="lottery-detail"] #purchaseSection .form-control,
body[data-page="lottery-detail"] #purchaseSection .form-control-sm {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
    height: 36px !important;
    border-radius: 6px !important;
    border: 1px solid #ddd !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
}

body[data-page="lottery-detail"] #purchaseSection .btn,
body[data-page="lottery-detail"] #purchaseSection .btn-sm {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
    height: 36px !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
    background: white !important;
    color: #495057 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.3rem !important;
    transition: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    line-height: 1 !important;
}

body[data-page="lottery-detail"] #purchaseSection .btn:hover {
    background: #f8f9fa !important;
    border-color: #adb5bd !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

body[data-page="lottery-detail"] #purchaseSection .btn i,
body[data-page="lottery-detail"] #purchaseSection .btn-sm i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    vertical-align: -0.125em !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Purchase summary - more compact */
#purchaseSection .alert {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

#purchaseSection .selected-tickets-summary {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Optimized stats styling */
body[data-page="lottery-detail"] .stat-inline {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
}

body[data-page="lottery-detail"] .stat-inline strong {
    font-weight: 600 !important;
}

body[data-page="lottery-detail"] #purchaseSection .buy-btn-prominent {
    background: var(--bitcoin-orange) !important;
    border-color: var(--bitcoin-orange) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    transition: none !important;
}

body[data-page="lottery-detail"] #purchaseSection .buy-btn-prominent:hover:not(:disabled) {
    background: #e68900 !important;
    border-color: #e68900 !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

body[data-page="lottery-detail"] #purchaseSection .buy-btn-prominent:disabled {
    background: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    /* Lottery header dimensions kept consistent for JS positioning */
    
    .lottery-title h1 {
        font-size: 1.2rem !important;
    }
    
    .lottery-title .lottery-description {
        font-size: 0.8rem;
        display: none;
    }
    
    .lottery-jackpot {
        padding: 0.5rem 1rem;
        min-width: 100px;
        margin-left: 8px;
    }
    
    .lottery-jackpot .jackpot-amount {
        font-size: 1.25rem;
    }
    
    /* lottery-detail-content positioning handled by JavaScript */
    
    /* More compact mobile cart */
    body[data-page="lottery-detail"] #purchaseSection {
        padding: 0.3rem 0.5rem !important;
    }
    
    body[data-page="lottery-detail"] #purchaseSection .input-group {
        margin-bottom: 0.2rem !important;
    }
    
    body[data-page="lottery-detail"] #purchaseSection .form-control,
    body[data-page="lottery-detail"] #purchaseSection .btn {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
    
    body[data-page="lottery-detail"] .purchase-stat .stat-value {
        font-size: 0.75rem !important;
    }
    
    body[data-page="lottery-detail"] .purchase-stat .stat-label {
        font-size: 0.55rem !important;
    }
}

@media (max-width: 576px) {
    .lottery-detail-header {
        padding: 0.5rem 0;
    }
    
    .lottery-header-info {
        padding: 0 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .lottery-title h1 {
        font-size: 1.25rem;
    }
    
    .lottery-jackpot {
        padding: 0.4rem 0.8rem;
    }
    
    .search-notch {
        right: 15px;
        top: -12px;
    }
    
    .search-notch-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .search-expanded {
        min-width: 120px;
        right: -5px;
        top: 30px;
    }
    
    .lucky-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    

    
    /* lottery-detail-content positioning handled by JavaScript */
    
    body[data-page="lottery-detail"] .tickets-grid {
        padding: 0 !important;
    }
    
    body[data-page="lottery-detail"] #purchaseSection {
        padding: 0.25rem 0.4rem !important;
    }
}

/* Print styles */
@media print {
    .virtual-scroll-container,
    #purchaseSection,
    .lottery-detail-header {
        display: none !important;
    }
    
    .lottery-detail-content {
        margin: 0 !important;
    }
}