@font-face {
    font-family: 'B Nazanin';
    src: url('fonts/BNazanin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bs-font-sans-serif: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    --bs-body-font-family: var(--bs-font-sans-serif) !important;
    --primary-color: #a5271a;
    --primary-gradient: linear-gradient(135deg, #c93b2b 0%, #8b1e15 100%);
    --purple-vivid: #a5271a;
    --purple-deep: #661f20;
    --purple-light: #f87171;
    --purple-pastel: #fca5a5;
    --purple-gradient: linear-gradient(135deg, #ba2d20 0%, #7a1b14 100%);
    --glass-purple: rgba(165, 39, 26, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(165, 39, 26, 0.22);
    --glass-shadow: 0 12px 40px 0 rgba(102, 31, 32, 0.12);
    --accent-gradient: linear-gradient(135deg, #e05344 0%, #a5271a 100%);
    --success-gradient: linear-gradient(135deg, #34d399 0%, #059669 100%);
    --danger-gradient: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --text-primary: #1e1b18;
    --text-secondary: #475569;
    --card-radius: 28px;
}

* {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html, body {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(at 0% 0%, rgba(165, 39, 26, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    background-size: 100% 100%;
    min-height: 100vh;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em;
    overflow-x: hidden;
}

/* Ambient Modern Background System */
.app-bg-container, .liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

.bg-gradient-mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(165, 39, 26, 0.14), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(99, 102, 241, 0.18), transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(244, 63, 94, 0.13), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.14), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08), transparent 50%);
    opacity: 0.95;
}

.bg-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, rgba(99, 102, 241, 0.10) 1.5px, transparent 1.5px),
        linear-gradient(to right, rgba(226, 232, 240, 0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.35) 1px, transparent 1px);
    background-size: 28px 28px, 56px 56px, 56px 56px;
    mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 45%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 45%, transparent 100%);
    opacity: 0.7;
}

/* Aurora Glow Orbs */
.bg-glow-orb, .liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    opacity: 0.55;
    mix-blend-mode: multiply;
    pointer-events: none;
    will-change: transform, border-radius;
}

.bg-orb-1, .liquid-blob:nth-child(1) {
    width: 650px;
    height: 650px;
    top: -120px;
    right: -100px;
    background: linear-gradient(135deg, #a5271a 0%, #ff6b6b 50%, #f43f5e 100%);
    animation: orbMorph1 24s ease-in-out infinite alternate, orbFloat1 32s ease-in-out infinite alternate;
}

.bg-orb-2, .liquid-blob:nth-child(2) {
    width: 580px;
    height: 580px;
    top: 25%;
    left: -120px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #c084fc 100%);
    animation: orbMorph2 20s ease-in-out infinite alternate, orbFloat2 28s ease-in-out infinite alternate;
    opacity: 0.5;
}

.bg-orb-3, .liquid-blob:nth-child(3) {
    width: 520px;
    height: 520px;
    bottom: -100px;
    right: 20%;
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
    animation: orbMorph1 22s ease-in-out infinite alternate-reverse, orbFloat3 30s ease-in-out infinite alternate;
    opacity: 0.45;
}

.bg-orb-4 {
    width: 460px;
    height: 460px;
    bottom: 15%;
    left: 25%;
    background: linear-gradient(135deg, #f59e0b 0%, #f43f5e 50%, #ec4899 100%);
    animation: orbMorph2 26s ease-in-out infinite alternate, orbFloat4 34s ease-in-out infinite alternate;
    opacity: 0.4;
}

.bg-orb-5 {
    width: 380px;
    height: 380px;
    top: 40%;
    right: 35%;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    animation: orbMorph1 18s ease-in-out infinite alternate, orbFloat2 24s ease-in-out infinite alternate-reverse;
    opacity: 0.35;
}

/* Floating micro-particles */
.bg-floating-particle {
    position: absolute;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 12px 2px rgba(255, 255, 255, 0.8), 0 0 24px 6px rgba(99, 102, 241, 0.4);
    opacity: 0.7;
    animation: particleFloat 14s ease-in-out infinite alternate;
}

.bg-floating-particle.p-1 {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 25%;
    animation-duration: 12s;
}

.bg-floating-particle.p-2 {
    width: 6px;
    height: 6px;
    top: 65%;
    right: 20%;
    animation-duration: 16s;
    animation-delay: -3s;
}

.bg-floating-particle.p-3 {
    width: 10px;
    height: 10px;
    bottom: 20%;
    left: 15%;
    animation-duration: 18s;
    animation-delay: -7s;
}

.bg-floating-particle.p-4 {
    width: 7px;
    height: 7px;
    top: 30%;
    right: 35%;
    animation-duration: 15s;
    animation-delay: -5s;
}

@keyframes orbMorph1 {
    0% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
    33% { border-radius: 70% 30% 46% 54% / 30% 60% 40% 70%; }
    66% { border-radius: 30% 70% 60% 40% / 60% 30% 70% 40%; }
    100% { border-radius: 58% 42% 38% 62% / 44% 56% 44% 56%; }
}

@keyframes orbMorph2 {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    33% { border-radius: 35% 65% 55% 45% / 45% 55% 45% 55%; }
    66% { border-radius: 70% 30% 40% 60% / 30% 70% 30% 70%; }
    100% { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
}

@keyframes orbFloat1 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(-60px, 40px, 0) rotate(90deg) scale(1.08); }
    100% { transform: translate3d(40px, -30px, 0) rotate(180deg) scale(0.95); }
}

@keyframes orbFloat2 {
    0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    50% { transform: translate3d(50px, -50px, 0) rotate(-90deg) scale(1.05); }
    100% { transform: translate3d(-30px, 30px, 0) rotate(-180deg) scale(0.92); }
}

@keyframes orbFloat3 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-40px, -40px, 0) scale(1.1); }
    100% { transform: translate3d(50px, 30px, 0) scale(0.96); }
}

