/* Font lokal: menjaga tampilan futuristik tetap konsisten tanpa internet. */
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Orbitron-Variable-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Orbitron-Variable-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/Orbitron-Variable-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/Rajdhani-Light-300-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Rajdhani-Medium-500-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/Rajdhani-Bold-700-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/PlayfairDisplay-Variable-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/PlayfairDisplay-Variable-Latin.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 900; font-display: swap; src: url('fonts/PlayfairDisplay-Variable-Latin.woff2') format('woff2'); }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Rajdhani', sans-serif;
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0d2137 100%);
            min-height: 100vh;
            min-height: 100dvh;
            color: #e0f7fa;
            overflow-x: hidden;
            padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
        }
        
        /* Fullscreen styles */
        :fullscreen {
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0d2137 100%);
        }
        
        :-webkit-full-screen {
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0d2137 100%);
        }
        
        :-moz-full-screen {
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0d2137 100%);
        }
        
        .ocean-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at 20% 80%, rgba(0, 100, 200, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(0, 150, 200, 0.1) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        
        .container {
            position: relative;
            z-index: 1;
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
            display: none;
            width: 100%;
            box-sizing: border-box;
        }
        
        .container.logged-in {
            display: block;
        }
        
        /* Login Screen */
        .login-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            min-height: 100vh;
            min-height: 100dvh; /* Dynamic viewport height for mobile */
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 50%, #0d2137 100%);
            z-index: 3000;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
        
        /* Login Background Logo - Transparan */
        .login-bg-logo {
            position: absolute;
            top: 60px;
            left: 50%;
            transform: translateX(-50%);
            max-width: 250px;
            max-height: 150px;
            opacity: 0.15;
            pointer-events: none;
            z-index: 1;
            filter: blur(0.5px);
        }

        /* Login Banner */
        .login-banner-wrapper {
            width: 100%;
            text-align: center;
            margin-bottom: 20px;
            flex-shrink: 0;
        }

        .login-banner {
            width: 100%;
            max-height: 150px;
            object-fit: cover;
            object-position: center;
            border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        }
        
        /* Sponsor Logos Container - Login Screen */
        .sponsor-logins-container {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 30px;
            flex-wrap: wrap;
            max-width: 90%;
            z-index: 10;
        }
        
        .sponsor-login-logo {
            height: 60px;
            width: auto;
            max-width: 150px;
            object-fit: contain;
            filter: drop-shadow(0 2px 10px rgba(0, 212, 255, 0.3));
            transition: transform 0.3s;
        }
        
        .sponsor-login-logo:hover {
            transform: scale(1.1);
        }
        
        .login-box {
            background: rgba(10, 25, 47, 0.95);
            border: 2px solid #00d4ff;
            border-radius: 20px;
            padding: 40px;
            width: 90%;
            max-width: 400px;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
            margin-top: 220px;
            position: relative;
            z-index: 10;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-sizing: border-box;
        }
        
        .login-logo {
            width: 120px;
            height: 120px;
            object-fit: contain;
            margin: 0 auto 15px auto;
            border-radius: 10px;
            display: block;
            filter: drop-shadow(0 4px 15px rgba(0, 212, 255, 0.4));
        }
        
        .login-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.8em;
            color: #00d4ff;
            margin-bottom: 10px;
        }
        
        .login-subtitle {
            color: #80deea;
            margin-bottom: 30px;
            font-size: 0.9em;
        }
        
        .login-input {
            width: 100%;
            padding: 15px;
            margin-bottom: 15px;
            background: rgba(0, 30, 60, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            color: #e0f7fa;
            font-family: 'Rajdhani', sans-serif;
            font-size: 1em;
            transition: all 0.3s;
        }
        
        .login-input:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
        }
        
        .login-btn {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border: none;
            border-radius: 10px;
            color: #0a1628;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 1em;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 10px;
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
        }
        
        .login-error {
            color: #ff4757;
            margin-top: 15px;
            font-size: 0.9em;
            display: none;
        }
        
        /* Modern Digital Clock */
        .datetime-container {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 8px;
            z-index: 100;
            background: rgba(10, 25, 47, 0.9);
            padding: 15px 20px;
            border-radius: 15px;
            border: 1px solid rgba(0, 212, 255, 0.3);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 
                0 5px 20px rgba(0, 0, 0, 0.5),
                0 0 20px rgba(0, 212, 255, 0.1);
            min-width: 230px;
        }
        
        .digital-clock {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.05em;
            font-weight: 900;
            color: #00d4ff;
            white-space: nowrap;
            font-variant-numeric: tabular-nums;
            text-shadow: 
                0 0 10px rgba(0, 212, 255, 0.8),
                0 0 20px rgba(0, 212, 255, 0.4),
                0 0 30px rgba(0, 212, 255, 0.2);
            letter-spacing: 3px;
            line-height: 1;
        }
        
        .digital-seconds {
            font-family: 'Orbitron', sans-serif;
            font-size: 1em;
            color: #ff4757;
            font-weight: 700;
            margin-left: 5px;
        }

        .digital-milliseconds {
            display: inline-block;
            min-width: 3.8ch;
            margin-left: 2px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.42em;
            font-weight: 800;
            color: #ffe66d;
            letter-spacing: 1px;
            vertical-align: baseline;
            text-shadow:
                0 0 7px rgba(255, 230, 109, 0.75),
                0 0 14px rgba(255, 230, 109, 0.35);
        }
        
        .date-display {
            font-family: 'Rajdhani', sans-serif;
            font-size: 0.9em;
            color: #ffd700;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
        }
        
        /* Top Control Buttons */
        .top-controls {
            position: fixed;
            top: 20px;
            left: 20px;
            display: flex;
            gap: 10px;
            z-index: 100;
        }
        
        .logout-btn {
            background: rgba(255, 71, 87, 0.2);
            border: 1px solid rgba(255, 71, 87, 0.5);
            color: #ff4757;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75em;
            transition: all 0.3s;
        }
        
        .logout-btn:hover {
            background: rgba(255, 71, 87, 0.4);
            transform: scale(1.05);
        }
        
        .settings-btn {
            background: rgba(0, 212, 255, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.5);
            color: #00d4ff;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75em;
            transition: all 0.3s;
        }
        
        .settings-btn:hover {
            background: rgba(0, 212, 255, 0.4);
            transform: scale(1.05);
        }
        
        .info-btn {
            background: rgba(0, 212, 255, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.5);
            color: #00d4ff;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.75em;
            transition: all 0.3s;
        }
        
        .info-btn:hover {
            background: rgba(0, 212, 255, 0.4);
            transform: scale(1.05);
        }
        
        /* Event Banner */
        .event-banner {
            width: 100%;
            max-height: 200px;
            object-fit: cover;
            border-radius: 15px;
            margin-bottom: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(0, 212, 255, 0.3);
        }
        
        /* Sponsor Logos Container - Main Header */
        .sponsor-header-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 40px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            padding: 15px;
            background: rgba(0, 30, 60, 0.4);
            border-radius: 15px;
            border: 1px solid rgba(0, 212, 255, 0.2);
        }
        
        .sponsor-header-logo {
            height: 50px;
            width: auto;
            max-width: 120px;
            object-fit: contain;
            filter: drop-shadow(0 2px 5px rgba(0, 212, 255, 0.2));
            transition: transform 0.3s;
        }
        
        .sponsor-header-logo:hover {
            transform: scale(1.1);
        }
        
        header {
            text-align: center;
            padding: 30px 20px;
            background: linear-gradient(180deg, rgba(0, 50, 100, 0.8) 0%, transparent 100%);
            border-bottom: 3px solid #00d4ff;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }
        
        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
            animation: wave 4s infinite;
        }
        
        @keyframes wave {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .header-logo-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .header-logo {
            width: 100px;
            height: 100px;
            object-fit: contain;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
            border: 3px solid rgba(0, 212, 255, 0.5);
            background: rgba(0, 30, 60, 0.5);
            padding: 10px;
        }
        
        h1 {
            font-family: 'Orbitron', sans-serif;
            font-size: 2.5em;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 3px;
            background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
            margin-bottom: 10px;
        }
        
        .subtitle {
            font-size: 1.2em;
            color: #80deea;
            letter-spacing: 2px;
        }
        
        
        /* ========== MOBILE RESPONSIVE BREAKPOINTS ========== */

        /* Small phones (320px - 374px) */
        @media (max-width: 374px) {
            .login-box {
                padding: 20px 15px;
                margin-top: 80px;
            }
            .login-title {
                font-size: 1.2em;
            }
            .login-subtitle {
                font-size: 0.75em;
            }
            .login-input {
                padding: 10px;
                font-size: 0.9em;
            }
            .login-btn {
                padding: 12px;
                font-size: 0.9em;
            }
            .sponsor-login-logo {
                height: 30px;
                max-width: 70px;
            }
            .sponsor-logins-container {
                gap: 8px;
                top: 5px;
            }
            .digital-clock {
                font-size: 1.2em;
                letter-spacing: 1px;
            }
            .datetime-container {
                padding: 8px 10px;
                min-width: 120px;
            }
            h1 {
                font-size: 1.3em;
            }
            .subtitle {
                font-size: 0.9em;
            }
            .header-logo {
                width: 60px;
                height: 60px;
            }
            .sponsor-header-logo {
                height: 25px;
                max-width: 60px;
            }
            .sponsor-header-container {
                gap: 10px;
                padding: 8px;
            }
            .stats-bar {
                gap: 8px;
            }
            .stat-box {
                padding: 8px 12px;
                min-width: 80px;
            }
            .stat-number {
                font-size: 1.4em;
            }
            .stat-label {
                font-size: 0.7em;
            }
            .panel {
                padding: 15px;
            }
            .panel-title {
                font-size: 1em;
            }
            input, select {
                padding: 10px 12px;
                font-size: 0.9em;
            }
            button {
                padding: 10px 18px;
                font-size: 0.8em;
            }
            .fish-item {
                padding: 8px 10px;
                flex-direction: column;
                gap: 5px;
            }
            .fish-name {
                font-size: 1em;
            }
            .fish-weight {
                font-size: 1em;
            }
            .podium-item {
                padding: 8px;
            }
            .rank {
                width: 30px;
                height: 30px;
                font-size: 1em;
                margin-right: 8px;
            }
            .podium-name {
                font-size: 0.95em;
            }
            .podium-weight {
                font-size: 1em;
            }
            .species-card {
                padding: 10px;
            }
            .species-icon {
                font-size: 1.5em;
            }
            .species-name {
                font-size: 0.95em;
            }
            .top-controls {
                gap: 5px;
            }
            .top-controls button {
                padding: 6px 10px;
                font-size: 0.65em;
            }
            .modal-content {
                max-width: 95%;
                border-radius: 12px;
            }
            .modal-body {
                padding: 15px;
            }
            .settings-tabs {
                gap: 5px;
            }
            .settings-tab {
                padding: 8px 12px;
                font-size: 0.75em;
            }
            .sponsor-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .template-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }
            .certificate-item {
                flex-direction: column;
                gap: 10px;
                padding: 10px;
            }
            .certificate-actions {
                width: 100%;
                justify-content: center;
            }
            .certificate-actions button {
                flex: 1;
            }
            .db-buttons {
                flex-direction: column;
            }
            .db-buttons button,
            .db-buttons .file-input-wrapper,
            .db-buttons .file-input-label {
                width: 100%;
                text-align: center;
            }
            .results-section {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            .result-card {
                padding: 12px;
            }
            .result-title {
                font-size: 0.95em;
            }
            .rule-info {
                font-size: 0.8em;
                padding: 8px;
            }
            .notification {
                font-size: 0.85em;
                padding: 10px 15px;
            }
        }

        /* Medium phones (375px - 479px) */
        @media (min-width: 375px) and (max-width: 479px) {
            .login-box {
                padding: 25px 20px;
                margin-top: 100px;
            }
            .login-title {
                font-size: 1.4em;
            }
            .login-subtitle {
                font-size: 0.8em;
            }
            .sponsor-login-logo {
                height: 35px;
                max-width: 80px;
            }
            .digital-clock {
                font-size: 1.4em;
            }
            .datetime-container {
                padding: 10px 12px;
                min-width: 130px;
            }
            h1 {
                font-size: 1.5em;
            }
            .header-logo {
                width: 70px;
                height: 70px;
            }
            .sponsor-header-logo {
                height: 30px;
                max-width: 70px;
            }
            .stat-box {
                padding: 10px 15px;
                min-width: 100px;
            }
            .stat-number {
                font-size: 1.6em;
            }
            .panel {
                padding: 18px;
            }
            .fish-item {
                padding: 10px 12px;
            }
            .podium-item {
                padding: 10px;
            }
            .rank {
                width: 35px;
                height: 35px;
                font-size: 1.1em;
            }
            .top-controls button {
                padding: 7px 12px;
                font-size: 0.7em;
            }
            .sponsor-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .template-grid {
                grid-template-columns: 1fr 1fr;
            }
            .certificate-item {
                padding: 12px;
            }
            .db-buttons {
                flex-direction: column;
            }
            .db-buttons button,
            .db-buttons .file-input-wrapper {
                width: 100%;
            }
        }

        /* Large phones (480px - 599px) */
        @media (min-width: 480px) and (max-width: 599px) {
            .login-box {
                margin-top: 120px;
            }
            .login-title {
                font-size: 1.5em;
            }
            .digital-clock {
                font-size: 1.5em;
            }
            h1 {
                font-size: 1.6em;
            }
            .header-logo {
                width: 75px;
                height: 75px;
            }
            .stat-box {
                min-width: 110px;
            }
            .sponsor-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .template-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .db-buttons {
                flex-direction: row;
                flex-wrap: wrap;
            }
            .db-buttons button,
            .db-buttons .file-input-wrapper {
                flex: 1;
                min-width: 100px;
            }
        }

        /* Tablets (600px - 767px) */
        @media (min-width: 600px) and (max-width: 767px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
            .login-box {
                margin-top: 140px;
            }
            .sponsor-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .template-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .results-section {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
        }

        /* Small tablets / Large phones landscape (768px - 899px) */
        @media (min-width: 768px) and (max-width: 899px) {
            .main-grid {
                grid-template-columns: 1fr 1fr;
            }
            .sponsor-grid {
                grid-template-columns: repeat(4, 1fr);
            }
            .template-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* ========== END MOBILE RESPONSIVE ========== */
        @media (max-width: 900px) {
            .datetime-container {
                top: 60px;
                right: 10px;
                padding: 10px 15px;
                min-width: 140px;
            }
            .digital-clock {
                font-size: 1.6em;
                letter-spacing: 2px;
            }
            .digital-seconds {
                font-size: 0.8em;
            }
            .digital-milliseconds {
                font-size: 0.44em;
                min-width: 3.6ch;
            }
            .date-display {
                font-size: 0.75em;
            }
            h1 { font-size: 1.8em; }
            
            .sponsor-logins-container {
                gap: 15px;
                top: 10px;
            }
            .sponsor-login-logo {
                height: 40px;
                max-width: 100px;
            }
            .login-box {
                margin-top: 15px;
            }
            .sponsor-header-container {
                gap: 20px;
            }
            .sponsor-header-logo {
                height: 35px;
                max-width: 80px;
            }
            .header-logo {
                width: 80px;
                height: 80px;
            }
            .top-controls {
                flex-wrap: wrap;
                max-width: 200px;
            }
        }
        
        @media (max-width: 600px) {
            .datetime-container {
                position: relative;
                top: auto;
                right: auto;
                margin: 15px auto;
                width: fit-content;
                align-items: center;
            }
            .sponsor-logins-container {
                position: relative;
                margin-bottom: 20px;
            }
            .login-box {
                margin-top: 10px;
            }
            .top-controls {
                position: relative;
                top: auto;
                left: auto;
                justify-content: center;
                margin-bottom: 10px;
            }
        }
        
        .main-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }
        
        @media (max-width: 900px) {
            .main-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .panel {
            background: rgba(10, 25, 47, 0.8);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .panel:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        
        .panel-title {
            font-family: 'Orbitron', sans-serif;
            font-size: 1.3em;
            color: #00d4ff;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .panel-title::before {
            content: '';
            color: #00ff88;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            color: #80deea;
            font-weight: 500;
            text-transform: uppercase;
            font-size: 0.9em;
            letter-spacing: 1px;
        }
        
        input, select {
            width: 100%;
            padding: 12px 15px;
            background: rgba(0, 30, 60, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 8px;
            color: #e0f7fa;
            font-family: 'Rajdhani', sans-serif;
            font-size: 1em;
            transition: all 0.3s;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            min-height: 44px; /* Minimum touch target size */
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: #00d4ff;
            box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
            background: rgba(0, 40, 80, 0.8);
        }
        
        button {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #0a1628;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.9em;
            cursor: pointer;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
            margin-top: 10px;
            min-height: 44px; /* Minimum touch target size */
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
        }
        
        button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
            background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
        }
        
        button.secondary {
            background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
            color: #0a1628;
        }
        
        button.secondary:hover {
            background: linear-gradient(135deg, #ffec8b 0%, #ffd700 100%);
        }
        
        button.success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }
        
        button.success:hover {
            background: linear-gradient(135deg, #34ce57 0%, #28a745 100%);
        }
        
        button.info {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
        }
        
        button.info:hover {
            background: linear-gradient(135deg, #1fc8e3 0%, #17a2b8 100%);
        }
        
        button.pdf {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
        }
        
        button.pdf:hover {
            background: linear-gradient(135deg, #e04b59 0%, #dc3545 100%);
        }
        
        button.delete {
            background: linear-gradient(135deg, #ff4757 0%, #cc0033 100%);
            color: white;
            padding: 6px 12px;
            font-size: 0.7em;
            margin-top: 0;
        }
        
        button.delete:hover {
            background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 100%);
        }
        
        button.certificate {
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
            color: white;
        }
        
        button.certificate:hover {
            background: linear-gradient(135deg, #a569bd 0%, #9b59b6 100%);
        }
        
        .fish-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 15px;
            -webkit-overflow-scrolling: touch;
        }
        
        .fish-item {
            background: rgba(0, 50, 100, 0.4);
            border-left: 3px solid #00d4ff;
            padding: 10px 15px;
            margin-bottom: 8px;
            border-radius: 0 8px 8px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: slideIn 0.3s ease-out;
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        .fish-info {
            flex: 1;
        }
        
        .fish-name {
            font-weight: 700;
            color: #00ff88;
            font-size: 1.1em;
        }
        
        .fish-weight {
            color: #ffd700;
            font-size: 1.2em;
            font-weight: 700;
        }
        
        .results-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .result-card {
            background: linear-gradient(135deg, rgba(0, 30, 60, 0.9) 0%, rgba(0, 50, 100, 0.8) 100%);
            border: 2px solid rgba(0, 212, 255, 0.4);
            border-radius: 15px;
            padding: 20px;
            position: relative;
            overflow: hidden;
        }
        
        .result-card::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
        }
        
        .result-title {
            font-family: 'Orbitron', sans-serif;
            color: #00d4ff;
            font-size: 1.1em;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 1px;
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
            padding-bottom: 10px;
        }
        
        .podium {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .podium-item {
            display: flex;
            align-items: center;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 10px;
            transition: transform 0.3s;
            position: relative;
        }
        
        .podium-item:hover {
            transform: scale(1.02);
        }
        
        .podium-item.tie-breaker::after {
            content: '';
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.8em;
            opacity: 0.7;
        }
        
        .rank {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'Orbitron', sans-serif;
            font-weight: 900;
            font-size: 1.2em;
            margin-right: 15px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        }
        
        .rank-1 {
            background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
            color: #0a1628;
            box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
        }
        
        .rank-2 {
            background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
            color: #0a1628;
            box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
        }
        
        .rank-3 {
            background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%);
            color: #fff;
            box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
        }
        
        .rank-other {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.5);
        }
        
        .podium-info {
            flex: 1;
        }
        
        .podium-name {
            font-weight: 700;
            color: #e0f7fa;
            font-size: 1.1em;
        }
        
        .podium-detail {
            font-size: 0.9em;
            color: #80deea;
        }
        
        .podium-weight {
            text-align: right;
            color: #00ff88;
            font-weight: 700;
            font-size: 1.2em;
        }
        
        .tie-info {
            font-size: 0.75em;
            color: #ffd700;
            margin-top: 3px;
            font-style: italic;
        }
        
        .species-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        
        .species-card {
            background: rgba(0, 40, 80, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s;
            position: relative;
            overflow: hidden;
        }
        
        .species-card:hover {
            border-color: #00ff88;
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
        }
        
        .species-card.excluded {
            border-color: #ff4757;
            opacity: 0.7;
            background: rgba(50, 0, 0, 0.4);
        }
        
        .species-card.disabled {
            opacity: 0.4;
            background: rgba(30, 30, 30, 0.4);
            border-color: #666;
        }
        
        .species-icon {
            font-size: 2em;
            margin-bottom: 10px;
        }
        
        .species-name {
            font-family: 'Orbitron', sans-serif;
            color: #00d4ff;
            font-size: 1.1em;
            margin-bottom: 5px;
        }
        
        .species-winner {
            color: #ffd700;
            font-weight: 700;
            font-size: 1.2em;
        }
        
        .species-weight {
            color: #00ff88;
            font-size: 1.1em;
        }
        
        .excluded-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #ff4757;
            color: white;
            font-size: 0.7em;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 700;
        }
        
        .disabled-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background: #666;
            color: white;
            font-size: 0.7em;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 700;
        }
        
        .rule-info {
            background: rgba(0, 100, 200, 0.2);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 15px;
            font-size: 0.9em;
            color: #80deea;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .rule-info::before {
            content: '';
            font-size: 1.2em;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: rgba(128, 222, 234, 0.5);
            font-style: italic;
        }
        
        .stats-bar {
            display: flex;
            justify-content: space-around;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .stat-box {
            background: rgba(0, 30, 60, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 12px;
            padding: 15px 25px;
            text-align: center;
            min-width: 150px;
        }
        
        .stat-number {
            font-family: 'Orbitron', sans-serif;
            font-size: 2em;
            color: #00ff88;
            font-weight: 900;
        }
        
        .stat-label {
            color: #80deea;
            font-size: 0.9em;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .reset-btn {
            background: linear-gradient(135deg, #ff4757 0%, #cc0033 100%);
            color: white;
            margin-top: 20px;
            width: 100%;
        }
        
        .reset-btn:hover {
            background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 100%);
        }
        
        /* Database Panel */
        .database-panel {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid rgba(0, 212, 255, 0.3);
        }
        
        .db-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .db-buttons button {
            flex: 1;
            min-width: 120px;
            margin-top: 0;
            font-size: 0.8em;
            padding: 10px 15px;
        }
        
        .file-input-wrapper {
            position: relative;
            overflow: hidden;
            display: inline-block;
            flex: 1;
        }
        
        .file-input-wrapper input[type=file] {
            position: absolute;
            left: -9999px;
        }
        
        .file-input-label {
            display: block;
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
            padding: 10px 15px;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-weight: 700;
            font-size: 0.8em;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .file-input-label:hover {
            background: linear-gradient(135deg, #1fc8e3 0%, #17a2b8 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 25px rgba(23, 162, 184, 0.4);
        }
        
        .powered-by {
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            color: rgba(128, 222, 234, 0.6);
            font-size: 0.8em;
            letter-spacing: 2px;
            border-top: 1px solid rgba(0, 212, 255, 0.2);
        }
        
        .powered-by span {
            color: #00d4ff;
            font-weight: bold;
        }
        
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: rgba(0, 30, 60, 0.3);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            border-radius: 4px;
        }
        
        .notification {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
            color: #0a1628;
            padding: 15px 25px;
            border-radius: 10px;
            font-weight: 700;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s;
            z-index: 1000;
            text-align: center;
        }
        
        .notification.show {
            transform: translateX(-50%) translateY(0);
        }
        
        .notification.error {
            background: linear-gradient(135deg, #ff4757 0%, #ff6b7a 100%);
            color: white;
        }
        
        .next-in-line {
            font-size: 0.8em;
            color: #80deea;
            margin-top: 5px;
            font-style: italic;
        }
        
        .time-badge {
            display: inline-block;
            background: rgba(0, 212, 255, 0.2);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.75em;
            margin-left: 5px;
            color: #00d4ff;
        }
        
        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            z-index: 2000;
            display: none;
            justify-content: center;
            align-items: center;
            padding: 20px;
            overflow-y: auto;
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal-content {
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
            border: 2px solid #00d4ff;
            color: #e0f7fa;
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            max-height: 90dvh;
            overflow-y: auto;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
            position: relative;
            -webkit-overflow-scrolling: touch;
        }
        
        .modal-header {
            background: linear-gradient(135deg, rgba(0, 50, 100, 0.8) 0%, rgba(0, 30, 60, 0.9) 100%);
            color: #00d4ff;
            padding: 20px;
            text-align: center;
            position: sticky;
            top: 0;
            z-index: 10;
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
        }
        
        .modal-body {
            padding: 30px;
        }
        
        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 71, 87, 0.2);
            border: 1px solid rgba(255, 71, 87, 0.5);
            color: #ff4757;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.5em;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }
        
        .modal-close:hover {
            background: rgba(255, 71, 87, 0.4);
            transform: rotate(90deg);
        }
        
        /* Settings Tabs */
        .settings-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(0, 212, 255, 0.3);
            padding-bottom: 10px;
            flex-wrap: wrap;
        }
        
        .settings-tab {
            background: rgba(0, 30, 60, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.3);
            color: #80deea;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.85em;
        }
        
        .settings-tab:hover {
            background: rgba(0, 212, 255, 0.2);
            color: #00d4ff;
        }
        
        .settings-tab.active {
            background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
            color: #0a1628;
            border-color: #00d4ff;
        }
        
        .settings-panel {
            display: none;
        }
        
        .settings-panel.active {
            display: block;
        }
        
        /* Sponsor Grid in Settings */
        .sponsor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .sponsor-upload-box {
            background: rgba(0, 30, 60, 0.6);
            border: 2px dashed rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 15px;
            text-align: center;
            transition: all 0.3s;
        }
        
        .sponsor-upload-box:hover {
            border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
        }
        
        .sponsor-upload-box.filled {
            border-style: solid;
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.1);
        }
        
        .sponsor-preview {
            width: 100%;
            height: 80px;
            object-fit: contain;
            margin-bottom: 10px;
            border-radius: 5px;
        }
        
        .sponsor-placeholder {
            width: 100%;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #80deea;
            font-size: 2em;
            margin-bottom: 10px;
        }
        
        .logo-preview {
            width: 150px;
            height: 150px;
            object-fit: contain;
            background: rgba(0, 30, 60, 0.8);
            border: 2px dashed rgba(0, 212, 255, 0.5);
            border-radius: 10px;
            margin: 10px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #80deea;
        }
        
        .logo-preview img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 10px;
        }
        
        .upload-area {
            border: 2px dashed rgba(0, 212, 255, 0.5);
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 15px;
        }
        
        .upload-area:hover {
            border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
        }
        
        .upload-area.dragover {
            border-color: #00ff88;
            background: rgba(0, 255, 136, 0.1);
        }
        
        .current-value {
            background: rgba(0, 100, 200, 0.2);
            padding: 8px 12px;
            border-radius: 5px;
            margin-top: 5px;
            font-size: 0.9em;
            color: #00ff88;
        }
        
        /* Certificate Modal Specific */
        .certificate-list {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 20px;
        }
        
        .certificate-item {
            background: rgba(0, 50, 100, 0.4);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s;
        }
        
        .certificate-item:hover {
            background: rgba(0, 70, 130, 0.5);
            transform: translateX(5px);
        }
        
        .certificate-item.winner {
            border-color: #ffd700;
            background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 50, 100, 0.4) 100%);
        }
        
        .certificate-info h4 {
            color: #00d4ff;
            margin-bottom: 5px;
        }
        
        .certificate-info p {
            color: #80deea;
            font-size: 0.9em;
        }
        
        .certificate-actions {
            display: flex;
            gap: 10px;
        }
        
        .certificate-actions button {
            margin-top: 0;
            padding: 8px 15px;
            font-size: 0.8em;
        }
        
        /* Official Names Settings */
        .official-input-group {
            background: rgba(0, 40, 80, 0.4);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 15px;
        }
        
        .official-input-group label {
            color: #ffd700;
            font-size: 0.85em;
        }
        
        .official-input-group input {
            margin-top: 5px;
        }
        
        /* Species Toggle Settings */
        .species-toggle-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 15px;
        }
        
        .species-toggle-item {
            background: rgba(0, 40, 80, 0.6);
            border: 2px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .species-toggle-item:hover {
            border-color: #00d4ff;
            background: rgba(0, 212, 255, 0.1);
        }
        
        .species-toggle-item.disabled {
            opacity: 0.5;
            border-color: #666;
            background: rgba(30, 30, 30, 0.4);
        }

        .species-status {
            display: inline-block !important;
            font-size: 0.7em;
            padding: 3px 10px;
            border-radius: 12px;
            margin-left: auto;
            font-weight: 700;
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.3s;
        }

        .species-status.status-enabled {
            background: rgba(0, 255, 136, 0.25);
            color: #00ff88;
            border: 1px solid rgba(0, 255, 136, 0.5);
        }

        .species-status.status-disabled {
            background: rgba(255, 71, 87, 0.25);
            color: #ff4757;
            border: 1px solid rgba(255, 71, 87, 0.5);
        }
        
        .species-toggle-item input[type="checkbox"] {
            width: auto;
            margin: 0;
            cursor: pointer;
        }
        
        .species-toggle-item .species-icon-small {
            font-size: 1.5em;
        }
        
        .species-toggle-item .species-name-small {
            flex: 1;
            font-weight: 600;
        }
        /* Certificate Template Selection */
        .template-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            margin-top: 15px;
        }
        
        .template-option {
            background: linear-gradient(145deg, rgba(3, 33, 62, 0.88), rgba(18, 57, 92, 0.78));
            border: 1px solid rgba(0, 212, 255, 0.24);
            border-radius: 16px;
            padding: 14px;
            cursor: pointer;
            transition: all 0.28s ease;
            text-align: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 12px 28px rgba(0,0,0,0.18);
        }
        
        .template-option:hover {
            border-color: rgba(0, 212, 255, 0.8);
            transform: translateY(-3px);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 16px 34px rgba(0,0,0,0.25);
        }
        
        .template-option.selected {
            border-color: #00ff88;
            background: linear-gradient(145deg, rgba(0, 255, 136, 0.08), rgba(16, 48, 84, 0.92));
            box-shadow: 0 0 0 1px rgba(0,255,136,0.25), 0 0 24px rgba(0, 255, 136, 0.18);
        }
        
        .template-preview {
            width: 100%;
            height: 132px;
            background: linear-gradient(135deg, #0a1628 0%, #1a3a52 100%);
            border-radius: 12px;
            margin-bottom: 12px;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            isolation: isolate;
        }
        .template-preview::before,
        .template-preview::after,
        .template-preview .template-preview-frame::before,
        .template-preview .template-preview-frame::after {
            content: "";
            position: absolute;
            pointer-events: none;
        }
        .template-preview-title {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(255,255,255,0.92);
            text-transform: uppercase;
            letter-spacing: 0.16em;
            font-size: 0.7rem;
            font-family: 'Orbitron', sans-serif;
        }
        .template-preview-mark {
            position: relative;
            z-index: 2;
            font-size: 2.6rem;
            color: rgba(255,255,255,0.85);
            font-weight: 300;
            text-shadow: 0 0 18px rgba(255,255,255,0.08);
        }

        .template-preview.premium {
            background: linear-gradient(135deg, #fff9ea 0%, #f3e6ca 100%);
        }
        .template-preview.premium::before {
            inset: 12px;
            border: 3px double #cba353;
            border-radius: 10px;
            box-shadow: inset 0 0 0 2px rgba(203,163,83,0.22);
        }
        .template-preview.premium::after {
            left: 16px; right: 16px; top: 18px; height: 10px; background: #b78729;
        }
        .template-preview.premium .template-preview-frame::before {
            left: 34px; right: 34px; bottom: 26px; height: 2px; background: rgba(183,135,41,0.65);
        }
        .template-preview.premium .template-preview-mark,
        .template-preview.premium .template-preview-title { color: #0b4f86; }

        .template-preview.classic {
            background: linear-gradient(135deg, #fbf6e8 0%, #efe1bc 100%);
        }
        .template-preview.classic::before {
            inset: 12px; border: 2px solid #9f6f17;
        }
        .template-preview.classic::after {
            inset: 20px; border: 1px solid #d9b25d;
        }
        .template-preview.classic .template-preview-frame::before {
            left: 24px; top: 24px; width: 38px; height: 26px; border-left: 2px solid #b6852a; border-top: 2px solid #b6852a;
        }
        .template-preview.classic .template-preview-frame::after {
            right: 24px; top: 24px; width: 38px; height: 26px; border-right: 2px solid #b6852a; border-top: 2px solid #b6852a;
        }
        .template-preview.classic .template-preview-mark,
        .template-preview.classic .template-preview-title { color: #8c6114; }

        .template-preview.modern {
            background: linear-gradient(135deg, #06172c 0%, #153d5d 100%);
        }
        .template-preview.modern::before {
            inset: 14px; border: 2px solid #15d6ff;
            clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
        }
        .template-preview.modern::after {
            left: 20px; right: 20px; top: 22px; height: 2px; background: linear-gradient(90deg, transparent, #15d6ff, transparent);
        }
        .template-preview.modern .template-preview-frame::before {
            left: 22px; bottom: 28px; width: 72px; height: 0; border-top: 2px solid rgba(21,214,255,0.75);
        }
        .template-preview.modern .template-preview-frame::after {
            right: 22px; bottom: 28px; width: 72px; height: 0; border-top: 2px solid rgba(21,214,255,0.75);
        }
        .template-preview.modern .template-preview-mark,
        .template-preview.modern .template-preview-title { color: #8fe8ff; }

        .template-preview.elegant {
            background: linear-gradient(135deg, #180d28 0%, #2a1748 100%);
        }
        .template-preview.elegant::before {
            inset: 16px; border: 2px solid #d784ff; border-radius: 24px;
        }
        .template-preview.elegant::after {
            inset: 24px; border: 1px solid rgba(255,255,255,0.7); border-radius: 18px;
        }
        .template-preview.elegant .template-preview-frame::before {
            left: 34px; right: 34px; top: 24px; height: 0; border-top: 1px solid rgba(215,132,255,0.7);
        }
        .template-preview.elegant .template-preview-frame::after {
            left: 50%; top: 22px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg); border: 1px solid rgba(215,132,255,0.8); background: rgba(215,132,255,0.16);
        }
        .template-preview.elegant .template-preview-mark,
        .template-preview.elegant .template-preview-title { color: #eca4ff; }

        .template-preview.minimal {
            background: linear-gradient(135deg, #eef5fb 0%, #dfe9f2 100%);
        }
        .template-preview.minimal::before {
            inset: 18px; border: 1px solid #64839b;
        }
        .template-preview.minimal::after {
            left: 28px; right: 28px; top: 26px; height: 0; border-top: 2px solid #6f94ac;
        }
        .template-preview.minimal .template-preview-frame::before {
            left: 44px; right: 44px; bottom: 28px; height: 0; border-top: 1px solid rgba(100,131,155,0.65);
        }
        .template-preview.minimal .template-preview-frame::after {
            left: 50%; top: 30px; width: 46px; height: 0; border-top: 1px solid rgba(100,131,155,0.7); transform: translateX(-50%);
        }
        .template-preview.minimal .template-preview-mark,
        .template-preview.minimal .template-preview-title { color: #3b627f; }

        .template-preview.custom {
            background: linear-gradient(135deg, #10223d 0%, #314b73 100%);
        }
        .template-preview.custom::before {
            inset: 14px; border: 2px dashed rgba(255,255,255,0.85); border-radius: 10px;
        }
        .template-preview.custom::after {
            left: 20px; right: 20px; bottom: 22px; height: 0; border-top: 2px solid rgba(255,255,255,0.28);
        }
        .template-preview.custom .template-preview-frame::before {
            left: 22px; top: 22px; width: 54px; height: 36px; border: 1px solid rgba(255,255,255,0.38); border-radius: 6px;
        }
        .template-preview.custom .template-preview-frame::after {
            right: 24px; top: 24px; width: 0; height: 0; border-left: 12px solid rgba(255,255,255,0.3); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
        }
        .template-preview.custom .template-preview-mark,
        .template-preview.custom .template-preview-title { color: #f2f7ff; }
        
        .template-name {
            font-weight: 700;
            color: #7ff0ff;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-size: 0.86rem;
        }
        
        .template-desc {
            font-size: 0.78em;
            color: rgba(220, 240, 255, 0.72);
            line-height: 1.45;
            min-height: 34px;
        }
        
        /* Template Colors for Winners */
        .winner-colors-info {
            background: rgba(0, 40, 80, 0.6);
            border: 1px solid rgba(0, 212, 255, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 15px;
        }
        
        .color-indicator {
            display: inline-block;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            margin-right: 10px;
            vertical-align: middle;
            box-shadow: 0 0 10px currentColor;
        }
        
        .color-gold { background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%); }
        .color-silver { background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%); }
        .color-bronze { background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%); }
        
        @media print {
            .modal-overlay {
                position: static;
                background: white;
                padding: 0;
            }
            .modal-content {
                max-height: none;
                box-shadow: none;
            }
            .modal-header,
            .modal-close {
                display: none;
            }
            .modal-body {
                padding: 20px;
            }
        }
/* PHP adaptation helpers */
a.button,
.button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: 100%;
    margin-bottom: 10px;
}

.top-controls a {
    text-decoration: none;
}

.settings-tabs button {
    border: 0;
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: #80deea;
}

.inline-upload {
    display: grid;
    gap: 8px;
}

.database-view {
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    color: #00d4ff;
    background: rgba(0, 30, 60, .5);
    border: 1px solid rgba(0, 212, 255, .25);
    border-radius: 8px;
    padding: 16px;
    overflow: auto;
}

.certificate-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(0, 212, 255, .2);
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(0, 30, 60, .35);
}

.template-option input[type="radio"] {
    display: none;
}

/* Dashboard symmetry and Laragon-friendly PHP layout */
body {
    padding-top: 0;
}

.top-controls {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 1500;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    width: min(1420px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 0;
}

.datetime-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1600;
}

.container.logged-in {
    display: block;
    max-width: 1360px;
    padding: 14px 24px 28px;
}

.event-banner {
    width: 100%;
    height: clamp(120px, 18vw, 230px);
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, .35);
    margin: 12px 0 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.sponsor-header-container {
    min-height: 0;
    margin: 0 auto 14px;
}

.header-logo-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "logo title"
        "logo subtitle";
    align-items: center;
    justify-content: start;
    column-gap: 18px;
    width: min(980px, 100%);
    margin: 0 auto 22px;
    text-align: left;
}

.header-logo {
    grid-area: logo;
    width: 96px;
    height: 96px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
}

.header-logo-container h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.05;
    max-width: 860px;
}

.header-logo-container .subtitle {
    grid-area: subtitle;
    margin: 8px 0 0;
    max-width: 760px;
    text-align: left;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto 30px;
}

.stat-box {
    width: auto;
    min-width: 0;
    margin: 0;
    display: grid;
    place-items: center;
    min-height: 90px;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
}

.main-grid > .panel {
    width: 100%;
    margin: 0;
}

.panel {
    border-radius: 8px;
}

.fish-list {
    max-height: 340px;
    overflow: auto;
    padding-right: 6px;
}

.fish-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.fish-item form {
    margin: 0;
}

.result-card {
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .datetime-container {
        position: static;
        width: min(360px, calc(100% - 32px));
        margin: 12px auto 0;
    }

    .top-controls {
        justify-content: center;
        flex-wrap: wrap;
    }

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

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

    .header-logo-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "title"
            "subtitle";
        justify-items: center;
        text-align: center;
    }

    .header-logo-container h1,
    .header-logo-container .subtitle {
        text-align: center;
    }

    .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Operasional safety patch v3.1 */
.operational-warning {
    margin: 18px auto;
    padding: 16px 18px;
    border: 1px solid rgba(255, 193, 7, .45);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 193, 7, .16), rgba(255, 87, 34, .10));
    color: #fff7d6;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
    line-height: 1.55;
}
.operational-warning strong {
    display: block;
    color: #ffd36a;
    margin-bottom: 6px;
}
.pending-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    color: #cfefff;
    font-size: .9rem;
}

/* v3.2 Struktur Operasional */
.event-meta-line {
    margin-top: 10px;
    color: rgba(225, 250, 255, .86);
    font-size: .92rem;
    letter-spacing: .35px;
}
.form-grid.compact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(0, 212, 255, .28);
    border-radius: 14px;
    padding: 12px 14px;
    color: #e9fbff;
    background: rgba(7, 24, 44, .82);
    resize: vertical;
    min-height: 96px;
    outline: none;
}
.form-group textarea:focus {
    border-color: rgba(0, 245, 210, .75);
    box-shadow: 0 0 0 3px rgba(0, 245, 210, .12);
}
.db-buttons .button.secondary {
    text-align: center;
}
.stat-box .stat-number {
    word-break: break-word;
}
@media (max-width: 720px) {
    .form-grid.compact {
        grid-template-columns: 1fr;
    }
}

/* v3.3 Penyempurnaan Lokal */
.scoreboard-top-btn {
    text-decoration: none;
    background: rgba(0, 255, 136, 0.18);
    border: 1px solid rgba(0, 255, 136, 0.5);
    color: #00ff88;
    padding: 8px 15px;
    border-radius: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75em;
    transition: all 0.3s;
}
.scoreboard-top-btn:hover { transform: scale(1.05); background: rgba(0, 255, 136, 0.32); }
.workflow-card {
    margin: 18px auto 28px;
    padding: 22px;
    border: 1px solid rgba(0, 212, 255, .28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(7, 24, 44, .88), rgba(0, 54, 88, .62));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.workflow-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}
.eyebrow {
    color: #00f5d2;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .75rem;
    font-weight: 700;
}
.workflow-card h2 {
    margin: 6px 0 8px;
    color: #e9fbff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 2vw, 2rem);
}
.workflow-card p { color: rgba(225, 250, 255, .78); margin: 0; }
.readiness-ring {
    min-width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 3px solid rgba(0, 245, 210, .65);
    box-shadow: 0 0 32px rgba(0, 245, 210, .18);
    color: #e9fbff;
}
.readiness-ring span { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; color: #00ff88; }
.readiness-ring small { margin-top: -22px; color: #80deea; text-transform: uppercase; letter-spacing: 1px; }
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}
.workflow-steps div,
.readiness-item,
.activity-item,
.backup-note,
.locked-note {
    border: 1px solid rgba(0, 212, 255, .18);
    background: rgba(0, 30, 60, .42);
    border-radius: 12px;
}
.workflow-steps div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    color: #dffaff;
}
.workflow-steps b {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #082033;
    background: linear-gradient(135deg, #00f5d2, #00d4ff);
    font-family: 'Orbitron', sans-serif;
}
.readiness-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.readiness-item {
    padding: 10px 12px;
    color: #ffe5a3;
    display: flex;
    gap: 8px;
    align-items: center;
}
.readiness-item span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 193, 7, .18);
    color: #ffd36a;
    font-weight: 800;
}
.readiness-item.done { color: #dffaff; }
.readiness-item.done span { background: rgba(0, 255, 136, .2); color: #00ff88; }
.quick-actions,
.document-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}
.document-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 16px; }
.quick-actions .button,
.document-actions .button,
.document-actions button { margin: 0; }
.button.info { background: linear-gradient(135deg, #17a2b8 0%, #138496 100%); color: white; }
.button.info:hover { background: linear-gradient(135deg, #1fc8e3 0%, #17a2b8 100%); }
.locked-note {
    padding: 10px 12px;
    margin-bottom: 12px;
    color: #ffd36a;
    border-color: rgba(255, 193, 7, .4);
}
.danger-zone {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(255, 71, 87, .42);
    border-radius: 16px;
    background: rgba(255, 71, 87, .08);
    color: #ffecef;
}
.danger-zone strong { color: #ff8fa0; display: block; margin-bottom: 6px; }
.danger-zone p { margin: 0 0 10px; color: rgba(255, 236, 239, .82); }
.danger-zone input { margin-bottom: 10px; }
.compact-danger { margin-top: 14px; }
.activity-list { display: grid; gap: 10px; }
.activity-item {
    display: grid;
    grid-template-columns: 54px minmax(0, .8fr) minmax(0, 1.6fr);
    gap: 10px;
    padding: 10px 12px;
    align-items: center;
}
.activity-item span { color: #00f5d2; font-family: 'Orbitron', sans-serif; }
.activity-item b { color: #e9fbff; font-size: .9rem; }
.activity-item small { color: rgba(225, 250, 255, .72); }
.database-panel.enhanced { margin-top: 0; padding-top: 0; border-top: 0; }
.backup-note { padding: 12px 14px; color: #dffaff; margin-bottom: 14px; line-height: 1.5; }
.backup-note strong { color: #00f5d2; }
.restore-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(0, 212, 255, .18);
    border-radius: 14px;
    background: rgba(0, 30, 60, .28);
    display: grid;
    gap: 10px;
}
.restore-box label { margin: 0; }
.restore-box button { margin: 0; }
.empty-state {
    padding: 14px;
    border: 1px dashed rgba(0, 212, 255, .28);
    border-radius: 12px;
    color: rgba(225, 250, 255, .72);
    background: rgba(0, 30, 60, .26);
}

/* Live Scoreboard */
body.scoreboard-page {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 20%, rgba(0, 212, 255, .18), transparent 30%), linear-gradient(135deg, #050d18, #0a2035 48%, #06111e);
    color: #e9fbff;
    padding: 0;
}
.scoreboard-shell {
    width: min(1540px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0 18px;
}
.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 212, 255, .3);
    border-radius: 20px;
    background: rgba(7, 24, 44, .74);
    box-shadow: 0 16px 46px rgba(0,0,0,.3);
}
.scoreboard-brand { display: flex; gap: 16px; align-items: center; }
.scoreboard-brand img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; }
.scoreboard-brand h1 { margin: 4px 0; font-size: clamp(1.6rem, 3vw, 3.6rem); line-height: 1; }
.scoreboard-brand p { margin: 0; color: #aeefff; }
.scoreboard-actions { display: flex; gap: 10px; align-items: center; }
.scoreboard-actions a,
.scoreboard-actions button {
    width: auto;
    margin: 0;
    text-decoration: none;
    border: 1px solid rgba(0, 245, 210, .45);
    background: rgba(0, 245, 210, .16);
    color: #00f5d2;
    border-radius: 999px;
    padding: 10px 14px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
}
.scoreboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.scoreboard-stats div,
.scoreboard-card {
    border: 1px solid rgba(0, 212, 255, .22);
    border-radius: 18px;
    background: rgba(7, 24, 44, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.22);
}
.scoreboard-stats div { padding: 16px; text-align: center; }
.scoreboard-stats strong { display: block; font-size: clamp(1.6rem, 3vw, 3rem); color: #00ff88; font-family: 'Orbitron', sans-serif; }
.scoreboard-stats span { color: #80deea; text-transform: uppercase; letter-spacing: 1px; }
.scoreboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
    gap: 18px;
}
.scoreboard-card { padding: 18px; }
.scoreboard-card h2 { margin: 0 0 16px; color: #ffd700; font-family: 'Orbitron', sans-serif; }
.scoreboard-ranks { display: grid; gap: 10px; }
.scoreboard-rank {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 54, 88, .84), rgba(0, 30, 60, .52));
    border: 1px solid rgba(0, 212, 255, .20);
}
.score-rank-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Orbitron', sans-serif;
    color: #05111e;
    background: #80deea;
    font-size: 1.35rem;
    font-weight: 900;
}
.rankline-1 .score-rank-number { background: linear-gradient(135deg, #fff7b0, #ffd700); }
.rankline-2 .score-rank-number { background: linear-gradient(135deg, #f8fbff, #9fb4c8); }
.rankline-3 .score-rank-number { background: linear-gradient(135deg, #ffd8a8, #c9772d); }
.score-team b { display: block; color: #e9fbff; font-size: clamp(1rem, 1.7vw, 1.45rem); }
.score-team span { color: #aeefff; }
.score-weight { text-align: right; color: #00ff88; font-size: clamp(1.15rem, 2vw, 1.7rem); font-family: 'Orbitron', sans-serif; }
.scoreboard-species-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.scoreboard-species-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 30, 60, .48);
    border: 1px solid rgba(0, 212, 255, .18);
}
.scoreboard-species-item.empty { opacity: .62; }
.score-species-icon { font-size: 2rem; }
.scoreboard-species-item b,
.scoreboard-species-item span,
.scoreboard-species-item strong { display: block; }
.scoreboard-species-item b { color: #ffd700; }
.scoreboard-species-item span { color: #dffaff; }
.scoreboard-species-item strong { color: #00ff88; font-family: 'Orbitron', sans-serif; }
.scoreboard-empty { padding: 18px; color: #aeefff; border: 1px dashed rgba(0, 212, 255, .28); border-radius: 14px; }
.scoreboard-footer { text-align: center; color: #80deea; margin-top: 16px; letter-spacing: 1px; }
@media (max-width: 1050px) {
    .workflow-head,
    .scoreboard-header { flex-direction: column; align-items: stretch; }
    .workflow-steps,
    .readiness-list,
    .quick-actions,
    .scoreboard-stats,
    .scoreboard-grid { grid-template-columns: 1fr; }
    .document-actions { grid-template-columns: 1fr; }
    .scoreboard-species-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .workflow-card { padding: 16px; }
    .activity-item,
    .scoreboard-rank { grid-template-columns: 1fr; }
    .score-weight { text-align: left; }
    .scoreboard-shell { width: calc(100% - 20px); }
}
.info-steps { color: #dffaff; line-height: 1.65; padding-left: 22px; }
.info-steps li { margin-bottom: 6px; }


/* v3.6 Premium Dashboard + Live Scoreboard Unification */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(203, 163, 83, .18), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(0, 212, 255, .15), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.025), transparent 35%);
    z-index: 0;
}
.top-controls {
    border: 1px solid rgba(203, 163, 83, .24);
    background: rgba(7, 24, 44, .72);
    box-shadow: 0 14px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(16px);
}
.container.logged-in {
    position: relative;
    z-index: 1;
}
.header-logo-container {
    border: 1px solid rgba(203, 163, 83, .28);
    border-radius: 26px;
    padding: 28px 24px;
    background:
        linear-gradient(135deg, rgba(7, 24, 44, .88), rgba(10, 66, 120, .50)),
        radial-gradient(circle at 50% 0%, rgba(203, 163, 83, .20), transparent 45%);
    box-shadow: 0 24px 70px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.08);
    overflow: hidden;
}
.header-logo-container::before,
.workflow-card::before,
.panel::before,
.scoreboard-header::before,
.scoreboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255,255,255,.11), transparent 26%, transparent 72%, rgba(203,163,83,.08));
    opacity: .65;
}
.header-logo-container { position: relative; }
.header-logo-container h1 {
    color: #fff4dc;
    text-shadow: 0 0 20px rgba(203,163,83,.20);
    letter-spacing: .04em;
}
.header-logo-container .subtitle { color: #dff4ff; }
.event-meta-line {
    color: rgba(255,244,220,.86);
    margin-top: 8px;
    letter-spacing: .6px;
}
.event-status-badge {
    display: inline-grid;
    place-items: center;
    min-width: 104px;
    padding: 8px 14px;
    margin: 12px auto 4px;
    border-radius: 999px;
    border: 1px solid rgba(203, 163, 83, .50);
    background: rgba(203, 163, 83, .14);
    color: #ffe4a8;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 24px rgba(203,163,83,.12);
}
.event-status-badge.status-final { color:#00ff88; border-color:rgba(0,255,136,.45); background:rgba(0,255,136,.12); }
.event-status-badge.status-running { color:#80deea; border-color:rgba(0,212,255,.45); background:rgba(0,212,255,.12); }
.workflow-card,
.panel,
.stat-box,
.scoreboard-card,
.scoreboard-stats div,
.scoreboard-header {
    border-color: rgba(203, 163, 83, .28) !important;
}
.workflow-card,
.panel {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(7,24,44,.86), rgba(10,66,120,.42)),
        radial-gradient(circle at 0% 0%, rgba(203,163,83,.12), transparent 38%);
    box-shadow: 0 22px 56px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.panel-title {
    color: #ffe4a8 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.panel-title::after {
    content: "";
    display: block;
    width: 82px;
    height: 2px;
    margin-top: 8px;
    background: linear-gradient(90deg, #cba353, transparent);
}
.workflow-card h2,
.scoreboard-card h2 { color: #fff4dc; }
.eyebrow { color: #ffe4a8; }
.readiness-ring {
    border-color: rgba(203,163,83,.72);
    background: radial-gradient(circle, rgba(203,163,83,.14), rgba(0,0,0,.06));
    box-shadow: 0 0 38px rgba(203,163,83,.18), inset 0 0 26px rgba(255,255,255,.04);
}
.readiness-ring span { color: #ffe4a8; }
.workflow-steps b {
    background: linear-gradient(135deg, #fff1bc, #cba353);
    color: #0b1c30;
}
.workflow-steps div,
.readiness-item,
.activity-item,
.fish-item,
.backup-note,
.locked-note,
.empty-state {
    border-color: rgba(203,163,83,.20);
    background: rgba(255,255,255,.045);
}
.stats-bar {
    gap: 14px;
}
.stat-box {
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(7,24,44,.86), rgba(10,66,120,.36));
    box-shadow: 0 18px 44px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.07);
}
.stat-box .stat-number {
    color: #ffe4a8 !important;
    text-shadow: 0 0 18px rgba(203,163,83,.18);
}
.quick-actions { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.document-actions a,
.document-actions button,
.quick-actions a {
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
input, select, textarea {
    border-color: rgba(203,163,83,.28) !important;
    background: rgba(255,255,255,.07) !important;
}
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(203,163,83,.16) !important;
}

/* v3.6 Live Scoreboard */
body.scoreboard-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(203,163,83,.26), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(0,212,255,.18), transparent 32%),
        linear-gradient(135deg, #040b14, #071827 48%, #0b1c30);
}
.scoreboard-shell { width: min(1640px, calc(100% - 44px)); }
.scoreboard-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7,24,44,.92), rgba(10,66,120,.55));
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
}
.scoreboard-brand img {
    border: 1px solid rgba(203,163,83,.36);
    background: rgba(255,255,255,.08);
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
.scoreboard-brand h1 {
    color: #fff4dc;
    text-shadow: 0 0 28px rgba(203,163,83,.20);
}
.scoreboard-brand p { color: rgba(223,244,255,.88); }
.scoreboard-actions a,
.scoreboard-actions button {
    border-color: rgba(203,163,83,.45);
    background: rgba(203,163,83,.14);
    color: #ffe4a8;
}
.scoreboard-stats div {
    background: linear-gradient(135deg, rgba(7,24,44,.86), rgba(10,66,120,.42));
}
.scoreboard-stats strong { color: #ffe4a8; }
.scoreboard-stats span { color: rgba(223,244,255,.78); }
.scoreboard-podium {
    display: grid;
    grid-template-columns: 1fr 1.18fr 1fr;
    gap: 16px;
    margin: 18px 0;
    align-items: stretch;
}
.podium-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 18px;
    border: 1px solid rgba(203,163,83,.32);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(7,24,44,.86), rgba(10,66,120,.46));
    box-shadow: 0 22px 54px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08);
}
.podium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(203,163,83,.20), transparent 42%);
    pointer-events:none;
}
.podium-1 { transform: translateY(-6px); border-color: rgba(255,215,0,.52); }
.podium-rank {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff1bc, #cba353);
    color: #071827;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.podium-title {
    position: relative;
    z-index: 1;
    color: #fff4dc;
    font-size: clamp(1.05rem, 1.8vw, 1.65rem);
    font-weight: 900;
    line-height: 1.1;
}
.podium-weight {
    position: relative;
    z-index: 1;
    margin-top: 8px;
    color: #00ff88;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 2.3vw, 2.1rem);
}
.podium-detail {
    position: relative;
    z-index: 1;
    margin-top: 6px;
    color: rgba(223,244,255,.78);
}
.scoreboard-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7,24,44,.86), rgba(10,66,120,.36));
    border-radius: 24px;
}
.scoreboard-rank {
    border-color: rgba(203,163,83,.22);
    background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(10,66,120,.30));
}
.score-rank-number,
.rankline-1 .score-rank-number,
.rankline-2 .score-rank-number,
.rankline-3 .score-rank-number {
    background: linear-gradient(135deg, #fff1bc, #cba353);
    color: #071827;
}
.score-weight,
.scoreboard-species-item strong { color: #00ff88; }
.scoreboard-species-item b { color: #ffe4a8; }
.scoreboard-species-item {
    border-color: rgba(203,163,83,.22);
    background: rgba(255,255,255,.045);
}
.scoreboard-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border: 1px solid rgba(203,163,83,.22);
    border-radius: 999px;
    background: rgba(7,24,44,.58);
    color: rgba(255,244,220,.84);
}
@media (max-width: 1050px) {
    .quick-actions { grid-template-columns: 1fr; }
    .scoreboard-podium { grid-template-columns: 1fr; }
    .podium-1 { transform: none; }
}

/* v3.8 Sidebar Menu Vertikal Kiri */
html { scroll-behavior: smooth; }
#mainContainer, #alur, #peserta, #tangkapan, #hasil, #aktivitas, #database { scroll-margin-top: 24px; }
body { padding-left: 280px; }
.top-controls.side-nav {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: 260px !important;
    height: 100vh;
    margin: 0 !important;
    padding: 18px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 16px !important;
    border: 0 !important;
    border-right: 1px solid rgba(203, 163, 83, .34) !important;
    border-radius: 0 !important;
    background:
        linear-gradient(180deg, rgba(7, 24, 44, .98), rgba(10, 42, 72, .96)),
        radial-gradient(circle at 50% 0%, rgba(203, 163, 83, .20), transparent 38%) !important;
    box-shadow: 18px 0 50px rgba(0, 0, 0, .28), inset -1px 0 0 rgba(255,255,255,.06) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow-y: auto;
    z-index: 2000 !important;
}
.side-brand {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(203, 163, 83, .34);
    border-radius: 18px;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.side-brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff0bf, #cba353);
    color: #07182c;
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    box-shadow: 0 10px 24px rgba(203,163,83,.22);
}
.side-brand strong {
    display: block;
    color: #fff4dc;
    font-family: 'Orbitron', sans-serif;
    font-size: .92rem;
    letter-spacing: .04em;
    line-height: 1.2;
}
.side-brand span {
    display: block;
    margin-top: 4px;
    color: rgba(223,244,255,.75);
    font-size: .8rem;
}
.side-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.side-menu a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(203, 163, 83, .16);
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    color: #dff4ff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .03em;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.side-menu a span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 24px;
    border-radius: 999px;
    background: rgba(203,163,83,.12);
    color: #ffd98a;
    font-family: 'Orbitron', sans-serif;
    font-size: .66rem;
}
.side-menu a:hover {
    transform: translateX(4px);
    border-color: rgba(203, 163, 83, .55);
    background: rgba(203, 163, 83, .13);
    color: #fff4dc;
}
.side-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 14px;
    border-top: 1px solid rgba(203,163,83,.20);
}
.top-controls.side-nav .settings-btn,
.top-controls.side-nav .info-btn,
.top-controls.side-nav .scoreboard-top-btn,
.top-controls.side-nav .logout-btn {
    width: 100% !important;
    min-height: 40px;
    display: grid;
    place-items: center;
    margin: 0 !important;
    border-radius: 12px !important;
    font-family: 'Orbitron', sans-serif;
    font-size: .72rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}
.top-controls.side-nav .settings-btn,
.top-controls.side-nav .info-btn,
.top-controls.side-nav .scoreboard-top-btn {
    color: #fff4dc;
    border: 1px solid rgba(203, 163, 83, .42);
    background: rgba(203, 163, 83, .12);
}
.top-controls.side-nav .logout-btn {
    color: #ffb3bd;
    border: 1px solid rgba(255, 71, 87, .45);
    background: rgba(255, 71, 87, .12);
}
.container.logged-in {
    max-width: none !important;
    width: min(1500px, calc(100vw - 310px));
    margin: 0 auto !important;
    padding: 22px 24px 32px !important;
}
.datetime-container {
    top: 18px !important;
    right: 20px !important;
}
.header-logo-container {
    margin-top: 8px !important;
}
.database-anchor { min-width: 0; }
.database-anchor > .panel { height: 100%; }

@media (min-width: 1180px) {
    .main-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .database-anchor {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    body { padding-left: 0; }
    .top-controls.side-nav {
        position: sticky !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px !important;
        flex-direction: column !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(203, 163, 83, .34) !important;
        overflow: visible;
    }
    .side-brand {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 8px 10px;
    }
    .side-brand-mark { width: 38px; height: 38px; font-size: .62rem; }
    .side-menu {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, max-content);
        overflow-x: auto;
        padding-bottom: 2px;
    }
    .side-menu a { min-height: 38px; white-space: nowrap; }
    .side-actions {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .container.logged-in {
        width: 100% !important;
        margin: 0 !important;
        padding: 14px 12px 24px !important;
    }
    .datetime-container {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 12px auto !important;
    }
}

@media (max-width: 520px) {
    .side-actions { grid-template-columns: 1fr; }
    .side-menu { grid-auto-columns: minmax(135px, max-content); }
    .side-menu a { font-size: .88rem; }
}

/* v3.9 Single Room Sidebar Tabs */
.tab-room {
    display: none !important;
}
.tab-room.is-active {
    display: block !important;
    animation: roomFadeIn .22s ease both;
}
.stats-bar.tab-room.is-active {
    display: grid !important;
}
.database-anchor.tab-room.is-active {
    display: block !important;
}
.dashboard-room.tab-room.is-active {
    display: block !important;
}
.main-grid {
    display: block !important;
}
.main-grid > .tab-room.is-active {
    width: 100%;
}
.side-menu a.active {
    transform: translateX(5px);
    border-color: rgba(203, 163, 83, .78);
    background: linear-gradient(135deg, rgba(203, 163, 83, .22), rgba(255, 255, 255, .06));
    color: #fff4dc;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255,255,255,.10);
}
.side-menu a.active span {
    background: linear-gradient(135deg, #fff0bf, #cba353);
    color: #07182c;
}
.room-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(203, 163, 83, .28);
    border-radius: 16px;
    background: rgba(255,255,255,.055);
    color: rgba(223,244,255,.86);
    font-size: .92rem;
}
.room-hint b {
    color: #ffd98a;
}
@keyframes roomFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 980px) {
    .side-menu a.active { transform: none; }
}

/* v4.0 Premium database action cards */
.database-panel-shell .panel-title,
.database-panel-shell h2 {
    letter-spacing: .08em;
}
.database-panel.enhanced {
    background: linear-gradient(145deg, rgba(8, 24, 42, .86), rgba(16, 43, 68, .72));
    border: 1px solid rgba(203, 163, 83, .28);
    border-radius: 22px;
    padding: 18px !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.06);
}
.backup-note {
    border: 1px solid rgba(203, 163, 83, .32);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(203, 163, 83, .16), rgba(7, 24, 44, .44));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.backup-note strong,
.backup-note b {
    color: #f6d58a !important;
}
.db-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 18px;
}
.db-action-card,
button.db-action-card {
    position: relative;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 74px;
    width: 100%;
    padding: 13px 14px;
    margin: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    border-radius: 18px;
    border: 1px solid rgba(203, 163, 83, .34);
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    color: #f7fbff !important;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
}
.db-action-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,.16), transparent 38%);
    opacity: .85;
    pointer-events: none;
}
.db-action-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 999px;
    background: #cba353;
    opacity: .92;
}
.db-action-card:hover,
button.db-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(246, 213, 138, .72);
    box-shadow: 0 18px 42px rgba(0,0,0,.34), 0 0 24px rgba(203,163,83,.14);
    color: #fff !important;
}
.db-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.14);
    font-size: 1.2rem;
    box-shadow: inset 0 0 18px rgba(255,255,255,.06);
}
.db-action-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #fff5d7;
    font-size: .88rem;
    line-height: 1.15;
    letter-spacing: .02em;
}
.db-action-card small {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 4px;
    color: rgba(221, 236, 244, .72);
    font-size: .72rem;
    line-height: 1.2;
    font-weight: 600;
}
.db-action-card.backup { background: linear-gradient(145deg, rgba(29, 112, 88, .78), rgba(7, 42, 51, .72)); }
.db-action-card.backup::after { background: #39d98a; }
.db-action-card.pdf { background: linear-gradient(145deg, rgba(10, 66, 120, .88), rgba(7, 24, 44, .82)); }
.db-action-card.pdf::after { background: #6bbcff; }
.db-action-card.winner { background: linear-gradient(145deg, rgba(154, 109, 25, .86), rgba(49, 35, 17, .78)); }
.db-action-card.winner::after { background: #ffd36a; }
.db-action-card.catch { background: linear-gradient(145deg, rgba(0, 96, 120, .82), rgba(7, 24, 44, .78)); }
.db-action-card.catch::after { background: #00d4ff; }
.db-action-card.csv { background: linear-gradient(145deg, rgba(64, 79, 104, .82), rgba(15, 31, 50, .76)); }
.db-action-card.csv::after { background: #c7d3e2; }
.db-action-card.view { background: linear-gradient(145deg, rgba(78, 55, 124, .82), rgba(19, 28, 56, .78)); }
.db-action-card.view::after { background: #b99cff; }
.restore-box {
    border: 1px solid rgba(203, 163, 83, .30) !important;
    background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)) !important;
    border-radius: 18px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.restore-box label {
    color: #fff5d7 !important;
    letter-spacing: .04em;
}
.db-inline-action,
button.db-inline-action {
    width: 100%;
    border: 1px solid rgba(203, 163, 83, .34) !important;
    border-radius: 14px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    color: #08182a !important;
    font-weight: 900 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.20) !important;
}
.db-inline-action.import { background: linear-gradient(135deg, #f6d58a, #cba353) !important; }
.db-inline-action.delete { background: linear-gradient(135deg, #ff7a8a, #d9314b) !important; color: #fff !important; }
.compact-danger {
    border-radius: 18px !important;
    background: linear-gradient(145deg, rgba(217, 49, 75, .12), rgba(7, 24, 44, .42)) !important;
    border-color: rgba(255, 122, 138, .36) !important;
}

/* Make old anchor buttons premium too, so no plain blue export links remain */
a.button.success,
.button.success {
    background: linear-gradient(135deg, #1f9b72 0%, #39d98a 100%) !important;
    color: #071827 !important;
    border: 1px solid rgba(255,255,255,.18);
}
a.button.pdf,
.button.pdf {
    background: linear-gradient(135deg, #0a4278 0%, #006aa8 100%) !important;
    color: #fff !important;
    border: 1px solid rgba(107,188,255,.35);
}
a.button.secondary,
.button.secondary {
    background: linear-gradient(135deg, #f6d58a 0%, #cba353 100%) !important;
    color: #081827 !important;
    border: 1px solid rgba(255,255,255,.18);
}

@media (max-width: 1180px) {
    .db-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .database-panel.enhanced { padding: 14px !important; }
    .db-action-grid { grid-template-columns: 1fr; gap: 10px; }
    .db-action-card, button.db-action-card { min-height: 68px; }
}

/* v4.1 Premium Hasil & Dokumen */
.premium-doc-head {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    margin: 4px 0 18px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(203, 163, 83, .28);
    background:
        radial-gradient(circle at 0% 0%, rgba(203, 163, 83, .18), transparent 38%),
        linear-gradient(135deg, rgba(7, 24, 44, .94), rgba(10, 66, 120, .34));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .20), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.premium-doc-head h3 {
    margin: 6px 0 6px;
    color: #fff4dc;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    letter-spacing: .02em;
}
.premium-doc-head p {
    margin: 0;
    max-width: 760px;
    color: rgba(233, 242, 252, .78);
    line-height: 1.55;
}
.premium-doc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffe4a8;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
}
.premium-doc-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #00ff88, #cba353);
    border-radius: 999px;
}
.premium-doc-live {
    min-width: 168px;
    display: grid;
    place-items: center;
    text-decoration: none;
    border-radius: 20px;
    padding: 14px 18px;
    color: #071827 !important;
    background: linear-gradient(135deg, #fff1bc, #cba353);
    border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 14px 34px rgba(203, 163, 83, .22);
    text-transform: uppercase;
    letter-spacing: .08em;
}
.premium-doc-live span {
    font-size: .7rem;
    font-weight: 900;
    opacity: .78;
}
.premium-doc-live strong {
    font-size: .95rem;
    font-weight: 950;
}
.document-actions.premium-doc-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 0 0 22px !important;
}
.premium-doc-card,
button.premium-doc-card {
    position: relative;
    min-height: 154px;
    padding: 18px 18px 16px;
    border-radius: 24px;
    border: 1px solid rgba(203, 163, 83, .30) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 20% 0%, rgba(203, 163, 83, .16), transparent 34%),
        rgba(7, 24, 44, .72) !important;
    color: #eaf7ff !important;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}
.premium-doc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, .16), transparent 34%, transparent 68%, rgba(203, 163, 83, .12));
    opacity: .55;
    pointer-events: none;
}
.premium-doc-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(203, 163, 83, .95), transparent);
}
.premium-doc-card:hover,
button.premium-doc-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 228, 168, .72) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, .30), 0 0 28px rgba(203, 163, 83, .16) !important;
}
.premium-doc-card .doc-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 1.45rem;
    color: #071827;
    background: linear-gradient(135deg, #fff1bc, #cba353);
    box-shadow: 0 12px 24px rgba(203, 163, 83, .18);
    position: relative;
    z-index: 1;
}
.premium-doc-card small,
.premium-doc-card strong,
.premium-doc-card em {
    position: relative;
    z-index: 1;
}
.premium-doc-card small {
    color: #ffe4a8;
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 900;
}
.premium-doc-card strong {
    display: block;
    margin-top: 7px;
    color: #ffffff;
    font-size: clamp(.98rem, 1.4vw, 1.18rem);
    letter-spacing: .02em;
    line-height: 1.2;
}
.premium-doc-card em {
    display: block;
    margin-top: 8px;
    color: rgba(231, 245, 255, .70);
    font-style: normal;
    font-size: .82rem;
    line-height: 1.35;
}
.premium-doc-card.ba { background: linear-gradient(145deg, rgba(203, 163, 83, .16), rgba(7, 24, 44, .78)) !important; }
.premium-doc-card.winners { background: linear-gradient(145deg, rgba(10, 106, 168, .28), rgba(7, 24, 44, .78)) !important; }
.premium-doc-card.catches { background: linear-gradient(145deg, rgba(0, 255, 136, .13), rgba(7, 24, 44, .78)) !important; }
.premium-doc-card.certificate { background: linear-gradient(145deg, rgba(137, 78, 196, .30), rgba(7, 24, 44, .78)) !important; }
.premium-doc-card.winners .doc-icon { background: linear-gradient(135deg, #bfe8ff, #006aa8); color: #ffffff; }
.premium-doc-card.catches .doc-icon { background: linear-gradient(135deg, #c8ffd9, #39d98a); color: #071827; }
.premium-doc-card.certificate .doc-icon { background: linear-gradient(135deg, #f0d7ff, #8e44ad); color: #ffffff; }

@media (max-width: 1180px) {
    .document-actions.premium-doc-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 720px) {
    .premium-doc-head { flex-direction: column; padding: 14px; }
    .premium-doc-live { min-width: 0; }
    .document-actions.premium-doc-actions { grid-template-columns: 1fr !important; }
    .premium-doc-card, button.premium-doc-card { min-height: 124px; }
}


/* v4.3 Audit Operasional: inline edit, backup otomatis, dan kontrol data lebih aman */
.editable-item {
    align-items: flex-start;
    gap: 14px;
}

.editable-main {
    flex: 1;
    min-width: 220px;
}

.item-actions {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inline-edit {
    position: relative;
}

.inline-edit summary {
    list-style: none;
    cursor: pointer;
    border: 1px solid rgba(203, 163, 83, 0.45);
    background: linear-gradient(135deg, rgba(203, 163, 83, 0.18), rgba(255, 255, 255, 0.05));
    color: #f7df9a;
    border-radius: 12px;
    padding: 9px 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.inline-edit summary::-webkit-details-marker {
    display: none;
}

.inline-edit[open] summary {
    border-color: rgba(0, 212, 255, 0.55);
    color: #bff7ff;
}

.inline-edit form {
    margin-top: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(7, 24, 44, 0.95);
    border: 1px solid rgba(203, 163, 83, 0.35);
    box-shadow: 0 20px 55px rgba(0,0,0,0.32);
    min-width: min(640px, 82vw);
}

.small-save {
    margin-top: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #cba353, #f3d892);
    color: #092038;
    font-weight: 800;
}

.auto-backup-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(7,24,44,0.78), rgba(11,45,74,0.68));
    border: 1px solid rgba(203, 163, 83, 0.35);
    color: #e8f7ff;
}

.auto-backup-box strong {
    color: #f4d98c;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auto-backup-box p {
    margin: 0 0 12px;
    color: rgba(232,247,255,0.78);
}

.auto-backup-box ul {
    margin: 0;
    padding-left: 18px;
}

.auto-backup-box li {
    margin: 7px 0;
}

.auto-backup-box small {
    color: rgba(244,217,140,0.82);
    margin-left: 8px;
}

.empty-state.mini {
    padding: 10px 12px;
    min-height: auto;
}

@media (max-width: 820px) {
    .item-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .inline-edit form {
        min-width: 100%;
    }
}

/* v4.4 - pencarian, validasi final, Excel, restore backup */
.room-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px;
    border: 1px solid rgba(203, 163, 83, .28);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
    padding: 0 14px;
    border: 1px solid rgba(203, 163, 83, .35);
    border-radius: 14px;
    background: rgba(4, 18, 35, .55);
}
.search-box input {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff7e8;
}
.search-box input::placeholder { color: rgba(255, 247, 232, .55); }
.room-toolbar small {
    color: rgba(255, 247, 232, .7);
    white-space: nowrap;
}
.final-validation-panel {
    margin: 18px 0 20px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(203, 163, 83, .32);
    background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
    box-shadow: 0 18px 45px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.final-validation-panel.ready { border-color: rgba(0,255,136,.38); }
.final-validation-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.final-validation-head > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #cba353, #ffe2a0);
    color: #07182b;
    font-weight: 900;
}
.final-validation-head strong {
    display: block;
    color: #fff7e8;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.final-validation-head small { color: rgba(255,247,232,.65); }
.final-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}
.final-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    color: rgba(255,247,232,.78);
    background: rgba(255,255,255,.045);
    font-size: .88rem;
}
.final-check span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,80,80,.18);
    color: #ffb7b7;
    font-weight: 900;
}
.final-check.done span {
    background: rgba(0,255,136,.18);
    color: #8fffc5;
}
.final-warning {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(255, 193, 7, .10);
    border: 1px solid rgba(255, 193, 7, .22);
    color: #ffe6a6;
    font-size: .88rem;
}
.db-action-card.excel {
    background: linear-gradient(135deg, rgba(0, 180, 120, .22), rgba(10, 66, 120, .55));
    border-color: rgba(86, 255, 190, .38);
}
.backup-restore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.backup-restore-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(203, 163, 83, .28);
    background: rgba(4, 18, 35, .45);
}
.backup-restore-card strong {
    display: block;
    color: #fff7e8;
    font-size: .86rem;
    word-break: break-all;
}
.backup-restore-card small {
    color: rgba(255, 247, 232, .58);
}
.backup-restore-card input {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(203, 163, 83, .32);
    background: rgba(255,255,255,.06);
    color: #fff7e8;
}
.filter-empty { margin-top: 12px; }
@media (max-width: 760px) {
    .room-toolbar { flex-direction: column; align-items: stretch; }
    .room-toolbar small { white-space: normal; }
}


/* v4.5 - PDF Print Preview behavior */
[data-pdf-preview] {
    position: relative;
}
[data-pdf-preview]::after {
    content: "Preview";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 224, 150, .55);
    background: rgba(255, 224, 150, .12);
    color: #ffe096;
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    vertical-align: middle;
}
[data-pdf-preview].preview-opening {
    box-shadow: 0 0 0 3px rgba(255, 224, 150, .18), 0 18px 44px rgba(0, 0, 0, .28);
}
.print-preview-note {
    border: 1px solid rgba(255, 224, 150, .35);
    background: linear-gradient(135deg, rgba(255, 224, 150, .12), rgba(0, 212, 255, .08));
    color: #f7fbff;
}
.quick-actions a[data-pdf-preview]::after,
.button[data-pdf-preview]::after {
    color: inherit;
    border-color: rgba(255,255,255,.45);
    background: rgba(255,255,255,.12);
}
@media (max-width: 720px) {
    [data-pdf-preview]::after {
        margin-left: 6px;
        padding: 2px 6px;
        font-size: .6rem;
    }
}


/* v4.6 - premium quick actions on dashboard */
.premium-quick-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}
.quick-premium-card {
    position: relative;
    min-height: 152px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 18px 18px 16px;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none !important;
    color: #eff9ff !important;
    border: 1px solid rgba(203, 163, 83, .26);
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        radial-gradient(circle at 15% 0%, rgba(203,163,83,.18), transparent 35%),
        rgba(7, 24, 44, .78);
    box-shadow: 0 18px 42px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.quick-premium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255,255,255,.12), transparent 35%, transparent 68%, rgba(203,163,83,.16));
    opacity: .72;
    pointer-events: none;
}
.quick-premium-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 13px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(203,163,83,.95), transparent);
}
.quick-premium-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 231, 173, .68);
    box-shadow: 0 24px 56px rgba(0,0,0,.28), 0 0 26px rgba(203,163,83,.14);
}
.quick-premium-card > * {
    position: relative;
    z-index: 1;
}
.quick-premium-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 16px;
    font-size: 1.35rem;
    color: #071827;
    background: linear-gradient(135deg, #fff1bc, #cba353);
    box-shadow: 0 12px 24px rgba(203,163,83,.18);
}
.quick-premium-card small {
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 900;
    color: #ffe4a8;
}
.quick-premium-card strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.22;
}
.quick-premium-card em {
    display: block;
    margin-top: 10px;
    font-style: normal;
    color: rgba(231,245,255,.76);
    font-size: .83rem;
    line-height: 1.42;
}
.quick-premium-card.backup { background: linear-gradient(145deg, rgba(28, 128, 103, .22), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.winners { background: linear-gradient(145deg, rgba(10, 106, 168, .28), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.catches { background: linear-gradient(145deg, rgba(0, 212, 255, .18), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.database { background: linear-gradient(145deg, rgba(60, 104, 146, .24), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.excel { background: linear-gradient(145deg, rgba(45, 160, 98, .22), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.live { background: linear-gradient(145deg, rgba(115, 86, 198, .26), rgba(7, 24, 44, .80)) !important; }
.quick-premium-card.winners .quick-premium-icon,
.quick-premium-card.database .quick-premium-icon { background: linear-gradient(135deg, #cbe8ff, #1779c6); color: #fff; }
.quick-premium-card.catches .quick-premium-icon { background: linear-gradient(135deg, #c8fbff, #00a8cc); color: #072130; }
.quick-premium-card.backup .quick-premium-icon,
.quick-premium-card.excel .quick-premium-icon { background: linear-gradient(135deg, #d4ffe4, #39d98a); color: #072130; }
.quick-premium-card.live .quick-premium-icon { background: linear-gradient(135deg, #eedcff, #8850d0); color: #fff; }
.premium-quick-actions .quick-premium-card[data-pdf-preview]::after {
    content: "Print Preview";
    left: auto;
    right: 16px;
    top: 14px;
    bottom: auto;
    height: auto;
    padding: 4px 10px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    color: #fff7e8;
    font-size: .62rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    line-height: 1;
}
.premium-quick-actions .quick-premium-card.preview-opening {
    box-shadow: 0 0 0 3px rgba(255, 224, 150, .15), 0 24px 56px rgba(0,0,0,.30);
}
@media (max-width: 1180px) {
    .premium-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .premium-quick-actions { grid-template-columns: 1fr; }
    .quick-premium-card { min-height: 132px; }
    .premium-quick-actions .quick-premium-card[data-pdf-preview]::after {
        right: 12px;
        top: 12px;
    }
}


/* v4.8 - premium participant/fish input sections */
.panel-title::before {
    content: none !important;
}
.premium-section-title {
    display: flex !important;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.premium-section-title::after {
    flex: 1 1 auto;
    width: auto;
    margin-top: 0;
    min-width: 90px;
}
.section-badge {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(203,163,83,.34);
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.12), transparent 48%),
        linear-gradient(145deg, rgba(7,24,44,.96), rgba(10,66,120,.54));
    box-shadow: 0 16px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px rgba(0,212,255,.08);
    overflow: hidden;
}
.section-badge::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
}
.section-badge i {
    position: absolute;
    display: block;
    background: linear-gradient(180deg, #83ffe0, #00d4ff);
    box-shadow: 0 0 12px rgba(0,212,255,.28);
}
.section-badge.peserta i:nth-child(1) {
    width: 18px; height: 2px; left: 12px; top: 26px; border-radius: 999px;
}
.section-badge.peserta i:nth-child(2) {
    width: 2px; height: 18px; left: 20px; top: 18px; border-radius: 999px;
}
.section-badge.peserta i:nth-child(3) {
    width: 18px; height: 2px; right: 11px; top: 26px; border-radius: 999px; transform: rotate(90deg);
}
.section-badge.tangkapan i:nth-child(1) {
    width: 24px; height: 2px; left: 12px; top: 20px; border-radius: 999px; transform: rotate(-25deg);
}
.section-badge.tangkapan i:nth-child(2) {
    width: 14px; height: 2px; right: 10px; top: 31px; border-radius: 999px; transform: rotate(30deg);
}
.section-badge.tangkapan i:nth-child(3) {
    width: 10px; height: 10px; left: 21px; bottom: 12px; border-radius: 999px; background: radial-gradient(circle at 35% 35%, #fff1bc, #00d4ff 72%);
}
.section-title-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.section-title-copy strong {
    color: #ffe4a8;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: clamp(1.1rem, 1.45vw, 1.35rem);
    line-height: 1.05;
}
.section-title-copy small {
    color: rgba(232,247,255,.68);
    font-size: .84rem;
    line-height: 1.35;
    letter-spacing: .02em;
}
.premium-entry-form {
    padding: 16px 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(203,163,83,.22);
    background:
        linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
        rgba(3,18,35,.26);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    margin-bottom: 18px;
}
.premium-entry-form .form-grid.compact {
    gap: 14px 16px;
}
.premium-entry-form .form-group {
    margin-bottom: 0;
    padding: 14px 14px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.06);
    background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
}
.premium-entry-form label {
    color: #9fe7ff;
    font-size: .78rem;
    letter-spacing: .14em;
    margin-bottom: 10px;
}
.premium-entry-form input,
.premium-entry-form select {
    border-radius: 14px;
    border-color: rgba(203,163,83,.28) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.035), rgba(255,255,255,.01)) !important;
    color: #f1f8ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.premium-entry-form input::placeholder { color: rgba(231,245,255,.40); }
.premium-entry-form .current-value {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,212,255,.15);
    background: linear-gradient(135deg, rgba(0,212,255,.12), rgba(0,212,255,.03));
    color: #85fff4;
    font-weight: 700;
}
.entry-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.entry-note {
    flex: 1 1 280px;
    min-width: 240px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(203,163,83,.18);
    background: rgba(255,255,255,.035);
    color: rgba(231,245,255,.72);
    font-size: .83rem;
    line-height: 1.4;
}
.premium-entry-form > button,
.entry-form-footer > button {
    min-width: 220px;
    padding: 14px 22px;
    border-radius: 16px;
    border: 1px solid rgba(0,212,255,.20);
    background: linear-gradient(135deg, #17c3ff, #02b4e6 45%, #038dc2 100%);
    color: #061b2f;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    box-shadow: 0 14px 34px rgba(0,212,255,.20), inset 0 1px 0 rgba(255,255,255,.24);
}
.premium-entry-form > button:hover,
.entry-form-footer > button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
#peserta .room-toolbar,
#tangkapan .room-toolbar {
    border-radius: 20px;
    padding: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
#peserta .search-box,
#tangkapan .search-box {
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}
#peserta .empty-state,
#tangkapan .empty-state {
    min-height: 48px;
    display: grid;
    place-items: center;
    text-align: center;
    font-style: italic;
}
@media (max-width: 760px) {
    .premium-section-title {
        align-items: flex-start !important;
    }
    .premium-section-title::after {
        display: none;
    }
    .entry-form-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .entry-note,
    .entry-form-footer > button {
        min-width: 0;
        width: 100%;
    }
}

/* v4.9 - automatic verifier from Ketua Juri */
.auto-verifier-field input[readonly] {
    cursor: not-allowed;
    color: #ffe4a8 !important;
    border-color: rgba(203, 163, 83, .48) !important;
    background:
        linear-gradient(135deg, rgba(203, 163, 83, .12), rgba(0, 212, 255, .035)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(203,163,83,.06);
}
.auto-verifier-field .current-value {
    color: #9fffe0 !important;
    border-color: rgba(0,255,136,.18) !important;
    background: linear-gradient(135deg, rgba(0,255,136,.10), rgba(203,163,83,.05)) !important;
}
.verifier-warning {
    border-color: rgba(255, 193, 7, .40) !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, .13), rgba(255,255,255,.035)) !important;
    color: #ffe4a8 !important;
}


/* v5.0 - hero title single line refinement */
.header-logo-container {
    width: min(1240px, 100%) !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center;
    gap: 0 22px;
}
.hero-title-stack {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}
.hero-event-title {
    display: block;
    margin: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(2rem, 3.2vw, 4rem) !important;
    line-height: .95 !important;
    letter-spacing: .02em;
}
.hero-title-stack .subtitle {
    margin: 0 !important;
    max-width: none !important;
}
.hero-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.hero-meta-row .event-status-badge {
    flex: 0 0 auto;
    margin: 0;
}
.hero-meta-row .event-meta-line {
    flex: 1 1 340px;
    min-width: 240px;
    margin: 0;
}
@media (max-width: 1180px) {
    .hero-event-title {
        font-size: clamp(1.85rem, 2.8vw, 3.1rem) !important;
    }
}
@media (max-width: 860px) {
    .header-logo-container {
        width: 100% !important;
        grid-template-columns: 1fr !important;
        justify-items: start;
        row-gap: 14px;
    }
    .header-logo {
        width: 86px;
        height: 86px;
    }
    .hero-title-stack {
        width: 100%;
    }
    .hero-event-title {
        white-space: normal;
        text-overflow: clip;
        overflow: visible;
        font-size: clamp(1.8rem, 6vw, 2.7rem) !important;
        line-height: 1.02 !important;
    }
    .hero-meta-row {
        align-items: flex-start;
        gap: 10px;
    }
}


/* v5.1 - adjustable event title font size */
.hero-event-title {
    font-size: clamp(1.4rem, var(--hero-title-size, 3.2rem), 6rem) !important;
}
.scoreboard-event-title {
    font-size: clamp(1.6rem, var(--hero-title-size, 3.2rem), 6rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.title-size-setting input[type="number"] {
    max-width: 220px;
    font-weight: 800;
    color: #ffe4a8;
}
@media (max-width: 860px) {
    .hero-event-title,
    .scoreboard-event-title {
        font-size: clamp(1.8rem, 6vw, var(--hero-title-size, 3.2rem)) !important;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
}

/* v5.2 - explicit overall tie-breaker indicator */
.podium-item.tie-breaker::after {
    content: "TB" !important;
    position: static !important;
    transform: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin-left: 10px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 224, 150, .58);
    background: rgba(255, 224, 150, .12);
    color: #ffe096;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}
.tie-info {
    color: #ffe096 !important;
    font-style: normal !important;
    font-weight: 700;
    letter-spacing: .02em;
}


/* v5.4 - premium icon replacement */
.section-badge {
    position: relative;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: block;
    border-radius: 19px;
    border: 1px solid rgba(203,163,83,.32);
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.16), transparent 38%),
        linear-gradient(145deg, rgba(9,31,52,.98), rgba(7,67,111,.58));
    box-shadow: 0 16px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px rgba(0,212,255,.10);
    overflow: hidden;
}
.section-badge::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
}
.section-badge::after {
    content: "";
    position: absolute;
    inset: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    filter: drop-shadow(0 0 10px rgba(0,212,255,.18));
}
.section-badge i { display:none !important; }
.section-badge.peserta::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M9 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm8 1a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM3.5 20a5.5 5.5 0 0 1 11 0M14 20a4 4 0 0 1 7.5-1.7' stroke='%2331f1d7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section-badge.tangkapan::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12s2.7-4 8-4c3.1 0 5 1.1 6.4 2.2l1.6-1.2v6l-1.6-1.2C17 14.9 15.1 16 12 16c-5.3 0-8-4-8-4Z' stroke='%2331dfff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='9.2' cy='11.3' r='.8' fill='%23fff1bc'/%3E%3Cpath d='M4 12 2.5 10.8M4 12 2.5 13.2' stroke='%2331dfff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-badge.dokumen::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 3.5h5.5L18 8v11a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 7 19V5a1.5 1.5 0 0 1 1-1.5Z' stroke='%23ffe4a8' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M13.5 3.5V8H18' stroke='%23ffe4a8' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M9.5 11H15M9.5 14H15M9.5 17H13' stroke='%2331f1d7' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-badge.aktivitas::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='8' stroke='%2331dfff' stroke-width='1.8'/%3E%3Cpath d='M12 8v4l2.8 1.8' stroke='%23ffe4a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M12 4.5v1.2M19.5 12h-1.2M12 19.5v-1.2M4.5 12h1.2' stroke='%2331f1d7' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.section-badge.database::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cellipse cx='12' cy='6' rx='5.5' ry='2.5' stroke='%23ffe4a8' stroke-width='1.8'/%3E%3Cpath d='M6.5 6v4c0 1.4 2.5 2.5 5.5 2.5s5.5-1.1 5.5-2.5V6M6.5 10v4c0 1.4 2.5 2.5 5.5 2.5s5.5-1.1 5.5-2.5v-4M6.5 14v4c0 1.4 2.5 2.5 5.5 2.5s5.5-1.1 5.5-2.5v-4' stroke='%2331dfff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.section-badge.dokumen,
.section-badge.database { box-shadow: 0 16px 36px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px rgba(203,163,83,.14); }

/* v5.5 - participant number auto settings */
.participant-number-setting {
    border-color: rgba(0, 212, 255, .20) !important;
    background: linear-gradient(145deg, rgba(0, 212, 255, .07), rgba(203, 163, 83, .035)) !important;
}
.participant-number-setting label::before {
    content: "#";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 7px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    color: #061b2f;
    font-weight: 900;
    font-size: .75rem;
}

/* v5.6 - upload visibility and banner preview fix */
.global-event-banner-card {
    position: relative;
    width: min(100%, 1280px);
    margin: 0 auto 20px;
    padding: 8px;
    border-radius: 24px;
    border: 1px solid rgba(203,163,83,.34);
    background:
        linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
        rgba(7,24,44,.62);
    box-shadow: 0 22px 56px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
    overflow: hidden;
}
.global-event-banner-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,.11), transparent 32%, rgba(203,163,83,.12));
    pointer-events: none;
    z-index: 1;
}
.global-event-banner-card .event-banner {
    display: block;
    width: 100%;
    height: clamp(150px, 19vw, 260px);
    margin: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(0,212,255,.26);
    box-shadow: none;
}
.banner-status-pill {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(7,24,44,.62);
    color: #ffe4a8;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}
.upload-setting-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(203,163,83,.22);
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}
.upload-setting-card input[type="file"] {
    padding: 12px;
    border: 1px dashed rgba(203,163,83,.35) !important;
    background: rgba(4,18,35,.38) !important;
    cursor: pointer;
}
.upload-helper-text {
    margin-top: 8px;
    color: rgba(231,245,255,.68);
    font-size: .82rem;
    line-height: 1.35;
}
.upload-live-preview,
.sponsor-live-preview {
    margin-top: 12px;
}
.logo-preview.upload-live-preview {
    min-height: 96px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(203,163,83,.26);
    background: rgba(3,18,35,.34);
    overflow: hidden;
}
.logo-preview.upload-live-preview img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}
.logo-preview.upload-live-preview.banner-preview {
    min-height: 130px;
}
.logo-preview.upload-live-preview.banner-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 12px;
}
.upload-live-preview.has-new-preview {
    border-color: rgba(0,255,136,.38);
    box-shadow: 0 0 0 3px rgba(0,255,136,.08);
}
.upload-path-note {
    margin-top: 10px;
    word-break: break-all;
    font-size: .78rem;
}
.sponsor-live-preview img,
.sponsor-live-preview .sponsor-preview {
    max-width: 100%;
    max-height: 86px;
    object-fit: contain;
}
@media (max-width: 760px) {
    .global-event-banner-card .event-banner {
        height: clamp(110px, 36vw, 170px);
    }
    .banner-status-pill {
        top: 14px;
        right: 14px;
    }
}


/* v5.7 - premium certificate modal */
.certificate-premium-modal {
    max-width: 1040px !important;
    border: 1px solid rgba(0,212,255,.7) !important;
    background:
        radial-gradient(circle at top left, rgba(0,212,255,.12), transparent 22%),
        radial-gradient(circle at top right, rgba(203,163,83,.12), transparent 22%),
        linear-gradient(135deg, #0a1b31 0%, #0e2f50 52%, #123d63 100%) !important;
    box-shadow: 0 28px 90px rgba(0,212,255,.16), 0 0 0 1px rgba(255,255,255,.03) inset !important;
}
.certificate-premium-header {
    padding: 22px 26px !important;
    text-align: left !important;
    background: linear-gradient(135deg, rgba(4,35,62,.92), rgba(9,56,94,.78)) !important;
    border-bottom: 1px solid rgba(0,212,255,.26) !important;
}
.certificate-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 72px;
}
.certificate-modal-title-wrap h2 {
    margin: 0;
    color: #37ddff;
    font-size: 1.9rem;
}
.certificate-modal-title-wrap p {
    margin: 6px 0 0;
    color: rgba(231,245,255,.72);
    font-size: .92rem;
}
.certificate-modal-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 18px;
    border: 1px solid rgba(203,163,83,.30);
    background:
        linear-gradient(145deg, rgba(10,28,48,.98), rgba(0,92,138,.64));
    position: relative;
    box-shadow: 0 16px 40px rgba(0,0,0,.24), 0 0 26px rgba(0,212,255,.14);
}
.certificate-modal-icon::before,
.certificate-modal-icon::after {
    content: "";
    position: absolute;
}
.certificate-modal-icon::before {
    inset: 12px 17px 12px 17px;
    border: 2px solid #ffe4a8;
    border-top-width: 5px;
    border-radius: 10px;
}
.certificate-modal-icon::after {
    left: 21px;
    right: 21px;
    top: 21px;
    height: 16px;
    border-top: 2px solid #30f1d7;
    border-bottom: 2px solid #30f1d7;
}
.certificate-premium-body {
    padding: 24px 26px 26px !important;
}
.certificate-premium-intro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.certificate-intro-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(203,163,83,.20);
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.certificate-intro-card strong {
    display: block;
    color: #ffffff;
    margin-bottom: 6px;
}
.certificate-intro-card p {
    margin: 0;
    color: rgba(231,245,255,.74);
    font-size: .9rem;
    line-height: 1.45;
}
.certificate-intro-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    background: linear-gradient(135deg, #d8f6ff, #29c9ff);
    color: #072130;
    box-shadow: 0 12px 22px rgba(0,212,255,.18);
}
.certificate-intro-card.template .certificate-intro-icon { background: linear-gradient(135deg, #fff0b8, #cba353); }
.certificate-intro-card.checklist .certificate-intro-icon { background: linear-gradient(135deg, #d7ffe4, #34d98d); }
.certificate-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.certificate-summary-box {
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.07);
}
.certificate-summary-box small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9fe7ff;
    font-size: .68rem;
    margin-bottom: 7px;
}
.certificate-summary-box strong {
    color: #ffe4a8;
    font-size: 1.1rem;
}
.certificate-bulk-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.certificate-bulk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 134px;
    padding: 18px 18px 16px;
    border-radius: 20px;
    text-decoration: none !important;
    color: #eff9ff !important;
    overflow: hidden;
    border: 1px solid rgba(203,163,83,.22);
    box-shadow: 0 16px 36px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .2s ease, box-shadow .2s ease;
}
.certificate-bulk-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(0,0,0,.24); }
.certificate-bulk-card.all { background: linear-gradient(145deg, rgba(44,166,117,.20), rgba(7,24,44,.84)); }
.certificate-bulk-card.winners { background: linear-gradient(145deg, rgba(203,163,83,.24), rgba(7,24,44,.84)); }
.certificate-bulk-card small { color: #9fe7ff; text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; }
.certificate-bulk-card strong { color: #fff; margin-top: 7px; font-size: 1.05rem; }
.certificate-bulk-card em { margin-top: 8px; font-style: normal; color: rgba(231,245,255,.74); font-size: .88rem; line-height: 1.42; }
.bulk-icon {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 12px;
    background: linear-gradient(135deg, #d8f6ff, #29c9ff); color: #072130; font-size: 1.18rem;
}
.certificate-bulk-card.winners .bulk-icon { background: linear-gradient(135deg, #fff0b8, #cba353); }
.preview-pill {
    position: absolute; top: 16px; right: 16px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.08); color: #fff2cf; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em;
}
.premium-certificate-list {
    max-height: 420px;
    padding-right: 4px;
    margin-top: 0 !important;
}
.premium-certificate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
    border: 1px solid rgba(0,212,255,.16);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.premium-certificate-item:hover {
    transform: translateY(-2px);
    border-color: rgba(0,212,255,.34);
    box-shadow: 0 16px 30px rgba(0,0,0,.18);
}
.premium-certificate-item.winner {
    background: linear-gradient(145deg, rgba(203,163,83,.16), rgba(7,24,44,.86));
    border-color: rgba(203,163,83,.34);
}
.certificate-item-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.participant-emblem {
    width: 52px; height: 52px; flex: 0 0 52px; border-radius: 16px; display: grid; place-items: center;
    font-weight: 900; font-size: 1rem; color: #072130;
    background: linear-gradient(135deg, #cbe8ff, #23cbff);
    box-shadow: 0 12px 24px rgba(0,212,255,.16);
}
.participant-emblem.winner { background: linear-gradient(135deg, #fff0b8, #cba353); }
.certificate-item-copy { min-width: 0; }
.certificate-item-copy strong {
    display: block; color: #fff; font-size: 1.02rem; margin-bottom: 6px;
}
.certificate-meta-line {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.certificate-meta-line span {
    padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    color: rgba(231,245,255,.80); font-size: .77rem;
}
.certificate-item-actions {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.certificate-status-chip {
    padding: 6px 11px; border-radius: 999px; background: rgba(0,212,255,.10); border: 1px solid rgba(0,212,255,.24);
    color: #8ceaff; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
}
.certificate-status-chip.winner {
    background: rgba(203,163,83,.14); border-color: rgba(203,163,83,.30); color: #ffe4a8;
}
.certificate-preview-button {
    min-width: 144px; padding: 12px 16px; border-radius: 14px; text-align: center; text-decoration: none !important;
    background: linear-gradient(135deg, #1ecbff, #0da4e4 48%, #0b7cb6 100%);
    border: 1px solid rgba(0,212,255,.22); color: #072130 !important; font-weight: 900; letter-spacing: .05em;
    box-shadow: 0 14px 28px rgba(0,212,255,.18), inset 0 1px 0 rgba(255,255,255,.22);
}
.certificate-preview-button:hover { filter: brightness(1.05); }
.premium-empty-state {
    border-radius: 18px; padding: 20px !important; border: 1px dashed rgba(203,163,83,.25);
    background: rgba(255,255,255,.03); color: rgba(231,245,255,.72);
}
@media (max-width: 860px) {
    .certificate-premium-intro,
    .certificate-summary-strip,
    .certificate-bulk-actions { grid-template-columns: 1fr; }
    .certificate-modal-title-wrap { padding-right: 56px; }
    .premium-certificate-item { flex-direction: column; align-items: stretch; }
    .certificate-item-actions { justify-content: space-between; }
}

/* v6.0 - import database clarity */
.import-helper {
    margin: 6px 0 12px;
    color: rgba(231,245,255,.72);
    font-size: .86rem;
    line-height: 1.45;
}
.import-helper b { color: #ffe4a8; }

/* v6.4 - certificate transparent background upload preview */
.logo-preview.upload-live-preview.certificate-bg-preview {
    min-height: 120px;
    border-style: solid;
    background:
        linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%),
        linear-gradient(45deg, rgba(255,255,255,.07) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.07) 75%),
        rgba(3, 18, 35, .35);
    background-position: 0 0, 12px 12px;
    background-size: 24px 24px;
}
.logo-preview.upload-live-preview.certificate-bg-preview::before {
    content: 'Preview watermark/background sertifikat';
    display: block;
    margin-bottom: 8px;
    color: rgba(231,245,255,.62);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.logo-preview.upload-live-preview.certificate-bg-preview img {
    max-height: 150px;
    object-fit: contain;
}


/* v6.5 - upload feedback/status */
.upload-selected-note {
    margin-top: 9px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,212,255,.16);
    background: rgba(0,212,255,.055);
    color: rgba(231,245,255,.78);
    font-size: .82rem;
    line-height: 1.35;
}
.upload-live-preview.has-new-preview {
    display: flex !important;
    border-color: rgba(57,217,138,.55) !important;
    box-shadow: 0 0 0 3px rgba(57,217,138,.08), 0 16px 36px rgba(0,0,0,.18);
}
.upload-setting-card input[type="file"],
.sponsor-upload-box input[type="file"] {
    cursor: pointer;
}


/* v6.6 - upload visual refinement */
.login-screen .login-banner-wrapper,
.login-screen .login-banner {
    display: none !important;
}
.login-bg-logo {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(48vw, 520px) !important;
    max-width: min(48vw, 520px) !important;
    max-height: 52vh !important;
    opacity: .045 !important;
    filter: blur(.2px) saturate(1.1) !important;
    z-index: 0 !important;
}
.login-box {
    position: relative;
    z-index: 3;
}
.global-event-banner-card {
    margin-bottom: 14px !important;
    padding: 6px !important;
    border-radius: 18px !important;
}
.global-event-banner-card .event-banner {
    height: clamp(92px, 9.5vw, 150px) !important;
    border-radius: 14px !important;
}
.banner-status-pill {
    top: 12px !important;
    right: 12px !important;
    padding: 5px 10px !important;
    font-size: .62rem !important;
}
.logo-preview.upload-live-preview.certificate-bg-preview img {
    object-fit: contain !important;
    background:
        linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(255,255,255,.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.08) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0px;
}
@media (max-width: 760px) {
    .global-event-banner-card .event-banner {
        height: clamp(84px, 28vw, 130px) !important;
    }
}

/* v6.9 - high contrast for all automatic inputs, selects, and dropdown options */
select,
.premium-entry-form select,
.settings-form select,
.modal-content select {
    color: #f4fbff !important;
    background-color: #071d32 !important;
    background-image:
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
        linear-gradient(45deg, transparent 50%, #ffe4a8 50%),
        linear-gradient(135deg, #ffe4a8 50%, transparent 50%) !important;
    background-position:
        0 0,
        calc(100% - 20px) 50%,
        calc(100% - 14px) 50% !important;
    background-size:
        auto,
        6px 6px,
        6px 6px !important;
    background-repeat: no-repeat !important;
    padding-right: 46px !important;
    text-shadow: none !important;
}
select option,
select optgroup {
    background-color: #071d32 !important;
    color: #f4fbff !important;
    text-shadow: none !important;
    font-weight: 700;
}
select option:checked,
select option:hover,
select option:focus {
    background-color: #0b5f93 !important;
    color: #ffffff !important;
}
select option:disabled {
    background-color: #10283f !important;
    color: #ffd98a !important;
    opacity: 1 !important;
    font-style: italic;
}
select:disabled,
input:disabled,
textarea:disabled,
input[readonly],
textarea[readonly] {
    color: #ffe4a8 !important;
    -webkit-text-fill-color: #ffe4a8 !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, rgba(203,163,83,.13), rgba(0,212,255,.035)) !important;
}
input::placeholder,
textarea::placeholder {
    color: rgba(230, 247, 255, .66) !important;
    opacity: 1 !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: #f4fbff !important;
    caret-color: #f4fbff !important;
    box-shadow: 0 0 0 1000px #071d32 inset !important;
    border-color: rgba(203,163,83,.45) !important;
    transition: background-color 9999s ease-in-out 0s !important;
}
.current-value,
.upload-selected-note,
.entry-note,
.form-help,
.help-text,
small {
    color: rgba(235, 248, 255, .84) !important;
}
.premium-entry-form .current-value,
.auto-verifier-field .current-value {
    color: #9ffff0 !important;
}
#tangkapan select[name="participantId"],
#tangkapan select[name="species"] {
    min-height: 50px;
    font-size: 1rem;
    letter-spacing: .02em;
}
#tangkapan select[name="participantId"] option {
    padding: 10px 14px;
}


/* v7.0 - copyright/footer typography refinement */
.powered-by {
    font-size: 0.74rem !important;
    letter-spacing: 0.16em !important;
    color: rgba(145, 225, 235, 0.55) !important;
}
.powered-by span,
.copyright-thin {
    color: rgba(141, 230, 244, 0.78) !important;
    font-weight: 300 !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
}
.info-section .copyright-thin {
    display: inline-block;
    font-size: 0.78rem;
}

/* v7.1 - full screen login background and non-cropped dashboard banner */
.login-screen {
    isolation: isolate;
}
.login-screen::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 48%, rgba(0, 212, 255, .10), transparent 34%),
        linear-gradient(135deg, rgba(3, 14, 28, .42), rgba(5, 33, 55, .36));
}
.login-bg-logo {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: .16 !important;
    filter: saturate(1.05) contrast(1.05) brightness(.92) !important;
    z-index: 0 !important;
}
.login-box,
.sponsor-logins-container,
.powered-by {
    position: relative;
    z-index: 3;
}
.global-event-banner-card {
    width: min(100%, 1440px) !important;
    padding: 4px !important;
    background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018)), rgba(7,24,44,.64) !important;
}
.global-event-banner-card .event-banner {
    display: block !important;
    width: 100% !important;
    height: clamp(105px, 10.5vw, 190px) !important;
    object-fit: fill !important;
    object-position: center center !important;
    background: rgba(3, 18, 35, .55) !important;
    border-radius: 14px !important;
}
.logo-preview.upload-live-preview.banner-preview img {
    object-fit: contain !important;
    background: rgba(3, 18, 35, .45) !important;
}
@media (max-width: 760px) {
    .login-bg-logo {
        object-fit: cover !important;
        object-position: center center !important;
    }
    .global-event-banner-card .event-banner {
        height: clamp(74px, 22vw, 118px) !important;
        object-fit: fill !important;
    }
}

/* v7.4 security/operational hardening */
.logout-form { margin: 0; display: block; }
.logout-form .logout-btn { width: 100%; cursor: pointer; font: inherit; }

/* v7.4.4 local password recovery */
.species-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.species-rule-card{border:1px solid rgba(0,207,255,.35);border-radius:12px;padding:14px;background:rgba(2,25,48,.55);display:grid;gap:9px}.species-rule-card.enabled{border-color:#00d8ff;box-shadow:0 0 16px rgba(0,216,255,.12)}.species-rule-head{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px}.species-rule-head em{font-size:10px;letter-spacing:1px;color:#8caabe}.species-rule-card.enabled .species-rule-head em{color:#00f0d0}.species-rule-inputs{display:grid;grid-template-columns:1fr 1fr;gap:9px}.species-rule-inputs label{font-size:11px;color:#9cc5d9}.species-rule-inputs input{margin-top:5px;width:100%}.final-lock-card small{overflow-wrap:anywhere}.import-preview-card{margin:18px 0;padding:18px;border:1px solid rgba(0,216,255,.45);border-radius:14px;background:rgba(0,23,46,.72)}.import-preview-card h3{margin:0 0 8px}.import-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.import-stat-grid>div{padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:rgba(255,255,255,.04);display:flex;flex-direction:column}.import-stat-grid strong{font-size:24px;color:#00d8ff}.import-stat-grid span{font-size:11px;color:#a7c4d4}.import-issue-list{max-height:260px;overflow:auto;margin:8px 0;padding:10px;border-radius:8px;background:rgba(0,0,0,.2);font-size:12px;line-height:1.6}.import-preview-card details{margin:9px 0}.restore-box select,.backup-restore-card select{min-height:42px}.settings-panel fieldset:disabled{opacity:.72}.database-view{overflow-wrap:anywhere}
@media(max-width:760px){.species-rule-grid,.import-stat-grid{grid-template-columns:1fr}.species-rule-inputs{grid-template-columns:1fr 1fr}}

.local-reset-link:hover{filter:brightness(1.12);transform:translateY(-1px);}

/* v7.4.5 - pengaturan spesies sederhana dan mudah dipahami */
.species-settings-section {
    margin-top: 18px;
}
.species-section-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(0, 216, 255, .26);
    border-radius: 14px;
    background: rgba(0, 46, 82, .42);
}
.species-section-intro > div:first-child {
    min-width: 0;
}
.species-section-intro label {
    margin: 0 0 5px;
    color: #eafcff;
    font-size: 1rem;
    letter-spacing: .7px;
}
.species-section-intro p {
    margin: 0;
    color: #a9c9d8;
    font-size: .92rem;
    line-height: 1.45;
}
.species-quick-guide {
    display: grid;
    gap: 7px;
    flex: 0 0 auto;
    font-size: .78rem;
    color: #c4dfeb;
}
.species-quick-guide span {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}
.guide-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}
.guide-dot.active { color: #16e6b1; background: currentColor; }
.guide-dot.inactive { color: #ff6877; background: currentColor; }

.species-rule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.species-rule-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(0, 216, 255, .30);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(6, 38, 67, .92), rgba(3, 27, 50, .88));
    display: grid;
    gap: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.species-rule-card.enabled {
    border-color: rgba(0, 232, 206, .76);
    box-shadow: 0 10px 28px rgba(0, 216, 255, .09);
}
.species-rule-card.inactive {
    border-color: rgba(146, 168, 182, .22);
    background: linear-gradient(145deg, rgba(31, 48, 63, .74), rgba(20, 35, 49, .72));
}
.species-rule-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.species-rule-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}
.species-rule-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    font-size: 1.12rem;
    background: rgba(0, 216, 255, .10);
    border: 1px solid rgba(0, 216, 255, .18);
}
.species-rule-identity strong {
    display: block;
    color: #f2fdff;
    font-size: 1rem;
    line-height: 1.15;
}
.species-rule-identity small {
    display: block;
    margin-top: 4px;
    color: #93b5c5;
    font-size: .72rem;
    line-height: 1.25;
}
.species-rule-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-family: 'Orbitron', sans-serif;
    font-size: .58rem;
    letter-spacing: .8px;
    font-style: normal;
}
.species-rule-status.is-active {
    color: #1cf4c1;
    background: rgba(0, 226, 180, .11);
    border: 1px solid rgba(0, 226, 180, .34);
}
.species-rule-status.is-inactive {
    color: #ff7b89;
    background: rgba(255, 74, 96, .10);
    border: 1px solid rgba(255, 74, 96, .30);
}

.species-master-switch,
.species-option-toggle {
    position: relative;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    margin: 0 !important;
    padding: 12px;
    border-radius: 12px;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
    user-select: none;
}
.species-master-switch {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .09);
}
.species-master-switch:hover,
.species-option-toggle:hover {
    background: rgba(0, 216, 255, .07);
}
.species-master-switch input[type="checkbox"],
.species-option-toggle input[type="checkbox"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.species-switch-track {
    position: relative;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    flex: 0 0 50px;
    background: #425364;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, .30);
    transition: background .2s ease, border-color .2s ease;
}
.species-switch-track > span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e7f4f8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .34);
    transition: transform .2s ease;
}
.species-switch-track.small {
    width: 42px;
    height: 24px;
    flex-basis: 42px;
}
.species-switch-track.small > span {
    width: 16px;
    height: 16px;
}
.species-master-switch input:checked + .species-switch-track,
.species-option-toggle input:checked + .species-switch-track {
    background: linear-gradient(90deg, #00c6a5, #00d8ff);
    border-color: rgba(0, 240, 208, .72);
}
.species-master-switch input:checked + .species-switch-track > span {
    transform: translateX(22px);
}
.species-option-toggle input:checked + .species-switch-track.small > span {
    transform: translateX(18px);
}
.species-master-switch input:focus-visible + .species-switch-track,
.species-option-toggle input:focus-visible + .species-switch-track {
    outline: 3px solid rgba(0, 216, 255, .28);
    outline-offset: 2px;
}
.species-master-copy b,
.species-option-toggle b {
    display: block;
    color: #f1fcff;
    font-size: .88rem;
    line-height: 1.15;
}
.species-master-copy small,
.species-option-toggle small {
    display: block;
    margin-top: 4px;
    color: #94b6c6;
    font-size: .71rem;
    line-height: 1.3;
}

.species-advanced {
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.species-advanced summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 2px 2px;
    color: #9fd7e7;
    font-size: .79rem;
    font-weight: 700;
    cursor: pointer;
}
.species-advanced summary::-webkit-details-marker { display: none; }
.species-advanced summary::after {
    content: '+';
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    color: #00e6d0;
    background: rgba(0, 216, 255, .08);
    border: 1px solid rgba(0, 216, 255, .18);
    font-size: 1rem;
}
.species-advanced[open] summary::after { content: '−'; }
.species-advanced summary span {
    margin-left: 5px;
    color: #7899a9;
    font-size: .68rem;
    font-weight: 500;
}
.species-advanced-body {
    display: grid;
    gap: 9px;
    padding-top: 11px;
}
.species-option-toggle {
    padding: 10px 11px;
    background: rgba(255, 255, 255, .028);
    border: 1px solid rgba(255, 255, 255, .07);
}
.species-rule-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.species-rule-inputs label {
    display: block !important;
    margin: 0 !important;
    padding: 10px 11px;
    border-radius: 10px;
    color: #c6e4ed !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: .75rem !important;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .07);
}
.species-rule-inputs label > span {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}
.species-rule-inputs input {
    width: 100% !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    text-align: left;
}
.species-rule-inputs label > small {
    display: block;
    margin-top: 6px;
    color: #799baa;
    font-size: .65rem;
    line-height: 1.25;
}
.species-rule-card.inactive .species-advanced {
    opacity: .72;
}

@media (max-width: 900px) {
    .species-rule-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .species-section-intro { flex-direction: column; }
    .species-quick-guide { grid-template-columns: 1fr 1fr; width: 100%; }
    .species-rule-inputs { grid-template-columns: 1fr; }
}


/* v7.4.14 Statistik menyatu dengan Dashboard */
.dashboard-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: none;
    margin: 26px 0 0;
}
.dashboard-stats .stat-box {
    min-height: 96px;
}
@media (max-width: 1280px) {
    .dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    .dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v7.4.15.3 - precise, centered login composition */
.login-screen {
    padding: 24px 18px !important;
}
.login-screen .sponsor-logins-container {
    position: absolute !important;
    top: 18px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}
.login-screen .login-box {
    width: min(420px, calc(100vw - 36px)) !important;
    max-width: 420px !important;
    margin: auto !important;
    padding: 36px 40px !important;
    border-radius: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.login-screen .login-logo {
    width: 112px;
    height: 112px;
    margin: 0 auto 18px !important;
}
.login-screen .login-title {
    width: 100%;
    margin: 0 !important;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    line-height: 1.18;
    text-align: center;
    overflow-wrap: anywhere;
}
.login-screen .login-subtitle {
    width: 100%;
    margin: 7px 0 28px !important;
    line-height: 1.35;
    text-align: center;
}
.login-screen .login-input {
    height: 54px;
    margin: 0 0 14px !important;
    padding: 0 15px;
}
.login-screen .login-input:last-of-type {
    margin-bottom: 18px !important;
}
.login-screen .login-btn {
    min-height: 50px;
    margin: 0 !important;
    padding: 12px 15px;
}
.login-screen .login-error {
    margin: 14px 0 0 !important;
}
.login-screen .login-powered-by {
    position: fixed !important;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: max-content;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}
@media (max-width: 479px) {
    .login-screen {
        padding: 16px 14px 38px !important;
    }
    .login-screen .login-box {
        width: min(100%, 390px) !important;
        padding: 28px 24px !important;
    }
    .login-screen .login-logo {
        width: 92px;
        height: 92px;
        margin-bottom: 14px !important;
    }
    .login-screen .login-title {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
    }
    .login-screen .login-subtitle {
        margin-bottom: 22px !important;
    }
}
@media (max-height: 720px) and (min-width: 480px) {
    .login-screen .login-box {
        padding: 26px 36px !important;
    }
    .login-screen .login-logo {
        width: 88px;
        height: 88px;
        margin-bottom: 12px !important;
    }
    .login-screen .login-subtitle {
        margin-bottom: 20px !important;
    }
}
/* v7.4.15.4 - encoding-safe modern information icon */
.rule-info::before {
    content: "" !important;
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    background: linear-gradient(135deg, #7ee8ff, #00bfe8);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(0, 212, 255, .35));
}
/* v7.4.15.5 - encoding-safe modern tie-breaker clock */
.podium-item.tie-breaker::after {
    content: "" !important;
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    min-width: 18px !important;
    margin-left: 10px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: linear-gradient(135deg, #ffe4a8, #d7a83f);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 0 6px rgba(215, 168, 63, .35));
}
/* Pilihan Juara Umum / Juara Spesies tampil langsung di kartu; redup bila spesies nonaktif. */
.species-rule-card.inactive .species-award-toggles { opacity: .45; pointer-events: none; }


/* v7.5.2 - kotak centang (checkbox) terlihat & bisa dicentang.
   Aturan umum "input, select { appearance:none; width:100% }" sebelumnya membuat checkbox
   menjadi kotak kosong tanpa tanda centang. Toggle spesies (.species-*-switch) tetap memakai aturannya sendiri. */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    flex: 0 0 22px;
    width: 22px !important;
    min-width: 22px;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 212, 255, .5) !important;
    background: rgba(0, 30, 60, .75) !important;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .55) !important;
    cursor: pointer;
    vertical-align: middle;
    transition: background .15s ease, border-color .15s ease;
}
input[type="checkbox"]:hover { border-color: #00d4ff !important; }
input[type="checkbox"]:checked {
    border-color: #00d4ff !important;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1628' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 80% no-repeat,
        linear-gradient(135deg, #00d4ff, #0099cc) !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .45), 0 0 10px rgba(0, 212, 255, .35) !important;
}
input[type="checkbox"]:focus-visible { outline: 2px solid #ffe4a8; outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .5; cursor: not-allowed; }
.species-master-switch input[type="checkbox"],
.species-option-toggle input[type="checkbox"] {
    position: absolute !important; opacity: 0 !important; pointer-events: none; width: 1px !important; height: 1px !important; min-height: 1px !important; min-width: 1px !important; border: 0 !important; box-shadow: none !important; background: none !important;
}
