:root {
    --bg-dark: #090a0f;
    --panel-bg: rgba(255, 255, 255, 0.02);
    --panel-border: rgba(255, 255, 255, 0.06);
    --panel-hover: rgba(255, 255, 255, 0.05);
    
    /* Ombre Accents */
    --cyan-ombre: linear-gradient(135deg, #00f0ff 0%, #0066ff 100%);
    --pink-ombre: linear-gradient(135deg, #ff007f 0%, #ff5e00 100%);
    --purple-ombre: linear-gradient(135deg, #a855f7 0%, #ff007f 100%);
    
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.25);
    --pink: #ff007f;
    --pink-glow: rgba(255, 0, 127, 0.25);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.25);
    
    --text-main: #ffffff;
    --text-muted: #8b95a5;
    
    --radius-lg: 16px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.04) 0%, transparent 50%);
}

#app {
    width: 100%;
    max-width: 500px; /* Mobile-first, constrained for desktop */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Typography & Headers --- */
.global-header {
    text-align: center;
    padding: 40px 20px 20px;
}

.fundora-logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
    background: var(--cyan-ombre);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.fundora-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cyan);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fundora-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.tenant-branding {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tenant-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

/* --- Layout Containers --- */
.container {
    padding: 0 24px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.5s ease forwards;
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 4px;
    text-align: center;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* --- Purpose Selection Cards --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.purpose-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.purpose-card i {
    font-size: 28px;
    color: var(--text-muted);
    transition: var(--transition);
}

.purpose-card span {
    font-size: 0.875rem;
    font-weight: 500;
}

.purpose-card:hover {
    background: var(--panel-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.purpose-card.selected {
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                var(--cyan-ombre) border-box;
    box-shadow: 0 0 20px var(--cyan-glow);
}

.purpose-card.selected i {
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* --- Forms & Inputs --- */
.progressive-form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progressive-form.active {
    max-height: 400px;
    opacity: 1;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--cyan-ombre);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* --- Payment Summary --- */
.summary-panel {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.summary-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--panel-border);
    padding-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.summary-row.total {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: 600;
    background: var(--cyan-ombre);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Payment Methods --- */
.pm-card {
    width: 100%;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
}

.pm-card:hover {
    background: var(--panel-hover);
    transform: translateY(-2px);
}

.pm-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.pm-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-main);
}

.pm-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Specific Card Styles with Ombre Elements */
.pm-bank { border-left: 3px solid var(--cyan); }
.pm-bank .pm-icon { background: var(--cyan-ombre); box-shadow: 0 0 15px var(--cyan-glow); }
.pm-bank:hover { box-shadow: 0 4px 20px var(--cyan-glow); border-color: rgba(0, 240, 255, 0.3); }

.pm-card-pay { border-left: 3px solid var(--pink); }
.pm-card-pay .pm-icon { background: var(--pink-ombre); box-shadow: 0 0 15px var(--pink-glow); }
.pm-card-pay:hover { box-shadow: 0 4px 20px var(--pink-glow); border-color: rgba(255, 0, 127, 0.3); }

.pm-finance { border-left: 3px solid var(--purple); }
.pm-finance .pm-icon { background: var(--purple-ombre); box-shadow: 0 0 15px var(--purple-glow); }
.pm-finance:hover { box-shadow: 0 4px 20px var(--purple-glow); border-color: rgba(168, 85, 247, 0.3); }

.other-methods {
    margin-top: 24px;
    text-align: center;
}

.other-methods h5 {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.other-methods-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pm-mini {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 10px 20px;
    color: var(--text-main);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}
.pm-mini:hover { 
    background: rgba(255, 255, 255, 0.1); 
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Success Screen --- */
.success-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
}

.success-glow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--cyan-ombre);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 30px var(--cyan-glow);
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.success-glow i {
    font-size: 40px;
    color: #fff;
}

/* --- Admin Dashboard Overrides --- */
.dashboard-layout {
    max-width: 1200px !important;
    margin: 0 auto;
    padding: 24px;
}

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

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.stat-card h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px;}
.stat-card .value { 
    font-size: 1.8rem; 
    font-weight: 600; 
    background: var(--cyan-ombre);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.activity-table {
    width: 100%;
    border-collapse: collapse;
}

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

.activity-table th {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 24px;
    margin-top: auto;
}
.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.footer .powered-by {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* --- Loading --- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--panel-border);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }
