/* AFIADNS Custom Theme ? lightweight, responsive, animated */

:root {
    --afi-primary: #2563eb;
    --afi-primary-dark: #1d4ed8;
    --afi-accent: #06b6d4;
    --afi-success: #10b981;
    --afi-warning: #f59e0b;
    --afi-danger: #ef4444;
    --afi-dark: #0f172a;
    --afi-dark-soft: #1e293b;
    --afi-gray: #64748b;
    --afi-light: #f8fafc;
    --afi-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --afi-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
    --afi-shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.15);
    --afi-radius: 12px;
    --afi-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ??? Global ??? */
html.fixed,
html.fixed body {
    font-family: 'Plus Jakarta Sans', 'Open Sans', sans-serif;
}

.content-body {
    animation: afiFadeUp 0.5s ease-out;
}

@keyframes afiFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes afiPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@keyframes afiShimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes afiFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes afiGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ??? Header / Topbar ??? */
.header,
html.header-dark .header,
html.dark .header {
    background: var(--afi-dark) !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    min-height: 56px;
}

.header .logo-container {
    background: transparent !important;
    border: none !important;
}

.afi-brand-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    margin: 10px 0 0 18px !important;
    float: left;
    text-decoration: none !important;
}

.afi-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--afi-gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.afi-brand-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff !important;
    line-height: 1;
}

.afi-brand-accent {
    background: var(--afi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .separator,
html.header-dark .header .separator {
    background: rgba(255, 255, 255, 0.12) !important;
    background-image: none !important;
    width: 1px;
    margin: 0 16px;
}

.header .search,
.afi-header-search {
    width: 220px;
}

.header .input-search input,
html.header-dark .header .input-search input,
html.dark .header .input-search input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    border-radius: 20px 0 0 20px !important;
    height: 36px;
    box-shadow: none !important;
}

.header .input-search input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.header .input-search .input-group-btn .btn-default,
html.header-dark .header .input-search .input-group-btn .btn-default {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-left: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 0 20px 20px 0 !important;
    height: 36px;
}

.header .input-search .input-group-btn .btn-default:hover {
    background: rgba(37, 99, 235, 0.35) !important;
    color: #fff !important;
}

.notifications > li .notification-icon,
html.header-dark .notifications > li .notification-icon {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    position: relative;
}

.notifications > li .notification-icon i,
html.header-dark .notifications > li .notification-icon i {
    color: rgba(255, 255, 255, 0.85) !important;
}

.notifications > li .notification-icon .badge,
.header-right .notifications .badge {
    background: var(--afi-accent) !important;
    animation: afiPulse 2s infinite;
    font-size: 10px;
    min-width: 18px;
    position: absolute;
    right: -6px;
    top: -4px;
    padding: 2px 5px;
    line-height: 1.2;
    z-index: 2;
}

.afi-userbox > a {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--afi-transition);
}

.afi-userbox > a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.afi-userbox .profile-picture {
    margin: 0;
}

.afi-userbox .profile-info {
    margin: 0 8px 0 0 !important;
    text-align: left;
}

#userbox .profile-info .name,
.afi-userbox .name,
html.header-dark .userbox .name {
    color: #fff !important;
    font-weight: 700;
    font-size: 13px;
}

#userbox .profile-info .role,
.afi-userbox .role,
html.header-dark .userbox .role {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 11px;
}

.afi-userbox .custom-caret,
html.header-dark .userbox .custom-caret {
    color: rgba(255, 255, 255, 0.6) !important;
}

.afi-avatar-initials {
    display: inline-block;
    border-radius: 50%;
    background: var(--afi-gradient);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    text-align: center;
    vertical-align: middle;
}

.afi-avatar-img {
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.userbox.open .dropdown-menu {
    border-radius: var(--afi-radius);
    border: none;
    box-shadow: var(--afi-shadow-lg);
    margin-top: 8px;
}

.userbox .dropdown-menu .dropdown-header {
    background: var(--afi-light);
}

.header .toggle-sidebar-left {
    background: rgba(255, 255, 255, 0.15) !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Panel pelanggan ? page header bersih (bukan bar gelap tema Porto) */
body.afi-pelanggan-panel .page-header {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    height: auto !important;
    min-height: 50px;
    margin: -40px -40px 24px -40px !important;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 1;
}

/* Header putih in-flow: batalkan fixed Porto + margin negatif yang menarik judul ke bawah topbar */
html.fixed body.afi-pelanggan-panel .page-header,
html.fixed .afi-admin-dashboard .page-header {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

body.afi-pelanggan-panel .page-header h2 {
    color: #0f172a !important;
    background: transparent !important;
    border-bottom: none !important;
    float: none !important;
    display: block !important;
    height: auto !important;
    line-height: 1.3 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

/* Breadcrumb: jangan menempel/terpotong di tepi kanan header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    padding-right: 20px;
}

html.fixed .page-header {
    padding-right: 20px;
}

.page-header h2 {
    float: none;
    min-width: 0;
}

.page-header .right-wrapper {
    float: none !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 16px;
    height: auto;
}

.page-header .breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-width: 100%;
}

.page-header .breadcrumbs li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.3;
}

.page-header .breadcrumbs li:after {
    content: "/" !important;
    display: inline-block !important;
    font-size: 12px !important;
    line-height: 1 !important;
    margin: 0 8px !important;
    opacity: 0.7;
    vertical-align: middle;
}

.page-header .breadcrumbs li:last-child:after {
    content: none !important;
    display: none !important;
    margin: 0 !important;
}

.page-header .breadcrumbs a,
.page-header .breadcrumbs span {
    display: inline-block;
    font-size: 13px !important;
    line-height: 1.3 !important;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.page-header .breadcrumbs .fa-home,
.page-header .breadcrumbs i {
    font-size: 15px !important;
    line-height: 1 !important;
    vertical-align: middle;
}

.page-header .sidebar-right-toggle {
    flex-shrink: 0;
}

body.afi-pelanggan-panel .content-body {
    background: #f1f5f9;
    display: block !important;
    width: auto !important;
    overflow: visible !important;
    vertical-align: top !important;
}

/* Konten pelanggan harus langsung terlihat ? jangan andalkan scroll-reveal saja */
body.afi-pelanggan-panel .afi-reveal {
    opacity: 1;
    transform: none;
}

body.afi-pelanggan-panel section.body.afi-panel-shell {
    background: #f1f5f9;
}

/* Pelanggan: sembunyikan menu tugas (khusus admin/teknik) */
body.afi-pelanggan-panel .notifications > li.afi-notify-tasks {
    display: none !important;
}

@media (max-width: 767px) {
    .header .search,
    .afi-header-search {
        display: none;
    }
    .afi-brand-text {
        font-size: 17px;
    }
}

.header .logo img {
    transition: var(--afi-transition);
}

.header .logo:hover img {
    transform: scale(1.05);
}

/* ??? Sidebar ??? */
.sidebar-left {
    background: var(--afi-dark-soft) !important;
}

.sidebar-left .sidebar-header {
    background: var(--afi-dark) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-left .nav-main > li > a {
    border-radius: 8px;
    margin: 2px 8px;
    transition: var(--afi-transition);
}

.sidebar-left .nav-main > li > a:hover,
.sidebar-left .nav-main > li.nav-active > a {
    background: rgba(37, 99, 235, 0.2) !important;
    color: #fff !important;
}

.sidebar-left .nav-main > li > a i {
    color: var(--afi-accent);
}

.sidebar-left .nav-main > li.p-md span {
    display: block;
    padding: 12px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* Scroll sidebar ? fallback bila nanoScroller belum/gagal init */
html.fixed .sidebar-left .nano {
    height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

html.fixed .sidebar-left .nano .nano-content {
    position: static;
    right: auto;
}

/* Sidebar dropdown groups */
.sidebar-left .nav-parent > a {
    cursor: pointer;
}

.sidebar-left .nav-children li a {
    padding-left: 44px !important;
    font-size: 12px;
}

.sidebar-left .nav-children li a i {
    margin-right: 8px;
    font-size: 13px;
    opacity: 0.85;
}

.sidebar-left .afi-nav-section span {
    letter-spacing: 1.2px;
}

.sidebar-left .afi-nav-logout {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
}

/* Sembunyikan sisa template popup (tanpa perlu magnific-popup.css) */
.mfp-hide,
.modal-block.mfp-hide {
    display: none !important;
}

/* Font Awesome 4.1 tidak punya fa-wifi ? pakai glyph fa-signal */
.fa-wifi:before {
    content: "\f012";
}

/* Modal perpanjang ? di luar tabel, z-index aman */
#afiRenewModal {
    z-index: 1050;
}
#afiRenewModal .modal-dialog {
    margin-top: 80px;
}

/* ??? Dashboard Cards ??? */
.afi-stat-card {
    background: #fff;
    border-radius: var(--afi-radius);
    padding: 24px;
    box-shadow: var(--afi-shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--afi-transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.afi-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--afi-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.afi-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--afi-shadow-lg);
}

.afi-stat-card:hover::before {
    transform: scaleX(1);
}

.afi-stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    margin-bottom: 16px;
}

.afi-stat-card .stat-icon.blue   { background: var(--afi-gradient); }
.afi-stat-card .stat-icon.green  { background: linear-gradient(135deg, #10b981, #059669); }
.afi-stat-card .stat-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.afi-stat-card .stat-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.afi-stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--afi-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.afi-stat-card .stat-label {
    font-size: 13px;
    color: var(--afi-gray);
    font-weight: 500;
}

.afi-stat-card .stat-trend {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 600;
}

.afi-stat-card .stat-trend.up   { color: var(--afi-success); }
.afi-stat-card .stat-trend.down { color: var(--afi-danger); }

/* Welcome Banner */
.afi-welcome-banner {
    background: var(--afi-gradient);
    background-size: 200% 200%;
    animation: afiGradientMove 6s ease infinite;
    border-radius: var(--afi-radius);
    padding: 32px 36px;
    color: #fff;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.afi-welcome-banner::after {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.afi-welcome-banner h3 {
    font-weight: 800;
    font-size: 24px;
    margin: 0 0 8px;
    position: relative;
}

.afi-welcome-banner p {
    opacity: 0.9;
    margin: 0;
    position: relative;
    font-size: 14px;
}

.afi-welcome-banner .banner-time {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    opacity: 0.85;
    font-size: 13px;
}

/* ===== Dashboard clock hero (ANT-style) ===== */
.afi-dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 24px;
}
.afi-dash-clock-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    padding: 22px 24px;
    position: relative;
    overflow: hidden;
}
.afi-dash-clock-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 70%);
    pointer-events: none;
}
.afi-dash-clock-main {
    display: flex;
    gap: 28px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.afi-dash-ring-wrap {
    flex: 0 0 150px;
    width: 150px;
    text-align: center;
    position: relative;
}
.afi-dash-ring {
    width: 150px;
    height: 150px;
    display: block;
    transform: rotate(-90deg);
}
.afi-dash-ring-track {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}
.afi-dash-ring-progress {
    fill: none;
    stroke: url(#afiRingGrad);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.35));
}
.afi-dash-ring-ticks line {
    stroke: #93c5fd;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.7;
}
.afi-dash-ring-center {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}
.afi-dash-ring-time {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.afi-dash-ring-pct {
    font-size: 12px;
    font-weight: 700;
    color: #3b82f6;
    margin-top: 2px;
}
.afi-dash-ring-label {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #64748b;
}
.afi-dash-clock-info {
    flex: 1;
    min-width: 0;
}
.afi-dash-clock-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.afi-dash-greeting {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}
.afi-dash-subtitle {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}
.afi-dash-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.afi-dash-day {
    font-weight: 700;
    color: #1e3a5f;
    font-size: 14px;
}
.afi-dash-status-pill,
.afi-dash-role-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.afi-dash-status-pill {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px #a7f3d0;
}
.afi-dash-status-pill.is-night {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px #bfdbfe;
}
.afi-dash-role-pill {
    background: #f1f5f9;
    color: #475569;
}
.afi-dash-timeline {
    margin-bottom: 16px;
}
.afi-dash-timeline-track {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dbeafe, #e2e8f0 50%, #1e3a5f);
    overflow: visible;
}
.afi-dash-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transition: width 0.6s ease;
}
.afi-dash-timeline-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #1e3a5f;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
    transition: left 0.6s ease;
    animation: afiDashPulse 2s ease-in-out infinite;
}
@keyframes afiDashPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.08); }
}
.afi-dash-timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}
.afi-dash-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.afi-dash-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.afi-dash-slot strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
}
.afi-dash-slot small {
    color: #64748b;
    font-size: 11px;
}
.afi-dash-slot-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0f2fe;
    color: #0369a1;
    flex-shrink: 0;
}
.afi-dash-slot.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}
.afi-dash-slot.is-active .afi-dash-slot-icon {
    background: #1e3a5f;
    color: #fff;
}
.afi-dash-float-clock {
    background: linear-gradient(160deg, #0f2744 0%, #1e3a5f 55%, #2563eb 140%);
    color: #fff;
    border-radius: 18px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 14px 32px rgba(30, 58, 95, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
    position: relative;
    overflow: hidden;
    min-height: 160px;
}
.afi-dash-float-clock::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    right: -40px;
    top: -40px;
    background: rgba(255,255,255,0.08);
    animation: afiDashOrbit 8s linear infinite;
}
@keyframes afiDashOrbit {
    from { transform: rotate(0deg) translateX(4px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(4px) rotate(-360deg); }
}
.afi-dash-float-date {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 6px;
}
.afi-dash-float-time {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(96, 165, 250, 0.45);
}
.afi-dash-float-support {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 11px;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
}
@media (max-width: 991px) {
    .afi-dash-hero {
        grid-template-columns: 1fr;
    }
    .afi-dash-float-clock {
        min-height: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
    }
    .afi-dash-float-support {
        margin-top: 0;
    }
}
@media (max-width: 767px) {
    .afi-dash-clock-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .afi-dash-ring-wrap {
        margin: 0 auto;
    }
    .afi-dash-greeting {
        font-size: 18px;
    }
    .afi-dash-slots {
        grid-template-columns: 1fr;
    }
    .afi-dash-float-clock {
        flex-wrap: wrap;
    }
    .afi-dash-float-time {
        font-size: 24px;
    }
}

/* Quick Actions */
.afi-quick-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border-radius: var(--afi-radius);
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--afi-transition);
    text-decoration: none !important;
    color: var(--afi-dark) !important;
    margin-bottom: 12px;
}

