/* PROMKES - Premium & Ultra-Modern UI Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Lavender & Soft Pink Palette */
    --primary: #7380df;
    --primary-hover: #5d69b3;
    --primary-light: #eef1fd;
    --secondary: #f2b4be;
    --accent: #f8d7c4;
    --success: #aab1e6;

    --dark: #1e293b;
    --dark-muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-50: #f9fafb;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;

    /* Layout */
    --sidebar-width: 270px;

    /* Effects - Multi-layered Premium Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.1);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide Number Input Spinners */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

body::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* --- Public Header & Filters --- */
.public-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 9rem 1rem 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.public-header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.public-header p {
    font-size: 1.4rem;
    opacity: 0.85;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Visitor Controls (Search & Filter) */
.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -4.5rem auto 5rem;
    background: #ffffff;
    padding: 1.5rem 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.2);
    gap: 2.5rem;
    z-index: 100;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 1);
    width: 100%;
}

.search-box {
    flex: 1;
    min-width: 300px;
}

.search-box input {
    width: 100%;
    padding: 1.1rem 2rem;
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-full);
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    background: var(--light);
}

.search-box input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-light);
}

.filter-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    white-space: nowrap;
}

/* --- Inputs & Selection --- */
input[type="text"],
input[type="url"],
input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 0.9rem 1.4rem;
    border: 2.5px solid var(--gray-100);
    border-radius: var(--radius-sm);
    outline: none;
    background: #fafafa;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--dark);
}

input:focus,
select:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px var(--primary-light);
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.btn:active {
    transform: scale(0.96);
}

.btn-teal {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 6px 20px -5px rgba(115, 128, 223, 0.4);
}

.btn-teal:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(115, 128, 223, 0.5);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px -4px rgba(115, 128, 223, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(115, 128, 223, 0.5);
}

.btn-light {
    background: var(--white);
    color: var(--dark-muted);
    border: 2px solid var(--gray-100);
}

.btn-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.btn-red {
    background: #fecaca;
    color: #b91c1c;
}

.btn-red:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* --- Card Architecture --- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
}

.card:hover .card-img {
    transform: scale(1.15) rotate(1deg);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 28px;
    padding: 0 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.25;
}

.card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--dark-muted);
    font-weight: 500;
}

/* --- Admin Sidebar Elevation --- */
.sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    padding: 3rem 1.25rem;
    position: fixed;
    height: 100vh;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.sidebar-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4rem;
    padding-left: 1rem;
    letter-spacing: -0.02em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.nav-item i {
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
}

.nav-item.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 16px -4px rgba(115, 128, 223, 0.4);
}

.nav-item.active i {
    opacity: 1;
    transform: scale(1.1);
}

.nav-item.logout {
    margin-top: auto;
    color: #f43f5e;
    opacity: 0.8;
}

.nav-item.logout:hover {
    background: rgba(244, 63, 94, 0.1);
    opacity: 1;
}

.main-area {
    margin-left: var(--sidebar-width);
    padding: 4rem;
    background: #fbfcfe;
    min-height: 100vh;
}

/* --- Tables & Lists --- */
.master-table {
    width: 100%;
    border-spacing: 0 1rem;
    border-collapse: separate;
    margin-top: 1rem;
}

.master-table th {
    padding: 1rem 1.5rem;
    color: var(--dark-muted);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.master-table tr:not(thead tr) {
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.master-table tr:not(thead tr):hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.master-table td {
    padding: 1.5rem;
}

.master-table td:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.master-table td:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* --- Modal Refinement --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 2.5rem;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    /* Set Max Height */
    border: none;
    border-radius: var(--radius-lg);
    overflow-y: auto;
    /* Enable Scrolling */
    box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar Hidden (Minimalist) */
.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #fff;
    padding: 1.5rem 2.5rem;
    border-bottom: 2px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--dark-muted);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
    /* Fix squishing */
}

.close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    transform: rotate(90deg);
}

/* --- Dashboard Specifics --- */
/* Dashboard Summary Cards Revision */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Force 4 columns for new metrics */
    gap: 2rem;
    margin-bottom: 4rem;
}

.summary-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 2.25rem;
    transition: var(--transition);
    border-left: 10px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.icon-box {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.summary-data h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--dark-muted);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.val {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -0.05em;
}

.val small {
    font-size: 1rem;
    color: var(--dark-muted);
    font-weight: 500;
    letter-spacing: 0;
}

.summary-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.summary-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, rgba(115, 128, 223, 0.03), transparent);
}

.ranking-list div:last-child {
    border-bottom: none !important;
}