@keyframes orbFloat4 {
    0% { transform: translate3d(0, 0, 0) scale(0.95); }
    50% { transform: translate3d(40px, -35px, 0) scale(1.06); }
    100% { transform: translate3d(-35px, 25px, 0) scale(1); }
}

@keyframes particleFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate3d(15px, -25px, 0) scale(1.3); opacity: 0.85; }
    100% { transform: translate3d(-15px, 15px, 0) scale(0.9); opacity: 0.5; }
}

/* Unauth / Login special ambient styling */
.unauth-page {
    position: relative;
    background: radial-gradient(ellipse at top, #ffffff 0%, #f1f5f9 60%, #e2e8f0 100%) !important;
}

.unauth-mesh {
    background: 
        radial-gradient(circle at 50% 10%, rgba(165, 39, 26, 0.16), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.15), transparent 45%),
        radial-gradient(circle at 50% 60%, rgba(244, 63, 94, 0.1), transparent 55%);
}

.unauth-orb-1 {
    width: 700px;
    height: 700px;
    top: -150px;
    right: -100px;
    opacity: 0.65;
}

.unauth-orb-2 {
    width: 650px;
    height: 650px;
    bottom: -150px;
    left: -100px;
    opacity: 0.6;
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border-radius: var(--card-radius);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.05),
        0 20px 45px -10px rgba(99, 102, 241, 0.08),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(165, 39, 26, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-liquid {
    background: var(--purple-gradient);
    background-size: 200% 200%;
    animation: gradientFlow 5s ease infinite;
    color: white;
    border: none;
    border-radius: 18px;
    padding: 14px 32px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(165, 39, 26, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-liquid:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(165, 39, 26, 0.35);
    color: white;
}

.btn-liquid:active {
    transform: scale(0.98);
}

.btn-liquid-outline {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(165, 39, 26, 0.25);
    color: var(--purple-deep);
    border-radius: 18px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.btn-liquid-outline:hover:not(:disabled) {
    background: rgba(165, 39, 26, 0.08);
    border-color: var(--purple-vivid);
    color: var(--purple-vivid);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 22px rgba(165, 39, 26, 0.18);
}

.btn-liquid-outline:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-liquid-danger-outline {
    background: linear-gradient(145deg, rgba(239, 68, 68, 0.06) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    border-radius: 18px;
    padding: 14px 32px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.08);
    cursor: pointer;
}

.btn-liquid-danger-outline:hover:not(:disabled) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #dc2626;
    color: #ffffff !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-liquid-danger-outline:hover:not(:disabled) i {
    color: #ffffff !important;
}

.btn-liquid-danger-outline:active:not(:disabled) {
    transform: scale(0.98);
}

.badge-sent-yektapay {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    color: #065f46;
    border-radius: 18px;
    padding: 14px 28px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    user-select: none;
}

.input-liquid {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(165, 39, 26, 0.18);
    border-radius: 16px;
    padding: 14px 20px;
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.input-liquid:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--purple-vivid);
    box-shadow: 0 0 0 4px rgba(165, 39, 26, 0.15);
    outline: none;
}

.text-gradient {
    background: var(--purple-gradient);
    background-size: 200% auto;
    animation: textGradientFlow 4s linear infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--purple-deep); 
    font-weight: 900;
    display: inline-block; 
    text-shadow: 0 0 1px rgba(102, 31, 32, 0.2); /* Subtle outline to help against white bg */
}

