/*
BARCOLA167 AMP - Ultra Realistic Lightning
Pure CSS - No SVG, No JS
*/

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

body {
    font-family: Arial, Helvetica, sans-serif;
    position: relative;
    background-color: #000000;
    background-image: radial-gradient(#3d3d3d 5%, transparent 50%);
    background-size: 5px 5px;
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(220, 240, 255, 0.7) 30%,
        rgba(150, 200, 255, 0.4) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    animation: primaryflash 5s infinite;
}

@keyframes primaryflash {
    0%, 70%, 100% { opacity: 0; }
    72% { opacity: 1; }
    73% { opacity: 0.2; }
    74% { opacity: 0.9; }
    75% { opacity: 0.1; }
    76% { opacity: 0.7; }
    77% { opacity: 0; }
    88% { opacity: 0; }
    89% { opacity: 0.6; }
    90% { opacity: 0; }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top,
        rgba(100, 180, 255, 0.3) 0%,
        rgba(80, 150, 255, 0.15) 40%,
        transparent 80%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: secondaryglow 5s infinite;
}

@keyframes secondaryglow {
    0%, 70%, 100% { opacity: 0; }
    72%, 78% { opacity: 1; }
    80% { opacity: 0.5; }
    82% { opacity: 0; }
    88%, 92% { opacity: 0.8; }
    94% { opacity: 0; }
}

.lightning {
    position: fixed;
    top: -120px;
    width: 80px;
    height: 700px;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
    animation: boltstrike 5s infinite;
    background: linear-gradient(180deg,
        #ffffff 0%,
        #ddf5ff 15%,
        #00ffff 30%,
        #80ffff 45%,
        #ffff00 60%,
        #ffd700 75%,
        #00ff40 90%);
    clip-path: polygon(
        45% 0%, 55% 5%, 48% 10%, 62% 15%, 50% 20%, 70% 28%, 52% 35%,
        75% 42%, 48% 50%, 68% 58%, 45% 65%, 60% 72%, 42% 78%, 55% 85%,
        40% 90%, 50% 95%, 38% 100%, 25% 88%, 35% 80%, 20% 72%,
        38% 60%, 18% 52%, 35% 42%, 15% 32%, 32% 22%, 12% 12%, 28% 5%
    );
    filter:
        drop-shadow(0 0 10px #ffffff)
        drop-shadow(0 0 25px #00ffff)
        drop-shadow(0 0 50px #ffff00)
        drop-shadow(0 0 80px #00ff40);
}

.lightning.l-1::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 60%;
    width: 30px;
    height: 200px;
    background: linear-gradient(180deg, #ffffff, #00ffff, transparent);
    clip-path: polygon(
        50% 0%, 70% 20%, 45% 35%, 65% 55%, 40% 70%, 55% 90%, 30% 100%,
        20% 80%, 35% 60%, 15% 40%, 30% 20%, 10% 0%
    );
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 15px #00ffff);
}

.lightning.l-1 { left: 8%; animation-delay: 0s; }
.lightning.l-2 { right: 8%; transform: scaleX(-1); animation-delay: 1.8s; }

.lightning.l-2::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 60%;
    width: 25px;
    height: 180px;
    background: linear-gradient(180deg, #ffffff, #ffff00, transparent);
    clip-path: polygon(
        50% 0%, 65% 25%, 40% 40%, 60% 60%, 35% 75%, 50% 100%,
        25% 80%, 40% 60%, 20% 35%, 35% 15%, 15% 0%
    );
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 15px #ffff00);
}

.lightning.l-3 {
    left: 50%;
    margin-left: -40px;
    width: 70px;
    height: 550px;
    animation-delay: 3.5s;
    background: linear-gradient(180deg,
        #ffffff 0%, #80ffff 25%, #00ffff 50%, #00ff40 75%, #ffff00 100%);
    clip-path: polygon(
        48% 0%, 60% 10%, 45% 20%, 65% 32%, 50% 42%, 70% 55%, 48% 65%,
        60% 75%, 42% 85%, 55% 95%, 40% 100%, 25% 88%, 38% 75%, 20% 62%,
        35% 50%, 18% 38%, 32% 25%, 15% 15%, 30% 5%
    );
}

@keyframes boltstrike {
    0%, 100% { opacity: 0; transform: translateY(0); }
    70% { opacity: 0; transform: translateY(0); }
    72% { opacity: 1; transform: translateY(0); }
    73% { opacity: 0.3; transform: translateY(40px); }
    74% { opacity: 1; transform: translateY(100px); }
    75% { opacity: 0.5; transform: translateY(180px); }
    76% { opacity: 1; transform: translateY(260px); }
    77% { opacity: 0.4; transform: translateY(340px); }
    78% { opacity: 1; transform: translateY(420px); }
    80% { opacity: 0.3; transform: translateY(500px); }
    82% { opacity: 0; transform: translateY(600px); }
    88% { opacity: 0; }
    89% { opacity: 0.9; transform: translateY(0); }
    90% { opacity: 0; transform: translateY(100px); }
}

@keyframes containershake {
    0%, 70%, 100% { transform: translate(0, 0); }
    72%, 78% { transform: translate(-3px, 2px); }
    73%, 77% { transform: translate(3px, -2px); }
    74%, 76% { transform: translate(-2px, -1px); }
    75% { transform: translate(2px, 1px); }
}

.container {
    animation: containershake 5s infinite;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    position: relative;
    z-index: 5;
}

header {
    text-align: center;
    margin-bottom: 15px;
    padding-top: 20px;
    position: relative;
    z-index: 5;
}

.logo-container {
    display: inline-block;
    position: relative;
    animation: logofloat 3s ease-in-out infinite;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 180%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 255, 0.3) 0%, transparent 70%);
    z-index: -1;
    animation: logohalo 4s ease-in-out infinite;
}

@keyframes logofloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes logohalo {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.3); }
}

.logo-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 255, 64, 0.8));
    animation: logoglow 1.5s ease-in-out infinite alternate;
}

