:root {
    --primary-green: #1b5e20;
    --secondary-gold: #ffd700;
    --pelita-glow: #ff8f00;
    --sampul-green: #06402b;
    --sampul-gold: #c5a059;
    --sampul-gold-light: #e0ca9e;
    --sampul-pattern-opacity: 0.1;
    --ketupat-light: #c8e6c9;
    --ketupat-dark: #2e7d32;
    --bg-light: #f1f8e9;
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --gold-gradient: linear-gradient(to bottom, #f3e5ab, #c5a059, #996515);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-image: url('../img/raya_soft_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Keep background static */
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Mobile-First Container */
.mobile-container {
    width: 100%;
    max-width: 500px;
    background: transparent;
    /* Transparent to show body background */
    min-height: 100vh;
    box-shadow: none;
    /* Removed shadow for seamless look */
    position: relative;
    overflow-x: hidden;
    padding-bottom: 90px;
}

/* Festive Header Style */
header {
    background: transparent;
    /* Made transparent to show theme background */
    color: var(--primary-green);
    /* Use theme color for text */
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    /* Removed border */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--secondary-gold);
}

/* Premium Card Style */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Festive Buttons */
.btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-gold);
    color: var(--primary-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

/* Pelita Glow Animation */
@keyframes pelita-flicker {
    0% {
        filter: drop-shadow(0 0 5px var(--pelita-glow));
        opacity: 0.9;
    }

    50% {
        filter: drop-shadow(0 0 15px var(--pelita-glow));
        opacity: 1;
    }

    100% {
        filter: drop-shadow(0 0 5px var(--pelita-glow));
        opacity: 0.9;
    }
}

.pelita {
    width: 30px;
    animation: pelita-flicker 2s infinite ease-in-out;
}

/* Ketupat Grid Background Element */
.ketupat-bg {
    display: none;
}


/* Ketupat Rain Animation */
.ketupat-rain {
    position: fixed;
    top: -50px;
    font-size: 2rem;
    color: var(--ketupat-light);
    animation: rain 10s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pelita-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 5px #ffd700);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        filter: drop-shadow(0 0 15px #ffd700);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 5px #ffd700);
    }
}

.wheel-hub {
    cursor: pointer;
    transition: filter 0.3s;
}

.wheel-hub:hover {
    filter: brightness(1.1);
}



.wheel-visual {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}



.role-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--secondary-gold) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.user-bottom-nav {
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    border-radius: 0;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Premium Circular Action Buttons */
.circular-role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.circular-role-btn:hover {
    transform: scale(1.1);
}

.circle-icon-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    padding: 5px;
    background: var(--gold-gradient);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.circle-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #06402b;
}

.button-icon {
    font-size: 3.5rem;
    color: var(--sampul-gold);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.action-label-premium {
    font-size: 0.8rem;
    font-weight: 850;
    line-height: 1.2;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

@keyframes rain {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Sliced "Minisite" Sampul Raya Design (Header, Body, Footer) */
.sampul-frame {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: #06402b;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.sampul-header-bg {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 5;
}

/* Shoutbox Vertical Scroll Animation */
.shout-scroll {
    animation: shout-vertical 30s linear infinite;
}

@keyframes shout-vertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.shout-scroll:hover {
    animation-play-state: paused;
}

.sampul-body-container {
    width: 100%;
    background: var(--sampul-body, url('../img/sampul_body.png')) repeat-y center top;
    background-size: 100% auto;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    margin-top: -1px;
}

/* Pattern Extension for Small Images */
.sampul-body-container::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 0;
    width: 100%;
    height: 150px;
    background: inherit;
    z-index: -1;
}

.sampul-inner-container {
    padding: 0 35px;
    margin-top: -240px;
    z-index: 20;
    text-align: center;
    position: relative;
}

.hero-festive-container {
    margin-bottom: 0;
    padding-top: 60px;
    animation: fadeInDown 1s ease-out;
}

.hero-festive-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(0,0,0,0.3);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-festive-subtitle {
    font-size: 0.85rem;
    color: var(--sampul-gold-light);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 10px;
    opacity: 0.9;
    font-weight: 700;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sampul-footer-bg {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 20;
    margin-top: 0;
}

.sampul-footer-bg img {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.sampul-footer-bg.footer-repeat {
    background-repeat: repeat;
    background-size: auto; /* Allow small images to stay small and repeat */
    background-position: left top;
}

.hero-title-mewah {
    font-size: 2.2rem;
    color: #c5a059;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.hero-subtitle-mewah {
    font-size: 0.7rem;
    color: #c5a059;
    margin-top: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.9;
}

/* Cleanup old classes */
.premium-gerbang-header,
.pointed-arch-container,
.premium-arch,
.filigree-bottom,
.sampul-pattern,
.lampu-pelita,
.star-deco,
.hero-text-container {
    display: none !important;
}

.gerbang-outer {
    position: relative;
    padding: 40px 20px;
    margin: 20px;
    background: rgba(6, 64, 43, 0.5);
    border: 2px solid var(--sampul-gold);
    clip-path: polygon(50% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
    /* Basic pointed shape fallback */
}

/* Custom Pointed Arch using SVG Clip-Path */
.premium-arch {
    display: none;
}

/* Replaced by image-header */

.pointed-arch-container {
    display: none;
}

/* Replaced by image-header */

.lampu-pelita {
    position: absolute;
    top: -10px;
    color: var(--sampul-gold);
    font-size: 1.8rem;
    animation: swing 3s ease-in-out infinite;
    transform-origin: top center;
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.8));
    z-index: 20;
}

.star-deco {
    position: absolute;
    color: var(--sampul-gold);
    font-size: 0.8rem;
    opacity: 0.6;
    animation: twinkle 2s infinite alternate;
}

@keyframes twinkle {
    from {
        opacity: 0.3;
        transform: scale(0.8);
    }

    to {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.filigree-bottom {
    display: none;
}

/* Replaced by image background */

@keyframes swing {

    0%,
    100% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }
}

/* Interactive Elements inside Arch */
.arch-content {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 20px;
    padding: 20px;
    margin-top: -20px;
    position: relative;
    z-index: 5;
}