.afi-quick-action:hover {
    border-color: var(--afi-primary);
    box-shadow: var(--afi-shadow);
    transform: translateX(4px);
}

.afi-quick-action .qa-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--afi-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.afi-quick-action .qa-text h6 {
    margin: 0 0 2px;
    font-weight: 700;
    font-size: 14px;
}

.afi-quick-action .qa-text small {
    color: var(--afi-gray);
}

/* Activity Feed */
.afi-activity-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.afi-activity-item:last-child { border-bottom: none; }

.afi-activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.afi-activity-dot.blue   { background: var(--afi-primary); }
.afi-activity-dot.green  { background: var(--afi-success); }
.afi-activity-dot.orange { background: var(--afi-warning); }

/* Panel Enhancements */
.panel {
    border-radius: var(--afi-radius) !important;
    box-shadow: var(--afi-shadow) !important;
    border: none !important;
    overflow: hidden;
}

.panel-heading {
    background: var(--afi-light) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

.panel-title {
    font-weight: 700 !important;
    color: var(--afi-dark) !important;
}

/* Table Enhancements */
.table > thead > tr > th {
    background: var(--afi-light);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--afi-gray);
    border-bottom: 2px solid rgba(0,0,0,0.06) !important;
}

.table-striped > tbody > tr:hover {
    background: rgba(37, 99, 235, 0.04) !important;
}

/* Buttons */
.btn-primary {
    background: var(--afi-gradient) !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: var(--afi-transition) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
}

/* Panel shell ? footer di bawah layar (juga setelah theme.js ganti html.fixed ? html.scroll di HP) */
section.body.afi-panel-shell,
html.fixed section.body.afi-panel-shell,
html.scroll section.body.afi-panel-shell {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

section.body.afi-panel-shell > .inner-wrapper,
html.fixed section.body.afi-panel-shell > .inner-wrapper,
html.scroll section.body.afi-panel-shell > .inner-wrapper {
    display: block !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    overflow: visible !important;
    min-height: 0 !important;
}

section.body.afi-panel-shell > .afi-page-footer,
html.fixed section.body.afi-panel-shell > .afi-page-footer,
html.scroll section.body.afi-panel-shell > .afi-page-footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin: 0 !important;
    margin-top: auto !important;
}

.page-footer,
.afi-page-footer {
    background: var(--afi-dark) !important;
    color: rgba(255,255,255,0.7) !important;
    border-top: 2px solid rgba(37, 99, 235, 0.3);
    margin: 0 !important;
    height: auto !important;
    min-height: 48px;
}

.page-footer a {
    color: var(--afi-accent) !important;
}

/* ??? Auth Pages ??? */
html.fixed .body-sign {
    background: var(--afi-dark);
    min-height: 100vh;
    min-height: 100dvh;
    height: auto !important;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 0 24px;
}

html.fixed .body-sign .center-sign {
    display: block !important;
    padding-top: 0 !important;
    vertical-align: top !important;
}

html.fixed .body-sign::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: afiGradientMove 8s ease infinite;
    background-size: 200% 200%;
    z-index: 0;
}

html.fixed .body-sign::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

/* Auth ? continuous orbit-dot wallpaper (login / register) */
.afi-auth-bg-motion {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.afi-auth-bg-motion__aurora {
    position: absolute;
    inset: -25%;
    opacity: 0.5;
    background:
        radial-gradient(ellipse at 25% 35%, rgba(37, 99, 235, 0.4) 0%, transparent 52%),
        radial-gradient(ellipse at 75% 55%, rgba(6, 182, 212, 0.32) 0%, transparent 48%),
        radial-gradient(ellipse at 45% 85%, rgba(129, 140, 248, 0.28) 0%, transparent 42%);
    animation: afiAuthAuroraShift 14s ease-in-out infinite alternate;
}

.afi-auth-bg-motion__grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.25) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: afiPreloaderGridDrift 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 85%);
}

.afi-auth-bg-motion__particles {
    position: absolute;
    inset: 0;
}

.afi-auth-bg-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.75);
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.55);
    animation: afiAuthParticleDrift var(--afi-p-dur, 18s) linear infinite;
    animation-delay: var(--afi-p-delay, 0s);
    opacity: 0;
}

.afi-auth-bg-particle:nth-child(3n) {
    background: rgba(37, 99, 235, 0.8);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
    width: 4px;
    height: 4px;
}

.afi-auth-bg-particle:nth-child(3n+1) {
    background: rgba(129, 140, 248, 0.75);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.45);
    width: 6px;
    height: 6px;
}

.afi-auth-bg-orbit {
    --afi-orbit-r: 52px;
    position: absolute;
    width: calc(var(--afi-orbit-r) * 2 + 16px);
    height: calc(var(--afi-orbit-r) * 2 + 16px);
    opacity: 0.48;
}

.afi-auth-bg-orbit--a {
    top: 8%;
    right: 5%;
    --afi-orbit-r: 56px;
}

.afi-auth-bg-orbit--b {
    bottom: 12%;
    left: 3%;
    --afi-orbit-r: 44px;
    opacity: 0.38;
}

.afi-auth-bg-orbit--c {
    top: 40%;
    left: 36%;
    --afi-orbit-r: 34px;
    opacity: 0.32;
}

.afi-auth-bg-orbit--d {
    top: 18%;
    left: 10%;
    --afi-orbit-r: 28px;
    opacity: 0.28;
}

.afi-auth-bg-orbit--e {
    bottom: 28%;
    right: 18%;
    --afi-orbit-r: 38px;
    opacity: 0.34;
}

.afi-auth-bg-orbit--f {
    top: 62%;
    right: 32%;
    --afi-orbit-r: 22px;
    opacity: 0.26;
}

.afi-auth-bg-orbit--g {
    top: 8%;
    left: 42%;
    --afi-orbit-r: 18px;
    opacity: 0.22;
}

.afi-auth-bg-orbit--center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    --afi-orbit-r: 72px;
    opacity: 0.2;
}

.afi-auth-bg-dot {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -4.5px 0 0 -4.5px;
    transform-origin: 0 var(--afi-orbit-r);
    animation: afiPreloaderOrbit 2.2s linear infinite;
}

.afi-auth-bg-dot--1 {
    background: #2563eb;
    box-shadow: 0 0 10px #2563eb;
    animation-duration: 2s;
}

.afi-auth-bg-dot--2 {
    background: #06b6d4;
    box-shadow: 0 0 10px #06b6d4;
    animation-duration: 2.8s;
    animation-delay: -0.6s;
    transform-origin: 0 calc(var(--afi-orbit-r) * -1 + 4px);
}

.afi-auth-bg-dot--3 {
    background: #818cf8;
    box-shadow: 0 0 10px #818cf8;
    animation-duration: 3.4s;
    animation-delay: -1.2s;
    transform-origin: var(--afi-orbit-r) 0;
}

.afi-auth-wrapper {
    display: flex;
    min-height: 100dvh;
    align-items: stretch;
    position: relative;
    z-index: 3;
}

.afi-auth-brand {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 60px;
    color: #fff;
}

.afi-auth-brand .brand-logo img {
    height: 64px;
    margin-bottom: 32px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.afi-auth-brand h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.35;
}

.afi-auth-brand p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.75;
    max-width: 420px;
    margin-bottom: 0;
}

.afi-auth-features {
    margin-top: 40px;
    list-style: none;
    padding: 0;
}

.afi-auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.85;
}

.afi-auth-features li i {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--afi-accent);
}

.afi-auth-form-side {
    width: 520px;
    max-width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 32px 48px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255,255,255,0.08);
}

.afi-auth-card {
    width: 100%;
    max-width: 440px;
    margin: auto 0;
}

.afi-auth-card .center-sign {
    display: block;
    width: 100%;
}

.afi-auth-card .panel-sign {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--afi-shadow-lg);
    border: none;
    overflow: hidden;
    animation: afiFadeUp 0.6s ease-out;
}

.afi-auth-card .panel-title-sign {
    background: var(--afi-gradient);
    padding: 16px 20px !important;
    margin: 0 !important;
}

.afi-auth-card .panel-title-sign.mt-xl {
    margin-top: 0 !important;
}

.afi-auth-card .panel-title-sign .title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.afi-auth-card .panel-body {
    padding: 28px 24px 24px !important;
}

.afi-auth-card .form-control,
.afi-auth-card .form-control.input-lg {
    border-radius: 10px !important;
    border: 2px solid #e2e8f0 !important;
    padding: 11px 14px !important;
    transition: var(--afi-transition) !important;
    font-size: 14px !important;
    height: auto !important;
    min-height: 44px;
    line-height: 1.5 !important;
}

.afi-auth-card .form-group.mb-lg {
    margin-bottom: 18px !important;
}

