/*
 * IBACT Client Portal — Public Styles
 * Brand: #FF8B45 (primary), #1F2937 (dark), #FFFFFF (bg)
 */

/* ─────────────── Reset & Base ─────────────── */
.ibact-wrap * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.ibact-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #1F2937;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────── CSS Variables ─────────────── */
:root {
    --ibact-primary:    #FF8B45;
    --ibact-primary-dk: #e8722e;
    --ibact-primary-lt: #fff4ed;
    --ibact-dark:       #1F2937;
    --ibact-mid:        #6B7280;
    --ibact-border:     #E5E7EB;
    --ibact-bg:         #F9FAFB;
    --ibact-white:      #FFFFFF;
    --ibact-radius:     12px;
    --ibact-sidebar-w:  240px;
    --ibact-shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --ibact-shadow-md:  0 4px 16px rgba(0,0,0,.10);
}

/* ════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════ */

#ibact-login-page {
    display: flex;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}
.ibact-login-body { margin: 0; padding: 0; min-height: 100vh; background: #fff; }

/* ─── Left Panel (marketing) ─────────────── */
.ilp-left {
    width: 46%;
    background: linear-gradient(150deg, #FF8B45 0%, #e8722e 55%, #c95a18 100%);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.ilp-left::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    top: -130px; right: -140px;
}
.ilp-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    bottom: -90px; left: -70px;
}
.ilp-left-inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column;
    height: 100%; padding: 36px 40px 32px;
    overflow-y: auto;
}
.ilp-brand {
    display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.ilp-logo-img {
    max-height: 42px; max-width: 200px; object-fit: contain;
    display: block;
}
.ilp-logo-fallback { flex-shrink: 0; }
.ilp-company-name {
    color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
}
.ilp-hero-text { margin-bottom: 24px; }
.ilp-hero-text h2 {
    font-size: 32px; font-weight: 900; color: #fff;
    line-height: 1.18; letter-spacing: -.02em; margin-bottom: 12px;
}
.ilp-hero-text h2 .ilp-accent { color: #1F2937; }
.ilp-hero-text p {
    color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.6; max-width: 360px;
}

/* Feature cards */
.ilp-feature-cards {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 24px;
}
.ilp-feature-card {
    background: #fff; border-radius: 14px; padding: 16px 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
}
.ilp-feature-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; color: #FF8B45; background: #FFF4ED;
}
.ilp-feature-title { font-size: 12.5px; font-weight: 800; color: #1F2937; margin-bottom: 4px; line-height: 1.25; }
.ilp-feature-desc { font-size: 11px; color: #6B7280; line-height: 1.4; }

/* Perks checklist */
.ilp-perks {
    list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px;
}
.ilp-perks li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.92); font-size: 13.5px; font-weight: 500;
}
.ilp-perk-check {
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(255,255,255,.22); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}

/* Trust card */
.ilp-trust {
    display: flex; align-items: center; gap: 14px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    border-radius: 14px; padding: 16px 18px; margin-top: auto;
}
.ilp-trust-icon {
    width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
}
.ilp-trust-title { color: #fff; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.ilp-trust-sub { color: rgba(255,255,255,.78); font-size: 12px; }

/* ─── Right Panel ────────────────────────── */
.ilp-right {
    flex: 1; display: flex; flex-direction: column;
    background: #fff; overflow-y: auto;
    min-width: 0;
}
.ilp-right-inner { flex: 1; display: flex; flex-direction: column; }

/* Top bar — hidden on desktop */
.ilp-topbar {
    display: none;
    padding: 20px 24px 0;
    align-items: center;
}
.ilp-topbar-logo {
    max-height: 40px; max-width: 150px; object-fit: contain;
}
.ilp-topbar-brand {
    display: flex; align-items: center; gap: 10px;
}
.ilp-topbar-brand span {
    font-size: 17px; font-weight: 800; color: #0f172a;
}

/* ─── Step container ─────────────────────── */
.ilp-step {
    flex: 1; display: flex; flex-direction: column;
    justify-content: center; padding: 44px 52px;
    max-width: 460px; width: 100%; margin: 0 auto;
    box-sizing: border-box;
}
.ilp-step-head { margin-bottom: 28px; text-align: center; }
.ilp-wa-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fef7; color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin-bottom: 18px;
}
.ilp-sent-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f0fdf4; color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 5px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600; margin-bottom: 18px;
}
.ilp-step-head h1 {
    font-size: 28px; font-weight: 800; color: #0f172a;
    letter-spacing: -.03em; margin-bottom: 8px; line-height: 1.15;
}
.ilp-step-head p { color: #64748b; font-size: 15px; line-height: 1.5; }
.ilp-back-btn {
    background: none; border: none; color: #FF8B45;
    font-size: 13px; font-weight: 600; cursor: pointer;
    padding: 0; margin-top: 8px; display: inline-block;
}

/* ─── Field ──────────────────────────────── */
.ilp-field { margin-bottom: 22px; }
.ilp-field label {
    display: block; font-size: 11px; font-weight: 700;
    color: #94a3b8; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: .08em;
}

/* Phone input */
.ilp-phone-box {
    display: flex; align-items: center;
    border: 2px solid #e2e8f0; border-radius: 16px;
    background: #f8fafc; overflow: hidden;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.ilp-phone-box:focus-within {
    border-color: #FF8B45; background: #fff;
    box-shadow: 0 0 0 4px rgba(255,139,69,.1);
}
.ilp-prefix {
    display: flex; align-items: center; gap: 6px;
    padding: 0 14px; flex-shrink: 0; user-select: none;
}
.ilp-flag { font-size: 22px; line-height: 1; }
.ilp-isd { font-size: 15px; font-weight: 700; color: #1e293b; }
.ilp-chevron { margin-left: 1px; }
.ilp-sep { width: 1px; height: 22px; background: #cbd5e1; margin-left: 8px; }
.ilp-phone-box input {
    flex: 1; padding: 16px 16px; border: none; outline: none;
    background: transparent; font-size: 18px; font-weight: 600;
    color: #0f172a; letter-spacing: .05em; min-width: 0;
}
.ilp-phone-box input::placeholder { color: #94a3b8; font-weight: 400; letter-spacing: 0; font-size: 16px; }

/* OTP row */
.ilp-otp-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.ilp-otp-box {
    height: 64px; text-align: center; font-size: 26px; font-weight: 800;
    border: 2px solid #e2e8f0; border-radius: 14px; background: #f8fafc;
    color: #0f172a; outline: none; transition: all .15s; width: 100%;
    box-sizing: border-box;
}
.ilp-otp-box:focus {
    border-color: #FF8B45; background: #fff;
    box-shadow: 0 0 0 4px rgba(255,139,69,.1);
}
.ilp-otp-box.ibact-otp-filled {
    border-color: #FF8B45; background: #fff7f0; color: #FF8B45;
}

/* Error */
.ilp-err {
    margin-top: 10px; padding: 10px 14px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 10px; font-size: 13px; color: #dc2626; font-weight: 500;
}

/* CTA Button */
.ilp-cta {
    width: 100%; padding: 16px 24px;
    background: linear-gradient(135deg, #FF8B45, #e8722e);
    color: #fff; border: none; border-radius: 50px;
    font-size: 15.5px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 20px rgba(255,139,69,.38);
    margin-bottom: 16px; letter-spacing: -.01em;
}
.ilp-cta .ibact-btn-text { display: flex; align-items: center; gap: 9px; }
.ilp-cta:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,139,69,.5);
}
.ilp-cta:active:not(:disabled) { transform: translateY(0); }
.ilp-cta:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.ilp-note {
    text-align: center; font-size: 12px; color: #94a3b8; margin: 0;
}

/* Resend */
.ilp-resend {
    text-align: center; font-size: 13px; color: #94a3b8; margin-top: 6px;
}
.ilp-resend strong { color: #475569; }
.ilp-resend-btn {
    background: none; border: none; color: #FF8B45;
    font-size: 13px; font-weight: 700; cursor: pointer;
    text-decoration: underline; padding: 0;
}

/* Success */
.ilp-success { text-align: center; justify-content: center; align-items: center; }
.ilp-tick-wrap {
    margin-bottom: 20px;
    animation: ilp-pop .4s cubic-bezier(.175,.885,.32,1.3) forwards;
}
@keyframes ilp-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.ilp-success h2 {
    font-size: 28px; font-weight: 800; color: #0f172a; margin-bottom: 8px;
}
.ilp-success p { color: #64748b; margin-bottom: 24px; font-size: 15px; }
.ilp-bar {
    height: 4px; background: #e2e8f0; border-radius: 4px;
    overflow: hidden; width: 200px; margin: 0 auto;
}
.ilp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF8B45, #e8722e);
    animation: ilp-fill 1.5s ease forwards;
}
@keyframes ilp-fill { from { width:0; } to { width:100%; } }

/* Why use this portal — trust strip below the form */
.ilp-why-use { margin-top: 32px; }
.ilp-why-divider {
    text-align: center; position: relative; margin-bottom: 24px;
}
.ilp-why-divider::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: #e5e7eb;
}
.ilp-why-divider span {
    position: relative; background: #fff; padding: 0 14px;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #94a3b8;
}
.ilp-why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.ilp-why-item { text-align: center; }
.ilp-why-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: #FFF4ED; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
}
.ilp-why-label { font-size: 12.5px; font-weight: 700; color: #1F2937; line-height: 1.35; }

/* Footer */
.ilp-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 52px 28px; border-top: 1px solid #f1f5f9;
    margin-top: auto; gap: 16px; flex-wrap: wrap;
}
.ilp-foot-help { display: flex; align-items: center; gap: 10px; }
.ilp-foot-wa-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: #f0fef7; border: 1px solid #bbf7d0;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ilp-foot-help-text { display: flex; flex-direction: column; line-height: 1.35; }
.ilp-foot-help-text a, .ilp-foot-help-title { font-size: 13px; color: #1F2937; font-weight: 700; text-decoration: none; }
.ilp-foot-help-text a:hover { color: #25D366; }
.ilp-foot-help-sub { font-size: 12px; color: #94a3b8; }
.ilp-foot-copy { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.4; text-align: right; }
.ilp-foot-copy span:first-child { font-size: 13px; color: #475569; font-weight: 600; }
.ilp-foot-copy span:last-child { font-size: 12px; color: #94a3b8; }

/* Shake */
@keyframes ilp-shake {
    0%,100% { transform:translateX(0); }
    20% { transform:translateX(-8px); }
    40% { transform:translateX(8px); }
    60% { transform:translateX(-5px); }
    80% { transform:translateX(5px); }
}
.ilp-shake { animation: ilp-shake .45s ease; }

/* ─── DESKTOP medium (laptops / small desktop) ───── */
@media (max-width: 1200px) {
    .ilp-left { width: 42%; }
    .ilp-hero-text h2 { font-size: 27px; }
    .ilp-left-inner { padding: 30px 28px 26px; }
    .ilp-feature-card { padding: 13px 10px; }
    .ilp-feature-title { font-size: 12px; }
    .ilp-feature-desc { font-size: 10.5px; }
    .ilp-step { padding: 36px 36px; }
    .ilp-foot { padding: 18px 36px 24px; }
}

/* ─── TABLET (portrait tablets / large phones landscape) ───── */
@media (max-width: 900px) {
    #ibact-login-page { flex-direction: column; }

    .ilp-left { display: none; }

    .ilp-right { min-height: 100vh; background: linear-gradient(180deg, #fff7f2 0%, #fff 26%); }

    .ilp-topbar { display: flex; padding: 22px 24px 0; }

    .ilp-step { padding: 30px 24px 8px; max-width: 100%; justify-content: flex-start; }

    .ilp-step-head { margin-bottom: 26px; }
    .ilp-step-head h1 { font-size: 25px; }

    .ilp-phone-box { border-radius: 14px; }
    .ilp-phone-box input { font-size: 17px; padding: 15px 14px; }

    .ilp-otp-row { gap: 8px; }
    .ilp-otp-box { height: 54px; font-size: 22px; border-radius: 12px; }

    .ilp-cta { padding: 15px 20px; font-size: 15px; box-shadow: 0 6px 24px rgba(255,139,69,.35); }

    .ilp-why-use { margin-top: 28px; }
    .ilp-why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
    .ilp-why-icon { width: 48px; height: 48px; }

    .ilp-foot {
        padding: 20px 24px 28px;
        flex-direction: column; align-items: flex-start; gap: 18px;
    }
    .ilp-foot-copy { align-items: flex-start; text-align: left; }
}

@media (max-width: 420px) {
    .ilp-step { padding: 24px 18px 6px; }
    .ilp-step-head h1 { font-size: 22px; }
    .ilp-wa-pill { font-size: 11px; }
    .ilp-otp-row { gap: 6px; }
    .ilp-otp-box { height: 46px; font-size: 19px; border-radius: 10px; }
    .ilp-phone-box input { font-size: 16px; }
    .ilp-cta { font-size: 14px; padding: 14px 16px; }
    .ilp-why-grid { gap: 14px 10px; }
    .ilp-why-icon { width: 44px; height: 44px; border-radius: 12px; }
    .ilp-why-label { font-size: 11.5px; }
    .ilp-foot { padding: 18px 18px 26px; }
}


/* ════════════════════════════════════════════
   PORTAL LAYOUT
   ════════════════════════════════════════════ */
#ibact-portal-wrap {
    min-height: 100vh;
    background: var(--ibact-bg);
}

.ibact-portal-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* ─────────────── Sidebar ─────────────── */
.ibact-sidebar {
    width: var(--ibact-sidebar-w);
    background: var(--ibact-dark);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.ibact-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ibact-sidebar-brand img {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
    background: #fff;
    padding: 5px 10px;
    border-radius: 8px;
}

.ibact-sidebar-title {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
}

.ibact-sidebar-domain {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: 11px;
    margin-top: 2px;
}

.ibact-client-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    margin-bottom: 8px;
}

.ibact-client-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ibact-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ibact-client-info {
    overflow: hidden;
}

.ibact-client-code-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    background: rgba(255,139,69,.2);
    color: #FFB380;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 4px;
    border: 1px solid rgba(255,139,69,.3);
}

.ibact-client-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ibact-client-info span {
    display: block;
    color: rgba(255,255,255,.4);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ibact-nav {
    flex: 1;
    padding: 4px 10px;
    overflow-y: auto;
}

.ibact-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    transition: background .15s, color .15s;
    margin-bottom: 2px;
    position: relative;
}

.ibact-nav-item:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}

.ibact-nav-active {
    background: var(--ibact-primary) !important;
    color: #fff !important;
}

.ibact-nav-icon {
    flex-shrink: 0;
    opacity: .8;
}

.ibact-nav-active .ibact-nav-icon {
    opacity: 1;
}

.ibact-nav-badge {
    margin-left: auto;
    background: var(--ibact-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 20px;
    min-width: 20px;
    text-align: center;
}

.ibact-nav-active .ibact-nav-badge {
    background: rgba(255,255,255,.25);
}

.ibact-sidebar-footer {
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.ibact-nav-logout {
    color: rgba(255,255,255,.5);
}

.ibact-nav-logout:hover {
    color: #fc8181;
    background: rgba(252,129,129,.1);
}

/* ─────────────── Main ─────────────── */
.ibact-main {
    flex: 1;
    margin-left: var(--ibact-sidebar-w);
    padding: 28px 28px 48px;
    min-width: 0;
}

/* ─────────────── Mobile Header ─────────────── */
.ibact-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--ibact-dark);
    padding: 0 16px;
    height: 56px;
    align-items: center;
    justify-content: space-between;
}

.ibact-mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.ibact-mobile-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ibact-notif-bell {
    position: relative;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.ibact-badge-dot {
    position: absolute;
    top: -5px;
    right: -6px;
    background: var(--ibact-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--ibact-dark);
}

.ibact-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.ibact-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,.8);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.ibact-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
}

/* ─────────────── Page Header ─────────────── */
.ibact-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.ibact-page-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ibact-dark);
    line-height: 1.2;
}

.ibact-page-header p {
    color: var(--ibact-mid);
    font-size: 14px;
    margin-top: 3px;
}

.ibact-date-badge {
    background: var(--ibact-white);
    border: 1px solid var(--ibact-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--ibact-mid);
    font-weight: 500;
    white-space: nowrap;
    align-self: center;
}

/* ─────────────── Stat Cards ─────────────── */
.ibact-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.ibact-stat-card {
    background: var(--ibact-white);
    border-radius: var(--ibact-radius);
    padding: 20px;
    box-shadow: var(--ibact-shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--ibact-border);
}

.ibact-stat-primary {
    background: var(--ibact-primary);
    border-color: var(--ibact-primary);
}

.ibact-stat-primary .ibact-stat-icon,
.ibact-stat-primary .ibact-stat-num,
.ibact-stat-primary .ibact-stat-label {
    color: #fff !important;
}

.ibact-stat-icon {
    width: 44px;
    height: 44px;
    background: var(--ibact-primary-lt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ibact-primary);
    flex-shrink: 0;
}

.ibact-stat-primary .ibact-stat-icon {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.ibact-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--ibact-dark);
    line-height: 1;
}

.ibact-stat-label {
    display: block;
    font-size: 12px;
    color: var(--ibact-mid);
    margin-top: 3px;
}

/* ─────────────── Two-Column Layout ─────────────── */
.ibact-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ─────────────── Cards ─────────────── */
.ibact-card {
    background: var(--ibact-white);
    border-radius: var(--ibact-radius);
    border: 1px solid var(--ibact-border);
    box-shadow: var(--ibact-shadow);
    overflow: hidden;
}

.ibact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--ibact-border);
}

