/* ==========================================================================
   ZoomFaucet Design System (Card 1: Royal Blue & Teal)
   Master Layout, Header, Sidebar, Dark Mode, Responsive & Shared Components
   ========================================================================== */

.justify-content-center {
    justify-content: center !important;
}

/* ---------- Header & Navigation Toggle ---------- */
.header-container {
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}
.header.navbar {
    height: 60px !important;
    padding: 0 16px !important;
    background: transparent !important;
    display: flex;
    align-items: center;
}
.zf-header {
    position: relative;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 18px;
    margin: 0;
}
.zf-header-left,
.zf-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.zf-header-right {
    flex-shrink: 0;
}
.zf-header-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    margin-left: 2px;
    transition: opacity 0.15s ease;
}
.zf-header-logo:hover {
    opacity: 0.88;
}
.zf-brand-logo-img {
    height: 32px;
    max-height: 32px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.zf-brand-logo-sm {
    height: 28px;
    max-height: 28px;
}
.zf-brand-accent {
    color: #00B8A9;
}
.zf-header-brand-name {
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    margin-left: 8px;
    line-height: 1;
    white-space: nowrap;
    user-select: none;
}

.zf-menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155 !important;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}
.zf-menu-toggle:hover {
    background: #eff6ff;
    color: #2563eb !important;
    border-color: #bfdbfe;
}

.zf-icon-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    padding: 0;
    margin: 0;
    outline: none !important;
    box-shadow: none;
    transition: all 0.15s ease;
    text-decoration: none !important;
}
.zf-icon-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb !important;
}
.zf-icon-btn > span {
    align-items: center;
    justify-content: center;
}

/* Header Balance Pill & Currency Selector */
.zf-currency-wrap {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    transition: border-color 0.15s ease;
}
.zf-currency-wrap:hover {
    border-color: #94a3b8;
}
#currency-filter {
    background: transparent;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    max-width: 175px;
}

.zf-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 4px 0 11px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    min-width: 0;
}
.zf-bal-coin {
    color: #00B8A9;
    font-size: 14px;
}
.zf-bal-tokens {
    font-size: 12.5px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}
.zf-bal-divider {
    width: 1px;
    height: 18px;
    background: #cbd5e1;
    flex-shrink: 0;
}
.zf-balance-pill #currency-filter {
    background: transparent;
    border: none;
    outline: none;
    font-size: 12.5px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    height: 32px;
    max-width: 170px;
    padding: 0 2px;
}

/* Header Theme Button */
.zf-theme-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s ease;
    outline: none !important;
    line-height: 1;
}
.zf-theme-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-1px);
}
.zf-theme-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Header Notification Button & Dropdown */
.zf-noti-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155 !important;
    position: relative;
    padding: 0 !important;
    top: 0 !important;
    transition: all 0.15s ease;
}
.zf-noti-btn:hover {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}
.zf-noti-badge {
    position: absolute;
    top: -6px !important;
    right: -6px !important;
    font-size: 10px !important;
    font-weight: 800;
    padding: 2px 5px;
    min-width: 17px;
    line-height: 1.2;
    border-radius: 10px;
}
.zf-noti-menu {
    min-width: 290px;
    max-width: calc(100vw - 20px);
    padding: 0 !important;
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14) !important;
    overflow: hidden;
    margin-top: 8px !important;
}
.zf-noti-head {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border-bottom: 1px solid #edf2f7;
}
.zf-noti-list {
    max-height: 260px;
    overflow-y: auto;
}
.zf-noti-empty {
    padding: 18px 14px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}
.zf-noti-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155 !important;
    text-decoration: none !important;
}
.zf-noti-item:last-child {
    border-bottom: none;
}
.zf-noti-item:hover {
    background: #f8fafc;
}
.zf-noti-ico {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
}
.zf-noti-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.zf-noti-msg {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}
.zf-noti-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Header Profile Chip */
.zf-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 11px 0 4px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #0f172a !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
}
.zf-user-chip:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}
.zf-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #00B8A9 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zf-user-name {
    font-size: 12.5px;
    font-weight: 700;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Sidebar Wrapper & Navigation ---------- */
