/**
 * ID Card Search — professional UI system (user + admin)
 */

/* --- Design tokens --- */
:root {
    --app-radius: 14px;
    --app-radius-sm: 10px;
    --user-primary: #4f46e5;
    --user-primary-dark: #4338ca;
    --user-accent: #06b6d4;
    --user-surface: #ffffff;
    --user-page-bg: #f1f5f9;
    --user-text: #0f172a;
    --user-muted: #64748b;
    --user-border: rgba(15, 23, 42, 0.08);
    --user-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
    --user-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --coin-gold: #fbbf24;
    --coin-gold-deep: #d97706;
    --admin-bg: #0f172a;
    --admin-sidebar: #1e293b;
    --admin-surface: #f8fafc;
    --admin-accent: #10b981;
}

/* --- Base --- */
.app-user body,
body.app-shell.app-user {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    color: var(--user-text);
    background-color: var(--user-page-bg);
    min-height: 100vh;
}

.app-admin body,
body.app-shell.app-admin {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

body.rtl {
    direction: rtl;
    text-align: right;
}

/* User portal: mesh background */
.app-user-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 70, 229, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(6, 182, 212, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(79, 70, 229, 0.1), transparent),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    pointer-events: none;
}

/* --- User sidebar (logged-in layout) --- */
.user-app-layout {
    position: relative;
}

.user-sidebar {
    width: 268px;
    min-height: 100vh;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 42%, #1e293b 100%);
    color: #e2e8f0;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
}

body.rtl .user-sidebar {
    box-shadow: -4px 0 24px rgba(15, 23, 42, 0.12);
}

.user-sidebar-offcanvas {
    width: min(300px, 88vw) !important;
    background: linear-gradient(180deg, #1e1b4b 0%, #312e81 42%, #1e293b 100%) !important;
}

.user-sidebar-brand {
    padding: 1.25rem 1rem 0.5rem;
}

.user-sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.brand-mark--sidebar {
    width: 36px;
    height: 36px;
    border-radius: 0;
}

.brand-mark svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

.user-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: rgba(226, 232, 240, 0.85) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.2s, color 0.2s;
    white-space: normal;
    word-break: break-word;
}

.user-sidebar-link i {
    font-size: 1.15rem;
    opacity: 0.9;
}

.user-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.user-sidebar-link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.user-sidebar-select {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f1f5f9;
    border-radius: 8px;
}

.user-sidebar-logout {
    border-radius: 10px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff !important;
}

.user-sidebar-logout:hover {
    background: rgba(248, 113, 113, 0.25);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fff !important;
}

.user-main-column {
    background: transparent;
}

.user-mobile-topbar {
    z-index: 1020;
    backdrop-filter: blur(10px);
}

.user-app-footer {
    margin-top: auto;
}

/* User panel — WhatsApp / contact block (site-wide footer) */
.user-footer-contact {
    width: 100%;
}

.user-footer-contact__inner {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.user-footer-contact__card {
    background: linear-gradient(155deg, rgba(15, 23, 42, 0.98) 0%, rgba(2, 8, 23, 0.96) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 18px;
    padding: 1.35rem 1.5rem;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.user-footer-contact__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #f8fafc;
    margin-bottom: 0.65rem;
}

.user-footer-contact__icon {
    font-size: 1.35rem;
    color: #22c55e;
    flex-shrink: 0;
}

.user-footer-contact__channel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #38bdf8 !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.user-footer-contact__channel-link:hover {
    color: #7dd3fc !important;
    text-decoration: underline;
}

.user-footer-contact__hint {
    margin: 1rem 0 0.85rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.user-footer-contact__actions {
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 576px) {
    .user-footer-contact__actions {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

.user-footer-contact__wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    border: 1px solid rgba(187, 247, 208, 0.45);
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.user-footer-contact__wa-btn:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

.user-footer-contact__wa-btn i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.user-footer-copyright {
    color: #93a4bf;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
}

/* User panel — floating WhatsApp (channel + numbers) */
.user-wa-fab {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    font-family: inherit;
}

[dir="rtl"] .user-wa-fab {
    align-items: flex-start;
}

.user-wa-fab__panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    min-width: min(18rem, calc(100vw - 2.5rem));
    animation: userWaFabIn 0.22s ease-out;
}

@keyframes userWaFabIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-wa-fab__chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    text-decoration: none !important;
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.97);
    border: 2px solid #22c55e;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.user-wa-fab__chip:hover {
    color: #0f172a !important;
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(34, 197, 94, 0.22);
}

.user-wa-fab__chip > .bi {
    font-size: 1.35rem;
    color: #16a34a;
    flex-shrink: 0;
}

.user-wa-fab__chip--wa > .bi {
    color: #25d366;
}

.user-wa-fab__chip-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    min-width: 0;
    text-align: start;
}

.user-wa-fab__chip-title {
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.25;
}

