
        body { 
            font-family: 'Inter', sans-serif; 
            overflow-x: hidden;
            width: 100vw;
            max-width: 100%;
        }
        .gradient-bg { 
            background: linear-gradient(135deg, 
                #0f172a 0%, 
                #1e1b4b 25%, 
                #312e81 50%, 
                #1e1b4b 75%, 
                #0f172a 100%
            );
            background-size: 400% 400%;
            animation: gradientShift 12s ease infinite;
            position: relative;
            background-attachment: fixed;
        }
        .gradient-bg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 15% 25%, rgba(0, 255, 255, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 85% 75%, rgba(255, 0, 128, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 50% 10%, rgba(0, 123, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 20% 90%, rgba(255, 215, 0, 0.2) 0%, transparent 30%),
                linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%),
                linear-gradient(-45deg, transparent 30%, rgba(255, 0, 128, 0.1) 50%, transparent 70%);
            pointer-events: none;
            animation: floatingLights 15s ease-in-out infinite;
        }
        .gradient-bg::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                repeating-linear-gradient(
                    90deg,
                    transparent,
                    transparent 98px,
                    rgba(0, 255, 255, 0.03) 100px,
                    rgba(0, 255, 255, 0.03) 102px
                ),
                repeating-linear-gradient(
                    0deg,
                    transparent,
                    transparent 98px,
                    rgba(255, 0, 128, 0.03) 100px,
                    rgba(255, 0, 128, 0.03) 102px
                );
            pointer-events: none;
        }
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        @keyframes floatingLights {
            0%, 100% { 
                transform: translateX(0) translateY(0) rotate(0deg);
                opacity: 1;
            }
            25% { 
                transform: translateX(20px) translateY(-30px) rotate(90deg);
                opacity: 0.8;
            }
            50% { 
                transform: translateX(-10px) translateY(-20px) rotate(180deg);
                opacity: 1;
            }
            75% { 
                transform: translateX(-30px) translateY(10px) rotate(270deg);
                opacity: 0.9;
            }
        }
        .card-hover { 
            transition: all 0.4s ease; 
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        }
        .card-hover:hover { 
            transform: translateY(-8px) scale(1.02); 
            box-shadow: 0 25px 50px rgba(0, 255, 255, 0.2), 0 0 30px rgba(255, 0, 128, 0.1);
            border: 1px solid rgba(0, 255, 255, 0.3);
        }
        .pulse-animation { animation: pulse 2s infinite; }
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }


        /* Show Detail Prestasi SMP/MTs - 3D */
        .modal-backdrop-3d {
            background: rgba(2, 6, 23, 0.78);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .modal-panel-3d {
            position: relative;
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #eef2ff 100%);
            border: 1px solid rgba(255,255,255,.8);
            border-radius: 26px;
            box-shadow:
                0 30px 80px rgba(2, 6, 23, .42),
                0 10px 28px rgba(30, 64, 175, .16),
                inset 0 1px 0 rgba(255,255,255,.95);
            transform: perspective(1200px) translateZ(0);
        }
        .modal-panel-3d::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            background: linear-gradient(135deg, rgba(255,255,255,.75), transparent 30%, transparent 70%, rgba(99,102,241,.09));
        }
        .prestasi-modal-panel {
            width: min(94vw, 920px) !important;
            max-width: 920px !important;
            max-height: 92vh !important;
        }
        .modal-heading-sticky {
            position: sticky;
            top: 0;
            z-index: 20;
            padding: 18px 22px 14px;
            margin: -24px -24px 18px;
            background: rgba(255,255,255,.92);
            border-bottom: 1px solid rgba(148,163,184,.22);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .achievement-shell {
            color: #0f172a;
        }
        .achievement-hero {
            position: relative;
            overflow: hidden;
            padding: 24px;
            border-radius: 24px;
            color: white;
            background:
                radial-gradient(circle at 12% 10%, rgba(250,204,21,.35), transparent 28%),
                radial-gradient(circle at 92% 90%, rgba(34,211,238,.24), transparent 32%),
                linear-gradient(135deg, #064e3b 0%, #047857 42%, #0f766e 72%, #164e63 100%);
            box-shadow: 0 22px 42px rgba(6,78,59,.28), inset 0 1px 0 rgba(255,255,255,.25);
        }
        .achievement-hero::after {
            content: '';
            position: absolute;
            width: 180px;
            height: 180px;
            right: -48px;
            top: -72px;
            border: 22px solid rgba(255,255,255,.08);
            border-radius: 50%;
        }
        .achievement-hero-title {
            position: relative;
            z-index: 1;
            display: flex;
            gap: 14px;
            align-items: center;
        }
        .achievement-hero-icon {
            width: 58px;
            height: 58px;
            flex: 0 0 58px;
            display: grid;
            place-items: center;
            border-radius: 18px;
            font-size: 26px;
            color: #78350f;
            background: linear-gradient(145deg, #fef08a, #f59e0b);
            box-shadow: 0 12px 22px rgba(120,53,15,.28), inset 0 2px 2px rgba(255,255,255,.55);
            transform: rotate(-4deg);
        }
        .achievement-hero h3 {
            margin: 0;
            font-size: clamp(1.15rem, 3.5vw, 1.6rem);
            font-weight: 900;
            letter-spacing: -.02em;
        }
        .achievement-hero p {
            margin: 5px 0 0;
            color: rgba(255,255,255,.84);
            font-size: .82rem;
            line-height: 1.55;
        }
        .achievement-kpi-grid {
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin-top: 20px;
        }
        .achievement-kpi {
            padding: 12px 8px;
            text-align: center;
            border: 1px solid rgba(255,255,255,.18);
            border-radius: 16px;
            background: rgba(255,255,255,.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 18px rgba(0,0,0,.11);
            backdrop-filter: blur(10px);
        }
        .achievement-kpi strong {
            display: block;
            font-size: 1.25rem;
            line-height: 1;
            color: #fef3c7;
        }
        .achievement-kpi span {
            display: block;
            margin-top: 6px;
            font-size: .65rem;
            color: rgba(255,255,255,.82);
        }
        .achievement-toolbar {
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(135px, .75fr));
            gap: 10px;
            margin: 18px 0 12px;
        }
        .achievement-field {
            position: relative;
        }
        .achievement-field i {
            position: absolute;
            left: 13px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            pointer-events: none;
        }
        .achievement-control {
            width: 100%;
            min-height: 45px;
            border: 1px solid #dbe4f0;
            border-radius: 14px;
            padding: 10px 12px 10px 38px;
            background: linear-gradient(180deg, #fff, #f8fafc);
            color: #0f172a;
            font-size: .78rem;
            font-weight: 650;
            outline: none;
            box-shadow: 0 8px 18px rgba(15,23,42,.07), inset 0 1px 0 #fff;
            transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
        }
        select.achievement-control {
            appearance: auto;
        }
        .achievement-control:focus {
            border-color: #10b981;
            box-shadow: 0 0 0 4px rgba(16,185,129,.13), 0 10px 22px rgba(15,23,42,.09);
            transform: translateY(-1px);
        }
        .achievement-results-info {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 12px 2px;
            color: #64748b;
            font-size: .74rem;
        }
        .achievement-results-info strong { color: #047857; }
        .achievement-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .achievement-card {
            position: relative;
            overflow: hidden;
            padding: 17px;
            border-radius: 19px;
            border: 1px solid rgba(203,213,225,.75);
            background: linear-gradient(145deg, #ffffff 0%, #f8fafc 65%, #ecfdf5 100%);
            box-shadow:
                0 14px 28px rgba(15,23,42,.10),
                0 4px 8px rgba(15,23,42,.05),
                inset 0 1px 0 #fff;
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
            transform: perspective(900px) translateZ(0);
        }
        .achievement-card:hover {
            transform: perspective(900px) translateY(-5px) rotateX(1deg) rotateY(-1deg);
            border-color: rgba(16,185,129,.5);
            box-shadow: 0 22px 42px rgba(15,23,42,.16), 0 8px 18px rgba(5,150,105,.12), inset 0 1px 0 #fff;
        }
        .achievement-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 5px;
            background: linear-gradient(180deg, #f59e0b, #10b981, #0891b2);
        }
        .achievement-card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
        }
        .achievement-card h4 {
            margin: 0;
            color: #0f172a;
            font-size: .92rem;
            font-weight: 850;
            line-height: 1.35;
        }
        .achievement-month {
            flex: 0 0 auto;
            padding: 5px 8px;
            border-radius: 999px;
            color: #065f46;
            background: #d1fae5;
            font-size: .62rem;
            font-weight: 800;
            white-space: nowrap;
        }
        .achievement-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin: 11px 0 12px;
        }
        .achievement-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 8px;
            border-radius: 9px;
            font-size: .64rem;
            line-height: 1.25;
            font-weight: 750;
            color: #334155;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
        }
        .achievement-badge.level { color: #1e3a8a; background: #eff6ff; border-color: #bfdbfe; }
        .achievement-badge.category { color: #713f12; background: #fffbeb; border-color: #fde68a; }
        .achievement-participants {
            display: grid;
            gap: 8px;
        }
        .achievement-participant {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            border-radius: 12px;
            background: rgba(255,255,255,.82);
            border: 1px solid rgba(226,232,240,.95);
            box-shadow: 0 4px 10px rgba(15,23,42,.045);
        }
        .achievement-participant-name {
            color: #334155;
            font-size: .72rem;
            font-weight: 700;
            line-height: 1.35;
        }
        .achievement-award {
            max-width: 125px;
            padding: 5px 8px;
            border-radius: 9px;
            color: #92400e;
            background: linear-gradient(145deg, #fef3c7, #fde68a);
            border: 1px solid #fcd34d;
            font-size: .63rem;
            font-weight: 900;
            text-align: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
        }
        .achievement-award.muted {
            color: #64748b;
            background: #f8fafc;
            border-color: #e2e8f0;
            font-weight: 700;
        }
        .achievement-more-row {
            margin-top: 16px;
            text-align: center;
        }
        .achievement-more-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-width: 190px;
            padding: 11px 18px;
            border: 0;
            border-radius: 14px;
            color: white;
            background: linear-gradient(135deg, #059669, #0f766e);
            font-size: .77rem;
            font-weight: 850;
            box-shadow: 0 12px 22px rgba(5,150,105,.24), inset 0 1px 0 rgba(255,255,255,.22);
            cursor: pointer;
            transition: transform .2s ease, box-shadow .2s ease;
        }
        .achievement-more-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 28px rgba(5,150,105,.3), inset 0 1px 0 rgba(255,255,255,.25);
        }
        .achievement-empty {
            grid-column: 1 / -1;
            padding: 30px 18px;
            text-align: center;
            border-radius: 18px;
            color: #64748b;
            background: #f8fafc;
            border: 1px dashed #cbd5e1;
        }
        .achievement-source-note {
            margin-top: 16px;
            padding: 11px 13px;
            border-radius: 12px;
            color: #475569;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            font-size: .67rem;
            line-height: 1.5;
        }
        @media (max-width: 720px) {
            .prestasi-modal-panel { width: min(96vw, 920px) !important; max-height: 94vh !important; }
            .achievement-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .achievement-toolbar { grid-template-columns: 1fr; }
            .achievement-list { grid-template-columns: 1fr; }
            .achievement-hero { padding: 19px; }
        }
        @media (prefers-reduced-motion: reduce) {
            .achievement-card, .achievement-more-button, .achievement-control { transition: none; }
            .achievement-card:hover, .achievement-more-button:hover { transform: none; }
        }

        /* Semua Show Detail - kedalaman visual 3D */
        .detail-content-3d [class*="bg-"][class*="-50"],
        .detail-content-3d .bg-white.rounded-lg,
        .detail-content-3d .bg-white.rounded-xl {
            border: 1px solid rgba(148, 163, 184, .24) !important;
            box-shadow: 0 14px 28px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255,255,255,.96);
            transform: perspective(900px) translateZ(0);
            transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
        }
        .detail-content-3d [class*="bg-"][class*="-50"]:hover,
        .detail-content-3d .bg-white.rounded-lg:hover,
        .detail-content-3d .bg-white.rounded-xl:hover {
            transform: perspective(900px) translateY(-3px) rotateX(.5deg);
            box-shadow: 0 20px 38px rgba(15, 23, 42, .14), inset 0 1px 0 #fff;
            border-color: rgba(16, 185, 129, .38) !important;
        }
        .detail-content-3d button[class*="bg-"],
        .detail-content-3d a[class*="bg-"] {
            box-shadow: 0 10px 18px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.24);
            transform: translateY(0);
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        }
        .detail-content-3d button[class*="bg-"]:hover,
        .detail-content-3d a[class*="bg-"]:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 26px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255,255,255,.3);
            filter: saturate(1.06);
        }
        .detail-content-3d iframe,
        .detail-content-3d img {
            box-shadow: 0 12px 24px rgba(15,23,42,.13);
        }
        #modal-title {
            color: #0f172a;
            font-weight: 900;
            letter-spacing: -.02em;
            text-shadow: 0 1px 0 #fff;
        }

        /* Pilihan jenjang prestasi */
        .achievement-choice-loading { display:flex; align-items:center; justify-content:center; gap:10px; min-height:180px; color:#047857; font-weight:800; }
        .achievement-choice-shell { color:#0f172a; }
        .achievement-choice-hero {
            display:flex; align-items:center; gap:16px; padding:22px; border-radius:24px; color:#fff;
            background: radial-gradient(circle at 90% 15%, rgba(250,204,21,.22), transparent 28%), linear-gradient(135deg,#052e16,#047857 55%,#155e75);
            box-shadow: 0 22px 42px rgba(6,78,59,.28), inset 0 1px 0 rgba(255,255,255,.22);
        }
        .achievement-choice-emblem {
            width:62px; height:62px; flex:0 0 62px; display:grid; place-items:center; border-radius:20px; font-size:27px;
            color:#78350f; background:linear-gradient(145deg,#fef08a,#f59e0b); box-shadow:0 13px 24px rgba(120,53,15,.28), inset 0 2px 2px rgba(255,255,255,.55); transform:rotate(-4deg);
        }
        .achievement-choice-hero h3 { margin:0; font-size:1.35rem; font-weight:900; }
        .achievement-choice-hero p { margin:5px 0 0; color:rgba(255,255,255,.84); font-size:.8rem; line-height:1.55; }
        .achievement-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:18px; }
        .achievement-choice-card {
            position:relative; overflow:hidden; display:flex; flex-direction:column; align-items:flex-start; min-height:285px; padding:22px; text-align:left;
            border:1px solid rgba(203,213,225,.8); border-radius:24px; color:#0f172a; background:linear-gradient(145deg,#fff,#f8fafc 65%,#ecfdf5);
            box-shadow:0 18px 35px rgba(15,23,42,.13),0 5px 12px rgba(15,23,42,.06),inset 0 1px 0 #fff;
            transform:perspective(1000px) translateZ(0); transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease;
        }
        .achievement-choice-card::after { content:''; position:absolute; width:150px; height:150px; right:-70px; top:-70px; border-radius:50%; background:rgba(16,185,129,.08); }
        .achievement-choice-card.smama { background:linear-gradient(145deg,#fff,#f8fafc 62%,#eff6ff); }
        .achievement-choice-card.smama::after { background:rgba(37,99,235,.08); }
        .achievement-choice-card:hover { transform:perspective(1000px) translateY(-7px) rotateX(1.2deg) rotateY(-1deg); border-color:rgba(16,185,129,.48); box-shadow:0 28px 52px rgba(15,23,42,.18),0 10px 22px rgba(5,150,105,.12),inset 0 1px 0 #fff; }
        .achievement-choice-card.smama:hover { border-color:rgba(37,99,235,.45); box-shadow:0 28px 52px rgba(15,23,42,.18),0 10px 22px rgba(37,99,235,.12),inset 0 1px 0 #fff; }
        .achievement-choice-icon { width:55px; height:55px; display:grid; place-items:center; border-radius:17px; color:#065f46; background:linear-gradient(145deg,#d1fae5,#a7f3d0); font-size:23px; box-shadow:0 10px 20px rgba(5,150,105,.18),inset 0 1px 0 #fff; }
        .achievement-choice-card.smama .achievement-choice-icon { color:#1e40af; background:linear-gradient(145deg,#dbeafe,#bfdbfe); box-shadow:0 10px 20px rgba(37,99,235,.16),inset 0 1px 0 #fff; }
        .achievement-choice-label { margin-top:17px; font-size:1.05rem; font-weight:950; letter-spacing:.01em; }
        .achievement-choice-description { margin-top:7px; min-height:58px; color:#64748b; font-size:.76rem; line-height:1.55; }
        .achievement-choice-stats { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:15px; }
        .achievement-choice-stats span { padding:8px 5px; border:1px solid #e2e8f0; border-radius:11px; text-align:center; color:#64748b; background:rgba(255,255,255,.78); font-size:.62rem; }
        .achievement-choice-stats strong { display:block; color:#047857; font-size:.94rem; }
        .achievement-choice-card.smama .achievement-choice-stats strong { color:#1d4ed8; }
        .achievement-choice-action { display:flex; justify-content:space-between; align-items:center; width:100%; margin-top:auto; padding-top:16px; color:#047857; font-size:.72rem; font-weight:900; }
        .achievement-choice-card.smama .achievement-choice-action { color:#1d4ed8; }
        .achievement-choice-note { display:flex; gap:9px; align-items:flex-start; margin-top:15px; padding:12px 14px; border:1px solid #e2e8f0; border-radius:15px; color:#64748b; background:#f8fafc; font-size:.68rem; line-height:1.5; box-shadow:0 9px 18px rgba(15,23,42,.06),inset 0 1px 0 #fff; }
        .achievement-back-row { margin-bottom:12px; }
        .achievement-back-button { display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid #dbe4f0; border-radius:12px; color:#334155; background:linear-gradient(180deg,#fff,#f8fafc); font-size:.7rem; font-weight:800; box-shadow:0 8px 16px rgba(15,23,42,.08),inset 0 1px 0 #fff; transition:transform .2s ease,box-shadow .2s ease; }
        .achievement-back-button:hover { transform:translateY(-2px); box-shadow:0 12px 22px rgba(15,23,42,.12),inset 0 1px 0 #fff; }
        .achievement-badge.unit { color:#065f46; background:#ecfdf5; border-color:#a7f3d0; }
        .achievement-badge.organizer { color:#5b21b6; background:#f5f3ff; border-color:#ddd6fe; }
        .achievement-participant-name { display:flex; flex-direction:column; gap:3px; }
        .achievement-class { color:#64748b; font-size:.6rem; font-weight:650; }

        @media (max-width: 720px) {
            .achievement-choice-grid { grid-template-columns:1fr; }
            .achievement-choice-card { min-height:250px; }
            .achievement-toolbar { grid-template-columns:1fr 1fr; }
            .achievement-toolbar .achievement-field:first-child { grid-column:1 / -1; }
        }
        @media (max-width: 520px) {
            .achievement-choice-hero { align-items:flex-start; padding:18px; }
            .achievement-choice-emblem { width:52px; height:52px; flex-basis:52px; border-radius:16px; font-size:23px; }
            .achievement-choice-hero h3 { font-size:1.1rem; }
            .achievement-toolbar { grid-template-columns:1fr; }
            .achievement-toolbar .achievement-field:first-child { grid-column:auto; }
        }


        /* Pembaruan 3D universal dan filter cepat tingkat prestasi */
        .achievement-choice-stats.level-summary {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
        .achievement-choice-stats.level-summary span {
            padding: 8px 3px;
        }
        .achievement-detail-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 13px;
        }
        .achievement-download-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            border: 1px solid #86efac;
            border-radius: 13px;
            color: #fff;
            background: linear-gradient(145deg, #16a34a, #047857);
            font-size: .72rem;
            font-weight: 900;
            box-shadow: 0 11px 22px rgba(5,150,105,.25), inset 0 1px 0 rgba(255,255,255,.25);
            transition: transform .2s ease, box-shadow .2s ease;
        }
        .achievement-download-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 16px 28px rgba(5,150,105,.33), inset 0 1px 0 rgba(255,255,255,.3);
        }
        button.achievement-kpi {
            width: 100%;
            appearance: none;
            color: inherit;
            cursor: pointer;
            transition: transform .22s ease, background .22s ease, box-shadow .22s ease, border-color .22s ease;
        }
        button.achievement-kpi:hover {
            transform: translateY(-4px) scale(1.02);
            background: rgba(255,255,255,.2);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 13px 25px rgba(0,0,0,.18);
        }
        button.achievement-kpi.active {
            color: #064e3b;
            background: linear-gradient(145deg, #fef9c3, #fde68a);
            border-color: rgba(254,240,138,.95);
            box-shadow: 0 14px 28px rgba(120,53,15,.25), inset 0 2px 1px rgba(255,255,255,.65);
            transform: translateY(-4px);
        }
        button.achievement-kpi.active strong,
        button.achievement-kpi.active span,
        button.achievement-kpi.active small,
        button.achievement-kpi.active i {
            color: #064e3b;
        }
        .achievement-kpi i {
            display: block;
            margin-bottom: 7px;
            color: #fef3c7;
            font-size: 1rem;
        }
        .achievement-kpi small {
            display: block;
            margin-top: 4px;
            color: rgba(255,255,255,.62);
            font-size: .52rem;
            font-weight: 650;
        }
        .achievement-active-filter {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 9px;
            border: 1px solid #dbe4f0;
            border-radius: 999px;
            color: #475569;
            background: #fff;
            box-shadow: 0 6px 14px rgba(15,23,42,.06);
            white-space: nowrap;
        }
        .achievement-active-filter strong { color: #047857; }

        /* Show Detail non-prestasi: lapisan 3D yang konsisten */
        .standard-detail-shell {
            --detail-accent: #0f766e;
            --detail-soft: rgba(15,118,110,.10);
            position: relative;
            isolation: isolate;
            perspective: 1200px;
            padding: 2px;
        }
        .standard-detail-shell::before {
            content: '';
            position: absolute;
            inset: -4px;
            z-index: -1;
            border-radius: 22px;
            background: radial-gradient(circle at 8% 5%, var(--detail-soft), transparent 34%), radial-gradient(circle at 96% 92%, rgba(59,130,246,.08), transparent 35%);
            pointer-events: none;
        }
        .detail-theme-pendaftaran { --detail-accent:#15803d; --detail-soft:rgba(34,197,94,.14); }
        .detail-theme-download { --detail-accent:#1d4ed8; --detail-soft:rgba(59,130,246,.14); }
        .detail-theme-brosur { --detail-accent:#7e22ce; --detail-soft:rgba(168,85,247,.13); }
        .detail-theme-biaya { --detail-accent:#a16207; --detail-soft:rgba(234,179,8,.14); }
        .detail-theme-syarat { --detail-accent:#b91c1c; --detail-soft:rgba(239,68,68,.12); }
        .detail-theme-lulusan { --detail-accent:#0f766e; --detail-soft:rgba(20,184,166,.13); }
        .standard-detail-shell > .space-y-4 {
            transform-style: preserve-3d;
        }
        .standard-detail-shell > .space-y-4 > :is(div, section):not(.grid),
        .standard-detail-shell > .space-y-4 > .grid > div,
        .standard-detail-shell .space-y-3:not(.grid),
        .standard-detail-shell ol,
        .standard-detail-shell ul {
            border: 1px solid rgba(148,163,184,.24);
            border-radius: 17px;
            background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(248,250,252,.93));
            box-shadow: 0 15px 30px rgba(15,23,42,.11), 0 5px 10px rgba(15,23,42,.05), inset 0 1px 0 #fff;
            transform: translateZ(10px);
            transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
        }
        .standard-detail-shell > .space-y-4 > :is(div, section):not(.grid):hover,
        .standard-detail-shell > .space-y-4 > .grid > div:hover,
        .standard-detail-shell .space-y-3:not(.grid):hover {
            transform: translateY(-4px) translateZ(16px) rotateX(.4deg);
            border-color: color-mix(in srgb, var(--detail-accent) 42%, #cbd5e1);
            box-shadow: 0 23px 42px rgba(15,23,42,.16), 0 8px 17px var(--detail-soft), inset 0 1px 0 #fff;
        }
        .standard-detail-shell > .space-y-4 > .space-y-2,
        .standard-detail-shell > .space-y-4 > .space-y-3,
        .standard-detail-shell > .space-y-4 > .text-center {
            padding: 16px;
        }
        .standard-detail-shell .grid > div {
            transform: translateZ(8px);
        }
        .standard-detail-shell button,
        .standard-detail-shell a[class*="bg-"] {
            border-bottom: 3px solid color-mix(in srgb, var(--detail-accent) 72%, #0f172a) !important;
            box-shadow: 0 12px 23px rgba(15,23,42,.18), inset 0 1px 0 rgba(255,255,255,.28) !important;
        }
        .standard-detail-shell button:active,
        .standard-detail-shell a[class*="bg-"]:active {
            transform: translateY(2px) !important;
            border-bottom-width: 1px !important;
        }
        #modal-panel[data-detail-type]:not([data-detail-type="prestasi"]) {
            box-shadow: 0 34px 90px rgba(2,6,23,.46), 0 13px 32px rgba(30,64,175,.17), inset 0 1px 0 rgba(255,255,255,.98);
        }
        #modal-panel[data-detail-type]:not([data-detail-type="prestasi"]) .modal-heading-sticky {
            border-bottom: 1px solid rgba(148,163,184,.3);
            box-shadow: 0 8px 20px rgba(15,23,42,.07);
        }

        @media (max-width: 720px) {
            .achievement-detail-actions { align-items: stretch; }
            .achievement-back-button, .achievement-download-button { flex: 1 1 190px; }
            .achievement-kpi small { display: none; }
            .achievement-results-info { align-items: flex-start; flex-direction: column; }
        }
        @media (max-width: 460px) {
            .achievement-choice-stats.level-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .achievement-kpi strong { font-size: 1.08rem; }
            .achievement-kpi span { font-size: .6rem; }
        }

    

        /* Show Detail Brosur Digital 3D */
        .brochure-modal-panel {
            width: min(96vw, 1040px) !important;
            max-width: 1040px !important;
            max-height: 94vh !important;
        }
        .brochure-shell { color:#0f172a; }
        .brochure-choice-hero,
        .brochure-detail-hero {
            position:relative;
            overflow:hidden;
            border-radius:26px;
            padding:24px;
            color:#fff;
            background:
                radial-gradient(circle at 12% 12%, rgba(251,146,60,.34), transparent 30%),
                radial-gradient(circle at 92% 90%, rgba(34,211,238,.20), transparent 34%),
                linear-gradient(135deg,#052e2b 0%,#065f46 42%,#0f766e 72%,#164e63 100%);
            box-shadow:0 24px 48px rgba(6,78,59,.28), inset 0 1px 0 rgba(255,255,255,.25);
            transform:perspective(1200px) translateZ(0);
        }
        .brochure-choice-hero::after,
        .brochure-detail-hero::after {
            content:'';
            position:absolute;
            width:210px;
            height:210px;
            right:-70px;
            top:-92px;
            border:24px solid rgba(255,255,255,.075);
            border-radius:50%;
        }
        .brochure-hero-row { position:relative;z-index:1;display:flex;align-items:center;gap:15px; }
        .brochure-hero-emblem {
            width:62px;height:62px;flex:0 0 62px;display:grid;place-items:center;
            border-radius:19px;font-size:27px;color:#7c2d12;
            background:linear-gradient(145deg,#fed7aa,#f97316);
            box-shadow:0 14px 25px rgba(124,45,18,.30),inset 0 2px 2px rgba(255,255,255,.62);
            transform:rotate(-4deg) translateZ(20px);
        }
        .brochure-choice-hero h3,.brochure-detail-hero h3 { margin:0;font-size:clamp(1.2rem,3.6vw,1.75rem);font-weight:900;letter-spacing:-.025em; }
        .brochure-choice-hero p,.brochure-detail-hero p { margin:6px 0 0;color:rgba(255,255,255,.82);font-size:.82rem;line-height:1.6; }
        .brochure-choice-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:18px; }
        .brochure-choice-card {
            position:relative;overflow:hidden;min-height:245px;padding:22px;text-align:left;
            border:1px solid rgba(203,213,225,.82);border-radius:23px;cursor:pointer;
            background:linear-gradient(145deg,#fff 0%,#f8fafc 64%,#ecfdf5 100%);
            box-shadow:0 18px 35px rgba(15,23,42,.13),0 6px 12px rgba(15,23,42,.06),inset 0 1px 0 #fff;
            transform:perspective(900px) translateZ(0);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
        }
        .brochure-choice-card:hover { transform:perspective(900px) translateY(-7px) rotateX(2deg) rotateY(-1deg);box-shadow:0 28px 48px rgba(15,23,42,.18),0 10px 20px rgba(5,150,105,.13),inset 0 1px 0 #fff;border-color:rgba(16,185,129,.55); }
        .brochure-choice-card.sma::before,.brochure-choice-card.smp::before { content:'';position:absolute;inset:0 0 auto;height:7px; }
        .brochure-choice-card.sma::before { background:linear-gradient(90deg,#f97316,#10b981,#0891b2); }
        .brochure-choice-card.smp::before { background:linear-gradient(90deg,#2563eb,#7c3aed,#ec4899); }
        .brochure-choice-icon { width:64px;height:64px;display:grid;place-items:center;border-radius:20px;font-size:27px;margin-bottom:18px;box-shadow:0 13px 24px rgba(15,23,42,.16),inset 0 2px 2px rgba(255,255,255,.65); }
        .brochure-choice-card.sma .brochure-choice-icon { color:#7c2d12;background:linear-gradient(145deg,#ffedd5,#fb923c); }
        .brochure-choice-card.smp .brochure-choice-icon { color:#312e81;background:linear-gradient(145deg,#e0e7ff,#a5b4fc); }
        .brochure-choice-label { display:block;color:#0f172a;font-size:1.05rem;font-weight:900;letter-spacing:.02em; }
        .brochure-choice-description { display:block;margin-top:8px;color:#64748b;font-size:.76rem;line-height:1.55; }
        .brochure-choice-status { display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:7px 10px;border-radius:999px;color:#065f46;background:#d1fae5;font-size:.66rem;font-weight:850; }
        .brochure-choice-card.smp .brochure-choice-status { color:#5b21b6;background:#ede9fe; }
        .brochure-back-row { margin-bottom:12px; }
        .brochure-back-button { display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #dbe4f0;border-radius:12px;color:#334155;background:linear-gradient(180deg,#fff,#f8fafc);font-size:.7rem;font-weight:850;box-shadow:0 8px 16px rgba(15,23,42,.08),inset 0 1px 0 #fff;transition:transform .2s ease,box-shadow .2s ease; }
        .brochure-back-button:hover { transform:translateY(-2px);box-shadow:0 13px 23px rgba(15,23,42,.13),inset 0 1px 0 #fff; }
        .brochure-kpi-grid { position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:20px; }
        .brochure-kpi { padding:12px 8px;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 8px 18px rgba(0,0,0,.11);backdrop-filter:blur(10px); }
        .brochure-kpi strong { display:block;color:#ffedd5;font-size:1.25rem;line-height:1; }
        .brochure-kpi span { display:block;margin-top:6px;color:rgba(255,255,255,.82);font-size:.63rem; }
        .brochure-main-grid { display:grid;grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);gap:17px;margin-top:18px;align-items:start; }
        .brochure-preview-card,.brochure-info-card,.brochure-section-card,.brochure-coming-card {
            position:relative;overflow:hidden;border:1px solid rgba(203,213,225,.78);border-radius:22px;background:linear-gradient(145deg,#fff,#f8fafc 70%,#f0fdf4);box-shadow:0 17px 34px rgba(15,23,42,.12),0 5px 11px rgba(15,23,42,.05),inset 0 1px 0 #fff;transform:perspective(950px) translateZ(0);transition:transform .23s ease,box-shadow .23s ease;
        }
        .brochure-preview-card:hover,.brochure-info-card:hover,.brochure-section-card:hover { transform:perspective(950px) translateY(-4px) rotateX(1deg);box-shadow:0 24px 43px rgba(15,23,42,.16),0 8px 18px rgba(5,150,105,.10),inset 0 1px 0 #fff; }
        .brochure-preview-card { padding:12px; }
        .brochure-preview-frame { position:relative;overflow:hidden;border-radius:16px;background:#e2e8f0;box-shadow:inset 0 0 0 1px rgba(148,163,184,.35),0 10px 24px rgba(15,23,42,.12); }
        .brochure-preview-frame img { display:block;width:100%;height:auto; }
        .brochure-preview-badge { position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;color:#fff;background:rgba(6,78,59,.90);font-size:.64rem;font-weight:850;backdrop-filter:blur(10px);box-shadow:0 8px 16px rgba(0,0,0,.2); }
        .brochure-info-card,.brochure-section-card { padding:19px; }
        .brochure-info-card h4,.brochure-section-card h4 { margin:0;color:#0f172a;font-size:.92rem;font-weight:900; }
        .brochure-info-card p,.brochure-section-card p { margin:7px 0 0;color:#64748b;font-size:.73rem;line-height:1.55; }
        .brochure-highlight-list { display:grid;gap:9px;margin-top:14px; }
        .brochure-highlight { display:flex;gap:10px;align-items:flex-start;padding:11px;border:1px solid #e2e8f0;border-radius:14px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 7px 15px rgba(15,23,42,.06),inset 0 1px 0 #fff; }
        .brochure-highlight i { width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;border-radius:10px;color:#9a3412;background:#ffedd5; }
        .brochure-highlight strong { display:block;color:#1e293b;font-size:.72rem;line-height:1.4; }
        .brochure-highlight span { display:block;margin-top:2px;color:#64748b;font-size:.64rem;line-height:1.4; }
        .brochure-action-row { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:17px; }
        .brochure-action { display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:10px 12px;border-radius:14px;text-align:center;text-decoration:none;font-size:.7rem;font-weight:900;transition:transform .2s ease,box-shadow .2s ease; }
        .brochure-action:hover { transform:translateY(-3px); }
        .brochure-action.digital { color:#fff;background:linear-gradient(145deg,#0f766e,#064e3b);box-shadow:0 12px 23px rgba(6,78,59,.25),inset 0 1px 0 rgba(255,255,255,.25); }
        .brochure-action.view { color:#fff;background:linear-gradient(145deg,#7c3aed,#5b21b6);box-shadow:0 12px 23px rgba(91,33,182,.23),inset 0 1px 0 rgba(255,255,255,.24); }
        .brochure-action.download { color:#fff;background:linear-gradient(145deg,#fb923c,#ea580c);box-shadow:0 12px 23px rgba(234,88,12,.25),inset 0 1px 0 rgba(255,255,255,.25); }
        .brochure-section-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:15px; }
        .brochure-list { display:grid;gap:8px;margin-top:13px; }
        .brochure-list-item { display:flex;align-items:flex-start;gap:9px;color:#334155;font-size:.69rem;line-height:1.45; }
        .brochure-list-item i { margin-top:2px;color:#059669; }
        .brochure-chip-list { display:flex;flex-wrap:wrap;gap:7px;margin-top:13px; }
        .brochure-chip { padding:7px 9px;border:1px solid #dbe4f0;border-radius:999px;color:#334155;background:#fff;font-size:.62rem;font-weight:750;box-shadow:0 6px 12px rgba(15,23,42,.06); }
        .brochure-source-note { display:flex;gap:9px;align-items:flex-start;margin-top:15px;padding:12px 14px;border:1px solid #e2e8f0;border-radius:15px;color:#64748b;background:#f8fafc;font-size:.67rem;line-height:1.5;box-shadow:0 9px 18px rgba(15,23,42,.06),inset 0 1px 0 #fff; }
        .brochure-coming-card { padding:28px;text-align:center; }
        .brochure-coming-icon { width:76px;height:76px;display:grid;place-items:center;margin:0 auto 16px;border-radius:24px;color:#312e81;background:linear-gradient(145deg,#e0e7ff,#a5b4fc);font-size:32px;box-shadow:0 16px 28px rgba(49,46,129,.18),inset 0 2px 2px rgba(255,255,255,.65); }
        .brochure-coming-card h4 { margin:0;color:#0f172a;font-size:1.05rem;font-weight:900; }
        .brochure-coming-card p { max-width:520px;margin:8px auto 0;color:#64748b;font-size:.76rem;line-height:1.6; }
        @media (max-width:780px) {
            .brochure-main-grid,.brochure-section-grid { grid-template-columns:1fr; }
            .brochure-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
        }
        @media (max-width:620px) {
            .brochure-choice-grid { grid-template-columns:1fr; }
            .brochure-action-row { grid-template-columns:1fr; }
            .brochure-choice-card { min-height:220px; }
            .brochure-choice-hero,.brochure-detail-hero { padding:19px; }
            .brochure-hero-emblem { width:54px;height:54px;flex-basis:54px;border-radius:17px;font-size:23px; }
        }


        /* =========================================================
           REVISI SHOW DETAIL RESPONSIF 3D — teks utuh, tidak terpotong
           ========================================================= */
        #modal {
            padding: clamp(8px, 2.2vw, 24px);
            overflow: hidden;
            overscroll-behavior: contain;
        }
        .modal-panel-responsive {
            width: min(96vw, 780px) !important;
            max-width: 780px !important;
            height: auto;
            max-height: calc(100dvh - clamp(16px, 4.4vw, 48px)) !important;
            overflow: hidden !important;
            display: flex;
            flex-direction: column;
            border-radius: clamp(20px, 3vw, 30px) !important;
        }
        .modal-layout {
            display: flex;
            flex: 1 1 auto;
            flex-direction: column;
            width: 100%;
            min-width: 0;
            min-height: 0;
            overflow: hidden;
        }
        .modal-heading-sticky {
            position: relative;
            top: auto;
            z-index: 30;
            display: flex;
            flex: 0 0 auto;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            width: 100%;
            min-width: 0;
            margin: 0;
            padding: clamp(14px, 2.5vw, 20px) clamp(15px, 3vw, 24px);
            background:
                radial-gradient(circle at 8% 0%, rgba(16,185,129,.13), transparent 38%),
                linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
            border-bottom: 1px solid rgba(148,163,184,.27);
            box-shadow: 0 9px 24px rgba(15,23,42,.08);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }
        .modal-heading-copy {
            min-width: 0;
            flex: 1 1 auto;
        }
        .modal-eyebrow {
            display: block;
            margin-bottom: 4px;
            color: #047857;
            font-size: clamp(.58rem, 1.8vw, .69rem);
            font-weight: 900;
            letter-spacing: .11em;
            line-height: 1.3;
            text-transform: uppercase;
            overflow-wrap: anywhere;
        }
        #modal-title {
            margin: 0;
            max-width: 100%;
            color: #0f172a;
            font-size: clamp(1.05rem, 4vw, 1.45rem);
            font-weight: 950;
            letter-spacing: -.025em;
            line-height: 1.2;
            overflow-wrap: anywhere;
            word-break: normal;
            white-space: normal;
        }
        .modal-close-button {
            width: 44px;
            height: 44px;
            flex: 0 0 44px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(203,213,225,.85);
            border-bottom: 3px solid #cbd5e1;
            border-radius: 15px;
            color: #334155;
            background: linear-gradient(145deg,#fff,#eef2f7);
            box-shadow: 0 9px 17px rgba(15,23,42,.12), inset 0 1px 0 #fff;
            cursor: pointer;
            transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
        }
        .modal-close-button:hover {
            color: #b91c1c;
            transform: translateY(-2px) rotate(3deg);
            box-shadow: 0 14px 24px rgba(15,23,42,.16), inset 0 1px 0 #fff;
        }
        .modal-close-button:active {
            transform: translateY(1px);
            border-bottom-width: 1px;
        }
        .modal-content-scroll {
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            min-height: 0;
            max-width: 100%;
            padding: clamp(14px, 3vw, 24px);
            color: #475569;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            scrollbar-gutter: stable;
            -webkit-overflow-scrolling: touch;
        }
        .modal-content-scroll::-webkit-scrollbar { width: 9px; }
        .modal-content-scroll::-webkit-scrollbar-track { background: rgba(226,232,240,.7); }
        .modal-content-scroll::-webkit-scrollbar-thumb { background: linear-gradient(#94a3b8,#64748b); border: 2px solid #e2e8f0; border-radius: 999px; }

        /* Semua elemen isi modal wajib membungkus teks dengan utuh. */
        #modal-content,
        #modal-content * {
            box-sizing: border-box;
        }
        #modal-content :where(h1,h2,h3,h4,h5,p,li,span,strong,small,a,button,label,div) {
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: normal;
            white-space: normal;
        }
        #modal-content :where(.flex,.grid) { min-width: 0; }
        #modal-content :where(.flex,.grid) > * { min-width: 0; }
        #modal-content a,
        #modal-content button {
            line-height: 1.35;
            text-decoration-skip-ink: auto;
        }
        #modal-content img,
        #modal-content iframe,
        #modal-content video,
        #modal-content object {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 14px;
        }
        #modal-content iframe { min-height: clamp(240px, 52vh, 560px); }
        #modal-content ol,
        #modal-content ul {
            max-width: 100%;
            padding-left: 1.25rem;
            overflow: visible;
        }
        #modal-content li { padding-block: 3px; line-height: 1.55; }

        /* Panel lebar memakai sistem scroll yang sama agar header tidak menutup isi. */
        .prestasi-modal-panel,
        .brochure-modal-panel {
            height: auto !important;
            max-height: calc(100dvh - clamp(16px, 4.4vw, 48px)) !important;
            overflow: hidden !important;
        }
        .standard-modal-panel { width: min(96vw, 760px) !important; max-width: 760px !important; }

        /* Hero pembuka untuk setiap Show Detail standar. */
        .standard-detail-shell {
            --detail-hero-start: #064e3b;
            --detail-hero-end: #0f766e;
            --detail-icon-start: #d1fae5;
            --detail-icon-end: #6ee7b7;
            --detail-icon-ink: #065f46;
            padding: 0;
        }
        .detail-theme-pendaftaran {
            --detail-hero-start:#052e16; --detail-hero-end:#15803d;
            --detail-icon-start:#dcfce7; --detail-icon-end:#86efac; --detail-icon-ink:#14532d;
        }
        .detail-theme-download {
            --detail-hero-start:#172554; --detail-hero-end:#2563eb;
            --detail-icon-start:#dbeafe; --detail-icon-end:#93c5fd; --detail-icon-ink:#1e3a8a;
        }
        .detail-theme-biaya {
            --detail-hero-start:#713f12; --detail-hero-end:#d97706;
            --detail-icon-start:#fef3c7; --detail-icon-end:#fcd34d; --detail-icon-ink:#78350f;
        }
        .detail-theme-syarat {
            --detail-hero-start:#7f1d1d; --detail-hero-end:#dc2626;
            --detail-icon-start:#fee2e2; --detail-icon-end:#fca5a5; --detail-icon-ink:#7f1d1d;
        }
        .detail-theme-lulusan {
            --detail-hero-start:#134e4a; --detail-hero-end:#0891b2;
            --detail-icon-start:#ccfbf1; --detail-icon-end:#67e8f9; --detail-icon-ink:#155e75;
        }
        .standard-detail-hero {
            position: relative;
            isolation: isolate;
            display: flex;
            align-items: center;
            gap: clamp(12px, 2.4vw, 18px);
            width: 100%;
            margin-bottom: 18px;
            padding: clamp(18px, 3.6vw, 26px);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,.22);
            border-radius: clamp(19px, 3vw, 26px);
            color: #fff;
            background:
                radial-gradient(circle at 8% 10%, rgba(255,255,255,.15), transparent 34%),
                radial-gradient(circle at 95% 90%, rgba(251,191,36,.22), transparent 34%),
                linear-gradient(135deg,var(--detail-hero-start),var(--detail-hero-end));
            box-shadow: 0 23px 44px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.25);
            transform: perspective(1100px) translateZ(0);
        }
        .standard-detail-hero::after {
            content: '';
            position: absolute;
            z-index: -1;
            width: 180px;
            height: 180px;
            right: -70px;
            top: -85px;
            border: 22px solid rgba(255,255,255,.07);
            border-radius: 50%;
        }
        .standard-detail-hero-icon {
            width: clamp(54px, 12vw, 68px);
            height: clamp(54px, 12vw, 68px);
            flex: 0 0 clamp(54px, 12vw, 68px);
            display: grid;
            place-items: center;
            border-radius: clamp(17px, 3vw, 22px);
            color: var(--detail-icon-ink);
            background: linear-gradient(145deg,var(--detail-icon-start),var(--detail-icon-end));
            box-shadow: 0 14px 25px rgba(15,23,42,.22), inset 0 2px 2px rgba(255,255,255,.65);
            font-size: clamp(1.25rem, 5vw, 1.75rem);
            transform: rotate(-4deg) translateZ(18px);
        }
        .standard-detail-hero-copy { min-width: 0; }
        .standard-detail-hero-copy > span {
            display: block;
            margin-bottom: 4px;
            color: rgba(255,255,255,.74);
            font-size: clamp(.55rem, 1.8vw, .67rem);
            font-weight: 900;
            letter-spacing: .1em;
            text-transform: uppercase;
        }
        .standard-detail-hero h3 {
            margin: 0;
            color: #fff;
            font-size: clamp(1.08rem, 4.2vw, 1.55rem);
            font-weight: 950;
            letter-spacing: -.025em;
            line-height: 1.2;
        }
        .standard-detail-hero p {
            margin: 6px 0 0;
            color: rgba(255,255,255,.82);
            font-size: clamp(.72rem, 2.4vw, .84rem);
            line-height: 1.58;
        }

        /* Kartu isi dibuat lebih tegas dan lapang. */
        .standard-detail-shell > .space-y-4 {
            display: grid;
            gap: 15px;
            transform-style: preserve-3d;
        }
        .standard-detail-shell > .space-y-4 > :is(div,section):not(.grid),
        .standard-detail-shell > .space-y-4 > .grid > div,
        .standard-detail-shell .space-y-3:not(.grid),
        .standard-detail-shell ol,
        .standard-detail-shell ul {
            position: relative;
            overflow: visible;
            border-radius: 19px;
        }
        .standard-detail-shell > .space-y-4 > :is(div,section):not(.grid)::before,
        .standard-detail-shell > .space-y-4 > .grid > div::before {
            content: '';
            position: absolute;
            inset: 0 auto 0 0;
            width: 5px;
            border-radius: 19px 0 0 19px;
            background: linear-gradient(180deg,var(--detail-accent),color-mix(in srgb,var(--detail-accent) 55%,#fff));
            opacity: .9;
        }
        .standard-detail-shell :where(h3,h4) {
            color: #0f172a;
            font-weight: 900;
            line-height: 1.35;
        }
        .standard-detail-shell :where(p,li,span) { line-height: 1.58; }
        .standard-detail-shell > .space-y-4 > button,
        .standard-detail-shell > .space-y-4 > a {
            min-height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding-inline: 15px;
            border-radius: 15px;
            text-align: center;
        }
        .standard-detail-shell .flex.gap-2,
        .standard-detail-shell .flex.gap-3 {
            flex-wrap: wrap;
        }
        .standard-detail-shell .flex.gap-2 > a,
        .standard-detail-shell .flex.gap-3 > a,
        .standard-detail-shell .flex.gap-2 > button,
        .standard-detail-shell .flex.gap-3 > button {
            flex: 1 1 145px;
            min-width: 0;
        }
        .standard-detail-shell .flex.justify-between > span:first-child {
            flex: 1 1 auto;
            padding-right: 8px;
        }
        .standard-detail-shell .flex.justify-between > span:last-child {
            flex: 0 1 auto;
            text-align: right;
        }

        /* Show Detail khusus tetap membungkus semua label panjang. */
        .achievement-card,
        .achievement-item,
        .achievement-participant,
        .brochure-highlight,
        .brochure-list-item,
        .brochure-info-card,
        .brochure-section-card {
            min-width: 0;
        }
        .achievement-card :where(h3,h4,p,span,strong),
        .achievement-item :where(h3,h4,p,span,strong),
        .brochure-shell :where(h3,h4,p,span,strong,a,button) {
            overflow-wrap: anywhere;
            white-space: normal;
        }
        .achievement-award { max-width: 100%; flex: 0 1 auto; }
        .brochure-action { min-width: 0; }

        @media (max-width: 620px) {
            #modal { padding: 6px; align-items: center; }
            .modal-panel-responsive,
            .prestasi-modal-panel,
            .brochure-modal-panel,
            .standard-modal-panel {
                width: calc(100vw - 12px) !important;
                max-width: calc(100vw - 12px) !important;
                max-height: calc(100dvh - 12px) !important;
                border-radius: 20px !important;
            }
            .modal-heading-sticky { padding: 13px 14px; gap: 10px; }
            .modal-close-button { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
            .modal-content-scroll { padding: 13px; scrollbar-gutter: auto; }
            .standard-detail-hero { align-items: flex-start; }
            .standard-detail-shell .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
            .standard-detail-shell .grid.grid-cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
            .standard-detail-shell .grid.grid-cols-3 > div { padding: 11px 6px !important; }
            .standard-detail-shell .grid.grid-cols-3 .text-2xl { font-size: 1.15rem !important; }
            .standard-detail-shell .grid.grid-cols-3 .text-xs { font-size: .62rem !important; line-height: 1.3; }
            .achievement-choice-hero,
            .brochure-choice-hero,
            .brochure-detail-hero { align-items: flex-start; }
            .achievement-choice-hero-title,
            .brochure-hero-row { align-items: flex-start; }
        }
        @media (max-width: 420px) {
            .standard-detail-hero { display: block; }
            .standard-detail-hero-icon { margin-bottom: 13px; }
            .standard-detail-shell .grid.grid-cols-3 { grid-template-columns: 1fr !important; }
            .standard-detail-shell .grid.grid-cols-3 > div { padding: 14px !important; }
            .standard-detail-shell .grid.grid-cols-3 .text-2xl { font-size: 1.45rem !important; }
            .standard-detail-shell .grid.grid-cols-3 .text-xs { font-size: .72rem !important; }
            .achievement-choice-hero,
            .brochure-choice-hero,
            .brochure-detail-hero { padding: 16px; }
            .achievement-choice-emblem,
            .brochure-hero-emblem { width: 50px; height: 50px; flex-basis: 50px; font-size: 21px; }
        }
        @media (hover:none) {
            .standard-detail-shell > .space-y-4 > :is(div,section):not(.grid):hover,
            .standard-detail-shell > .space-y-4 > .grid > div:hover,
            .standard-detail-shell .space-y-3:not(.grid):hover,
            .brochure-preview-card:hover,
            .brochure-info-card:hover,
            .brochure-section-card:hover,
            .achievement-card:hover {
                transform: none;
            }
        }


        /* Pengaman tambahan terhadap overflow dekorasi 3D pada layar sempit. */
        .standard-detail-shell { overflow-x: clip; }
        .standard-detail-shell::before { inset: 0; }
        .standard-detail-hero,
        .brochure-choice-hero,
        .brochure-detail-hero,
        .achievement-choice-card,
        .brochure-choice-card {
            overflow: hidden;
            contain: paint;
        }
        .brochure-hero-row > div:last-child,
        .achievement-choice-hero-title > div:last-child { min-width: 0; }
        .modal-close-glyph {
            display: block;
            font-size: 1.65rem;
            font-weight: 400;
            line-height: 1;
            transform: translateY(-1px);
        }


        /* Dekorasi tetap berada di dalam kartu sehingga tidak menambah lebar konten. */
        .standard-detail-hero::after,
        .brochure-choice-hero::after,
        .brochure-detail-hero::after {
            width: 140px;
            height: 140px;
            right: 12px;
            top: -72px;
        }
        .achievement-choice-card::after {
            width: 94px;
            height: 94px;
            right: 10px;
            top: -48px;
        }

    
        .main-shell-3d {
            position: relative;
            max-width: 28rem;
        }
        .main-shell-3d::before {
            content: '';
            position: absolute;
            inset: 12px 0 auto 0;
            height: 220px;
            border-radius: 34px;
            background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(168,85,247,.12), rgba(251,191,36,.12));
            filter: blur(24px);
            z-index: 0;
        }
        .main-shell-3d > * { position: relative; z-index: 1; }
        .header-hero-3d {
            position: relative;
            overflow: hidden;
            padding: 1.55rem 1.2rem 1.35rem;
            border-radius: 1.85rem;
            border: 1px solid rgba(255,255,255,.18);
            background: linear-gradient(145deg, rgba(15,23,42,.86), rgba(30,41,59,.86));
            box-shadow: 0 24px 60px rgba(2,6,23,.44), inset 0 1px 0 rgba(255,255,255,.14), inset 0 -18px 35px rgba(59,130,246,.12);
        }
        .header-hero-3d::before,
        .header-hero-3d::after {
            content: '';
            position: absolute;
            border-radius: 9999px;
            pointer-events: none;
        }
        .header-hero-3d::before {
            width: 180px; height: 180px; right: -50px; top: -65px;
            background: radial-gradient(circle, rgba(34,211,238,.34), rgba(34,211,238,0));
        }
        .header-hero-3d::after {
            width: 170px; height: 170px; left: -65px; bottom: -80px;
            background: radial-gradient(circle, rgba(236,72,153,.24), rgba(236,72,153,0));
        }
        .hero-chip-3d {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            margin-bottom: 1rem;
            padding: .5rem .95rem;
            border-radius: 9999px;
            color: #ecfeff;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .08em;
            background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(59,130,246,.18));
            border: 1px solid rgba(255,255,255,.16);
            box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 24px rgba(15,23,42,.24);
            text-transform: uppercase;
        }
        .logo-shell-3d {
            position: relative;
            width: 7.75rem;
            height: 6rem;
            margin-inline: auto;
            margin-bottom: 1rem;
            border-radius: 1.35rem;
            background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(224,231,255,.88));
            box-shadow: 0 18px 45px rgba(15,23,42,.26), inset 0 1px 0 rgba(255,255,255,.96), inset 0 -14px 24px rgba(59,130,246,.08);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,.65);
        }
        .hero-title-3d {
            font-size: 2rem;
            line-height: 1.05;
            font-weight: 900;
            letter-spacing: -.03em;
            color: #fff;
            text-shadow: 0 10px 30px rgba(15,23,42,.35);
        }
        .hero-subtitle-3d {
            margin-top: .6rem;
            color: #fde68a;
            font-weight: 800;
            font-size: 1.1rem;
            line-height: 1.35;
        }
        .hero-meta-3d {
            margin-top: .55rem;
            color: #dbeafe;
            font-weight: 700;
            font-size: .98rem;
        }
        .hero-year-pill {
            display: inline-block;
            margin-top: 1rem;
            padding: .8rem 1.15rem;
            border-radius: 9999px;
            color: #fff;
            font-size: .95rem;
            font-weight: 900;
            background: linear-gradient(135deg, #ef4444, #f97316, #f59e0b);
            box-shadow: 0 16px 36px rgba(249,115,22,.30), inset 0 1px 0 rgba(255,255,255,.24);
            border: 1px solid rgba(255,255,255,.18);
        }
        .menu-card-3d {
            position: relative;
            overflow: hidden;
            border-radius: 1.3rem !important;
            border: 1px solid rgba(255,255,255,.72);
            background: linear-gradient(145deg, rgba(255,255,255,.97), rgba(248,250,252,.97));
            box-shadow: 0 16px 36px rgba(15,23,42,.18), 0 6px 14px rgba(59,130,246,.08), inset 0 1px 0 rgba(255,255,255,.9);
        }
        .menu-card-3d::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,.42), transparent 35%, transparent 65%, rgba(99,102,241,.08));
            pointer-events: none;
        }
        .menu-icon-3d {
            box-shadow: 0 12px 25px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.8);
            border: 1px solid rgba(255,255,255,.65);
        }
        .section-card-3d {
            position: relative;
            overflow: hidden;
            padding: 1rem;
            border-radius: 1.4rem;
            background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
            border: 1px solid rgba(255,255,255,.16);
            box-shadow: 0 22px 45px rgba(2,6,23,.24), inset 0 1px 0 rgba(255,255,255,.12);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }
        .contact-primary-card,
        .location-card-3d,
        .footer-3d {
            position: relative;
            overflow: hidden;
            border-radius: 1.25rem;
            border: 1px solid rgba(255,255,255,.12);
            box-shadow: 0 18px 36px rgba(2,6,23,.24), inset 0 1px 0 rgba(255,255,255,.12);
        }
        .contact-primary-card {
            display: block;
            padding: 1rem;
            color: #fff;
            background: linear-gradient(135deg, #16a34a, #059669, #0f766e);
        }
        .location-card-3d {
            display: block;
            padding: 1rem;
            color: #e2e8f0;
            background: linear-gradient(145deg, rgba(15,23,42,.92), rgba(30,41,59,.88));
        }
        .footer-3d {
            margin-top: 1.25rem;
            padding: 1rem .75rem;
            background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
            color: #e0e7ff;
            text-align: center;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .section-title-3d {
            color: #fff;
            text-align: center;
            font-size: 1rem;
            font-weight: 800;
            letter-spacing: .02em;
            margin-bottom: .85rem;
        }
        .icon-badge-3d {
            width: 3rem;
            height: 3rem;
            border-radius: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 22px rgba(2,6,23,.16);
            border: 1px solid rgba(255,255,255,.18);
        }
        .address-text {
            font-size: .78rem;
            line-height: 1.45;
            color: #cbd5e1;
        }
        @media (max-width: 420px) {
            .hero-title-3d { font-size: 1.7rem; }
            .hero-subtitle-3d { font-size: 1rem; }
            .hero-meta-3d { font-size: .9rem; }
        }

    
        /* Premium 3D polish */
        .menu-card-3d {
            transform-style: preserve-3d;
            transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
        }
        .menu-card-3d:hover {
            transform: translateY(-7px) rotateX(1.5deg) rotateY(-1deg);
            box-shadow: 0 26px 52px rgba(15,23,42,.26), 0 10px 24px rgba(59,130,246,.14), inset 0 1px 0 rgba(255,255,255,.95);
            border-color: rgba(96,165,250,.55);
        }
        .menu-card-3d .flex-1,
        .menu-card-3d > div > i,
        .menu-card-3d .pulse-animation { position: relative; z-index: 2; }
        .menu-icon-3d {
            position: relative;
            transform: translateZ(18px);
            transition: transform .28s ease, box-shadow .28s ease;
        }
        .menu-card-3d:hover .menu-icon-3d {
            transform: translateZ(24px) translateY(-2px) rotate(-2deg) scale(1.05);
            box-shadow: 0 18px 30px rgba(15,23,42,.16), inset 0 1px 0 rgba(255,255,255,.95);
        }
        .menu-card-3d h3 {
            font-weight: 800 !important;
            letter-spacing: -.01em;
        }
        .menu-card-3d p { line-height: 1.35; }
        .menu-card-3d::before {
            content: '';
            position: absolute;
            left: 0;
            top: 14px;
            bottom: 14px;
            width: 4px;
            border-radius: 0 999px 999px 0;
            background: linear-gradient(180deg, #22d3ee, #6366f1, #f59e0b);
            opacity: .9;
            box-shadow: 0 0 16px rgba(99,102,241,.28);
        }
        .menu-chevron-3d {
            position: relative;
            z-index: 2;
            width: 2rem;
            height: 2rem;
            border-radius: .75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(145deg, #f8fafc, #e2e8f0);
            border: 1px solid rgba(148,163,184,.24);
            box-shadow: 0 8px 16px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9);
        }
        .contact-primary-card:hover,
        .location-card-3d:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 28px 52px rgba(2,6,23,.30), inset 0 1px 0 rgba(255,255,255,.18);
        }
        .contact-primary-card,
        .location-card-3d {
            transition: transform .28s ease, box-shadow .28s ease;
        }
        .contact-primary-card::after,
        .location-card-3d::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 36%, transparent 65%, rgba(255,255,255,.05));
        }
        .footer-actions-3d {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: .75rem;
            margin-bottom: .9rem;
        }
        .footer-action-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: .5rem;
            min-height: 2.85rem;
            border-radius: 1rem;
            font-size: .8rem;
            font-weight: 800;
            text-decoration: none;
            border: 1px solid rgba(255,255,255,.16);
            box-shadow: 0 12px 24px rgba(2,6,23,.20), inset 0 1px 0 rgba(255,255,255,.18);
            transition: transform .25s ease, box-shadow .25s ease;
        }
        .footer-action-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 18px 32px rgba(2,6,23,.27), inset 0 1px 0 rgba(255,255,255,.22);
        }
        .footer-action-wa { background: linear-gradient(135deg, #16a34a, #059669); color: white; }
        .footer-action-map { background: linear-gradient(135deg, #0f172a, #334155); color: #e2e8f0; }
        .footer-3d::before {
            content: '';
            position: absolute;
            width: 120px;
            height: 120px;
            right: -45px;
            top: -70px;
            border-radius: 9999px;
            background: radial-gradient(circle, rgba(34,211,238,.2), transparent 68%);
        }
        @media (max-width: 360px) {
            .footer-actions-3d { grid-template-columns: 1fr; }
        }

    
        /* Tema seragam mengikuti header: satu panel, tanpa kotak-kotak terpisah */
        body.gradient-bg {
            background: linear-gradient(145deg, #07111f 0%, #0f172a 46%, #172554 100%) !important;
        }
        .main-shell-3d::before {
            background: radial-gradient(circle, rgba(34,211,238,.14), transparent 68%) !important;
        }
        .header-hero-3d,
        .section-card-3d,
        .footer-3d {
            background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(30,41,59,.92)) !important;
            border-color: rgba(148,163,184,.16) !important;
        }
        .hero-year-pill {
            background: linear-gradient(135deg, #0e7490, #2563eb) !important;
            box-shadow: 0 14px 30px rgba(37,99,235,.22), inset 0 1px 0 rgba(255,255,255,.18) !important;
        }
        .hero-subtitle-3d { color: #67e8f9 !important; }

        /* Satu panel menu menyatu */
        .main-shell-3d > .space-y-4 {
            overflow: hidden;
            border-radius: 1.55rem;
            border: 1px solid rgba(148,163,184,.14);
            background: linear-gradient(145deg, rgba(15,23,42,.94), rgba(30,41,59,.90));
            box-shadow: 0 24px 52px rgba(2,6,23,.35), inset 0 1px 0 rgba(255,255,255,.06);
        }
        .main-shell-3d > .space-y-4 > .menu-card-3d {
            margin: 0 !important;
        }
        .menu-card-3d {
            border: 0 !important;
            border-radius: 0 !important;
            background: transparent !important;
            box-shadow: none !important;
            color: #e2e8f0 !important;
            transform: none !important;
            padding: 1rem 1.05rem !important;
        }
        .menu-card-3d:not(:last-child) {
            border-bottom: 1px solid rgba(148,163,184,.13) !important;
        }
        .menu-card-3d::after { display: none !important; }
        .menu-card-3d:hover {
            background: rgba(34,211,238,.07) !important;
            transform: none !important;
            box-shadow: inset 4px 0 0 #22d3ee !important;
        }
        .menu-card-3d h3 { color: #f8fafc !important; }
        .menu-card-3d p { color: #94a3b8 !important; }
        .menu-card-3d .fa-chevron-right,
        .menu-arrow-3d {
            color: #67e8f9 !important;
            background: transparent !important;
            border: 0 !important;
            box-shadow: none !important;
        }
        .menu-icon-3d {
            background: rgba(34,211,238,.10) !important;
            color: #67e8f9 !important;
            border: 0 !important;
            box-shadow: none !important;
            border-radius: .85rem !important;
        }
        .menu-icon-3d i { color: #67e8f9 !important; }
        .pulse-animation {
            background: rgba(34,211,238,.14) !important;
            color: #a5f3fc !important;
            border: 1px solid rgba(34,211,238,.22) !important;
        }

        /* Kontak dan lokasi menjadi satu area, bukan dua kotak */
        .section-card-3d {
            padding: 1.15rem !important;
            border-radius: 1.35rem !important;
        }
        .contact-links-unified {
            display: grid;
            gap: .9rem;
        }
        .contact-link-row {
            display: flex;
            align-items: flex-start;
            gap: .85rem;
            color: #e2e8f0;
            text-decoration: none;
            padding: .15rem 0;
        }
        .contact-link-row + .contact-link-row {
            padding-top: .9rem;
            border-top: 1px solid rgba(148,163,184,.13);
        }
        .contact-link-row:hover .contact-link-title {
            color: #67e8f9;
            text-decoration: underline;
        }
        .contact-link-icon {
            width: 2.5rem;
            height: 2.5rem;
            flex: 0 0 2.5rem;
            display: grid;
            place-items: center;
            color: #67e8f9;
            background: rgba(34,211,238,.10);
            border-radius: .8rem;
        }
        .contact-link-title {
            color: #f8fafc;
            font-weight: 800;
            line-height: 1.25;
        }
        .contact-link-copy {
            margin-top: .2rem;
            color: #94a3b8;
            font-size: .78rem;
            line-height: 1.45;
        }
        .footer-actions-3d { display: none !important; }
        .footer-3d {
            border-radius: 1.2rem !important;
            box-shadow: 0 18px 38px rgba(2,6,23,.25), inset 0 1px 0 rgba(255,255,255,.05) !important;
        }

    
        /* Biaya Pendidikan - 3D Elegant */
        .fee-choice-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
        }
        .fee-choice-card {
            position: relative;
            overflow: hidden;
            padding: 18px;
            border-radius: 22px;
            border: 1px solid rgba(148,163,184,.24);
            background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(241,245,249,.96));
            box-shadow: 0 20px 38px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.95);
            transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
        }
        .fee-choice-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 36%, transparent 72%, rgba(245,158,11,.08));
            pointer-events: none;
        }
        .fee-choice-card:hover {
            transform: translateY(-4px) translateZ(16px);
            box-shadow: 0 26px 44px rgba(15,23,42,.18), 0 10px 20px rgba(217,119,6,.14);
            border-color: rgba(217,119,6,.28);
        }
        .fee-choice-icon {
            width: 56px;
            height: 56px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 18px;
            color: #78350f;
            background: linear-gradient(145deg, #fef3c7, #fbbf24);
            box-shadow: 0 15px 25px rgba(217,119,6,.18), inset 0 1px 0 rgba(255,255,255,.75);
            margin-bottom: 12px;
            font-size: 24px;
        }
        .fee-choice-card h4 {
            margin: 0;
            color: #0f172a;
            font-size: 1rem;
            font-weight: 800;
        }
        .fee-choice-card p {
            margin: 6px 0 14px;
            color: #475569;
            font-size: .87rem;
            line-height: 1.5;
        }
        .fee-choice-meta {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-top: 10px;
        }
        .fee-total-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(217,119,6,.10);
            color: #92400e;
            font-size: .78rem;
            font-weight: 800;
        }
        .fee-detail-board {
            display: grid;
            gap: 16px;
        }
        .fee-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding: 14px 16px;
            border-radius: 18px;
            background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
            border: 1px solid rgba(148,163,184,.22);
            box-shadow: 0 16px 30px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.92);
        }
        .fee-back-button,
        .fee-action-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 14px;
            border-radius: 14px;
            border: none;
            cursor: pointer;
            font-weight: 700;
            font-size: .86rem;
            text-decoration: none;
            transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        }
        .fee-back-button {
            background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
            color: #334155;
            box-shadow: 0 10px 18px rgba(148,163,184,.22), inset 0 1px 0 rgba(255,255,255,.7);
        }
        .fee-action-button {
            background: linear-gradient(135deg, #92400e, #d97706);
            color: white;
            box-shadow: 0 12px 22px rgba(217,119,6,.22), inset 0 1px 0 rgba(255,255,255,.18);
        }
        .fee-back-button:hover,
        .fee-action-button:hover {
            transform: translateY(-2px);
            filter: brightness(1.02);
        }
        .fee-summary-card {
            position: relative;
            overflow: hidden;
            padding: 20px;
            border-radius: 22px;
            color: white;
            background:
                radial-gradient(circle at 12% 12%, rgba(255,255,255,.16), transparent 28%),
                radial-gradient(circle at 92% 88%, rgba(253,224,71,.18), transparent 28%),
                linear-gradient(135deg, #78350f, #b45309, #d97706);
            box-shadow: 0 22px 44px rgba(146,64,14,.24), inset 0 1px 0 rgba(255,255,255,.22);
        }
        .fee-summary-card::after {
            content: '';
            position: absolute;
            width: 160px;
            height: 160px;
            right: -44px;
            top: -60px;
            border: 18px solid rgba(255,255,255,.08);
            border-radius: 50%;
        }
        .fee-summary-card h4 {
            position: relative;
            margin: 0 0 6px;
            font-size: 1.08rem;
            font-weight: 900;
        }
        .fee-summary-card p {
            position: relative;
            margin: 0;
            font-size: .87rem;
            color: rgba(255,255,255,.88);
            line-height: 1.5;
        }
        .fee-summary-total {
            position: relative;
            display: inline-flex;
            margin-top: 14px;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,.16);
            color: white;
            font-size: .95rem;
            font-weight: 900;
            letter-spacing: .02em;
            box-shadow: inset 0 1px 0 rgba(255,255,255,.22);
        }
        .fee-table-card {
            overflow: hidden;
            border-radius: 22px;
            border: 1px solid rgba(148,163,184,.20);
            background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(248,250,252,.96));
            box-shadow: 0 20px 38px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.92);
        }
        .fee-table-wrap {
            overflow-x: auto;
        }
        .fee-table {
            width: 100%;
            min-width: 640px;
            border-collapse: collapse;
            color: #0f172a;
        }
        .fee-table thead th {
            padding: 14px 12px;
            font-size: .82rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .04em;
            text-align: left;
            color: #fff;
            background: linear-gradient(135deg, #92400e, #d97706);
            border-bottom: 1px solid rgba(255,255,255,.12);
        }
        .fee-table tbody td {
            padding: 13px 12px;
            vertical-align: top;
            border-bottom: 1px solid rgba(226,232,240,.92);
            font-size: .89rem;
            line-height: 1.5;
        }
        .fee-table tbody tr:nth-child(even) td {
            background: rgba(248,250,252,.66);
        }
        .fee-table tfoot td {
            padding: 14px 12px;
            font-size: .92rem;
            font-weight: 900;
            color: #7c2d12;
            background: rgba(254,243,199,.72);
            border-top: 2px solid rgba(217,119,6,.24);
        }
        .fee-col-price {
            text-align: right;
            white-space: nowrap;
            font-weight: 800;
            color: #7c2d12;
        }
        .fee-notes-card {
            padding: 16px 18px;
            border-radius: 18px;
            background: linear-gradient(145deg, rgba(254,249,195,.70), rgba(255,255,255,.95));
            border: 1px solid rgba(234,179,8,.26);
            color: #713f12;
            box-shadow: 0 16px 28px rgba(234,179,8,.10), inset 0 1px 0 rgba(255,255,255,.88);
        }
        .fee-program-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }
        .fee-program-card {
            padding: 16px;
            border-radius: 18px;
            background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
            border: 1px solid rgba(148,163,184,.22);
            box-shadow: 0 16px 28px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.9);
        }
        .fee-program-card h5 {
            margin: 0 0 8px;
            color: #0f172a;
            font-size: .94rem;
            font-weight: 800;
        }
        .fee-program-card .value {
            font-size: 1.15rem;
            font-weight: 900;
            color: #92400e;
        }
        .fee-program-card .sub {
            margin-top: 6px;
            color: #64748b;
            font-size: .82rem;
            line-height: 1.45;
        }
        @media (max-width: 640px) {
            .fee-choice-grid,
            .fee-program-grid {
                grid-template-columns: 1fr;
            }
            .fee-topbar {
                align-items: stretch;
            }
            .fee-topbar .actions {
                width: 100%;
                display: grid;
                grid-template-columns: 1fr;
                gap: 10px;
            }
            .fee-back-button,
            .fee-action-button {
                width: 100%;
            }
        }

    
        /* Penyempurnaan Produksi PSB 2027/2028 */
        .asset-fallback {
            display:none;
            min-height:220px;
            align-items:center;
            justify-content:center;
            flex-direction:column;
            gap:10px;
            padding:24px;
            border-radius:16px;
            color:#475569;
            background:linear-gradient(145deg,#f8fafc,#e2e8f0);
            text-align:center;
        }
        .asset-fallback i { font-size:2rem; color:#64748b; }
        .modal-loading {
            display:flex;
            align-items:center;
            justify-content:center;
            gap:10px;
            min-height:150px;
            color:#475569;
            font-weight:700;
        }
        .modal-loading::before {
            content:'';
            width:22px;
            height:22px;
            border:3px solid #cbd5e1;
            border-top-color:#0ea5e9;
            border-radius:50%;
            animation:psbSpin .75s linear infinite;
        }
        @keyframes psbSpin { to { transform:rotate(360deg); } }
        .fee-mobile-list { display:none; }
        .fee-mobile-card {
            padding:16px;
            border-radius:18px;
            border:1px solid rgba(148,163,184,.22);
            background:linear-gradient(145deg,#fff,#f8fafc);
            box-shadow:0 14px 28px rgba(15,23,42,.09), inset 0 1px 0 #fff;
        }
        .fee-mobile-card + .fee-mobile-card { margin-top:12px; }
        .fee-mobile-title { color:#0f172a; font-weight:850; font-size:.92rem; }
        .fee-mobile-detail { margin-top:5px; color:#64748b; font-size:.78rem; line-height:1.5; }
        .fee-mobile-prices { display:grid; gap:8px; margin-top:12px; }
        .fee-mobile-price {
            display:flex;
            justify-content:space-between;
            gap:12px;
            padding:10px 12px;
            border-radius:12px;
            background:#fffbeb;
            color:#78350f;
            font-size:.78rem;
        }
        .fee-mobile-price strong { white-space:nowrap; }
        .brochure-target-grid {
            display:grid;
            grid-template-columns:repeat(3,minmax(0,1fr));
            gap:12px;
            margin-top:14px;
        }
        .brochure-target-card {
            padding:15px;
            border:1px solid #e2e8f0;
            border-radius:17px;
            background:linear-gradient(145deg,#fff,#f8fafc);
            box-shadow:0 12px 23px rgba(15,23,42,.08), inset 0 1px 0 #fff;
        }
        .brochure-target-card h5 { margin:0;color:#0f172a;font-size:.8rem;font-weight:900; }
        .brochure-target-card p { margin:6px 0 0;color:#64748b;font-size:.68rem;line-height:1.5; }
        @media (max-width:680px) {
            .fee-table-card { display:none; }
            .fee-mobile-list { display:block; }
            .brochure-target-grid { grid-template-columns:1fr; }
        }
        @media print {
            body > * { display:none !important; }
        }


        /* Kegiatan Santri - horizontal swipe frames */
        .activity-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
        .activity-nav{display:flex;gap:8px}.activity-nav button{width:40px;height:40px;border-radius:12px;border:1px solid #cbd5e1;background:#fff;color:#0f172a;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.08)}
        .activity-slider{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding:4px 4px 14px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
        .activity-frame{flex:0 0 min(82vw,460px);scroll-snap-align:start;border-radius:22px;background:linear-gradient(145deg,#fff,#f8fafc);border:1px solid #e2e8f0;box-shadow:0 18px 38px rgba(15,23,42,.11);overflow:hidden}
        .activity-frame-head{padding:14px 15px 10px}.activity-frame-head h4{margin:0;color:#0f172a;font-size:.92rem}.activity-frame-head p{margin:5px 0 0;color:#64748b;font-size:.72rem;line-height:1.45}
        .activity-platform{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:999px;background:#ecfeff;color:#155e75;font-size:.62rem;font-weight:900;margin-bottom:8px}
        .activity-embed{min-height:300px;background:#0f172a;display:grid;place-items:center;overflow:hidden}.activity-embed iframe{width:100%;height:420px;border:0;border-radius:0!important}
        .activity-embed .instagram-media{min-width:0!important;width:100%!important;margin:0!important}.activity-embed .tiktok-embed{min-width:0!important;width:100%!important;margin:0!important}
        .activity-fallback{padding:22px;color:#e2e8f0;text-align:center}.activity-fallback a{display:inline-flex;margin-top:10px;padding:10px 13px;border-radius:11px;background:#0891b2;color:#fff;text-decoration:none;font-weight:800}
        @media(min-width:800px){.activity-frame{flex-basis:48%}}


        /* Kegiatan Santri tampil penuh pada HP maupun desktop */
        #modal-panel.activity-fullscreen-panel{
            width:100vw !important;
            max-width:100vw !important;
            height:100dvh !important;
            max-height:100dvh !important;
            border-radius:0 !important;
            margin:0 !important;
        }
        #modal-panel.activity-fullscreen-panel .modal-heading-sticky{
            border-radius:0 !important;
        }
        #modal-panel.activity-fullscreen-panel .modal-content-scroll{
            padding:clamp(10px,2vw,22px) !important;
        }
        #modal-panel.activity-fullscreen-panel .activity-slider{
            min-height:calc(100dvh - 150px);
            align-items:stretch;
        }
        #modal-panel.activity-fullscreen-panel .activity-frame{
            flex:0 0 calc(100vw - clamp(20px,4vw,56px));
            min-height:calc(100dvh - 170px);
            display:flex;
            flex-direction:column;
        }
        #modal-panel.activity-fullscreen-panel .activity-embed{
            flex:1 1 auto;
            min-height:calc(100dvh - 265px);
        }
        #modal-panel.activity-fullscreen-panel .activity-embed iframe{
            height:calc(100dvh - 265px);
            min-height:440px;
        }
        @media(max-width:720px){
            #modal-panel.activity-fullscreen-panel .activity-frame{
                flex-basis:calc(100vw - 20px);
                min-height:calc(100dvh - 138px);
                border-radius:16px;
            }
            #modal-panel.activity-fullscreen-panel .activity-frame-head{
                padding:11px 12px 8px;
            }
            #modal-panel.activity-fullscreen-panel .activity-embed,
            #modal-panel.activity-fullscreen-panel .activity-embed iframe{
                min-height:calc(100dvh - 220px);
                height:calc(100dvh - 220px);
            }
            #modal-panel.activity-fullscreen-panel .activity-toolbar{
                margin-bottom:8px;
            }
        }


        /* Kegiatan Santri: fullscreen tanpa header/judul aplikasi */
        #modal-panel.activity-fullscreen-panel{
            width:100vw !important;
            max-width:100vw !important;
            height:100dvh !important;
            max-height:100dvh !important;
            border-radius:0 !important;
            margin:0 !important;
        }
        #modal-panel.activity-fullscreen-panel .modal-heading-sticky{
            display:none !important;
        }
        #modal-panel.activity-fullscreen-panel .modal-content-scroll{
            padding:0 !important;
            height:100dvh !important;
            max-height:100dvh !important;
            overflow:hidden !important;
        }
        #modal-panel.activity-fullscreen-panel #modal-content,
        #modal-panel.activity-fullscreen-panel #activities-root{
            height:100dvh !important;
            min-height:100dvh !important;
        }
        #modal-panel.activity-fullscreen-panel .activity-slider{
            display:flex;
            gap:0 !important;
            width:100vw;
            height:100dvh !important;
            min-height:100dvh !important;
            padding:0 !important;
            overflow-x:auto !important;
            overflow-y:hidden !important;
            scroll-snap-type:x mandatory;
            scrollbar-width:none;
        }
        #modal-panel.activity-fullscreen-panel .activity-slider::-webkit-scrollbar{display:none}
        #modal-panel.activity-fullscreen-panel .activity-frame{
            flex:0 0 100vw !important;
            width:100vw !important;
            height:100dvh !important;
            min-height:100dvh !important;
            border-radius:0 !important;
            border:0 !important;
            box-shadow:none !important;
            background:#000 !important;
            scroll-snap-align:start;
        }
        #modal-panel.activity-fullscreen-panel .activity-frame-head{display:none !important}
        #modal-panel.activity-fullscreen-panel .activity-embed{
            width:100vw !important;
            height:100dvh !important;
            min-height:100dvh !important;
            background:#000 !important;
        }
        #modal-panel.activity-fullscreen-panel .activity-embed iframe{
            width:100vw !important;
            height:100dvh !important;
            min-height:100dvh !important;
            border:0 !important;
        }
        #modal-panel.activity-fullscreen-panel .instagram-media,
        #modal-panel.activity-fullscreen-panel .tiktok-embed{
            width:100vw !important;
            max-width:100vw !important;
            min-width:0 !important;
            min-height:100dvh !important;
            margin:0 auto !important;
        }
        #modal-panel.activity-fullscreen-panel .activity-fallback{
            width:100vw;
            height:100dvh;
            display:grid;
            place-items:center;
            padding:20px;
        }


        #modal-panel.activity-fullscreen-panel .activity-screen-controls{
            position:fixed;
            top:max(12px, env(safe-area-inset-top));
            right:max(12px, env(safe-area-inset-right));
            z-index:99999;
            display:flex;
            gap:8px;
            align-items:center;
        }
        #modal-panel.activity-fullscreen-panel .activity-control-btn{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            gap:7px;
            min-width:44px;
            height:44px;
            padding:0 13px;
            border:1px solid rgba(255,255,255,.28);
            border-radius:14px;
            background:rgba(15,23,42,.78);
            color:#fff;
            text-decoration:none;
            font-size:.76rem;
            font-weight:900;
            box-shadow:0 10px 26px rgba(0,0,0,.28);
            backdrop-filter:blur(10px);
            -webkit-backdrop-filter:blur(10px);
            cursor:pointer;
        }
        #modal-panel.activity-fullscreen-panel .activity-control-btn.close-btn{
            width:44px;
            padding:0;
            border-radius:50%;
            font-size:1.15rem;
        }
        #modal-panel.activity-fullscreen-panel .activity-control-btn:hover{
            background:rgba(15,23,42,.92);
            transform:translateY(-1px);
        }
        @media(max-width:560px){
            #modal-panel.activity-fullscreen-panel .activity-screen-controls{
                top:max(9px, env(safe-area-inset-top));
                right:max(9px, env(safe-area-inset-right));
                gap:6px;
            }
            #modal-panel.activity-fullscreen-panel .activity-control-btn{
                height:40px;
                min-width:40px;
                padding:0 10px;
                border-radius:12px;
                font-size:.69rem;
            }
            #modal-panel.activity-fullscreen-panel .activity-control-btn.close-btn{
                width:40px;
                padding:0;
            }
        }

    
/* ===== PSB v4.7.2 PUBLIC THEMES ===== */
body.theme-modern_dark{--psb-accent:#22d3ee;--psb-accent2:#6366f1}
body.theme-emerald_glass{background:linear-gradient(145deg,#052e2b 0%,#065f46 45%,#0f766e 100%)!important}
body.theme-emerald_glass::before{background:radial-gradient(circle at 15% 20%,rgba(52,211,153,.28),transparent 38%),radial-gradient(circle at 90% 78%,rgba(250,204,21,.16),transparent 34%)!important}
body.theme-emerald_glass .header-hero-3d{background:linear-gradient(145deg,rgba(6,78,59,.96),rgba(15,118,110,.9))!important}
body.theme-emerald_glass .menu-card-3d{background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(236,253,245,.95))!important;border-color:rgba(167,243,208,.45)!important}
body.theme-emerald_glass .section-card-3d,body.theme-emerald_glass .footer-3d{background:linear-gradient(145deg,rgba(6,78,59,.88),rgba(15,118,110,.74))!important;border-color:rgba(167,243,208,.22)!important}
body.theme-light_elegant{background:linear-gradient(145deg,#f8fafc,#eefbf5 48%,#fff7ed)!important;color:#17202a}
body.theme-light_elegant::before{background:radial-gradient(circle at 12% 18%,rgba(16,185,129,.12),transparent 36%),radial-gradient(circle at 88% 80%,rgba(245,158,11,.11),transparent 34%)!important}
body.theme-light_elegant .header-hero-3d{background:linear-gradient(145deg,#ffffff,#f0fdf4)!important;border:1px solid #dce8e3!important;box-shadow:0 20px 50px rgba(15,23,42,.1)!important}
body.theme-light_elegant .hero-title-3d,body.theme-light_elegant .hero-subtitle-3d,body.theme-light_elegant .hero-meta-3d{color:#064e3b!important;text-shadow:none!important}
body.theme-light_elegant .hero-chip-3d{background:#ecfdf5!important;color:#047857!important;border-color:#a7f3d0!important}
body.theme-light_elegant .menu-card-3d{background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:0 12px 26px rgba(15,23,42,.07)!important}
body.theme-light_elegant .section-card-3d{background:#fff!important;border:1px solid #e2e8f0!important;box-shadow:0 12px 26px rgba(15,23,42,.07)!important}
body.theme-light_elegant .section-title-3d{color:#064e3b!important}
body.theme-light_elegant .contact-link-row{color:#334155!important}
body.theme-light_elegant .contact-link-copy{color:#64748b!important}
body.theme-light_elegant .footer-3d{background:linear-gradient(145deg,#064e3b,#0f766e)!important;color:#fff!important}


/* ===== PSB v4.7.3 THEME CONTRAST HARDENING ===== */
body.theme-modern_dark .menu-card-3d h3,
body.theme-modern_dark .menu-card-3d .font-semibold{color:#e6fbff!important}
body.theme-modern_dark .menu-card-3d p,
body.theme-modern_dark .menu-card-3d .text-gray-500{color:#b9d4df!important}
body.theme-modern_dark .menu-chevron-3d,
body.theme-modern_dark .menu-chevron-3d i{color:#67e8f9!important}
body.theme-modern_dark .modal-panel-3d{color:#0f172a!important}
body.theme-modern_dark .modal-panel-3d h1,
body.theme-modern_dark .modal-panel-3d h2,
body.theme-modern_dark .modal-panel-3d h3,
body.theme-modern_dark .modal-panel-3d h4{color:#0f513f!important}
body.theme-emerald_glass .menu-card-3d h3,
body.theme-emerald_glass .menu-card-3d .font-semibold{color:#064e3b!important}
body.theme-emerald_glass .menu-card-3d p,
body.theme-emerald_glass .menu-card-3d .text-gray-500{color:#49645b!important}
body.theme-emerald_glass .menu-chevron-3d,
body.theme-emerald_glass .menu-chevron-3d i{color:#047857!important}
body.theme-emerald_glass .hero-chip-3d{color:#d1fae5!important}
body.theme-emerald_glass .hero-title-3d,
body.theme-emerald_glass .hero-subtitle-3d,
body.theme-emerald_glass .hero-meta-3d{color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.26)!important}
body.theme-emerald_glass .contact-link-title{color:#ecfdf5!important}
body.theme-emerald_glass .contact-link-copy{color:#d1fae5!important}
body.theme-light_elegant,
body.theme-light_elegant .main-shell-3d{color:#1f2937!important}
body.theme-light_elegant .menu-card-3d h3,
body.theme-light_elegant .menu-card-3d .font-semibold{color:#065f46!important}
body.theme-light_elegant .menu-card-3d p,
body.theme-light_elegant .menu-card-3d .text-gray-500{color:#475569!important}
body.theme-light_elegant .menu-chevron-3d,
body.theme-light_elegant .menu-chevron-3d i{color:#047857!important}
body.theme-light_elegant .hero-year-pill{background:#064e3b!important;color:#fff!important;border-color:#047857!important}
body.theme-light_elegant .contact-link-title{color:#065f46!important}
body.theme-light_elegant .contact-link-copy{color:#475569!important}
body.theme-light_elegant .contact-link-icon{color:#047857!important;background:#ecfdf5!important}
body.theme-light_elegant .modal-panel-3d{background:#fff!important;color:#1f2937!important}
body.theme-light_elegant .modal-panel-3d h1,
body.theme-light_elegant .modal-panel-3d h2,
body.theme-light_elegant .modal-panel-3d h3,
body.theme-light_elegant .modal-panel-3d h4{color:#065f46!important}
body.theme-light_elegant .modal-panel-3d p,
body.theme-light_elegant .modal-panel-3d li,
body.theme-light_elegant .modal-panel-3d span{color:#475569}
body.theme-light_elegant input,
body.theme-light_elegant select,
body.theme-light_elegant textarea{color:#111827!important;background:#fff!important}


        /* PSB v4.7.7 official social profiles */
        .public-social-links{margin-top:.9rem;padding-top:.85rem;border-top:1px solid rgba(255,255,255,.12)}
        .public-social-title{font-size:.72rem;font-weight:900;color:#e2e8f0;margin-bottom:.55rem;text-align:center}
        .public-social-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:.45rem}
        .public-social-grid a{display:inline-flex;align-items:center;gap:.38rem;padding:.55rem .72rem;border-radius:.75rem;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#fff;text-decoration:none;font-size:.68rem;font-weight:800}
        .public-social-grid a:hover{background:rgba(255,255,255,.16);transform:translateY(-1px)}

/* ===== PSB v4.8.1 MULTI DISPLAY MODE — SINGLE DOM, NO DUPLICATE MODULES ===== */
body{--school-green:#064e3b;--school-green-2:#0f766e;--school-orange:#f97316;--school-ink:#0f172a;--school-muted:#64748b;--school-paper:#ffffff}

/* LINKTREE: retains compact social-bio layout */
body.display-linktree .main-shell-3d{max-width:448px!important}

/* PSB LANDING: wider information page, same links/data */
body.display-psb_landing .main-shell-3d{max-width:880px!important;padding-left:22px!important;padding-right:22px!important}
body.display-psb_landing .header-hero-3d{max-width:720px;margin-left:auto;margin-right:auto}
body.display-psb_landing .public-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}
body.display-psb_landing .public-menu-grid>a{margin:0!important;height:100%}
body.display-psb_landing .section-card-3d,body.display-psb_landing .footer-3d{max-width:100%}

/* SCHOOL WEB 3D: desktop school website composition using existing DOM/content */
body.display-school_web_3d{background:
 radial-gradient(circle at 7% 5%,rgba(249,115,22,.13),transparent 25%),
 radial-gradient(circle at 92% 14%,rgba(16,185,129,.15),transparent 28%),
 linear-gradient(145deg,#eef8f3 0%,#f8fafc 44%,#fff7ed 100%)!important;color:var(--school-ink)}
body.display-school_web_3d::before{opacity:.55!important}
body.display-school_web_3d .main-shell-3d{max-width:1180px!important;padding:28px 28px 42px!important}
body.display-school_web_3d .header-hero-3d{
 min-height:300px;display:grid!important;grid-template-columns:130px minmax(0,1fr);grid-template-rows:auto auto auto auto;
 column-gap:28px;align-content:center;text-align:left!important;padding:42px 48px!important;border-radius:30px!important;
 position:relative;overflow:hidden;transform:translateZ(0);
 box-shadow:0 30px 70px rgba(6,78,59,.20),inset 0 1px 0 rgba(255,255,255,.45)!important
}
body.display-school_web_3d .header-hero-3d:after{content:"";position:absolute;right:-70px;bottom:-90px;width:300px;height:300px;border-radius:50%;background:rgba(249,115,22,.10);pointer-events:none}
body.display-school_web_3d .hero-chip-3d{grid-column:2;justify-self:start!important;margin:0 0 10px!important}
body.display-school_web_3d .logo-shell-3d{grid-column:1;grid-row:1/5;width:118px!important;height:118px!important;margin:0!important;align-self:center;justify-self:center;background:#fff!important;border-radius:26px!important;box-shadow:0 16px 30px rgba(15,23,42,.14)!important;padding:13px!important}
body.display-school_web_3d .hero-title-3d{grid-column:2;margin:0!important;font-size:clamp(1.6rem,3.2vw,3rem)!important;line-height:1.08!important;text-align:left!important}
body.display-school_web_3d .hero-subtitle-3d{grid-column:2;font-size:clamp(1rem,1.8vw,1.35rem)!important;text-align:left!important;margin-top:8px}
body.display-school_web_3d .hero-meta-3d{grid-column:2;text-align:left!important;margin-top:5px}
body.display-school_web_3d .hero-year-pill{grid-column:2;justify-self:start;margin-top:13px!important}
body.display-school_web_3d .public-menu-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px!important;margin-top:26px}
body.display-school_web_3d .public-menu-grid>a{margin:0!important;height:100%;min-height:138px;border-radius:21px!important;padding:20px!important;position:relative;overflow:hidden;transform:translateZ(0);transition:transform .2s ease,box-shadow .2s ease}
body.display-school_web_3d .public-menu-grid>a:hover{transform:translateY(-5px) rotateX(1deg);box-shadow:0 24px 42px rgba(15,23,42,.14)!important}
body.display-school_web_3d .public-menu-grid>a>.flex{align-items:flex-start!important;height:100%}
body.display-school_web_3d .menu-icon-3d{width:54px!important;height:54px!important;flex:0 0 54px}
body.display-school_web_3d .menu-card-3d h3{font-size:.92rem!important;line-height:1.3}
body.display-school_web_3d .menu-card-3d p{font-size:.72rem!important;line-height:1.5;margin-top:5px}
body.display-school_web_3d .section-card-3d{margin-top:24px!important;border-radius:24px!important;padding:24px!important}
body.display-school_web_3d .contact-links-unified{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.display-school_web_3d .contact-link-row{border-radius:16px!important}
body.display-school_web_3d .public-social-grid a{min-width:110px;justify-content:center}
body.display-school_web_3d .footer-3d{border-radius:22px!important;margin-top:18px!important}

/* SCHOOL ELEGANT 3D PALETTE — explicit contrast */
body.theme-school_elegant{background:
linear-gradient(90deg,#064e3b 0 8px,transparent 8px 100%),
radial-gradient(circle at 92% 5%,rgba(249,115,22,.22),transparent 24%),
linear-gradient(145deg,#eef8f3,#f8fafc 46%,#fff7ed)!important;color:#0f172a!important}
body.theme-school_elegant .main-shell-3d:before{content:"SCHOOL ELEGANT";display:block;width:max-content;margin:0 auto 12px;padding:5px 10px;border-radius:999px;background:#fff7ed;border:1px solid #fdba74;color:#9a3412;font-size:.55rem;font-weight:900;letter-spacing:.08em;box-shadow:0 8px 18px rgba(154,52,18,.08)}
body.theme-school_elegant .header-hero-3d{background:linear-gradient(135deg,#043b2d 0%,#065f46 54%,#0f766e 100%)!important;border:1px solid rgba(255,255,255,.16)!important;color:#fff!important}
body.theme-school_elegant .hero-title-3d,body.theme-school_elegant .hero-subtitle-3d,body.theme-school_elegant .hero-meta-3d{color:#fff!important;text-shadow:0 3px 16px rgba(0,0,0,.28)!important}
body.theme-school_elegant .hero-chip-3d{background:rgba(255,255,255,.14)!important;color:#fff!important;border-color:rgba(255,255,255,.24)!important}
body.theme-school_elegant .hero-year-pill{background:#fff!important;color:#064e3b!important;border-color:#fff!important;font-weight:900!important}
body.theme-school_elegant .menu-card-3d{background:linear-gradient(145deg,#fff,#f8fffb)!important;border:1px solid #d7e8df!important;box-shadow:0 14px 30px rgba(15,23,42,.08)!important;color:#0f172a!important}
body.theme-school_elegant .menu-card-3d h3,body.theme-school_elegant .menu-card-3d .font-semibold{color:#064e3b!important}
body.theme-school_elegant .menu-card-3d p,body.theme-school_elegant .menu-card-3d .text-gray-500{color:#475569!important}
body.theme-school_elegant .menu-chevron-3d,body.theme-school_elegant .menu-chevron-3d i{color:#ea580c!important}
body.theme-school_elegant .section-card-3d{background:rgba(255,255,255,.95)!important;border:1px solid #d7e8df!important;box-shadow:0 14px 30px rgba(15,23,42,.08)!important;color:#0f172a!important}
body.theme-school_elegant .section-title-3d,body.theme-school_elegant .contact-link-title{color:#064e3b!important}
body.theme-school_elegant .contact-link-copy{color:#475569!important}
body.theme-school_elegant .contact-link-row{color:#0f172a!important;background:#f8fafc!important;border-color:#e2e8f0!important}
body.theme-school_elegant .contact-link-icon{background:#ecfdf5!important;color:#047857!important}
body.theme-school_elegant .public-social-title{color:#064e3b!important}
body.theme-school_elegant .public-social-grid a{background:#064e3b!important;color:#fff!important;border-color:#0f766e!important}
body.theme-school_elegant .footer-3d{background:linear-gradient(135deg,#043b2d,#065f46)!important;color:#fff!important;border-color:#0f766e!important}
body.theme-school_elegant .modal-panel-3d{background:#fff!important;color:#17202a!important}
body.theme-school_elegant .modal-panel-3d h1,body.theme-school_elegant .modal-panel-3d h2,body.theme-school_elegant .modal-panel-3d h3,body.theme-school_elegant .modal-panel-3d h4{color:#064e3b!important}
body.theme-school_elegant .modal-panel-3d p,body.theme-school_elegant .modal-panel-3d li,body.theme-school_elegant .modal-panel-3d td{color:#334155!important}

/* Responsive: every mode returns to readable mobile card stack */
@media(max-width:900px){
 body.display-school_web_3d .main-shell-3d{padding:18px 16px 30px!important}
 body.display-school_web_3d .header-hero-3d{grid-template-columns:90px minmax(0,1fr);column-gap:18px;padding:28px 24px!important;min-height:240px}
 body.display-school_web_3d .logo-shell-3d{width:82px!important;height:82px!important;border-radius:20px!important}
 body.display-school_web_3d .public-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 body.display-psb_landing .main-shell-3d,body.display-school_web_3d .main-shell-3d{padding-left:14px!important;padding-right:14px!important}
 body.display-psb_landing .public-menu-grid,body.display-school_web_3d .public-menu-grid{grid-template-columns:1fr!important;gap:12px!important}
 body.display-school_web_3d .header-hero-3d{display:flex!important;flex-direction:column;align-items:center;text-align:center!important;padding:25px 18px!important}
 body.display-school_web_3d .hero-chip-3d{align-self:center;margin-bottom:10px!important}
 body.display-school_web_3d .logo-shell-3d{margin:3px auto 14px!important}
 body.display-school_web_3d .hero-title-3d,body.display-school_web_3d .hero-subtitle-3d,body.display-school_web_3d .hero-meta-3d{text-align:center!important}
 body.display-school_web_3d .hero-year-pill{align-self:center}
 body.display-school_web_3d .public-menu-grid>a{min-height:0}
 body.display-school_web_3d .contact-links-unified{grid-template-columns:1fr}
}

/* PSB v4.8.2.5 — Mobile GPU/paint optimization */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .gradient-bg{background-attachment:scroll!important;animation:none!important;background-size:100% 100%!important}
  .gradient-bg::before{animation:none!important;transform:none!important}
  .card-hover,.modal-backdrop-3d,.modal-heading-sticky,.psb-chat-panel{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .card-hover{transition:transform .18s ease,box-shadow .18s ease!important}
  .card-hover:hover{transform:none!important}
  .pulse-animation{animation:none!important}
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