@keyframes logoglow {
    from { filter: drop-shadow(0 0 15px rgba(0, 255, 64, 0.7)); }
    to { filter: drop-shadow(0 0 40px rgba(0, 255, 255, 1)); }
}

.welcome {
    max-width: 350px;
    margin: 15px auto;
    text-align: center;
    position: relative;
    z-index: 5;
}

.welcome-text {
    font-size: 12px;
    color: #ffffff;
    overflow: hidden;
    border-right: 2px solid #fbf4a0;
    white-space: nowrap;
    letter-spacing: 1px;
    animation: typing 3s steps(50, end), blinkcaret 1s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkcaret {
    from, to { border-color: transparent; }
    50% { border-color: #fbf4a0; }
}

.btn-daftar {
    padding: 14px;
    color: #000000;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(to bottom, #00ff40 0%, #18ba49 100%);
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 0 20px rgba(0, 255, 64, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
    animation: btnpulse 1.5s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

@keyframes btnpulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 64, 0.6), 0 0 40px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 64, 1), 0 0 70px rgba(0, 255, 255, 0.8);
        transform: scale(1.03);
    }
}

.btn-daftar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.8s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-container {
    text-align: center;
    margin: 15px 0;
    position: relative;
    z-index: 5;
}

.banner-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(0, 255, 64, 0.4) 0%, transparent 60%);
    z-index: -1;
    animation: bannerhalo 2s ease-in-out infinite alternate;
}

@keyframes bannerhalo {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 64, 0.9), 0 0 60px rgba(0, 255, 255, 0.5);
    animation: bannerfloat 3s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes bannerfloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.table-wrapper {
    width: 100%;
    margin-top: 20px;
    position: relative;
    z-index: 5;
}

.table-main {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
}

.table-header {
    background: linear-gradient(135deg, #00ff40 0%, #18ba49 100%);
    color: #000000;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 5px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-row td {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 10px 5px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.table-row td:first-child {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.link-btn {
    display: inline-block;
    padding: 8px 12px;
    color: #000000;
    text-decoration: none;
    background: linear-gradient(135deg, #00ff40 0%, #18ba49 100%);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 255, 64, 0.4);
    transition: all 0.3s ease;
}

.link-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 64, 0.9), 0 0 50px rgba(0, 255, 255, 0.7);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 25px;
    padding: 15px 0;
    font-size: 11px;
    position: relative;
    z-index: 5;
}

.copyright a {
    color: #00ff40;
    text-decoration: none;
    font-weight: 600;
}

.brand-text {
    background: linear-gradient(90deg, #00ff40, #00ffff, #ffffff, #00ffff, #00ff40);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: brandshine 2.5s linear infinite;
    display: inline-block;
}

@keyframes brandshine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.amp-badge {
    position: fixed;
    top: 5px;
    right: 5px;
    z-index: 999;
    background: #00ff40;
    color: #000000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: monospace;
}

@media (max-width: 440px) {
    .container {
        padding: 10px;
    }

    .btn-daftar {
        font-size: 13px;
        padding: 12px;
    }

    .table-header {
        font-size: 11px;
        padding: 8px 3px;
    }

    .table-row td:first-child {
        font-size: 10px;
    }

    .link-btn {
        font-size: 10px;
        padding: 6px 10px;
    }

    .welcome-text {
        font-size: 10px;
    }

    .lightning {
        width: 55px;
        height: 500px;
    }

    .lightning.l-3 {
        height: 420px;
        width: 50px;
        margin-left: -27px;
    }
}