.afi-auth-card .form-control:focus {
    border-color: var(--afi-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.afi-auth-card .input-group-icon .input-group-addon {
    border-radius: 0 10px 10px 0 !important;
    background: var(--afi-light) !important;
    border: 2px solid #e2e8f0 !important;
    border-left: none !important;
}

.afi-auth-card label {
    font-weight: 600;
    font-size: 13px;
    color: var(--afi-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.afi-auth-card .btn-primary {
    padding: 12px 20px !important;
    font-size: 14px !important;
}

.afi-auth-actions {
    margin-top: 4px;
}

.afi-auth-card .checkbox-custom {
    padding-left: 28px;
    margin-bottom: 8px;
}

.afi-auth-card .checkbox-custom label {
    margin-bottom: 0;
    line-height: 1.5;
}

.afi-auth-remember-hint {
    margin: 0 0 16px;
    padding-left: 28px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #64748b;
}

.afi-auth-register-link {
    text-align: center;
    margin: 18px 0 0;
    line-height: 1.6;
}

.afi-auth-help-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 24px;
    padding: 20px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
}

.afi-auth-help-box__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.afi-auth-help-box__body {
    flex: 1 1 auto;
    min-width: 0;
}

.afi-auth-help-box h3 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.afi-auth-help-box p {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.afi-auth-help-box__note {
    margin: 12px 0 0 !important;
    font-size: 12.5px !important;
    line-height: 1.65 !important;
    color: #64748b !important;
}

.afi-auth-resend-form label {
    display: block;
    margin-bottom: 8px;
}

.afi-auth-resend-form .form-control {
    width: 100% !important;
    margin-bottom: 10px;
}

.afi-auth-resend-form .btn {
    width: 100%;
    border-radius: 10px !important;
    font-weight: 600;
}

@media (max-width: 480px) {
    .afi-auth-help-box {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
}

.afi-auth-card .line-thru {
    position: relative;
    display: block;
    margin: 20px 0;
}

.afi-auth-card .line-thru span {
    background: #fff;
    padding: 0 12px;
    position: relative;
    z-index: 1;
    color: var(--afi-gray);
    font-size: 12px;
}

.afi-auth-card .line-thru::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: #e2e8f0;
}

.afi-auth-footer-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-top: 24px;
}

.afi-auth-footer-text a {
    color: var(--afi-accent);
}

/* Legacy center-sign fallback (mobile) */
.center-sign {
    position: relative;
    z-index: 1;
}

.center-sign .logo img {
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* ??? User Profile ??? */
.afi-profile-card .thumb-info {
    position: relative;
    border-radius: var(--afi-radius);
    overflow: hidden;
}

.afi-profile-card .thumb-info img {
    width: 100%;
    transition: var(--afi-transition);
}

.afi-profile-card:hover .thumb-info img {
    transform: scale(1.03);
}

.afi-profile-card .thumb-info-title {
    background: var(--afi-gradient) !important;
}

.afi-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.afi-profile-stat {
    text-align: center;
    padding: 12px;
    background: var(--afi-light);
    border-radius: 10px;
}

.afi-profile-stat .val {
    font-size: 20px;
    font-weight: 800;
    color: var(--afi-primary);
}

.afi-profile-stat .lbl {
    font-size: 11px;
    color: var(--afi-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ??? Landing Page Enhancements ??? */
.site-wrap .site-navbar.bg-dark {
    background: var(--afi-dark) !important;
}

.site-wrap .btn-primary {
    background: var(--afi-gradient) !important;
    border: none !important;
    transition: var(--afi-transition);
}

.site-wrap .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.site-wrap .unit-2,
.site-wrap .unit-3 {
    transition: var(--afi-transition);
    border-radius: var(--afi-radius) !important;
}

.site-wrap .unit-2:hover,
.site-wrap .unit-3:hover {
    transform: translateY(-6px);
    box-shadow: var(--afi-shadow-lg);
}

.site-wrap .site-blocks-cover h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.afi-counter-section {
    background: #0f172a;
    padding: 52px 0;
    position: relative;
    border-top: 3px solid rgba(37, 99, 235, 0.45);
}

.afi-counter-item {
    text-align: center;
    color: #fff;
}

.afi-counter-item .counter-value {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.afi-counter-item .counter-label {
    font-size: 14px;
    opacity: 0.85;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-footer {
    background: var(--afi-dark) !important;
}

/* ??? Responsive ??? */
@media (max-width: 991px) {
    .afi-auth-brand {
        display: none;
    }

    .afi-auth-form-side {
        width: 100%;
        border-left: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 20px 16px 32px;
    }

    .afi-auth-card {
        max-width: 440px;
        margin: 0 auto;
    }

    .afi-auth-card .panel-body {
        padding: 24px 18px 20px !important;
    }

    .afi-auth-card .form-group.mb-lg {
        margin-bottom: 16px !important;
    }

    .afi-auth-bg-motion {
        z-index: 2;
    }

    .afi-auth-bg-orbit {
        opacity: 0.55;
    }

    .afi-auth-bg-orbit--center {
        opacity: 0.28;
    }

    .afi-auth-bg-motion__aurora {
        opacity: 0.62;
    }

    .afi-welcome-banner .banner-time {
        position: static;
        transform: none;
        margin-top: 16px;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .afi-stat-card .stat-value {
        font-size: 24px;
    }

    .afi-profile-stats {
        grid-template-columns: 1fr;
    }

    .afi-counter-item .counter-value {
        font-size: 32px;
    }

    /* ?? Mobile header: satu baris, tidak menumpuk di kanan ?? */
    section.body.afi-panel-shell,
    html.fixed section.body.afi-panel-shell,
    html.scroll section.body.afi-panel-shell {
        min-height: 100dvh !important;
    }

    section.body.afi-panel-shell > .inner-wrapper,
    html.fixed section.body.afi-panel-shell > .inner-wrapper,
    html.scroll section.body.afi-panel-shell > .inner-wrapper {
        padding-top: 52px !important;
        flex: 1 1 auto !important;
    }

    section.body.afi-panel-shell > .afi-page-footer,
    html.scroll section.body.afi-panel-shell > .afi-page-footer {
        flex-shrink: 0 !important;
        margin-top: auto !important;
    }

    html.fixed .inner-wrapper,
    html.scroll .inner-wrapper {
        padding-top: 52px !important;
    }

    .header.afi-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        height: 52px !important;
        min-height: 52px !important;
        padding: 0 4px;
        overflow: visible !important;
    }

    html.header-dark .header .logo-container,
    html.header-dark .header.afi-header .logo-container {
        position: relative !important;
        flex: 0 1 auto;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: auto !important;
        height: 52px !important;
        min-height: 0 !important;
        display: flex;
        align-items: center;
        background: transparent !important;
        background-image: none !important;
        border: none !important;
        float: none !important;
    }

    html.header-dark .header .header-right,
    html.header-dark .header.afi-header .header-right {
        flex: 0 0 auto;
        position: relative !important;
        float: none !important;
        width: auto !important;
        height: 52px !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        padding: 0 6px 0 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 2px;
        z-index: 2;
    }

    /* Hamburger di alur flex (bukan fixed) — tidak tertutup padding/notifikasi */
    .header .toggle-sidebar-left,
    .header .header-right > .toggle-sidebar-left {
        display: none !important;
    }

    .afi-mobile-nav-btn {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        outline: 0;
        margin: 0 2px 0 6px !important;
        padding: 0 !important;
        flex: 0 0 auto;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 40px !important;
        height: 40px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.18) !important;
        color: #fff !important;
        position: relative !important;
        z-index: 1100 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.25);
    }

    .afi-mobile-nav-btn i {
        font-size: 18px;
        line-height: 1;
        pointer-events: none;
    }

    .afi-mobile-nav-btn:active,
    .afi-mobile-nav-btn.is-open {
        background: rgba(37, 99, 235, 0.85) !important;
    }

    /* Cegah strip gelap / ruang kosong kanan (sidebar-right + overflow tabel) */
    html,
    body,
    section.body.afi-panel-shell {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .inner-wrapper,
    section.body.afi-panel-shell > .inner-wrapper,
    .content-body,
    body.afi-pelanggan-panel .content-body {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        left: auto !important;
        right: auto !important;
    }

    #sidebar-right,
    .sidebar-right {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        min-width: 0 !important;
        margin: 0 !important;
        right: -9999px !important;
    }

    .table-responsive {
        max-width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .va-filter-bar {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        height: auto !important;
        min-height: 0 !important;
    }

    .va-filter-bar .va-toolbar-group {
        flex: 0 0 auto !important;
        width: 100%;
        min-height: 0 !important;
    }

    .va-filter-search {
        flex: 0 0 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        width: 100% !important;
    }

    .afi-scroll-fab {
        right: 12px;
        bottom: 18px;
    }

    /* Sidebar mobile: override total tipu Porto (margin-left 100%) */
    html .sidebar-left,
    html.csstransforms .sidebar-left,
    html.no-csstransforms .sidebar-left,
    html.scroll .sidebar-left,
    html.fixed .sidebar-left {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;
        width: min(300px, 86vw) !important;
        min-width: 0 !important;
        max-width: 300px !important;
        margin: 0 !important;
        padding-top: 52px !important;
        padding-bottom: 24px !important;
        transform: translate3d(-110%, 0, 0) !important;
        -webkit-transform: translate3d(-110%, 0, 0) !important;
        transition: transform 0.28s ease !important;
        -webkit-transition: -webkit-transform 0.28s ease !important;
        z-index: 1200 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-shadow: 8px 0 28px rgba(15, 23, 42, 0.35);
    }

    html.afi-mobile-nav-open .sidebar-left,
    html.afi-mobile-nav-open.csstransforms .sidebar-left,
    html.afi-mobile-nav-open.scroll .sidebar-left,
    html.afi-mobile-nav-open.fixed .sidebar-left,
    html.sidebar-left-opened .sidebar-left,
    html.sidebar-left-opened.csstransforms .sidebar-left {
        transform: translate3d(0, 0, 0) !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .afi-mobile-nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1030;
        background: rgba(15, 23, 42, 0.45);
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
    }

    html.afi-mobile-nav-open .afi-mobile-nav-backdrop,
    html.sidebar-left-opened .afi-mobile-nav-backdrop {
        display: block;
    }

    html.afi-mobile-nav-open,
    html.afi-mobile-nav-open body {
        overflow: hidden !important;
    }

    html.afi-mobile-nav-open .header.afi-header,
    html.sidebar-left-opened .header.afi-header {
        z-index: 1210 !important;
    }

    /* Sidebar di atas konten, di bawah header kanan (tombol X tetap bisa diklik) */
    .sidebar-left {
        z-index: 1200 !important;
    }

    .afi-brand-logo {
        margin: 0 0 0 12px !important;
        float: none !important;
    }

    .afi-brand-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .afi-brand-text {
        font-size: 16px !important;
    }

    .notifications {
        float: none !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap;
    }

    .notifications > li {
        float: none !important;
        margin: 0 2px !important;
        position: relative !important;
    }

    .notifications > li .notification-icon,
    .notifications > li > a.notification-icon {
        position: relative !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 34px !important;
        height: 34px !important;
        line-height: 1 !important;
    }

    .notifications > li .notification-icon i {
        font-size: 14px !important;
        line-height: 1 !important;
    }

    .notifications > li .notification-icon .badge,
    .header-right .notifications .badge {
        position: absolute !important;
        right: -4px !important;
        top: -4px !important;
        animation: none !important;
        font-size: 9px !important;
        min-width: 15px !important;
        height: 15px !important;
        line-height: 11px !important;
        padding: 2px 4px !important;
    }

    .topbar-server-btn-icon {
        width: 34px !important;
        height: 34px !important;
    }

    .topbar-server-btn-icon .fa-shield {
        font-size: 14px !important;
    }

    .afi-userbox,
    #userbox.userbox {
        float: none !important;
        display: none !important;
    }

    .afi-userbox.hidden-xs,
    #userbox.userbox.hidden-xs {
        display: none !important;
    }

    /* Dropdown profil ? tema pakai width:100% (selebar avatar) ? teks terpotong */
    .userbox.open .dropdown-menu,
    .afi-userbox.open .dropdown-menu,
    #userbox.userbox.open .dropdown-menu {
        position: fixed !important;
        top: 54px !important;
        right: 8px !important;
        left: auto !important;
        width: min(280px, calc(100vw - 16px)) !important;
        min-width: 240px !important;
        max-width: calc(100vw - 16px) !important;
        padding: 6px 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        z-index: 1060 !important;
        border-radius: var(--afi-radius) !important;
        box-shadow: var(--afi-shadow-lg) !important;
        overflow: hidden;
    }

    .userbox.open .dropdown-menu .dropdown-header,
    .afi-userbox.open .dropdown-menu .dropdown-header {
        padding: 12px 16px !important;
        white-space: normal;
        word-break: break-word;
    }

    .userbox.open .dropdown-menu a,
    .afi-userbox.open .dropdown-menu a {
        padding: 10px 16px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    .userbox.open > a,
    .afi-userbox.open > a {
        position: relative;
        z-index: 1059;
    }

    .afi-userbox:after,
    #userbox.userbox:after {
        display: none !important;
    }

    .afi-userbox .profile-info {
        display: none !important;
    }

    .afi-userbox .profile-picture {
        margin: 0 !important;
    }

    .afi-userbox .custom-caret {
        display: none !important;
    }

    .afi-userbox > a {
        padding: 4px !important;
    }

    /* Dropdown notifikasi ? tema pakai position:static di <li> ? kotak kepotong di kanan */
    .notifications > li {
        position: relative !important;
    }

    .notifications > li.open > .notification-menu,
    .notifications > li.open > .dropdown-menu.notification-menu {
        position: fixed !important;
        top: 54px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
        z-index: 1060 !important;
        border-radius: var(--afi-radius) !important;
        box-shadow: var(--afi-shadow-lg) !important;
    }

    .notifications > li.open .notification-icon:before {
        display: none !important;
    }

    .notifications .notification-menu .content ul li a {
        white-space: normal !important;
        word-break: break-word;
    }

    /* Pelanggan mobile: lonceng + aktivitas di header atas */
    body.afi-pelanggan-panel .header-right .notifications {
        display: flex !important;
        align-items: center;
        flex-shrink: 0;
    }

    body.afi-pelanggan-panel .header-right {
        padding-right: 6px !important;
        gap: 0;
    }

    body.afi-pelanggan-panel .page-header .sidebar-right-toggle,
    body.afi-pelanggan-panel .page-header .right-wrapper {
        display: none !important;
    }

    body.afi-pelanggan-panel .page-header {
        padding-right: 14px !important;
        margin: 0 0 14px 0 !important;
        position: relative !important;
        border-radius: 0 !important;
    }

    body.afi-pelanggan-panel .content-body {
        padding: 12px 12px 24px !important;
    }

    body.afi-pelanggan-panel .page-header h2 {
        font-size: 17px !important;
        padding: 12px 0 !important;
        margin: 0 !important;
        max-width: 100%;
    }

    /* ?? Mobile dashboard ?? */
    .content-body.afi-admin-dashboard {
        padding: 12px 12px 24px !important;
    }

    .afi-admin-dashboard .page-header {
        margin: 0 0 14px 0 !important;
        padding: 12px 14px !important;
        border-radius: 10px !important;
        flex-wrap: nowrap !important;
        gap: 8px;
    }

    .afi-admin-dashboard .page-header h2 {
        font-size: 17px !important;
        padding: 0 !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        letter-spacing: 0 !important;
    }

    .afi-admin-dashboard .page-header .right-wrapper {
        display: none !important;
    }

    .afi-welcome-banner {
        padding: 18px 16px;
        margin-bottom: 14px;
        border-radius: 10px;
    }

    .afi-welcome-banner h3 {
        font-size: 17px;
        line-height: 1.35;
        padding-right: 0;
    }

    .afi-welcome-banner p {
        font-size: 12px;
        line-height: 1.5;
    }

    .afi-welcome-banner .banner-time {
        font-size: 11px;
        margin-top: 12px;
    }

    .afi-stat-card {
        padding: 16px;
    }

    .afi-stat-card .stat-icon {
        width: 46px;
        height: 46px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .afi-panel-clean .panel-heading {
        padding: 12px 14px !important;
    }

    .afi-panel-clean .panel-body {
        padding: 14px !important;
    }

    .afi-user-summary {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .afi-user-summary__stat {
        padding: 12px 8px;
    }

    .afi-user-summary__num {
        font-size: 22px;
    }

    .afi-user-summary__lbl {
        font-size: 10px;
    }

    .afi-svc-block__head {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 14px;
    }

    .afi-svc-block__title h4 {
        font-size: 13px;
    }

    .afi-svc-pill {
        font-size: 9px;
        padding: 3px 8px;
    }

    .afi-vpn-node {
        padding: 10px;
    }

    .afi-vpn-node__name {
        font-size: 12px;
    }

    .afi-vpn-node__meta {
        font-size: 10px;
    }

    .afi-vpn-node__domain {
        display: block;
        margin-top: 2px;
    }

    .afi-vpn-node__domain::before {
        display: none;
    }

    .afi-status-panel--wide .panel-actions .btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .afi-status-panel--wide .panel-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .afi-quick-action {
        padding: 12px 14px;
    }

    .afi-service-tile {
        padding: 16px 12px;
    }

    .topbar-server-menu {
        min-width: 0;
        max-width: none;
        left: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 400px) {
    .afi-user-summary {
        grid-template-columns: 1fr;
    }

    /* Layar sangat sempit: cukup lonceng, aktivitas lewat menu samping */
    body.afi-pelanggan-panel .notifications > li.afi-notify-messages {
        display: none !important;
    }
}

/* Scroll reveal helper */
.afi-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.afi-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ??? Extended Content Components ??? */
.afi-info-box {
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.08));
    border-left: 4px solid var(--afi-primary);
    border-radius: 0 var(--afi-radius) var(--afi-radius) 0;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.afi-info-box h5 {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--afi-dark);
}

.afi-info-box p {
    margin: 0;
    color: var(--afi-gray);
    font-size: 13px;
    line-height: 1.6;
}

.afi-saldo-card {
    background: var(--afi-gradient);
    border-radius: var(--afi-radius);
    padding: 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.afi-saldo-card .saldo-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.afi-saldo-card .saldo-value {
    font-size: 36px;
    font-weight: 800;
    margin: 8px 0;
}

.afi-saldo-card .saldo-action {
    margin-top: 12px;
}

.afi-saldo-card .btn {
    background: rgba(255,255,255,0.2) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    color: #fff !important;
}

.afi-service-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--afi-radius);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--afi-transition);
}

.afi-service-card:hover {
    box-shadow: var(--afi-shadow);
    border-color: rgba(37,99,235,0.2);
}

.afi-service-card .svc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.afi-service-card .svc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
}

.afi-service-card .svc-meta {
    font-size: 12px;
    color: var(--afi-gray);
}

.afi-service-card .svc-meta span {
    display: inline-block;
    margin-right: 12px;
}

.afi-progress-item {
    margin-bottom: 16px;
}

.afi-progress-item .prog-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.afi-progress-item .progress {
    height: 8px;
    border-radius: 99px;
    background: #e2e8f0;
    margin: 0;
}

.afi-progress-item .progress-bar {
    border-radius: 99px;
    background: var(--afi-gradient);
}

.afi-pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--afi-radius);
    overflow: hidden;
    box-shadow: var(--afi-shadow);
}

.afi-pricing-table thead th {
    background: var(--afi-dark);
    color: #fff;
    padding: 16px;
    font-weight: 700;
    text-align: center;
    border: none;
}

.afi-pricing-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    vertical-align: middle;
}