/* Filter Bar Shadow Fix */
form[action=""] {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

footer {
    padding: 5rem 0;
    text-align: center;
    color: var(--dark-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-top: 1px solid var(--gray-200);
    margin-top: 5rem;
}

/* --- Admin Responsive Optimized --- */
@media (max-width: 768px) {
    .public-header {
        padding: 5rem 1rem;
    }

    .public-header h1 {
        font-size: 2.5rem;
    }

    .public-header p {
        font-size: 1.1rem;
    }

    .controls {
        margin-top: -3rem;
        padding: 1.25rem;
        gap: 1rem;
        flex-direction: column;
    }

    .search-box {
        width: 100%;
        min-width: 100%;
    }

    .filter-box {
        width: 100%;
        justify-content: center;
    }

    .sidebar {
        width: 70px;
        padding: 2.5rem 0.5rem;
        text-align: center;
    }

    .sidebar-logo {
        display: none;
    }

    .nav-item span {
        display: none;
    }

    .nav-item {
        justify-content: center;
        padding: 1.25rem 0;
        margin-bottom: 0.5rem;
    }

    .nav-item i {
        font-size: 1.4rem;
        opacity: 1;
    }

    .main-area {
        margin-left: 70px;
        padding: 1.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        padding-bottom: 2rem;
    }

    .card-img-wrapper {
        height: 100px;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 1.8rem;
        margin-bottom: 0.25rem;
    }

    .card-content p,
    .card-content div[style*="margin-bottom: 1.5rem"] {
        display: none !important;
    }

    /* Hide desc and tags on mobile grid to save space */
    .card-meta {
        font-size: 0.6rem;
        gap: 2px;
    }

    .card-meta span i {
        font-size: 0.6rem;
    }

    .card-badge,
    .fav-btn {
        top: 0.5rem !important;
        height: 20px !important;
        width: auto !important;
        min-width: 20px !important;
        padding: 0 5px !important;
        font-size: 0.5rem !important;
    }

    .fav-btn {
        width: 20px !important;
        padding: 0 !important;
    }

    .container {
        padding: 0 0.5rem;
    }

    /* Table Responsive Wrapper Wrapper - Apply to .table-responsive around .master-table */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        margin-top: 1rem;
        -webkit-overflow-scrolling: touch;
    }

    .master-table {
        min-width: 600px;
    }

    /* Prevent squashing columns too much */

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        width: 100%;
        height: auto;
        max-width: none;
        border-radius: var(--radius-md);
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .iframe-container {
        padding-top: 130%;
    }

    /* taller for mobile content */
}

@media (min-width: 769px) and (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .controls {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .public-header h1 {
        font-size: 3.5rem;
    }
}

/* --- Personal Dashboard & Gamification --- */
.fab-progress {
    position: fixed !important;
    bottom: 2rem !important;
    left: 2rem !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    border-radius: 100px !important;
    box-shadow: 0 15px 35px -10px rgba(115, 128, 223, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.05em !important;
    border: 3px solid rgba(255, 255, 255, 0.4) !important;
    box-sizing: border-box !important;
    
    /* Collapsed State (Bulat) */
    width: 60px !important;
    height: 60px !important;
    padding: 0 !important;
    justify-content: center !important;
    gap: 0 !important;
}

.fab-progress i {
    font-size: 1.2rem;
}

.fab-progress span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
}

.fab-progress:hover, 
.fab-progress.expanded {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -12px rgba(115, 128, 223, 0.6) !important;
    
    /* Expanded State */
    width: 235px !important;
    padding: 0 1.5rem !important;
    justify-content: flex-start !important;
    gap: 15px !important;
}

.fab-progress:hover span,
.fab-progress.expanded span {
    max-width: 200px;
    opacity: 1;
}

.badge-fab {
    background: #fff;
    color: var(--primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    
    /* Absolute pos on collapsed (tetap absolute saat hover agar meluncur elegan) */
    position: absolute;
    top: -5px;
    right: -5px;
    transition: all 0.3s ease;
}

/* Hapus .fab-progress:hover .badge-fab static karena akan menempati width extra - kita ingin dia tetap absolute */

/* Personal Dashboard Modal Styles */
.user-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.user-stat-card {
    background: var(--light);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border-bottom: 5px solid var(--primary);
}

.user-stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light);
    border-radius: var(--radius-lg);
}

.badge-item {
    text-align: center;
    width: 100px;
    opacity: 0.2;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.badge-item.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.1);
}

.badge-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
}

.fav-btn {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    width: 28px !important;
    height: 28px !important;
    background: #ffffff !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--gray-300);
    cursor: pointer !important;
    transition: var(--transition);
    z-index: 20 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    font-size: 0.6rem !important;
}

.fav-btn.active {
    color: #facc15 !important;
    background: #fff !important;
    box-shadow: 0 5px 15px rgba(250, 204, 21, 0.3) !important;
}

.fav-btn:hover {
    transform: scale(1.1) !important;
}

/* --- Advanced Premium UI Polish --- */

/* Mesh Gradient Animation for Header */
@keyframes meshGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.public-header {
    background: linear-gradient(-45deg, #7380df, #f2b4be, #aab1e6, #f8d7c4);
    background-size: 400% 400%;
    animation: meshGradient 15s ease infinite;
    position: relative;
}

.public-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--light), transparent);
}

/* Glassmorphism Refinement */
.glass {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.controls {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Shine Effect for Gold Badge */
@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.badge-item.active#badge-gold {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

.badge-item.active#badge-gold::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(30deg);
    animation: shine 4s infinite;
}

/* Pulse for FAB */
@keyframes pulseFab {
    0% {
        box-shadow: 0 0 0 0 rgba(115, 128, 223, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(115, 128, 223, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(115, 128, 223, 0);
    }
}

.fab-progress {
    animation: pulseFab 2.5s infinite;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Bento-style Stat Cards */
.user-stat-card {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.user-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.user-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .public-header h1 {
        font-size: 3rem;
    }

    .public-header p {
        font-size: 1rem;
    }
}

/* --- Premium Pagination Navigation --- */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin: 2.5rem 0;
}

.btn-page {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--dark-muted);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-page:hover:not(.disabled) {
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(115, 128, 223, 0.2);
    background: var(--white);
}

.btn-page.active {
    background: linear-gradient(135deg, var(--primary) 0%, #5d69b3 100%);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(115, 128, 223, 0.4);
    transform: scale(1.05);
}

.btn-page.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.pagination-info {
    text-align: center;
    color: var(--dark-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 1rem;
    letter-spacing: 0.02em;
}