.ibact-card-head h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--ibact-dark);
}

.ibact-project-card,
.ibact-mb {
    margin-bottom: 16px;
}

.ibact-project-card .ibact-card-head,
.ibact-project-header {
    padding: 20px 20px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.ibact-project-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ibact-dark);
}

.ibact-project-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.ibact-project-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ibact-mid);
}

.ibact-mt { margin-top: 16px; }

/* ─────────────── Project List (dashboard widget) ─────────────── */
.ibact-project-list {
    padding: 8px 0;
}

.ibact-project-row {
    padding: 14px 20px;
    border-bottom: 1px solid var(--ibact-border);
}

.ibact-project-row:last-child { border-bottom: none; }

.ibact-project-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.ibact-project-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ibact-dark);
}

/* Progress Bar */
.ibact-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ibact-progress {
    flex: 1;
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
}

.ibact-progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
}

.ibact-progress-row .ibact-progress {
    flex: 1;
}

.ibact-progress-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--ibact-primary);
    min-width: 36px;
    text-align: right;
}

.ibact-progress-bar {
    height: 100%;
    background: var(--ibact-primary);
    border-radius: 10px;
    transition: width .6s ease;
}

.ibact-progress-animated {
    animation: ibact-progress-in .8s ease forwards;
}

@keyframes ibact-progress-in {
    from { width: 0 !important; }
}