.afi-pricing-table tbody tr:nth-child(even) {
    background: var(--afi-light);
}

.afi-pricing-table .price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--afi-primary);
}

.afi-pricing-table .featured-col {
    background: rgba(37,99,235,0.05) !important;
    border-left: 2px solid var(--afi-primary);
    border-right: 2px solid var(--afi-primary);
}

.afi-faq-item {
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--afi-radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.afi-faq-item .faq-q {
    padding: 16px 20px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--afi-transition);
}

.afi-faq-item .faq-q:hover {
    background: var(--afi-light);
}

.afi-faq-item .faq-q i {
    transition: transform 0.3s ease;
    color: var(--afi-primary);
}

.afi-faq-item.open .faq-q i {
    transform: rotate(180deg);
}

.afi-faq-item .faq-a {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--afi-gray);
    font-size: 14px;
    line-height: 1.7;
}

.afi-faq-item.open .faq-a {
    padding: 0 20px 16px;
    max-height: 300px;
}

.afi-step-card {
    text-align: center;
    padding: 30px 20px;
}

.afi-step-card .step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--afi-gradient);
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.afi-step-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.afi-step-card p {
    color: var(--afi-gray);
    font-size: 14px;
}

.afi-announcement {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
    background: var(--afi-light);
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid var(--afi-primary);
}

.afi-announcement.warning { border-left-color: var(--afi-warning); }
.afi-announcement.success { border-left-color: var(--afi-success); }

.afi-announcement .ann-date {
    font-size: 11px;
    color: var(--afi-gray);
}

