/* ==========================================================================
   CSS VARIABLES & GLOBAL SETTINGS
   ========================================================================== */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(18, 22, 47, 0.6);
    --bg-card-hover: rgba(26, 31, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    /* Brand Colors */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.3);
    
    /* Status Colors */
    --color-comp: #10b981;
    --color-schol: #06b6d4;
    --color-expired: #f43f5e;
    --color-active: #10b981;
    
    /* Text Colors */
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    /* Timing & Fonts */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(-45deg, #040510, #0c0821, #030d1a, #040510);
    background-size: 400% 400%;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    animation: gradient-shift 15s ease infinite;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -2;
    pointer-events: none;
}

/* Background Glowing Orbs */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    pointer-events: none;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.75) 0%, rgba(99, 102, 241, 0) 70%);
    top: -200px;
    left: -200px;
    animation: drift-glow-1 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.7) 0%, rgba(168, 85, 247, 0) 70%);
    bottom: -150px;
    right: -150px;
    animation: drift-glow-2 14s ease-in-out infinite alternate;
}

.bg-glow-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.65) 0%, rgba(6, 182, 212, 0) 70%);
    top: 30%;
    right: -250px;
    animation: drift-glow-3 18s ease-in-out infinite alternate;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%), var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 40%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    pointer-events: none;
    animation: btn-shine 4.5s infinite ease-in-out;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
    padding: 0.75rem;
    aspect-ratio: 1;
}

.btn-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.badge-comp {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-comp);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-schol {
    background: rgba(6, 182, 212, 0.15);
    color: var(--color-schol);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-expired {
    background: rgba(244, 63, 94, 0.15);
    color: var(--color-expired);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-info {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   HEADER NAVIGATION (NAVBAR)
   ========================================================================== */
.navbar {
    background: rgba(7, 9, 19, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 55%), var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px var(--primary-glow);
    position: relative;
    overflow: hidden;
    animation: logo-glow 3s ease-in-out infinite;
}

.brand-logo i {
    transition: transform 0.35s ease;
}

.brand:hover .brand-logo i {
    transform: rotate(15deg);
}

.brand-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    animation: logo-shine 3.5s infinite ease-in-out;
}

@keyframes logo-glow {
    0%, 100% {
        box-shadow: 0 4px 10px var(--primary-glow);
    }
    50% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.7), 0 0 10px rgba(99, 102, 241, 0.4);
    }
}

@keyframes logo-shine {
    0% {
        left: -150%;
    }
    12% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #f3f4f6 0%, #f3f4f6 30%, #ffffff 50%, #f3f4f6 70%, #f3f4f6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-text-shine 5s linear infinite;
}

