/* ==========================================================================
   Theme Reset / Isolation
   Scoped to .tkd-portal-body to prevent theme conflicts
   ========================================================================== */

.tkd-portal-body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #f5f6fa !important;
    color: #111827 !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased;
}

.tkd-portal-body * {
    box-sizing: border-box;
}

.tkd-portal-body a {
    color: inherit;
    text-decoration: none;
}

.tkd-portal-body img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Portal Layout
   ========================================================================== */

.tkd-portal-layout {
    display: flex;
    min-height: 100vh;
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */

.tkd-mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 200;
    background: #1e293b;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.1s;
}

.tkd-mobile-menu-toggle:hover {
    background: #334155;
}

.tkd-mobile-menu-toggle:active {
    transform: scale(0.95);
}

.tkd-mobile-menu-toggle .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.tkd-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 149;
    backdrop-filter: blur(2px);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.tkd-portal-sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 150;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tkd-portal-brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tkd-portal-brand h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.tkd-portal-brand p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #94a3b8;
}

/* Sidebar Listing Card */
.tkd-sidebar-listing-card {
    padding: 16px 24px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.tkd-sidebar-listing-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tkd-sidebar-listing-rating {
    font-size: 12px;
    color: #fbbf24;
    margin-bottom: 4px;
}

.tkd-sidebar-listing-rating .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.tkd-sidebar-listing-city {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.tkd-sidebar-listing-city .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    vertical-align: middle;
    margin-right: 2px;
}

.tkd-plan-badge-sidebar {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tkd-sidebar-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tkd-sidebar-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    white-space: nowrap;
}

.tkd-sidebar-badge .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}

.tkd-sidebar-view-listing {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #60a5fa !important;
    text-decoration: none;
    margin-top: 4px;
    transition: color 0.15s;
}

.tkd-sidebar-view-listing:hover {
    color: #93c5fd !important;
}

.tkd-sidebar-view-listing .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

/* Sidebar Navigation */
.tkd-portal-nav {
    flex: 1;
    padding: 16px 14px;
}

.tkd-portal-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 8px;
    color: #94a3b8 !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
    margin-bottom: 4px;
    border-left: 3px solid transparent;
}

.tkd-portal-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0 !important;
}

.tkd-portal-nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border-left-color: currentColor;
    font-weight: 600;
}

.tkd-portal-nav-item .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Sidebar User */
.tkd-portal-user {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkd-portal-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.tkd-portal-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.tkd-portal-user-info strong {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tkd-portal-user-info small {
    font-size: 12px;
    color: #94a3b8;
}

.tkd-portal-logout-btn {
    color: #f87171 !important;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    transition: color 0.15s;
}

.tkd-portal-logout-btn:hover {
    color: #ef4444 !important;
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.tkd-portal-main {
    flex: 1;
    margin-left: 280px;
    padding: 36px 44px;
}

.tkd-portal-content {
    max-width: 960px;
}

.tkd-portal-tab-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.tkd-portal-tab-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.3px;
}

.tkd-portal-tab-header p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

/* ==========================================================================
   Listing Preview Card
   ========================================================================== */

.tkd-listing-preview-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    align-items: center;
    transition: box-shadow 0.25s, transform 0.25s;
    border-top: 3px solid var(--tkd-accent, #2563eb);
}

.tkd-listing-preview-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tkd-listing-preview-photo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.tkd-listing-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tkd-listing-preview-placeholder {
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkd-listing-preview-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #d1d5db;
}

.tkd-listing-preview-info h2 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.tkd-listing-preview-rating {
    margin-bottom: 6px;
    color: #fbbf24;
    font-size: 14px;
}

.tkd-listing-preview-rating .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tkd-listing-preview-rating span:last-child {
    color: #6b7280;
    margin-left: 4px;
}

.tkd-listing-preview-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.tkd-listing-preview-meta .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 2px;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */

.tkd-form-section {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--tkd-accent, #2563eb);
    transition: box-shadow 0.2s;
}

.tkd-form-section:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.tkd-form-section h2 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tkd-form-section h2 .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--tkd-accent, #2563eb);
}

.tkd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tkd-form-full {
    grid-column: 1 / -1;
}

.tkd-portal-form .tkd-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #374151;
    font-size: 14px;
}