.ibact-progress-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ibact-mid);
    min-width: 28px;
}

/* ─────────────── Updates toggle ─────────────── */
.ibact-updates-toggle {
    padding: 12px 20px;
}

.ibact-updates-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
}

.ibact-updates-list {
    margin-top: 12px;
    padding-left: 8px;
    border-left: 2px solid var(--ibact-border);
}

.ibact-update-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.ibact-update-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ibact-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.ibact-update-item p {
    font-size: 13px;
    color: var(--ibact-dark);
    margin-bottom: 2px;
}

.ibact-update-item time {
    font-size: 11px;
    color: var(--ibact-mid);
}

.ibact-project-actions {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--ibact-border);
    flex-wrap: wrap;
}

/* ─────────────── Notification List ─────────────── */
.ibact-notif-list {
    list-style: none;
    padding: 8px 0;
}

.ibact-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ibact-border);
    align-items: flex-start;
}

.ibact-notif-item:last-child { border-bottom: none; }

.ibact-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ibact-border);
    flex-shrink: 0;
    margin-top: 6px;
}

.ibact-notif-unread .ibact-notif-dot {
    background: var(--ibact-primary);
}

.ibact-notif-msg {
    font-size: 13px;
    color: var(--ibact-dark);
    margin-bottom: 2px;
}

