@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

        :root {
            --bg-color: #080c16;
            --bg-overlay-a: rgba(79, 172, 254, 0.15);
            --bg-overlay-b: rgba(0, 242, 254, 0.1);
            --container-bg: rgba(15, 20, 35, 0.65);
            --border-color: rgba(255, 255, 255, 0.08);
            --primary-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --glow-color: rgba(79, 172, 254, 0.5);
            --card-bg: rgba(30, 41, 59, 0.4);
            --card-hover: rgba(30, 41, 59, 0.8);
            --panel-bg: rgba(15, 23, 42, 0.6);
            --input-bg: rgba(0, 0, 0, 0.3);
            --input-bg-focus: rgba(0, 0, 0, 0.5);
            --input-border: rgba(255, 255, 255, 0.1);
            --placeholder-color: rgba(255, 255, 255, 0.3);
            --button-text: #ffffff;
            --title-shadow: 0 0 30px rgba(79, 172, 254, 0.3);
            --scroll-track: rgba(255, 255, 255, 0.02);
            --scroll-thumb: rgba(255, 255, 255, 0.15);
            --scroll-thumb-hover: rgba(255, 255, 255, 0.25);
            --toggle-bg: rgba(255, 255, 255, 0.05);
            --toggle-border: rgba(255, 255, 255, 0.12);
            --toggle-icon-bg: rgba(79, 172, 254, 0.14);
            --toggle-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
            --input-text: #ffffff;
            --section-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            --result-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
            --soft-border: rgba(255, 255, 255, 0.1);
        }

        body[data-theme="light"] {
            --bg-color: #eef6ff;
            --bg-overlay-a: rgba(56, 189, 248, 0.18);
            --bg-overlay-b: rgba(34, 197, 94, 0.12);
            --container-bg: rgba(255, 255, 255, 0.78);
            --border-color: rgba(15, 23, 42, 0.08);
            --primary-gradient: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
            --text-main: #0f172a;
            --text-muted: #475569;
            --glow-color: rgba(14, 165, 233, 0.35);
            --card-bg: rgba(255, 255, 255, 0.84);
            --card-hover: rgba(255, 255, 255, 0.98);
            --panel-bg: rgba(255, 255, 255, 0.72);
            --input-bg: rgba(248, 250, 252, 0.96);
            --input-bg-focus: #ffffff;
            --input-border: rgba(148, 163, 184, 0.35);
            --placeholder-color: rgba(71, 85, 105, 0.55);
            --button-text: #f8fafc;
            --title-shadow: 0 0 24px rgba(14, 165, 233, 0.18);
            --scroll-track: rgba(15, 23, 42, 0.06);
            --scroll-thumb: rgba(71, 85, 105, 0.24);
            --scroll-thumb-hover: rgba(71, 85, 105, 0.38);
            --toggle-bg: rgba(255, 255, 255, 0.88);
            --toggle-border: rgba(148, 163, 184, 0.28);
            --toggle-icon-bg: rgba(34, 197, 94, 0.14);
            --toggle-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
            --input-text: #0f172a;
            --section-shadow: 0 18px 40px rgba(148, 163, 184, 0.18);
            --result-hover-shadow: 0 16px 34px rgba(148, 163, 184, 0.22);
            --soft-border: rgba(148, 163, 184, 0.28);
        }

        body {
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            margin: 0;
            padding: 0;
            min-height: 100vh;
            background: var(--bg-color);
            background-image: 
                radial-gradient(circle at 15% 50%, var(--bg-overlay-a), transparent 25%),
                radial-gradient(circle at 85% 30%, var(--bg-overlay-b), transparent 25%);
            color: var(--text-main);
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            box-sizing: border-box;
            transition: background-color 0.35s ease, color 0.35s ease;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--scroll-track);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--scroll-thumb);
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: var(--scroll-thumb-hover);
        }

        .floating-controls {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 20;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .left-floating-controls {
            position: fixed;
            top: 24px;
            left: 24px;
            z-index: 20;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
        }

        .download-btn,
        .feedback-btn {
            height: 58px;
            padding: 0 16px;
            border: 1px solid var(--toggle-border);
            border-radius: 999px;
            background: var(--toggle-bg);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            text-decoration: none;
            font-family: inherit;
            font-size: 15px;
            font-weight: 700;
            box-shadow: var(--toggle-shadow);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            appearance: none;
            -webkit-appearance: none;
            cursor: pointer;
            transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
        }

        .download-btn:hover,
        .feedback-btn:hover {
            transform: translateY(-2px);
            border-color: rgba(79, 172, 254, 0.35);
            box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
        }

        .download-btn:active,
        .feedback-btn:active {
            transform: translateY(0);
            box-shadow: var(--toggle-shadow);
        }

        .download-btn-icon,
        .feedback-btn-icon {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--toggle-icon-bg);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 900;
            line-height: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .download-btn-text,
        .feedback-btn-text {
            letter-spacing: 0;
            white-space: nowrap;
        }

        .scroll-top-btn {
            position: fixed;
            right: 24px;
            bottom: 24px;
            z-index: 20;
            width: 58px;
            height: 58px;
            min-width: 58px;
            padding: 0;
            border: 1px solid var(--toggle-border);
            border-radius: 50%;
            background: var(--toggle-bg);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: inherit;
            font-size: 24px;
            font-weight: 800;
            cursor: pointer;
            opacity: 0;
            pointer-events: none;
            transform: translateY(12px);
            box-shadow: var(--toggle-shadow);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        }

        .scroll-top-btn.is-visible {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
        }

        .container {
            background: var(--container-bg);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid var(--border-color);
            border-radius: 24px;
            padding: 50px;
            width: 100%;
            max-width: 1200px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
            animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .page-header {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 20px;
            margin-bottom: 40px;
        }

        .page-title {
            width: 100%;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(30px) scale(0.98); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        h1 {
            text-align: center;
            margin: 0;
            font-size: 2.5em;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -0.5px;
            text-shadow: var(--title-shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }

        .theme-toggle,
        .mode-toggle {
            width: 58px;
            height: 58px;
            min-width: 58px;
            margin-top: 0;
            padding: 0;
            border: 1px solid var(--toggle-border);
            border-radius: 50%;
            background: var(--toggle-bg);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            isolation: isolate;
            box-shadow: var(--toggle-shadow);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transform: none;
            flex: 0 0 auto;
        }

        .theme-toggle-icon,
        .mode-toggle-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--toggle-icon-bg);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            position: relative;
            z-index: 1;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .mode-toggle-icon {
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0;
        }

        .search-section {
            max-width: 550px;
            margin: 0 auto 40px auto;
            background: var(--panel-bg);
            padding: 35px;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            box-shadow: var(--section-shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .search-section:hover {
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        label {
            display: block;
            margin-bottom: 12px;
            font-weight: 500;
            color: var(--text-muted);
            font-size: 0.95em;
            letter-spacing: 0.5px;
        }

        .field-icon {
            width: 18px;
            height: 18px;
            object-fit: contain;
            vertical-align: middle;
            margin-right: 8px;
            border-radius: 4px;
            filter: brightness(0) saturate(100%) invert(36%) sepia(13%) saturate(602%) hue-rotate(177deg) brightness(93%) contrast(89%);
            opacity: 0.92;
        }

        body[data-theme="light"] .field-icon {
            filter: brightness(0) saturate(100%) invert(24%) sepia(13%) saturate(781%) hue-rotate(178deg) brightness(94%) contrast(91%);
            opacity: 0.88;
        }

        .decimal-field {
            position: relative;
        }

        .decimal-display {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            padding: 16px 20px;
            box-sizing: border-box;
            pointer-events: none;
            font-family: inherit;
            font-size: 16px;
            font-weight: 500;
            letter-spacing: 0;
            color: var(--input-text);
        }

        .decimal-display .hint-digit {
            color: var(--text-muted);
            opacity: 0.48;
        }

        .decimal-display .user-digit {
            color: var(--input-text);
            opacity: 1;
        }

        .decimal-input {
            width: 100%;
            padding: 16px 20px;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 14px;
            color: var(--input-text);
            font-family: inherit;
            font-size: 16px;
            box-sizing: border-box;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        body[data-input-mode="smart"] .decimal-input {
            color: transparent;
            caret-color: transparent;
        }

        body[data-input-mode="smart"] .decimal-input:focus {
            caret-color: var(--input-text);
        }

        body[data-input-mode="plain"] .decimal-display {
            display: none;
        }

        .decimal-input::placeholder {
            color: var(--placeholder-color);
        }

        .decimal-input:focus {
            outline: none;
            border-color: #4facfe;
            background: var(--input-bg-focus);
            box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15);
            transform: translateY(-2px);
        }

        .decimal-input.is-empty {
            color: var(--text-muted);
            opacity: 0.68;
        }

        .decimal-input.is-empty:focus {
            border-color: var(--input-border);
            box-shadow: none;
            transform: none;
        }

        .action-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 14px;
            align-items: center;
            margin-top: 15px;
        }

        #search-btn {
            width: 100%;
            padding: 18px;
            background: var(--primary-gradient);
            color: var(--button-text);
            border: none;
            border-radius: 14px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-family: inherit;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
        }

        .secondary-btn {
            width: auto;
            min-width: 148px;
            padding: 18px 22px;
            background: var(--panel-bg);
            color: var(--text-main);
            border: 1px solid var(--soft-border);
            border-radius: 14px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            letter-spacing: 0.4px;
            position: relative;
            overflow: hidden;
            box-shadow: var(--section-shadow);
        }

        .icon-btn {
            min-width: 58px;
            width: 58px;
            height: 58px;
            padding: 0;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            line-height: 1;
        }

        #search-btn::after,
        .theme-toggle::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: all 0.5s ease;
        }

        .theme-toggle::after {
            top: 6px;
            bottom: 6px;
            left: -70%;
            width: 58%;
            height: auto;
            border-radius: 999px;
            background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.14) 45%, rgba(255, 255, 255, 0.32) 50%, rgba(255, 255, 255, 0.14) 55%, transparent 100%);
            filter: blur(8px);
            opacity: 0.9;
        }

        #search-btn:hover,
        .theme-toggle:hover,
        .mode-toggle:hover {
            transform: translateY(-3px);
        }

        #search-btn:hover {
            box-shadow: 0 12px 25px rgba(0, 242, 254, 0.4);
        }

        #search-btn:disabled {
            cursor: wait;
            opacity: 0.72;
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.18);
        }

        #search-btn:disabled:hover,
        #search-btn:disabled:active {
            transform: none;
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.18);
        }

        #search-btn:disabled::after {
            display: none;
        }

        .secondary-btn:hover {
            transform: translateY(-3px);
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
        }

        .theme-toggle:hover,
        .mode-toggle:hover {
            transform: none;
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
        }

        .scroll-top-btn:hover {
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
        }

        #search-btn:hover::after,
        .theme-toggle:hover::after {
            left: 100%;
        }

        #search-btn:active,
        .theme-toggle:active,
        .mode-toggle:active {
            transform: translateY(1px);
        }

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

        .theme-toggle:active,
        .mode-toggle:active {
            transform: none;
        }

        .scroll-top-btn:active {
            transform: translateY(1px);
        }

        .results-container {
            margin-top: 40px;
            max-height: 65vh;
            overflow-y: auto;
            padding-right: 15px;
        }

        .category-section {
            margin-bottom: 40px;
            animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes slideUpFade {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .category-title {
            font-size: 1.3em;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--soft-border);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-title::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 22px;
            background: var(--primary-gradient);
            border-radius: 4px;
        }

        .results-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 20px;
        }

        .result-item {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 22px;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .result-item:focus-visible {
            outline: 2px solid rgba(79, 172, 254, 0.8);
            outline-offset: 3px;
        }
        
        .result-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: var(--primary-gradient);
            opacity: 0.8;
            transition: opacity 0.3s;
        }

        .result-item:hover {
            background: var(--card-hover);
            transform: translateY(-5px) scale(1.02);
            border-color: var(--soft-border);
            box-shadow: var(--result-hover-shadow);
        }
        
        .result-item:hover::before {
            opacity: 1;
            box-shadow: 0 0 15px var(--glow-color);
        }

        @keyframes zoomIn {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .result-pet-image {
            position: relative;
            width: 112px;
            height: 112px;
            margin: 0 auto 16px;
            border-radius: 14px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.12));
            border: 1px solid var(--soft-border);
            overflow: hidden;
        }

        body[data-theme="light"] .result-pet-image {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(226, 232, 240, 0.42));
        }

        .result-pet-img {
            position: absolute;
            inset: 10px;
            width: calc(100% - 20px);
            height: calc(100% - 20px);
            object-fit: contain;
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .result-pet-img-shiny {
            opacity: 0;
            transform: scale(0.96);
        }

        .result-item:hover .result-pet-image.has-shiny .result-pet-img-normal,
        .result-item:focus-visible .result-pet-image.has-shiny .result-pet-img-normal {
            opacity: 0;
            transform: scale(1.04);
        }

        .result-item:hover .result-pet-image.has-shiny .result-pet-img-shiny,
        .result-item:focus-visible .result-pet-image.has-shiny .result-pet-img-shiny {
            opacity: 1;
            transform: scale(1);
        }

        .result-name {
            font-size: 1.25em;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            text-align: center;
        }

        .result-name > div {
            justify-content: center;
            width: 100%;
        }

        .result-name-inner {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: 100%;
            flex-wrap: wrap;
        }

        .result-egg-groups {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 8px;
            min-height: 28px;
        }

        .egg-group-badge {
            color: #dff8ff;
            background: rgba(56, 189, 248, 0.16);
            border: 1px solid rgba(56, 189, 248, 0.28);
            border-radius: 999px;
            padding: 5px 10px;
            font-size: 0.78em;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
        }

        body[data-theme="light"] .egg-group-badge {
            color: #075985;
            background: rgba(14, 165, 233, 0.1);
            border-color: rgba(14, 165, 233, 0.22);
        }

        .egg-group-empty {
            color: var(--text-muted);
            font-size: 0.82em;
        }

        .has-feedback-modal {
            overflow: hidden;
        }

        .feedback-modal {
            position: fixed;
            inset: 0;
            z-index: 90;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .feedback-modal.is-open {
            display: flex;
        }

        .feedback-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(3, 7, 18, 0.72);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .feedback-modal-panel {
            position: relative;
            z-index: 1;
            width: min(520px, 100%);
            max-height: min(86vh, 680px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--container-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }

        .feedback-modal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 24px 26px 18px;
            border-bottom: 1px solid var(--soft-border);
        }

        .feedback-modal-kicker {
            color: var(--text-muted);
            font-size: 0.86em;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .feedback-modal-title {
            margin: 0;
            color: var(--text-main);
            font-size: 1.35em;
            line-height: 1.25;
            -webkit-text-fill-color: currentColor;
            background: none;
            text-shadow: none;
            display: block;
            text-align: left;
        }

        .feedback-modal-close {
            width: 42px;
            height: 42px;
            min-width: 42px;
            padding: 0;
            margin: 0;
            border-radius: 50%;
            border: 1px solid var(--toggle-border);
            background: var(--toggle-bg);
            color: var(--text-main);
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .feedback-form {
            padding: 24px 26px 26px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            overflow-y: auto;
        }

        .feedback-form label {
            margin: 0;
        }

        .feedback-form textarea,
        .feedback-form input {
            width: 100%;
            padding: 14px 16px;
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: 12px;
            color: var(--input-text);
            font-family: inherit;
            font-size: 15px;
            line-height: 1.5;
            box-sizing: border-box;
            resize: vertical;
            min-height: 52px;
        }

        .feedback-form textarea:focus,
        .feedback-form input:focus {
            outline: none;
            border-color: #4facfe;
            background: var(--input-bg-focus);
            box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15);
        }

        .feedback-modal-actions {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
            align-items: center;
            margin-top: 4px;
        }

        .feedback-cancel-btn {
            min-width: 104px;
            width: auto;
            box-shadow: none;
        }

        #feedback-submit-btn {
            width: 100%;
            min-height: 54px;
            padding: 14px 18px;
            background: var(--primary-gradient);
            color: var(--button-text);
            border: none;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.24);
        }

        #feedback-submit-btn:disabled {
            cursor: wait;
            opacity: 0.72;
            box-shadow: 0 8px 20px rgba(0, 242, 254, 0.14);
        }

        .feedback-status {
            min-height: 22px;
            margin: 0;
            color: var(--text-muted);
            font-size: 0.92em;
        }

        .feedback-status[data-status="success"] {
            color: #22c55e;
        }

        .feedback-status[data-status="error"] {
            color: #f87171;
        }

        .has-egg-modal {
            overflow: hidden;
        }

        .egg-modal {
            position: fixed;
            inset: 0;
            z-index: 80;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 24px;
        }

        .egg-modal.is-open {
            display: flex;
        }

        .egg-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(3, 7, 18, 0.72);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .egg-modal-panel {
            position: relative;
            z-index: 1;
            width: min(960px, 100%);
            max-height: min(78vh, 760px);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: var(--container-bg);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }

        .egg-modal-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 16px;
            padding: 24px 26px 18px;
            border-bottom: 1px solid var(--soft-border);
        }

        .egg-modal-kicker {
            color: var(--text-muted);
            font-size: 0.86em;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .egg-modal-title {
            margin: 0;
            color: var(--text-main);
            font-size: 1.55em;
            line-height: 1.25;
            -webkit-text-fill-color: currentColor;
            background: none;
            text-shadow: none;
            display: block;
            text-align: left;
        }

        .egg-modal-close {
            width: 42px;
            height: 42px;
            min-width: 42px;
            padding: 0;
            margin: 0;
            border-radius: 50%;
            border: 1px solid var(--toggle-border);
            background: var(--toggle-bg);
            color: var(--text-main);
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .egg-modal-groups {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            scrollbar-gutter: stable;
            overscroll-behavior: contain;
            padding: 24px 26px 28px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .egg-group-section {
            flex: 0 0 auto;
            border: 1px solid var(--soft-border);
            border-radius: 14px;
            background: var(--panel-bg);
            overflow: visible;
        }

        .egg-group-section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            color: var(--text-main);
            font-size: 1.05em;
            font-weight: 800;
            border-bottom: 1px solid var(--soft-border);
        }

        .egg-group-section-count {
            color: var(--text-muted);
            font-size: 0.8em;
            font-weight: 700;
        }

        .egg-member-grid {
            padding: 16px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
            overflow: visible;
        }

        .egg-member {
            min-height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            padding: 8px 10px;
            border-radius: 10px;
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.06);
            font: inherit;
            font-size: 0.92em;
            font-weight: 600;
            text-align: center;
            word-break: keep-all;
            overflow-wrap: anywhere;
            cursor: pointer;
            transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            appearance: none;
            -webkit-appearance: none;
            z-index: 1;
        }

        .egg-member:hover,
        .egg-member:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(56, 189, 248, 0.42);
            box-shadow: 0 10px 24px rgba(14, 165, 233, 0.16);
            z-index: 8;
        }

        .egg-member:focus-visible {
            outline: 2px solid rgba(79, 172, 254, 0.85);
            outline-offset: 2px;
        }

        .egg-member-name {
            position: relative;
            z-index: 1;
        }

        .egg-member-preview {
            position: absolute;
            left: 50%;
            top: calc(100% + 10px);
            width: 132px;
            height: 132px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 10px;
            border-radius: 14px;
            background: rgba(15, 23, 42, 0.94);
            border: 1px solid rgba(125, 211, 252, 0.3);
            box-shadow: 0 18px 38px rgba(2, 6, 23, 0.45);
            pointer-events: none;
            opacity: 0;
            transform: translate(-50%, -4px) scale(0.96);
            transition: opacity 0.16s ease, transform 0.16s ease;
        }

        .egg-member-preview::before {
            content: '';
            position: absolute;
            top: -6px;
            left: 50%;
            width: 10px;
            height: 10px;
            transform: translateX(-50%) rotate(45deg);
            background: rgba(15, 23, 42, 0.94);
            border-left: 1px solid rgba(125, 211, 252, 0.3);
            border-top: 1px solid rgba(125, 211, 252, 0.3);
        }

        .egg-member-preview img {
            position: relative;
            z-index: 1;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .egg-member.has-image:hover .egg-member-preview,
        .egg-member.has-image:focus-visible .egg-member-preview {
            opacity: 1;
            transform: translate(-50%, 0) scale(1);
        }

        body[data-theme="light"] .egg-member {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(148, 163, 184, 0.2);
        }

        body[data-theme="light"] .egg-member-preview,
        body[data-theme="light"] .egg-member-preview::before {
            background: rgba(255, 255, 255, 0.97);
        }

        .egg-member.is-current {
            color: #ffffff;
            background: var(--primary-gradient);
            border-color: transparent;
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
        }

        body[data-theme="light"] .egg-member.is-current {
            color: #ffffff;
            background: var(--primary-gradient);
            border-color: transparent;
        }

        .egg-group-gallery {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: scaleY(0.98);
            transform-origin: top;
            border-top: 1px solid transparent;
            transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.24s ease, border-color 0.24s ease;
        }

        .egg-group-section.is-expanded .egg-group-gallery {
            max-height: 560px;
            opacity: 1;
            transform: scaleY(1);
            border-top-color: var(--soft-border);
            overflow-y: auto;
        }

        .egg-gallery-grid {
            padding: 16px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 12px;
        }

        .egg-gallery-item {
            margin: 0;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px 10px;
            border-radius: 12px;
            color: var(--text-main);
            background: rgba(255, 255, 255, 0.055);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        body[data-theme="light"] .egg-gallery-item {
            background: rgba(255, 255, 255, 0.72);
            border-color: rgba(148, 163, 184, 0.2);
        }

        .egg-gallery-item.is-current {
            border-color: rgba(56, 189, 248, 0.5);
            box-shadow: 0 12px 24px rgba(14, 165, 233, 0.14);
        }

        .egg-gallery-image {
            width: 88px;
            height: 88px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .egg-gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .egg-gallery-item figcaption {
            width: 100%;
            color: inherit;
            font-size: 0.82em;
            font-weight: 700;
            line-height: 1.35;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .egg-gallery-empty {
            grid-column: 1 / -1;
            color: var(--text-muted);
            text-align: center;
            padding: 18px;
            border: 1px dashed var(--soft-border);
            border-radius: 12px;
        }

        .egg-modal-empty {
            color: var(--text-muted);
            text-align: center;
            padding: 28px;
            border: 1px dashed var(--soft-border);
            border-radius: 14px;
        }

        .category-count {
            font-size: 0.8em;
            opacity: 0.6;
            margin-left: 8px;
            font-weight: 500;
        }

        .empty-state {
            text-align: center;
            padding: 40px;
            animation: zoomIn 0.5s ease;
        }

        .empty-state-icon {
            font-size: 3em;
            margin-bottom: 15px;
        }

        .empty-state-title {
            color: var(--text-main);
            font-size: 1.2em;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .empty-state-desc {
            color: var(--text-muted);
        }

        .empty-state.is-error .empty-state-title {
            color: #ef4444;
        }

        .empty-state.is-error .empty-state-desc {
            color: #fca5a5;
        }

        body[data-theme="light"] .empty-state.is-error .empty-state-title {
            color: #dc2626;
        }

        body[data-theme="light"] .empty-state.is-error .empty-state-desc {
            color: #b91c1c;
        }

        .loading-state {
            text-align: center;
            color: var(--text-muted);
            padding: 40px;
            font-size: 1.1em;
            animation: pulse 1.5s infinite;
        }

        .badge {
            font-size: 0.7em;
            color: #fff;
            padding: 4px 10px;
            border-radius: 8px;
            font-weight: 600;
            letter-spacing: 0.5px;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.14);
            white-space: nowrap;
        }
        .badge.tiny { background: linear-gradient(135deg, #8f6cc5, #7350a8); }
        .badge.huge { background: linear-gradient(135deg, #cf6d6d, #a85353); }
        .badge.probability { background: linear-gradient(135deg, #247c78, #2f9f67); }
        .badge.co-ride { background: linear-gradient(135deg, #0ea5a3, #2563eb); }
        
        body.admin-page {
            display: block;
            align-items: stretch;
            justify-content: flex-start;
            padding: 32px 20px;
        }

        .admin-shell {
            width: min(1120px, 100%);
            margin: 0 auto;
        }

        .admin-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 24px;
        }

        .admin-title {
            margin: 0;
            color: var(--text-main);
            font-size: 2em;
            line-height: 1.2;
            -webkit-text-fill-color: currentColor;
            background: none;
            text-shadow: none;
            display: block;
            text-align: left;
        }

        .admin-subtitle {
            margin: 8px 0 0;
            color: var(--text-muted);
        }

        .admin-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .admin-link,
        .admin-refresh-btn {
            min-height: 44px;
            padding: 0 14px;
            border: 1px solid var(--toggle-border);
            border-radius: 999px;
            background: var(--toggle-bg);
            color: var(--text-main);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-family: inherit;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: var(--toggle-shadow);
        }

        .admin-panel {
            background: var(--container-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 24px;
            box-shadow: var(--section-shadow);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
        }

        .admin-state {
            margin: 0;
            color: var(--text-muted);
            min-height: 22px;
        }

        .feedback-admin-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
            margin-top: 18px;
        }

        .feedback-admin-item {
            padding: 18px;
            border: 1px solid var(--soft-border);
            border-radius: 14px;
            background: var(--panel-bg);
        }

        .feedback-admin-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            color: var(--text-muted);
            font-size: 0.88em;
            margin-bottom: 12px;
        }

        .feedback-admin-message {
            margin: 0;
            color: var(--text-main);
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            line-height: 1.65;
        }

        .feedback-admin-detail {
            margin: 12px 0 0;
            color: var(--text-muted);
            font-size: 0.9em;
            overflow-wrap: anywhere;
        }

        .feedback-admin-empty {
            margin: 0;
            padding: 32px;
            color: var(--text-muted);
            text-align: center;
            border: 1px dashed var(--soft-border);
            border-radius: 14px;
        }

        @media (max-width: 768px) {
            .container { padding: 30px 20px; }
            .results-grid { grid-template-columns: 1fr; }
            h1 { font-size: 2em; }
            .egg-modal {
                padding: 12px;
                align-items: flex-end;
            }
            .egg-modal-panel {
                max-height: 86vh;
                border-radius: 18px 18px 0 0;
            }
            .egg-modal-header {
                padding: 20px 18px 14px;
            }
            .egg-modal-groups {
                padding: 18px;
            }
            .egg-member-grid {
                grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
                padding: 12px;
            }
            .egg-member-preview {
                width: 112px;
                height: 112px;
            }
            .egg-gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
                padding: 12px;
            }
            .egg-gallery-image {
                width: 76px;
                height: 76px;
            }
            .action-row {
                grid-template-columns: 1fr;
            }
            .secondary-btn {
                width: 100%;
            }
            .icon-btn {
                width: 58px;
                min-width: 58px;
                justify-self: end;
            }
            .floating-controls {
                top: 16px;
                right: 16px;
                gap: 10px;
            }
            .left-floating-controls {
                top: 16px;
                left: 16px;
                gap: 10px;
            }
            .download-btn,
            .feedback-btn {
                height: 54px;
                padding: 0 14px;
                font-size: 14px;
            }
            .download-btn-icon,
            .feedback-btn-icon {
                width: 30px;
                height: 30px;
                font-size: 15px;
            }
            .feedback-modal {
                padding: 12px;
                align-items: flex-end;
            }
            .feedback-modal-panel {
                max-height: 86vh;
                border-radius: 18px 18px 0 0;
            }
            .feedback-modal-header,
            .feedback-form {
                padding-left: 18px;
                padding-right: 18px;
            }
            .feedback-modal-actions {
                grid-template-columns: 1fr;
            }
            .feedback-cancel-btn {
                width: 100%;
            }
            .admin-header {
                flex-direction: column;
            }
            .admin-actions {
                justify-content: flex-start;
            }
            .admin-panel {
                padding: 18px;
            }
            .feedback-admin-meta {
                flex-direction: column;
                align-items: flex-start;
            }
            .scroll-top-btn {
                right: 16px;
                bottom: 16px;
            }
            .page-header {
                flex-direction: column;
                align-items: stretch;
                margin-bottom: 32px;
            }
            .theme-toggle,
            .mode-toggle {
                align-self: flex-end;
            }
        }