.tkd-portal-form .tkd-form-group input,
.tkd-portal-form .tkd-form-group textarea,
.tkd-portal-form .tkd-form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: inherit;
    color: #111827;
}

.tkd-portal-form .tkd-form-group input:focus,
.tkd-portal-form .tkd-form-group textarea:focus,
.tkd-portal-form .tkd-form-group select:focus {
    outline: none;
    border-color: var(--tkd-accent, #2563eb);
    box-shadow: 0 0 0 3px var(--tkd-accent-glow, rgba(37, 99, 235, 0.1));
}

.tkd-field-hint {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.tkd-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

/* ==========================================================================
   Working Hours Editor
   ========================================================================== */

.tkd-hours-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tkd-hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: background 0.15s;
}

.tkd-hours-row:hover {
    background: #f3f4f6;
}

.tkd-hours-day {
    width: 100px;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    flex-shrink: 0;
}

.tkd-hours-time {
    padding: 8px 10px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    width: 120px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tkd-hours-time:focus {
    outline: none;
    border-color: var(--tkd-accent, #2563eb);
    box-shadow: 0 0 0 2px var(--tkd-accent-glow, rgba(37, 99, 235, 0.1));
}

.tkd-hours-time:disabled {
    background: #f3f4f6;
    color: #9ca3af;
}

.tkd-hours-separator {
    font-size: 13px;
    color: #6b7280;
}

.tkd-hours-closed-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    margin-left: auto;
}

.tkd-hours-closed-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #dc2626;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tkd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s;
    line-height: 1.4;
    font-family: inherit;
}

.tkd-btn-primary {
    background: linear-gradient(135deg, var(--tkd-accent, #2563eb), var(--tkd-accent-dark, #1d4ed8));
    color: #fff !important;
    box-shadow: 0 2px 8px var(--tkd-accent-shadow, rgba(37, 99, 235, 0.3));
}

.tkd-btn-primary:hover {
    box-shadow: 0 4px 16px var(--tkd-accent-shadow, rgba(37, 99, 235, 0.4));
    transform: translateY(-1px);
}

.tkd-btn-primary:active {
    transform: translateY(0);
}

.tkd-btn-secondary {
    background: #f3f4f6;
    color: #374151 !important;
    border: 1px solid #d1d5db;
}

.tkd-btn-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.tkd-btn-disabled {
    opacity: 0.7;
    cursor: default;
    pointer-events: none;
}

.tkd-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

/* ==========================================================================
   Messages & Toast Notifications
   ========================================================================== */

.tkd-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 16px;
}

.tkd-message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.tkd-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

#tkd-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tkd-toast {
    min-width: 300px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: tkd-toast-in 0.3s ease;
    cursor: pointer;
}

.tkd-toast.success {
    background: #166534;
    color: #fff;
}

.tkd-toast.error {
    background: #991b1b;
    color: #fff;
}

.tkd-toast.info {
    background: #1e40af;
    color: #fff;
}

.tkd-toast .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tkd-toast-exit {
    animation: tkd-toast-out 0.3s ease forwards;
}

@keyframes tkd-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes tkd-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* ==========================================================================
   Locked / Upgrade Overlay Sections
   ========================================================================== */

.tkd-locked-section {
    position: relative;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tkd-locked-preview {
    padding: 32px 24px;
    background: #fff;
    opacity: 0.4;
    filter: blur(1px);
    pointer-events: none;
}

.tkd-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    text-align: center;
    padding: 24px;
}

.tkd-locked-overlay .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #9ca3af;
    margin-bottom: 12px;
    animation: tkd-pulse 2s ease-in-out infinite;
}

