/* =============================================================
   TravelPro SaaS - Custom Styles
   Bootstrap 5 + Bootstrap Icons
   ============================================================= */
:root {
    --tp-primary: #2563eb;
    --tp-primary-light: #eff6ff;
    --tp-primary-dark: #1d4ed8;
    --tp-sidebar-bg: #0f172a;
    --tp-sidebar-hover: #1e293b;
    --tp-sidebar-active: #2563eb;
    --tp-header-h: 64px;
    --tp-sidebar-w: 260px;
    --tp-shadow-sm: 0 1px 3px rgba(15,23,42,.06);
    --tp-shadow-md: 0 4px 12px rgba(15,23,42,.08);
    --tp-shadow-lg: 0 8px 24px rgba(15,23,42,.12);
    --tp-radius: 12px;
    --tp-radius-lg: 16px;
    --tp-transition: .2s ease;
}

* { scrollbar-width: thin; }

body {
    background: #f0f2f5;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    color: #334155;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================================================
   AUTH PAGES
   ============================================================= */
.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #3b82f6 100%);
    padding: 16px;
}
.auth-wrap { width: 100%; max-width: 430px; }
.auth-card { border-radius: var(--tp-radius-lg); overflow: hidden; border: none; }
.auth-card .card-body { padding: 32px 28px; }
.auth-logo {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}

/* =============================================================
   ADMIN LAYOUT - SIDEBAR
   ============================================================= */
.tp-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--tp-sidebar-w);
    background: var(--tp-sidebar-bg);
    color: #cbd5e1;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform var(--tp-transition);
}
.tp-brand {
    height: var(--tp-header-h);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap;
    overflow: hidden;
}
.tp-brand i { font-size: 24px; color: var(--tp-primary); }
.tp-brand img { height: 36px; max-width: 140px; object-fit: contain; filter: brightness(0) invert(1); }
.tp-brand small { display: block; font-weight: 400; font-size: 11px; color: #94a3b8; }
.tp-sidebar-scroll { overflow-y: auto; flex: 1; padding: 8px 0 24px; }
.tp-nav-section {
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
    color: #64748b; padding: 16px 20px 6px; font-weight: 600;
}
.tp-nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 16px; margin: 1px 8px; border-radius: 8px;
    color: #cbd5e1; text-decoration: none; font-size: 14px;
    transition: all var(--tp-transition);
}
.tp-nav-item i { font-size: 17px; width: 20px; text-align: center; }
.tp-nav-item:hover { background: var(--tp-sidebar-hover); color: #fff; transform: translateX(2px); }
.tp-nav-item.active { background: var(--tp-sidebar-active); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.3); }
.tp-nav-item.active .badge { background: #fff; color: var(--tp-sidebar-active); }
.tp-nav-item .badge { margin-left: auto; }
.tp-sidebar-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.5);
    backdrop-filter: blur(2px); z-index: 1035; display: none;
}

/* =============================================================
   HEADER
   ============================================================= */
