/* ============================================
   ChurchMng - Responsive CSS with Dark/Light Mode
   ============================================ */

/* CSS Variables - Light Theme (Default) */
:root,
[data-theme="light"] {
    /* Primary Colors */
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-light: #EEF2FF;
    --color-primary-dark: #3730A3;
    
    /* Secondary Colors */
    --color-secondary: #6B7280;
    --color-secondary-hover: #4B5563;
    
    /* Status Colors */
    --color-success: #10B981;
    --color-success-light: #D1FAE5;
    --color-warning: #F59E0B;
    --color-warning-light: #FEF3C7;
    --color-error: #EF4444;
    --color-error-light: #FEE2E2;
    --color-info: #3B82F6;
    --color-info-light: #DBEAFE;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --bg-tertiary: #F3F4F6;
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-hover: #F3F4F6;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;
    --text-muted: #9CA3AF;
    --text-inverse: #FFFFFF;
    
    /* Border Colors */
    --border-color: #E5E7EB;
    --border-color-dark: #D1D5DB;
    --border-focus: #4F46E5;
    
    /* Shadow */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
}

/* Dark Theme */
[data-theme="dark"] {
    --color-primary: #818CF8;
    --color-primary-hover: #A5B4FC;
    --color-primary-light: #1E1B4B;
    --color-primary-dark: #C7D2FE;
    
    --color-success: #34D399;
    --color-success-light: #064E3B;
    --color-warning: #FBBF24;
    --color-warning-light: #78350F;
    --color-error: #F87171;
    --color-error-light: #7F1D1D;
    --color-info: #60A5FA;
    --color-info-light: #1E3A8A;
    
    --bg-primary: #111827;
    --bg-secondary: #1F2937;
    --bg-tertiary: #374151;
    --bg-card: #1F2937;
    --bg-input: #374151;
    --bg-hover: #374151;
    
    --text-primary: #F9FAFB;
    --text-secondary: #D1D5DB;
    --text-tertiary: #9CA3AF;
    --text-muted: #6B7280;
    --text-inverse: #111827;
    
    --border-color: #374151;
    --border-color-dark: #4B5563;
    --border-focus: #818CF8;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ============================================
   App Layout
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.logo-text {
    transition: color var(--transition-normal);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-md);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="light"] .moon-icon,
[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="light"] .sun-icon,
[data-theme="dark"] .moon-icon {
    display: block;
}

.app-main {
    flex: 1;
    padding: 1.5rem 1rem;
}

.app-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

/* ============================================
   Container & Cards
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-tertiary);
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary-color { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }

.text-center { text-align: center; }
.text-right { text-align: right; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

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

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-inverse);
    border-color: var(--color-primary);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--bg-hover);
    border-color: var(--border-color-dark);
}

.btn-success {
    background-color: var(--color-success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #059669;
}

.btn-danger {
    background-color: var(--color-error);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #DC2626;
}

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

.btn-outline:hover:not(:disabled) {
    background-color: var(--color-primary);
    color: var(--text-inverse);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    padding: 0.75rem;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-label.required::after {
    content: " *";
    color: var(--color-error);
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-control:disabled {
    background-color: var(--bg-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.is-invalid {
    border-color: var(--color-error);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px var(--color-error-light);
}

.form-error {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-error);
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Select */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 20px;
    padding-right: 2.5rem;
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.form-check-label {
    cursor: pointer;
    color: var(--text-primary);
}

/* Input Group */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1;
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .form-control:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Phone Input */
.phone-input {
    display: flex;
    gap: 0.5rem;
}

.phone-input .country-code {
    width: 80px;
    flex-shrink: 0;
}

.phone-input .phone-number {
    flex: 1;
}

/* ============================================
   Stepper
   ============================================ */
.stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.stepper::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background-color: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: all var(--transition-normal);
}

.step.active .step-indicator {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: white;
}