@keyframes tkd-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.tkd-locked-overlay h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #374151;
}

.tkd-locked-overlay p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7280;
    max-width: 320px;
}

.tkd-photo-grid-placeholder {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tkd-photo-placeholder-item {
    aspect-ratio: 1;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkd-photo-placeholder-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #d1d5db;
}

.tkd-cta-placeholder {
    text-align: center;
}

.tkd-cta-placeholder-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #e5e7eb;
    color: #9ca3af;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

/* CTA Banner Form */
.tkd-cta-fields {
    margin-top: 12px;
}

/* CTA Image Upload */
.tkd-cta-image-upload-area {
    width: 100%;
}

.tkd-cta-image-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 20px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.tkd-cta-image-dropzone:hover {
    border-color: #6366f1;
    background: #eef2ff;
}
.tkd-cta-image-dropzone .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #9ca3af;
}
.tkd-cta-image-dropzone p {
    margin: 4px 0 0;
    font-size: 14px;
    color: #6b7280;
}
.tkd-cta-image-dropzone small {
    font-size: 12px;
    color: #9ca3af;
}

.tkd-cta-image-preview {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.tkd-cta-image-preview img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.tkd-cta-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.tkd-cta-image-remove:hover {
    background: rgba(220, 38, 38, 0.9);
}
.tkd-cta-image-remove .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.tkd-highlights-placeholder {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tkd-highlight-badge-placeholder {
    padding: 6px 14px;
    background: #e5e7eb;
    color: #9ca3af;
    border-radius: 20px;
    font-size: 13px;
}

/* ==========================================================================
   Featured Image Management
   ========================================================================== */

.tkd-featured-image-section .tkd-section-description {
    color: #6b7280;
    font-size: 13px;
    margin: -12px 0 16px;
}

.tkd-featured-image-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tkd-featured-image-preview {
    width: 220px;
    min-width: 220px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.tkd-featured-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tkd-featured-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
}

.tkd-featured-image-placeholder .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
}

.tkd-featured-image-placeholder span:last-child {
    font-size: 12px;
}

.tkd-featured-image-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 4px;
}

.tkd-featured-image-actions .tkd-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.tkd-featured-image-actions .tkd-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.tkd-featured-image-actions .tkd-field-hint {
    max-width: 240px;
}

@media (max-width: 600px) {
    .tkd-featured-image-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .tkd-featured-image-preview {
        width: 100%;
        min-width: auto;
        height: 200px;
    }

    .tkd-featured-image-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   Photo Management (Paid Tier)
   ========================================================================== */

.tkd-photo-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 16px;
}

.tkd-photo-upload-area:hover,
.tkd-photo-upload-area.drag-over {
    border-color: var(--tkd-accent, #2563eb);
    background: #f0f7ff;
}

.tkd-photo-upload-area .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.tkd-photo-upload-area p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.tkd-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.tkd-photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.tkd-photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Analytics Cards
   ========================================================================== */

.tkd-analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.tkd-analytics-free {
    grid-template-columns: repeat(2, 1fr);
}

.tkd-analytics-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: box-shadow 0.25s, transform 0.25s;
}