@keyframes textGradientFlow {
    to { background-position: 200% center; }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.badge-liquid {
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.badge-primary { background: rgba(165, 39, 26, 0.12); color: var(--purple-deep); border: 1px solid rgba(165, 39, 26, 0.25); }
.badge-success { background: rgba(0, 168, 107, 0.2); color: #006400; border: 1px solid rgba(0, 168, 107, 0.3); }
.badge-danger { background: rgba(220, 20, 60, 0.2); color: #8b0000; border: 1px solid rgba(220, 20, 60, 0.3); }

.bg-purple-gradient {
    background: var(--purple-gradient);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 3px solid transparent;
    background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

a,
.btn-link {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 12px;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-primary);
    border-radius: 16px;
    padding: 10px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    transform: translateY(-2px);
    color: var(--text-primary);
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

.outline-none {
    outline: none;
}

.bg-transparent {
    background-color: transparent !important;
}

.btn-glass:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.placeholder-muted::placeholder {
    color: rgba(0, 0, 0, 0.6) !important;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* ==========================================================================
   Modern Dashboard & Interactive Animations (Ultra Glass 2.0)
   ========================================================================== */

/* Animated Pulse Indicators */
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot-success {
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseSuccess 2s infinite;
}

.pulse-dot-primary {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 0 rgba(165, 39, 26, 0.7);
    animation: pulsePrimary 2s infinite;
}

@keyframes pulseSuccess {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulsePrimary {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(165, 39, 26, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(165, 39, 26, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(165, 39, 26, 0); }
}

/* Hero Dashboard Banner */
.dashboard-hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 245, 245, 0.9) 100%);
    border: 1px solid rgba(165, 39, 26, 0.2);
    box-shadow: 0 20px 50px -10px rgba(165, 39, 26, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    border-radius: var(--card-radius);
}

.dashboard-hero-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 39, 26, 0.15) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(20px);
}

/* Stat & KPI Cards */
.kpi-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 1.5rem 1.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 15px 35px -10px rgba(165, 39, 26, 0.05);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.kpi-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -5px rgba(165, 39, 26, 0.15);
    border-color: rgba(165, 39, 26, 0.3);
}

.kpi-card .kpi-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.4s ease;
}

.kpi-card:hover .kpi-icon-box {
    transform: scale(1.12) rotate(4deg);
}

.kpi-card .kpi-sparkline {
    height: 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-top: 1rem;
}

.kpi-card .kpi-sparkline-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Quick Action Matrix Tile */
.quick-hub-item {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.25rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 6px 20px -3px rgba(0, 0, 0, 0.04);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.quick-hub-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(165, 39, 26, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-hub-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px -5px rgba(165, 39, 26, 0.15);
    border-color: rgba(165, 39, 26, 0.35);
    color: var(--primary-color);
}

.quick-hub-item:hover::before {
    opacity: 1;
}

.quick-hub-item .hub-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    transition: transform 0.35s ease;
}

.quick-hub-item:hover .hub-icon-wrap {
    transform: scale(1.15);
}

/* Circular Gauge Visual */
.gauge-ring-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto;
}

.gauge-ring-svg {
    transform: rotate(-90deg);
}

.gauge-ring-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.06);
    stroke-width: 12;
}

.gauge-ring-fill {
    fill: none;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gauge-ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Activity Item Hover Effect */
.activity-item-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.activity-item-card:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(-4px);
    box-shadow: 0 8px 25px -4px rgba(165, 39, 26, 0.1);
    border-color: rgba(165, 39, 26, 0.25);
}