.brand-name span {
    background: linear-gradient(90deg, #38bdf8 0%, #c084fc 50%, #38bdf8 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3.5s linear infinite;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    gap: 1.25rem;
    position: relative;
    animation: border-glow 4s ease-in-out infinite alternate;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.stat-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-item-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    max-width: 900px;
    margin: 4rem auto 2.5rem;
    padding: 0 2rem;
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-content h1 span {
    background: linear-gradient(90deg, #38bdf8 0%, #818cf8 35%, #c084fc 70%, #38bdf8 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 5s linear infinite;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* Search Box Styles */
.search-container {
    max-width: 760px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-box:focus-within {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-left: 1.25rem;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

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

.btn-search {
    padding: 0.75rem 2rem;
}

/* ==========================================================================
   CATALOG AREA & FILTER BAR
   ========================================================================== */
.catalog-section {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.category-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 12px;
    gap: 0.25rem;
}

.tab-btn {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.filter-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-wrapper select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.65rem 2.5rem 0.65rem 2.5rem;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: var(--transition-smooth);
}

.select-wrapper select option {
    background-color: #0f1224;
    color: var(--text-primary);
}

.select-wrapper select:hover, .select-wrapper select:focus {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.05);
}

.select-wrapper .icon-left {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* Custom indicator arrow */
.select-wrapper::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

/* ==========================================================================
   OPPORTUNITIES GRID & CARDS
   ========================================================================== */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    position: relative;
    min-height: 250px;
}

.opp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.opp-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card-deadline-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.card-deadline-badge.urgent {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.2);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    /* Multi line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-organizer {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.card-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.opp-card:hover .card-action-row {
    color: #a855f7;
}

/* ==========================================================================
   LOADING & EMPTY STATES
   ========================================================================== */
.loading-state, .empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

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

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   MODALS AND DIALOGS
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 4, 9, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    z-index: 1001;
    animation: modalShow 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-card {
    background: #0f1224;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 1.75rem 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close-modal {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 160px);
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.modal-organizer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modal-deadline-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.deadline-icon {
    font-size: 1.75rem;
    color: var(--primary);
}

.deadline-details {
    display: flex;
    flex-direction: column;
}

.deadline-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.deadline-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
}

.deadline-countdown {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
}

.modal-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.modal-sec h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-sec h3 i {
    color: var(--primary);
}

.modal-sec p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

.modal-sec ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.modal-sec ul li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-sec ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--color-comp);
    font-size: 0.8rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 2rem 1.75rem;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   SYNC DRAWER / MODAL & CONSOLE LOGS
   ========================================================================== */
.modal-sync {
    max-width: 600px;
}

.progress-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    background: var(--primary-gradient);
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--primary-glow);
}

.sync-status-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Console logs */
.console-log-wrapper {
    background: #05060b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.console-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.dot-indicator.active {
    background: var(--color-comp);
    box-shadow: 0 0 8px var(--color-comp);
    animation: pulse 1.5s infinite;
}

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

.console-logs {
    padding: 1rem;
    height: 180px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.log-line {
    color: var(--text-secondary);
    word-break: break-all;
}

.log-line.system {
    color: var(--accent);
}

.log-line.error {
    color: var(--color-expired);
}

.log-line.success {
    color: var(--color-active);
}

/* ==========================================================================
   SETTINGS MODAL & FORM
   ========================================================================== */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.settings-form label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
}

.input-password-wrapper {
    display: flex;
    position: relative;
}

.input-password-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border-radius: 12px;
    outline: none;
    transition: var(--transition-smooth);
}

.input-password-wrapper input:focus {
    border-color: var(--border-hover);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.btn-toggle-password {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-toggle-password:hover {
    color: var(--text-primary);
}

.input-help {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.api-key-badge-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.api-key-badge-status.configured {
    color: var(--color-comp);
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.setup-guide {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.setup-guide h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.setup-guide ol {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setup-guide ol a {
    color: var(--primary);
    font-weight: 600;
}

.setup-guide ol a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-app {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0.85rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-muted);
    font-size: 0.8rem;
    z-index: 90;
}

/* ==========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 1rem 1.25rem;
    }
    
    .brand {
        justify-content: center;
    }
    
    .stats-bar {
        justify-content: center;
        border-radius: 14px;
        padding: 0.5rem 1rem;
        gap: 1rem;
    }
    
    .nav-actions {
        justify-content: center;
    }
    
    .hero-section {
        margin: 2rem auto 1.25rem;
        padding: 0 1.25rem;
    }
    
    .hero-content h1 {
        font-size: 1.85rem;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        margin-top: 2rem;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        padding: 0.25rem 0.25rem 0.6rem;
        scrollbar-width: none; /* Hide scrollbar on Firefox */
    }
    
    .category-tabs::-webkit-scrollbar {
        display: none; /* Hide scrollbar on Chrome/Safari */
    }
    
    .category-btn {
        flex-shrink: 0;
    }
    
    .filter-options {
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .select-wrapper, .select-wrapper select {
        flex: 1;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    #stat-last-sync, 
    .stats-bar .stat-item-divider:nth-of-type(2) {
        display: none !important;
    }
    
    .stats-bar {
        gap: 1.25rem;
    }
    
    .filter-options {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .select-wrapper {
        width: 100%;
    }
    
    .select-wrapper select {
        width: 100%;
    }
    
    .footer-app {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Tambahkan margin bawah pada pagination agar tidak tertutup fixed footer di mobile */
    .pagination-container {
        margin: 2.5rem auto 5rem;
    }
}

/* ==========================================================================
   CARD FLYER & MODAL POSTER STYLES
   ========================================================================== */
.card-flyer {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
}

.card-flyer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.opp-card:hover .card-flyer img {
    transform: scale(1.06);
}

.card-flyer-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(168, 85, 247, 0.03) 100%);
    border: 1px dashed rgba(99, 102, 241, 0.15);
    color: rgba(99, 102, 241, 0.4);
    font-size: 2.2rem;
    transition: all 0.5s ease;
    margin-top: 0.5rem;
}

.card-flyer-placeholder.placeholder-schol {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.03) 0%, rgba(20, 184, 166, 0.03) 100%);
    border: 1px dashed rgba(6, 182, 212, 0.15);
    color: rgba(6, 182, 212, 0.4);
}

.opp-card:hover .card-flyer-placeholder {
    border-color: var(--primary);
    color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.opp-card:hover .card-flyer-placeholder.placeholder-schol {
    border-color: #06b6d4;
    color: #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
}

/* Modal Flyer Styles */
.modal-flyer-wrapper {
    width: 100%;
    max-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-flyer-wrapper img {
    max-width: 100%;
    max-height: 380px;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   PAGINATION STYLES
   ========================================================================== */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3.5rem auto 1.5rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    outline: none;
}

.pagination-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.pagination-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.45);
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   ANIMATION KEYFRAMES
   ========================================================================== */
@keyframes drift-glow-1 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translate(120px, 90px) scale(1.15);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50px, 150px) scale(0.9);
        opacity: 0.55;
    }
}

@keyframes drift-glow-2 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-100px, -110px) scale(0.85);
        opacity: 0.8;
    }
    100% {
        transform: translate(60px, -60px) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes drift-glow-3 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.45;
    }
    50% {
        transform: translate(-130px, 80px) scale(1.2);
        opacity: 0.75;
    }
    100% {
        transform: translate(40px, -100px) scale(0.9);
        opacity: 0.45;
    }
}