.tkd-analytics-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.tkd-analytics-card:nth-child(1) { border-top: 3px solid #2563eb; }
.tkd-analytics-card:nth-child(2) { border-top: 3px solid #7c3aed; }
.tkd-analytics-card:nth-child(3) { border-top: 3px solid #059669; }
.tkd-analytics-card:nth-child(4) { border-top: 3px solid #d97706; }
.tkd-analytics-card:nth-child(5) { border-top: 3px solid #dc2626; }
.tkd-analytics-card:nth-child(6) { border-top: 3px solid #0891b2; }

.tkd-analytics-icon {
    margin-bottom: 8px;
}

.tkd-analytics-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.tkd-analytics-card:nth-child(1) .tkd-analytics-icon .dashicons { color: #2563eb; }
.tkd-analytics-card:nth-child(2) .tkd-analytics-icon .dashicons { color: #7c3aed; }
.tkd-analytics-card:nth-child(3) .tkd-analytics-icon .dashicons { color: #059669; }
.tkd-analytics-card:nth-child(4) .tkd-analytics-icon .dashicons { color: #d97706; }
.tkd-analytics-card:nth-child(5) .tkd-analytics-icon .dashicons { color: #dc2626; }
.tkd-analytics-card:nth-child(6) .tkd-analytics-icon .dashicons { color: #0891b2; }

.tkd-analytics-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

.tkd-analytics-label {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    margin-top: 4px;
}

.tkd-analytics-period {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Locked analytics cards for free tier */
.tkd-analytics-locked-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.tkd-analytics-card-locked {
    position: relative;
    overflow: hidden;
}

.tkd-analytics-card-locked .tkd-locked-blur {
    filter: blur(4px);
    opacity: 0.4;
}

.tkd-analytics-card-locked > .dashicons {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #9ca3af;
}

/* Upgrade Banner */
.tkd-upgrade-banner {
    display: flex;
    gap: 20px;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}

.tkd-upgrade-banner-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #2563eb;
}

.tkd-upgrade-banner-content h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #1e40af;
}

.tkd-upgrade-banner-content p {
    margin: 0 0 12px;
    font-size: 14px;
    color: #3b82f6;
}

/* ==========================================================================
   Section label
   ========================================================================== */

.tkd-section-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 24px 0 16px;
}

/* ==========================================================================
   Billing
   ========================================================================== */

.tkd-billing-plan-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-top: 3px solid var(--tkd-accent, #2563eb);
    transition: box-shadow 0.2s;
}

.tkd-billing-plan-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.tkd-billing-plan-info h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tkd-billing-since {
    margin: 8px 0 0;
    font-size: 13px;
    color: #9ca3af;
}

.tkd-billing-plan-stats {
    display: flex;
    gap: 32px;
}

.tkd-billing-stat {
    text-align: right;
}

.tkd-billing-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.tkd-billing-stat-label {
    font-size: 13px;
    color: #6b7280;
}

.tkd-plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.tkd-plan-free {
    background: #f3f4f6;
    color: #374151;
}

.tkd-plan-basic {
    background: #f3f4f6;
    color: #374151;
}

.tkd-plan-pro {
    background: #dbeafe;
    color: #1e40af;
}

.tkd-plan-premium {
    background: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.tkd-table-responsive {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 14px;
}

.tkd-portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tkd-portal-table th {
    background: #f9fafb;
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.tkd-portal-table td {
    padding: 13px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f3f4f6;
}

.tkd-portal-table tbody tr {
    transition: background 0.15s;
}

.tkd-portal-table tbody tr:hover {
    background: #f9fafb;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.tkd-empty-state-portal {
    text-align: center;
    padding: 52px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.tkd-empty-state-portal .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.tkd-empty-state-portal h3 {
    margin: 0 0 8px;
    color: #374151;
}

.tkd-empty-state-portal p {
    margin: 0 auto;
    color: #9ca3af;
    max-width: 400px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tkd-mobile-menu-toggle {
        display: block;
    }

    .tkd-portal-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

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

    .tkd-sidebar-overlay.visible {
        display: block;
    }

    .tkd-portal-main {
        margin-left: 0;
        padding: 64px 16px 24px;
    }

    .tkd-form-grid {
        grid-template-columns: 1fr;
    }

    .tkd-form-section {
        padding: 20px;
        margin-bottom: 14px;
    }

    .tkd-portal-tab-header h1 {
        font-size: 22px;
    }

    .tkd-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tkd-analytics-locked-cards {
        grid-template-columns: 1fr;
    }

    .tkd-billing-plan-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .tkd-billing-plan-stats {
        justify-content: center;
    }

    .tkd-billing-stat {
        text-align: center;
    }

    .tkd-listing-preview-card {
        flex-direction: column;
        text-align: center;
    }

    .tkd-listing-preview-meta {
        justify-content: center;
    }

    .tkd-hours-row {
        flex-wrap: wrap;
    }

    .tkd-hours-day {
        width: 100%;
        margin-bottom: 4px;
    }

    .tkd-photo-grid-placeholder {
        grid-template-columns: repeat(2, 1fr);
    }

    .tkd-upgrade-banner {
        flex-direction: column;
        text-align: center;
    }

    .tkd-form-actions {
        flex-direction: column;
    }

    #tkd-toast-container {
        right: 10px;
        left: 10px;
    }

    .tkd-toast {
        min-width: auto;
        max-width: 100%;
    }

    .tkd-portal-table th,
    .tkd-portal-table td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

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

    .tkd-portal-tab-header h1 {
        font-size: 20px;
    }

    .tkd-portal-main {
        padding: 60px 12px 20px;
    }
}

/* ==========================================================================
   Floating Business Owner Login Button (shown on all frontend pages)
   ========================================================================== */

/* v2.14.15: subtler translucent pill so it doesn't dominate the listing page for
   general visitors. Solidifies on hover/focus for business owners who target it. */
.tkd-owner-login-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(var(--tkd-accent-rgb, 26, 91, 250), 0.55);
    color: #fff !important;
    border-radius: 50px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.75;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tkd-owner-login-btn:hover,
.tkd-owner-login-btn:focus-visible {
    background: var(--tkd-accent-color, #1A5BFA);
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--tkd-accent-rgb, 26, 91, 250), 0.35);
    color: #fff !important;
}

.tkd-owner-login-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .tkd-owner-login-btn span:not(.dashicons) {
        display: none;
    }

    .tkd-owner-login-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

/* ──────────────────────────────────────────────
   Plans Comparison View
   ────────────────────────────────────────────── */

/* Billing Toggle */
.tkd-billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}
.tkd-billing-label {
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}
.tkd-billing-label.tkd-billing-active { color: var(--tkd-accent, #1A5BFA); }
.tkd-yearly-save-badge {
    display: inline-block;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.tkd-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.tkd-toggle-switch input { opacity: 0; width: 0; height: 0; }
.tkd-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #e5e7eb;
    border-radius: 26px;
    transition: 0.3s;
}
.tkd-toggle-slider::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tkd-toggle-switch input:checked + .tkd-toggle-slider {
    background: var(--tkd-accent, #1A5BFA);
}
.tkd-toggle-switch input:checked + .tkd-toggle-slider::before {
    transform: translateX(22px);
}

/* Plan Cards Grid */
.tkd-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.tkd-plan-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.tkd-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tkd-plan-card.tkd-plan-highlighted {
    border-color: var(--tkd-accent, #1A5BFA);
    box-shadow: 0 4px 16px var(--tkd-accent-shadow, rgba(255,149,0,0.15));
}
.tkd-plan-card.tkd-plan-current {
    border-color: #16a34a;
    background: linear-gradient(to bottom, #f0fdf4, #fff);
}

/* Badges */
.tkd-plan-badge-popular {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--tkd-accent, #1A5BFA);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tkd-plan-badge-current {
    position: absolute;
    top: -1px;
    left: 20px;
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 0 0 8px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tkd-plan-card-top { text-align: center; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.tkd-plan-name { font-size: 22px; font-weight: 700; color: #1e293b; margin: 8px 0 16px; }

.tkd-plan-price-wrap { margin-bottom: 12px; }
.tkd-plan-price {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.tkd-plan-price-sub { font-size: 14px; color: #6b7280; }
.tkd-plan-yearly-total { font-size: 12px; color: #9ca3af; margin-top: 4px; }

.tkd-plan-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* Feature List */
.tkd-plan-features {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    flex: 1;
}
.tkd-plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #374151;
}
.tkd-plan-features li .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.tkd-feature-included .dashicons { color: #16a34a; }
.tkd-feature-missing { color: #d1d5db; }
.tkd-feature-missing .dashicons { color: #d1d5db; }

/* Action Button */
.tkd-plan-card-action {
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    text-align: center;
}
.tkd-plan-card-action .tkd-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
}
.tkd-btn-current {
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 2px solid #86efac !important;
    cursor: default !important;
    pointer-events: none;
}
.tkd-btn-disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: default !important;
    pointer-events: none;
}

/* Plans Info Footer */
.tkd-plans-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}
.tkd-plans-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.tkd-plans-info-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--tkd-accent, #1A5BFA);
    flex-shrink: 0;
    margin-top: 2px;
}
.tkd-plans-info-item strong { display: block; font-size: 14px; color: #1e293b; }
.tkd-plans-info-item p { margin: 4px 0 0; font-size: 12px; color: #6b7280; line-height: 1.4; }

/* Billing page additions */
.tkd-billing-plan-price {
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    margin-left: 12px;
}
.tkd-billing-cycle-info {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}
.tkd-billing-actions-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

/* ── Photo Grid Enhancements ── */
.tkd-photo-grid-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.tkd-photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tkd-photo-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
}

.tkd-photo-grid-item:hover .tkd-photo-delete-btn {
    opacity: 1;
}

.tkd-photo-delete-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* ── Highlights Grid ── */
.tkd-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.tkd-highlight-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    user-select: none;
}

.tkd-highlight-checkbox:hover {
    border-color: #2563eb;
    background: #f0f5ff;
}

.tkd-highlight-checkbox.checked {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 0 0 1px #2563eb;
}

.tkd-highlight-input {
    display: none;
}

.tkd-highlight-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.tkd-highlight-label i {
    color: #6b7280;
    font-size: 14px;
}

.tkd-highlight-checkbox.checked .tkd-highlight-label i {
    color: #2563eb;
}

/* ── Plan Features Status ── */
.tkd-plan-status-section h2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tkd-plan-features-status {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tkd-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tkd-feature-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.tkd-feature-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.tkd-feature-inactive {
    background: #f3f4f6;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
}

.tkd-btn-xs {
    font-size: 12px !important;
    padding: 4px 12px !important;
}

/* ── Video Placeholder ── */
.tkd-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    background: #f9fafb;
    border-radius: 8px;
}

/* ── Danger Button ── */
.tkd-btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.tkd-btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* ── Reviews Tab ── */

.tkd-reviews-stats-card {
    display: grid;
    grid-template-columns: 120px 120px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
    border-top: 3px solid var(--tkd-accent, #2563eb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tkd-reviews-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tkd-reviews-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tkd-reviews-stat-label {
    font-size: 13px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tkd-reviews-breakdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tkd-reviews-breakdown-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.tkd-breakdown-label {
    width: 30px;
    text-align: right;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
}

.tkd-breakdown-label .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    color: #f59e0b;
}

.tkd-breakdown-bar {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.tkd-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.tkd-breakdown-count {
    width: 24px;
    text-align: right;
    color: #6b7280;
    font-size: 12px;
}

/* Review Settings */
.tkd-reviews-settings-section .tkd-form-group {
    margin-bottom: 16px;
}

.tkd-reviews-settings-form .tkd-form-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tkd-reviews-settings-form .tkd-form-select:focus {
    outline: none;
    border-color: var(--tkd-accent, #2563eb);
    box-shadow: 0 0 0 3px var(--tkd-accent-glow, rgba(37, 99, 235, 0.1));
}

.tkd-form-help {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 10px;
}

/* Review Count Badge */
.tkd-reviews-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: var(--tkd-accent, #2563eb);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* Reviews Empty State */
.tkd-reviews-empty {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.tkd-reviews-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.tkd-reviews-empty p {
    font-size: 15px;
    margin: 0;
}

/* Review Cards */
.tkd-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tkd-review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.tkd-review-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tkd-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tkd-review-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tkd-review-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tkd-accent, #2563eb), #60a5fa);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.tkd-review-author {
    display: block;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.tkd-review-date {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}

.tkd-review-rating {
    margin-bottom: 8px;
}

.tkd-review-rating .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #f59e0b;
}

.tkd-review-rating .dashicons-star-empty {
    color: #d1d5db;
}

.tkd-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 14px;
}

/* Review Status Badges */
.tkd-review-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tkd-review-status-approved {
    background: #d1fae5;
    color: #065f46;
}

.tkd-review-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.tkd-review-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Review Actions */
.tkd-review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.tkd-review-actions .tkd-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tkd-review-actions .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .tkd-plans-grid {
        grid-template-columns: 1fr;
    }
    .tkd-billing-toggle {
        flex-wrap: wrap;
    }
    .tkd-plans-info {
        grid-template-columns: 1fr;
    }
    .tkd-billing-actions-row {
        flex-direction: column;
    }
    .tkd-highlights-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .tkd-reviews-stats-card {
        grid-template-columns: 1fr 1fr;
    }
    .tkd-reviews-stats-card .tkd-reviews-stat-item:last-child {
        grid-column: 1 / -1;
    }
    .tkd-review-card-header {
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   2.1.0: accessibility, listing switcher, gallery tools, checkout status
   ========================================================================== */

.tkd-portal-body .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

.tkd-skip-link {
    position: absolute;
    left: -10000px;
    top: 8px;
    z-index: 100000;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.tkd-skip-link:focus {
    left: 8px;
}

.tkd-portal-main:focus {
    outline: none;
}

.tkd-portal-body a:focus-visible,
.tkd-portal-body button:focus-visible,
.tkd-portal-body select:focus-visible,
.tkd-portal-body input:focus-visible,
.tkd-portal-body textarea:focus-visible,
.tkd-portal-body [role="button"]:focus-visible {
    outline: 2px solid var(--tkd-accent, #2563eb);
    outline-offset: 2px;
}

.tkd-listing-switcher {
    margin: 0 0 16px;
}

.tkd-listing-switcher label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.8;
}

.tkd-listing-switcher select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font: inherit;
    font-size: 14px;
    background: #fff;
    color: #111827;
}

.tkd-portal-logout-btn {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.tkd-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

ul.tkd-photo-grid {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.tkd-photo-grid-item .tkd-photo-tools {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

.tkd-photo-grid-item:hover .tkd-photo-tools,
.tkd-photo-grid-item:focus-within .tkd-photo-tools {
    opacity: 1;
}

.tkd-photo-grid-item .tkd-photo-tools .tkd-photo-delete-btn {
    position: static;
    opacity: 1;
}

.tkd-photo-move-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: rgba(17, 24, 39, 0.8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tkd-photo-move-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

@media (hover: none) {
    .tkd-photo-grid-item .tkd-photo-tools {
        opacity: 1;
    }
}

.tkd-cta-image-dropzone.drag-over {
    border-color: var(--tkd-accent, #6366f1) !important;
}

#tkd-checkout-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    margin: 0 0 20px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e3a8a;
}

#tkd-checkout-status[data-state="active"] {
    background: #ecfdf5;
    color: #065f46;
}

#tkd-checkout-status[data-state="error"],
#tkd-checkout-status[data-state="failed"] {
    background: #fef2f2;
    color: #991b1b;
}

@media (prefers-reduced-motion: reduce) {
    .tkd-portal-body *,
    .tkd-portal-body *::before,
    .tkd-portal-body *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