.ibact-notif-time {
    font-size: 11px;
    color: var(--ibact-mid);
}

/* Full Notifications Page */
.ibact-notif-full-item {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    align-items: flex-start;
}

.ibact-notif-divider {
    border-top: 1px solid var(--ibact-border);
}

.ibact-notif-full-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--ibact-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ibact-mid);
    flex-shrink: 0;
    margin-top: 2px;
}

.ibact-notif-unread .ibact-notif-full-icon {
    background: var(--ibact-primary-lt);
    color: var(--ibact-primary);
}

.ibact-notif-full-content {
    flex: 1;
}

.ibact-notif-full-content p {
    font-size: 14px;
    color: var(--ibact-dark);
    margin-bottom: 4px;
}

.ibact-notif-full-content time {
    font-size: 12px;
    color: var(--ibact-mid);
}

.ibact-notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ibact-primary);
    flex-shrink: 0;
    margin-top: 8px;
}

/* ─────────────── Documents ─────────────── */
.ibact-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}

.ibact-doc-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ibact-border);
    border-radius: 10px;
    background: var(--ibact-bg);
}

.ibact-doc-icon {
    width: 38px;
    height: 38px;
    background: var(--ibact-primary-lt);
    color: var(--ibact-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ibact-doc-info {
    flex: 1;
    overflow: hidden;
}

.ibact-doc-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ibact-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ibact-doc-cat {
    display: block;
    font-size: 11px;
    color: var(--ibact-mid);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ibact-doc-table-wrap {
    border-radius: var(--ibact-radius);
    overflow: hidden;
    box-shadow: var(--ibact-shadow);
    border: 1px solid var(--ibact-border);
}

.ibact-doc-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ibact-doc-icon-sm {
    width: 28px;
    height: 28px;
    background: var(--ibact-primary-lt);
    color: var(--ibact-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─────────────── Websites ─────────────── */
.ibact-website-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 12px;
}

.ibact-site-card {
    background: var(--ibact-white);
    border-radius: 16px;
    border: 1px solid var(--ibact-border);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}

.ibact-site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

/* coloured top stripe */
.ibact-site-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--ibact-primary), #e8722e);
}

.ibact-site-card-inner {
    padding: 20px 22px 18px;
}

.ibact-site-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ibact-site-icon {
    width: 48px;
    height: 48px;
    background: var(--ibact-primary-lt);
    color: var(--ibact-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ibact-site-icon-dev {
    background: #DBEAFE;
    color: #3B82F6;
}

.ibact-site-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--ibact-dark);
    margin-bottom: 5px;
    letter-spacing: -.01em;
}

.ibact-site-url {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--ibact-mid);
    text-decoration: none;
    margin-bottom: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.ibact-site-url:hover { color: var(--ibact-primary); }

.ibact-site-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--ibact-border);
}