.tp-header {
    position: fixed;
    top: 0; right: 0; left: var(--tp-sidebar-w);
    height: var(--tp-header-h);
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    z-index: 1030;
    box-shadow: var(--tp-shadow-sm);
}
.tp-page-title { font-size: 17px; font-weight: 700; margin: 0; color: #0f172a; min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-header-search { position: relative; flex: 0 1 340px; }
.tp-header-search input { padding-left: 34px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; }
.tp-header-search input:focus { background: #fff; border-color: var(--tp-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.tp-header-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.tp-header-search .dropdown-menu { position: absolute; left: 0; z-index: 2000; max-height: 320px; overflow-y: auto; border-radius: var(--tp-radius); border: 1px solid #e2e8f0; box-shadow: var(--tp-shadow-lg); }
.tp-header-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tp-icon-btn {
    width: 40px; height: 40px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: #475569; position: relative;
    transition: all var(--tp-transition);
}
.tp-icon-btn:hover { background: #f1f5f9; color: var(--tp-primary); transform: translateY(-1px); }
.tp-icon-btn .tp-badge {
    position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px;
    font-size: 10px; border-radius: 50%; background: #dc2626; color: #fff;
    display: flex; align-items: center; justify-content: center; padding: 0 4px;
    animation: tp-pulse 2s infinite;
}
@keyframes tp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.tp-user-name { font-size: 14px; font-weight: 600; line-height: 1.1; color: #0f172a; }
.tp-user-role { font-size: 12px; color: #64748b; }

/* =============================================================
   FLASH / TOAST MESSAGES
   ============================================================= */
.tp-toast-wrapper {
    position: fixed;
    top: calc(var(--tp-header-h) + 12px);
    left: var(--tp-sidebar-w);
    right: 0;
    z-index: 2000;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    pointer-events: none;
}
.tp-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--tp-radius);
    border: none;
    pointer-events: auto;
    min-width: 300px;
    max-width: 560px;
    animation: tp-slideDown .35s ease;
}
.tp-toast-icon { font-size: 20px; flex-shrink: 0; }
.tp-toast-msg { font-size: 14px; font-weight: 500; }
@keyframes tp-slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tp-flash { display: none; }

/* =============================================================
   CONTENT AREA
   ============================================================= */
.tp-content {
    margin-left: var(--tp-sidebar-w);
    padding: calc(var(--tp-header-h) + 24px) 24px 48px;
    min-height: 100vh;
}

/* Sidebar toggling */
body.sidebar-collapsed .tp-sidebar { transform: translateX(-100%); }
body.sidebar-collapsed .tp-content { margin-left: 0; }
body.sidebar-collapsed .tp-header { left: 0; }
body.sidebar-collapsed .tp-toast-wrapper { left: 0; }
body.sidebar-open .tp-sidebar { transform: translateX(0); }
body.sidebar-open .tp-sidebar-overlay { display: block; }

/* =============================================================
   CARDS
   ============================================================= */
.tp-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-sm);
    transition: box-shadow var(--tp-transition);
}
.tp-card:hover { box-shadow: var(--tp-shadow-md); }
.tp-card .card-header {
    background: #f9fafb;
    border-bottom: 1px solid #eef1f6;
    font-weight: 700; color: #0f172a;
    padding: 14px 20px;
    border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0;
}
.tp-card .card-body { padding: 22px; }

/* =============================================================
   STAT CARDS (Dashboard + Module Stats)
   ============================================================= */
.tp-stat { display: flex; align-items: center; gap: 14px; }
.tp-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.tp-stat-value { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.tp-stat-label { font-size: 13px; color: #64748b; margin-top: 2px; }
.tp-stat-card {
    border-radius: var(--tp-radius-lg);
    padding: 18px 20px;
    box-shadow: var(--tp-shadow-sm);
    display: flex; flex-direction: column; gap: 4px;
    transition: transform var(--tp-transition), box-shadow var(--tp-transition);
}
.tp-stat-card:hover { transform: translateY(-2px); box-shadow: var(--tp-shadow-md); }

/* =============================================================
   FORM STYLING
   ============================================================= */

/* Form cards — generous padding */
.tp-card form .mb-3,
.tp-card form .mb-2,
.tp-card form .mb-1,
.tp-card form .row {
    margin-bottom: 0;
}
.tp-card .card-body form { display: flex; flex-direction: column; gap: 0; }

/* Labels */
.tp-card .form-label,
.tp-card label.form-label,
.tp-card label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
    font-size: 13px;
}

/* Inputs, selects, textareas */
.tp-card .form-control,
.tp-card .form-select,
.tp-card .form-control-sm,
.tp-card .form-select-sm {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: all var(--tp-transition);
    background: #f9fafb;
}
.tp-card .form-control:focus,
.tp-card .form-select:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}
.tp-card .form-control-sm,
.tp-card .form-select-sm {
    padding: 7px 12px;
    font-size: 13px;
    border-radius: 8px;
}

/* Input groups */
.tp-card .input-group {
    border-radius: 10px;
    overflow: hidden;
}
.tp-card .input-group .input-group-text {
    background: #f1f5f9;
    border: 1px solid #d1d5db;
    color: #64748b;
    font-size: 14px;
}
.tp-card .input-group .form-control {
    border-left: none;
}
.tp-card .input-group .form-control:focus + .input-group-text,
.tp-card .input-group .form-control:focus ~ .input-group-text {
    border-color: var(--tp-primary);
}

/* Select with form */
.tp-card select.form-select,
.tp-card select.form-select-sm {
    appearance: auto;
}

/* Form row spacing inside cards */
.tp-card .row > .col-md-6,
.tp-card .row > .col-md-4,
.tp-card .row > .col-md-3,
.tp-card .row > .col-6,
.tp-card .row > .col-12,
.tp-card .row > .col-lg-6,
.tp-card .row > .col-lg-4 {
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Horizontal form layouts */
.tp-card .row.g-2,
.tp-card .row.g-3 {
    row-gap: 12px !important;
}

/* =============================================================
   MODULE TABS
   ============================================================= */
.tp-tabs {
    display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin;
    background: #fff; border: 1px solid #e8ecf1; border-radius: var(--tp-radius-lg);
    padding: 6px;
}
.tp-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px; border-radius: 10px;
    color: #475569; text-decoration: none;
    font-size: 13.5px; font-weight: 600; white-space: nowrap;
    transition: all var(--tp-transition);
}
.tp-tab:hover { background: #f1f5f9; color: #0f172a; }
.tp-tab.active { background: var(--tp-primary); color: #fff; box-shadow: 0 2px 8px rgba(37,99,235,.25); }

/* =============================================================
   TABLES
   ============================================================= */
.table thead th {
    background: #f8fafc; color: #475569; font-size: 12px; text-transform: uppercase;
    letter-spacing: .05em; border-bottom-width: 1px; white-space: nowrap;
    font-weight: 700; padding: 12px 14px;
}
.table tbody td { vertical-align: middle; font-size: 14px; padding: 12px 14px; }
.table-hover tbody tr:hover { background: #f8fafc; }
.table-sm thead th { padding: 8px 12px; }
.table-sm tbody td { padding: 8px 12px; }

/* Tables -> cards on small screens */
@media (max-width: 767.98px) {
    .table-cards { width: 100%; }
    .table-cards thead { display: none; }
    .table-cards tbody { display: block; width: 100%; }
    .table-cards tbody tr {
        display: block; background: #fff;
        border: 1px solid #e8ecf1; border-radius: var(--tp-radius-lg);
        box-shadow: var(--tp-shadow-sm);
        padding: 6px 14px; margin-bottom: 14px;
    }
    .table-cards tbody tr:last-child { margin-bottom: 0; }
    .table-cards tbody td {
        display: flex; align-items: center; justify-content: space-between;
        gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px dashed #f1f5f9;
        font-size: 14px; text-align: right; white-space: normal;
    }
    .table-cards tbody td::before {
        content: attr(data-label);
        font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
        color: #94a3b8; flex: 0 0 auto; max-width: 46%; text-align: left;
    }
    .table-cards tbody td:first-child::before { color: var(--tp-primary); }
    .table-cards tbody td:last-child { border-bottom: 0; }
    .table-cards tbody td[colspan] {
        display: block; text-align: center; padding: 14px; color: #64748b;
    }
    .table-cards tbody td[colspan]::before { display: none; }
    .table-cards tbody td:has(.btn) {
        display: block; text-align: left; padding-top: 10px;
        border-top: 1px solid #f1f5f9; border-bottom: 0;
    }
    .table-cards tbody td:has(.btn)::before { display: none; }
    .table-cards tbody td .btn { margin: 2px 4px 2px 0; }
    .table-cards tbody td .badge { white-space: normal; }
    .table-cards tbody td img { max-width: 100%; height: auto; }
}

/* =============================================================
   TIMELINE
   ============================================================= */
.tp-timeline { position: relative; padding-left: 22px; }
.tp-timeline::before { content: ""; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: #e2e8f0; }
.tp-timeline-item { position: relative; margin-bottom: 18px; }
.tp-timeline-item::before {
    content: ""; position: absolute; left: -22px; top: 4px; width: 14px; height: 14px;
    border-radius: 50%; background: #fff; border: 3px solid var(--tp-primary); box-sizing: border-box;
}
.tp-timeline-item.success::before { border-color: #22c55e; }
.tp-timeline-item.warning::before { border-color: #f59e0b; }
.tp-timeline-item.danger::before { border-color: #ef4444; }

/* =============================================================
   SEARCH / FILTER BAR
   ============================================================= */
.tp-search-filter-bar {
    background: #fff; border: 1px solid #e8ecf1;
    border-radius: var(--tp-radius-lg); padding: 16px 18px;
    box-shadow: var(--tp-shadow-sm);
}
.tp-search-filter-bar .form-control,
.tp-search-filter-bar .form-select {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #f9fafb;
}
.tp-search-filter-bar .form-control:focus,
.tp-search-filter-bar .form-select:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: #fff;
}

/* =============================================================
   NOTE BLOCK
   ============================================================= */
.tp-note {
    background: #f8fafc; border: 1px solid #e8ecf1;
    border-left: 4px solid var(--tp-primary);
    border-radius: 8px; padding: 12px 14px; font-size: 14px;
}

/* =============================================================
   BUTTONS — Enhanced
   ============================================================= */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 18px;
    transition: all var(--tp-transition);
}
.btn-sm {
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}
.btn-primary {
    box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(37,99,235,.35);
    transform: translateY(-1px);
}
.btn-outline-primary:hover { transform: translateY(-1px); }
.btn-outline-secondary:hover { transform: translateY(-1px); }
.btn-success { box-shadow: 0 2px 8px rgba(22,163,74,.25); }
.btn-danger { box-shadow: 0 2px 8px rgba(220,38,38,.25); }
.btn-warning { box-shadow: 0 2px 8px rgba(245,158,11,.25); }

/* =============================================================
   BADGES
   ============================================================= */
.badge {
    font-weight: 600;
    letter-spacing: .02em;
    padding: 4px 10px;
    border-radius: 6px;
}

/* =============================================================
   CALENDAR
   ============================================================= */
.calendar-grid td { vertical-align: top; }
.calendar-today { background: #eff6ff; border-radius: 8px; }

/* =============================================================
   PIPELINE (Sales)
   ============================================================= */
.tp-pipe-col { min-width: 230px; max-width: 280px; flex-shrink: 0; }
.tp-pipe-head { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px 10px 0 0; padding: 10px 12px; }
.tp-pipe-body { background: #f1f5f9; border: 1px solid #e2e8f0; border-top: 0; border-radius: 0 0 10px 10px; padding: 8px; min-height: 120px; }

/* =============================================================
   NOTIFICATION DROPDOWN
   ============================================================= */
.notif-menu { width: 340px; max-width: 92vw; max-height: 430px; overflow-y: auto; border-radius: var(--tp-radius); }
.notif-item { display: flex; gap: 10px; padding: 10px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid #f1f5f9; transition: background var(--tp-transition); }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-dot { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; }

/* =============================================================
   PRINT
   ============================================================= */
@media print {
    .tp-sidebar, .tp-header, .tp-toast-wrapper, .no-print { display: none !important; }
    .tp-content { margin: 0; padding: 16px; }
    .tp-card { box-shadow: none; border: 1px solid #ddd; }
    .tp-card img[alt="Logo"] { max-height: 60px !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 991.98px) {
    .tp-sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(0,0,0,.3); }
    .tp-content { margin-left: 0; }
    .tp-header { left: 0; }
    .tp-toast-wrapper { left: 0; }
    .tp-header-search { display: none; }
    .tp-user-name, .tp-user-role { display: none; }
}
@media (min-width: 992px) {
    .tp-sidebar-overlay { display: none !important; }
}

/* 15-inch laptop: 1366x768 — tighten spacing */
@media (min-width: 992px) and (max-width: 1400px) {
    .tp-content { padding: calc(var(--tp-header-h) + 16px) 20px 40px; }
    .tp-stat-card { padding: 16px 18px; }
    .tp-stat-value { font-size: 22px; }
    .tp-header-search { flex: 0 1 260px; }
    .tp-page-title { font-size: 15px; }
    .tp-card .card-body { padding: 18px; }
}

/* Full HD 1920+ — constrain content width, center it */
@media (min-width: 1401px) {
    .tp-content {
        max-width: 1400px;
        margin-left: var(--tp-sidebar-w);
        margin-right: auto;
        padding: calc(var(--tp-header-h) + 28px) 32px 48px;
    }
    body.sidebar-collapsed .tp-content { margin-left: auto; margin-right: auto; }
}

@media (max-width: 575.98px) {
    .tp-content { padding: calc(var(--tp-header-h) + 16px) 12px 40px; }
    .tp-header { padding: 0 12px; gap: 8px; }
    .tp-toast-wrapper { padding: 0 12px; }
    .tp-stat-value { font-size: 19px; }
    .tp-stat-card { padding: 14px 16px; }
    .tp-tab { padding: 7px 10px; font-size: 13px; }
    .tp-page-title { font-size: 15px; }
    .d-flex .btn-group .btn { font-size: 12px; }
    .tp-card .card-body { padding: 16px; }
}

/* Table readability on all laptop screens */
@media (min-width: 992px) {
    .table { font-size: 14px; }
    .table th { font-size: 13px; white-space: nowrap; }
    .table td { vertical-align: middle; }
    .tp-inline-status .tp-status-trigger { font-size: 11px; padding: 3px 8px; }
}

/* =============================================================
   SUPER ADMIN LAYOUT
   ============================================================= */
.tp-layout { min-height: 100vh; }
.tp-sidebar-brand {
    height: var(--tp-header-h);
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px; color: #fff; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.08);
    white-space: nowrap; overflow: hidden; flex-shrink: 0;
}
.tp-sidebar-brand i { font-size: 24px; }
.tp-sidebar-brand em { font-style: normal; font-size: 11px; font-weight: 400; }
.tp-nav { list-style: none; margin: 0; padding: 8px; }
.tp-nav li a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 16px; margin: 1px 0; border-radius: 8px;
    color: #cbd5e1; text-decoration: none; font-size: 14px;
    transition: all var(--tp-transition);
}
.tp-nav li a:hover { background: var(--tp-sidebar-hover); color: #fff; }
.tp-nav li a.active { background: var(--tp-sidebar-active); color: #fff; }
.tp-main { min-height: 100vh; }
.tp-topbar {
    position: fixed; top: 0; right: 0; left: var(--tp-sidebar-w);
    height: var(--tp-header-h); background: #fff;
    border-bottom: 1px solid #e2e8f0; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
}
.tp-content-heading h5 { font-weight: 700; color: #0f172a; }
@media (max-width: 991.98px) {
    .tp-topbar { left: 0; }
}

/* =============================================================
   PUBLIC STOREFRONT
   ============================================================= */
.sf-navbar {
    position: sticky; top: 0; z-index: 1020;
    background: var(--tp-sidebar-bg); color: #fff;
    padding: 12px 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    box-shadow: var(--tp-shadow-md);
}
.sf-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; text-decoration: none; font-size: 16px; }
.sf-brand i { color: var(--tp-primary); font-size: 20px; }
.sf-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #3b82f6 100%);
    color: #fff; padding: 64px 20px; text-align: center;
}
.sf-hero h1 { font-weight: 800; margin-bottom: 6px; }
.sf-hero p { opacity: .9; margin-bottom: 18px; font-size: 17px; }
.sf-cover {
    height: 190px; display: flex; align-items: center; justify-content: center;
    font-size: 44px; color: #fff;
    background: linear-gradient(135deg, #2563eb, #6f42c1);
    border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0;
}
.sf-card {
    height: 100%; transition: transform .2s, box-shadow .2s;
    border: none; border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow-sm);
}
.sf-card:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow-lg); }
.sf-price { font-size: 20px; font-weight: 800; color: var(--tp-primary); }
.sf-muted { color: #64748b; }
.sf-off { text-align: center; padding: 80px 20px; }

/* =============================================================
   UTILITY CLASSES
   ============================================================= */
.tp-fs-13 { font-size: 13px; }
.tp-text-muted { color: #64748b; }
.cursor-pointer { cursor: pointer; }

/* =============================================================
   CUSTOM STATUS DROPDOWN
   ============================================================= */
.tp-status-dropdown {
    position: relative;
    display: inline-block;
}
.tp-status-dropdown .tp-status-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all .15s ease;
    user-select: none;
    min-width: 80px;
    justify-content: center;
}
.tp-status-dropdown .tp-status-trigger:hover {
    filter: brightness(.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.tp-status-dropdown .tp-status-trigger .tp-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tp-status-dropdown .tp-status-trigger .bi {
    font-size: 10px;
    margin-left: 2px;
    opacity: .6;
}
.tp-status-dropdown .tp-status-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1050;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    padding: 6px;
    animation: tp-dropIn .15s ease;
}
.tp-status-dropdown.open .tp-status-menu {
    display: block;
}
@keyframes tp-dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.tp-status-dropdown .tp-status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 7px;
    cursor: pointer;
    transition: background .1s;
    color: #1e293b;
    white-space: nowrap;
}
.tp-status-dropdown .tp-status-option:hover {
    background: #f1f5f9;
}
.tp-status-dropdown .tp-status-option.active {
    background: #eff6ff;
    font-weight: 700;
}
.tp-status-dropdown .tp-status-option .tp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Status colors — trigger + dot */
.tp-sd-draft .tp-status-trigger { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tp-sd-draft .tp-status-dot { background: #94a3b8; }

.tp-sd-pending .tp-status-trigger { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.tp-sd-pending .tp-status-dot { background: #eab308; }

.tp-sd-submitted .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-submitted .tp-status-dot { background: #3b82f6; }

.tp-sd-processing .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-processing .tp-status-dot { background: #3b82f6; }

.tp-sd-new .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-new .tp-status-dot { background: #3b82f6; }

.tp-sd-contacted .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-contacted .tp-status-dot { background: #3b82f6; }

.tp-sd-qualified .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-qualified .tp-status-dot { background: #3b82f6; }

.tp-sd-proposal-sent .tp-status-trigger { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.tp-sd-proposal-sent .tp-status-dot { background: #eab308; }

.tp-sd-approved .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-approved .tp-status-dot { background: #22c55e; }

.tp-sd-stamped .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-stamped .tp-status-dot { background: #22c55e; }

.tp-sd-completed .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-completed .tp-status-dot { background: #22c55e; }

.tp-sd-won .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-won .tp-status-dot { background: #22c55e; }

.tp-sd-issued .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-issued .tp-status-dot { background: #22c55e; }

.tp-sd-active .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-active .tp-status-dot { background: #22c55e; }

.tp-sd-confirmed .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-confirmed .tp-status-dot { background: #3b82f6; }

.tp-sd-in-progress .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-in-progress .tp-status-dot { background: #3b82f6; }

.tp-sd-rejected .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-rejected .tp-status-dot { background: #ef4444; }

.tp-sd-cancelled .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-cancelled .tp-status-dot { background: #ef4444; }

.tp-sd-lost .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-lost .tp-status-dot { background: #ef4444; }

.tp-sd-expired .tp-status-trigger { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tp-sd-expired .tp-status-dot { background: #94a3b8; }

.tp-sd-inactive .tp-status-trigger { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tp-sd-inactive .tp-status-dot { background: #94a3b8; }

.tp-sd-out-of-stock .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-out-of-stock .tp-status-dot { background: #ef4444; }

.tp-sd-resolved .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-resolved .tp-status-dot { background: #22c55e; }

.tp-sd-closed .tp-status-trigger { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tp-sd-closed .tp-status-dot { background: #94a3b8; }

/* Payment-specific colors */
.tp-sd-paid .tp-status-trigger { background: #dcfce7; color: #166534; border-color: #86efac; }
.tp-sd-paid .tp-status-dot { background: #22c55e; }

.tp-sd-partial .tp-status-trigger { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.tp-sd-partial .tp-status-dot { background: #eab308; }

.tp-sd-unpaid .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-unpaid .tp-status-dot { background: #ef4444; }

.tp-sd-refunded .tp-status-trigger { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.tp-sd-refunded .tp-status-dot { background: #94a3b8; }

/* Priority-specific colors */
.tp-sd-low .tp-status-trigger { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.tp-sd-low .tp-status-dot { background: #3b82f6; }

.tp-sd-medium .tp-status-trigger { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.tp-sd-medium .tp-status-dot { background: #eab308; }

.tp-sd-high .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-high .tp-status-dot { background: #ef4444; }

.tp-sd-urgent .tp-status-trigger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.tp-sd-urgent .tp-status-dot { background: #ef4444; }

/* Feedback flash on AJAX save */
.tp-status-dropdown .tp-status-trigger.is-saving {
    opacity: .6;
    pointer-events: none;
}
.tp-status-dropdown .tp-status-trigger.is-saved {
    box-shadow: 0 0 0 2px rgba(34,197,94,.4);
}
