/* ==========================================================================
   Koperasi GASS (Gasskuat) - Maintenance Mode Stylesheet
   Modern Glassmorphism & High-Tech Cooperative Aesthetics
   ========================================================================== */

:root {
    --bg-main: #070a12;
    --bg-card: rgba(16, 24, 40, 0.7);
    --bg-card-hover: rgba(22, 34, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(16, 185, 129, 0.35);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-emerald: #10b981;
    --accent-teal: #06b6d4;
    --accent-cyan: #38bdf8;
    --accent-amber: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 50%, #3b82f6 100%);
    --accent-gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 35px rgba(16, 185, 129, 0.2);
    --shadow-glow-cyan: 0 0 45px rgba(6, 182, 212, 0.25);
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Base Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Lights & Dynamic Particles */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    animation: floatGlow 14s ease-in-out infinite alternate;
}

.glow-1 {
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -5%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 45%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
    animation-delay: -9s;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
    100% { transform: translate(-25px, 35px) scale(0.95); }
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

/* Wrapper and Main Layout */
.maintenance-wrapper {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.25rem;
}

.maintenance-container {
    width: 100%;
    max-width: 760px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Brand Header */
.brand-header {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, transparent 70%);
    filter: blur(20px);
    z-index: -1;
}

.main-logo {
    max-height: 85px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.04);
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseRing 1.8s infinite;
}

@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.25rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.maintenance-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.775rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.25rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.meta-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-emerald);
}

.meta-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 620px;
    margin: 0 auto;
    font-weight: 400;
}

.description strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Timer Section */
.timer-section {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-subtle);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.timer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
}

.timer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.timer-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-teal);
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.time-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    min-width: 95px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-card:hover {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.3);
}

.time-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 18px rgba(6, 182, 212, 0.3);
}

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

.time-separator {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    margin-bottom: 1.25rem;
}

.timer-target-info {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.timer-target-info strong {
    color: var(--accent-cyan);
}

.target-icon {
    width: 15px;
    height: 15px;
    color: var(--accent-teal);
}

/* Progress Card */
.progress-card {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-subtle);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-emerald);
}

.progress-percent {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-emerald);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.task-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: left;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
}

.step-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.step-item.completed {
    color: #34d399;
}
.step-item.completed .step-icon {
    color: var(--accent-emerald);
}

.step-item.in-progress {
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
}
.step-item.in-progress .step-icon {
    color: var(--accent-cyan);
}

.step-item.pending {
    color: var(--text-muted);
}

.spin {
    animation: spin 2.5s linear infinite;
}

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

/* Notify / Subscribe Box */
.notify-box {
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.75rem;
    box-shadow: var(--shadow-subtle);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.notify-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    margin-bottom: 1.25rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.notify-main-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-emerald);
    flex-shrink: 0;
    padding: 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.notify-box h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.notify-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notify-form {
    max-width: 520px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.4rem 0.35rem 1.1rem;
    transition: all 0.25s ease;
}

.input-group:focus-within {
    border-color: var(--accent-teal);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
    background: rgba(255, 255, 255, 0.06);
}

.input-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
    filter: brightness(1.08);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-icon {
    width: 15px;
    height: 15px;
}

.notify-alert {
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    animation: fadeIn 0.3s ease;
}

.notify-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.notify-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Support Section */
.support-section {
    width: 100%;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.support-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.action-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.25);
    background: rgba(37, 211, 102, 0.06);
}

.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.5);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.2);
}

.btn-email {
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.06);
}

.btn-email:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.2);
}

.btn-refresh {
    font-family: var(--font-sans);
    color: var(--text-secondary);
}

.btn-refresh:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Footer */
.page-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.footer-logo {
    margin-bottom: 1rem;
}

.sub-logo {
    max-height: 40px;
    width: auto;
    opacity: 0.85;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: opacity 0.25s ease;
}

.sub-logo:hover {
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.server-status-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-amber);
    box-shadow: 0 0 8px var(--accent-amber);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.2);
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(0);
    opacity: 1;
}

.toast.hidden {
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
}

.toast-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-emerald);
    flex-shrink: 0;
}

.toast-content h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.15rem;
}

.toast-content p {
    font-size: 0.775rem;
    color: var(--text-secondary);
}

/* Utility / Animations */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .maintenance-wrapper {
        padding: 2rem 1rem;
    }

    .countdown-grid {
        gap: 0.4rem;
    }

    .time-card {
        min-width: 64px;
        padding: 0.6rem 0.5rem;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .time-separator {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .timer-target-info {
        font-size: 0.775rem;
        flex-direction: column;
        gap: 0.25rem;
    }

    .task-steps {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }

    .input-group input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-full);
        padding: 0.8rem 1.25rem 0.8rem 2.75rem;
    }

    .input-icon {
        position: absolute;
        left: 1.1rem;
        top: 0.95rem;
    }

    .notify-form .input-group {
        position: relative;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}
