/**
 * CUEMS Modern Components CSS
 * 2025 Design System - Glassmorphism, Animations, Modern UI
 * WCAG 2.1 AA Compliant
 */

/* ==================== MODERN FORMS ==================== */

/* Floating Label Input Group */
.form-group-modern {
    position: relative;
    margin-bottom: 24px;
}

.input-modern {
    width: 100%;
    padding: 16px 16px 8px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    min-height: 44px;
}

.input-modern:focus {
    border-color: #CFB87C;
    outline: none;
    box-shadow:
        0 0 0 4px rgba(207, 184, 124, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.label-modern {
    position: absolute;
    left: 16px;
    top: 16px;
    color: #718096;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.input-modern:focus + .label-modern,
.input-modern:not(:placeholder-shown) + .label-modern {
    top: -8px;
    left: 12px;
    font-size: 12px;
    color: #8B6914;
    font-weight: 600;
}

/* Modern Checkbox */
.checkbox-modern {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.checkbox-modern:checked {
    background: linear-gradient(135deg, #CFB87C, #B8A369);
    border-color: #8B6914;
}

.checkbox-modern:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: #000;
    font-size: 16px;
    font-weight: bold;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==================== MODERN TABS ==================== */

.tab-nav-modern {
    /* Fallback for browsers without backdrop-filter */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 8px;
    display: inline-flex;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@supports (backdrop-filter: blur(12px)) {
    .tab-nav-modern {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.tab-button-modern {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 44px;
    cursor: pointer;
}

.tab-button-modern::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #CFB87C, #8B6914);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.tab-button-modern:hover {
    background: rgba(207, 184, 124, 0.1);
    color: #1a1a1a;
}

.tab-button-modern:hover::before {
    width: 80%;
}

.tab-button-modern.active {
    background: linear-gradient(135deg, rgba(207, 184, 124, 0.15), rgba(207, 184, 124, 0.05));
    color: #8B6914;
    box-shadow: 0 2px 8px rgba(207, 184, 124, 0.2);
}

.tab-button-modern.active::before {
    width: 100%;
}

.tab-button-modern:focus-visible {
    outline: 2px solid #8B6914;
    outline-offset: 2px;
}

/* ==================== MODERN KPI CARDS ==================== */

.kpi-card-modern {
    /* Fallback for browsers without backdrop-filter */
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(207, 184, 124, 0.2);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Create stacking context */
}

@supports (backdrop-filter: blur(12px)) {
    .kpi-card-modern {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

.kpi-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(207, 184, 124, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.kpi-card-modern:hover::before {
    opacity: 1;
}

.kpi-card-modern:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: rgba(207, 184, 124, 0.4);
}

.kpi-icon-modern {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(207, 184, 124, 0.2), rgba(207, 184, 124, 0.1));
    box-shadow: 0 4px 12px rgba(207, 184, 124, 0.15);
}

.kpi-value-modern {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.kpi-label-modern {
    font-size: 0.875rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ==================== MODERN BADGES ==================== */

.badge-modern {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    /* Fallback for browsers without backdrop-filter */
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(207, 184, 124, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@supports (backdrop-filter: blur(8px)) {
    .badge-modern {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

.badge-modern.gold {
    background: linear-gradient(135deg, rgba(207, 184, 124, 0.2), rgba(207, 184, 124, 0.1));
    color: #8B6914;
    border-color: rgba(207, 184, 124, 0.3);
}

.badge-modern.success {
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.15), rgba(21, 128, 61, 0.1));
    color: #15803d;
    border-color: rgba(21, 128, 61, 0.2);
}

.badge-modern.danger {
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.15), rgba(153, 27, 27, 0.1));
    color: #991b1b;
    border-color: rgba(153, 27, 27, 0.2);
}

/* ==================== MODERN MODALS ==================== */

.modal-backdrop-modern {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid rgba(207, 184, 124, 0.2);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ==================== MODERN ALERTS ==================== */

.alert-modern {
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 4px solid;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: start;
    gap: 12px;
}

.alert-modern.info {
    border-left-color: #1e40af;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1), rgba(30, 64, 175, 0.05));
}

.alert-modern.success {
    border-left-color: #15803d;
    background: linear-gradient(135deg, rgba(21, 128, 61, 0.1), rgba(21, 128, 61, 0.05));
}

.alert-modern.warning {
    border-left-color: #92400e;
    background: linear-gradient(135deg, rgba(146, 64, 14, 0.1), rgba(146, 64, 14, 0.05));
}

.alert-modern.danger {
    border-left-color: #991b1b;
    background: linear-gradient(135deg, rgba(153, 27, 27, 0.1), rgba(153, 27, 27, 0.05));
}

/* ==================== DARK MODE ==================== */

@media (prefers-color-scheme: dark) {
    .dark-mode .form-group-modern .input-modern {
        background: rgba(26, 26, 26, 0.8);
        border-color: rgba(207, 184, 124, 0.2);
        color: #f5f5f5;
    }

    .dark-mode .form-group-modern .label-modern {
        background: transparent;
        color: #b0b0b0;
    }

    .dark-mode .form-group-modern .input-modern:focus + .label-modern {
        color: #CFB87C;
    }

    .dark-mode .tab-nav-modern {
        background: rgba(26, 26, 26, 0.7);
    }

    .dark-mode .tab-button-modern.active {
        background: linear-gradient(135deg, rgba(207, 184, 124, 0.2), rgba(207, 184, 124, 0.1));
        color: #CFB87C;
    }

    .dark-mode .kpi-card-modern {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(26, 26, 26, 0.85));
        border-color: rgba(207, 184, 124, 0.15);
    }

    .dark-mode .modal-content-modern {
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98), rgba(26, 26, 26, 0.95));
        border-color: rgba(207, 184, 124, 0.15);
    }
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
    .kpi-card-modern {
        padding: 20px;
    }

    .kpi-value-modern {
        font-size: 2rem;
    }

    .tab-nav-modern {
        width: 100%;
        overflow-x: auto;
    }

    .tab-button-modern {
        white-space: nowrap;
    }
}

/* ==================== SCROLL-TRIGGERED ANIMATIONS ==================== */

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children for cascading effect */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(6) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(8) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* ==================== 3D CARD TILT EFFECTS ==================== */

.card-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.card-tilt-inner {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-tilt:hover .card-tilt-inner {
    transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

.card-tilt-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                                rgba(207, 184, 124, 0.15),
                                transparent 60%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-tilt:hover .card-tilt-highlight {
    opacity: 1;
}

/* ==================== BENTO BOX LAYOUTS ==================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: minmax(200px, auto);
}

.bento-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item-wide {
    grid-column: span 2;
}

.bento-item-tall {
    grid-row: span 2;
}

@media (max-width: 768px) {
    .bento-item-large,
    .bento-item-wide,
    .bento-item-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(207,184,124,0.3), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

/* ==================== ENHANCED BUTTON FEEDBACK ==================== */

.btn-modern-primary,
.btn-gold,
.btn-outline {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-modern-primary:active,
.btn-gold:active,
.btn-outline:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* Magnetic hover effect */
.btn-magnetic {
    transition: transform 0.2s ease-out;
}

/* Shimmer effect */
@keyframes shimmer-button {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.btn-shimmer {
    background-image: linear-gradient(
        90deg,
        currentColor 0%,
        rgba(255,255,255,0.5) 50%,
        currentColor 100%
    );
    background-size: 2000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-button 3s infinite linear;
}

/* ==================== TOOLTIP MICRO-INTERACTIONS ==================== */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ==================== BADGE PULSE ANIMATIONS ==================== */

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Notification badges */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #B71C1C;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(183, 28, 28, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(183, 28, 28, 0);
    }
}

/* ==================== KINETIC TYPOGRAPHY ==================== */

.text-split span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-appear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letter-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== PARALLAX EFFECTS ==================== */

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -10%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    transform: translateZ(0);
}

/* ==================== PROGRESSIVE IMAGE LOADING ==================== */

.progressive-image {
    position: relative;
    overflow: hidden;
    background-size: cover;
    filter: blur(10px);
    transition: filter 0.3s ease;
}

.progressive-image.loaded {
    filter: blur(0);
}

.progressive-image__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progressive-image__full {
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progressive-image.loaded .progressive-image__full {
    opacity: 1;
}

/* ==================== VIEW TRANSITIONS API ==================== */

@supports (view-transition-name: root) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.3s;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    ::view-transition-old(root) {
        animation-name: fade-out;
    }

    ::view-transition-new(root) {
        animation-name: fade-in;
    }
}

@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== ENHANCED FOCUS STATES ==================== */

:root {
    --focus-color: #0277BD;
    --focus-width: 3px;
    --focus-offset: 3px;
    --focus-shadow-blur: 5px;
}

@media (prefers-contrast: high) {
    :root {
        --focus-width: 4px;
        --focus-offset: 4px;
    }
}

*:focus-visible {
    outline: var(--focus-width) solid var(--focus-color) !important;
    outline-offset: var(--focus-offset) !important;
    box-shadow: 0 0 0 var(--focus-shadow-blur) rgba(2, 119, 189, 0.1);
}

.btn-modern-primary:focus-visible,
.btn-gold:focus-visible {
    outline-color: #8B6914 !important;
    box-shadow: 0 0 0 var(--focus-shadow-blur) rgba(207, 184, 124, 0.2);
}

/* ==================== FLOATING ACTION BUTTON ==================== */

.fab-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
}

.fab-main {
    width: 56px;  /* WCAG minimum touch target */
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B6914, #6B4D0F);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 105, 20, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
}

.fab-main:hover {
    box-shadow: 0 12px 32px rgba(139, 105, 20, 0.45);
    transform: scale(1.05);
}

.fab-main.open {
    transform: rotate(45deg);
}

.fab-main:focus-visible {
    outline: 3px solid #CFB87C;
    outline-offset: 4px;
}

.fab-actions {
    position: absolute;
    bottom: 4rem;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fab-action {
    width: 48px;  /* WCAG minimum touch target */
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.fab-action:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.fab-action:focus-visible {
    outline: 3px solid #8B6914;
    outline-offset: 4px;
}

/* Mobile-specific positioning (GPT-5 recommendation: sticky bottom bar) */
@media (max-width: 768px) {
    .fab-container {
        /* Position above any mobile navigation (80px safe zone) */
        bottom: max(80px, env(safe-area-inset-bottom, 16px));
        right: 16px;
    }

    .fab-main {
        /* Slightly larger on mobile for easier tapping */
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
    }

    /* Show labels on mobile for better UX */
    .fab-action {
        position: relative;
    }

    .fab-action::before {
        content: attr(data-tooltip);
        position: absolute;
        right: 60px;
        background: rgba(0, 0, 0, 0.85);
        color: white;
        padding: 8px 16px;
        border-radius: 8px;
        white-space: nowrap;
        font-size: 14px;
        font-weight: 500;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .fab-actions[x-show] .fab-action::before {
        opacity: 1;
    }
}

/* Landscape mobile - reduce spacing */
@media (max-width: 768px) and (orientation: landscape) {
    .fab-container {
        bottom: max(20px, env(safe-area-inset-bottom, 16px));
        right: 12px;
    }

    .fab-main {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
    }
}

/* ==================== ACCESSIBILITY ==================== */

/* Ensure all interactive elements meet touch target requirements */
.tab-button-modern,
.checkbox-modern,
.input-modern,
button.btn-modern-primary {
    min-height: 44px;
    min-width: 44px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card-modern,
    .kpi-card-modern,
    .modal-content-modern {
        border-width: 2px;
    }

    .btn-modern-primary {
        border-width: 3px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in-on-scroll,
    .stagger-children > *,
    .card-tilt-inner,
    .progressive-image,
    .btn-shimmer {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================== CUSTOM PADDING OVERRIDES ==================== */
/* Increase padding for better breathing room in cards */
.card-modern {
    padding: 2rem !important; /* Override default 1.5rem with 2rem (32px) */
}
