/**
 * Billy's Lotto Pool - Styles
 * A vibrant, mobile-first PWA design
 */

/* ==================== CSS Variables ==================== */
:root {
    --primary: #e94560;
    --primary-dark: #c73e54;
    --secondary: #0f3460;
    --accent: #16c79a;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1c2a4a;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #6b7280;
    --powerball-red: #e94560;
    --mega-green: #16c79a;
    --gold: #ffd700;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ==================== Base Styles ==================== */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== Install Banner ==================== */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 16px;
    z-index: 1050;
    box-shadow: var(--shadow);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==================== Loading Screen ==================== */
.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.loading-content {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

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

.lottery-balls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.ball {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: white;
    /* animation: bounce 0.6s ease infinite; */ /* Removed bouncing animation */
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ball-1 { background: linear-gradient(145deg, #ff6b6b, #ee5a5a); animation-delay: 0s; }
.ball-2 { background: linear-gradient(145deg, #4ecdc4, #3dbdb5); animation-delay: 0.1s; }
.ball-3 { background: linear-gradient(145deg, #ffe66d, #ffd93d); color: #333; animation-delay: 0.2s; }
.ball-4 { background: linear-gradient(145deg, #95e1d3, #7dd3c3); animation-delay: 0.3s; }
.ball-5 { background: linear-gradient(145deg, #dfe6e9, #b2bec3); color: #333; animation-delay: 0.4s; }
.ball-power { background: linear-gradient(145deg, #e94560, #c73e54); animation-delay: 0.5s; }

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

.lottery-balls-small .ball {
    width: 64px;
    height: 64px;
    font-size: 32px;
    animation: none;
}

/* ==================== Login Screen ==================== */
.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: radial-gradient(ellipse at top, var(--bg-card) 0%, var(--bg-dark) 70%);
}

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

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 16px 0 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--mega-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-form {
    width: 100%;
    max-width: 360px;
}

.login-form .form-control {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2);
}

.login-form .form-floating label {
    color: var(--text-secondary);
    padding: 16px;
}

.login-form .form-floating > .form-control:focus ~ label,
.login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
    transform: scale(0.85) translateY(-0.75rem) translateX(0.15rem);
}

/* PIN Input */
.pin-input-container {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.pin-digit {
    width: 60px;
    height: 70px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 28px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.pin-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2);
    outline: none;
}

.pin-digit.filled {
    background: var(--bg-card-hover);
    border-color: var(--accent);
}

/* ==================== Buttons ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    border: none;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.btn-loading .spinner-border {
    width: 20px;
    height: 20px;
}

/* ==================== Header ==================== */
.app-header {
    background: var(--bg-card);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-icon {
    font-size: 24px;
}

/* ==================== Jackpot Ticker ==================== */
.jackpot-ticker {
    display: flex;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.jackpot-item {
    flex: 1;
    min-width: 50%;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.jackpot-item:last-child {
    border-right: none;
}

.jackpot-item.powerball {
    background: linear-gradient(180deg, rgba(233, 69, 96, 0.1) 0%, transparent 100%);
}

.jackpot-item.megamillions {
    background: linear-gradient(180deg, rgba(22, 199, 154, 0.1) 0%, transparent 100%);
}

.jackpot-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

.jackpot-amount {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.powerball .jackpot-amount { color: var(--powerball-red); }
.megamillions .jackpot-amount { color: var(--mega-green); }

.jackpot-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ==================== Main Content ==================== */
.app-content {
    flex: 1;
    padding: 16px;
    padding-bottom: 80px;
    overflow-y: auto;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
}

/* ==================== Pool Cards ==================== */
.pools-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pools-section {
    margin-bottom: 32px;
}

.pools-section:last-child {
    margin-bottom: 0;
}

.pools-section .section-header {
    margin-bottom: 12px;
}

.pools-section .section-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.pools-list-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pool-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pool-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
    border-color: var(--primary);
}

.pool-card.member {
    border-left: 4px solid var(--accent);
}

.pool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.pool-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.pool-badges {
    display: flex;
    gap: 4px;
}

.lottery-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lottery-badge.pb {
    background: rgba(233, 69, 96, 0.2);
    color: var(--powerball-red);
}

.lottery-badge.mm {
    background: rgba(22, 199, 154, 0.2);
    color: var(--mega-green);
}

.pool-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.pool-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pool-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==================== Pool Detail ==================== */
.back-btn {
    color: var(--text-secondary);
    padding: 0;
    margin-bottom: 16px;
    text-decoration: none;
}

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

.pool-header {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

.pool-header h2 {
    margin: 0 0 8px;
}

.pool-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* Drawing Cards */
.drawing-section {
    margin-bottom: 24px;
}

.drawing-section h5 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.drawing-card.clickable {
    transition: all 0.2s ease;
}

.drawing-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.drawing-card.powerball {
    border-top: 3px solid var(--powerball-red);
}

.drawing-card.megamillions {
    border-top: 3px solid var(--mega-green);
}

.drawing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.drawing-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawing-type {
    font-weight: 600;
    font-size: 0.9rem;
}

.drawing-min-jackpot {
    font-weight: 400;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.drawing-card.powerball .drawing-type { color: var(--powerball-red); }
.drawing-card.megamillions .drawing-type { color: var(--mega-green); }

/* Inactive drawing (jackpot below minimum) */
.drawing-card.inactive {
    opacity: 0.7;
    border-top-color: var(--text-muted);
}

.drawing-card.inactive .drawing-type {
    color: var(--text-muted);
}

.drawing-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.drawing-stats {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.drawing-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.drawing-stat i {
    font-size: 1rem;
}

.drawing-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-badge.participated {
    background: rgba(22, 199, 154, 0.2);
    color: var(--accent);
}

.status-badge.pending {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold);
}

.status-badge.missed {
    background: rgba(233, 69, 96, 0.2);
    color: var(--powerball-red);
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
    font-size: 10px;
}

/* Members List */
.members-section {
    margin-bottom: 24px;
}

.members-section .collapsible-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
    padding: 8px 0;
    transition: color 0.2s ease;
    user-select: none;
}

.members-section .collapsible-header:hover {
    color: var(--text-primary);
}

.members-section .collapsible-header .collapse-icon {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.8rem;
}

.members-section .collapsible-header[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.members-section .collapse {
    margin-top: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.member-name {
    font-weight: 500;
}

.member-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ==================== Bottom Navigation ==================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.25rem;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item:hover {
    color: var(--text-primary);
}

/* ==================== Admin Panel ==================== */
.admin-content {
    padding-bottom: 24px;
}

.admin-content .nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.admin-content .nav-link {
    color: var(--text-secondary);
    border: none;
    padding: 12px 16px;
}

.admin-content .nav-link.active {
    background: transparent;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.admin-content .list-group-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    margin-bottom: 8px;
    border-radius: var(--radius-sm) !important;
}

.admin-content .card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.admin-content .card-title {
    font-weight: 600;
}

.admin-content .form-control {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.admin-content .form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

.admin-content .form-label {
    color: var(--text-secondary);
}

/* ==================== Upload Area ==================== */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-area i {
    color: var(--text-muted);
}

.upload-area p {
    color: var(--text-secondary);
    margin: 8px 0 0;
}

.photo-preview {
    position: relative;
    text-align: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
    margin-bottom: 12px;
}

/* ==================== Modals ==================== */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal .form-control,
.modal .form-select {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.modal .form-control:focus,
.modal .form-select:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

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

.modal .form-check-input {
    background-color: var(--bg-card-hover);
    border-color: var(--border-color);
}

.modal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ==================== Toast ==================== */
.toast {
    background: var(--bg-card);
    color: var(--text-primary);
}

.toast.bg-success {
    background: var(--accent) !important;
}

.toast.bg-danger {
    background: var(--primary) !important;
}

/* ==================== Dropdown ==================== */
.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.dropdown-item {
    color: var(--text-primary);
    padding: 10px 16px;
}

.dropdown-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.dropdown-item-text {
    color: var(--text-secondary);
    padding: 10px 16px;
    font-weight: 500;
}

.dropdown-divider {
    border-color: var(--border-color);
}

/* ==================== Alerts ==================== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
}

.alert-info {
    background: rgba(22, 199, 154, 0.1);
    color: var(--accent);
}

.alert-warning {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold);
}

.alert-danger {
    background: rgba(233, 69, 96, 0.1);
    color: var(--powerball-red);
}

/* ==================== Utilities ==================== */
.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--accent) !important;
}

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

.bg-success {
    background-color: var(--accent) !important;
}

.bg-danger {
    background-color: var(--powerball-red) !important;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Winner highlight */
.winner-highlight {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(233, 69, 96, 0.1) 100%);
    border: 1px solid var(--gold) !important;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.2); }
    to { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .app-content {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .login-container {
        max-width: 480px;
        margin: 0 auto;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .app-header {
        padding-top: max(16px, env(safe-area-inset-top));
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Ticket gallery */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.ticket-thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.ticket-thumb:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.ticket-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-owner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 4px 6px;
    font-size: 10px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-delete-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border-radius: 4px;
}

.ticket-thumb:hover .ticket-delete-btn {
    opacity: 1;
}

.ticket-delete-btn:hover {
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Winnings section styling */
.winnings-total {
    background: linear-gradient(135deg, var(--gold) 0%, #ff9f43 100%);
    color: #1a1a2e;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.winnings-total h3 {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
}

.winnings-total p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.875rem;
}

/* ==================== Lottery Ball Display ==================== */
.ticket-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
}

.ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    animation: none; /* No bouncing animation */
}

.ball.white {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #333;
    border: 1px solid #ccc;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

.ball.powerball {
    background: linear-gradient(145deg, #e94560, #c73e54);
    color: white;
    border: 1px solid #b8354a;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.2);
}

.ball.megaball {
    background: linear-gradient(145deg, #ffc107, #e5ac00);
    color: #333;
    border: 1px solid #d4a000;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}

.multiplier {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 193, 7, 0.2);
    color: var(--gold);
    margin-left: 4px;
}

/* ==================== Ticket List Display ==================== */
.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ticket-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 12px;
    margin-bottom: 12px;
}

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

.ticket-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 12px;
}

.ticket-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex: 1;
    min-width: 0;
}

.ticket-item-header:hover {
    opacity: 0.8;
}

.ticket-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ticket-item-numbers {
    padding-left: 0;
    margin-top: 4px;
}


.ticket-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

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

.ticket-owner-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.ticket-numbers-pending {
    margin: 4px 0;
}

.ticket-meta {
    color: var(--text-muted);
}

/* Winning Numbers Display */
.winning-numbers-display {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.winning-numbers-display .ticket-numbers {
    justify-content: center;
}

/* Smaller balls for compact displays */
.ticket-numbers.compact .ball {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

/* ==================== Multi-Play Ticket Display ==================== */
.ticket-plays {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ticket-play {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.ticket-play.invalid {
    opacity: 0.5;
}

.play-number {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 20px;
}

.ticket-numbers-text {
    color: var(--text-primary);
}

.qp-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(108, 117, 125, 0.3);
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 6px;
}

/* Badge for play count */
.ticket-owner-name .badge {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
}

/* ==================== Current User Ticket ==================== */
.current-user-ticket {
    margin-bottom: 20px;
}

/* ==================== Member Ticket List ==================== */
.members-ticket-list {
    margin-bottom: 20px;
}

.member-ticket-item {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

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

.member-ticket-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.member-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.member-ticket-name {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}

.member-delete-btn {
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.2;
    flex-shrink: 0;
}

.member-ticket-numbers {
    padding-left: 0;
}

.tickets-list {
    margin-top: 0;
}

/* ==================== Member Upload Status ==================== */
.member-upload-stats {
    transition: all 0.2s ease;
}

.member-upload-stats:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-upload-stats .card {
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.member-upload-stats:hover .card {
    border-color: var(--primary);
}

.member-upload-list {
    max-height: 400px;
    overflow-y: auto;
}

.member-upload-item {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

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

.member-upload-item.has-ticket:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* ==================== Push Notification Prompt Banner ==================== */
.notification-prompt-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-hover) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-prompt-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.notification-prompt-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--mega-green) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% { transform: rotate(0); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(0); }
}

.notification-prompt-icon i {
    font-size: 24px;
    color: white;
}

.notification-prompt-text {
    flex: 1;
    min-width: 200px;
}

.notification-prompt-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.notification-prompt-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.notification-prompt-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.notification-prompt-actions .btn-link {
    text-decoration: none;
    font-size: 0.85rem;
}

.notification-prompt-actions .btn-link:hover {
    text-decoration: underline;
}

/* Mobile responsive for notification prompt */
@media (max-width: 480px) {
    .notification-prompt-content {
        flex-direction: column;
        text-align: center;
    }
    
    .notification-prompt-text {
        min-width: unset;
    }
    
    .notification-prompt-actions {
        width: 100%;
        justify-content: center;
    }
}