.sidebar-wrapper {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    width: 245px;
    touch-action: pan-y !important;
}
#sidebar {
    background: transparent !important;
}
.sidebar-theme {
    padding: 10px 0 !important;
}
#sidebar ul.menu-categories {
    padding: 6px 6px 40px 4px !important;
    height: calc(100vh - 78px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.zf-drawer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 4px;
    background: #ffffff;
}
.zf-drawer-brand-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none !important;
}
.zf-drawer-brand-text {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.4px;
    line-height: 1;
}
.zf-menu-section {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
    padding: 14px 10px 6px 10px;
    margin: 6px 0 4px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: none !important;
    line-height: 1.2;
}
.zf-menu-section.first-section {
    border-top: none;
    padding-top: 4px;
    margin-top: 0;
}
#sidebar ul.menu-categories li.menu {
    margin: 2px 0;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8.5px 11px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    letter-spacing: 0.1px !important;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle > div:first-child {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin-right: 0 !important;
    color: #64748b !important;
    stroke-width: 2px !important;
    transition: color 0.15s ease !important;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle span {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1px !important;
    color: inherit !important;
    white-space: nowrap;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle:hover svg {
    color: #3b82f6 !important;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdfa 100%) !important;
    color: #2563eb !important;
    font-weight: 700 !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08) !important;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] span {
    font-weight: 700 !important;
    color: #1d4ed8 !important;
}
#sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] svg {
    color: #2563eb !important;
}

#sidebar ul.menu-categories ul.submenu {
    margin: 2px 0 4px 18px !important;
    padding-left: 10px !important;
    border-left: 2px solid #e2e8f0;
}
#sidebar ul.menu-categories ul.submenu > li > a {
    padding: 6px 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    border-radius: 5px;
    display: block;
}
#sidebar ul.menu-categories ul.submenu > li > a:hover {
    color: #2563eb !important;
    background: #f8fafc;
}

