/**
 * ═══════════════════════════════════════════════════════════════════════════
 * EVANS SCHOOL - GLASSMORPHISM UI DESIGN SYSTEM
 * ═══════════════════════════════════════════════════════════════════════════
 * 
 * Premium glassmorphism theme for school payment portal
 * Featuring: Glass effects, smooth animations, responsive design
 * 
 * Color Palette: Soft whites, muted blues, gentle purples, warm grays
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* ============================================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================================ */
:root {
    /* Primary Colors */
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    
    /* Secondary Colors */
    --color-secondary: #60a5fa;
    --color-accent: #a78bfa;
    --color-accent-light: #c4b5fd;
    
    /* Semantic Colors */
    --color-success: #34d399;
    --color-success-light: #6ee7b7;
    --color-success-dark: #10b981;
    --color-warning: #fbbf24;
    --color-warning-light: #fcd34d;
    --color-error: #f87171;
    --color-error-light: #fca5a5;
    --color-error-dark: #ef4444;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-bg-primary: #f8fafc;
    --color-bg-secondary: #f1f5f9;
    --color-text-primary: #1e293b;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.6);
    --color-border-subtle: rgba(148, 163, 184, 0.2);
    
    /* Glass Effect Colors */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-bg-dark: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --glass-shadow-hover: rgba(0, 0, 0, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-secondary: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%);
    --gradient-success: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
    --gradient-error: linear-gradient(135deg, #f87171 0%, #fca5a5 100%);
    --gradient-warning: linear-gradient(135deg, #fbbf24 0%, #fcd34d 100%);
    --gradient-background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 25%, #fdf4ff 50%, #fce7f3 75%, #ffe4e6 100%);
    --gradient-background-animated: linear-gradient(45deg, #e0e7ff, #f5f3ff, #fdf4ff, #fce7f3, #e0e7ff);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1);
    --shadow-glow-primary: 0 8px 32px rgba(99, 102, 241, 0.3);
    --shadow-glow-success: 0 8px 32px rgba(52, 211, 153, 0.3);
    --shadow-glow-error: 0 8px 32px rgba(248, 113, 113, 0.3);
    
    /* Glass Blur */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --blur-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    
    /* Z-Index Layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-overlay: 400;
    --z-toast: 500;
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text-primary);
    background: var(--gradient-background);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-background-animated);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Decorative Background Elements */
body::after {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.bg-decoration {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.bg-decoration-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 10s ease-in-out infinite reverse;
}

.bg-decoration-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ============================================================
   GLASS CARD COMPONENTS
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.glass-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.glass-card-header {
    background: var(--gradient-primary);
    padding: var(--space-xl) var(--space-xl);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.glass-card-header h1,
.glass-card-header h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
}

.glass-card-header p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.glass-card-body {
    padding: var(--space-xl);
}

/* Light Glass Variant */
.glass-card-light {
    background: var(--glass-bg-light);
}

/* Success Glass Card */
.glass-card-success .glass-card-header {
    background: var(--gradient-success);
}

/* Error Glass Card */
.glass-card-error .glass-card-header {
    background: var(--gradient-error);
}

/* ============================================================
   SCHOOL HEADER / BRANDING
   ============================================================ */
.school-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    animation: fadeInDown 0.6s ease-out;
}

.school-logo {
    width: 90px;
    height: 90px;
    background: var(--glass-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--color-white);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.school-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-primary);
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.school-name {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.school-tagline {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

/* ============================================================
   FORM COMPONENTS
   ============================================================ */
.form-group {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.4s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.15s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.25s; }
.form-group:nth-child(5) { animation-delay: 0.3s; }
.form-group:nth-child(6) { animation-delay: 0.35s; }
.form-group:nth-child(7) { animation-delay: 0.4s; }
.form-group:nth-child(8) { animation-delay: 0.45s; }
.form-group:nth-child(9) { animation-delay: 0.5s; }

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: var(--color-error);
    margin-left: 2px;
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--glass-bg-light);
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input:hover:not(:focus) {
    border-color: var(--color-primary-light);
}

/* Amount Input Special */
.amount-input-wrapper {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text-secondary);
}

.amount-input {
    padding-left: 44px !important;
    font-size: var(--font-size-2xl) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Quick Amount Buttons */
.quick-amounts {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.quick-amount-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-sm));
    border: 2px solid var(--color-border-subtle);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.quick-amount-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

/* Primary Button */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md), var(--shadow-glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 12px 40px rgba(99, 102, 241, 0.4);
}

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

/* Secondary Button */
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-sm));
    color: var(--color-text-primary);
    border: 2px solid var(--color-border-subtle);
}

.btn-secondary:hover {
    background: var(--glass-bg-light);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

/* Success Button */
.btn-success {
    background: var(--gradient-success);
    color: var(--color-white);
    box-shadow: var(--shadow-md), var(--shadow-glow-success);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 12px 40px rgba(52, 211, 153, 0.4);
}

/* Full Width Button */
.btn-block {
    width: 100%;
}

/* Button Sizes */
.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

/* Loading State */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .spinner {
    display: block;
    position: absolute;
}

.spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================================
   BANNERS / ALERTS
   ============================================================ */
.banner {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
    animation: slideDown 0.4s ease-out;
}

.banner-test {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0.25) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #92400e;
}