.step.completed .step-indicator {
    border-color: var(--color-success);
    background-color: var(--color-success);
    color: white;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-align: center;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   Event Header
   ============================================ */
.event-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* .event-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
} */

.event-banner-wrapper {
    position: relative;
    width: 100%;
    height: auto;          /* or min-height: 180px; height: auto; aspect-ratio approach below */
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.event-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;       /* or contain / scale-down */
    object-position: center; /* default = 50% 50% */
    display: block;
}

/* Keep your overlay exactly as is */
.event-banner-overlay {
    position: absolute;
    inset: 0;
    /* your existing gradient / background / padding etc */
}

/* New dedicated event status badge */
.event-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Bigger & wider */
    min-width: 5.5rem;           /* forces a minimum width so "CLOSED" doesn't look squished */
    padding: 0.5rem 1.25rem;     /* more vertical + horizontal space */
    font-size: 0.95rem;          /* noticeably larger than regular 0.75rem badges */
    font-weight: 600;            /* slightly bolder */
    
    border-radius: var(--radius-full);   /* keep pill shape */
    text-transform: uppercase;
    letter-spacing: 0.04em;
    
    /* Better contrast & modern feel */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    
    /* subtle border for depth */
    border: 1px solid rgba(255,255,255,0.25);
}

/* Optional variants for different states */
.event-status-badge.open {
    background-color: #10b981;           /* emerald green */
    /* or keep using var(--color-success) if you have it */
}

.event-status-badge.closed {
    background-color: #ef4444;           /* red */
}

.event-status-badge.sold-out,
.event-status-badge.waitlist {
    background-color: #d97706;           /* amber/orange */
}

/* If you want to keep using .badge-primary as fallback but override for event status */
.badge-primary.event-status-badge {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.event-church {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.church-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.event-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.event-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.event-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
}

/* Event Header with Share Button */
.event-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.event-header-row .event-title {
    flex: 1;
    margin: 0;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-share:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--color-primary);
}

.btn-share svg {
    flex-shrink: 0;
}

.btn-share-text {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Hide text on small screens, show icon only */
@media (max-width: 480px) {
    .btn-share {
        padding: 0.5rem;
    }
    
    .btn-share-text {
        display: none;
    }
}

/* ============================================
   Booking Options
   ============================================ */
.booking-options {
    display: grid;
    gap: 1rem;
}

.booking-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.booking-option:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.booking-option-info {
    flex: 1;
}

.booking-option-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.booking-option-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.booking-option-price {
    text-align: right;
}

.booking-option-current-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.booking-option-original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.booking-option-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-btn:hover:not(:disabled) {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color-dark);
}

.qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 500;
}

/* ============================================
   Attendees List
   ============================================ */
.attendees-list {
    display: grid;
    gap: 0.75rem;
}

.attendee-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.attendee-item:hover {
    border-color: var(--color-primary);
}

.attendee-item.selected {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.attendee-checkbox {
    margin-right: 1rem;
}

.attendee-info {
    flex: 1;
}

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

.attendee-details {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ============================================
   Summary Section
   ============================================ */
.summary-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    font-size: 1.125rem;
    font-weight: 600;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border-color-dark);
}

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

.summary-value {
    font-weight: 500;
}

/* ============================================
   Alerts & Badges
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-info {
    background-color: var(--color-info-light);
    color: var(--color-info);
    border: 1px solid var(--color-info);
}

.alert-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.alert-warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
    border: 1px solid var(--color-warning);
}

.alert-error {
    background-color: var(--color-error-light);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-primary {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-success {
    background-color: var(--color-success-light);
    color: var(--color-success);
}

.badge-warning {
    background-color: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-error {
    background-color: var(--color-error-light);
    color: var(--color-error);
}

/* ============================================
   Toast Notifications
   ============================================ */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 1rem 1.25rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

.toast.toast-success {
    border-left: 4px solid var(--color-success);
}

.toast.toast-error {
    border-left: 4px solid var(--color-error);
}

