
        /* Only style our new elements, don't touch existing styles */
        .fee-table-wrapper {
            font-family: 'Inter', sans-serif;
            position: relative;
            -webkit-tap-highlight-color: transparent;
        }
        
        .fee-table-wrapper * {
            box-sizing: border-box;
        }
        
        .fee-background {
            position: relative;
        }
        
        .fee-background::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /*background: */
            /*    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),*/
            /*    radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.3), transparent 50%);*/
            pointer-events: none;
            z-index: 0;
        }
        
        .fee-container {
            position: relative;
            z-index: 1;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 0 34px;
        }
        
        /* Gender segmented switcher — compact pill, quiet state */
        .fee-tab-switcher {
            display: flex;
            gap: 3px;
            width: max-content;
            max-width: calc(100% - 30px);
            padding: 4px;
            background: rgba(255, 255, 255, 0.7);
            margin: 0 15px 16px;
            border: 1px solid #dbe7de;
            border-radius: 999px;
            box-shadow: none;
        }
        
        .fee-tab-btn {
            flex: 1;
            min-height: 32px;
            padding: 6px 18px;
            border: none;
            border-radius: 999px;
            font-weight: 800;
            font-size: 0.72rem;
            letter-spacing: 0.05em;
            color: #5b7769;
            background: transparent;
            transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .fee-tab-btn i {
            font-size: 0.78em;
            opacity: 0.75;
        }
        
        .fee-tab-btn:hover {
            color: #0d7658;
            background: #edf6ed;
        }
        
        .fee-tab-btn.active {
            color: #0d7658;
            background: #ffffff;
            box-shadow: 0 2px 6px rgba(12, 52, 35, 0.10);
        }
        
        .fee-tab-btn.active i { opacity: 1; }
        
        /* Toolbar row: gender switcher left, print shortcut right */
        .fee-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin: 0 15px 16px;
        }
        .fee-toolbar .fee-tab-switcher {
            margin: 0;
        }
        .fee-print-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            min-height: 34px;
            padding: 7px 16px;
            border: 1px solid rgba(29, 24, 11, 0.12);
            border-radius: 999px;
            background: linear-gradient(110deg, #ad7827, #d0a348, #f8df99);
            color: #1d180b;
            font-size: 0.72rem;
            font-weight: 850;
            letter-spacing: 0.04em;
            text-decoration: none;
            white-space: nowrap;
            cursor: pointer;
            box-shadow: 0 6px 14px rgba(143, 97, 25, 0.22);
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }
        .fee-print-btn:hover {
            color: #1d180b;
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(143, 97, 25, 0.30);
            filter: brightness(1.03);
        }
        .fee-print-btn:active {
            transform: translateY(0);
        }
        .fee-print-btn i { font-size: 0.85em; }
        
        /* Content Section */
        .fee-content-section {
            padding: 0;
        }
        
        /* Card Item */
        .fee-card {
            background: white;
            margin: 10px 15px;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            animation: fadeInUp 0.5s ease-out;
            animation-fill-mode: both;
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fee-card:active {
            transform: scale(0.98);
        }
        
        .fee-category-header {
            background: linear-gradient(90deg, #f3f4f6 0%, #e5e7eb 100%);
            margin: 20px 15px 10px;
            padding: 15px 20px;
            border-radius: 15px;
            font-weight: 700;
            color: #1f2937;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .fee-number {
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.9rem;
            flex-shrink: 0;
        }
        
        .putri-view .fee-number {
            background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
        }
        
        .fee-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        
        .fee-item-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #1f2937;
            line-height: 1.4;
        }
        
        .fee-amount {
            font-size: 1.1rem;
            font-weight: 800;
            color: #667eea;
            font-family: 'Courier New', monospace;
        }
        
        .putri-view .fee-amount {
            color: #ec4899;
        }
        
        .fee-card.highlight {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b;
        }
        
        .fee-card.highlight .fee-number {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }
        
        .fee-card.highlight .fee-amount {
            color: #d97706;
        }
        
        /* Total Card */
        .fee-total-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 20px 15px;
            padding: 25px;
            border-radius: 20px;
            color: white;
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
            animation: fadeInUp 0.6s ease-out;
            animation-fill-mode: both;
        }
        
        .putri-view .fee-total-card {
            background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.4);
        }
        
        .fee-total-label {
            font-size: 0.9rem;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .fee-total-amount {
            font-size: 2.2rem;
            font-weight: 900;
            margin-bottom: 5px;
        }
        
        /* Summary Section */
        .fee-summary-section {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            padding: 15px;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            animation: slideUp 0.5s ease-out;
        }
        
        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(100%);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .fee-summary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .fee-summary-item {
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            padding: 12px;
            border-radius: 12px;
            text-align: center;
        }
        
        .fee-summary-item.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .putri-view .fee-summary-item.active {
            background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
        }
        
        .fee-summary-item-label {
            font-size: 0.7rem;
            opacity: 0.8;
            text-transform: uppercase;
            margin-bottom: 5px;
        }
        
        .fee-summary-item-amount {
            font-size: 1rem;
            font-weight: 800;
        }
        
        /* Note Section */
        .fee-note-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border-left: 4px solid #f59e0b;
            border-radius: 15px;
            padding: 15px;
            margin: 15px;
            color: #92400e;
            font-size: 0.85rem;
            line-height: 1.5;
            animation: fadeInUp 0.7s ease-out;
            animation-fill-mode: both;
        }
        
        .fee-note-section i {
            margin-right: 8px;
            color: #f59e0b;
        }

        .fee-empty-state {
            margin: 24px 0;
            padding: 28px;
            border: 1px dashed #b7d8ca;
            border-radius: 14px;
            background: #f2fbf6;
            color: #34584a;
            text-align: center;
        }
        .fee-empty-state i { color: #0d8a5c; font-size: 24px; display: block; margin-bottom: 8px; }
        .fee-empty-state p { margin: 6px 0 0; color: #60786e; font-size: 13px; }
        
        /* Hide/Show Views — Alpine x-show owns visibility; cloak avoids FOUC */
        .fee-table-wrapper [x-cloak] { display: none !important; }
        
        /* Desktop View */
        @media (min-width: 768px) {
            .fee-container {
                padding: 0 0 46px;
            }
            
            .fee-tab-switcher {
                margin: 0 0 16px 0;
            }
            .fee-toolbar { margin: 0 0 16px 0; }
            
            .fee-content-section {
                padding-bottom: 20px;
            }
            
            .fee-card {
                margin: 10px 0;
            }
            
            .fee-category-header {
                margin: 20px 0 10px;
            }
            
            .fee-total-card {
                margin: 20px 0;
            }
            
            .fee-note-section {
                margin: 15px 0;
            }
            
            .fee-content {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
            
            .fee-item-title {
                margin-bottom: 0;
            }
            
            .fee-summary-section {
                position: relative;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
                border-radius: 20px;
                margin: 0;
            }
        }
        
        /* Animation delays */
        .fee-card:nth-child(1) { animation-delay: 0.05s; }
        .fee-card:nth-child(2) { animation-delay: 0.1s; }
        .fee-card:nth-child(3) { animation-delay: 0.15s; }
        .fee-card:nth-child(4) { animation-delay: 0.2s; }
        .fee-card:nth-child(5) { animation-delay: 0.25s; }
        .fee-card:nth-child(6) { animation-delay: 0.3s; }
        .fee-card:nth-child(7) { animation-delay: 0.35s; }
        .fee-card:nth-child(8) { animation-delay: 0.4s; }
        .fee-card:nth-child(9) { animation-delay: 0.45s; }
        .fee-card:nth-child(10) { animation-delay: 0.5s; }

        /* Main tabs: Rincian Biaya | Kalkulator Biaya — flush on the card top, info style */
        .fee-main-tabs {
            display: flex;
            gap: 6px;
            padding: 0;
            background: transparent;
            margin: 0 15px 8px;
            border: none;
            border-radius: 0;
            box-shadow: none;
        }
        .fee-main-tab {
            flex: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 44px;
            padding: 9px 14px;
            border: none;
            border-radius: 12px 12px 0 0;
            font-weight: 800;
            font-size: 0.76rem;
            letter-spacing: 0.02em;
            color: #16352b;
            background: transparent;
            transition: background 0.2s ease, color 0.2s ease;
            cursor: pointer;
        }
        .fee-main-tab:hover {
            color: #0d7658;
            background: #edf6ed;
        }
        .fee-main-tab.active {
            color: #1d180b;
            font-weight: 850;
            background: linear-gradient(110deg, #ad7827, #d0a348, #f8df99);
            box-shadow: 0 8px 18px rgba(143, 97, 25, 0.20);
        }
        .fee-main-tab.active:hover {
            color: #1d180b;
            background: linear-gradient(110deg, #ad7827, #d0a348, #f8df99);
        }
        .fee-main-tab-ic {
            display: grid;
            place-items: center;
            width: 28px;
            height: 28px;
            flex: none;
            border: 1px solid #d9e7db;
            border-radius: 9px;
            color: #0d7658;
            background: #edf6ed;
            transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        }
        .fee-main-tab-ic svg {
            display: block;
            width: 15px;
            height: 15px;
        }
        .fee-main-tab.active .fee-main-tab-ic {
            border-color: rgba(29, 24, 11, 0.18);
            color: #1d180b;
            background: rgba(255, 255, 255, 0.35);
        }

        /* Calculator panel */
        .fee-calc { padding: 4px 0 8px; }
        .fee-calc-head { margin: 6px 15px 14px; }
        .fee-calc-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 0.72rem;
            font-weight: 800;
            letter-spacing: 0.14em;
            color: #667eea;
        }
        .fee-calc-head h2 { margin: 8px 0 6px; font-size: 1.5rem; font-weight: 900; color: #1f2937; }
        .fee-calc-head p { margin: 0; color: #6b7280; font-size: 0.92rem; line-height: 1.5; }
        .fee-calc-card {
            background: #fff;
            margin: 10px 15px;
            padding: 20px;
            border-radius: 20px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        }
        .fee-calc-grid { display: grid; gap: 16px; }
        .fee-calc-field label, .fee-calc-label {
            display: block;
            font-weight: 700;
            font-size: 0.88rem;
            color: #374151;
            margin-bottom: 8px;
        }
        .fee-calc-required { color: #dc2626; }
        .fee-calc-input {
            width: 100%;
            padding: 12px 14px;
            border: 1.5px solid #e5e7eb;
            border-radius: 12px;
            font-size: 0.95rem;
            background: #f9fafb;
            color: #111827;
        }
        .fee-calc-input:focus { outline: none; border-color: #667eea; background: #fff; }
        .fee-calc-toggle { display: inline-flex; gap: 8px; background: #f3f4f6; padding: 6px; border-radius: 12px; }
        .fee-calc-toggle-btn {
            min-width: 84px;
            padding: 9px 16px;
            border: none;
            border-radius: 9px;
            font-weight: 700;
            font-size: 0.9rem;
            color: #6b7280;
            background: transparent;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .fee-calc-toggle-btn.active {
            color: #fff;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 4px 10px rgba(102, 126, 234, 0.35);
        }
        .fee-calc-gender { margin: 0; font-size: 0.95rem; color: #111827; }
        .fee-calc-gender small { color: #6b7280; }
        .fee-calc-syarat { border: 1px dashed #d1d5db; border-radius: 14px; padding: 14px 16px 6px; margin: 18px 0 0; }
        .fee-calc-syarat legend { font-weight: 800; font-size: 0.88rem; color: #374151; padding: 0 6px; }
        .fee-calc-syarat legend small { font-weight: 600; color: #9ca3af; }
        .fee-calc-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 0.92rem; color: #374151; cursor: pointer; }
        .fee-calc-check input { width: 17px; height: 17px; accent-color: #667eea; }
        .fee-calc-hint { margin: 0; padding: 14px; border-radius: 12px; background: #f3f4f6; color: #4b5563; font-size: 0.92rem; }
        .fee-calc-error { margin: 0; padding: 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; font-size: 0.92rem; font-weight: 600; }
        .fee-calc-totals { border: 1px solid #eef0f4; border-radius: 16px; overflow: hidden; }
        .fee-calc-total-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 13px 16px;
            font-size: 0.93rem;
            color: #4b5563;
            border-bottom: 1px solid #f3f4f6;
        }
        .fee-calc-total-row strong { color: #111827; font-family: 'Courier New', monospace; }
        .fee-calc-off { color: #0d8a5c !important; }
        .fee-calc-grand {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: #fff;
            font-weight: 800;
        }
        .fee-calc-grand strong { font-size: 1.35rem; font-weight: 900; }
        .fee-calc-details { margin-top: 14px; border: 1px solid #eef0f4; border-radius: 14px; padding: 4px 14px; background: #fafafa; }
        .fee-calc-details summary { cursor: pointer; padding: 10px 0; font-weight: 800; font-size: 0.9rem; color: #374151; }
        .fee-calc-list { list-style: none; margin: 0; padding: 0 0 10px; }
        .fee-calc-list li {
            display: flex;
            justify-content: space-between;
            gap: 14px;
            padding: 8px 0;
            border-bottom: 1px dashed #e5e7eb;
            font-size: 0.88rem;
            color: #4b5563;
        }
        .fee-calc-list li:last-child { border-bottom: none; }
        .fee-calc-list li strong { color: #111827; font-family: 'Courier New', monospace; white-space: nowrap; }
        .fee-calc-empty { margin: 0 0 12px; font-size: 0.9rem; color: #6b7280; }
        .fee-calc-note {
            display: flex;
            gap: 8px;
            align-items: flex-start;
            margin: 14px 15px 0;
            padding: 13px 15px;
            border-left: 4px solid #667eea;
            background: #eef2ff;
            border-radius: 12px;
            color: #3730a3;
            font-size: 0.85rem;
            line-height: 1.5;
        }
        .fee-calc-note i { margin-top: 3px; color: #667eea; }

        @media (min-width: 768px) {
            .fee-main-tabs { margin: 0 0 8px 0; }
            .fee-calc-head,
            .fee-calc-card,
            .fee-calc-note { margin-left: 0; margin-right: 0; }
            .fee-calc-grid { grid-template-columns: repeat(3, 1fr); align-items: end; }
        }
    