:root {
    --bg-color: #121212;
    --container-bg: #1a1a1a;
    --input-bg: #333333;
    --input-border: #444444;
    --input-focus: #9704c9;
    --button-bg: #9704c9;
    --button-hover: #b105e4;
    --text-primary: #ffffff;
    --text-placeholder: #999999;
    --error-bg: rgba(234, 67, 53, 0.1);
    --error-border: #ea4335;
    --success-bg: rgba(52, 168, 83, 0.1);
    --success-border: #34a853;
    --glow-color: rgba(0, 115, 255, 0.3);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* Background Glow Effect */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-co {
    width: 150px;
    height: auto;
}

.input-group {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px 20px;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: var(--text-placeholder);
}

input:focus {
    border-color: var(--input-focus);
}

.button-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 12px 20px;
    background-color: var(--button-bg);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

button:hover {
    background-color: var(--button-hover);
    transform: translateY(-1px);
}

.auth-message {
    display: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}

.auth-message.error {
    background-color: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-border);
}

.auth-message.success {
    background-color: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-border);
}

.hidden {
    display: none !important;
}

/* Home Styles */
.home-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    margin: 0 auto;
    overflow-y: auto;
    height: 100vh;
}

.home-logo {
    width: 100px;
    margin-bottom: 20px;
}

.tab-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
}

.tab-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 0;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.tab-link.active {
    color: var(--button-bg);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--button-bg);
}

.widget {
    background-color: var(--container-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
    margin-bottom: 25px;
    text-align: left;
}

.widget h3 {
    margin-top: 0;
    color: var(--button-bg);
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #252525;
    border-radius: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.indicator-dot.operational {
    background-color: #34a853;
    box-shadow: 0 0 8px #34a853;
}

.indicator-dot.outage {
    background-color: #ea4335;
    box-shadow: 0 0 8px #ea4335;
}

/* Announcement & Banner */
.banner {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner.operational {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-border);
}

.banner.announcement {
    background: rgba(151, 4, 201, 0.1);
    border: 1px solid var(--button-bg);
    color: #fff;
}

/* Loader Widget */
.loader-widget {
    text-align: center;
}

.loader-btn {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Product Grid & Cards (Aurora Style) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.product-card {
    background: #252525;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--button-bg);
}

.product-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-icon {
    width: 50px;
    height: 50px;
    background: var(--button-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}

.product-info {
    flex-grow: 1;
}

.product-name {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

.product-status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.status-undetected {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
}

.status-updating {
    background: rgba(251, 188, 4, 0.2);
    color: #fbbc04;
}

.status-detected {
    background: rgba(234, 67, 53, 0.2);
    color: #ea4335;
}

.product-days {
    font-size: 0.9em;
    color: var(--text-placeholder);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.product-card .loader-btn {
    padding: 8px 20px;
    font-size: 0.9em;
    margin-top: 0;
}

.loading-products {
    text-align: center;
    padding: 40px;
    color: var(--text-placeholder);
    grid-column: 1 / -1;
}

/* Premium Loader Alert Banner */
.loader-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(151, 4, 201, 0.15) 0%, rgba(225, 0, 255, 0.08) 100%);
    border: 1px solid rgba(225, 0, 255, 0.4);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 8px 32px 0 rgba(151, 4, 201, 0.2), 0 0 15px rgba(225, 0, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards, glowPulse 3s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.loader-alert-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.loader-alert-banner:hover::before {
    left: 125%;
}

.loader-alert-banner:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 0, 255, 0.7);
    box-shadow: 0 12px 40px 0 rgba(151, 4, 201, 0.35), 0 0 25px rgba(225, 0, 255, 0.4);
    background: linear-gradient(135deg, rgba(151, 4, 201, 0.22) 0%, rgba(225, 0, 255, 0.12) 100%);
}

.loader-alert-banner.slide-up {
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader-alert-content {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 1.05em;
    font-weight: 500;
}

.loader-alert-emoji {
    font-size: 1.5em;
    animation: bounce 2s infinite;
}

.loader-alert-text {
    letter-spacing: 0.5px;
}

.loader-alert-text strong {
    color: #e100ff;
    text-shadow: 0 0 10px rgba(225, 0, 255, 0.5);
}

.loader-alert-btn {
    background: linear-gradient(135deg, #9704C9 0%, #E100FF 100%);
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9em;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(225, 0, 255, 0.4);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.loader-alert-btn:hover {
    box-shadow: 0 0 20px rgba(225, 0, 255, 0.8);
    transform: scale(1.05);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
        margin-bottom: 25px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
        margin-bottom: 0;
        padding-top: 0;
        padding-bottom: 0;
        border: none;
        overflow: hidden;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 8px 32px 0 rgba(151, 4, 201, 0.2), 0 0 15px rgba(225, 0, 255, 0.2);
    }
    50% {
        box-shadow: 0 8px 32px 0 rgba(151, 4, 201, 0.3), 0 0 25px rgba(225, 0, 255, 0.35);
    }
}

@keyframes bounce {
    0%, 100%, 20%, 50%, 80% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}