.user-wa-fab__chip-sub {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
    word-break: break-word;
}

.user-wa-fab__main {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
    box-shadow:
        0 4px 18px rgba(37, 211, 102, 0.45),
        0 0 0 3px rgba(255, 255, 255, 0.85);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.user-wa-fab__main:hover {
    filter: brightness(1.06);
    transform: scale(1.05);
    box-shadow:
        0 6px 22px rgba(37, 211, 102, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.9);
}

.user-wa-fab__main .bi {
    font-size: 1.65rem;
}

.user-wa-fab--open .user-wa-fab__main {
    box-shadow:
        0 4px 18px rgba(18, 140, 126, 0.55),
        0 0 0 3px rgba(187, 247, 208, 0.9);
}

@media (min-width: 992px) {
    .user-wa-fab {
        inset-inline-end: 1.35rem;
        bottom: 1.35rem;
    }
}

/* --- User footer --- */
.app-footer {
    margin-top: auto;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--user-muted);
}

/* --- Auth pages (user) --- */
.auth-split {
    min-height: calc(100vh - 120px);
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.auth-split::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(2, 6, 23, 0.72) 0%, rgba(15, 23, 42, 0.55) 40%, rgba(30, 41, 59, 0.68) 100%),
        var(--auth-login-bg-image, radial-gradient(circle at 20% 10%, #334155 0%, #0f172a 55%, #020617 100%));
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.auth-split > * {
    position: relative;
    z-index: 1;
}

.auth-hero {
    display: none;
    background: transparent;
    color: #e0e7ff;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-hero {
        display: flex;
    }
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.35), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.25), transparent 40%);
    animation: hero-shift 12s ease-in-out infinite alternate;
}

@keyframes hero-shift {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.85;
    }
}

.auth-hero-inner {
    position: relative;
    z-index: 1;
}

.auth-hero h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.75rem;
}

.auth-hero p {
    opacity: 0.85;
    max-width: 28rem;
    line-height: 1.6;
}

.auth-hero-services-list {
    margin: 1.25rem 0 0;
    padding-left: 1.1rem;
    max-width: 32rem;
    color: #e2e8f0;
}

.auth-hero-services-list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.35;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    flex: 1;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--user-surface);
    border-radius: var(--app-radius);
    box-shadow: var(--user-shadow-lg);
    border: 1px solid var(--user-border);
    padding: 2rem 2.25rem;
    animation: card-in 0.5s ease-out;
}

.auth-card--liquid {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.auth-card--liquid .h4,
.auth-card--liquid .form-label,
.auth-card--liquid .text-muted {
    color: #e2e8f0 !important;
}

.auth-card--liquid .form-control {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(148, 163, 184, 0.45);
    color: #f8fafc;
}

.auth-card--liquid .form-control::placeholder {
    color: rgba(226, 232, 240, 0.7);
}

.auth-card--liquid .form-control:focus {
    border-color: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.6);
}

@media (max-width: 991.98px) {
    .user-sidebar-logo {
        font-size: 0.95rem;
        gap: 0.6rem;
    }

    .user-sidebar-link {
        font-size: 0.9rem;
        padding: 0.58rem 0.78rem;
    }

    .user-main .table-responsive .table {
        font-size: 0.86rem;
    }
}

@media (max-width: 575.98px) {
    .page-heading {
        font-size: 1.28rem;
    }

    .page-sub {
        font-size: 0.86rem;
    }

    .cdr-coin-pill {
        width: 100%;
        justify-content: center;
    }

    .panel-search,
    .liquid-glass-panel {
        border-radius: 12px;
    }

    .user-main .table-responsive .table {
        font-size: 0.82rem;
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card .form-control {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border-color: #e2e8f0;
}

.auth-card .form-control:focus {
    border-color: var(--user-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.auth-card .btn-primary {
    border-radius: 10px;
    padding: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.auth-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* --- Dashboard --- */
.page-heading {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--user-text);
    margin-bottom: 0.25rem;
}

.page-sub {
    color: var(--user-muted);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Coin wallet */
.coin-wallet {
    position: relative;
    border-radius: var(--app-radius);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e293b 100%);
    color: #f8fafc;
    padding: 1.5rem 1.5rem 1.75rem;
    overflow: hidden;
    box-shadow: var(--user-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.coin-wallet::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15), transparent 70%);
    pointer-events: none;
}

.coin-wallet-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.coin-stack {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.coin-disc {
    position: absolute;
    width: 72px;
    height: 72px;
    left: 50%;
    margin-left: -36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fde68a 0%, var(--coin-gold) 40%, var(--coin-gold-deep) 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.5),
        inset 0 -2px 6px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(217, 119, 6, 0.4);
    display: grid;
    place-items: center;
}

.coin-num {
    position: relative;
    z-index: 2;
    font-size: 1.35rem;
    line-height: 1;
    color: #92400e;
}

.coin-disc.coin-1 {
    top: 0;
    z-index: 3;
    animation: coin-float 3s ease-in-out infinite;
}

.coin-disc.coin-2 {
    top: 10px;
    z-index: 2;
    opacity: 0.92;
    transform: scale(0.95);
    animation: coin-float 3s ease-in-out 0.15s infinite;
}

.coin-disc.coin-3 {
    top: 20px;
    z-index: 1;
    opacity: 0.85;
    transform: scale(0.9);
    animation: coin-float 3s ease-in-out 0.3s infinite;
}

@keyframes coin-float {
    0%,
    100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-4px) rotateY(8deg);
    }
}

.coin-disc.coin-2 {
    animation: coin-float-2 3s ease-in-out infinite;
}

.coin-disc.coin-3 {
    animation: coin-float-3 3s ease-in-out infinite;
}

@keyframes coin-float-2 {
    0%,
    100% {
        transform: translateY(10px) scale(0.95);
    }
    50% {
        transform: translateY(6px) scale(0.95);
    }
}

@keyframes coin-float-3 {
    0%,
    100% {
        transform: translateY(20px) scale(0.9);
    }
    50% {
        transform: translateY(16px) scale(0.9);
    }
}

.coin-shine {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 50%;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.45) 50%, transparent 60%);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shine {
    0%,
    100% {
        opacity: 0.3;
        transform: translateX(-30%);
    }
    50% {
        opacity: 0.6;
        transform: translateX(30%);
    }
}