/* Shimmer Loading Skeleton */
.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(240, 240, 240, 0.6) 25%, rgba(250, 250, 250, 0.9) 50%, rgba(240, 240, 240, 0.6) 75%);
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s infinite;
    border-radius: 12px;
}

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

/* ==========================================================================
   Modern Dashboard Charts & Visual Analytics
   ========================================================================== */

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
}

.chart-container-responsive {
    width: 100%;
    position: relative;
}

/* SVG Chart Elements & Hover States */
.chart-bar {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: bottom;
    cursor: pointer;
}

.chart-bar:hover {
    filter: brightness(1.15) drop-shadow(0 6px 12px rgba(165, 39, 26, 0.25));
    opacity: 0.95;
}

.chart-area-path {
    transition: all 0.5s ease;
}

.chart-point {
    transition: all 0.25s ease;
    cursor: pointer;
}

.chart-point:hover {
    r: 6 !important;
    filter: drop-shadow(0 0 6px rgba(165, 39, 26, 0.6));
}

.chart-grid-line {
    stroke: rgba(0, 0, 0, 0.05);
    stroke-dasharray: 4 4;
    stroke-width: 1;
}

.chart-axis-label {
    fill: #6c757d;
    font-size: 11px;
    font-family: inherit;
    text-anchor: middle;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Chart Tooltip Floating */
.chart-tooltip-badge {
    background: rgba(30, 20, 20, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    box-shadow: 0 10px 25px -3px rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Donut Slice */
.donut-slice {
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform-origin: center;
}

.donut-slice:hover {
    stroke-width: 16 !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

/* ==========================================================================
   Dashboard Hero Logo Showcase & Effects
   ========================================================================== */

.hero-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-glow {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 39, 26, 0.25) 0%, rgba(186, 45, 32, 0.08) 50%, transparent 70%);
    animation: heroGlowPulse 4s ease-in-out infinite alternate;
    filter: blur(16px);
    z-index: 0;
    pointer-events: none;
}

.hero-logo-ring {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1.5px dashed rgba(165, 39, 26, 0.25);
    animation: heroRingRotate 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.hero-logo-badge {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 240, 240, 0.88) 100%);
    border: 2px solid rgba(165, 39, 26, 0.18);
    box-shadow: 0 15px 35px -5px rgba(165, 39, 26, 0.18), 0 0 20px rgba(255, 255, 255, 0.9), inset 0 2px 4px rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo-badge:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 20px 45px -5px rgba(165, 39, 26, 0.28), 0 0 30px rgba(165, 39, 26, 0.15), inset 0 2px 4px rgba(255, 255, 255, 1);
    border-color: rgba(165, 39, 26, 0.35);
}

.hero-logo-img {
    max-width: 105px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(165, 39, 26, 0.2));
    transition: all 0.35s ease;
}

.hero-logo-badge:hover .hero-logo-img {
    filter: drop-shadow(0 6px 14px rgba(165, 39, 26, 0.35)) brightness(1.05);
}

@keyframes heroGlowPulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.15); opacity: 1; }
}

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

/* ==========================================================================
   Modern Notification / Toast System
   ========================================================================== */

.toast-portal-container {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 440px;
    width: calc(100vw - 48px);
}

.glass-toast-card {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 0 25px rgba(255, 255, 255, 0.5);
    overflow: hidden;
    animation: toastSlideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.glass-toast-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.2);
}

.glass-toast-header {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
}

.glass-toast-header.toast-type-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
}

.glass-toast-header.toast-type-error {
    background: linear-gradient(135deg, #dc2626 0%, #f87171 100%);
    color: #ffffff;
}

.glass-toast-header.toast-type-info {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #ffffff;
}

.glass-toast-header.toast-type-warning {
    background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
    color: #ffffff;
}

.glass-toast-body {
    padding: 16px 18px;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.6;
}

.toast-progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
}

.toast-progress-bar-fill {
    height: 100%;
    animation: toastProgress linear forwards;
}

.toast-progress-bar-fill.toast-type-success {
    background: linear-gradient(90deg, #10b981, #059669);
}

.toast-progress-bar-fill.toast-type-error {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.toast-progress-bar-fill.toast-type-info {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.toast-progress-bar-fill.toast-type-warning {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}

@keyframes toastSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastProgress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}