.toast.toast-warning {
    border-left: 4px solid var(--color-warning);
}

.toast.toast-info {
    border-left: 4px solid var(--color-info);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
}

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

/* ============================================
   Loading States
   ============================================ */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Verification Code Input
   ============================================ */
.code-input {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.code-input input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.code-input input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* ============================================
   Terms & Conditions
   ============================================ */
.terms-box {
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden { display: none !important; }
.visible { visibility: visible !important; }
.invisible { visibility: hidden !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }

/* ============================================
   Responsive Design
   ============================================ */

/* Mobile First - Base styles are for mobile */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .event-title {
        font-size: 2rem;
    }
    
    .code-input input {
        width: 55px;
        height: 65px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .app-main {
        padding: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    
    .event-banner {
        height: 280px;
    }
    
    .event-title {
        font-size: 2.25rem;
    }
    
    .card-body {
        padding: 2rem;
    }
    
    .stepper::before {
        left: 60px;
        right: 60px;
    }
    
    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-row-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
    
    .event-banner {
        height: 320px;
    }
    
    .booking-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .app-main {
        padding: 2.5rem;
    }
}

/* Mobile-specific adjustments */
@media (max-width: 575.98px) {
    .header-content {
        padding: 0.5rem 0.75rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    .step-label {
        display: none;
    }
    
    .step-indicator {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
    
    .stepper::before {
        top: 17px;
        left: 30px;
        right: 30px;
    }
    
    .booking-option {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .booking-option-qty {
        margin-left: 0;
        justify-content: center;
    }
    
    .booking-option-price {
        text-align: left;
    }
    
    .btn-group-mobile {
        flex-direction: column;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
    
    #toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
    
    .code-input {
        gap: 0.5rem;
    }
    
    .code-input input {
        width: 42px;
        height: 52px;
        font-size: 1.25rem;
    }
}

/* Print styles */
@media print {
    .app-header,
    .app-footer,
    .theme-toggle,
    .btn,
    #toast-container {
        display: none !important;
    }
    
    .app-main {
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ============================================
   Login Icon (Shared - Organizer & Family Portal)
   ============================================ */
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
}

/* ============================================
   Event Code Input
   ============================================ */
.event-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* ============================================
   Icon Sizing Utilities
   ============================================ */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 48px; height: 48px; }

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

.flex-1 { flex: 1; }

/* ============================================
   Summary Card (Registration)
   ============================================ */
.summary-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.summary-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-section {
    margin-bottom: 1rem;
}

.summary-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

/* ============================================
   Options Legend (Registration)
   ============================================ */
.options-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.option-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.option-legend-price {
    font-weight: 600;
    color: var(--color-primary);
}

.option-legend-age {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   Attendee Card (Registration)
   ============================================ */
.attendee-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition-fast);
}

.attendee-card.has-selection {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.attendee-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.attendee-card-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.attendee-card-title .badge {
    font-size: 0.7rem;
}

.attendee-card-remove {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.attendee-card-remove:hover {
    color: var(--color-error);
    background: var(--color-error-light);
}

.attendee-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* ============================================
   Option Selector Buttons (Registration)
   ============================================ */
.option-selector {
    margin-top: 0.75rem;
}

.option-selector-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.option-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.option-btn.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.option-btn.selected .option-btn-price {
    color: rgba(255,255,255,0.9);
}

.option-btn-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.option-btn-price {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.option-btn-age {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.option-btn-none {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

.option-btn-none:hover {
    background: var(--bg-hover);
}

.option-btn-none.selected {
    background: var(--text-tertiary);
    border-color: var(--text-tertiary);
    color: white;
}

/* ============================================
   Add Attendee Button
   ============================================ */
.btn-add-attendee {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.btn-add-attendee:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

/* ============================================
   Summary Attendee Item
   ============================================ */
.summary-attendee {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-attendee:last-child {
    border-bottom: none;
}

.summary-attendee-name {
    font-weight: 500;
}

.summary-attendee-option {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.summary-attendee-price {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   Input Group
   ============================================ */
.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

/* ============================================
   Payment Summary (Payment Page)
   ============================================ */
.payment-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* ============================================
   Stripe Input
   ============================================ */
.stripe-input {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.stripe-input:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.stripe-input.StripeElement--invalid {
    border-color: var(--color-error);
}

[data-theme="dark"] .stripe-input {
    background: var(--bg-input);
}

/* ============================================
   Success Icon
   ============================================ */
.success-icon {
    display: inline-flex;
    padding: 1rem;
    background: var(--color-success-light);
    border-radius: 50%;
}

/* ============================================
   Utility Classes
   ============================================ */
.font-mono {
    font-family: monospace;
}

.inline-block {
    display: inline-block;
    vertical-align: middle;
}

/* ============================================
   Confirmation Page Styles
   ============================================ */
.confirmation-header .card-body {
    padding: 2rem;
}

.status-indicator {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.success {
    background: var(--color-success-light);
    color: var(--color-success);
}

.status-icon.pending {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.status-icon.error {
    background: var(--color-error-light);
    color: var(--color-error);
}

.status-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.status-message {
    color: var(--text-secondary);
}

.registration-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.registration-badge-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.registration-badge-number {
    font-family: monospace;
    font-weight: 600;
    font-size: 1.125rem;
}

.event-info-compact {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.event-info-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
}

.event-info-title {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.event-info-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.event-info-separator {
    margin: 0 0.5rem;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid;
}

.alert-banner.warning {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
}

.alert-banner.error {
    background: var(--color-error-light);
    border-color: var(--color-error);
}

.alert-banner-title {
    font-weight: 600;
}

.alert-banner-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.detail-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row-icon {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.detail-row-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: 0.25rem;
}

.detail-row-value {
    font-weight: 500;
}

.detail-row-sub {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.attendees-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.attendee-item-name {
    font-weight: 500;
}

.attendee-item-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.payment-total {
    font-weight: 700;
    font-size: 1.125rem;
    border-top: 2px solid var(--border-color);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.payment-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.discount-amount {
    color: var(--color-success);
}

.paid-amount {
    color: var(--color-success);
    font-weight: 600;
}

.balance-amount {
    color: var(--color-error);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-buttons .btn {
    flex: 1;
    min-width: 150px;
}

/* ============================================
   Landing Page Styles
   ============================================ */
.landing-hero {
    text-align: center;
    padding: 3rem 1rem;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.landing-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.portal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.portal-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.portal-card-icon.registration {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.portal-card-icon.family {
    background: var(--color-success-light);
    color: var(--color-success);
}

.portal-card-icon.organizer {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.portal-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portal-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.portal-card .btn {
    width: 100%;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 575.98px) {
    .attendee-name-row {
        grid-template-columns: 1fr;
    }
    
    .option-buttons {
        flex-direction: column;
    }
    
    .option-btn {
        min-width: auto;
    }
    
    .landing-title {
        font-size: 1.75rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    .portal-cards {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   Portal Header Styles
   ============================================ */
.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.portal-header-left {
    display: flex;
    align-items: center;
}

.portal-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.portal-brand-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.portal-church-name {
    font-weight: 600;
    font-size: 1.125rem;
}

.portal-user-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.portal-badge {
    padding: 0.25rem 0.75rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .portal-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .portal-user-name {
        display: none;
    }
    
    .portal-church-name {
        font-size: 1rem;
    }
}

/* ============================================
   Registration Header (Church Name Only)
   ============================================ */
.registration-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.registration-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.registration-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
}

.registration-brand-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.registration-church-name {
    font-weight: 600;
    font-size: 1.125rem;
    transition: color var(--transition-normal);
}

@media (max-width: 575.98px) {
    .registration-church-name {
        font-size: 1rem;
    }
}

/* ============================================
   Button - Link (Inline / In-text actions)
   ============================================ */
.btn-link {
    padding: 0;                 /* no “button” padding */
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: inherit;         /* match surrounding text */
    line-height: inherit;
    font-weight: 500;
    text-decoration: none;      /* underline on hover/focus */
    white-space: normal;        /* allow wrap in paragraphs */
    border-radius: var(--radius-sm);
}

.btn-link:hover:not(:disabled),
.btn-link:focus-visible:not(:disabled) {
    color: var(--color-primary-hover);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.btn-link:focus-visible:not(:disabled) {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn-link:active:not(:disabled) {
    opacity: 0.85;
}

.btn-link:disabled,
.btn-link[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-link[aria-disabled="true"] {
    pointer-events: none; /* useful for <a> */
}

/* Optional: make inline icons size nicely with text */
.btn-link svg {
    width: 1em;
    height: 1em;
}

/* ============================================
   Payment Method Selection
   ============================================ */
.payment-method-options {
    display: flex;
    gap: 1rem;
}

.payment-method-option {
    flex: 1;
    cursor: pointer;
}

.payment-method-option input {
    display: none;
}

.payment-method-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.payment-method-option input:checked + .payment-method-content {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.payment-method-option:hover .payment-method-content {
    border-color: var(--color-primary);
}

/* PayPal Button */
.btn-paypal {
    background: #0070ba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-paypal:hover {
    background: #005ea6;
    color: white;
}

@media (max-width: 575.98px) {
    .payment-method-options {
        flex-direction: column;
    }
}

/* ============================================
   Remember Me Checkbox (Login)
   ============================================ */
.form-check-sm {
    margin-bottom: 0;
}

.form-check-sm .form-check-input {
    width: 1rem;
    height: 1rem;
}

.form-check-sm .form-check-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Booking options when sold out.
   ============================================ */

/* Booking Option Availability Styles */
.option-btn.sold-out {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
}

.option-btn.sold-out:hover {
    transform: none;
    border-color: var(--color-border);
}

.option-btn.low-stock {
    border-color: var(--color-warning);
}

.option-btn-status {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}

.sold-out-badge {
    background: var(--color-error-light, #FEE2E2);
    color: var(--color-error);
}

.low-stock-badge {
    background: var(--color-warning-light, #FEF3C7);
    color: var(--color-warning-dark, #92400E);
}

/* Options Legend Availability */
.option-legend-item.sold-out {
    opacity: 0.6;
}

.option-legend-item.sold-out .option-legend-name {
    text-decoration: line-through;
}

.option-legend-spots {
    font-size: 12px;
    margin-left: 8px;
}

/* Alert icons alignment */
.alert svg {
    flex-shrink: 0;
}

/* ============================================
   Waiting List Flag.
   ============================================ */

.status-icon.waitlist {
    color: #9C27B0;
}

.alert-banner.waitlist {
    background: #F3E5F5;
    border-left: 4px solid #9C27B0;
}

.alert-banner.waitlist .alert-banner-title {
    color: #6A1B9A;
}

.alert-banner.waitlist .alert-banner-message {
    color: #7B1FA2;
}

/* ============================================
   Family Portal - Page Headers
   ============================================ */

/* Hero Section (Home Page) */
.family-portal-hero {
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
}

.family-portal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.family-portal-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.family-portal-cards {
    max-width: 1000px;
}

/* Dashboard/Page Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.dashboard-header-right {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-title {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

/* Manage Page Header */
.manage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.manage-header-left {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.manage-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.manage-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Family Portal - Filter Tabs
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.filter-tab:hover {
    border-color: var(--color-primary);
}

.filter-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-left: auto;
}

.toggle-label input {
    cursor: pointer;
}

/* ============================================
   Family Portal - Registration Cards
   ============================================ */
.registrations-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.registration-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.registration-card:hover {
    box-shadow: var(--shadow-md);
}

.registration-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.registration-card-body {
    padding: 1.25rem;
}

.registration-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.registration-event-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.registration-church {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.registration-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.registration-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.registration-card-footer {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.registration-amount {
    font-weight: 600;
}

.registration-balance {
    color: var(--color-warning);
}

.registration-number {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.registration-number code {
    font-size: 1rem;
    color: var(--text-primary);
}

/* ============================================
   Family Portal - Status Badges & Icons
   ============================================ */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.pending,
.status-pending { 
    background: var(--color-warning-light); 
    color: var(--color-warning); 
}

.status-badge.approved,
.status-approved { 
    background: var(--color-info-light); 
    color: var(--color-info); 
}

.status-badge.paid,
.status-badge.confirmed,
.status-paid,
.status-confirmed { 
    background: var(--color-success-light); 
    color: var(--color-success); 
}

.status-badge.rejected,
.status-badge.cancelled,
.status-rejected,
.status-cancelled { 
    background: var(--color-error-light); 
    color: var(--color-error); 
}

/* Status Icon (Registration Detail) */
.status-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon.pending { background: var(--color-warning-light); color: var(--color-warning); }
.status-icon.approved { background: var(--color-info-light); color: var(--color-info); }
.status-icon.paid, 
.status-icon.confirmed { background: var(--color-success-light); color: var(--color-success); }
.status-icon.rejected, 
.status-icon.cancelled { background: var(--color-error-light); color: var(--color-error); }

.status-title {
    font-size: 1.25rem;
    margin: 0.25rem 0;
}

.status-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* ============================================
   Family Portal - Form Layouts
   ============================================ */
.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.form-check-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Required field indicator */
.form-label.required::after,
.required::after {
    content: " *";
    color: var(--color-error);
}

/* ============================================
   Family Portal - Member Cards
   ============================================ */
.member-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
}

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

.member-card.head-of-household {
    border-left: 3px solid var(--color-primary);
}

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

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
}

.member-details h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.member-details .member-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.member-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.member-actions {
    display: flex;
    gap: 0.5rem;
}

/* Icon Buttons */
.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

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

.btn-icon.btn-delete:hover {
    border-color: var(--color-error);
    color: var(--color-error);
}

/* ============================================
   Family Portal - Modal
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 600px;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.5rem;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* ============================================
   Family Portal - Tables
   ============================================ */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

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

.table-responsive {
    overflow-x: auto;
}

/* ============================================
   Family Portal - Info Rows (Detail Pages)
   ============================================ */
.info-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row svg {
    color: var(--text-tertiary);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
}

.info-value {
    font-weight: 500;
}

/* ============================================
   Family Portal - Attendee Items
   ============================================ */
.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

.attendee-option {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.attendee-price {
    font-weight: 500;
}

/* ============================================
   Family Portal - Payment Summary
   ============================================ */
.payment-summary {
    max-width: 320px;
    margin-left: auto;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.payment-total {
    font-weight: 600;
    font-size: 1.125rem;
}

.payment-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* ============================================
   Family Portal - Action Buttons
   ============================================ */
.action-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

.action-btn:last-child {
    margin-bottom: 0;
}

/* Error Button */
.btn-error {
    background: var(--color-error);
    color: white;
    border-color: var(--color-error);
}

.btn-error:hover:not(:disabled) {
    background: #dc2626;
    border-color: #dc2626;
}

/* ============================================
   Family Portal - Misc Components
   ============================================ */

/* Login Icon */
.login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--color-primary-light);
    border-radius: 50%;
}

/* Alert Error */
.alert-error {
    background: var(--color-error-light);
    border: 1px solid var(--color-error);
    color: var(--color-error);
    padding: 1rem;
    border-radius: var(--radius-md);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* Summary Card */
.summary-card {
    background: var(--bg-tertiary);
}

/* Contact Cell (Tables) */
.contact-cell {
    max-width: 200px;
}

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

.contact-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Family Portal - Utility Classes
   ============================================ */
.ml-auto { margin-left: auto; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 3rem; }
.p-0 { padding: 0; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.bg-light { background: var(--bg-tertiary); }
.rounded { border-radius: var(--radius-md); }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

/* ============================================
   Family Portal - Responsive Adjustments
   ============================================ */
@media (max-width: 767.98px) {
    /* Headers */
    .dashboard-header,
    .manage-header {
        flex-direction: column;
    }
    
    .manage-header-left {
        flex-direction: column;
        width: 100%;
    }
    
    /* Form Grid */
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Member Cards */
    .member-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .member-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    /* Tables */
    .table {
        min-width: 700px;
    }
}

@media (max-width: 575.98px) {
    .dashboard-header {
        flex-direction: column;
    }
    
    .registration-card-header {
        flex-direction: column;
    }
    
    .family-portal-title {
        font-size: 2rem;
    }
    
    .family-portal-subtitle {
        font-size: 1rem;
    }
}


/* ============================================
   Existing Registration Modal
   ============================================ */

.modal-footer-stack {
    flex-direction: column;
    align-items: stretch;
}

.modal-footer-stack .btn {
    width: 100%;
}

.existing-reg-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.existing-reg-details p {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.existing-reg-details p:last-child {
    border-bottom: none;
}

/* Early Bird Price Display */
.price-original {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 0.85em;
    margin-right: 0.5rem;
}

.price-earlybird {
    color: var(--color-success);
    font-weight: 600;
}

.option-btn-price-earlybird,
.option-legend-price-earlybird {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.option-legend-price-earlybird {
    justify-content: flex-end;
}

/* ============================================
   Coffee Shop Module - CSS Additions
   Add this to your site.css file
   ============================================ */

/* ============================================
   Coffee Shop - Container & Layout
   ============================================ */
.coffee-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 100px; /* Space for fixed cart */
}

.coffee-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    gap: 1rem;
}

/* ============================================
   Coffee Shop - Header
   ============================================ */
.coffee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.coffee-header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.coffee-header-logo img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.coffee-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.coffee-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

.coffee-status.open {
    background: var(--color-success-light);
    color: var(--color-success);
}

.coffee-status.closed {
    background: var(--color-error-light);
    color: var(--color-error);
}

/* ============================================
   Coffee Shop - Closed Message
   ============================================ */
.coffee-closed {
    text-align: center;
    padding: 3rem 1rem;
}

.coffee-closed svg {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.coffee-closed h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}



.schedule-grid {
    max-width: 300px;           /* or 100%, whatever fits your design */
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;      /* nice vertical alignment of text baselines */
    padding: 0.6rem 0;
    border-bottom: 1px solid #e5e5e5;   /* or var(--border-color) */
    gap: 1rem;                  /* prevents items from touching when days are very long */
}

.schedule-item strong {
    flex: 1;                    /* takes available space */
}

.schedule-item br {
    display: none;              /* hide the <br> */
}

.schedule-item::after {
    content: attr(data-time);   /* we'll add data-time in JS */
    white-space: nowrap;
    color: #555;
}

.schedule-item span {
    white-space: nowrap;        /* keeps time on one line */
    color: #555;                /* optional: slightly muted color for time */
    text-align: right;
}

.schedule-day {
    font-weight: 500;
}

.schedule-time {
    color: var(--text-secondary);
}

/* ============================================
   Coffee Shop - Categories
   ============================================ */
.coffee-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    margin-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.coffee-categories::-webkit-scrollbar {
    display: none;
}

.category-tabs-container {          /* ← rename to match your HTML */
  display: flex;
  overflow-x: auto;                 /* enables scrolling */
  overflow-y: hidden;
  scroll-behavior: smooth;          /* nice touch */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */

  /* Edge indicators */
  background: linear-gradient(
    to right,
    var(--bg-tertiary) 0%,
    var(--bg-tertiary) 2%,
    transparent 6%,
    transparent 94%,
    var(--bg-tertiary) 98%,
    var(--bg-tertiary) 100%
  );
  background-attachment: local, local, local, local; /* important for Safari */
  padding: 0.5rem 1rem;             /* give some breathing room */
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );                                /* harder fade — optional */
}

.category-tab {
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.category-tab:hover {
    background: var(--bg-hover);
}

.category-tab.active {
    background: var(--color-primary);
    color: white;
}

/* ============================================
   Coffee Shop - Menu Items
   ============================================ */
.coffee-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-category-section {
    margin-bottom: 1.5rem;
}

.menu-category-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.menu-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.menu-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.menu-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.menu-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.menu-item-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    /* -webkit-line-clamp: 2; */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-price {
    font-weight: 600;
    color: var(--color-primary);
}

.menu-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   Coffee Shop - Cart Summary (Fixed Bottom)
   ============================================ */
.coffee-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

#cartCount {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

#cartTotal {
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================
   Coffee Shop - Item Modal
   ============================================ */
.modal-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 90vh;
    margin: 0;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow-y: auto;
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
}

.option-group-required {
    font-size: 0.75rem;
    color: var(--color-error);
    font-weight: normal;
}

.option-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.option-item:hover {
    background: var(--bg-hover);
}

.option-item.selected {
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
}

.option-item input {
    margin-right: 0.75rem;
}

.option-name {
    flex: 1;
}

.option-price {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.quantity-selector button {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
}

#itemQuantity {
    font-size: 1.5rem;
    font-weight: 600;
    min-width: 2rem;
    text-align: center;
}

.item-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

#modalItemTotal {
    font-weight: 700;
}

/* ============================================
   Coffee Shop - Cart Modal
   ============================================ */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-options {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cart-item-price {
    font-weight: 600;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty button {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn-remove-item {
    color: var(--color-error);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

/* ============================================
   Coffee Shop - Tip Selection
   ============================================ */
.tip-section {
    margin-bottom: 1.5rem;
}

.tip-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tip-option {
    padding: 0.75rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tip-option:hover {
    border-color: var(--color-primary);
}

.tip-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.tip-option-percent {
    font-weight: 600;
}

.tip-option-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.custom-tip-input {
    margin-top: 0.5rem;
}

/* ============================================
   Coffee Shop - Order Summary
   ============================================ */
.order-summary {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.order-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-summary-row:last-child {
    margin-bottom: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 1.125rem;
}

/* ============================================
   Coffee Shop - Payment Section
   ============================================ */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--color-primary);
}

.payment-method.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}

.payment-method input[type="radio"] {
    margin-right: 1rem;
}

.payment-method-icon {
    width: 40px;
    height: 24px;
    margin-right: 0.75rem;
}

#stripeCardElement {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-input);
}

#paypalButtonContainer {
    min-height: 55px;
}

/* ============================================
   Coffee Shop - Checkout Steps
   ============================================ */
.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.coffee-user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.coffee-user-bar span {
    color: var(--text-secondary);
}

.coffee-user-bar .btn-link {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.verified-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-success-subtle, rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    color: var(--color-success, #10b981);
    font-size: 0.875rem;
}

.verified-user-info .btn-link {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* ============================================
   Coffee Shop - Order Confirmation
   ============================================ */
.order-confirmation {
    text-align: center;
    padding: 2rem 1rem;
}

.order-number-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1rem 0;
}

.order-status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin: 1rem 0;
}

.order-status-badge.paid {
    background: var(--color-info-light);
    color: var(--color-info);
}

.order-status-badge.preparing {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.order-status-badge.ready {
    background: var(--color-success-light);
    color: var(--color-success);
}

/* ============================================
   Coffee Shop - Responsive
   ============================================ */
@media (max-width: 480px) {
    .coffee-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .coffee-header-logo {
        width: 100%;
    }

    .menu-item {
        flex-direction: column;
    }

    .menu-item-image,
    .menu-item-placeholder {
        width: 100%;
        height: 150px;
    }

    .tip-options {
        grid-template-columns: repeat(2, 1fr);
    }
}