.ibact-site-actions .ibact-btn-outline {
    flex: 1;
    justify-content: center;
}

.ibact-site-actions .ibact-btn-primary {
    flex: 1;
    justify-content: center;
}

.ibact-site-expiry-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.ibact-site-expiry {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--ibact-mid);
    background: var(--ibact-bg);
    padding: 4px 9px;
    border-radius: 20px;
    border: 1px solid var(--ibact-border);
}

/* ─────────────── Tickets ─────────────── */
.ibact-ticket-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ibact-ticket-row {
    background: var(--ibact-white);
    border: 1px solid var(--ibact-border);
    border-radius: var(--ibact-radius);
    padding: 18px 20px;
    box-shadow: var(--ibact-shadow);
    transition: box-shadow .2s;
    cursor: pointer;
}

.ibact-ticket-row:hover {
    box-shadow: var(--ibact-shadow-md);
}

.ibact-ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ibact-ticket-id {
    font-size: 12px;
    font-weight: 700;
    color: var(--ibact-mid);
    font-family: monospace;
}

.ibact-ticket-subject {
    font-size: 16px;
    font-weight: 600;
    color: var(--ibact-dark);
    margin-bottom: 10px;
}

.ibact-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ibact-ticket-footer time {
    font-size: 12px;
    color: var(--ibact-mid);
}

/* Ticket Thread */
.ibact-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 16px;
}

.ibact-thread-msg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.ibact-thread-msg.ibact-thread-admin {
    flex-direction: row-reverse;
}

.ibact-thread-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ibact-bg);
    border: 1px solid var(--ibact-border);
    color: var(--ibact-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.ibact-thread-admin .ibact-thread-avatar {
    background: var(--ibact-primary-lt);
    color: var(--ibact-primary);
    border-color: var(--ibact-primary-lt);
}

.ibact-thread-bubble {
    background: var(--ibact-bg);
    border: 1px solid var(--ibact-border);
    border-radius: 12px;
    border-top-left-radius: 4px;
    padding: 12px 14px;
    max-width: 80%;
    font-size: 14px;
}

.ibact-thread-admin .ibact-thread-bubble {
    background: var(--ibact-primary-lt);
    border-color: var(--ibact-primary-lt);
    border-top-right-radius: 4px;
    border-top-left-radius: 12px;
}

.ibact-thread-meta {
    font-size: 11px;
    color: var(--ibact-mid);
    margin-bottom: 4px;
}

/* ─────────────── Badges ─────────────── */
.ibact-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    text-transform: capitalize;
}

