/* BanglaDock Custom Styles */

:root {
    --bd-brand-color: #2563eb;
    --bd-brand-color-600: #2563eb;
    --bd-brand-color-700: #1e40af;
    --bd-danger-color: #b91c1c;
    --bd-success-color: #166534;
    --bd-gray-100: #f3f4f6;
    --bd-gray-200: #e5e7eb;
    --bd-gray-700: #374151;
}

[data-variant="primary"] {
    background: var(--bd-brand-color-600);
    border-color: var(--bd-brand-color-600);
    color: #fff;
}

[data-variant="ghost"] {
    background: transparent;
    border-color: var(--bd-gray-200);
    color: #111827;
}

[data-variant="danger"] {
    background: #fee2e2;
    border-color: #fecaca;
    color: var(--bd-danger-color);
}

/* Fix WoodMart font loading errors */
@font-face {
    font-family: "woodmart-font";
    src: local("Arial");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Suppress font loading errors in console */
.wd-icon-font-error {
    display: none !important;
}

/* Fallback for missing WoodMart icons */
[class*="woodmart-font"]:before,
[class*="wd-icon"]:before {
    font-family: "woodmart-font", "dashicons", sans-serif !important;
}

/* Fix oversized admin buttons */
.wp-admin .bangladock-content .button,
.wp-admin .bangladock-content .button-primary,
.wp-admin .bangladock-content .button-secondary {
    height: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 30px !important;
    max-height: 40px !important;
}

.wp-admin .bangladock-content input[type="submit"],
.wp-admin .bangladock-content input[type="button"] {
    height: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 30px !important;
    max-height: 40px !important;
}

.wp-admin .bangladock-content .regular-text {
    height: 30px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.wp-admin .bangladock-content .large-text {
    padding: 6px 8px !important;
    font-size: 13px !important;
}

.wp-admin .bangladock-content select {
    height: 30px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    background-color: #eef2ff;
    color: #1f2937;
    border: 1px solid #c7d2fe;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #c7d2fe;
    color: #1e3a8a;
    transform: translateX(4px);
    border-color: #a5b4fc;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
.woocommerce-MyAccount-navigation-link--activation-center.is-active a,
.woocommerce-MyAccount-navigation-link--activation-center.woocommerce-MyAccount-navigation-link--current a {
    background-color: #fee2e2 !important;
    background-image: none !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.bangladock-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.bangladock-header {
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.bangladock-header h2 {
}

.bangladock-stat {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.bangladock-stat-number {
    font-size: calc(28px * var(--bd-type-scale, 1));
    font-weight: bold;
    display: block;
}

.bangladock-stat-label {
    font-size: calc(14px * var(--bd-type-scale, 1));
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bangladock-stats {
        flex-direction: column;
    }
    
    .bangladock-grid {
        grid-template-columns: 1fr;
    }
}

/* Animated icons */
.bd-icon {
    display: inline-block;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
    animation: bd-wiggle 2.5s ease-in-out infinite;
}

/* Devices card */
.bd-card-devices {
    margin-top: 12px;
}
.bd-card-header .bd-title { font-weight: 600; font-size: 18px; }
.bd-card-header .bd-subtitle { color:#6b7280; font-size: 14px; }
.bd-form-inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.bd-input { padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; }
.bd-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.bd-notice { border:1px solid #e5e7eb; border-radius:8px; padding:10px; margin-top:12px; }
.bd-notice-info { background:#f8fafc; }
.bd-badge-danger { background:#fee2e2; color:#b91c1c; padding:3px 8px; border-radius:10px; }
.bd-badge-success { background:#dcfce7; color:#166534; padding:3px 8px; border-radius:10px; }

/* Dropzone for attachments */
.bd-dropzone { border:2px dashed #cbd5e1; border-radius:10px; padding:10px; position:relative; display:flex; align-items:center; gap:10px; }
.bd-dropzone-hover { background:#f1f5f9; }
.bd-drop-hint { color:#64748b; font-size:13px; }

/* Editor presets */
.bd-editor-presets select { padding:6px 8px; border:1px solid #d1d5db; border-radius:6px; }

/* Quick actions & onboarding */
.bd-quick-actions .bd-button { padding:8px 12px; }
.bd-onboarding .bd-bullets { margin: 6px 0; }

/* Simple tabs */
.bd-tabs { display:flex; gap:10px; margin:8px 0 12px; }
.bd-tabs a { padding:6px 10px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none; color:#111827; }
.bd-tabs a.bd-tab-active { background:#eef2ff; border-color:#c7d2fe; color:#1e3a8a; }

@keyframes bd-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-2px) rotate(-4deg); }
    40% { transform: translateY(0) rotate(0deg); }
    60% { transform: translateY(2px) rotate(4deg); }
    80% { transform: translateY(0) rotate(0deg); }
}

/* Customer dashboard: stop icon spinning */
.woocommerce-account .bd-icon,
.woocommerce-account .bd-icon-circle {
    animation: none !important;
}

/* Hide default WooCommerce greeting to match custom design */
.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content > p:nth-child(2) { display: none; }

/* Dashboard layout */
.bd-dashboard { padding: 8px; }
.bd-header { margin-bottom: 12px; }
.bd-breadcrumb { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.bd-title { font-size: 34px; line-height: 1.2; margin: 0; font-weight: 800; }
.bd-subtitle { color: #6b7280; margin: 6px 0 0; }
.bd-wave { display: inline-block; animation: bd-wave 2.5s ease-in-out infinite; }
@keyframes bd-wave { 0%,100%{transform:rotate(0deg)} 30%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} }

.bd-top { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px){ .bd-top { grid-template-columns: 1fr; } }

.bd-stat-group { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; background:
  radial-gradient(800px 480px at 12% 18%, rgba(14,165,233,0.12), transparent),
}

/* Fix oversized admin buttons */
.wp-admin .bangladock-content .button,
.wp-admin .bangladock-content .button-primary,
.wp-admin .bangladock-content .button-secondary {
    height: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 30px !important;
    max-height: 40px !important;
}

.wp-admin .bangladock-content input[type="submit"],
.wp-admin .bangladock-content input[type="button"] {
    height: auto !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-height: 30px !important;
    max-height: 40px !important;
}

.wp-admin .bangladock-content .regular-text {
    height: 30px !important;
    padding: 4px 8px !important;
    font-size: 13px !important;
}

.wp-admin .bangladock-content .large-text {
    padding: 6px 8px !important;
    font-size: 13px !important;
}

.wp-admin .bangladock-content select {
    height: 30px !important;
    padding: 2px 8px !important;
    font-size: 13px !important;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    background-color: #eef2ff;
    color: #1f2937;
    border: 1px solid #c7d2fe;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: #c7d2fe;
    color: #1e3a8a;
    transform: translateX(4px);
    border-color: #a5b4fc;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--current a,
.woocommerce-MyAccount-navigation-link--activation-center.is-active a,
.woocommerce-MyAccount-navigation-link--activation-center.woocommerce-MyAccount-navigation-link--current a {
    background-color: #fee2e2 !important;
    background-image: none !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

.bangladock-content {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.bangladock-header {
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.bangladock-header h2 {
}

.bangladock-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.bangladock-stat {
    flex: 1;
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
}

.bangladock-stat-number {
    font-size: calc(28px * var(--bd-type-scale, 1));
    font-weight: bold;
    display: block;
}

.bangladock-stat-label {
    font-size: calc(14px * var(--bd-type-scale, 1));
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bangladock-stats {
        flex-direction: column;
    }
    
    .bangladock-grid {
        grid-template-columns: 1fr;
    }
}

/* Animated icons */
.bd-icon {
    display: inline-block;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
    animation: bd-wiggle 2.5s ease-in-out infinite;
}

/* Devices card */
.bd-card-devices {
    margin-top: 12px;
}
.bd-card-header .bd-title { font-weight: 600; font-size: 18px; }
.bd-card-header .bd-subtitle { color:#6b7280; font-size: 14px; }
.bd-form-inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.bd-input { padding:8px 10px; border:1px solid #d1d5db; border-radius:6px; }
.bd-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.bd-notice { border:1px solid #e5e7eb; border-radius:8px; padding:10px; margin-top:12px; }
.bd-notice-info { background:#f8fafc; }
.bd-badge-danger { background:#fee2e2; color:#b91c1c; padding:3px 8px; border-radius:10px; }
.bd-badge-success { background:#dcfce7; color:#166534; padding:3px 8px; border-radius:10px; }

/* Dropzone for attachments */
.bd-dropzone { border:2px dashed #cbd5e1; border-radius:10px; padding:10px; position:relative; display:flex; align-items:center; gap:10px; }
.bd-dropzone-hover { background:#f1f5f9; }
.bd-drop-hint { color:#64748b; font-size:13px; }

/* Editor presets */
.bd-editor-presets select { padding:6px 8px; border:1px solid #d1d5db; border-radius:6px; }

/* Quick actions & onboarding */
.bd-quick-actions .bd-button { padding:8px 12px; }
.bd-onboarding .bd-bullets { margin: 6px 0; }

/* Simple tabs */
.bd-tabs { display:flex; gap:10px; margin:8px 0 12px; }
.bd-tabs a { padding:6px 10px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none; color:#111827; }
.bd-tabs a.bd-tab-active { background:#eef2ff; border-color:#c7d2fe; color:#1e3a8a; }

@keyframes bd-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-2px) rotate(-4deg); }
    40% { transform: translateY(0) rotate(0deg); }
    60% { transform: translateY(2px) rotate(4deg); }
    80% { transform: translateY(0) rotate(0deg); }
}

/* Customer dashboard: stop icon spinning */
.woocommerce-account .bd-icon,
.woocommerce-account .bd-icon-circle {
    animation: none !important;
}

/* Hide default WooCommerce greeting to match custom design */
.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content > p:nth-child(2) { display: none; }

/* Dashboard layout */
.bd-dashboard { padding: 8px; }
.bd-header { margin-bottom: 12px; }
.bd-breadcrumb { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.bd-title { font-size: 34px; line-height: 1.2; margin: 0; font-weight: 800; }
.bd-subtitle { color: #6b7280; margin: 6px 0 0; }
.bd-wave { display: inline-block; animation: bd-wave 2.5s ease-in-out infinite; }
@keyframes bd-wave { 0%,100%{transform:rotate(0deg)} 30%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} }

.bd-top { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px){ .bd-top { grid-template-columns: 1fr; } }

.bd-stat-group { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; background:
  radial-gradient(800px 480px at 12% 18%, rgba(14,165,233,0.12), transparent),
  radial-gradient(700px 420px at 88% 32%, rgba(99,102,241,0.10), transparent);
  padding: 12px; border-radius: 16px; }
@media (max-width: 900px){ .bd-stat-group { grid-template-columns: repeat(2,1fr); } }
.bd-stat-card { background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08)); border: 1px solid rgba(255,255,255,0.45); border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(31,38,135,0.10); position: relative; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.bd-stat-label { font-weight: 600; color: #374151; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; white-space: normal; word-break: normal; overflow-wrap: normal; }
.bd-collection-card:hover { background: linear-gradient(135deg, #8a47f5 0%, #6627c4 100%); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(99,102,241,0.35); color: #fff; }
.bd-collection-img { width: 24px; height: 24px; }
.bd-collection-top { display:flex; align-items:center; gap: 12px; }
.bd-collection-title { font-weight: 800; color: #fff; }
.bd-collection-desc { opacity: 0.95; font-size: 13px; color: #fff; }
.bd-collection-bottom { display:flex; justify-content:flex-end; margin-top: 10px; }
.bd-badge { display:inline-flex; align-items:center; justify-content:center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.bd-badge-light { background: #f1f5f9; color: #0f172a; }
/* Status-specific badges for membership */
.bd-badge-status.bd-status-active { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.bd-badge-status.bd-status-paused { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; }
.bd-badge-status.bd-status-expired { background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }
.bd-badge-status.bd-status-default { background:#e5e7eb; color:#374151; border:1px solid #d1d5db; }
.bd-badge-fire { background: rgba(255,128,0,0.15); }
.bd-badge-rocket { background: rgba(0,196,255,0.15); }
.bd-badge-award { background: rgba(255,214,0,0.2); }

/* My Account navigation menu badges */
.bd-menu-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}


/* Latest Viewed Items Styles */
.bd-viewed-item {
    position: relative;
    overflow: hidden;
}

.bd-item-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.bd-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bd-viewed-item:hover .bd-item-thumbnail img {
    transform: scale(1.05);
}

.bd-item-content {
    padding: 0;
}

.bd-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-item-type {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bd-item-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.bd-view-again {
    font-size: 13px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.bd-view-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.bd-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
}

.bd-empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.bd-empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.bd-refresh-card {
    text-align: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.bd-refresh-views {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-refresh-views:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bd-refresh-views:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .bd-item-thumbnail {
        height: 100px;
    }
    
    .bd-item-title {
        font-size: 14px;
    }
    
    .bd-view-again {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .bangladock-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Compact list for Last Viewed */
.bd-view-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.bd-view-list-item { display: grid; grid-template-columns: 36px 1fr 60px; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.bd-view-list-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.bd-list-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size: 16px; }
.bd-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-list-body { display:flex; flex-direction:column; gap:4px; }
.bd-list-title { font-size: 14px; font-weight: 600; color:#0f172a; line-height: 1.2; }
.bd-list-meta { font-size: 12px; color:#64748b; display:flex; align-items:center; gap:6px; }
.bd-list-dot { opacity: 0.65; }
.bd-list-action { color:#64748b; font-size: 16px; text-align: right; }

/* Cleanup Table Styles */
.bd-table-container {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 20px;
}
.bd-cleanup-table {
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    width: 100%;
    border-collapse: collapse;
}
.bd-cleanup-table th,
.bd-cleanup-table td {
    white-space: nowrap;
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f1;
}
.bd-cleanup-table th {
    background: #f9f9f9;
    font-weight: 600;
    text-align: left;
}
.bd-cleanup-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .bd-view-list-item { grid-template-columns: 32px 1fr 48px; padding: 8px 10px; }
    .bd-list-title { font-size: 13px; }
}

/* Admin card grid for Latest Views */
.bd-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:8px}
@media (max-width:1024px){.bd-card-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.bd-card-grid{grid-template-columns:1fr}}

.bd-card{position:relative;display:flex;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.06);padding:10px;overflow:hidden}
.bd-card-link{position:absolute;inset:0;z-index:1}
.bd-card-thumb{flex:0 0 auto;width:56px;height:56px;border-radius:8px;overflow:hidden;margin-right:10px;background:#f3f4f6}
.bd-card-thumb img{width:100%;height:100%;object-fit:cover}
.bd-card-content{display:flex;flex-direction:column;gap:2px;min-width:0}
.bd-card-title{font-size:14px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-card-meta{font-size:12px;color:#6b7280}
.bd-card-time{font-size:12px;color:#6b7280}
.bd-card-actions{margin-left:auto;z-index:2}
.bd-card-actions .button{font-size:12px;padding:6px 10px;border-radius:6px}

/* Hover states */
.bd-card:hover{box-shadow:0 4px 10px rgba(0,0,0,.1)}
.bd-card:hover .bd-card-title{color:#0ea5e9}

/* Admin filters */
.bd-admin-filters label{display:block;font-size:12px;color:#374151;margin-bottom:4px}
.bd-admin-filters input,.bd-admin-filters select{height:32px;padding:4px 8px}

/* Pagination */
.bd-pagination .button{padding:6px 10px;font-size:12px}
.bd-pagination .button-primary{background:#2563eb;border-color:#2563eb}

/* BanglaDock Admin + Frontend Styles */

/* Skip link for accessibility */
.bd-skip-link { position: absolute; top: -1000px; left: 0; background: #111827; color: #fff; padding: 8px 12px; border-radius: 6px; }
.bd-skip-link:focus { top: 8px; z-index: 10000; }

/* Tooltip */
.bd-help-icon { display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; border-radius:50%; background:#eef2ff; color:#1e3a8a; border:1px solid #c7d2fe; font-size:12px; cursor:help; margin-left:6px; }
.bd-tooltip { position:fixed; max-width:280px; background:#111827; color:#fff; padding:8px 10px; border-radius:6px; font-size:12px; box-shadow:0 4px 10px rgba(0,0,0,.15); z-index:99999; }
.bd-tooltip a { color:#93c5fd; text-decoration:underline; }

/* Toasts */
#bd-toast-container { position:fixed; right:16px; bottom:16px; display:flex; flex-direction:column; gap:8px; z-index:10000; }
.bd-toast { background:#111827; color:#fff; padding:10px 12px; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,.2); font-size:13px; border:1px solid #1f2937; }
.bd-toast-success { background:#166534; }
.bd-toast-warning { background:#a16207; }
.bd-toast-error { background:#b91c1c; }

/* Skeleton loader */
.bd-skeleton { background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%); background-size: 400% 100%; animation: bd-skeleton 1.4s ease infinite; }

/* Search UI */
.bd-search-bar { display:flex; gap:8px; align-items:center; border:1px solid #e5e7eb; border-radius:10px; padding:8px; background:#fff; }
.bd-search-bar .bd-search-icon { color:#6b7280; margin-left:4px; }
.bd-search-bar input[type="search"] { flex:1; border:none; outline:none; font-size:13px; padding:6px; }
.bd-chip-group { display:flex; gap:6px; flex-wrap:wrap; }
.bd-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid #e5e7eb; border-radius:999px; background:#f9fafb; font-size:12px; color:#111827; cursor:pointer; }
.bd-chip[aria-pressed="true"], .bd-chip input:checked + span { background:#eef2ff; border-color:#c7d2fe; color:#1e3a8a; }
.bd-chip input { display:none; }
.bd-search-results { margin-top:12px; display:grid; grid-template-columns: 1fr; gap:12px; }
.bd-results-group h4 { margin:0 0 8px; font-size:14px; color:#374151; }
.bd-results-list { display:grid; gap:6px; }
.bd-result-card { border:1px solid #e5e7eb; border-radius:10px; padding:8px 10px; background:#fff; }
.bd-result-card a { color:#1f2937; text-decoration:none; font-weight:600; }
.bd-result-card .bd-sub { color:#6b7280; font-size:12px; margin-top:2px; }

/* Badges and result rows */
.bd-badge { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; margin-right:8px; border:1px solid var(--bd-gray-200); }
.bd-badge-neutral { background:#eef2ff; color:#1f2937; border-color:#c7d2fe; }
.bd-result-row { margin:4px 0; }

/* Focus states for accessibility */
.bd-tab:focus-visible, .bd-chip:focus-visible, .button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--bd-brand-color-600);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.15);
}

/* Form grid layout (tokenized) */
.bd-form-grid { display:grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap:10px; }
.bd-form-grid-3 { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
@keyframes bd-skeleton { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* Impersonation Banner */
.bd-impersonation-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  background: #111827;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.bd-impersonation-return {
  background: #2563eb;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.bd-impersonation-return:hover {
  background: #1d4ed8;
}
.bd-impersonation-spacer { height: 40px; }

/* Generic notice container */
.bd-notices { margin: 12px 20px; }

/* Notice card structural styles */
.bd-notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 10px;
  background: var(--bd-bg, #f0f4ff);
  color: var(--bd-fg, #112);
  border: 1px solid var(--bd-border, #c9d4ff);
}
.bd-notice-icon { font-size: 20px; line-height: 1; }
.bd-notice-title { font-weight: 600; margin-bottom: 4px; color: var(--bd-title-fg, inherit); }
.bd-notice-text { line-height: 1.4; }
/* CTA link wrapper */
.bd-notice-link { margin-top: 8px; }

/* Paragraph alignment helpers for notice text */
.bd-notice-card.bd-align-left .bd-notice-text { text-align: left; }
.bd-notice-card.bd-align-center .bd-notice-text { text-align: center; }
.bd-notice-card.bd-align-right .bd-notice-text { text-align: right; }
/* CTA alignment helpers (follow card-level horizontal alignment) */
.bd-notice-card.bd-align-left .bd-notice-link { text-align: left; }
.bd-notice-card.bd-align-center .bd-notice-link { text-align: center; }
.bd-notice-card.bd-align-right .bd-notice-link { text-align: right; }

/* Element-level alignment (overrides card-level when set) */
.bd-notice-card .bd-notice-title.bd-title-left { text-align: left; }
.bd-notice-card .bd-notice-title.bd-title-center { text-align: center; }
.bd-notice-card .bd-notice-title.bd-title-right { text-align: right; }
.bd-notice-card .bd-notice-text.bd-text-left { text-align: left; }
.bd-notice-card .bd-notice-text.bd-text-center { text-align: center; }
.bd-notice-card .bd-notice-text.bd-text-right { text-align: right; }
/* Optional element-level overrides for CTA link */
.bd-notice-card .bd-notice-link.bd-link-left { text-align: left; }
.bd-notice-card .bd-notice-link.bd-link-center { text-align: center; }
.bd-notice-card .bd-notice-link.bd-link-right { text-align: right; }
/* Alignment toolbar styles for admin UI */
.bd-align-toolbar { display: inline-flex; gap: 4px; align-items: center; }
.bd-align-toolbar .button { padding: 2px 6px; line-height: 1; }
.bd-align-toolbar .button.active { background: #2271b1; color: #fff; border-color: #135e96; }
.bd-align-toolbar .dashicons { font-size: 18px; vertical-align: middle; }

/* Inner row to keep icon + body horizontal while allowing vertical positioning */
.bd-notice-inner { display: flex; align-items: center; gap: 12px; }

/* Vertical positioning modes */
.bd-notice-card.bd-v-top { display: flex; flex-direction: column; justify-content: flex-start; }
.bd-notice-card.bd-v-center { display: flex; flex-direction: column; justify-content: center; }
.bd-notice-card.bd-v-bottom { display: flex; flex-direction: column; justify-content: flex-end; }
.bd-notice-card.bd-v-top, .bd-notice-card.bd-v-center, .bd-notice-card.bd-v-bottom { min-height: 80px; }

/* Size variants */
.bd-notice-card.bd-size-compact { padding: 8px 12px; }
.bd-notice-card.bd-size-large { padding: 16px 20px; }
.bd-notice-card.bd-size-compact .bd-notice-title { font-size: 13px; }
.bd-notice-card.bd-size-compact .bd-notice-text { font-size: 13px; }
.bd-notice-card.bd-size-large .bd-notice-title { font-size: 16px; }
.bd-notice-card.bd-size-large .bd-notice-text { font-size: 16px; }

/* Ticket thread */
.bd-divider { height: 1px; background: #e5e7eb; margin: 12px 0; }
.bd-thread { display: grid; gap: 10px; }
.bd-reply { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; }
.bd-reply-admin { border-color: #c7d2fe; background: #eef2ff; }
.bd-reply-user { border-color: #e5e7eb; }
.bd-reply-meta { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.bd-reply-body { font-size: 14px; color: #111827; }

/* Forms */
.bd-form label { display:block; font-size: 13px; color:#374151; margin-bottom:6px; }
.bd-form input[type="text"], .bd-form select, .bd-form textarea { width:100%; padding:8px 10px; border:1px solid #e5e7eb; border-radius:6px; margin-bottom:10px; }
.bd-form.bd-inline { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }

/* Lists */
.bd-list { display:grid; gap:8px; }
.bd-list-item { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 12px; }
.bd-list-title { font-weight:600; color:#0f172a; }
.bd-list-sub { font-size:12px; color:#64748b; }
.bd-list-actions .bangladock-button { font-size:12px; padding:6px 10px; }

/* Admin table */
.bd-table { display:grid; gap:0; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.bd-table-head, .bd-table-row { display:grid; grid-template-columns: 2fr 1.2fr 0.8fr 0.8fr 1fr 1fr 0.8fr; align-items:center; }
.bd-table-head { background:#f9fafb; font-weight:600; color:#374151; padding:10px 12px; }
.bd-table-row { border-top:1px solid #e5e7eb; padding:10px 12px; }
.bd-table-cell { font-size:13px; color:#111827; }
.bd-ellipsis { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Table element variant (used in Devices sessions) */
.bd-device-sessions .bd-table-wrap { overflow-x: auto; }
.bd-device-sessions table.bd-table { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; border-collapse: collapse; overflow: hidden; }
.bd-device-sessions table.bd-table thead th { background: #f9fafb; font-weight: 600; color: #374151; padding: 10px 12px; text-align: left; }
.bd-device-sessions table.bd-table tbody td { padding: 10px 12px; border-top: 1px solid #e5e7eb; font-size: 13px; color: #111827; }

/* Two column layout */
.bd-two-col { display:grid; grid-template-columns: 1.2fr 1fr; gap:16px; }
@media (max-width: 900px){ .bd-two-col { grid-template-columns: 1fr; } }

/* Hover effect for stat cards */
.bd-stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: visible; }
.bd-stat-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 32px rgba(0,0,0,0.16); border-color: rgba(255,255,255,0.6); }

/* Memberships menu icon (cover common endpoints across plugins) */
.woocommerce-MyAccount-navigation-link--memberships a::before,
.woocommerce-MyAccount-navigation-link--my-memberships a::before,
.woocommerce-MyAccount-navigation-link--wc-memberships a::before,
.woocommerce-MyAccount-navigation-link--yith-wcmbs-membership a::before,
.woocommerce-MyAccount-navigation-link--yith_wcmbs_membership a::before {
  content: "🎟️"; /* Ticket icon for memberships */
  margin-right: 8px;
  font-size: 16px;
  line-height: 1;
  position: relative;
  top: 1px;
}
/* Hide any previously injected span to avoid duplicate icons */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--genuine-license > a .bd-menu-emoji{ display:none !important; }
.bd-icon {
    display: inline-block;
    margin-right: 8px;
    min-width: 1.2em;
    text-align: center;
    animation: bd-wiggle 2.5s ease-in-out infinite;
}

@keyframes bd-wiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    20% { transform: translateY(-2px) rotate(-4deg); }
    40% { transform: translateY(0) rotate(0deg); }
    60% { transform: translateY(2px) rotate(4deg); }
    80% { transform: translateY(0) rotate(0deg); }
}

/* Hide default WooCommerce greeting to match custom design */
.woocommerce-MyAccount-content > p:first-child,
.woocommerce-MyAccount-content > p:nth-child(2) { display: none; }

/* Dashboard layout */
.bd-dashboard { padding: 8px; }
.bd-header { margin-bottom: 12px; }
.bd-breadcrumb { color: #6b7280; font-size: 12px; margin-bottom: 6px; }
.bd-title { font-size: 34px; line-height: 1.2; margin: 0; font-weight: 800; }
.bd-subtitle { color: #6b7280; margin: 6px 0 0; }
.bd-wave { display: inline-block; animation: bd-wave 2.5s ease-in-out infinite; }
@keyframes bd-wave { 0%,100%{transform:rotate(0deg)} 30%{transform:rotate(12deg)} 60%{transform:rotate(-8deg)} }

.bd-top { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px){ .bd-top { grid-template-columns: 1fr; } }

.bd-stat-group { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; background:
  radial-gradient(800px 480px at 12% 18%, rgba(14,165,233,0.12), transparent),
  radial-gradient(700px 420px at 88% 32%, rgba(99,102,241,0.10), transparent);
  padding: 12px; border-radius: 16px; }
@media (max-width: 900px){ .bd-stat-group { grid-template-columns: repeat(2,1fr); } }
.bd-stat-card { background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08)); border: 1px solid rgba(255,255,255,0.45); border-radius: 16px; padding: 16px; box-shadow: 0 8px 24px rgba(31,38,135,0.10); position: relative; overflow: hidden; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.bd-stat-label { font-weight: 600; color: #374151; display: flex; align-items: center; gap: 8px; }
.bd-stat-value { font-size: 34px; font-weight: 800; margin-top: 8px; }
.bd-stat-action { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(99,102,241,0.15); color: #1e40af; border: 1px solid rgba(99,102,241,0.25); text-decoration: none; }
.bd-icon-circle { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.12); color: #1e3a8a; }
.bd-icon-lg { width: 40px; height: 40px; font-size: 20px; }

/* Premium Plan Card — 2-row layout */
.bd-plan-card {
    background: linear-gradient(135deg, #7c3aed 0%, #4338ca 60%, #1d4ed8 100%);
    color: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.40);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}
.bd-plan-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}

/* Top Row: Identity & Actions */
.bd-plan-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 2;
}
.bd-plan-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bd-plan-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 4px 12px rgba(0,0,0,0.15);
}
.bd-plan-label {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
}
.bd-plan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.bd-plan-badges .bd-badge {
    font-size: 11px;
    font-weight: 700;
}

/* Customer Greet CSS & Animations */
.bd-plan-user-greet {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
    animation: bdGreetSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bd-greet-hi {
    color: #ffffff;
    font-weight: 700;
    opacity: 0.95;
}
.bd-greet-name {
    background: linear-gradient(to right, #00ff87, #60efff, #ffd000, #ff8a00, #00ff87);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bdTextShine 3s linear infinite;
    display: inline-block;
}
.bd-greet-wave {
    display: inline-block;
    animation: bdWaveSparkle 2.5s ease-in-out infinite;
}

@keyframes bdGreetSlideIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bdTextShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes bdWaveSparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(10deg); filter: drop-shadow(0 0 3px rgba(255,255,255,0.5)); }
}

/* Right Actions */
.bd-plan-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.bd-plan-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
}
.bd-plan-view {
    background: #fff;
    color: #4f46e5;
}
.bd-plan-view:hover {
    background: #f0f0ff;
    color: #3730a3;
    text-decoration: none;
}
.bd-plan-access {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.bd-plan-access:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}
.bd-plan-upgrade {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.bd-plan-upgrade:hover {
    background: rgba(255,255,255,0.28);
    color: #fff;
    text-decoration: none;
}

/* Bottom Row: Quick metrics grid */
.bd-plan-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    z-index: 2;
}
.bd-plan-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: 14px;
    padding: 14px 18px;
    transition: background 0.2s, transform 0.2s;
}
.bd-plan-metric:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}
.bd-plan-metric-icon {
    font-size: 24px;
    flex-shrink: 0;
}
.bd-plan-metric-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.bd-plan-metric-val {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.bd-plan-metric-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.bd-plan-progress-bar {
    margin-top: 6px;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    overflow: hidden;
    width: 100px;
}
.bd-plan-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 999px;
    min-width: 4px;
    transition: width 0.6s ease;
}

/* Responsive Plan Card rules */
@media (max-width: 860px) {
    .bd-plan-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    .bd-plan-user-greet {
        margin: 4px 0;
        font-size: 16px;
    }
    .bd-plan-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .bd-plan-action {
        padding: 8px 6px;
        justify-content: center;
        font-size: 12px;
        gap: 4px;
    }
    .bd-plan-metrics {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}
@media (max-width: 500px) {
    .bd-plan-card {
        padding: 16px;
    }
    .bd-plan-action {
        font-size: 11px;
        padding: 8px 4px;
    }
    .bd-plan-action span:first-child {
        display: none;
    }
    .bd-plan-metrics {
        grid-template-columns: 1fr;
    }
    .bd-plan-metric {
        padding: 10px 14px;
    }
}

.bd-bullets { display: grid; gap: 10px; margin: 14px 0; }
.bd-bullet { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); color: #374151; display: flex; align-items: flex-start; gap: 10px; }
.bd-bullet-icon { font-size: 18px; }

.bd-stat-action { position: absolute; right: 12px; bottom: 12px; font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(99,102,241,0.15); color: #1e40af; border: 1px solid rgba(99,102,241,0.25); text-decoration: none; }

.bd-icon-circle { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(99,102,241,0.12); color: #1e3a8a; }
.bd-icon-lg { width: 40px; height: 40px; font-size: 20px; }

.bd-section-title { font-size: 18px; font-weight: 800; margin: 18px 0 10px; }
.bd-collections { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media (max-width: 1100px){ .bd-collections { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 900px){ .bd-collections { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .bd-collections { grid-template-columns: 1fr;} }
.bd-collection-card { background: linear-gradient(135deg, #9951ff 0%, #742dd2 100%); color:#fff; border-radius: 16px; padding: 14px; box-shadow: 0 12px 28px rgba(99,102,241,0.3); display:flex; flex-direction:column; justify-content:space-between; min-height: 120px; text-decoration: none; transition: all 0.25s ease; }
.bd-collection-card:hover { background: linear-gradient(135deg, #8a47f5 0%, #6627c4 100%); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(99,102,241,0.35); color: #fff; }
.bd-collection-img { width: 24px; height: 24px; }
.bd-collection-top { display:flex; align-items:center; gap: 12px; }
.bd-collection-title { font-weight: 800; color: #fff; }
.bd-collection-desc { opacity: 0.95; font-size: 13px; color: #fff; }
.bd-collection-bottom { display:flex; justify-content:flex-end; margin-top: 10px; }
.bd-badge { display:inline-flex; align-items:center; justify-content:center; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.bd-badge-light { background: #f1f5f9; color: #0f172a; }
/* Status-specific badges for membership */
.bd-badge-status.bd-status-active { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.bd-badge-status.bd-status-paused { background:#fff7ed; color:#9a3412; border:1px solid #fed7aa; }
.bd-badge-status.bd-status-expired { background:#fee2e2; color:#7f1d1d; border:1px solid #fecaca; }
.bd-badge-status.bd-status-default { background:#e5e7eb; color:#374151; border:1px solid #d1d5db; }
.bd-badge-fire { background: rgba(255,128,0,0.15); }
.bd-badge-rocket { background: rgba(0,196,255,0.15); }
.bd-badge-award { background: rgba(255,214,0,0.2); }

/* My Account navigation menu badges */
.bd-menu-badge {
    display: inline-block;
    background: #d63638;
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 11px;
    margin-left: 6px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
}


/* Latest Viewed Items Styles */
.bd-viewed-item {
    position: relative;
    overflow: hidden;
}

.bd-item-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f5f5f5;
}

.bd-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bd-viewed-item:hover .bd-item-thumbnail img {
    transform: scale(1.05);
}

.bd-item-content {
    padding: 0;
}

.bd-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bd-item-type {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.bd-item-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 12px;
}

.bd-view-again {
    font-size: 13px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.bd-view-again:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

.bd-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
}

.bd-empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.bd-empty-state p {
    color: #999;
    margin-bottom: 20px;
}

.bd-refresh-card {
    text-align: center;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.bd-refresh-views {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bd-refresh-views:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.bd-refresh-views:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .bd-item-thumbnail {
        height: 100px;
    }
    
    .bd-item-title {
        font-size: 14px;
    }
    
    .bd-view-again {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .bangladock-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Compact list for Last Viewed */
.bd-view-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
.bd-view-list-item { display: grid; grid-template-columns: 36px 1fr 60px; align-items: center; gap: 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.bd-view-list-item:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.bd-list-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size: 16px; }
.bd-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-list-body { display:flex; flex-direction:column; gap:4px; }
.bd-list-title { font-size: 14px; font-weight: 600; color:#0f172a; line-height: 1.2; }
.bd-list-meta { font-size: 12px; color:#64748b; display:flex; align-items:center; gap:6px; }
.bd-list-dot { opacity: 0.65; }
.bd-list-action { color:#64748b; font-size: 16px; text-align: right; }

@media (max-width: 768px) {
    .bd-view-list-item { grid-template-columns: 32px 1fr 48px; padding: 8px 10px; }
    .bd-list-title { font-size: 13px; }
}

/* Admin card grid for Latest Views */
.bd-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:8px}
@media (max-width:1024px){.bd-card-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.bd-card-grid{grid-template-columns:1fr}}

.bd-card{position:relative;display:flex;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,.06);padding:10px;overflow:hidden}
.bd-card-link{position:absolute;inset:0;z-index:1}
.bd-card-thumb{flex:0 0 auto;width:56px;height:56px;border-radius:8px;overflow:hidden;margin-right:10px;background:#f3f4f6}
.bd-card-thumb img{width:100%;height:100%;object-fit:cover}
.bd-card-content{display:flex;flex-direction:column;gap:2px;min-width:0}
.bd-card-title{font-size:14px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-card-meta{font-size:12px;color:#6b7280}
.bd-card-time{font-size:12px;color:#6b7280}
.bd-card-actions{margin-left:auto;z-index:2}
.bd-card-actions .button{font-size:12px;padding:6px 10px;border-radius:6px}

/* Hover states */
.bd-card:hover{box-shadow:0 4px 10px rgba(0,0,0,.1)}
.bd-card:hover .bd-card-title{color:#0ea5e9}

/* Admin filters */
.bd-admin-filters label{display:block;font-size:12px;color:#374151;margin-bottom:4px}
.bd-admin-filters input,.bd-admin-filters select{height:32px;padding:4px 8px}

/* Pagination */
.bd-pagination .button{padding:6px 10px;font-size:12px}
.bd-pagination .button-primary{background:#2563eb;border-color:#2563eb}

/* BanglaDock Admin + Frontend Styles */

/* Impersonation Banner */
.bd-impersonation-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
  background: #111827;
  color: #fff;
  padding: 8px 16px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.bd-impersonation-return {
  background: #2563eb;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
}
.bd-impersonation-return:hover {
  background: #1d4ed8;
}
.bd-impersonation-spacer { height: 40px; }

/* Generic notice container */
.bd-notices { margin: 12px 20px; }

/* Notice card structural styles */
.bd-notice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  margin-bottom: 10px;
  background: var(--bd-bg, #f0f4ff);
  color: var(--bd-fg, #112);
  border: 1px solid var(--bd-border, #c9d4ff);
}
.bd-notice-icon { font-size: 20px; line-height: 1; }
.bd-notice-title { font-weight: 600; margin-bottom: 4px; color: var(--bd-title-fg, inherit); }
.bd-notice-text { line-height: 1.4; }

/* Ticket thread */
.bd-divider { height: 1px; background: #e5e7eb; margin: 12px 0; }
.bd-thread { display: grid; gap: 10px; }
.bd-reply { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; }
.bd-reply-admin { border-color: #c7d2fe; background: #eef2ff; }
.bd-reply-user { border-color: #e5e7eb; }
.bd-reply-meta { font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.bd-reply-body { font-size: 14px; color: #111827; }

/* Forms */
.bd-form label { display:block; font-size: 13px; color:#374151; margin-bottom:6px; }
.bd-form input[type="text"], .bd-form select, .bd-form textarea { width:100%; padding:8px 10px; border:1px solid #e5e7eb; border-radius:6px; margin-bottom:10px; }
.bd-form.bd-inline { display:flex; gap:8px; align-items:flex-end; flex-wrap:wrap; }

/* Lists */
.bd-list { display:grid; gap:8px; }
.bd-list-item { display:flex; align-items:center; justify-content:space-between; gap:12px; background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px 12px; }
.bd-list-title { font-weight:600; color:#0f172a; }
.bd-list-sub { font-size:12px; color:#64748b; }
.bd-list-actions .bangladock-button { font-size:12px; padding:6px 10px; }

/* Admin table */
.bd-table { display:grid; gap:0; border:1px solid #e5e7eb; border-radius:10px; overflow:hidden; }
.bd-table-head, .bd-table-row { display:grid; grid-template-columns: 2fr 1.2fr 0.8fr 0.8fr 1fr 1fr 0.8fr; align-items:center; }
.bd-table-head { background:#f9fafb; font-weight:600; color:#374151; padding:10px 12px; }
.bd-table-row { border-top:1px solid #e5e7eb; padding:10px 12px; }
.bd-table-cell { font-size:13px; color:#111827; }
.bd-ellipsis { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* Two column layout */
.bd-two-col { display:grid; grid-template-columns: 1.2fr 1fr; gap:16px; }
@media (max-width: 900px){ .bd-two-col { grid-template-columns: 1fr; } }

/* Hover effect for stat cards */
.bd-stat-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.bd-stat-card:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 36px rgba(0,0,0,0.20); border-color: rgba(255,255,255,0.7); }
/* Sheen highlight on hover for glass effect */
.bd-stat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,0.00) 0%, rgba(255,255,255,0.18) 38%, rgba(255,255,255,0.00) 70%); opacity: 0; transform: translateX(-6%); transition: opacity 0.2s ease, transform 0.2s ease; }
.bd-stat-card:hover::after { opacity: 1; transform: translateX(0%); }

/* Colorize default WooCommerce buttons within BanglaDock content */
.bangladock-content .button {
  background: #10b981; /* green */
  color: #fff;
  border: 1px solid #10b981;
  border-radius: 4px;
  padding: 6px 10px; /* smaller size */
  font-size: 12px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.bangladock-content .button:hover { background: #059669; border-color: #059669; transform: translateY(-2px); color: #fff; }

/* Primary (blue) variant for buttons that already use button-primary */
.bangladock-content .button.button-primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.bangladock-content .button.button-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* Light blue variant via explicit hooks (class or data-attribute) */
.bangladock-content .bd-btn-light-blue,
.bangladock-content .button[data-style="light-blue"],
.bangladock-content .bangladock-button[data-style="light-blue"] {
  background: #60a5fa !important; /* light blue */
  border-color: #60a5fa !important;
  color: #fff !important;
}
.bangladock-content .bd-btn-light-blue:hover,
.bangladock-content .button[data-style="light-blue"]:hover,
.bangladock-content .bangladock-button[data-style="light-blue"]:hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
}

/* Optional explicit color variants */
.bangladock-content .bd-btn-blue { background: #2563eb; border-color: #2563eb; color: #fff; }
.bangladock-content .bd-btn-blue:hover { background: #1d4ed8; border-color: #1d4ed8; }
.bangladock-content .bd-btn-red { background: #ef4444; border-color: #ef4444; color: #fff; }
.bangladock-content .bd-btn-red:hover { background: #dc2626; border-color: #dc2626; }
.bangladock-content .bd-btn-green { background: #10b981; border-color: #10b981; color: #fff; }
.bangladock-content .bd-btn-green:hover { background: #059669; border-color: #059669; }
.bangladock-content .bd-btn-light-blue { background: #60a5fa; border-color: #60a5fa; color: #fff; }
.bangladock-content .bd-btn-light-blue:hover { background: #3b82f6; border-color: #3b82f6; }
.bangladock-content { font-size: calc(1rem * var(--bd-type-scale, 1)); }

/* Insights grid and cards */
.bd-insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
@media (max-width: 1024px) {
    .bd-insights-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .bd-insights-grid { grid-template-columns: 1fr; }
}
.bd-insight-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.bd-insight-card .bd-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
/* Badge variant used in Insights breakdown */
.bd-badge-warning { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; padding: 3px 8px; border-radius: 10px; }
/* ---- Dashboard overrides: width, icon visibility, membership sizing ---- */
.bd-stat-group { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.woocommerce-account .bd-top { grid-template-columns: 1fr; }
@media (max-width: 900px){ .bd-stat-group { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .bd-stat-group { grid-template-columns: 1fr; } }
.bd-icon-circle { background: rgba(255,255,255,0.65); color: #111827; border: 1px solid rgba(255,255,255,0.75); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
/* Cleanup Table Styles */
.bd-table-container {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}
.bd-cleanup-table {
    border: none !important;
    box-shadow: none !important;
}
.bd-cleanup-table th,
.bd-cleanup-table td {
    white-space: nowrap;
    padding: 8px 12px;
}


/* ==========================================================================
   BanglaDock Premium SaaS UI Design System Overrides
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Typography & Layout Reset */
.bangladock-content,
.woocommerce-MyAccount-content {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #1e293b !important;
}

/* Premium SaaS Content Canvas */
.bangladock-content {
    background: #ffffff !important;
    padding: 24px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px -2px rgba(52, 82, 239, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(229, 231, 235, 0.7) !important;
    margin-bottom: 24px !important;
}

/* Header Styling */
.bangladock-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 30px !important;
    position: relative;
}
.bangladock-header h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.bangladock-header p {
    font-size: 15px !important;
    color: #64748b !important;
    margin: 0 !important;
}
.bangladock-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #3452ef 0%, #8b5cf6 100%);
    border-radius: 2px;
    margin-top: 16px;
}

/* Modern Responsive Grid */
.bangladock-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 24px !important;
}

/* Premium SaaS Cards */
.bangladock-card, 
.bd-insight-card {
    box-sizing: border-box !important;
    border: 1px solid rgba(229, 231, 235, 0.7) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-left: none !important; /* Remove old vertical border */
    box-shadow: 0 4px 20px -2px rgba(52, 82, 239, 0.03), 0 2px 8px -1px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}
.bangladock-card:hover,
.bd-insight-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 28px -4px rgba(52, 82, 239, 0.08), 0 4px 12px -2px rgba(52, 82, 239, 0.04) !important;
    border-color: rgba(52, 82, 239, 0.2) !important;
}
.bangladock-card::before,
.bd-insight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3452ef 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.bangladock-card:hover::before,
.bd-insight-card:hover::before {
    opacity: 1;
}

/* Card Header Icon & Typography */
.bd-card-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
}
.bd-card-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    background: rgba(52, 82, 239, 0.08) !important;
    color: #3452ef !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}
.bangladock-card:hover .bd-card-icon,
.bd-insight-card:hover .bd-card-icon {
    background: linear-gradient(135deg, #3452ef 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    transform: scale(1.05) rotate(5deg) !important;
}
.bd-card-title-area {
    display: flex !important;
    flex-direction: column !important;
}
.bangladock-card h3,
.bd-insight-card h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}
.bangladock-card p,
.bd-insight-card p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.5 !important;
}

/* Modern Form Fields */
.bd-form-group {
    margin-bottom: 16px !important;
}
.bd-form-group label,
.bd-form label {
    display: block !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    color: #475569 !important;
    margin-bottom: 6px !important;
}
.bd-form-group input[type="number"],
.bd-form-group input[type="text"],
.bd-form-group input[type="password"],
.bd-form-group input[type="email"],
.bd-form-group input[type="url"],
.bd-form-group select,
.bd-form input[type="text"],
.bd-form select,
.bd-form textarea,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100% !important;
    height: 42px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
}
.bd-form textarea,
.woocommerce-MyAccount-content textarea {
    height: auto !important;
    min-height: 100px !important;
}
.bd-form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.bd-form input:not([type="checkbox"]):not([type="radio"]):focus,
.bd-form select:focus,
.bd-form textarea:focus,
.woocommerce-MyAccount-content input:not([type="checkbox"]):not([type="radio"]):focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    border-color: #3452ef !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(52, 82, 239, 0.12) !important;
}

/* Checkbox and Radios */
.bd-checkbox {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    user-select: none !important;
    font-size: 13px !important;
    color: #475569 !important;
}
.bd-checkbox input[type="checkbox"],
.woocommerce-MyAccount-content input[type="checkbox"],
.bangladock-content input[type="checkbox"],
input[type="checkbox"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 4px !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
}
.bd-checkbox input[type="checkbox"]:checked,
.woocommerce-MyAccount-content input[type="checkbox"]:checked,
.bangladock-content input[type="checkbox"]:checked,
input[type="checkbox"]:checked {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
}
.bd-checkbox input[type="checkbox"]:focus,
.woocommerce-MyAccount-content input[type="checkbox"]:focus,
.bangladock-content input[type="checkbox"]:focus,
input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

.bd-checkbox input[type="radio"],
.woocommerce-MyAccount-content input[type="radio"],
.bangladock-content input[type="radio"],
input[type="radio"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    border: 1.5px solid #94a3b8 !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    display: inline-block !important;
    vertical-align: middle !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
}
.bd-checkbox input[type="radio"]:checked,
.woocommerce-MyAccount-content input[type="radio"]:checked,
.bangladock-content input[type="radio"]:checked,
input[type="radio"]:checked {
    background-color: #ffffff !important;
    border-color: #2563eb !important;
    border-width: 5px !important;
}
.bd-checkbox input[type="radio"]:focus,
.woocommerce-MyAccount-content input[type="radio"]:focus,
.bangladock-content input[type="radio"]:focus,
input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
}

/* Premium SaaS Buttons */
.bangladock-button,
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content input[type="submit"],
.woocommerce-MyAccount-content button[type="submit"],
a.bangladock-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #3452ef 0%, #1d35a6 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(52, 82, 239, 0.2) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    text-align: center !important;
    height: 42px !important;
    line-height: 1.2 !important;
}
.bangladock-button:hover,
.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
a.bangladock-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(52, 82, 239, 0.3) !important;
    filter: brightness(1.08) !important;
    color: #ffffff !important;
}
.bangladock-button:active,
.woocommerce-MyAccount-content .button:active,
a.bangladock-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(52, 82, 239, 0.2) !important;
}

/* Custom File Input Styling */
.bd-file-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}
.bd-file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0; top: 0; opacity: 0;
    width: 100%; height: 100%;
    cursor: pointer;
}
.bd-file-custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 42px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.bd-file-input-wrapper:hover .bd-file-custom-btn {
    border-color: #3452ef;
    background: rgba(52, 82, 239, 0.02);
    color: #3452ef;
}

/* WooCommerce Downloads & Logs Tables */
.bd-table-container,
.woocommerce-MyAccount-content .woocommerce-table {
    margin-top: 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01), 0 4px 12px rgba(0,0,0,0.02) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}
.bd-cleanup-table,
.woocommerce-MyAccount-content table.woocommerce-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
.bd-cleanup-table th,
.woocommerce-MyAccount-content table.woocommerce-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 14px 16px !important;
    text-align: left !important;
    border-bottom: 2px solid #e2e8f0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.bd-cleanup-table td,
.woocommerce-MyAccount-content table.woocommerce-table td {
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}
.bd-cleanup-table tr:hover,
.woocommerce-MyAccount-content table.woocommerce-table tr:hover {
    background: #f8fafc !important;
}

/* Timeline updates list */
.bd-timeline {
    position: relative;
    padding-left: 32px;
    margin: 20px 0;
}
.bd-timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: #e2e8f0;
}
.bd-timeline-item {
    position: relative;
    margin-bottom: 24px;
}
.bd-timeline-item::before {
    content: '';
    position: absolute;
    left: -27px; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #3452ef;
    box-shadow: 0 0 0 4px rgba(52, 82, 239, 0.15);
}
.bd-timeline-meta {
    font-size: 12px;
    font-weight: 600;
    color: #3452ef;
    margin-bottom: 4px;
}
.bd-timeline-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.7);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

/* Pill status badges */
.bd-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.bd-pill-success { background: #dcfce7; color: #15803d; }
.bd-pill-warning { background: #fef3c7; color: #b45309; }
.bd-pill-danger { background: #fee2e2; color: #b91c1c; }
.bd-pill-info { background: #dbeafe; color: #1d4ed8; }

/* Stats grid — Premium gradient cards */
.bd-dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.bd-dashboard-stat {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
    color: #fff;
}
.bd-dashboard-stat::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.10);
    border-radius: 50%;
    pointer-events: none;
}
.bd-dashboard-stat:nth-child(2) {
    background: linear-gradient(135deg, #059669 0%, #0ea5e9 100%);
}
.bd-dashboard-stat:nth-child(3) {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}
.bd-dashboard-stat:nth-child(4) {
    background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
}
.bd-dashboard-stat:nth-child(5) {
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 100%);
}
.bd-dashboard-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}
.bd-dashboard-stat-val {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.bd-dashboard-stat-icon {
    font-size: 28px;
    margin-bottom: 6px;
    display: block;
    opacity: 0.95;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.20));
    line-height: 1;
    transition: transform 0.3s ease;
}
.bd-dashboard-stat:hover .bd-dashboard-stat-icon {
    transform: scale(1.15) rotate(-5deg);
}
.bd-dashboard-stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
    font-weight: 500;
    letter-spacing: 0.02em;
}


/* ====================================================
   SaaS Design System — Form Groups
   ==================================================== */
.bd-form-group {
    margin-bottom: 16px;
}
.bd-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.bd-form-group input[type="text"],
.bd-form-group input[type="url"],
.bd-form-group input[type="email"],
.bd-form-group select,
.bd-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.bd-form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.bd-form-group select:focus,
.bd-form-group textarea:focus {
    outline: none;
    border-color: #6d28d9;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12);
}
.bd-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* ====================================================
   SaaS Design System — Notice Variants
   ==================================================== */
.bd-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}
.bd-notice-success {
    background: #f0fdf4;
    color: #15803d;
    border-left-color: #22c55e;
}
.bd-notice-warning {
    background: #fffbeb;
    color: #92400e;
    border-left-color: #f59e0b;
}
.bd-notice-danger {
    background: #fef2f2;
    color: #b91c1c;
    border-left-color: #ef4444;
}
.bd-notice-info {
    background: #eff6ff;
    color: #1d4ed8;
    border-left-color: #3b82f6;
}

/* ====================================================
   SaaS Design System — Table Container
   ==================================================== */
.bd-table-container {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.bd-table-container table,
.bd-table-container .woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.bd-table-container table th,
.bd-table-container .woocommerce-table th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.bd-table-container table td,
.bd-table-container .woocommerce-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #374151;
    vertical-align: middle;
}
.bd-table-container table tbody tr:last-child td,
.bd-table-container .woocommerce-table tbody tr:last-child td {
    border-bottom: none;
}
.bd-table-container table tbody tr:hover,
.bd-table-container .woocommerce-table tbody tr:hover {
    background: #fafbfc;
}

/* ====================================================
   SaaS Design System — List View (Last Viewed)
   ==================================================== */
.bd-view-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.bd-view-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}
.bd-view-list-item:hover {
    border-color: #6d28d9;
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.10);
    transform: translateY(-1px);
    text-decoration: none;
}
.bd-list-thumb {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bd-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bd-thumb-fallback {
    font-size: 24px;
}
.bd-list-body {
    flex: 1;
    min-width: 0;
}
.bd-list-title {
    display: block;
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bd-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}
.bd-list-type {
    background: #ede9fe;
    color: #6d28d9;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}
.bd-list-dot { color: #cbd5e1; font-size: 12px; }
.bd-list-time { font-size: 12px; color: #94a3b8; }
.bd-list-action {
    font-size: 18px;
    color: #cbd5e1;
    transition: color 0.2s;
    white-space: nowrap;
}
.bd-view-list-item:hover .bd-list-action { color: #6d28d9; }

/* ====================================================
   SaaS Design System — Responsive Tweaks + Buttons
   ==================================================== */

/* Responsive grid breakpoints */
@media (max-width: 900px) {
    .bd-dashboard-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .bd-dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .bd-dashboard-stat {
        padding: 16px 14px;
    }
    .bd-dashboard-stat-val {
        font-size: 22px;
    }
    .bd-card-header {
        flex-direction: column;
        gap: 10px;
    }
    .bd-view-list-item {
        flex-wrap: wrap;
    }
}
@media (max-width: 420px) {
    .bd-dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ====================================================
   Button Responsiveness — Compact & Wrap-Safe
   ==================================================== */
.bangladock-button,
a.bangladock-button,
button.bangladock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #6d28d9, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(109,40,217,0.25);
}
.bangladock-button:hover,
a.bangladock-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(109,40,217,0.35);
    color: #fff;
    text-decoration: none;
}
.bangladock-button:active {
    transform: translateY(0);
}
.bangladock-button-ghost,
a.bangladock-button-ghost {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #374151;
    box-shadow: none;
}
.bangladock-button-ghost:hover {
    background: #f8fafc;
    border-color: #6d28d9;
    color: #6d28d9;
    box-shadow: none;
    transform: none;
}

/* Button group inside cards — wrap gracefully */
.bangladock-card .bangladock-button,
.bangladock-card a.bangladock-button {
    width: 100%;
    margin-top: 4px;
}

/* Grid cards: stack buttons neatly */
.bangladock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .bangladock-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .bangladock-grid .bangladock-card {
        padding: 14px 12px;
    }
    .bangladock-card .bangladock-button {
        font-size: 12px;
        padding: 8px 12px;
    }
    .bd-card-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
@media (max-width: 420px) {
    .bangladock-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================
   Card header inner layout — responsive
   ==================================================== */
.bd-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.bd-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(109,40,217,0.12);
    flex-shrink: 0;
}
.bd-card-title-area {
    flex: 1;
    min-width: 0;
}
.bd-card-title-area h3 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.3;
}
.bd-card-title-area p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* ====================================================
   Bangladock card base — premium uniform look
   ==================================================== */
.bangladock-card {
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}
.bangladock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6d28d9, #2563eb, #0ea5e9);
    border-radius: 16px 16px 0 0;
    opacity: 0.15;
    transition: opacity 0.25s;
}
.bangladock-card:hover {
    box-shadow: 0 8px 28px rgba(109,40,217,0.12);
    transform: translateY(-2px);
}
.bangladock-card:hover::before {
    opacity: 1;
}

/* ====================================================
   Premium Card Header — Icon pulse on hover
   ==================================================== */
.bangladock-card:hover .bd-card-icon {
    background: linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
}
.bangladock-card:hover .bd-card-icon {
    transform: scale(1.08);
    transition: transform 0.2s ease, background 0.2s ease;
}
.bd-card-icon {
    transition: transform 0.2s ease, background 0.2s ease;
}

/* ====================================================
   Quick-Action Cards (Support Tickets, Dashboard etc.)
   Compact grid: equal-height cards with button pinned at bottom
   ==================================================== */
.bangladock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 24px;
    align-items: stretch;
}
.bangladock-grid .bangladock-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
}
.bangladock-grid .bangladock-card .bd-card-header {
    flex: 1;
    margin-bottom: 12px;
}
.bangladock-grid .bangladock-card .bangladock-button,
.bangladock-grid .bangladock-card a.bangladock-button {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* ====================================================
   Responsive button rules (card-internal buttons)
   ==================================================== */
.bangladock-card .bangladock-button,
.bangladock-card a.bangladock-button {
    display: flex;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

/* Ghost variant override for card */
.bangladock-card .bangladock-button-ghost {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #374151 !important;
    box-shadow: none !important;
}
.bangladock-card .bangladock-button-ghost:hover {
    background: #ede9fe !important;
    border-color: #6d28d9 !important;
    color: #6d28d9 !important;
}

/* ====================================================
   Form input global polish
   ==================================================== */
.bangladock-content input[type="text"],
.bangladock-content input[type="url"],
.bangladock-content input[type="email"],
.bangladock-content input[type="search"],
.bangladock-content input[type="date"],
.bangladock-content select,
.bangladock-content textarea {
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    padding: 9px 13px;
    font-size: 14px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.bangladock-content input:not([type="checkbox"]):not([type="radio"]):focus,
.bangladock-content select:focus,
.bangladock-content textarea:focus {
    outline: none;
    border-color: #6d28d9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(109,40,217,0.10);
}

/* ====================================================
   Table header gradient accent
   ==================================================== */
.bd-table-container table thead tr th,
.bd-table-container .woocommerce-table thead tr th {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

/* ====================================================
   Mobile: stats grid 2-column, cards 1-column
   ==================================================== */
@media (max-width: 500px) {
    .bangladock-grid {
        grid-template-columns: 1fr;
    }
    .bd-dashboard-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .bd-dashboard-stat-val {
        font-size: 20px;
    }
    .bangladock-card {
        padding: 14px;
    }
}
