/* =====================================================
   PLATEC Portal — Global Design System v2
   Solid-colour standard. No gradient fills.
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* ── Brand Colours ── */
    --platec-green:   #022c22;   /* Deep Forest Green  */
    --platec-emerald: #059669;   /* Emerald (primary)  */
    --platec-gold:    #c5a85c;   /* Luxury Gold        */
    --platec-teal:    #10b981;   /* Electric Teal      */
    --platec-dark:    #090d16;   /* Obsidian Night     */
    --platec-light:   #fafbfc;   /* Crisp Off-White    */

    /* Legacy aliases kept for backward compatibility */
    --platec-purple:  #022c22;
    --platec-blue:    #059669;
    --platec-orange:  #c5a85c;
    --platec-lime:    #10b981;

    /* ── Typography ── */
    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    /* ── Glass Surface ── */
    --glass-bg:     rgba(255, 255, 255, 0.82);
    --glass-border: rgba(5, 150, 105, 0.08);
    --glass-shadow: 0 10px 40px -10px rgba(2, 44, 34, 0.05);
}

/* ── Base ── */
* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--platec-light);
    color: #334155;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--platec-dark);
}

/* ── Grid dot overlay ── */
.grid-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(5, 150, 105, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* ── Glassmorphism Card ── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.18);
    box-shadow: 0 20px 50px -12px rgba(2, 44, 34, 0.1);
}

/* ── Navbar ── */
.glass-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5, 150, 105, 0.06);
    transition: all 0.3s ease;
}

.glass-nav .nav-link {
    color: #475569 !important;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
}

.glass-nav .nav-link:hover { color: var(--platec-emerald) !important; }

.glass-nav .nav-link.active-link {
    color: var(--platec-emerald) !important;
    border-bottom: 2px solid var(--platec-emerald) !important;
}

.glass-nav .text-primary          { color: var(--platec-emerald) !important; }
.glass-nav .text-primary:hover    { color: var(--platec-gold)    !important; }

/* ── Active nav link ── */
.active-link {
    color: var(--platec-emerald) !important;
    border-bottom: 2px solid var(--platec-emerald);
}

/* ── Text colour utilities ── */
.text-platec-green   { color: var(--platec-green)   !important; }
.text-platec-emerald { color: var(--platec-emerald) !important; }
.text-platec-gold    { color: var(--platec-gold)    !important; }
.text-orange         { color: var(--platec-gold)    !important; }

/* ── Solid colour brand text (replaces gradient text) ── */
.text-gradient {
    color: var(--platec-emerald);
    font-weight: 800;
}

.text-gradient-gold { color: var(--platec-gold); }

/* ── Solid background utilities ── */
.bg-premium-gradient { background-color: var(--platec-green) !important; }
.bg-accent-gradient  { background-color: var(--platec-emerald) !important; }

/* ── Buttons ── */
.btn-premium {
    background-color: var(--platec-green);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(2, 44, 34, 0.18);
}

.btn-premium:hover {
    background-color: #033d2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 44, 34, 0.25);
    color: white !important;
}

.btn-accent {
    background-color: var(--platec-emerald);
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.18);
}

.btn-accent:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
    color: white !important;
}

/* ── Stat Numbers ── */
.stat-box {
    border-left: 2px solid rgba(5, 150, 105, 0.15);
    padding-left: 20px;
    text-align: left;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--platec-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── Dashboard Sidebar ── */
.dashboard-sidebar {
    background: var(--platec-dark);
    min-height: 100vh;
    color: white;
}

.sidebar-link {
    color: #64748b !important;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(5, 150, 105, 0.06) !important;
    color: var(--platec-emerald) !important;
    border-left: 3px solid var(--platec-emerald);
}

.sidebar-link.active {
    background-color: var(--platec-green) !important;
    color: white !important;
    font-weight: 600;
    border-left: 3px solid var(--platec-gold);
    box-shadow: 0 4px 12px rgba(2, 44, 34, 0.18);
}

/* ── Footer ── */
footer {
    background: #090d16 !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(5, 150, 105, 0.08);
}

footer a {
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover { color: var(--platec-gold) !important; }

footer .text-muted, footer p, footer div,
footer span, footer li { color: #94a3b8 !important; }

/* ── Toast Notifications ── */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    margin: 0;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    min-width: 300px;
    max-width: 450px;
    background: var(--platec-dark);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease,
                overlay 0.4s allow-discrete,
                display 0.4s allow-discrete;
    opacity: 0;
    transform: translateY(30px);
}

.toast-notification:popover-open {
    opacity: 1;
    transform: translateY(0);
}

@starting-style {
    .toast-notification:popover-open {
        opacity: 0;
        transform: translateY(30px);
    }
}

.toast-success {
    background-color: #059669;
    border-left: 5px solid #047857;
}

.toast-error {
    background-color: #dc2626;
    border-left: 5px solid #b91c1c;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.toast-close:hover { color: white; }

/* ── Badge System ── */
.badge-custom {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-verified {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--platec-emerald);
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.badge-pending {
    background-color: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-days {
    background-color: rgba(197, 168, 92, 0.1);
    color: var(--platec-gold);
    border: 1px solid rgba(197, 168, 92, 0.2);
}

.badge-admin {
    background-color: rgba(2, 44, 34, 0.1);
    color: var(--platec-green);
    border: 1px solid rgba(2, 44, 34, 0.2);
}

/* ── Benefits Panel ── */
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.benefit-item.unlocked {
    border-color: rgba(5, 150, 105, 0.2);
    background: rgba(5, 150, 105, 0.03);
}

.benefit-item.locked {
    border-color: #e2e8f0;
    background: #f8fafc;
    opacity: 0.75;
}

.benefit-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.benefit-icon.green  { background: rgba(5, 150, 105, 0.1); color: #059669; }
.benefit-icon.gray   { background: #f1f5f9; color: #94a3b8; }

/* ── Partners Marquee ── */
.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 15px 0;
    position: relative;
}


.marquee-content {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-left 25s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(4, 120, 87, 0.08);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.marquee-item:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--platec-gold);
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