.afi-badge-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.afi-badge-status.active  { background: rgba(16,185,129,0.15); color: #059669; }
.afi-badge-status.pending { background: rgba(245,158,11,0.15); color: #d97706; }
.afi-badge-status.expired { background: rgba(239,68,68,0.15); color: #dc2626; }
.afi-badge-status.online  { background: rgba(37,99,235,0.15); color: #2563eb; }

/* Topbar ? status server VPN */
.topbar-server-trigger {
    padding: 0 !important;
    overflow: visible;
}
.topbar-server-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.topbar-server-btn-icon .fa-shield {
    color: #fff !important;
    font-size: 15px;
    line-height: 1;
}
.topbar-server-btn-icon--ok {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.topbar-server-btn-icon--warn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    animation: afi-server-warn-pulse 2s ease-in-out infinite;
}
@keyframes afi-server-warn-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35); }
    50%      { box-shadow: 0 2px 14px rgba(239, 68, 68, 0.55); }
}
.topbar-server-trigger:hover .topbar-server-btn-icon {
    transform: scale(1.05);
}
.topbar-server-badge--ok {
    background: #10b981 !important;
    font-size: 10px;
    min-width: 18px;
    padding: 2px 5px;
}
.topbar-server-badge--warn {
    background: #ef4444 !important;
}
.topbar-server-menu {
    min-width: 320px;
    max-width: 360px;
}
.topbar-server-content {
    padding: 10px 12px 12px !important;
}
.topbar-server-nodes {
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-server-node {
    margin-bottom: 8px;
}
.topbar-server-node--empty {
    padding: 16px 8px;
}
.topbar-server-node__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.topbar-server-node__link:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.topbar-server-node__dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 5px;
    background: #94a3b8;
}
.topbar-server-node--online .topbar-server-node__dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}
.topbar-server-node--offline .topbar-server-node__dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.topbar-server-node--unknown .topbar-server-node__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.topbar-server-node__body {
    flex: 1;
    min-width: 0;
}
.topbar-server-node__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 3px;
}
.topbar-server-node__top strong {
    font-size: 12px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-server-node__host {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.topbar-server-node__host .fa-globe {
    font-size: 10px;
    margin-right: 3px;
    opacity: 0.75;
}
.topbar-server-node__host em {
    display: block;
    font-style: normal;
    color: #2563eb;
    font-weight: 600;
    font-size: 10px;
}
.topbar-server-status-badge {
    flex-shrink: 0;
    font-size: 9px !important;
    padding: 2px 7px !important;
}
.topbar-server-foot {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}
.topbar-server-nodes--loading {
    opacity: 0.5;
    pointer-events: none;
}
.topbar-server-manage {
    display: inline-block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Dashboard ? panel Status Server */
.afi-status-panel .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.afi-status-panel .panel-actions {
    margin-top: 0;
}
.afi-svc-block--vpn {
    padding: 16px 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.afi-svc-block--dash {
    padding: 16px 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.afi-svc-block--dash:last-child {
    border-bottom: none;
}
.afi-svc-block__foot {
    padding: 0 16px 14px;
    text-align: right;
}
.afi-svc-block__icon--mikhmon {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}
.afi-svc-block__icon--radius {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 4px 12px rgba(8,145,178,0.25);
}
.afi-svc-block__icon--hosting {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}
.afi-svc-block__icon--default {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 4px 12px rgba(71,85,105,0.2);
}
.afi-svc-block__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.afi-svc-block__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.afi-svc-block__title {
    flex: 1;
    min-width: 0;
}
.afi-svc-block__title h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}
.afi-svc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}
.afi-svc-pill--ok   { background: rgba(16,185,129,0.12); color: #059669; }
.afi-svc-pill--warn { background: rgba(245,158,11,0.12); color: #d97706; }
.afi-svc-pill--down { background: rgba(239,68,68,0.12);  color: #dc2626; }
.afi-svc-pill--ok .fa-circle   { font-size: 7px; color: #10b981; }
.afi-svc-pill--warn .fa-circle { font-size: 7px; color: #f59e0b; }
.afi-svc-pill--down .fa-circle { font-size: 7px; color: #ef4444; }

.afi-vpn-nodes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.afi-vpn-nodes--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 16px 16px;
    margin-bottom: 0;
}
.afi-vpn-nodes--grid .afi-vpn-node--empty {
    grid-column: 1 / -1;
}
.afi-status-panel--wide .afi-svc-block--vpn {
    padding-bottom: 0;
    border-bottom: none;
}
.afi-status-panel--wide .panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.afi-status-panel--wide .panel-actions {
    margin-top: 0;
}
.afi-svc-rows--inline {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #e2e8f0;
    background: #fafbfc;
}
.afi-svc-rows--inline .afi-svc-row {
    border-bottom: none;
    margin: 0;
}
.afi-svc-rows--inline .afi-svc-row:first-child {
    border-right: 1px solid #e2e8f0;
}
@media (max-width: 991px) {
    .afi-vpn-nodes--grid {
        grid-template-columns: 1fr;
    }
    .afi-svc-rows--inline {
        grid-template-columns: 1fr;
    }
    .afi-svc-rows--inline .afi-svc-row:first-child {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .afi-vpn-nodes--grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.afi-vpn-nodes--loading {
    opacity: 0.55;
    pointer-events: none;
}
.afi-vpn-node {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.afi-vpn-node:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.afi-vpn-node--empty {
    justify-content: center;
    padding: 20px;
    background: transparent;
    border-style: dashed;
}
.afi-vpn-node__indicator {
    padding-top: 4px;
    flex-shrink: 0;
}
.afi-vpn-node__dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #94a3b8;
    position: relative;
}
.afi-vpn-node--online .afi-vpn-node__dot {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    animation: afi-pulse-dot 2s ease-in-out infinite;
}
.afi-vpn-node--offline .afi-vpn-node__dot {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.afi-vpn-node--unknown .afi-vpn-node__dot {
    background: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
@keyframes afi-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0.08); }
}
.afi-vpn-node__main {
    flex: 1;
    min-width: 0;
}
.afi-vpn-node__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.afi-vpn-node__name {
    font-size: 13px;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.afi-vpn-node__top .afi-badge-status {
    flex-shrink: 0;
    font-size: 9px;
    padding: 2px 8px;
}
.afi-vpn-node__meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}
.afi-vpn-node__meta .fa-globe {
    font-size: 10px;
    opacity: 0.7;
}
.afi-vpn-node__domain {
    color: #2563eb;
    font-weight: 600;
}
.afi-vpn-node__domain::before {
    content: '?';
    margin-right: 6px;
    color: #cbd5e1;
    font-weight: 400;
}
.afi-vpn-node__msg {
    font-size: 11px;
    line-height: 1.4;
}
.afi-vpn-node__btn {
    flex-shrink: 0;
    margin-top: 2px;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.afi-vpn-node:hover .afi-vpn-node__btn {
    opacity: 1;
}
.afi-svc-block__foot {
    padding: 0 0 16px;
}
.afi-svc-rows {
    padding: 4px 0;
}
.afi-svc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.afi-svc-row--last {
    border-bottom: none;
}
.afi-svc-row__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}
.afi-svc-row__icon--blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.afi-svc-row__icon--purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.afi-svc-row__info {
    flex: 1;
    min-width: 0;
}
.afi-svc-row__info strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
    line-height: 1.3;
}
.afi-svc-row__info small {
    font-size: 11px;
    color: #94a3b8;
}

.afi-timeline {
    position: relative;
    padding-left: 24px;
}

.afi-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e2e8f0;
}

.afi-timeline-item {
    position: relative;
    padding-bottom: 20px;
}

.afi-timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--afi-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--afi-primary);
}

.afi-timeline-item .tl-time {
    font-size: 11px;
    color: var(--afi-gray);
}

.afi-sidebar-widget {
    padding: 16px;
    background: var(--afi-light);
    border-radius: 10px;
    margin-bottom: 16px;
}

.afi-sidebar-widget h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--afi-dark);
}

.afi-form-panel .form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 10px 14px;
    height: auto;
    min-height: 44px;
    line-height: 1.5;
}

.afi-form-panel select.form-control {
    padding: 10px 36px 10px 14px;
}

.afi-form-panel textarea.form-control {
    min-height: auto;
    line-height: 1.6;
}

.afi-form-panel .form-control:focus {
    border-color: var(--afi-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.afi-form-panel label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

/* Modal order layanan */
#orderModal .modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
}

#orderModal .modal-body {
    padding: 24px 28px;
}

#orderModal .order-modal-head {
    text-align: center;
    margin-bottom: 20px;
}

#orderModal .order-modal-head h4 {
    font-weight: 700;
    margin: 0 0 6px;
}

#orderModal .order-modal-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--afi-primary);
    line-height: 1.4;
}

#orderModal .order-modal-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--afi-gray);
}

#orderModal .order-total-box {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    line-height: 1.4;
    font-size: 20px;
    font-weight: 800;
    color: var(--afi-primary);
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

#orderModal .alert {
    line-height: 1.55;
    padding: 12px 14px;
    margin-bottom: 0;
    overflow: visible;
}

#orderModal .form-group {
    margin-bottom: 16px;
}

#orderModal .form-group small.text-muted {
    display: block;
    margin-top: 6px;
    line-height: 1.45;
}

.afi-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.afi-trust-badges span {
    font-size: 14px;
    font-weight: 700;
    color: var(--afi-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.afi-chart-placeholder {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--afi-light);
    border-radius: var(--afi-radius);
}

.afi-mini-table {
    font-size: 13px;
}

.afi-mini-table th {
    font-size: 11px !important;
}

/* Baris akun yang sedang dibuka ? jangan pakai tr.info (Porto memaksa teks sel jadi putih) */
.table > tbody > tr.afi-row-active > td {
    background-color: #eff6ff !important;
    color: inherit !important;
}

/* Tombol Perpanjang selalu hijau, termasuk di baris terpilih */
.table .btn-renew-layanan,
.table .btn-renew-layanan:hover,
.table .btn-renew-layanan:focus,
.table .btn-renew-layanan:active,
.alert .btn-renew-layanan,
.alert .btn-renew-layanan:hover,
.alert .btn-renew-layanan:focus,
.alert .btn-renew-layanan:active {
    background-color: #16a34a !important;
    border-color: #15803d !important;
    color: #fff !important;
    text-shadow: none !important;
}

/* Status VPN ? filter toolbar */
.vs-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px 24px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.vs-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.vs-toolbar-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}
.vs-server-select {
    min-width: 220px;
    max-width: 320px;
    height: 32px;
}
.vs-toolbar #vs-filter .btn.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}
.vs-toolbar-actions {
    margin-left: auto;
}
.vs-toolbar-actions .btn {
    white-space: nowrap;
}

/* Akun VPN ? filter bar */
.va-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 24px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.va-filter-bar #va-conn-filter .btn.active,
.va-filter-bar #va-status-filter .btn.active,
.va-filter-bar #uv-conn-filter .btn.active,
.va-filter-bar #uv-status-filter .btn.active {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
}
.va-filter-search {
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 440px;
}
.vd-copy-btn {
    margin-left: 4px;
    vertical-align: middle;
}

/* Akun VPN ? toolbar atas */
.va-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 28px;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.va-toolbar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.va-toolbar-label {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
}
.va-toolbar .btn-group-sm > .btn,
.va-toolbar .btn-group-sm > .va-inline-form > .btn {
    height: 32px;
    line-height: 1.2;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.va-inline-form {
    display: inline-block;
    margin: 0;
    vertical-align: top;
}
.va-toolbar .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0;
}
.va-toolbar .btn-group > .va-inline-form:not(:first-child) > .btn,
.va-toolbar .btn-group > a.btn:not(:first-child) {
    margin-left: -1px;
}
.va-toolbar .btn-group > .va-inline-form:first-child > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.va-toolbar .btn-group > .va-inline-form:not(:first-child):not(:last-of-type) > .btn,
.va-toolbar .btn-group > a.btn:not(:first-child):not(:last-child) {
    border-radius: 0;
}
.va-toolbar .btn-group > a.btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.va-row-actions {
    min-width: 260px;
    vertical-align: middle !important;
}
.va-action-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.va-action-stack .btn {
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 4px;
}
.va-action-stack .btn i {
    margin-right: 4px;
}
@media (max-width: 991px) {
    .va-action-stack .btn {
        flex: 1 1 calc(50% - 6px);
        text-align: center;
    }
}
@media (max-width: 767px) {
    .va-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .va-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .va-filter-bar .btn-group {
        display: flex;
        flex-wrap: wrap;
    }
    .va-filter-bar .btn-group .btn {
        flex: 1 1 auto;
    }
    .va-toolbar .btn-group {
        width: 100%;
    }
    .va-toolbar .btn-group .btn,
    .va-toolbar .va-inline-form {
        width: 100%;
    }
    .va-toolbar .va-inline-form .btn {
        width: 100%;
        border-radius: 4px !important;
        margin: 0 0 6px !important;
    }
}
.vpn-conn-history {
    line-height: 1.45;
    white-space: nowrap;
}
.vpn-conn-history .text-muted {
    display: inline-block;
    min-width: 72px;
}
@media (max-width: 767px) {
    .vs-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vs-server-select {
        max-width: none;
        width: 100%;
    }
    .vs-toolbar-actions {
        margin-left: 0;
    }
}

.vpn-port-action-btns .btn {
    min-width: 28px;
    padding: 4px 7px;
}

.vpn-port-action-btns .btn .fa {
    font-size: 14px;
}

.vpn-port-action-btns .btn-port-delete {
    margin-left: 2px;
}

/* Portal Cloud Hosting ? salin kredensial */
.afi-hosting-cred__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.afi-hosting-cred__row code {
    font-size: 12px;
}
.afi-hosting-pass {
    color: #b45309;
    font-weight: 600;
}
.afi-hosting-pass-alert .btn {
    margin-right: 4px;
    margin-bottom: 4px;
}

/* Portal Mikhmon ? tombol aksi tabel */
.afi-mikhmon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 260px;
}

.afi-mikhmon-actions .btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    line-height: 1.3;
    white-space: nowrap;
}

.afi-mikhmon-actions .btn .fa {
    font-size: 13px;
}

.afi-mikhmon-actions .afi-btn-delete {
    background: #dc2626;
    border-color: #b91c1c;
    color: #fff;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.35);
}

.afi-mikhmon-actions .afi-btn-delete:hover,
.afi-mikhmon-actions .afi-btn-delete:focus {
    background: #b91c1c;
    border-color: #991b1b;
    color: #fff;
}

@media (max-width: 767px) {
    .afi-mikhmon-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .afi-mikhmon-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Order Layanan Cards */
.afi-order-card {
    background: #fff;
    border-radius: var(--afi-radius);
    box-shadow: var(--afi-shadow);
    overflow: hidden;
    transition: var(--afi-transition);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}

.afi-order-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--afi-shadow-lg);
}

.afi-order-card .order-card-header {
    padding: 28px;
    text-align: center;
    color: #fff;
    font-size: 32px;
}

.afi-order-card .order-card-body {
    padding: 24px;
}

.afi-order-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.afi-order-card .order-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--afi-primary);
    margin: 12px 0;
}

.afi-order-card .order-price small {
    font-size: 13px;
    font-weight: 500;
    color: var(--afi-gray);
}

.order-vpn-server-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-vpn-server-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    background: #fff;
}