.ibact-badge-active         { background: #D1FAE5; color: #065F46; }
.ibact-badge-development    { background: #DBEAFE; color: #1E40AF; }
.ibact-badge-inactive       { background: #F3F4F6; color: #6B7280; }
.ibact-badge-suspended      { background: #FEE2E2; color: #991B1B; }

.ibact-badge-open           { background: #FEF3C7; color: #92400E; }
.ibact-badge-in-progress    { background: #DBEAFE; color: #1E40AF; }
.ibact-badge-waiting        { background: #EDE9FE; color: #5B21B6; }
.ibact-badge-resolved       { background: #D1FAE5; color: #065F46; }
.ibact-badge-closed         { background: #F3F4F6; color: #374151; }

/* catch-all for any other status values */
.ibact-badge-live          { background: #D1FAE5; color: #065F46; }
.ibact-badge-suspended     { background: #FEE2E2; color: #991B1B; }
.ibact-badge-maintenance   { background: #FEF3C7; color: #92400E; }
.ibact-badge-expired       { background: #FEE2E2; color: #991B1B; }
[class*="ibact-badge-"]:not([class*="ibact-badge-priority"]):not(.ibact-badge-active):not(.ibact-badge-development):not(.ibact-badge-inactive):not(.ibact-badge-suspended):not(.ibact-badge-open):not(.ibact-badge-resolved):not(.ibact-badge-closed):not(.ibact-badge-in-progress):not(.ibact-badge-waiting):not(.ibact-badge-live):not(.ibact-badge-maintenance):not(.ibact-badge-expired) {
    background: #F3F4F6; color: #374151;
}

.ibact-badge-priority-low    { background: #F3F4F6; color: #374151; }
.ibact-badge-priority-medium { background: #FEF3C7; color: #92400E; }
.ibact-badge-priority-high   { background: #FEE2E2; color: #991B1B; }
.ibact-badge-priority-urgent { background: #FF8B45; color: #fff; }

.ibact-badge-requirement-collection { background: #E0E7FF; color: #3730A3; }
.ibact-badge-design         { background: #FCE7F3; color: #9D174D; }
.ibact-badge-development    { background: #DBEAFE; color: #1E40AF; }
.ibact-badge-testing        { background: #FEF3C7; color: #92400E; }
.ibact-badge-deployment     { background: #EDE9FE; color: #5B21B6; }
.ibact-badge-completed      { background: #D1FAE5; color: #065F46; }

/* ─────────────── Section Label ─────────────── */
.ibact-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ibact-mid);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ibact-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ibact-border);
}

/* ─────────────── Table ─────────────── */
.ibact-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ibact-white);
    font-size: 14px;
}

.ibact-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--ibact-bg);
    font-size: 11px;
    font-weight: 700;
    color: var(--ibact-mid);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--ibact-border);
}

.ibact-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--ibact-border);
    color: var(--ibact-dark);
}

.ibact-table tr:last-child td {
    border-bottom: none;
}

/* ─────────────── Buttons ─────────────── */
.ibact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background .15s, box-shadow .15s, transform .1s, opacity .15s;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.ibact-btn:active { transform: translateY(1px); }

.ibact-btn-primary {
    background: var(--ibact-primary);
    color: #fff;
    border-color: var(--ibact-primary);
}

.ibact-btn-primary:hover {
    background: var(--ibact-primary-dk);
    border-color: var(--ibact-primary-dk);
}

.ibact-btn-outline {
    background: transparent;
    color: var(--ibact-dark);
    border-color: var(--ibact-border);
}

.ibact-btn-outline:hover {
    background: var(--ibact-bg);
    border-color: #D1D5DB;
}

.ibact-btn-full {
    width: 100%;
}

.ibact-btn-sm {
    padding: 6px 13px;
    font-size: 13px;
    border-radius: 7px;
}

/* ─────────────── Form elements ─────────────── */
.ibact-form-group {
    margin-bottom: 18px;
}

.ibact-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ibact-dark);
    margin-bottom: 6px;
}

.ibact-input,
.ibact-select,
.ibact-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--ibact-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ibact-dark);
    background: var(--ibact-white);
    transition: border-color .18s, box-shadow .18s;
    outline: none;
    appearance: none;
}

.ibact-input:focus,
.ibact-select:focus,
.ibact-textarea:focus {
    border-color: var(--ibact-primary);
    box-shadow: 0 0 0 3px rgba(255,139,69,.15);
}

.ibact-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.ibact-input-file {
    width: 100%;
    font-size: 14px;
    color: var(--ibact-dark);
}

.ibact-field-hint {
    display: block;
    font-size: 12px;
    color: var(--ibact-mid);
    margin-top: 5px;
}

.ibact-field-static {
    font-size: 14px;
    color: var(--ibact-dark);
    font-weight: 600;
}

.ibact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ─────────────── Alerts ─────────────── */
.ibact-alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}

.ibact-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.ibact-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

/* ─────────────── Modals ─────────────── */
.ibact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ibact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17,24,39,.55);
    backdrop-filter: blur(2px);
}

.ibact-modal-box {
    position: relative;
    background: var(--ibact-white);
    border-radius: var(--ibact-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: ibact-modal-in .2s ease;
}

.ibact-modal-box-lg {
    max-width: 680px;
}

@keyframes ibact-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ibact-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--ibact-border);
    position: sticky;
    top: 0;
    background: var(--ibact-white);
    z-index: 1;
}

.ibact-modal-head h3 {
    font-size: 16px;
    font-weight: 700;
}

.ibact-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ibact-mid);
    padding: 4px;
    border-radius: 6px;
    display: flex;
    transition: background .15s;
}

.ibact-modal-close:hover {
    background: var(--ibact-bg);
    color: var(--ibact-dark);
}

.ibact-modal-body {
    padding: 24px;
}

.ibact-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
}

/* Site Details Modal content */
.ibact-detail-row {
    display: flex;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--ibact-border);
    gap: 12px;
}

.ibact-detail-row:last-child { border-bottom: none; }

.ibact-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ibact-mid);
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 1px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ibact-detail-val {
    font-size: 14px;
    color: var(--ibact-dark);
    word-break: break-all;
    flex: 1;
}