/* Sidebar Badges */
.zf-side-badge {
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2.5px 6px !important;
    border-radius: 4px !important;
    line-height: 1.1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    letter-spacing: 0.3px !important;
    font-family: 'Nunito', sans-serif !important;
    margin-left: 6px;
}
.zf-side-badge-mint {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.zf-side-badge-purple {
    background: #f5f3ff !important;
    color: #6d28d9 !important;
    border: 1px solid #ddd6fe !important;
}
.zf-side-badge-blue {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

/* ---------- Page Top Offset & Global Shell ---------- */
#content {
    margin-top: 84px !important;
}

/* ---------- Unified Card 1 Components ---------- */
.zf-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.zf-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.zf-stat-card .card-body {
    padding: 14px 16px;
}
.zf-stat-val {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zf-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zf-stat-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
}
.zf-stat-icon i {
    font-size: 16px;
}

.mini-stats-wid .media-body p:last-child {
    font-size: 13px;
}

.zf-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.zf-item-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.zf-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 184, 169, 0.12), 0 3px 8px rgba(15, 23, 42, 0.04);
    border-color: rgba(0, 184, 169, 0.45);
}
.zf-card-strip {
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #edf2f7;
    background: #f8fafc;
}
.zf-strip-brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    min-width: 0;
}
.zf-strip-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef2ff;
    color: #4f46e5;
    white-space: nowrap;
    flex-shrink: 0;
}
.zf-strip-tag-mint,
.zf-strip-tag-ready {
    background: #ecfdf5;
    color: #047857;
}
.zf-strip-tag-amber {
    background: #fffbeb;
    color: #b45309;
}
.zf-strip-tag-red {
    background: #fef2f2;
    color: #b91c1c;
}
.zf-card-body,
.zf-item-body {
    padding: 16px;
}
.zf-item-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    text-align: center;
}
.zf-card-title,
.zf-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 5px;
    line-height: 1.35;
}
.zf-card-desc,
.zf-item-desc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* Badges */
.zf-badges-row,
.zf-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.zf-badge-reward,
.zf-badge-mint {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.zf-badge-exp,
.zf-badge-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.zf-badge-time,
.zf-badge-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.zf-badge-warn {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.zf-badge-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.zf-badge-slate {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Action Buttons */
.zf-cta-btn,
.zf-btn-teal {
    background: linear-gradient(135deg, #00B8A9 0%, #009E91 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8.5px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(0, 184, 169, 0.2);
    transition: all 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
}
.zf-cta-btn:hover:not(:disabled),
.zf-btn-teal:hover:not(:disabled) {
    background: linear-gradient(135deg, #00cbba 0%, #00b0a2 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(0, 184, 169, 0.35);
    transform: translateY(-1px);
}
.zf-cta-btn:disabled,
.zf-cta-btn.disabled,
.zf-btn-disabled {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
    width: 100%;
    padding: 8.5px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.zf-btn-blue {
    background: linear-gradient(135deg, #4b8df8 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8.5px 14px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.22);
    transition: all 0.2s ease;
    text-decoration: none !important;
    cursor: pointer;
}
.zf-btn-blue:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 5px 12px rgba(59, 130, 246, 0.32);
}
.zf-act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none !important;
    transition: all 0.15s ease;
    cursor: pointer;
}

/* Notice Banners */
.zf-notice {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.45;
}
.zf-notice-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.zf-notice-mint { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.zf-notice-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.zf-notice-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Shared Tables */
.zf-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}
.zf-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 10px 14px;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}
.zf-table tbody td,
.zf-table tbody th {
    padding: 11px 14px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

/* Shared Segmented Text Tabs */
.zf-tabs-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    display: inline-block;
    max-width: 100%;
}
.zf-tabs-wrapper .nav-tabs {
    border-bottom: none;
    flex-wrap: wrap;
    gap: 4px;
}
.zf-tabs-wrapper .nav-link {
    border: none !important;
    border-radius: 6px !important;
    padding: 7px 14px;
    font-weight: 600;
    font-size: 13px;
    color: #64748b !important;
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.zf-tabs-wrapper .nav-link:hover {
    color: #1e293b !important;
    background: rgba(255, 255, 255, 0.7);
}
.zf-tabs-wrapper .nav-link.active {
    background: linear-gradient(135deg, #4b8df8 0%, #3b82f6 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Form Controls & Input Groups */
.zf-form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.zf-form-control {
    height: 40px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background-color: #ffffff !important;
}
select.zf-form-control {
    padding: 0 12px !important;
}
.zf-form-control:focus {
    border-color: #00B8A9 !important;
    box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.14) !important;
}
.zf-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.zf-input-group .input-group-text {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 6px;
}

/* Global Anti-Squish Captcha Wrapper */
.zf-captcha-panel {
    width: 100%;
    max-width: 390px;
    margin: 14px auto;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zf-captcha-box {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
}
.zf-captcha-box > div:first-child {
    width: 100% !important;
}
.zf-captcha-box #selectCaptcha {
    width: 100% !important;
    max-width: 330px;
    height: 38px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 auto 10px auto !important;
    display: block !important;
    padding: 0 12px !important;
}
.zf-captcha-box .captcha,
.zf-captcha-box #icaptcha {
    width: 100% !important;
}
.zf-captcha-box .iconcaptcha-widget {
    width: 100% !important;
    max-width: 330px !important;
    margin: 0 auto !important;
    display: block !important;
}
.zf-captcha-box .g-recaptcha,
.zf-captcha-box .h-captcha,
.zf-captcha-box .cf-turnstile {
    display: inline-block;
    max-width: 100%;
}

/* SweetAlert Toasts & CKEditor */
.colored-toast.swal2-icon-success { background-color: #a5dc86 !important; }
.colored-toast.swal2-icon-error { background-color: #f27474 !important; }
.colored-toast.swal2-icon-warning { background-color: #f8bb86 !important; }
.colored-toast.swal2-icon-info { background-color: #3fc3ee !important; }
.colored-toast.swal2-icon-question { background-color: #87adbd !important; }
.colored-toast .swal2-title,
.colored-toast .swal2-close,
.colored-toast .swal2-html-container {
    color: #ffffff;
}
.ck.ck-editor__main > .ck-editor__editable {
    background: var(--color-white);
}
.ck.ck-content {
    min-height: 200px;
}

/* ==========================================================================
   COMPLETE DARK MODE SYSTEM (Instant Switch via body.dark-theme)
   ========================================================================== */
body.dark-theme,
body.dark-theme .main-container,
body.dark-theme #content {
    background-color: #0b1120 !important;
    color: #e2e8f0 !important;
}
body.dark-theme .header-container {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}
body.dark-theme .zf-header-brand-name,
body.dark-theme .zf-drawer-brand-text {
    color: #f8fafc !important;
}
body.dark-theme .zf-menu-toggle,
body.dark-theme .zf-noti-btn,
body.dark-theme .zf-icon-btn,
body.dark-theme .zf-balance-pill,
body.dark-theme .zf-user-chip {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-theme .zf-icon-btn:hover,
body.dark-theme .zf-user-chip:hover {
    background: #334155 !important;
    border-color: #475569 !important;
}
body.dark-theme .zf-bal-tokens,
body.dark-theme .zf-user-name,
body.dark-theme #currency-filter {
    color: #f8fafc !important;
}
body.dark-theme .zf-bal-divider {
    background: #475569;
}
body.dark-theme .zf-balance-pill #currency-filter {
    color: #f1f5f9;
}
body.dark-theme #currency-filter option,
body.dark-theme .zf-balance-pill #currency-filter option {
    background: #1e293b;
    color: #f8fafc;
}
body.dark-theme .zf-currency-wrap {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .zf-theme-btn {
    background: #1e293b;
    border-color: #334155;
    color: #fde047;
}
body.dark-theme .zf-theme-btn:hover {
    background: #334155;
    border-color: #475569;
    color: #fef08a;
}
body.dark-theme .zf-noti-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}
body.dark-theme .zf-noti-head {
    background: #162032;
    color: #f8fafc;
    border-bottom-color: #334155;
}
body.dark-theme .zf-noti-item {
    color: #e2e8f0 !important;
    border-bottom-color: #334155;
}
body.dark-theme .zf-noti-item:hover {
    background: #162032;
}
body.dark-theme .sidebar-wrapper {
    background: #0f172a !important;
    border-right-color: #1e293b !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
}
body.dark-theme .zf-drawer-brand {
    background: #0f172a !important;
    border-bottom-color: #1e293b !important;
}
body.dark-theme .zf-menu-section {
    color: #64748b !important;
    border-top-color: #1e293b !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle {
    color: #cbd5e1 !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle svg {
    color: #94a3b8 !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle:hover {
    background: #1e293b !important;
    color: #ffffff !important;
    border-color: #334155 !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle:hover svg {
    color: #60a5fa !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(0, 184, 169, 0.15) 100%) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
}
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] span,
body.dark-theme #sidebar ul.menu-categories li.menu > a.dropdown-toggle[data-active="true"] svg {
    color: #60a5fa !important;
}
body.dark-theme .zf-side-badge-mint {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
}
body.dark-theme .zf-side-badge-purple {
    background: rgba(139, 92, 246, 0.16) !important;
    color: #c4b5fd !important;
    border-color: rgba(139, 92, 246, 0.35) !important;
}
body.dark-theme .zf-side-badge-blue {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #93c5fd !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

/* Dark Mode Cards & Shared Surfaces */
body.dark-theme .card,
body.dark-theme .dashboard-stat-card,
body.dark-theme .dash-stat-card,
body.dark-theme .dash-earn-card,
body.dark-theme .qe-card,
body.dark-theme .ref-main-card,
body.dark-theme .ref-stat-card,
body.dark-theme .partner-offer-card,
body.dark-theme .partner-ad-card,
body.dark-theme .bonus-faucet-card,
body.dark-theme .article-task-card,
body.dark-theme .wt-ad-card,
body.dark-theme .ow-card,
body.dark-theme .offerwall-card,
body.dark-theme .zf-card,
body.dark-theme .zf-stat-card,
body.dark-theme .zf-item-card {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
body.dark-theme .zf-item-card:hover {
    border-color: rgba(0, 184, 169, 0.55) !important;
}
body.dark-theme .qe-strip,
body.dark-theme .dash-card-strip,
body.dark-theme .ref-card-strip,
body.dark-theme .po-card-strip,
body.dark-theme .partner-card-strip,
body.dark-theme .bf-card-strip,
body.dark-theme .faucet-card-strip,
body.dark-theme .at-card-strip,
body.dark-theme .article-card-strip,
body.dark-theme .wt-card-strip,
body.dark-theme .ow-card-strip,
body.dark-theme .offerwall-card-strip,
body.dark-theme .zf-card-strip,
body.dark-theme .card-header {
    background: #162032 !important;
    border-bottom-color: #334155 !important;
}
body.dark-theme .qe-strip-brand,
body.dark-theme .dash-strip-brand,
body.dark-theme .ref-strip-brand,
body.dark-theme .po-strip-brand,
body.dark-theme .partner-strip-brand,
body.dark-theme .bf-strip-brand,
body.dark-theme .faucet-strip-brand,
body.dark-theme .at-strip-brand,
body.dark-theme .article-strip-brand,
body.dark-theme .wt-strip-brand,
body.dark-theme .ow-strip-brand,
body.dark-theme .offerwall-strip-brand,
body.dark-theme .zf-strip-brand,
body.dark-theme .qe-title,
body.dark-theme .dash-card-title,
body.dark-theme .ref-card-title,
body.dark-theme .po-title,
body.dark-theme .partner-ad-title,
body.dark-theme .bf-title,
body.dark-theme .faucet-card-title,
body.dark-theme .at-title,
body.dark-theme .article-card-title,
body.dark-theme .wt-ad-title,
body.dark-theme .ow-title,
body.dark-theme .zf-card-title,
body.dark-theme .zf-item-title,
body.dark-theme .card-title,
body.dark-theme .ref-user-name,
body.dark-theme .ref-analytics-name,
body.dark-theme .ref-step-title {
    color: #f8fafc !important;
}
body.dark-theme .qe-desc,
body.dark-theme .dash-card-desc,
body.dark-theme .ref-card-desc,
body.dark-theme .po-desc,
body.dark-theme .partner-ad-desc,
body.dark-theme .bf-desc,
body.dark-theme .faucet-card-desc,
body.dark-theme .at-desc,
body.dark-theme .article-card-desc,
body.dark-theme .wt-ad-desc,
body.dark-theme .ow-desc,
body.dark-theme .zf-card-desc,
body.dark-theme .zf-item-desc,
body.dark-theme .stat-label,
body.dark-theme .dash-stat-label,
body.dark-theme .ref-stat-label,
body.dark-theme .zf-stat-label,
body.dark-theme .ref-step-sub {
    color: #94a3b8 !important;
}
body.dark-theme .ref-steps-box,
body.dark-theme .ref-code-box,
body.dark-theme .ref-preview-wrap,
body.dark-theme .ref-map-box,
body.dark-theme .zf-inner-box {
    background: #0f172a !important;
    border-color: #334155 !important;
}
body.dark-theme .ref-link-input,
body.dark-theme .ref-search-input,
body.dark-theme .form-control,
body.dark-theme .zf-form-control {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}
body.dark-theme .ref-code-text {
    color: #cbd5e1 !important;
}
body.dark-theme .ref-legend-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}
body.dark-theme .ref-progress-track,
body.dark-theme .zf-progress-track {
    background: #0f172a !important;
}
body.dark-theme .ref-table thead th,
body.dark-theme .zf-table thead th,
body.dark-theme .table thead th {
    background: #162032 !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}
body.dark-theme .ref-table tbody td,
body.dark-theme .zf-table tbody td,
body.dark-theme .table tbody td,
body.dark-theme .table tbody th {
    color: #e2e8f0 !important;
    border-bottom-color: #1e293b !important;
    border-top-color: #1e293b !important;
}
body.dark-theme .ref-table tbody tr:hover,
body.dark-theme .zf-table tbody tr:hover {
    background: #162032 !important;
}
body.dark-theme .antibotlinks {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 2px;
    display: inline-block;
}
body.dark-theme .zf-strip-tag { background: rgba(99, 102, 241, 0.18) !important; color: #a5b4fc !important; }
body.dark-theme .zf-strip-tag-mint,
body.dark-theme .zf-strip-tag-ready { background: rgba(16, 185, 129, 0.18) !important; color: #34d399 !important; }
body.dark-theme .zf-strip-tag-amber { background: rgba(245, 158, 11, 0.18) !important; color: #fcd34d !important; }
body.dark-theme .zf-strip-tag-red { background: rgba(239, 68, 68, 0.18) !important; color: #fca5a5 !important; }
body.dark-theme .zf-badge-reward,
body.dark-theme .zf-badge-mint { background: rgba(16, 185, 129, 0.14) !important; color: #34d399 !important; border-color: rgba(16, 185, 129, 0.3) !important; }
body.dark-theme .zf-badge-exp,
body.dark-theme .zf-badge-purple { background: rgba(139, 92, 246, 0.15) !important; color: #c4b5fd !important; border-color: rgba(139, 92, 246, 0.3) !important; }
body.dark-theme .zf-badge-time,
body.dark-theme .zf-badge-blue { background: rgba(59, 130, 246, 0.15) !important; color: #93c5fd !important; border-color: rgba(59, 130, 246, 0.3) !important; }
body.dark-theme .zf-badge-warn { background: rgba(245, 158, 11, 0.15) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, 0.3) !important; }
body.dark-theme .zf-badge-danger { background: rgba(239, 68, 68, 0.15) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, 0.3) !important; }
body.dark-theme .zf-badge-slate { background: #0f172a !important; color: #cbd5e1 !important; border-color: #334155 !important; }
body.dark-theme .zf-notice-info { background: rgba(59, 130, 246, 0.12) !important; color: #93c5fd !important; border-color: rgba(59, 130, 246, 0.3) !important; }
body.dark-theme .zf-notice-mint { background: rgba(16, 185, 129, 0.12) !important; color: #6ee7b7 !important; border-color: rgba(16, 185, 129, 0.3) !important; }
body.dark-theme .zf-notice-warn { background: rgba(245, 158, 11, 0.12) !important; color: #fcd34d !important; border-color: rgba(245, 158, 11, 0.3) !important; }
body.dark-theme .zf-notice-danger { background: rgba(239, 68, 68, 0.12) !important; color: #fca5a5 !important; border-color: rgba(239, 68, 68, 0.3) !important; }
body.dark-theme .zf-tabs-wrapper { background: #1e293b !important; border-color: #334155 !important; }
body.dark-theme .zf-tabs-wrapper .nav-link { color: #94a3b8 !important; }
body.dark-theme .zf-tabs-wrapper .nav-link:hover { color: #ffffff !important; background: rgba(255, 255, 255, 0.06) !important; }
body.dark-theme .zf-form-label { color: #94a3b8 !important; }
body.dark-theme .zf-input-group .input-group-text { background: #162032 !important; border-color: #334155 !important; color: #cbd5e1 !important; }
body.dark-theme .zf-captcha-panel { background: #0f172a !important; border-color: #334155 !important; }
body.dark-theme .zf-captcha-box #selectCaptcha { background-color: #1e293b !important; border-color: #334155 !important; color: #f8fafc !important; }
body.dark-theme .modal-content { background: #1e293b !important; border: 1px solid #334155 !important; color: #f1f5f9 !important; }
body.dark-theme .modal-header { background: #162032 !important; border-bottom-color: #334155 !important; }
body.dark-theme .modal-title,
body.dark-theme .close { color: #f8fafc !important; }
body.dark-theme .zf-btn-disabled {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #64748b !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT & MOBILE BREAKPOINTS
   ========================================================================== */
@media (min-width: 768px) {
    .zf-balance-pill {
        position: absolute;
        left: 50%;
        top: 12px;
        transform: translateX(-50%);
    }
}

@media (min-width: 992px) {
    .sidebarCollapse { display: none !important; }
    .zf-header-logo { display: inline-flex !important; }
    .overlay, .overlay.show { display: none !important; }
    #container > .sidebar-wrapper {
        left: 0 !important;
        visibility: visible !important;
        box-shadow: none !important;
    }
    .sidebar-wrapper, .sidebar-theme { width: 230px !important; }
    #container > #content { margin-left: 230px !important; }
    .layout-px-spacing,
    .sidebar-closed .layout-px-spacing { padding: 0 16px 0 10px !important; }
    .zf-balance-pill {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 991px) {
    #content { margin-left: 0 !important; }
    .zf-header-logo,
    .zf-header-brand-name { display: none !important; }
    .sidebar-wrapper, .sidebar-theme {
        width: min(264px, 84vw) !important;
        top: 0 !important;
    }
    .sidebar-wrapper { transition: left 0.3s ease, visibility 0.3s ease !important; }
    #container:not(.sbar-open) > .sidebar-wrapper {
        left: -300px !important;
        visibility: hidden !important;
        box-shadow: none !important;
    }
    #container.sbar-open > .sidebar-wrapper {
        left: 0 !important;
        visibility: visible !important;
        box-shadow: 10px 0 30px rgba(15, 23, 42, 0.22) !important;
    }
    #sidebar ul.menu-categories {
        height: calc(100vh - 75px) !important;
        padding-top: 6px !important;
    }
    .layout-px-spacing { padding: 0 16px !important; }
    .zf-header { padding: 0 14px; }
}

@media (max-width: 767px) {
    .zf-user-name { display: none; }
    .zf-user-chip { padding: 0 4px; }
    .layout-px-spacing { padding: 0 14px !important; }
}

@media (max-width: 576px) {
    .zf-stat-card .card-body { padding: 12px 10px !important; }
    .zf-stat-val { font-size: 16.5px !important; }
    .zf-stat-label { font-size: 11px !important; }
    .zf-stat-icon { width: 32px !important; height: 32px !important; min-width: 32px !important; }
    .zf-stat-icon i { font-size: 14px !important; }
    .zf-tabs-wrapper { display: block; width: 100%; }
    .zf-tabs-wrapper .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .zf-tabs-wrapper .nav-link { padding: 6px 10px; font-size: 12px; white-space: nowrap; }
    .zf-captcha-panel { padding: 12px 10px; }

    /* Shared Legacy Mini Stats Card Responsive Normalization */
    .mini-stats-wid .card-body { padding: 12px 10px !important; }
    .mini-stats-wid .media {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .mini-stats-wid .media-body {
        min-width: 0 !important;
        overflow: hidden !important;
    }
    .mini-stats-wid .media-body p:first-child {
        font-size: 18px !important;
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mini-stats-wid .media-body p:last-child {
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .mini-stats-wid .avatar-sm {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        margin-left: 6px !important;
    }
    .mini-stats-wid .avatar-sm i {
        font-size: 14px !important;
    }
}

@media (max-width: 575px) {
    #content { margin-top: 78px !important; }
    .zf-header { gap: 6px; padding: 0 10px; }
    .zf-header-left, .zf-header-right { gap: 6px; }
    .zf-bal-tokens, .zf-bal-divider { display: none; }
    .zf-balance-pill { padding: 0 2px 0 9px; gap: 6px; }
    .zf-balance-pill #currency-filter { max-width: 160px; font-size: 12px; }
    .zf-icon-btn { width: 34px; height: 34px; min-width: 34px; }
    .zf-user-chip { height: 34px; }
    .layout-px-spacing { padding: 0 12px !important; }
    .zf-noti-menu {
        position: fixed !important;
        top: 62px !important;
        left: 10px !important;
        right: 10px !important;
        width: auto;
        min-width: 0;
        transform: none !important;
    }
}

@media (max-width: 360px) {
    .zf-balance-pill #currency-filter { max-width: 142px; }
    .zf-bal-coin { display: none; }
    .zf-balance-pill { padding-left: 4px; }
}