@keyframes border-glow {
    0% {
        border-color: var(--border-color);
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.03);
    }
    100% {
        border-color: rgba(99, 102, 241, 0.45);
        box-shadow: 0 0 18px rgba(99, 102, 241, 0.15);
    }
}

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

@keyframes card-shine {
    0% {
        left: -60%;
    }
    100% {
        left: 140%;
    }
}

.opp-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 25%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    pointer-events: none;
}

.opp-card:hover::after {
    animation: card-shine 0.95s ease-out;
}

@keyframes brand-text-shine {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

@keyframes btn-shine {
    0% {
        left: -150%;
    }
    12% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

/* ==========================================================================
   SKELETON LOADER SHIMMER STYLES
   ========================================================================== */
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-sizing: border-box;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.035) 50%, rgba(255, 255, 255, 0) 100%);
    background-size: 200% 100%;
    animation: shimmer-anim 1.5s infinite linear;
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
}

@keyframes shimmer-anim {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(50%);
    }
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-badge {
    width: 85px;
    height: 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-deadline {
    width: 110px;
    height: 22px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-flyer {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-title {
    width: 85%;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.25rem;
}

.skeleton-desc {
    width: 100%;
    height: 45px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

.skeleton-tags {
    display: flex;
    gap: 0.5rem;
}

.skeleton-tag {
    width: 70px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
}

.skeleton-action {
    width: 90px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-donasi {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-smooth);
}

.btn-donasi:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.45);
    background: rgba(99, 102, 241, 0.06);
}

/* ==========================================================================
   PURE CSS DANA LOGO BADGE
   ========================================================================== */
.dana-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(0, 138, 230, 0.08);
    border: 1px solid rgba(0, 138, 230, 0.25);
    padding: 0.55rem 1.3rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    color: #008ae6;
    user-select: none;
    box-shadow: 0 0 15px rgba(0, 138, 230, 0.15);
}

.dana-logo-icon {
    width: 28px;
    height: 28px;
    background: #008ae6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0, 138, 230, 0.3);
}

.dana-logo-icon i {
    transform: scale(0.9);
}

.dana-logo-text {
    line-height: 1;
    font-style: italic; /* DANA logo is italicized slightly */
}

.footer-app a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-app a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}
