* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.showup-branding {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    gap: 15px;
}

.showup-icon {
    height: 48px;
    width: auto;
    border-radius: 50%; /* circular */
}

.showup-text {
    line-height: 1;
}

.container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

/* Desktop responsive design */
@media (min-width: 768px) {
    .container {
        max-width: 1200px;
    }
    
    .content {
        padding: 40px;
    }
    
    /* Stats grid for desktop */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        margin-bottom: 40px;
    }
    
    /* Batch actions layout for desktop */
    .batch-actions {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    /* Controls row for desktop */
    .controls-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .filter-controls {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    /* Check-ins grid for desktop */
    .checkins-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1400px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .checkins-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
}

.header {
    background: linear-gradient(135deg, #007BFF 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header p {
    font-size: 16px;
    opacity: 0.9;
}

.content {
    padding: 30px;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007BFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.auth-required {
    text-align: center;
    padding: 40px;
}

.auth-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    color: #721c24;
}

.contract-info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.contract-info h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.info-label {
    color: #666;
}

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

.consequence-none {
    color: #dc3545;
    font-weight: bold;
}

.consequence-active {
    color: #28a745;
    font-weight: bold;
}

#consequence-icon {
    margin-right: 5px;
}

.punishment-section {
    margin-bottom: 30px;
}

.punishment-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
}

.amount-input-container {
    position: relative;
    margin-bottom: 20px;
}

.amount-input {
    width: 100%;
    padding: 15px 20px 15px 40px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    transition: border-color 0.3s ease;
}

.amount-input:focus {
    outline: none;
    border-color: #007BFF;
}

.dollar-sign {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.amount-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e1e5e9;
    outline: none;
    margin-bottom: 15px;
    -webkit-appearance: none;
}

.amount-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.amount-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #007BFF;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    border-color: #007BFF;
    background: #f8f9ff;
}

.preset-btn.active {
    border-color: #007BFF;
    background: #007BFF;
    color: white;
}

.motivation-text {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #856404;
}

.confirmation-section {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.confirmation-section h3 {
    color: #0066cc;
    margin-bottom: 15px;
    font-size: 18px;
}

.confirmation-details {
    margin-bottom: 20px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.confirmation-label {
    color: #0066cc;
}

.confirmation-value {
    color: #0066cc;
    font-weight: 600;
}

.payment-method-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.payment-method-info h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-brand {
    font-weight: 600;
    text-transform: capitalize;
}

.card-last4 {
    color: #666;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #007BFF 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
}

.btn-outline {
    background: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
}

.btn-outline:hover {
    background: #007BFF;
    color: white;
}

.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.disclaimer {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    line-height: 1.4;
}

.return-instructions {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #0066cc;
    text-align: center;
}

.portal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .content {
        padding: 20px;
    }
    
    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }

    .portal-actions {
        grid-template-columns: 1fr;
    }
}