.ibact-pwd-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.ibact-pwd-mask {
    letter-spacing: 3px;
    color: var(--ibact-mid);
}

.ibact-btn-show-pwd {
    background: none;
    border: 1px solid var(--ibact-border);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--ibact-mid);
    transition: background .15s;
    flex-shrink: 0;
}

.ibact-btn-show-pwd:hover {
    background: var(--ibact-bg);
}

/* ─────────────── Loading / Empty ─────────────── */
.ibact-loading {
    display: flex;
    justify-content: center;
    padding: 32px;
}

.ibact-empty-state {
    padding: 24px 20px;
    text-align: center;
    color: var(--ibact-mid);
    font-size: 14px;
}

.ibact-empty-full {
    text-align: center;
    padding: 60px 20px;
    color: var(--ibact-mid);
}

.ibact-empty-full h3 {
    font-size: 18px;
    color: var(--ibact-dark);
    margin: 16px 0 8px;
}

.ibact-empty-full p {
    font-size: 14px;
}

/* ─────────────── Spinner ─────────────── */
@keyframes ibact-spin {
    to { transform: rotate(360deg); }
}

.ibact-spinner {
    animation: ibact-spin .8s linear infinite;
}

/* ─────────────── Links ─────────────── */
.ibact-link {
    color: var(--ibact-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.ibact-link:hover { text-decoration: underline; }

.ibact-link-btn {
    background: none;
    border: none;
    color: var(--ibact-primary);
    font-size: inherit;
    cursor: pointer;
    padding: 0 0 0 4px;
    text-decoration: underline;
}

/* ─────────────── Site Details Drawer ─────────────── */
.isd-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(3px);
    z-index: 9000;
}

.isd-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 560px;
    background: #fff;
    z-index: 9001;
    display: flex; flex-direction: column;
    transform: translateX(110%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 48px rgba(0,0,0,.18);
    overflow: hidden;
}

.isd-drawer.isd-open {
    transform: translateX(0);
}

body.isd-body-lock { overflow: hidden; }

.isd-header {
    display: flex; align-items: center; gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid #F1F5F9;
    background: #fff;
    position: sticky; top: 0; z-index: 1;
    flex-shrink: 0;
}

.isd-back-btn {
    display: flex; align-items: center; gap: 6px;
    background: #F8FAFC; border: 1px solid #E2E8F0;
    border-radius: 10px; padding: 8px 14px;
    font-size: 14px; font-weight: 600; color: #475569;
    cursor: pointer; transition: background .15s, color .15s;
    flex-shrink: 0;
}
.isd-back-btn:hover { background: #F1F5F9; color: #0f172a; }

.isd-header-title {
    font-size: 16px; font-weight: 700; color: #0f172a;
}

.isd-body {
    flex: 1; overflow-y: auto; padding: 24px;
}

.isd-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 14px; padding: 60px 20px;
    color: #94a3b8; font-size: 14px;
}

.isd-error {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    padding: 48px 20px; text-align: center;
    color: #dc2626; font-size: 14px;
}

@media (max-width: 600px) {
    .isd-drawer { max-width: 100%; }
}

/* ─────────────── Site Details Modal ─────────────── */
.ilp-site-details-wrap { font-size: 14px; }

.ilp-site-header {
    display: flex; align-items: center; gap: 14px;
    padding: 4px 0 20px; border-bottom: 1px solid var(--ibact-border);
    margin-bottom: 20px;
}
.ilp-site-header-icon {
    width: 48px; height: 48px; background: var(--ibact-primary-lt);
    color: var(--ibact-primary); border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ilp-site-header-name {
    font-size: 17px; font-weight: 800; color: var(--ibact-dark); margin-bottom: 3px;
}
.ilp-site-header-url {
    font-size: 12px; color: var(--ibact-primary); text-decoration: none;
}
.ilp-site-header-url:hover { text-decoration: underline; }

.ilp-details-section { margin-bottom: 20px; }

.ilp-details-section-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; color: var(--ibact-mid);
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid var(--ibact-border);
}

.ilp-detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 0; border-bottom: 1px solid #F9FAFB; gap: 12px; flex-wrap: wrap;
}
.ilp-detail-lbl {
    font-size: 13px; font-weight: 600; color: var(--ibact-mid);
    min-width: 110px; flex-shrink: 0;
}
.ilp-detail-link {
    color: var(--ibact-primary); text-decoration: none; font-size: 13px;
    display: flex; align-items: center; gap: 4px; word-break: break-all;
}
.ilp-detail-link:hover { text-decoration: underline; }

.ilp-detail-copy-wrap {
    display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end;
}
.ilp-detail-copy-wrap span { font-size: 14px; font-weight: 600; color: var(--ibact-dark); }

.ilp-copy-btn {
    background: var(--ibact-bg); border: 1px solid var(--ibact-border);
    border-radius: 6px; padding: 4px 8px; cursor: pointer; color: var(--ibact-mid);
    display: flex; align-items: center; transition: background .15s;
}
.ilp-copy-btn:hover { background: var(--ibact-primary-lt); color: var(--ibact-primary); }

.ilp-show-pwd-btn {
    background: var(--ibact-bg); border: 1px solid var(--ibact-border);
    border-radius: 6px; padding: 4px 10px; cursor: pointer;
    font-size: 12px; font-weight: 600; color: var(--ibact-mid);
}
.ilp-show-pwd-btn:hover { background: var(--ibact-primary-lt); color: var(--ibact-primary); }