.order-vpn-server-item:hover:not(.is-disabled) {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.order-vpn-server-item.is-selected:not(.is-disabled) {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.order-vpn-server-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f8fafc;
}

.order-vpn-server-item input[type="radio"] {
    margin-top: 4px;
}

.order-vpn-server-body {
    flex: 1;
    min-width: 0;
}

/* ??? Admin Dashboard polish ??? */
.afi-admin-dashboard {
    background: #f1f5f9;
}

.afi-admin-dashboard .page-header {
    background: #fff !important;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    height: auto !important;
    min-height: 58px;
    margin: -40px -40px 28px -40px !important;
    padding: 0 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    z-index: 1;
}

.afi-admin-dashboard .page-header h2 {
    color: #0f172a !important;
    background: transparent !important;
    border-bottom: none !important;
    float: none !important;
    display: block !important;
    height: auto !important;
    line-height: 1.3 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    padding: 18px 0 !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

.afi-admin-dashboard .page-header .right-wrapper {
    float: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.afi-admin-dashboard .page-header .breadcrumbs li,
.afi-admin-dashboard .page-header .breadcrumbs a,
.afi-admin-dashboard .page-header .breadcrumbs span {
    color: #64748b !important;
    font-weight: 500 !important;
}

.afi-admin-dashboard .page-header .breadcrumbs .fa-home {
    color: var(--afi-primary) !important;
}

.afi-admin-dashboard .page-header .sidebar-right-toggle {
    color: #94a3b8 !important;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
}

.afi-admin-dashboard .page-header .sidebar-right-toggle:hover {
    color: var(--afi-primary) !important;
    border-color: var(--afi-primary);
}

.afi-dash-row {
    margin-bottom: 4px;
}

.afi-dash-row > [class*="col-"] {
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .afi-dash-row {
        display: flex;
        flex-wrap: wrap;
    }

    .afi-dash-row > [class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .afi-dash-row > [class*="col-"] > .panel,
    .afi-dash-row > [class*="col-"] > section.panel {
        flex: 1;
        width: 100%;
    }
}

.afi-panel-clean {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
    margin-bottom: 0 !important;
}

.afi-panel-clean .panel-heading {
    background: #fff !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 16px 20px !important;
}

.afi-panel-clean .panel-body {
    padding: 20px !important;
}

.afi-panel-equal {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.afi-panel-equal .panel-body {
    flex: 1;
}

.afi-services-panel .panel-heading {
    display: block;
}

.afi-services-panel .panel-subtitle {
    font-size: 12px;
    margin-top: 4px;
}

.afi-user-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.afi-user-summary__stat {
    text-align: center;
    padding: 16px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.afi-user-summary__num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.afi-user-summary__lbl {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.afi-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.afi-service-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: var(--afi-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.afi-service-tile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.afi-service-tile--featured {
    background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.afi-service-tile__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.afi-service-tile__icon--blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.afi-service-tile__icon--green  { background: linear-gradient(135deg, #10b981, #059669); }
.afi-service-tile__icon--orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.afi-service-tile__icon--purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.afi-service-tile__icon--teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.afi-service-tile__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
}

.afi-service-tile__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--afi-primary);
    margin: 0 0 8px;
}

.afi-service-tile__price span {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
}

.afi-service-tile__desc {
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
    flex: 1;
}

.afi-service-tile__btn {
    margin-top: 14px;
    border-radius: 8px !important;
}

.afi-status-panel.afi-panel-clean {
    height: 100%;
}

.afi-status-panel .panel-body.p-none {
    padding: 0 !important;
}

@media (max-width: 991px) {
    .afi-admin-dashboard .page-header {
        margin: 0 0 18px 0 !important;
        padding: 14px 18px !important;
    }

    .afi-user-summary {
        grid-template-columns: repeat(3, 1fr);
    }

    .afi-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .afi-service-grid {
        grid-template-columns: 1fr;
    }
}

.afi-stat-card .stat-icon.green { background: linear-gradient(135deg, #10b981, #059669); }

/* ??? Landing Page AFIADNS ??? */
.afi-landing-page {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.afi-landing-wrap .site-navbar-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.afi-landing-topbar {
    background: #fff !important;
    border-bottom: 1px solid #e2e8f0;
    padding: 8px 0;
}

.afi-landing-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.afi-landing-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none !important;
    line-height: 1;
}

.afi-landing-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.afi-landing-top-contacts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px 16px;
    flex: 1;
    justify-content: center;
}

.afi-landing-top-contacts li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

.afi-landing-top-contacts li a i {
    color: #2563eb;
    font-size: 14px;
}

.afi-landing-top-contacts li a:hover {
    color: #2563eb !important;
}

.afi-landing-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.afi-landing-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.afi-landing-auth-btn-outline {
    color: #334155 !important;
    background: #fff;
    border: 1px solid #cbd5e1;
}

.afi-landing-auth-btn-outline:hover {
    color: #2563eb !important;
    border-color: #2563eb;
}

.afi-landing-auth-btn-primary {
    color: #fff !important;
    background: #2563eb;
    border: 1px solid #2563eb;
}

.afi-landing-auth-btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff !important;
}

.afi-landing-nav {
    padding: 0;
}

.afi-landing-nav-inner {
    display: flex;
    align-items: center;
    min-height: 48px;
}

.afi-landing-nav .site-navigation {
    width: 100%;
}

.afi-landing-nav .site-menu {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.afi-landing-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff !important;
    text-decoration: none !important;
}

.afi-landing-menu-toggle .icon-menu {
    font-size: 24px;
    line-height: 1;
}

.afi-landing-nav .site-menu > li > a {
    font-weight: 600;
    font-size: 14px;
    padding: 12px 10px;
}

.afi-landing-hero-wrap {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    min-height: 520px;
}

.afi-landing-page .afi-landing-hero.owl-carousel {
    display: block !important;
    min-height: 520px;
}

/* Hanya untuk pre-init Owl (bukan mode simple mobile) */
.afi-landing-page .afi-landing-hero.owl-carousel:not(.owl-loaded):not(.afi-hero-simple) > .site-blocks-cover:not(:first-child) {
    display: none !important;
}

.afi-landing-page .afi-landing-hero.owl-carousel:not(.owl-loaded):not(.afi-hero-simple) > .site-blocks-cover:first-child {
    display: flex !important;
    min-height: 520px;
}

.afi-landing-hero {
    position: relative;
    width: 100%;
}

.afi-landing-hero .owl-stage-outer,
.afi-landing-hero .owl-stage,
.afi-landing-hero .owl-item {
    min-height: 520px;
    height: 520px;
}

.afi-landing-hero .site-blocks-cover {
    min-height: 520px;
    height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.afi-landing-hero .site-blocks-cover,
.afi-landing-hero .site-blocks-cover .row {
    min-height: 520px;
    height: 520px;
}

.afi-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.afi-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    animation: afiHeroKenBurnsImg 16s ease-in-out infinite alternate;
}

.afi-landing-hero .site-blocks-cover.overlay:before {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78) 0%, rgba(37, 99, 235, 0.38) 55%, rgba(6, 182, 212, 0.22) 100%);
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}

.afi-hero-shimmer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: afiHeroShimmer 5s ease-in-out infinite;
}

.afi-landing-hero .container {
    position: relative;
    z-index: 3;
}

.afi-landing-hero .owl-item:not(.active) {
    pointer-events: none;
}

.afi-landing-hero .owl-item.active .afi-hero-intro-actions a,
.afi-landing-hero .owl-item.active .afi-hero-slide a.btn,
.afi-landing-hero .owl-item.active a.afi-hero-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.afi-landing-hero .owl-stage-outer,
.afi-landing-hero .owl-stage {
    touch-action: pan-y;
}

.afi-hero-intro-actions {
    position: relative;
    z-index: 5;
}

.afi-hero-content {
    position: relative;
    z-index: 1;
}

.afi-landing-hero .owl-item.active .afi-hero-content {
    animation: afiHeroContentIn 0.8s ease both;
}

.afi-landing-hero .site-blocks-cover h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.afi-hero-mobile-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 80;
    pointer-events: none;
    height: 48px;
}

.afi-hero-mobile-prev,
.afi-hero-mobile-next {
    pointer-events: auto !important;
    position: absolute;
    bottom: 0;
    z-index: 81;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    line-height: 0;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.afi-hero-mobile-prev { left: 12px; }
.afi-hero-mobile-next { right: 12px; }

.afi-hero-mobile-prev > span,
.afi-hero-mobile-next > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    line-height: 0;
    pointer-events: none;
}

.afi-landing-hero-wrap.is-mobile-hero .afi-hero-mobile-nav {
    display: block;
}

.afi-landing-hero-wrap.is-mobile-hero .owl-nav,
.afi-landing-hero-wrap.is-simple-hero .owl-nav,
.afi-landing-hero-wrap.is-simple-hero .owl-dots {
    display: none !important;
}

.afi-landing-hero.afi-hero-simple {
    display: block !important;
    position: relative;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.afi-landing-hero-wrap.is-simple-hero .afi-landing-hero.afi-hero-simple > .site-blocks-cover.is-simple-active {
    pointer-events: auto;
}

.afi-landing-hero-wrap.is-simple-hero .afi-hero-mobile-nav,
.afi-landing-hero-wrap.is-simple-hero .afi-hero-mobile-nav button {
    pointer-events: auto !important;
}

/* Mode HP: hanya slide aktif yang tampil (harus mengalahkan rule first-child Owl) */
.afi-landing-page .afi-landing-hero.afi-hero-simple > .site-blocks-cover,
.afi-landing-page .afi-landing-hero.afi-hero-simple.owl-carousel:not(.owl-loaded) > .site-blocks-cover,
.afi-landing-page .afi-landing-hero.afi-hero-simple.owl-carousel:not(.owl-loaded) > .site-blocks-cover:first-child,
.afi-landing-page .afi-landing-hero.afi-hero-simple.owl-carousel:not(.owl-loaded) > .site-blocks-cover:not(:first-child) {
    display: none !important;
    width: 100%;
}

.afi-landing-page .afi-landing-hero.afi-hero-simple > .site-blocks-cover.is-simple-active,
.afi-landing-page .afi-landing-hero.afi-hero-simple.owl-carousel:not(.owl-loaded) > .site-blocks-cover.is-simple-active,
.afi-landing-page .afi-landing-hero.afi-hero-simple.owl-carousel:not(.owl-loaded) > .site-blocks-cover.is-simple-active:first-child {
    display: flex !important;
}

.afi-landing-hero-wrap .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 6;
    margin: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.afi-landing-hero-wrap .owl-prev,
.afi-landing-hero-wrap .owl-next {
    pointer-events: auto;
}

.afi-landing-hero-wrap .owl-prev {
    left: 12px !important;
}

.afi-landing-hero-wrap .owl-next {
    right: 12px !important;
}

.afi-landing-hero-wrap .owl-prev,
.afi-landing-hero-wrap .owl-next {
    color: #fff;
    position: absolute !important;
    top: 50%;
    padding: 0;
    height: 44px;
    width: 44px;
    border-radius: 50% !important;
    transform: translateY(-50%);
    background: rgba(15, 23, 42, 0.55) !important;
    transition: background 0.25s ease;
    line-height: 0;
    text-align: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.afi-landing-hero-wrap .owl-prev:hover,
.afi-landing-hero-wrap .owl-next:hover {
    background: rgba(37, 99, 235, 0.88) !important;
}

.afi-landing-hero-wrap .owl-prev > span,
.afi-landing-hero-wrap .owl-next > span {
    position: absolute;
    line-height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.afi-landing-hero-wrap .owl-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 6;
}

.afi-landing-hero-wrap .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.45);
    transition: transform 0.25s ease, background 0.25s ease;
}

.afi-landing-hero-wrap .owl-dots .owl-dot.active span,
.afi-landing-hero-wrap .owl-dots .owl-dot:hover span {
    background: #fff;
    transform: scale(1.2);
}

@keyframes afiHeroKenBurnsImg {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

@keyframes afiHeroShimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

@keyframes afiHeroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.afi-hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.afi-hero-lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.afi-hero-price {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
}

.afi-hero-price small {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.85;
}

.afi-section-kicker {
    display: inline-block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.afi-section-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.afi-landing-service-card,
.afi-landing-price-card,
.afi-landing-feature-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.afi-landing-service-card:hover,
.afi-landing-price-card:hover,
.afi-landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.afi-landing-service-card {
    border-top: 4px solid var(--svc-accent, #2563eb);
}

.afi-landing-service-card.is-featured,
.afi-landing-price-card.is-featured {
    border-color: #2563eb;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

.afi-landing-featured-badge,
.afi-landing-price-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

.afi-landing-price-ribbon {
    top: 0;
    right: 20px;
    border-radius: 0 0 10px 10px;
}

.afi-landing-service-icon,
.afi-landing-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 22px;
    margin-bottom: 16px;
}

.afi-landing-service-card h3,
.afi-landing-price-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.afi-landing-service-price {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}

.afi-landing-service-price span {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.afi-landing-service-desc {
    color: #64748b;
    font-size: 14px;
    min-height: 66px;
    margin-bottom: 18px;
}

.afi-landing-hosting-band {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.afi-about-section {
    padding: 72px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.afi-about-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 44px 56px 40px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.05);
}

.afi-about-panel__header {
    max-width: 680px;
    margin: 0 auto;
}

.afi-about-tagline {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
    color: #475569;
    margin: 0 auto;
}

.afi-about-body {
    max-width: 760px;
    margin: 36px auto 0;
}

.afi-about-prose .afi-about-lead,
.afi-about-prose .afi-about-copy p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-spacing: 0.02em;
}

.afi-about-highlight {
    margin: 0 0 22px;
    padding: 22px 26px;
    border-left: 3px solid #2563eb;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.07) 0%, rgba(37, 99, 235, 0) 100%);
}

.afi-about-lead {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.85;
    color: #334155;
    letter-spacing: 0.01em;
}

.afi-about-copy {
    margin: 0;
}

.afi-about-copy p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
    color: #64748b;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.afi-about-copy p:last-child {
    margin-bottom: 0;
}

.afi-about-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e2e8f0;
}

.afi-about-meta span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 7px 14px;
    border-radius: 999px;
}

@media (max-width: 767px) {
    .afi-about-panel {
        padding: 28px 22px 24px;
    }

    .afi-about-tagline {
        font-size: 16px;
    }

    .afi-about-body {
        margin-top: 28px;
    }

    .afi-about-prose .afi-about-lead,
    .afi-about-prose .afi-about-copy p {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
        word-spacing: normal;
    }

    .afi-about-lead {
        font-size: 16px;
        line-height: 1.75;
    }

    .afi-about-copy p {
        line-height: 1.8;
    }
}

.afi-landing-hosting-title {
    font-size: 24px;
    font-weight: 800;
    margin: 8px 0 12px;
    color: #0f172a;
}

.afi-landing-hosting-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.afi-landing-hosting-list li {
    font-size: 14px;
    color: #334155;
    line-height: 1.45;
}

.afi-row-muted td {
    opacity: 0.72;
    background: #f8fafc !important;
}

@media (max-width: 767px) {
    .afi-landing-hosting-list {
        grid-template-columns: 1fr;
    }
}

.afi-landing-price-period {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 14px;
}

.afi-landing-price-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.afi-landing-price-list li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.afi-landing-cta-band {
    background: linear-gradient(135deg, #1e3a8a, #2563eb 50%, #06b6d4);
    padding: 48px 0;
}

.afi-landing-contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 20px;
    border: 1px solid #e2e8f0;
    height: 100%;
}

.afi-landing-contact-card i {
    font-size: 28px;
    color: #2563eb;
    margin-bottom: 12px;
}

.afi-landing-footer {
    background: #0f172a !important;
    color: rgba(255, 255, 255, 0.75);
}

.afi-landing-footer-logo {
    height: 32px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.95;
}

.afi-landing-wrap .site-footer p {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .afi-landing-hero-wrap,
    .afi-landing-page .afi-landing-hero.owl-carousel,
    .afi-landing-page .afi-landing-hero.owl-carousel:not(.owl-loaded) > .site-blocks-cover:first-child,
    .afi-landing-hero .owl-stage-outer,
    .afi-landing-hero .owl-stage,
    .afi-landing-hero .owl-item,
    .afi-landing-hero .site-blocks-cover,
    .afi-landing-hero .site-blocks-cover .row {
        min-height: 460px;
        height: 460px;
    }

    .afi-landing-topbar-inner {
        gap: 8px;
    }

    .afi-landing-auth-btn {
        min-width: 72px;
        height: 34px;
        padding: 0 12px;
        font-size: 12px;
    }

    .afi-landing-hero-wrap.is-mobile-hero .owl-nav {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .afi-landing-logo {
        height: 30px;
        max-width: 140px;
    }

    .afi-landing-auth {
        gap: 6px;
    }

    .afi-landing-auth-btn {
        min-width: 64px;
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }

    .afi-hero-lead {
        font-size: 16px;
    }

    .afi-landing-hero-wrap,
    .afi-landing-page .afi-landing-hero.owl-carousel,
    .afi-landing-page .afi-landing-hero.owl-carousel:not(.owl-loaded) > .site-blocks-cover:first-child,
    .afi-landing-hero .owl-stage-outer,
    .afi-landing-hero .owl-stage,
    .afi-landing-hero .owl-item,
    .afi-landing-hero .site-blocks-cover,
    .afi-landing-hero .site-blocks-cover .row {
        min-height: 400px;
        height: 400px;
    }

    .afi-hero-mobile-prev,
    .afi-hero-mobile-next {
        width: 38px;
        height: 38px;
    }
}

.site-mobile-menu .site-nav-wrap a {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    touch-action: manipulation;
}

/* ========== Landing preloader (AFIADNS ? distinct from AFIA Network) ========== */
body.afi-landing-preloading {
    overflow: hidden;
}

.afi-landing-preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.afi-landing-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.afi-landing-preloader__backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, #1e3a8a 0%, #0f172a 45%, #020617 100%);
}

.afi-landing-preloader__grid {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(6, 182, 212, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.25) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: afiPreloaderGridDrift 14s linear infinite;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.afi-landing-preloader__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: min(92vw, 360px);
    padding: 24px 16px;
}

.afi-landing-preloader__orbit {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 22px;
}

.afi-landing-preloader__logo-wrap {
    position: absolute;
    inset: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.35);
    animation: afiPreloaderLogoPulse 2.4s ease-in-out infinite;
}

.afi-landing-preloader__logo {
    max-width: 72px;
    max-height: 48px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 16px rgba(6, 182, 212, 0.45));
}

.afi-landing-preloader__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -5px;
    transform-origin: 0 62px;
    animation: afiPreloaderOrbit 2.2s linear infinite;
}

.afi-landing-preloader__dot--1 {
    background: #2563eb;
    box-shadow: 0 0 12px #2563eb;
    animation-duration: 2s;
}

.afi-landing-preloader__dot--2 {
    background: #06b6d4;
    box-shadow: 0 0 12px #06b6d4;
    animation-duration: 2.8s;
    animation-delay: -0.6s;
    transform-origin: 0 -58px;
}

.afi-landing-preloader__dot--3 {
    background: #818cf8;
    box-shadow: 0 0 12px #818cf8;
    animation-duration: 3.4s;
    animation-delay: -1.2s;
    transform-origin: 62px 0;
}

.afi-landing-preloader__brand {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.afi-landing-preloader__letter {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 6vw, 2rem);
    font-weight: 800;
    color: #f8fafc;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    animation: afiPreloaderLetterPop 0.55s ease forwards;
}

.afi-landing-preloader__letter:nth-child(1) { animation-delay: 0.1s; }
.afi-landing-preloader__letter:nth-child(2) { animation-delay: 0.18s; }
.afi-landing-preloader__letter:nth-child(3) { animation-delay: 0.26s; }
.afi-landing-preloader__letter:nth-child(4) { animation-delay: 0.34s; }
.afi-landing-preloader__letter:nth-child(5) { animation-delay: 0.42s; color: #38bdf8; }
.afi-landing-preloader__letter:nth-child(6) { animation-delay: 0.5s; color: #38bdf8; }
.afi-landing-preloader__letter:nth-child(7) { animation-delay: 0.58s; color: #22d3ee; }

.afi-landing-preloader__tagline {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
    margin: 0;
}

@keyframes afiAuthAuroraShift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3%, -2%) scale(1.06); }
    100% { transform: translate(-2%, 3%) scale(1.02); }
}

@keyframes afiAuthParticleDrift {
    0%   { transform: translateY(110vh) scale(0.4); opacity: 0; }
    8%   { opacity: 0.85; }
    92%  { opacity: 0.65; }
    100% { transform: translateY(-12vh) scale(1); opacity: 0; }
}

@keyframes afiPreloaderGridDrift {
    to { background-position: 48px 48px; }
}

@keyframes afiPreloaderOrbit {
    to { transform: rotate(360deg); }
}

@keyframes afiPreloaderLogoPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(37, 99, 235, 0.35); }
    50% { transform: scale(1.04); box-shadow: 0 0 56px rgba(6, 182, 212, 0.45); }
}