.coin-balance-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
    margin-bottom: 0.35rem;
}

.coin-balance-value {
    font-size: clamp(2.25rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 20px rgba(251, 191, 36, 0.25);
}

.coin-balance-value.is-updating {
    animation: pulse-num 0.4s ease;
}

@keyframes pulse-num {
    50% {
        transform: scale(1.05);
        color: #fde68a;
    }
}

/* Search panel */
.panel-search {
    border-radius: var(--app-radius);
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    box-shadow: var(--user-shadow);
    padding: 1.5rem 1.75rem;
}

.panel-search .form-control-lg {
    border-radius: 12px;
    border-color: #e2e8f0;
}

.panel-search .btn-search {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--user-primary) 0%, var(--user-primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.panel-search .btn-search:disabled {
    opacity: 0.55;
    transform: none;
}

/* Result table */
.result-panel {
    border-radius: var(--app-radius);
    border: 1px solid var(--user-border);
    box-shadow: var(--user-shadow);
    overflow: hidden;
    animation: card-in 0.45s ease-out;
}

.result-panel .table {
    margin-bottom: 0;
}

.result-panel .table th {
    font-weight: 600;
    color: var(--user-muted);
    font-size: 0.8125rem;
}

.result-panel tr.table-warning {
    --bs-table-bg: rgba(251, 191, 36, 0.2);
}

/* Professional search result table */
.search-result-panel .table-responsive {
    background: #fff;
    overflow-x: auto;
}

.search-result-panel .search-result-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Export row — light toolbar fallback (non–dark-theme pages) */
.search-result-toolbar--exports .btn-export-csv {
    color: #334155;
    background: #f8fafc;
    border: 1px solid #64748b;
}

.search-result-toolbar--exports .btn-export-csv:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #475569;
}

.search-result-toolbar--exports .btn-export-pdf {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #dc2626;
}

.search-result-toolbar--exports .btn-export-pdf:hover {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #b91c1c;
}

.search-result-panel .search-result-table td.search-col-action .btn-fard-record {
    color: #0b1220;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.55);
    background: linear-gradient(145deg, #38bdf8 0%, #6366f1 100%);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.22);
}

.search-result-panel .search-result-table td.search-col-action .btn-fard-record:hover {
    filter: brightness(1.05);
    border-color: #6366f1;
}

.search-result-panel .search-result-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.search-result-panel .search-result-table th.search-col,
.search-result-panel .search-result-table td.search-col {
    min-width: 9rem;
    max-width: 24rem;
}

.search-result-panel .search-result-table th.search-col:first-child,
.search-result-panel .search-result-table td.search-col:first-child {
    min-width: 3.5rem;
    max-width: none;
    width: auto;
}

.search-result-panel .search-result-table thead th {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #e5e7eb;
    border-bottom: 2px solid rgba(15, 23, 42, 0.12);
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.25;
    padding: 0.75rem 0.85rem;
    word-break: normal;
    overflow-wrap: normal;
}

/* Single-language column heading (en OR ur per site language) */
.col-heading-label {
    display: block;
    font-weight: 800;
    font-size: 0.88rem;
    color: #0f172a;
    line-height: 1.25;
    white-space: inherit;
    word-break: normal;
    overflow-wrap: normal;
}

.search-result-panel .search-result-table tbody td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.35;
    padding: 0.75rem 0.85rem;
    font-size: 0.925rem;
    color: #0f172a;
}

@media (min-width: 992px) {
    .search-result-panel .search-result-table thead th,
    .search-result-panel .search-result-table tbody td {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

.search-result-panel .search-result-table tbody td code {
    white-space: nowrap;
}

body.rtl .search-result-panel .search-result-table thead th,
body.rtl .search-result-panel .search-result-table tbody td {
    text-align: right;
}

.search-result-panel .search-result-table th:first-child,
.search-result-panel .search-result-table td:first-child {
    white-space: nowrap;
    text-align: center;
    color: var(--user-muted);
}

.search-result-panel .search-result-table thead th:first-child {
    background: #f1f5f9;
}

/* Mobile: stacked rows (no compressed text) */
@media (max-width: 768px) {
    .search-result-panel .search-result-toolbar {
        position: static;
    }

    .search-result-panel .search-result-table {
        min-width: 0;
        border: 0;
    }

    .search-result-panel .search-result-table thead {
        display: none;
    }

    .search-result-panel .search-result-table tbody,
    .search-result-panel .search-result-table tr,
    .search-result-panel .search-result-table td {
        display: block;
        width: 100%;
    }

    .search-result-panel .search-result-table tbody tr {
        border: 1px solid var(--user-border);
        border-radius: 14px;
        margin: 0.75rem;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    }

    .search-result-panel .search-result-table td {
        border: 0;
        border-bottom: 1px dashed rgba(15, 23, 42, 0.12);
        padding: 0.75rem 0.9rem;
    }

    .search-result-panel .search-result-table td:last-child {
        border-bottom: 0;
    }

    .search-result-panel .search-result-table td:first-child {
        text-align: start;
        background: #f8fafc;
        font-weight: 700;
    }

    .search-result-panel .search-result-table td[data-label] {
        display: flex;
        gap: 0.75rem;
        align-items: flex-start;
        justify-content: space-between;
    }

    .search-result-panel .search-result-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--user-muted);
        font-size: 0.8rem;
        flex: 0 0 42%;
        max-width: 42%;
    }

    .search-result-panel .search-result-table td[data-label] {
        flex: 1;
    }
}

/* Profile cards */
.glass-card {
    border-radius: var(--app-radius);
    background: var(--user-surface);
    border: 1px solid var(--user-border);
    box-shadow: var(--user-shadow);
}

/* Profile — liquid glass layout */
.profile-liquid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.liquid-glass-card {
    position: relative;
    border-radius: 22px;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.38) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(165%);
    -webkit-backdrop-filter: blur(16px) saturate(165%);
    overflow: hidden;
}