/* Renewal Boxes */
.ilp-renewal-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.ilp-renewal-box {
    border-radius: 12px; padding: 16px; border: 1.5px solid;
    transition: transform .15s;
}
.ilp-renewal-box:hover { transform: translateY(-2px); }

.ilp-renewal-ok       { background: #f0fdf4; border-color: #bbf7d0; }
.ilp-renewal-notice   { background: #eff6ff; border-color: #bfdbfe; }
.ilp-renewal-warn     { background: #fffbeb; border-color: #fde68a; }
.ilp-renewal-critical { background: #fef2f2; border-color: #fecaca; }

.ilp-renewal-head {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.ilp-renewal-icon { font-size: 22px; line-height: 1; flex-shrink: 0; margin-top: 2px; }

.ilp-renewal-label {
    font-size: 12px; font-weight: 700; color: #374151;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px;
}
.ilp-renewal-date { font-size: 14px; font-weight: 700; color: #0f172a; }

.ilp-renewal-counter {
    margin-left: auto; text-align: center; flex-shrink: 0;
    background: rgba(255,255,255,.7); border-radius: 10px; padding: 6px 10px;
    min-width: 56px;
}
.ilp-renewal-days {
    display: block; font-size: 22px; font-weight: 900;
    color: #0f172a; line-height: 1;
}
.ilp-renewal-days-label { font-size: 10px; font-weight: 600; color: #6B7280; }
.ilp-renewal-critical .ilp-renewal-days { color: #dc2626; }
.ilp-renewal-warn .ilp-renewal-days { color: #d97706; }

.ilp-renewal-status {
    font-size: 12px; font-weight: 600; color: #6B7280;
    margin-bottom: 12px;
}
.ilp-renewal-critical .ilp-renewal-status { color: #dc2626; }
.ilp-renewal-warn .ilp-renewal-status     { color: #d97706; }
.ilp-renewal-ok .ilp-renewal-status       { color: #16a34a; }

.ilp-renew-btn {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 9px 12px;
    background: #25D366; color: #fff;
    border: none; border-radius: 9px; font-size: 13px; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: background .15s;
}
.ilp-renew-btn:hover { background: #1da851; }

.ilp-renew-note {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: #6B7280;
    background: rgba(255,255,255,.6); border-radius: 8px;
    padding: 8px 10px;
}

/* Hosting Access Buttons */
.ilp-hosting-access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.ilp-access-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px;
    border-radius: 14px;
    border: 1.5px solid var(--ibact-border);
    background: var(--ibact-bg);
    cursor: pointer;
    transition: all .18s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.ilp-access-btn:hover {
    border-color: var(--ibact-primary);
    background: var(--ibact-primary-lt);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255,139,69,.15);
}

.ilp-access-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.ilp-access-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,139,69,.1);
    color: var(--ibact-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.ilp-access-cpanel .ilp-access-btn-icon {
    background: #EFF6FF;
    color: #3B82F6;
}

.ilp-access-webmail .ilp-access-btn-icon {
    background: #F0FDF4;
    color: #16A34A;
}

.ilp-access-btn-label {
    font-size: 15px;
    font-weight: 800;
    color: var(--ibact-dark);
    display: block;
}

.ilp-access-btn-sub {
    font-size: 11px;
    color: var(--ibact-mid);
    display: block;
    line-height: 1.4;
}

.ilp-access-btn-arrow {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 16px;
    color: var(--ibact-mid);
    transition: transform .18s, color .18s;
}

.ilp-access-btn:hover .ilp-access-btn-arrow {
    color: var(--ibact-primary);
    transform: translateX(3px);
}

@media (max-width: 420px) {
    .ilp-hosting-access-grid { grid-template-columns: 1fr; }
}

.ilp-notes-text {
    font-size: 13px; color: var(--ibact-dark); line-height: 1.6;
    background: var(--ibact-bg); padding: 12px 14px; border-radius: 8px;
    border: 1px solid var(--ibact-border);
}

@media (max-width: 480px) {
    .ilp-renewal-grid { grid-template-columns: 1fr; }
}

/* ─────────────── Responsive ─────────────── */
@media (max-width: 1024px) {
    .ibact-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .ibact-two-col   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ibact-mobile-header { display: flex; }

    .ibact-sidebar {
        transform: translateX(-100%);
    }

    .ibact-sidebar.ibact-sidebar-open {
        transform: translateX(0);
    }

    .ibact-sidebar-overlay.ibact-overlay-show {
        display: block;
    }

    .ibact-main {
        margin-left: 0;
        padding: 80px 16px 40px;
    }

    .ibact-modal-box { max-height: 100vh; border-radius: 0; max-width: 100%; }
    .ibact-modal     { padding: 0; align-items: flex-end; }
    .ibact-modal-box { border-radius: 16px 16px 0 0; }

    .ibact-otp-digit { width: 40px; height: 48px; font-size: 20px; }
    .ibact-login-card { padding: 28px 20px; }
    .ibact-form-row  { grid-template-columns: 1fr; }
    .ibact-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .ibact-stat-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ibact-stat-card  { padding: 14px; }
    .ibact-stat-num   { font-size: 22px; }
    .ibact-website-grid { grid-template-columns: 1fr; }
}