.banner-error {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15) 0%, rgba(248, 113, 113, 0.25) 100%);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #991b1b;
}

.banner-success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.25) 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #065f46;
}

.banner strong {
    display: block;
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-xs);
}

.banner small {
    font-size: var(--font-size-xs);
    opacity: 0.9;
}

/* ============================================================
   RECEIPT / TRANSACTION DETAILS
   ============================================================ */
.receipt-container {
    background: var(--glass-bg-light);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.receipt-header {
    text-align: center;
    padding-bottom: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-bottom: 2px dashed var(--color-border-subtle);
}

.receipt-header .school-logo {
    width: 70px;
    height: 70px;
    margin-bottom: var(--space-md);
}

.receipt-school-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.receipt-school-address {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.receipt-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: var(--space-lg) 0 var(--space-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px dashed var(--color-border-subtle);
}

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

.receipt-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.receipt-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.receipt-value.highlight {
    color: var(--color-success-dark);
    font-size: var(--font-size-lg);
}

.receipt-footer {
    text-align: center;
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
    border-top: 2px dashed var(--color-border-subtle);
}

.receipt-footer p {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

/* ============================================================
   SUCCESS ANIMATIONS
   ============================================================ */
.success-icon-container {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-lg);
    animation: scaleIn 0.5s ease-out 0.2s both;
}

.checkmark {
    width: 50px;
    height: 50px;
    stroke: var(--color-success-dark);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.checkmark-path {
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
    animation: checkmarkDraw 0.6s ease-out 0.5s forwards;
}

@keyframes checkmarkDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Error Icon */
.error-icon-container {
    width: 100px;
    height: 100px;
    background: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-lg);
    animation: shake 0.6s ease-out;
}

.error-icon {
    font-size: 48px;
    color: var(--color-error);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ============================================================
   CONFETTI ANIMATION
   ============================================================ */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: var(--z-overlay);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================================
   SECURITY FOOTER
   ============================================================ */
.security-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: var(--glass-bg);
    border-top: 1px solid var(--color-border-subtle);
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.security-item svg {
    width: 18px;
    height: 18px;
    fill: var(--color-success);
}

/* Powered By */
.powered-by {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.powered-by a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* ============================================================
   ACTION BUTTONS CONTAINER
   ============================================================ */
.action-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.action-buttons .btn {
    flex: 1;
}

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
}

/* ============================================================
   LOADING / PROCESSING OVERLAY
   ============================================================ */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(var(--blur-md));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

.processing-content {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.processing-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--color-border-subtle);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-lg);
    animation: spin 1s linear infinite;
}

.processing-text {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.processing-subtext {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.processing-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ============================================================
   HELP SECTION
   ============================================================ */
.help-section {
    background: var(--glass-bg);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.help-title {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.help-list {
    list-style: none;
    padding: 0;
}

.help-list li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-sm) 0;
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.help-list li::before {
    content: '•';
    color: var(--color-text-muted);
    font-weight: bold;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    body {
        padding: var(--space-md);
    }
    
    .school-name {
        font-size: var(--font-size-2xl);
    }
    
    .glass-card-body {
        padding: var(--space-lg);
    }
    
    .glass-card-header {
        padding: var(--space-lg);
    }
    
    .receipt-container {
        padding: var(--space-lg);
    }
    
    .security-footer {
        gap: var(--space-md);
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    body {
        padding: var(--space-sm);
    }
    
    .school-logo {
        width: 70px;
        height: 70px;
    }
    
    .school-name {
        font-size: var(--font-size-xl);
    }
    
    .glass-card-body {
        padding: var(--space-md);
    }
    
    .quick-amounts {
        justify-content: center;
    }
    
    .amount-input {
        font-size: var(--font-size-xl) !important;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    /* Reset for print */
    *, *::before, *::after {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
        border-color: #ccc !important;
    }
    
    body {
        padding: 0;
        min-height: auto;
        display: block;
    }
    
    body::before,
    body::after {
        display: none !important;
    }
    
    .bg-decoration,
    .bg-decoration-1,
    .bg-decoration-2 {
        display: none !important;
    }
    
    /* Hide non-printable elements */
    .banner,
    .btn,
    .action-buttons,
    .powered-by,
    .security-footer,
    .confetti-container,
    .processing-overlay,
    .no-print {
        display: none !important;
    }
    
    /* Print-specific styles */
    .glass-card {
        width: 100%;
        max-width: none;
        border-radius: 0;
        border: 1px solid #ccc;
        backdrop-filter: none;
    }
    
    .glass-card-header {
        background: white !important;
        color: black !important;
        padding: 20px;
        border-bottom: 2px solid #333;
    }
    
    .glass-card-body {
        padding: 20px;
    }
    
    .receipt-container {
        background: white !important;
        border: 1px solid #ccc;
        padding: 20px;
    }
    
    .receipt-row {
        border-bottom: 1px dashed #ccc;
    }
    
    .school-logo {
        border: 2px solid #333;
    }
    
    /* Ensure page break */
    .page-break {
        page-break-before: always;
    }
    
    /* Print header/footer */
    @page {
        margin: 1cm;
        size: A4;
    }
    
    /* Preserve links */
    a[href]::after {
        content: none;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.gap-4 { gap: var(--space-lg); }

.w-full { width: 100%; }
.max-w-md { max-width: 500px; }
.max-w-lg { max-width: 600px; }