@keyframes afiPreloaderLetterPop {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== Hero intro slide (photo + tech overlay) ========== */
.afi-hero-slide--intro .afi-hero-media--intro {
    background: #020617;
}

.afi-hero-slide--intro .afi-hero-media--intro img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    transform: scale(1.05);
    animation: afiHeroIntroKenBurns 22s ease-in-out infinite alternate;
    filter: saturate(1.15) contrast(1.05);
}

.afi-hero-slide--intro .afi-hero-media--intro::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.88) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(37, 99, 235, 0.35) 100%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25), transparent 45%);
    pointer-events: none;
}

.afi-hero-slide--intro .afi-hero-tech-grid,
.afi-hero-slide--intro .afi-hero-tech-glow,
.afi-hero-slide--intro .afi-hero-tech-particles {
    z-index: 2;
    pointer-events: none;
}

.afi-hero-tech-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: afiHeroGridMove 20s linear infinite;
    opacity: 0.7;
}

.afi-hero-tech-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
    animation: afiHeroGlowPulse 6s ease-in-out infinite;
}

.afi-hero-tech-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(6, 182, 212, 0.8), transparent),
        radial-gradient(2px 2px at 70% 60%, rgba(37, 99, 235, 0.7), transparent),
        radial-gradient(1px 1px at 50% 80%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(2px 2px at 85% 25%, rgba(6, 182, 212, 0.6), transparent);
    animation: afiHeroParticlesFloat 12s ease-in-out infinite alternate;
}

.afi-hero-slide--intro .afi-hero-media img {
    display: block;
}

.afi-hero-intro-kicker {
    display: inline-block;
    max-width: 100%;
    padding: 4px 12px 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: rgba(224, 242, 254, 0.92);
    background: rgba(15, 23, 42, 0.42);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-left: 2px solid rgba(6, 182, 212, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 575px) {
    .afi-hero-intro-kicker {
        font-size: 8.5px;
        padding: 3px 8px 3px 7px;
        letter-spacing: 0.07em;
        line-height: 1.35;
        max-width: min(100%, 260px);
        margin-left: auto;
        margin-right: auto;
    }
}

.afi-hero-brand {
    background: linear-gradient(90deg, #fff 0%, #7dd3fc 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.afi-hero-intro-actions .btn-outline-light {
    border-width: 2px;
}

@keyframes afiHeroIntroKenBurns {
    0% { transform: scale(1.05) translate3d(0, 0, 0); }
    100% { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes afiHeroGridMove {
    to { background-position: 56px 56px; }
}

@keyframes afiHeroGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes afiHeroParticlesFloat {
    to { transform: translateY(-12px); opacity: 0.85; }
}

/* ========== Team section ========== */
.afi-landing-team {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.afi-team-card {
    text-align: center;
    padding: 28px 20px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.afi-team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.12);
}

.afi-team-card.is-founder {
    border-color: rgba(37, 99, 235, 0.35);
    background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}

.afi-team-card.is-founder .afi-team-avatar {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.afi-team-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #334155, #475569);
    letter-spacing: 0.02em;
    overflow: hidden;
}

.afi-team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.afi-team-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0f172a;
}

.afi-team-role {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2563eb;
    margin-bottom: 10px;
}

.afi-team-desc {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.55;
}

/* Admin ? upload foto tim (drag & drop + preview) */
.afi-team-member-form {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.afi-team-member-form.is-new {
    border-style: dashed;
    background: #f8fafc;
}

.afi-team-photo-picker .control-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.afi-team-photo-drop {
    position: relative;
    display: block;
    border: 2px dashed #93c5fd;
    border-radius: 12px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    padding: 18px 14px 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin-bottom: 0;
}

.afi-team-photo-drop:hover,
.afi-team-photo-drop:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.afi-team-photo-drop.is-dragover {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25);
    transform: scale(1.01);
}

.afi-team-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.afi-team-photo-preview-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.afi-team-photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #334155, #475569);
}

.afi-team-photo-preview.is-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.04em;
}

.afi-team-photo-hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
}

