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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        /* Prevent text size adjustment on iOS */
        html {
            -webkit-text-size-adjust: 100%;
            -ms-text-size-adjust: 100%;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        /* Language Toggle */
        .lang-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-radius: 50px;
            padding: 8px;
            box-shadow: 0 5px 20px rgba(130, 17, 49, 0.3);
            display: flex;
            gap: 5px;
        }

        /* Language Toggle Mobile - Bottom Position (Only on mobile) */
        @media (max-width: 768px) {
            .lang-toggle {
                top: auto !important;
                bottom: 90px;
                right: 15px;
                left: auto;
                padding: 4px;
                border-radius: 25px;
                box-shadow: 0 -2px 10px rgba(130, 17, 49, 0.25);
                z-index: 100;
                width: auto;
            }

            .lang-btn {
                padding: 6px 12px !important;
                font-size: 0.75em !important;
                min-width: 36px;
                min-height: 36px;
            }
        }

        .lang-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.9em;
            cursor: pointer;
            transition: all 0.3s;
            background: transparent;
            color: #821131;
        }

        .lang-btn.active {
            background: linear-gradient(135deg, #E85C0D, #C7253E);
            color: white;
            box-shadow: 0 3px 10px rgba(232, 92, 13, 0.4);
        }

        
       /* Landing page â€” center content vertically + horizontally */
        .landing-page {
            position: relative;
            overflow: hidden;
            min-height: 100vh;               /* full viewport height */
            display: flex;                   /* enable centering */
            align-items: center;             /* vertical center */
            justify-content: center;         /* horizontal center */
            padding: 20px;
        }

        /* ::before background kept as before */
        .landing-page::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(135deg, #821131 0%, #C7253E 35%, #E85C0D 70%, #FABC3F 100%),
                linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)),
                url('https://maahadintegrasimadad.onpay.my/media/uploads/Untitled design.jpg');
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center center;
            opacity: 1;
            z-index: 0;
            pointer-events: none;
        }

        /* Ensure landing content sits above background and is centered */
        .landing-content {
            position: relative;
            z-index: 10;
            text-align: center;      /* center text horizontally */
            max-width: 1000px;
            margin: 0;               /* REMOVE the old margin-top so centering works */
            padding-top: 20px;       /* optional small breathing room on very small screens */
        }

		/* Only hero/heading area text becomes white (soft shadow) */
        .landing-content .badge,
        .landing-content h1,
        .landing-content .subtitle,
        .stats-container {
            color: #ffffff !important;
            text-shadow: 0 3px 12px rgba(0,0,0,0.45);   /* soft, natural shadow */
        }

        /* Keep highlight (PERCUMA!) yellow and a slightly stronger shadow */
        .landing-content h1 .highlight {
            color: #FABC3F !important;
            text-shadow:
                0 3px 8px rgba(0,0,0,0.40),
                0 8px 20px rgba(0,0,0,0.25);
        }

        .decorative {
            display: none !important;
        }

        .badge {
            display: inline-block;
            background: rgba(250, 188, 63, 0.25);
            backdrop-filter: blur(15px);
            padding: 10px 25px;
            border-radius: 30px;
            font-weight: 700;
            margin-bottom: 30px;
            border: 2px solid rgba(255,255,255,0.3);
            box-shadow: 0 8px 25px rgba(0,0,0,0.2);
            font-size: 0.95em;
        }

        h1 {
            font-size: 3.5em;
            font-weight: 900;
            margin-bottom: 20px;
            line-height: 1.1;
            text-shadow: 3px 3px 10px rgba(0,0,0,0.3);
        }

        h1 .highlight {
            color: #FABC3F;
            text-shadow: 3px 3px 15px rgba(250, 188, 63, 0.5);
        }

        .subtitle {
            font-size: 1.3em;
            margin-bottom: 40px;
            opacity: 0.95;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
            line-height: 1.6;
        }

        .stats-container {
            display: flex;
            gap: 20px;
            justify-content: center;
            margin-bottom: 45px;
            flex-wrap: wrap;
        }

        .stat-box {
            background: rgba(250, 188, 63, 0.2);
            backdrop-filter: blur(15px);
            padding: 20px 35px;
            border-radius: 20px;
            border: 2px solid rgba(255,255,255,0.25);
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s;
            min-width: 140px;
        }

        .stat-box:hover {
            transform: translateY(-5px);
        }

        .stat-number {
            font-size: 2.5em;
            font-weight: 900;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
        }

        .stat-label {
            font-size: 0.85em;
            opacity: 0.9;
            font-weight: 600;
        }

        .cta-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        .card {
            background: white;
            border-radius: 25px;
            padding: 35px;
            box-shadow: 0 20px 60px rgba(130, 17, 49, 0.4);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 3px solid transparent;
        }

        .card:hover {
            transform: translateY(-10px) scale(1.02);
            border-color: #FABC3F;
        }

        .card-icon {
            width: 70px;
            height: 70px;
            background: linear-gradient(135deg, #E85C0D, #C7253E);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.2em;
            margin: 0 auto 20px auto;
            box-shadow: 0 8px 25px rgba(232, 92, 13, 0.4);
        }

        .card h3 {
            color: #821131;
            font-size: 1.6em;
            margin-bottom: 15px;
            font-weight: 800;
        }

        .card p {
            color: #555;
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .card ul {
            list-style: none;
            color: #333;
        }

        .card ul li {
            padding: 8px 0;
            font-weight: 600;
            font-size: 0.95em;
        }

        .btn {
            display: inline-block;
            padding: 16px 35px;
            background: linear-gradient(135deg, #E85C0D, #C7253E, #821131);
            color: white;
            text-decoration: none;
            border-radius: 15px;
            font-weight: 800;
            font-size: 1em;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 8px 25px rgba(130, 17, 49, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(130, 17, 49, 0.6);
        }

        .btn-full {
            width: 100%;
        }

        .admin-link {
            color: rgba(255,255,255,0.85);
            text-decoration: underline;
            cursor: pointer;
            font-size: 0.95em;
            font-weight: 600;
        }

        .admin-link:hover {
            color: #FABC3F;
        }

        /* Form Page */
        .form-page {
            min-height: 100vh;
            background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
            padding: 40px 20px;
        }

        .form-container {
            max-width: 700px;
            margin: 0 auto;
            margin-top: 60px;
        }

        .back-btn {
            color: #821131;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 25px;
            font-weight: 700;
            font-size: 1em;
        }

        .back-btn:hover {
            color: #C7253E;
        }

        .form-card {
            background: white;
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(130, 17, 49, 0.15);
            border: 3px solid #FABC3F;
        }

        .form-header {
            background: linear-gradient(135deg, #821131, #C7253E);
            padding: 40px 30px;
            color: white;
        }

        .form-header h2 {
            font-size: 2.2em;
            margin-bottom: 10px;
            font-weight: 900;
        }

        .form-header p {
            opacity: 0.95;
            font-size: 1em;
        }

        .form-body {
            padding: 35px 30px;
        }

        .form-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            font-weight: 700;
            color: #821131;
            margin-bottom: 10px;
            font-size: 0.95em;
        }

        .required {
            color: #C7253E;
        }

        input[type="text"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        select {
            width: 100%;
            padding: 15px;
            border: 3px solid #ffe8cc;
            border-radius: 12px;
            font-size: 1em;
            transition: all 0.3s;
            background: #fffbf5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #FABC3F;
            box-shadow: 0 0 0 4px rgba(250, 188, 63, 0.15);
            background: white;
        }
        
        select {
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23821131' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center;
            padding-right: 45px;
        }

        .kategori-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
        }

        .kategori-item {
            padding: 18px;
            border: 3px solid #ffe8cc;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s;
            background: #fffbf5;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .kategori-item:hover {
            border-color: #FABC3F;
            background: #fff5e6;
            transform: translateY(-2px);
        }

        .kategori-item.selected {
            border-color: #E85C0D;
            background: linear-gradient(135deg, #fff5e6, #ffe8cc);
            box-shadow: 0 5px 15px rgba(232, 92, 13, 0.2);
        }

        .kategori-icon {
            font-size: 1.6em;
        }

        .kategori-label {
            font-weight: 700;
            color: #821131;
            font-size: 0.9em;
        }

        /* Reward Page */
        .reward-page {
            min-height: 100vh;
            background: linear-gradient(135deg, #821131, #C7253E, #E85C0D);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .reward-card {
            max-width: 750px;
            width: 100%;
            background: white;
            border-radius: 30px;
            overflow: hidden;
            box-shadow: 0 30px 80px rgba(0,0,0,0.4);
            border: 4px solid #FABC3F;
            margin-top: 60px;
        }

        .reward-header {
            padding: 45px 30px;
            text-align: center;
            color: white;
        }

        .reward-icon {
            font-size: 4.5em;
            margin-bottom: 20px;
            animation: bounce 1.5s infinite;
        }

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

        .reward-header h2 {
            font-size: 2.8em;
            margin-bottom: 10px;
            font-weight: 900;
        }

        .reward-body {
            padding: 35px 30px;
        }

        .reward-title {
            text-align: center;
            margin-bottom: 30px;
        }

        .reward-title h3 {
            font-size: 1.8em;
            background: linear-gradient(135deg, #821131, #C7253E);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 10px;
            font-weight: 900;
        }

        .reward-title p {
            color: #E85C0D;
            font-weight: 700;
            font-size: 1.05em;
        }

        .reward-items {
            background: linear-gradient(135deg, #fff5e6, #ffe8cc);
            border-radius: 18px;
            padding: 28px;
            margin-bottom: 25px;
            border: 3px solid #FABC3F;
        }

        .reward-items h4 {
            color: #821131;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.15em;
            font-weight: 800;
        }

        .reward-items ul {
            list-style: none;
        }

        .reward-items li {
            padding: 12px 0;
            color: #333;
            display: flex;
            align-items: flex-start;
            gap: 15px;
            font-weight: 600;
            font-size: 0.95em;
        }

        .check-icon {
            color: #E85C0D;
            font-weight: 900;
            margin-top: 2px;
            font-size: 1.2em;
            flex-shrink: 0;
        }

        .info-box {
            background: linear-gradient(135deg, #fff9e6, #ffedd5);
            border: 3px solid #FABC3F;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .info-box-content {
            display: flex;
            gap: 15px;
        }

        .info-icon {
            font-size: 2em;
            flex-shrink: 0;
        }

        .info-box h5 {
            color: #821131;
            margin-bottom: 15px;
            font-size: 1.1em;
            font-weight: 800;
        }

        .info-box ol {
            margin-left: 18px;
            color: #333;
        }

        .info-box li {
            padding: 6px 0;
            font-weight: 600;
            font-size: 0.9em;
        }

        .ayat-box {
            background: linear-gradient(135deg, #821131, #C7253E);
            border-radius: 15px;
            padding: 28px;
            text-align: center;
            color: white;
            margin-bottom: 25px;
            box-shadow: 0 10px 30px rgba(130, 17, 49, 0.3);
        }

        .ayat-box p {
            margin-bottom: 10px;
            font-size: 1.05em;
            font-weight: 600;
            line-height: 1.6;
        }

        .ayat-box small {
            opacity: 0.9;
            font-size: 0.9em;
        }

        /* Admin Dashboard */
        .admin-page {
            min-height: 100vh;
            background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
            padding: 30px 20px;
            padding-bottom: 80px; /* Space for bottom nav */
            position: relative;
        }

        /* Enhanced Admin Container */
        .admin-page .container {
            max-width: 1400px;
        }

        /* Mobile Header */
        .admin-mobile-header {
            display: none;
            position: sticky;
            top: 0;
            z-index: 100;
            background: linear-gradient(135deg, #821131, #C7253E);
            color: white;
            padding: 15px 20px;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin: 0 -15px 15px -15px;
        }

        .admin-mobile-header h2 {
            margin: 0;
            font-size: 1.2em;
            font-weight: 700;
            flex: 1;
            text-align: center;
        }

        .mobile-menu-btn {
            background: none;
            border: none;
            color: white;
            font-size: 1.5em;
            cursor: pointer;
            padding: 8px;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            -webkit-tap-highlight-color: rgba(255,255,255,0.2);
        }

        .mobile-menu-btn {
            flex-direction: column;
            gap: 5px;
            position: relative;
        }

        .mobile-menu-btn span {
            width: 26px;
            height: 3px;
            background: white;
            border-radius: 3px;
            transition: all 0.3s ease;
            display: block;
        }

        /* Hamburger Animation */
        .mobile-menu-btn.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        .mobile-menu-btn.active span:nth-child(2) {
            opacity: 0;
            transform: translateX(-10px);
        }

        .mobile-menu-btn.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }

        /* Mobile Menu */
        .mobile-menu {
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 300px;
            max-width: 85vw;
            height: 100vh;
            background: white;
            z-index: 1001;
            box-shadow: 2px 0 20px rgba(0,0,0,0.15);
            transform: translateX(-100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .mobile-menu.active {
            transform: translateX(0);
        }

        .mobile-menu-header {
            background: linear-gradient(135deg, #821131, #C7253E);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-menu-header h3 {
            margin: 0;
            font-size: 1.3em;
        }

        .mobile-menu-header button {
            background: none;
            border: none;
            color: white;
            font-size: 1.5em;
            cursor: pointer;
            padding: 5px;
            min-width: 44px;
            min-height: 44px;
        }

        .mobile-menu-content {
            padding: 20px 0;
        }

        .mobile-menu-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            color: #821131;
            text-decoration: none;
            border: none;
            background: none;
            width: 100%;
            text-align: left;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 3px solid transparent;
        }

        .mobile-menu-item:hover,
        .mobile-menu-item:active {
            background: #fff5e6;
            border-left-color: #E85C0D;
            padding-left: 23px;
        }

        .mobile-menu-item span:first-child {
            font-size: 1.4em;
            width: 32px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-menu-item span:first-child {
            font-size: 1.3em;
        }

        /* Mobile Filter Toggle */
        .mobile-filter-toggle {
            display: none;
            background: white;
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            align-items: center;
            gap: 12px;
            font-weight: 700;
            color: #821131;
            cursor: pointer;
            -webkit-tap-highlight-color: rgba(130, 17, 49, 0.1);
            transition: all 0.2s ease;
            border: 2px solid transparent;
        }

        .mobile-filter-toggle:active {
            background: #fff5e6;
            border-color: #E85C0D;
            transform: scale(0.98);
        }

        .mobile-filter-toggle span:first-child {
            font-size: 1.3em;
        }

        .mobile-filter-toggle span:first-child {
            font-size: 1.3em;
        }

        /* Mobile Bottom Navigation */
        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 2px solid #ffe8cc;
            padding: 8px 0 max(8px, env(safe-area-inset-bottom));
            z-index: 99;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }

        .mobile-bottom-nav .nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: #821131;
            padding: 8px 4px;
            font-size: 0.7em;
            font-weight: 600;
            cursor: pointer;
            -webkit-tap-highlight-color: rgba(130, 17, 49, 0.1);
            transition: all 0.2s ease;
            position: relative;
            min-height: 60px;
            justify-content: center;
        }

        .mobile-bottom-nav .nav-item svg {
            width: 22px;
            height: 22px;
            transition: all 0.2s ease;
            stroke: currentColor;
            flex-shrink: 0;
        }

        .mobile-bottom-nav .nav-item span {
            font-size: 0.7em;
            font-weight: 600;
            margin-top: 2px;
        }

        .mobile-bottom-nav .nav-item:active {
            color: #E85C0D;
        }

        .mobile-bottom-nav .nav-item:active svg {
            transform: scale(1.15);
            stroke-width: 2.5;
        }

        .mobile-bottom-nav .nav-item::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 40px;
            height: 3px;
            background: #E85C0D;
            border-radius: 2px 2px 0 0;
            transition: transform 0.2s ease;
        }

        .mobile-bottom-nav .nav-item:active::after {
            transform: translateX(-50%) scaleX(1);
        }

        /* Participants Mobile Card View */
        .participants-mobile-view {
            display: none;
        }

        .participant-card {
            background: white;
            border-radius: 15px;
            padding: 18px;
            margin-bottom: 15px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            border: 2px solid #ffe8cc;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .participant-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(180deg, #821131, #C7253E, #E85C0D);
            transform: scaleY(0);
            transition: transform 0.3s ease;
        }

        .participant-card:active {
            transform: scale(0.98);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .participant-card:active::before {
            transform: scaleY(1);
        }

        .participant-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            padding-bottom: 12px;
            border-bottom: 2px solid #ffe8cc;
            gap: 10px;
        }

        .participant-card-header h3 {
            flex: 1;
            margin: 0;
            color: #821131;
            font-size: 1.1em;
            line-height: 1.3;
        }

        .participant-card-header p {
            margin: 5px 0 0 0;
            color: #666;
            font-size: 0.85em;
        }

        .participant-card-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .participant-info-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 0.9em;
            padding: 8px 0;
            border-bottom: 1px solid #ffe8cc;
        }

        .participant-info-row:last-child {
            border-bottom: none;
        }

        .info-label {
            font-weight: 700;
            color: #821131;
            min-width: 90px;
            flex-shrink: 0;
        }

        .info-value {
            color: #333;
            flex: 1;
            word-break: break-word;
        }

        /* Hide/Show Views */
        .participants-table-view {
            display: block;
        }

        .admin-header-actions {
            display: flex;
            gap: 10px;
        }

        .admin-header {
            background: linear-gradient(135deg, #821131, #C7253E);
            border-radius: 20px;
            padding: 35px 30px;
            color: white;
            margin-bottom: 30px;
            margin-top: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            box-shadow: 0 15px 40px rgba(130, 17, 49, 0.3);
        }

        .admin-header h2 {
            font-size: 2.2em;
            margin-bottom: 5px;
            font-weight: 900;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .admin-header p {
            opacity: 0.95;
            font-size: 1em;
            margin: 0;
        }

        .admin-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 18px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            border-radius: 15px;
            padding: 25px 20px;
            box-shadow: 0 5px 20px rgba(130, 17, 49, 0.1);
            border: 3px solid #ffe8cc;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-align: center;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #821131, #C7253E, #E85C0D);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            border-color: #FABC3F;
            box-shadow: 0 10px 30px rgba(130, 17, 49, 0.2);
        }

        .stat-card:hover::before {
            transform: scaleX(1);
        }

        .stat-card-number {
            font-size: 2.5em;
            font-weight: 900;
            background: linear-gradient(135deg, #821131, #E85C0D);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-card-label {
            color: #666;
            font-size: 0.85em;
            font-weight: 600;
        }

        .actions-box {
            background: white;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 20px rgba(130, 17, 49, 0.1);
            border: 3px solid #ffe8cc;
            transition: all 0.3s ease;
        }

        .actions-box:hover {
            box-shadow: 0 8px 25px rgba(130, 17, 49, 0.15);
        }

        .admin-quick-actions {
            background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,248,245,0.98));
            border: 3px solid #FABC3F;
        }

        table {
            width: 100%;
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 20px rgba(130, 17, 49, 0.1);
            border: 3px solid #ffe8cc;
            border-collapse: separate;
            border-spacing: 0;
        }

        thead {
            background: linear-gradient(135deg, #821131, #C7253E);
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        th {
            padding: 18px 15px;
            text-align: left;
            font-weight: 800;
            font-size: 0.85em;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        tbody tr {
            transition: all 0.2s ease;
        }

        tbody tr:hover {
            background: #fff5e6;
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        td {
            padding: 18px 15px;
            border-bottom: 2px solid #ffe8cc;
            font-size: 0.9em;
        }

        tbody tr:hover {
            background: #fff5e6;
        }

        .tag {
            display: inline-block;
            background: linear-gradient(135deg, #ffe8cc, #ffd9a3);
            color: #821131;
            padding: 5px 12px;
            border-radius: 8px;
            font-size: 0.8em;
            font-weight: 700;
            margin-right: 5px;
            margin-bottom: 5px;
            border: 2px solid #FABC3F;
        }

        .hidden {
            display: none !important;
        }

        /* Mobile Optimizations */
        @media (max-width: 768px) {
            .decorative {
                font-size: 80px;
            }

            .decorative.top {
                top: 30px;
                left: 20px;
            }

            .decorative.bottom {
                bottom: 30px;
                right: 20px;
            }

            /* Language toggle stays at top for desktop, moved to bottom in mobile section */

            h1 {
                font-size: 2.2em;
            }
            
            .subtitle {
                font-size: 1.1em;
            }

            .stat-box {
                padding: 18px 28px;
                min-width: 120px;
            }

            .stat-number {
                font-size: 2em;
            }

            .stat-label {
                font-size: 0.8em;
            }
            
            .cta-cards {
                grid-template-columns: 1fr;
            }

            .card {
                padding: 28px;
            }

            .card h3 {
                font-size: 1.4em;
            }

            .form-header {
                padding: 30px 25px;
            }

            .form-header h2 {
                font-size: 1.8em;
            }

            .form-body {
                padding: 28px 20px;
            }

            .kategori-grid {
                grid-template-columns: 1fr;
            }

            .reward-header {
                padding: 35px 25px;
            }

            .reward-header h2 {
                font-size: 2.2em;
            }

            .reward-body {
                padding: 28px 20px;
            }

            .reward-title h3 {
                font-size: 1.5em;
            }

            .info-box-content {
                flex-direction: column;
                gap: 10px;
            }

            .admin-header {
                padding: 25px 20px;
            }

            .admin-header h2 {
                font-size: 1.8em;
            }

            .admin-stats {
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            }
            
            table {
                font-size: 0.8em;
                display: block;
                overflow-x: auto;
            }
            
            th, td {
                padding: 12px 10px;
                white-space: nowrap;
            }
        }

        @media (max-width: 480px) {
            h1 {
                font-size: 1.8em;
            }

            .subtitle {
                font-size: 1em;
            }

            .badge {
                font-size: 0.85em;
                padding: 8px 20px;
            }

            .btn {
                padding: 14px 28px;
                font-size: 0.95em;
            }

            .card-icon {
                width: 60px;
                height: 60px;
                font-size: 2em;
            }
        }

        /* Enhanced Mobile Responsive Styles */
        @media (max-width: 768px) {
            .admin-page {
                padding: 0;
                padding-bottom: 80px;
            }

            .container {
                padding: 15px;
            }

            /* Show Mobile Elements */
            .admin-mobile-header {
                display: flex;
                margin: 0 -15px 15px -15px;
            }

            .mobile-filter-toggle {
                display: flex;
                margin-bottom: 15px;
            }

            .mobile-bottom-nav {
                display: flex !important;
            }

            .participants-mobile-view {
                display: block;
            }

            /* Better spacing on mobile */
            .admin-page .container {
                padding: 15px;
            }

            .admin-stats {
                margin: 0 -15px 20px -15px;
                padding: 0 15px;
            }

            /* Hide Desktop Elements */
            .admin-header {
                display: none;
            }

            .admin-quick-actions {
                display: none;
            }

            .participants-table-view {
                display: none;
            }

            /* Filter Panel */
            .admin-filter-panel {
                display: none;
                margin-bottom: 15px;
                animation: slideDown 0.3s ease;
            }

            .admin-filter-panel.active {
                display: block;
            }

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

            /* Admin Dashboard Mobile */
            .admin-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start !important;
            }

            .admin-header > div:last-child {
                width: 100%;
                display: flex;
                gap: 10px;
            }

            .admin-header .btn {
                flex: 1;
                padding: 12px 15px;
                font-size: 0.9em;
            }

            .admin-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }

            .admin-stats .stat-card:first-child {
                grid-column: 1 / -1; /* Full width for first stat */
            }

            .stat-card {
                padding: 15px;
            }

            .stat-card-number {
                font-size: 1.8em;
            }

            .stat-card-label {
                font-size: 0.75em;
            }

            .actions-box {
                padding: 20px 15px;
            }

            .actions-box form {
                grid-template-columns: 1fr !important;
            }

            /* Table Mobile - Horizontal Scroll */
            /* Table Mobile - Horizontal Scroll with Better UX */
            table {
                display: block;
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                font-size: 0.85em;
                border-collapse: separate;
                border-spacing: 0;
            }

            table thead {
                display: table-header-group;
            }

            table tbody {
                display: table-row-group;
            }

            table tr {
                display: table-row;
            }

            table th,
            table td {
                padding: 10px 8px;
                word-wrap: break-word;
                white-space: normal;
            }

            table th {
                font-size: 0.85em;
                position: sticky;
                top: 0;
                background: #821131;
                color: white;
                z-index: 10;
            }

            /* Table wrapper for better scrolling */
        .table-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            margin: 0 -15px 20px -15px;
            padding: 0 15px;
            border-radius: 15px;
        }

        .table-wrapper::-webkit-scrollbar {
            height: 8px;
        }

        .table-wrapper::-webkit-scrollbar-track {
            background: #ffe8cc;
            border-radius: 4px;
        }

        .table-wrapper::-webkit-scrollbar-thumb {
            background: linear-gradient(90deg, #821131, #C7253E);
            border-radius: 4px;
        }

        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(90deg, #C7253E, #E85C0D);
        }

            /* Modal Mobile */
            .modal-content {
                width: 95% !important;
                margin: 10% auto !important;
                padding: 20px !important;
                max-height: 90vh !important;
            }

            .modal-content h2 {
                font-size: 1.5em !important;
            }

            .modal-content h3 {
                font-size: 1.1em !important;
            }

            /* Form Mobile */
            .form-group {
                margin-bottom: 18px;
            }

            input[type="text"],
            input[type="email"],
            input[type="tel"],
            input[type="number"],
            input[type="password"],
            select,
            textarea {
                font-size: 16px !important; /* Prevents zoom on iOS */
                padding: 14px !important;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
                border-radius: 8px;
            }

            /* Better select styling on mobile */
            select {
                background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23821131' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
                background-repeat: no-repeat;
                background-position: right 12px center;
                padding-right: 40px;
            }

            /* Touch-friendly buttons */
            .btn,
            button {
                min-height: 44px;
                min-width: 44px;
                padding: 12px 20px;
                font-size: 1em;
                -webkit-tap-highlight-color: rgba(130, 17, 49, 0.2);
            }

            /* Kategori Grid Mobile */
            .kategori-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .kategori-item {
                padding: 15px;
                min-height: 60px;
            }

            /* Pagination Mobile */
            .pagination {
                flex-wrap: wrap;
                justify-content: center;
                gap: 5px;
            }

            .pagination a,
            .pagination span {
                padding: 10px 15px;
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 12px;
            }

            /* Language Toggle Mobile */
            /* Language toggle styles handled in mobile section above */

            /* Landing Page Mobile */
            .landing-content {
                padding: 15px;
            }

            h1 {
                font-size: 1.6em;
                line-height: 1.3;
            }

            .subtitle {
                font-size: 0.95em;
            }

            .stats-container {
                flex-direction: column;
                gap: 15px;
            }

            .stat-box {
                width: 100%;
                padding: 15px 20px;
            }

            /* Cards Mobile */
            .cta-cards {
                gap: 15px;
            }

            .card {
                padding: 20px;
            }

            /* Admin Stats Mobile - 2 Grid Per Row, First One Full Width */
            .admin-stats {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .admin-stats .stat-card:first-child {
                grid-column: 1 / -1; /* Full width for first stat */
            }

            .stat-card {
                padding: 12px;
            }

            .stat-card-number {
                font-size: 1.5em;
            }

            .stat-card-label {
                font-size: 0.7em;
            }

            /* Mobile Menu Overlay */
            .mobile-menu-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(0,0,0,0.5);
                z-index: 999;
                opacity: 0;
                transition: opacity 0.3s ease;
            }

            .mobile-menu-overlay.active {
                display: block;
                opacity: 1;
            }

            /* Participant Cards Mobile */
            .participant-card {
                padding: 15px;
            }

            .participant-card-header h3 {
                font-size: 1em;
            }

        .participant-badge {
            font-size: 0.85em !important;
            padding: 8px 14px !important;
            border-radius: 20px !important;
            white-space: nowrap;
            flex-shrink: 0;
        }

            /* Stats Mobile - 2 Grid Per Row, First One Full Width */
            .admin-stats {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
                margin: 0 0 20px 0;
                padding: 0;
                overflow: visible;
            }

            .admin-stats .stat-card:first-child {
                grid-column: 1 / -1; /* Full width for first stat */
            }

            .stat-card {
                min-width: 0; /* Remove min-width to allow proper grid sizing */
            }

            /* Table Mobile - Smaller */
            table {
                font-size: 0.75em;
            }

            table th,
            table td {
                padding: 8px 5px;
                font-size: 0.85em;
            }

            /* Hide less important columns on very small screens */
            table th:nth-child(4),
            table td:nth-child(4),
            table th:nth-child(5),
            table td:nth-child(5) {
                display: none;
            }

            /* Show important columns */
            table th:nth-child(1),
            table td:nth-child(1),
            table th:nth-child(2),
            table td:nth-child(2),
            table th:nth-child(3),
            table td:nth-child(3),
            table th:nth-child(6),
            table td:nth-child(6),
            table th:nth-child(7),
            table td:nth-child(7),
            table th:nth-child(8),
            table td:nth-child(8) {
                display: table-cell;
            }

            /* Modal Mobile - Full Screen Style */
            .modal {
                padding: 0 !important;
                background-color: rgba(0,0,0,0.7) !important;
            }

            .modal-content {
                width: 100% !important;
                height: 100vh !important;
                max-height: 100vh !important;
                margin: 0 !important;
                border-radius: 0 !important;
                padding: 15px !important;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
                border: none !important;
            }

            .modal-content h2 {
                font-size: 1.3em !important;
                margin-bottom: 15px !important;
            }

            .modal-content h3 {
                font-size: 1em !important;
                margin-bottom: 12px !important;
            }

            /* Modal form mobile */
            .modal-content form {
                grid-template-columns: 1fr !important;
                gap: 12px !important;
            }

            /* Modal table mobile */
            .modal-content table {
                font-size: 0.8em;
                min-width: 600px;
            }

            .modal-content table th,
            .modal-content table td {
                padding: 8px 6px;
                font-size: 0.85em;
            }

            /* Modal list containers - ensure horizontal scroll */
            #locationList,
            #categoryList {
                overflow-x: auto !important;
                overflow-y: auto !important;
                -webkit-overflow-scrolling: touch;
            }

            #locationList > div,
            #categoryList > div {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* Sticky action column on mobile */
            #locationList table th:last-child,
            #locationList table td:last-child,
            #categoryList table th:last-child,
            #categoryList table td:last-child {
                position: sticky;
                right: 0;
                background: white;
                z-index: 5;
            }

            #locationList table thead th:last-child,
            #categoryList table thead th:last-child {
                background: linear-gradient(135deg, #821131, #C7253E) !important;
                z-index: 6;
            }

            /* Action buttons mobile */
            #locationList .edit-location-btn,
            #locationList .delete-location-btn,
            #categoryList .edit-category-btn,
            #categoryList .delete-category-btn {
                min-width: 60px !important;
                padding: 8px 10px !important;
                font-size: 0.8em !important;
                white-space: nowrap;
            }

            /* Mobile card views for locations and categories */
            .location-card-mobile,
            .category-card-mobile {
                box-shadow: 0 2px 8px rgba(0,0,0,0.1);
                transition: transform 0.2s ease, box-shadow 0.2s ease;
            }

            .location-card-mobile:active,
            .category-card-mobile:active {
                transform: scale(0.98);
                box-shadow: 0 1px 4px rgba(0,0,0,0.15);
            }

            .location-card-mobile button,
            .category-card-mobile button {
                transition: all 0.2s ease;
            }

            .location-card-mobile button:active,
            .category-card-mobile button:active {
                transform: scale(0.95);
            }

            /* Gradient Preset Selection */
            .gradient-preset {
                transition: all 0.2s ease;
            }

            .gradient-preset:hover {
                transform: scale(1.05);
                box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            }

            .gradient-preset[style*="border: 3px solid #821131"] {
                box-shadow: 0 0 0 2px rgba(130, 17, 49, 0.3);
            }

            /* Mobile gradient presets */
            @media (max-width: 768px) {
                #gradientPresets {
                    grid-template-columns: repeat(2, 1fr) !important;
                }

                .gradient-preset {
                    height: 50px !important;
                }

                .gradient-preset span {
                    font-size: 0.65em !important;
                }

                #gradientPreview {
                    width: 80px !important;
                    height: 40px !important;
                }
            }

            /* Form Mobile */
            .form-header {
                padding: 20px 15px;
            }

            .form-header h2 {
                font-size: 1.5em;
            }

            .form-body {
                padding: 20px 15px;
            }

            /* Form inputs mobile */
            .form-group label {
                font-size: 0.9em;
            }

            /* Tag mobile */
            .tag {
                font-size: 0.75em;
                padding: 4px 8px;
                margin: 2px;
            }

            /* Reward Page Mobile */
            .reward-header {
                padding: 25px 15px;
            }

            .reward-header h2 {
                font-size: 1.8em;
            }

            .reward-body {
                padding: 20px 15px;
            }
        }

        /* Tablet Styles */
        @media (min-width: 481px) and (max-width: 768px) {
            .admin-stats {
                grid-template-columns: repeat(3, 1fr);
            }

            .kategori-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .actions-box form {
                grid-template-columns: repeat(2, 1fr) !important;
            }
        }

        /* Touch Device Optimizations */
        @media (hover: none) and (pointer: coarse) {
            /* Larger touch targets */
            .btn,
            button,
            .kategori-item,
            .lang-btn,
            input[type="checkbox"],
            input[type="radio"] {
                min-height: 44px;
                min-width: 44px;
            }

            /* Remove hover effects on touch devices */
            .btn:hover,
            button:hover,
            .kategori-item:hover {
                transform: none;
                box-shadow: none;
            }

            /* Better tap feedback */
            .btn:active,
            button:active,
            .kategori-item:active {
                transform: scale(0.97);
                opacity: 0.9;
            }

            /* Better checkbox/radio on touch */
            input[type="checkbox"],
            input[type="radio"] {
                width: 20px;
                height: 20px;
                min-width: 20px;
                min-height: 20px;
            }
        }

        /* Safe area for notched devices */
        @supports (padding: max(0px)) {
            .container,
            .modal-content {
                padding-left: max(15px, env(safe-area-inset-left));
                padding-right: max(15px, env(safe-area-inset-right));
            }

            .lang-toggle {
                top: max(20px, env(safe-area-inset-top));
                right: max(20px, env(safe-area-inset-right));
            }
        }

        /* Landscape Mobile */
        @media (max-width: 768px) and (orientation: landscape) {
            .modal-content {
                max-height: 95vh !important;
            }

            .landing-page {
                min-height: auto;
                padding: 20px;
            }
        }

        /* Print Styles */
        @media print {
            .lang-toggle,
            .btn,
            button {
                display: none !important;
            }

            .admin-page {
                background: white;
            }
        }
    
