/* 1. Global Setup */
* { box-sizing: border-box; }

body {
    background-color: #0073FA !important;
    font-family: 'DM Sans', sans-serif;
    color: #ffffff !important;
    margin: 0; padding: 0; overflow: hidden;
    height: 100vh; display: flex; flex-direction: column;
}

h2, p, a, span { color: #ffffff !important; text-decoration: none !important; }

/* 2. Navigation & Support Button */
.navbar-custom { padding: 3vh 5%; flex-shrink: 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; }
.nav-logo { height: 45px; width: auto; }

.btn-donate {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    width: 140px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-donate span {
    position: relative; z-index: 1;
	color: #ffffff !important; font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em; transition: opacity 0.2s ease;
}

/* PayPal Logo Hover Layer (2px Nudge Preserved) */
.btn-donate::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('../img/Paypal.png');
    background-size: 50% auto; background-repeat: no-repeat; background-position: center;
    padding-top: 2px; background-origin: content-box; 
    opacity: 0; z-index:2; transition: opacity 0.2s ease;
}

.btn-donate:hover { background-color: #FBB03B !important; border-color: #FBB03B !important; transform: scale(1.05); }
.btn-donate:hover span { opacity: 0; }
.btn-donate:hover::after { opacity: 1; }

/* 3. Dashboard Grid */
.dashboard-container { 
    flex-grow: 1; display: flex; align-items: center; justify-content: center;
    padding: 0 20px; max-width: 1400px; margin: 0 auto; width: 100%;
}

.grid-row { display: flex; justify-content: center; align-items: stretch; gap: 40px; width: 100%; }
.grid-item { flex: 0 1 360px; max-width: 360px; display: flex; }
.service-link { display: flex; width: 100%; height: 100%; cursor: pointer; outline: none; }

.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px); border-radius: 30px; padding: 2.5rem 2rem; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.4s ease, box-shadow 0.4s ease;
}

/* Refined -4px Hover Lift Preserved */
.service-card:hover { 
    transform: translateY(-4px) scale(1.02) !important; 
    background: rgba(255, 255, 255, 0.2) !important; 
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.2) !important;
}

/* 4. Content Elements */
.icon-wrapper { height: 110px; width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0; }
.card-icon { width: 100px; height: auto; filter: drop-shadow(0 8px 15px rgba(0,0,0,0.15)); }
.service-title { font-weight: 700; font-size: 1.35rem; margin: 0 0 5px; text-align: center; }
.text-group { display: flex; flex-direction: column; align-items: center; }
.service-desc { font-size: 0.95rem; opacity: 0.85; line-height: 1.4; margin: 0; text-align: center; }

.auth-text { 
    display: inline-block; margin-top: 15px; padding: 6px 16px; border-radius: 50px; 
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; white-space: nowrap; 
    background: rgba(255, 59, 48, 0.2) !important; border: 1px solid rgba(255, 59, 48, 0.5) !important; 
}
.plex-badge { background: rgba(229, 160, 13, 0.2) !important; border: 1px solid rgba(229, 160, 13, 0.5) !important; }

/* 5. Status Indicators (20px Corner Snap Preserved) */
.status-indicator { position: absolute; top: 20px; right: 20px; width: 10px; height: 10px; z-index: 10; }
.dot { width: 10px; height: 10px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; display: block; position: absolute; top: 0; left: 0; }
.dot.online { background-color: #32D74B; box-shadow: 0 0 10px rgba(50, 215, 75, 0.6); }
.dot.online::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #32D74B; border-radius: 50%; animation: pulse 2s infinite ease-out; }
.dot.offline { background-color: #FF3B30; box-shadow: 0 0 10px rgba(255, 59, 48, 0.6); }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3.5); opacity: 0; } }

/* 6. Footer Area */
footer { width: 100%; padding: 3vh 0; flex-shrink: 0; text-align: center; }
.footer-copy { opacity: 0.5; font-size: 0.85rem; }

/* 7. Precision Responsive Tiers */

/* Mobile & Tablet Portrait */
@media (max-width: 1080px) and (orientation: portrait) {
    .grid-row { flex-direction: column; align-items: center; gap: 1.5vh; }
    .grid-item { flex: 0 0 25vh; width: 100%; max-width: 360px; }
    .service-card { padding: 1.5vh 1rem; border-radius: 24px; justify-content: center; }
    .icon-wrapper { height: 8.5vh; margin-bottom: 5px; }
    .card-icon { max-height: 100%; width: auto; }
    .service-title { font-size: 1.25rem; margin-bottom: 4px; }
    .service-desc { font-size: 0.9rem; line-height: 1.5; margin-bottom: 2px; }
    .auth-text { margin-top: 10px; padding: 5px 15px; font-size: 0.65rem; }
    footer { padding: 1.5vh 0; }
}

/* Mobile Landscape */
@media (orientation: landscape) and (max-height: 500px) {
    .navbar-custom { padding: 8px 5% !important; flex-shrink: 0; }
    .nav-logo { height: 28px !important; }
    .btn-donate { height: 32px !important; width: 120px !important; }
    .dashboard-container { padding: 5px 20px !important; }
    .grid-row { gap: 20px !important; flex-wrap: nowrap !important; align-items: center; height: auto; }
    .grid-item { flex: 0 1 320px !important; height: 70vh !important; }
    .service-card { padding: 12px !important; border-radius: 20px !important; justify-content: center !important; height: 100% !important; }
    .icon-wrapper { height: 60px !important; margin-bottom: 6px !important; }
    .card-icon { max-height: 100% !important; width: auto !important; display: block; }
    .service-title { font-size: 1.1rem !important; margin: 0 0 2px 0 !important; }
    .service-desc { font-size: 0.85rem !important; line-height: 1.4 !important; margin-bottom: 4px !important; -webkit-line-clamp: 1; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
    .auth-text { margin-top: 6px !important; padding: 4px 12px !important; font-size: 0.65rem !important; }
    footer { padding: 8px 0 !important; flex-shrink: 0; }
}