.afi-team-photo-hint .fa {
    display: block;
    font-size: 22px;
    margin-bottom: 6px;
    color: #60a5fa;
}

.afi-team-photo-browse {
    color: #93c5fd;
    text-decoration: underline;
}

.afi-team-photo-clear {
    margin-top: 8px;
}

.afi-team-photo-note {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.45;
}

.afi-layanan-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 148px;
}

.afi-layanan-actions .btn {
    width: 100%;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.afi-layanan-actions .btn .fa {
    width: 16px;
    text-align: center;
    margin-right: 4px;
}

.afi-layanan-action-form {
    margin: 0;
}

/* Menu management */
.afi-menu-panel .panel-heading {
    padding: 16px 20px !important;
    background: #fff !important;
}

.afi-menu-panel__head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.afi-menu-panel__head-inner .panel-title {
    margin: 0;
    flex: 1 1 220px;
    min-width: 0;
}

.afi-menu-panel__toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}

.afi-menu-panel__toolbar-form {
    margin: 0;
}

.afi-menu-mgmt-body {
    padding: 16px 20px 20px;
}

.afi-menu-block {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.afi-menu-block--off {
    opacity: 0.72;
    background: #f8fafc;
}

.afi-menu-block__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.afi-menu-block__order {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.afi-menu-block__title {
    min-width: 0;
    line-height: 1.45;
}

.afi-menu-block__badge {
    display: inline-block;
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}

.afi-menu-block__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.afi-menu-block__empty {
    padding: 16px;
    font-size: 13px;
}

.afi-menu-block .table-responsive {
    margin: 0;
    border: none;
}

.afi-submenu-table {
    width: 100%;
    margin-bottom: 0 !important;
    border: none !important;
    table-layout: fixed;
}

.afi-submenu-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #fafbfc;
    white-space: nowrap;
}

.afi-submenu-table .afi-col-order {
    width: 72px;
}

.afi-submenu-table .afi-col-icon {
    width: 52px;
}

.afi-submenu-table .afi-col-url {
    width: 22%;
}

.afi-submenu-table .afi-col-status {
    width: 88px;
}

.afi-submenu-table .afi-col-actions {
    width: 118px;
}

.afi-submenu-table td {
    vertical-align: middle !important;
}

.afi-submenu-table .afi-url-cell code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
}

.afi-actions-cell {
    text-align: center;
    white-space: nowrap;
}

.afi-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.afi-btn-group .btn-xs {
    min-width: 28px;
    padding: 4px 7px;
}

.afi-row-off {
    opacity: 0.55;
    background: #f8fafc !important;
}

.afi-switch-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    user-select: none;
}

.afi-switch-label--sm {
    font-size: 11px;
}

.afi-switch-label input {
    margin: 0;
}

.afi-switch-text {
    min-width: 28px;
    color: #64748b;
}

.afi-switch-label input:checked + .afi-switch-text {
    color: #059669;
}

@media (max-width: 991px) {
    .afi-menu-block__head {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "order title"
            "actions actions";
    }

    .afi-menu-block__order {
        grid-area: order;
    }

    .afi-menu-block__title {
        grid-area: title;
    }

    .afi-menu-block__actions {
        grid-area: actions;
        justify-content: flex-start;
        padding-top: 4px;
    }

    .afi-submenu-table {
        table-layout: auto;
        min-width: 720px;
    }
}

@media (max-width: 767px) {
    .afi-menu-panel__head-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .afi-menu-panel__toolbar {
        justify-content: stretch;
    }

    .afi-menu-panel__toolbar .btn {
        flex: 1 1 auto;
    }
}

/* Rekap keuangan ? grafik pendapatan */
.afi-finance-chart-legend {
    font-size: 13px;
    color: #64748b;
}

.afi-finance-legend-item i {
    margin-right: 4px;
}

.afi-finance-chart-wrap {
    position: relative;
    width: 100%;
}

.afi-finance-chart {
    width: 100%;
}

.afi-finance-chart-tooltip {
    position: absolute;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}


/* ===== Public System Status (/status) ? DeluxHost-inspired, AFIADNS brand ===== */
.afi-status-html,
.afi-status-page {
  min-height: 100%;
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #e8eef8;
  background: #070b16;
}

.afi-status-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1020 0%, #070b16 40%, #050814 100%);
}
.afi-status-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
}

.afi-status-page > header,
.afi-status-page > main,
.afi-status-page > footer {
  position: relative;
  z-index: 1;
}

.afi-status-top {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 22, 0.72);
}
.afi-status-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.afi-status-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.afi-status-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.afi-status-nav {
  gap: 22px;
}
.afi-status-nav a {
  color: rgba(226, 232, 240, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.afi-status-nav a:hover,
.afi-status-nav a.is-active {
  color: #fff;
}
.afi-status-btn-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}
.afi-status-btn-login:hover {
  background: #1d4ed8;
}

.afi-status-hero {
  padding: 72px 0 36px;
}
.afi-status-pulse {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  animation: afi-status-glow 2.4s ease-in-out infinite;
}
@keyframes afi-status-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.25); }
  50% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
}
.afi-status-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.afi-status-lead {
  max-width: 540px;
  margin: 0 auto 22px;
  color: rgba(203, 213, 225, 0.85);
  font-size: 1.05rem;
}
.afi-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.afi-status-pill--maint {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #c7d2fe;
}
.afi-status-overall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
}
.afi-status-overall--ok {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.afi-status-overall--warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
  color: #fcd34d;
}
.afi-status-overall--down {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}
.afi-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.afi-status-hint {
  margin: 14px auto 0;
  max-width: 480px;
  color: rgba(148, 163, 184, 0.9);
  font-size: 14px;
}

.afi-status-metrics {
  padding: 8px 0 40px;
}
.afi-status-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 991px) {
  .afi-status-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .afi-status-metrics-grid { grid-template-columns: 1fr; }
}
.afi-status-metric {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.afi-status-metric:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}
.afi-status-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
}
.afi-status-metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.afi-status-metric-label {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
}
.afi-status-metric-label span {
  display: block;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.95);
  margin-top: 2px;
}

.afi-status-services {
  padding: 20px 0 48px;
}
.afi-status-section-head {
  margin-bottom: 22px;
}
.afi-status-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-bottom: 8px;
}
.afi-status-section-head h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.afi-status-section-head p {
  margin: 0;
  color: rgba(148, 163, 184, 0.95);
  font-size: 14px;
}

.afi-status-groups {
  display: grid;
  gap: 16px;
}
.afi-status-group {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  overflow: hidden;
  animation: afi-status-rise 0.55s ease both;
}
@keyframes afi-status-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.afi-status-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.afi-status-group-title {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.afi-status-group-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, 0.18);
  color: #93c5fd;
}
.afi-status-group-title h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 750;
}
.afi-status-group-title p {
  margin: 0;
  font-size: 13px;
  color: rgba(148, 163, 184, 0.95);
  max-width: 520px;
}

.afi-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.afi-status-badge--sm { padding: 4px 10px; font-size: 11px; }
.afi-status-badge--ok {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}
.afi-status-badge--warn {
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}
.afi-status-badge--down {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(248, 113, 113, 0.28);
}
.afi-status-badge--maint {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(129, 140, 248, 0.3);
}

.afi-status-nodes {
  list-style: none;
  margin: 0;
  padding: 0;
}
.afi-status-nodes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}
.afi-status-nodes li:first-child { border-top: 0; }
.afi-status-node-main strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}
.afi-status-node-main span {
  display: block;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 2px;
}
.afi-status-node-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.afi-status-load {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
}
.afi-status-empty {
  margin: 0;
  padding: 18px 22px;
  color: rgba(148, 163, 184, 0.85);
  font-size: 13px;
}

.afi-status-legend-wrap { padding: 0 0 48px; }
.afi-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-bottom: 14px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.9);
}
.afi-leg-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.afi-leg-dot--ok { background: #34d399; }
.afi-leg-dot--warn { background: #fbbf24; }
.afi-leg-dot--down { background: #f87171; }
.afi-leg-dot--maint { background: #818cf8; }
.afi-status-note {
  font-size: 13px;
  color: rgba(148, 163, 184, 0.85);
  max-width: 720px;
  margin: 0;
}
.afi-status-note a { color: #7dd3fc; }

.afi-status-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 28px 0 36px;
  background: rgba(2, 6, 14, 0.55);
}
.afi-status-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.afi-status-footer strong { display: block; margin-bottom: 4px; }
.afi-status-footer p { margin: 0; color: rgba(148, 163, 184, 0.9); font-size: 13px; }
.afi-status-footer-links { display: flex; gap: 16px; }
.afi-status-footer-links a {
  color: rgba(226, 232, 240, 0.8);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.afi-status-footer-links a:hover { color: #fff; }
.afi-status-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(100, 116, 139, 0.95);
}

@media (max-width: 575px) {
  .afi-status-hero { padding-top: 48px; }
  .afi-status-group-head { flex-direction: column; align-items: flex-start; }
  .afi-status-nodes li { flex-direction: column; align-items: flex-start; }
}

/* Status page ? reuse login orbit wallpaper */
.afi-status-page .afi-status-bg-motion {
  z-index: 0;
  opacity: 0.9;
}
.afi-status-page .afi-status-bg {
  z-index: 0;
}
.afi-status-page .afi-auth-bg-motion__aurora {
  opacity: 0.42;
}
.afi-status-page .afi-auth-bg-orbit {
  opacity: 0.55;
}
.afi-status-pulse .fa,
.afi-status-metric-icon .fa,
.afi-status-group-icon .fa {
  font-family: FontAwesome !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  display: inline-block;
}

.afi-pelanggan-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    white-space: nowrap;
}

.afi-pelanggan-actions form {
    display: inline-flex;
    margin: 0;
}

.afi-pelanggan-actions .btn-xs {
    min-width: 30px;
    padding: 4px 8px;
    line-height: 1.3;
}

.afi-auto-renew-form {
    display: inline-block;
    margin: 0 0 0 4px;
    vertical-align: middle;
}

.afi-mikhmon-actions .afi-auto-renew-form {
    margin-left: 4px;
}

#datatable-pelanggan td:last-child {
    white-space: nowrap;
    width: 1%;
}

.afi-flag {
    display: inline-block;
    vertical-align: -2px;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.afi-flag-loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.order-vpn-server-body .afi-flag {
    margin-right: 2px;
}

.afi-scroll-fab {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 1040;
    display: none;
    flex-direction: column;
    gap: 8px;
}
.afi-scroll-fab .btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
    line-height: 44px;
}
.afi-scroll-fab .btn[disabled] {
    opacity: 0.45;
    cursor: default;
}

/* Coming soon placeholder (Cloud VPS, dll.) */
.afi-coming-soon {
    padding: 56px 24px !important;
}
.afi-coming-soon__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12));
    color: #2563eb;
    font-size: 28px;
}
.afi-coming-soon__title {
    margin: 0 0 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
}
.afi-coming-soon__text {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
    line-height: 1.55;
}