.liquid-glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 80% at 10% 0%, rgba(79, 70, 229, 0.12), transparent 55%);
    pointer-events: none;
}

.liquid-glass-card > * {
    position: relative;
    z-index: 1;
}

.liquid-glass-card--wide {
    grid-column: 1 / -1;
}

.liquid-glass-card--accent {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(224, 231, 255, 0.55) 100%);
}

.liquid-glass-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.liquid-glass-card__icon--sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.letter-spacing {
    letter-spacing: 0.06em;
}

.pricing-chip {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    height: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pricing-chip--family {
    background: linear-gradient(180deg, rgba(224, 231, 255, 0.75) 0%, rgba(255, 255, 255, 0.45) 100%);
}

.pricing-chip--fard {
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.85) 0%, rgba(255, 255, 255, 0.45) 100%);
}

.pricing-chip__coins {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--user-primary);
}

.pricing-chip--fard .pricing-chip__coins {
    color: #334155;
}

.pricing-chip__label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.pricing-chip__hint {
    margin-top: 0.35rem;
    line-height: 1.35;
}

/* Family / Fard hub panels */
.liquid-glass-panel {
    border-radius: var(--app-radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--user-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.list-group-flush--glass .list-group-item:last-child {
    border-bottom: 0;
}

/* --- Admin layout --- */
.admin-shell {
    min-height: 100vh;
    background: var(--admin-surface);
}

.admin-topbar {
    background: linear-gradient(180deg, var(--admin-bg) 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.65rem 0;
}

.admin-topbar .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--admin-accent);
    display: grid;
    place-items: center;
}

.admin-sidebar {
    background: var(--admin-sidebar);
    min-height: calc(100vh - 56px);
    padding: 1rem 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar .nav-link {
    color: #94a3b8 !important;
    font-weight: 500;
    padding: 0.65rem 0.85rem !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: background 0.2s, color 0.2s;
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9 !important;
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:focus {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7 !important;
}

.admin-sidebar .nav-link i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-content {
    padding: 1.75rem 1.5rem 2.5rem;
}

.stat-card-admin {
    border-radius: var(--app-radius);
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 1.35rem 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.stat-card-admin .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-card-admin .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-card-admin .stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Admin login (guest) */
.admin-login-body {
    min-height: 100vh;
    background: linear-gradient(160deg, #020617 0%, #1e1b4b 45%, #0f172a 100%);
    position: relative;
    overflow-x: hidden;
}

.admin-login-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -10%, rgba(16, 185, 129, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(99, 102, 241, 0.15), transparent);
    pointer-events: none;
}

.admin-login-nav {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(10px);
}

.admin-login-card {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--app-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
    padding: 2.5rem 2.25rem;
    animation: card-in 0.55s ease-out;
}

.admin-login-card .form-control {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    border-radius: 10px;
}

.admin-login-card .form-control:focus {
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.admin-login-card .btn-light {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.65rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: none;
    color: #065f46;
}

.admin-login-card .btn-light:hover {
    filter: brightness(1.05);
}

.admin-secure-note {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 1.25rem;
    line-height: 1.5;
}

.admin-secure-note i {
    color: var(--admin-accent);
}

/* Tables */
.table-admin-wrap {
    border-radius: var(--app-radius);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

/* --- Admin: data records — horizontal “slide” scroll, readable headers --- */
.admin-data-records .admin-records-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: min(78vh, 960px);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.admin-data-records .admin-records-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-data-records .admin-records-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #e8eef4;
    box-shadow: 0 1px 0 #cbd5e1;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.2;
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 700;
    word-break: normal;
    overflow-wrap: normal;
    border-bottom: 2px solid #cbd5e1;
}

.admin-data-records .admin-records-table thead th .col-heading-label {
    white-space: inherit;
}

.admin-data-records .admin-records-table thead th.admin-records-th-id {
    min-width: 4.25rem;
    width: auto;
    text-align: center;
}

.admin-data-records .admin-records-table thead th.admin-records-th-cnic {
    min-width: 10.5rem;
}

.admin-data-records .admin-records-table thead th.admin-records-th-data {
    min-width: 11.5rem;
}

.admin-data-records .admin-records-table thead th.admin-records-th-time {
    min-width: 10.5rem;
}

.admin-data-records .admin-records-table thead th.admin-records-th-actions {
    min-width: 6.5rem;
    text-align: center;
}

/* Sticky row ID while scrolling horizontally (inline-start = LTR left, RTL right) */
.admin-data-records .admin-records-table thead th.admin-records-th-id,
.admin-data-records .admin-records-table tbody td:first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 5;
    box-shadow: 1px 0 0 rgba(15, 23, 42, 0.06);
}

body.rtl .admin-data-records .admin-records-table thead th.admin-records-th-id,
body.rtl .admin-data-records .admin-records-table tbody td:first-child {
    box-shadow: -1px 0 0 rgba(15, 23, 42, 0.06);
}

.admin-data-records .admin-records-table thead th.admin-records-th-id {
    z-index: 7;
    background: #dce4ec;
}

.admin-data-records .admin-records-table tbody td:first-child {
    background: #fff;
    font-weight: 600;
    color: #64748b;
}

.admin-data-records .admin-records-table.table-hover > tbody > tr:hover > td:first-child {
    background: #f1f5f9;
}

.admin-data-records .admin-records-table tbody td {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    vertical-align: middle;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.35;
}

/* Long Urdu / addresses: allow wrap only in data cells (not headers) */
.admin-data-records .admin-records-table tbody td.admin-records-cell-data {
    white-space: normal;
    max-width: 20rem;
    word-break: normal;
    overflow-wrap: break-word;
}

.admin-data-records .admin-records-filter-label .col-heading-label {
    font-weight: 700;
    font-size: 0.8rem;
}

body.rtl .admin-data-records .admin-records-table thead th,
body.rtl .admin-data-records .admin-records-table tbody td {
    text-align: right;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 1rem 0.85rem 2rem;
    }

    .admin-data-records .admin-records-table thead th.admin-records-th-id,
    .admin-data-records .admin-records-table tbody td:first-child {
        position: static;
        box-shadow: none;
    }

    .admin-data-records .admin-records-scroll {
        max-height: none;
        overflow: visible;
    }

    .admin-data-records .admin-records-table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .admin-data-records .admin-records-table thead {
        display: none;
    }

    .admin-data-records .admin-records-table tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: var(--app-radius-sm);
        margin-bottom: 0.85rem;
        background: #fff;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
        overflow: hidden;
    }

    .admin-data-records .admin-records-table tbody td {
        display: flex;
        gap: 0.65rem;
        align-items: flex-start;
        justify-content: space-between;
        width: 100% !important;
        border-bottom: 1px dashed rgba(15, 23, 42, 0.1);
        padding: 0.65rem 0.85rem;
    }

    .admin-data-records .admin-records-table tbody td:last-child {
        border-bottom: 0;
    }

    .admin-data-records .admin-records-table tbody td[data-label]::before {
        content: attr(data-label);
        font-weight: 700;
        color: #64748b;
        font-size: 0.75rem;
        flex: 0 0 40%;
        max-width: 42%;
        line-height: 1.3;
    }

    .admin-data-records .admin-records-table tbody td.admin-records-td-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .admin-data-records .admin-records-table tbody td.admin-records-td-actions::before {
        max-width: 100%;
        flex-basis: auto;
    }
}

/* Admin sidebar: scrollable on narrow screens */
@media (max-width: 767.98px) {
    .admin-sidebar {
        min-height: auto;
        padding: 0.5rem 0.5rem 0.75rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .admin-sidebar .nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.35rem;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* User: CDR Services — coin banner */
.cdr-coin-header .cdr-coin-pill {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    min-width: 220px;
}

/* Admin: users as cards */
.admin-users-cards .admin-user-card {
    border-radius: var(--app-radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-users-cards .admin-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1) !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   User Panel Cyber Theme Refresh
   ========================================================= */
body.app-shell.app-user {
    --user-primary: #22d3ee;
    --user-primary-dark: #0891b2;
    --user-accent: #8b5cf6;
    --user-page-bg: #020617;
    --user-surface: rgba(10, 17, 32, 0.82);
    --user-text: #e2e8f0;
    --user-muted: #93a4bf;
    --user-border: rgba(56, 189, 248, 0.2);
    --user-shadow: 0 16px 38px rgba(2, 8, 24, 0.55);
    --user-shadow-lg: 0 24px 54px rgba(2, 8, 24, 0.6);
    background: radial-gradient(circle at 10% 10%, #0f172a 0%, #020617 55%, #02030a 100%);
}

body.app-shell.app-user .app-user-bg {
    background:
        radial-gradient(ellipse 65% 45% at 50% -10%, rgba(34, 211, 238, 0.14), transparent 65%),
        radial-gradient(ellipse 45% 35% at 100% 10%, rgba(139, 92, 246, 0.14), transparent 65%),
        radial-gradient(ellipse 45% 35% at 0% 100%, rgba(16, 185, 129, 0.12), transparent 65%),
        linear-gradient(180deg, #030712 0%, #020617 100%);
}

body.app-shell.app-user .user-main-column {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.68) 0%, rgba(2, 6, 23, 0.55) 100%);
}

body.app-shell.app-user .user-main .container,
body.app-shell.app-user .user-main .container-fluid {
    position: relative;
}

body.app-shell.app-user .page-heading {
    color: #eaf2ff;
    text-shadow: 0 1px 0 rgba(15, 23, 42, 0.45);
}

body.app-shell.app-user .page-sub {
    color: #9ab0cc;
}

body.app-shell.app-user .user-sidebar,
body.app-shell.app-user .user-sidebar-offcanvas {
    background:
        linear-gradient(165deg, rgba(6, 11, 27, 0.96) 0%, rgba(11, 24, 44, 0.95) 42%, rgba(16, 16, 40, 0.95) 100%) !important;
    border-inline-end: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08), 6px 0 28px rgba(2, 8, 24, 0.45);
}

body.app-shell.app-user .user-sidebar-link {
    color: rgba(203, 213, 225, 0.84) !important;
    border: 1px solid transparent;
}

body.app-shell.app-user .user-sidebar-link:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(34, 211, 238, 0.3);
    color: #ecfeff !important;
}

body.app-shell.app-user .user-sidebar-link.active {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-color: rgba(34, 211, 238, 0.46);
    color: #f8fdff !important;
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.2);
}

body.app-shell.app-user .panel-search,
body.app-shell.app-user .result-panel,
body.app-shell.app-user .glass-card,
body.app-shell.app-user .liquid-glass-panel,
body.app-shell.app-user .liquid-glass-card,
body.app-shell.app-user .subscription-box,
body.app-shell.app-user .cdr-coin-pill {
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.22) !important;
    box-shadow: var(--user-shadow) !important;
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    color: #dbeafe;
}

body.app-shell.app-user .coin-wallet {
    background:
        linear-gradient(145deg, rgba(10, 25, 47, 0.95) 0%, rgba(17, 24, 39, 0.95) 50%, rgba(30, 27, 75, 0.92) 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 22px 50px rgba(2, 8, 24, 0.55), inset 0 0 0 1px rgba(15, 23, 42, 0.45);
}

body.app-shell.app-user .coin-balance-label {
    color: #c7d2fe;
}

body.app-shell.app-user .panel-search .form-control,
body.app-shell.app-user .panel-search .form-select,
body.app-shell.app-user .liquid-glass-panel .form-control,
body.app-shell.app-user .liquid-glass-panel .form-select,
body.app-shell.app-user .result-panel .form-control,
body.app-shell.app-user .result-panel .form-select {
    background: rgba(2, 8, 24, 0.72);
    border: 1px solid rgba(100, 116, 139, 0.5);
    color: #e2e8f0;
    border-radius: 12px;
}

body.app-shell.app-user .panel-search .form-control::placeholder,
body.app-shell.app-user .liquid-glass-panel .form-control::placeholder {
    color: #8ea2bc;
}

body.app-shell.app-user .form-control:focus,
body.app-shell.app-user .form-select:focus {
    border-color: rgba(34, 211, 238, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(34, 211, 238, 0.16);
}

body.app-shell.app-user .btn-primary,
body.app-shell.app-user .panel-search .btn-search {
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 55%, #8b5cf6 100%);
    border: 1px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.3);
}

body.app-shell.app-user .btn-primary:hover,
body.app-shell.app-user .panel-search .btn-search:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

body.app-shell.app-user .result-panel .table,
body.app-shell.app-user .liquid-glass-panel .table {
    --bs-table-bg: transparent;
    --bs-table-color: #dbeafe;
    --bs-table-striped-bg: rgba(30, 41, 59, 0.45);
    --bs-table-striped-color: #dbeafe;
    /* Dark hover so light/cyan cell text (e.g. CNIC) never sits on a pale row */
    --bs-table-hover-bg: rgba(30, 70, 120, 0.58);
    --bs-table-hover-color: #f8fafc;
    --bs-table-border-color: rgba(100, 116, 139, 0.32);
}

body.app-shell.app-user .search-result-panel .search-result-toolbar {
    background: rgba(15, 23, 42, 0.96) !important;
    border-bottom: 1px solid rgba(56, 189, 248, 0.38) !important;
}

/* Export toolbar buttons — visible borders & text on dark strip */
body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .small.text-muted {
    color: #cbd5e1 !important;
}

body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .btn-success {
    border: 1px solid rgba(74, 222, 128, 0.65);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
}

body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .btn-export-csv {
    color: #f1f5f9 !important;
    background: rgba(30, 41, 59, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.65) !important;
}

body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .btn-export-csv:hover {
    background: rgba(51, 65, 85, 0.98);
    color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .btn-export-pdf {
    color: #fecaca !important;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid rgba(248, 113, 113, 0.55) !important;
}

body.app-shell.app-user .search-result-panel .search-result-toolbar--exports .btn-export-pdf:hover {
    background: rgba(185, 28, 28, 0.55);
    color: #ffffff !important;
    border-color: #fca5a5 !important;
}

/* Fard Punjab Land Record — icon submit (was outline-dark: invisible on dark rows) */
body.app-shell.app-user .search-result-panel .search-result-table td.search-col-action .btn-fard-record {
    color: #0b1220 !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(186, 230, 253, 0.95);
    background: linear-gradient(145deg, #38bdf8 0%, #6366f1 100%);
    box-shadow:
        0 2px 10px rgba(56, 189, 248, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.app-shell.app-user .search-result-panel .search-result-table td.search-col-action .btn-fard-record:hover {
    color: #020617 !important;
    background: linear-gradient(145deg, #7dd3fc 0%, #818cf8 100%);
    border-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow:
        0 5px 16px rgba(99, 102, 241, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

body.app-shell.app-user .search-result-panel .search-result-table td.search-col-action .btn-fard-record:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

body.app-shell.app-user .search-result-panel .search-result-table td.search-col-action .btn-fard-record i {
    font-size: 1.05rem;
    vertical-align: -0.1em;
}

body.app-shell.app-user .search-result-panel .search-result-table thead th {
    background: rgba(15, 23, 42, 0.94);
    border-bottom-color: rgba(56, 189, 248, 0.34);
}

body.app-shell.app-user .search-result-panel .search-result-table tbody tr {
    background: rgba(10, 20, 38, 0.9) !important;
}

body.app-shell.app-user .search-result-panel .search-result-table tbody tr:nth-of-type(even) {
    background: rgba(14, 28, 50, 0.92) !important;
}

body.app-shell.app-user .search-result-panel .search-result-table tbody td {
    color: #e6f0ff !important;
    border-color: rgba(71, 85, 105, 0.45) !important;
}

body.app-shell.app-user .search-result-panel .search-result-table tbody td.table-warning {
    background: rgba(8, 47, 73, 0.95) !important;
    color: #67e8f9 !important;
}

/* Land search: row hover must stay dark — light hover + cyan ID text was unreadable */
body.app-shell.app-user .search-result-panel .search-result-table.table-hover > tbody > tr:hover > td {
    background-color: rgba(22, 52, 92, 0.96) !important;
    color: #f8fafc !important;
    --bs-table-color-state: #f8fafc;
    --bs-table-bg-state: rgba(22, 52, 92, 0.96);
}

body.app-shell.app-user .search-result-panel .search-result-table.table-hover > tbody > tr:hover > td.table-warning {
    background-color: rgba(12, 74, 92, 0.98) !important;
    color: #cffafe !important;
    --bs-table-color-state: #cffafe;
    --bs-table-bg-state: rgba(12, 74, 92, 0.98);
}

/* Other user-panel tables (fard, history, etc.): same readable hover */
body.app-shell.app-user .liquid-glass-panel .table.table-hover > tbody > tr:hover > td,
body.app-shell.app-user .result-panel:not(.search-result-panel) .table.table-hover > tbody > tr:hover > td {
    background-color: rgba(22, 52, 92, 0.92) !important;
    color: #f8fafc !important;
}

body.app-shell.app-user .col-heading-label {
    color: #dbeafe;
}

body.app-shell.app-user .alert {
    border: 1px solid rgba(148, 163, 184, 0.3);
}

body.app-shell.app-user .alert-success {
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7;
}

body.app-shell.app-user .alert-danger {
    background: rgba(220, 38, 38, 0.18);
    color: #fee2e2;
}

body.app-shell.app-user .alert-info {
    background: rgba(14, 116, 144, 0.2);
    color: #cffafe;
}

body.app-shell.app-user .alert-warning {
    background: rgba(217, 119, 6, 0.2);
    color: #fef3c7;
}

body.app-shell.app-user .app-footer.user-app-footer {
    color: #93a4bf;
    border-top-color: rgba(56, 189, 248, 0.2) !important;
    background: rgba(2, 6, 23, 0.72) !important;
}

/* Stronger contrast for dark user theme readability */
body.app-shell.app-user .text-dark,
body.app-shell.app-user .liquid-glass-panel .text-dark,
body.app-shell.app-user .panel-search .text-dark {
    color: #f8fafc !important;
}

body.app-shell.app-user .text-muted,
body.app-shell.app-user .liquid-glass-panel .text-muted,
body.app-shell.app-user .panel-search .text-muted,
body.app-shell.app-user .result-panel .text-muted {
    color: #c3d4eb !important;
}

body.app-shell.app-user .form-label,
body.app-shell.app-user .liquid-glass-panel .form-label,
body.app-shell.app-user .panel-search .form-label,
body.app-shell.app-user label {
    color: #e6f0ff;
}

body.app-shell.app-user .table-light,
body.app-shell.app-user .table-light > th,
body.app-shell.app-user .table-light > td,
body.app-shell.app-user .table > :not(caption) > * > .table-light {
    --bs-table-bg: rgba(15, 23, 42, 0.95);
    --bs-table-color: #f8fafc;
}

/* Family/Fard hub document + history headers: keep dark glass style */
body.app-shell.app-user .liquid-glass-panel > .bg-white.bg-opacity-40 {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.84)) !important;
    border-bottom-color: rgba(56, 189, 248, 0.28) !important;
    color: #e2e8f0 !important;
}

body.app-shell.app-user .liquid-glass-panel > .bg-white.bg-opacity-40 .fw-bold,
body.app-shell.app-user .liquid-glass-panel > .bg-white.bg-opacity-40 span {
    color: #e2e8f0 !important;
}

body.app-shell.app-user .cdr-price-display {
    background: linear-gradient(160deg, rgba(10, 20, 38, 0.96) 0%, rgba(14, 29, 55, 0.92) 100%) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #eaf2ff !important;
}

body.app-shell.app-user .cdr-price-display .text-muted,
body.app-shell.app-user .cdr-price-display .small {
    color: #c9dcf7 !important;
}

body.app-shell.app-user .cdr-price-display .text-primary,
body.app-shell.app-user .cdr-price-display .fw-bold {
    color: #7dd3fc !important;
}

body.app-shell.app-user .service-option-list li {
    position: relative;
    padding-inline-start: 1.25rem;
}

body.app-shell.app-user .service-option-list li::before {
    content: "\f138";
    font-family: "bootstrap-icons";
    position: absolute;
    inset-inline-start: 0;
    top: 0.02rem;
    color: #67e8f9;
    font-size: 0.9rem;
}

/* Dashboard pricing cards contrast fix */
body.app-shell.app-user .pricing-chip,
body.app-shell.app-user .pricing-chip--family,
body.app-shell.app-user .pricing-chip--fard {
    background: linear-gradient(165deg, rgba(12, 24, 46, 0.95) 0%, rgba(20, 38, 68, 0.9) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 10px 22px rgba(2, 8, 24, 0.4), inset 0 1px 0 rgba(148, 163, 184, 0.18) !important;
    color: #e6f0ff !important;
}

body.app-shell.app-user .pricing-chip__coins,
body.app-shell.app-user .pricing-chip--fard .pricing-chip__coins {
    color: #38bdf8 !important;
}

body.app-shell.app-user .pricing-chip__label {
    color: #eaf2ff !important;
}

body.app-shell.app-user .pricing-chip__hint {
    color: #b9cbe3 !important;
}

.fard-result-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fard-result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.land-rate-callout {
    min-width: min(100%, 26rem);
    max-width: 100%;
    border-radius: 14px;
    padding: 0.72rem 1rem;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.28), rgba(14, 116, 144, 0.2));
    color: #e0f7ff;
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.22);
}

.land-rate-callout__top {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
}

.land-rate-callout__sub {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    color: #cfefff;
    font-weight: 600;
}
