/* ==========================================================================
   Apple-Inspired Design Theme for User Dashboard
   Refined proportions, smaller cards, rounded squircle edges, smaller crisp fonts
   ========================================================================== */

:root {
    /* Apple Palette & Refined LivingTree Accents */
    --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", "Helvetica Neue", "Inter", sans-serif;
    --apple-bg: #F5F5F7;
    --apple-card-bg: #FFFFFF;
    --apple-card-subtle: #FAFAFC;
    --apple-border: rgba(0, 0, 0, 0.06);
    --apple-border-strong: rgba(0, 0, 0, 0.12);
    --apple-border-focus: rgba(30, 95, 70, 0.4);
    
    /* Apple Text Colors */
    --apple-text-primary: #1D1D1F;
    --apple-text-secondary: #6E6E73;
    --apple-text-tertiary: #86868B;
    --apple-text-quaternary: #A1A1A6;

    /* LivingTree Apple Brand Accents */
    --apple-accent: #1E5F46;
    --apple-accent-hover: #174A37;
    --apple-accent-light: rgba(30, 95, 70, 0.08);
    --apple-accent-border: rgba(30, 95, 70, 0.2);
    
    --apple-green: #34C759;
    --apple-green-soft: rgba(52, 199, 89, 0.12);
    --apple-amber: #FF9500;
    --apple-amber-soft: rgba(255, 149, 0, 0.12);
    --apple-red: #FF3B30;
    --apple-red-soft: rgba(255, 59, 48, 0.12);
    --apple-blue: #007AFF;
    --apple-blue-soft: rgba(0, 122, 255, 0.12);

    /* Apple Squircle Continuous Radii */
    --radius-pill: 980px;
    --radius-apple-card: 20px;
    --radius-apple-subcard: 16px;
    --radius-apple-tile: 12px;
    --radius-apple-control: 10px;
    --radius-apple-badge: 9999px;

    /* Apple Diffused Ambient Shadows */
    --apple-shadow-ambient: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 12px rgba(0, 0, 0, 0.02);
    --apple-shadow-card: 0 2px 8px -2px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --apple-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
    --apple-shadow-dropdown: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Base Document Styling */
body {
    font-family: var(--apple-font) !important;
    background-color: var(--apple-bg) !important;
    color: var(--apple-text-primary) !important;
    letter-spacing: -0.011em;
    font-size: 0.84rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar - macOS Inspired Frosted Dark Slate */
#sidebar-wrapper {
    background: linear-gradient(180deg, #133A2C 0%, #0E291F 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    width: 250px;
}

#page-content-wrapper {
    width: calc(100% - 250px);
    margin-left: 250px;
}

#sidebar-wrapper .sidebar-heading {
    height: 76px;
    padding: 1.25rem 1.25rem;
}

#sidebar-wrapper .sidebar-heading img {
    height: 36px !important;
    width: auto !important;
    max-height: 38px !important;
    background: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.nav-section-title {
    padding: 0.85rem 1.35rem 0.35rem !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    color: rgba(255, 255, 255, 0.38) !important;
    text-transform: uppercase !important;
}

#sidebar-wrapper .list-group {
    padding: 0 0.75rem !important;
}

#sidebar-wrapper .list-group-item {
    font-size: 0.825rem !important;
    font-weight: 500 !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 10px !important;
    margin-bottom: 3px !important;
    color: rgba(255, 255, 255, 0.72) !important;
    letter-spacing: -0.01em !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#sidebar-wrapper .list-group-item i {
    font-size: 0.95rem !important;
    margin-right: 0.65rem !important;
    opacity: 0.75;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.09) !important;
    color: #ffffff !important;
    transform: none !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: rgba(255, 255, 255, 0.16) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    font-weight: 600 !important;
}

#sidebar-wrapper .list-group-item.active i {
    opacity: 1;
    color: #4ADE80;
}

/* Sidebar User Info Section */
.sidebar-user-section {
    padding: 0.85rem 0.75rem !important;
    background-color: rgba(0, 0, 0, 0.18) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.user-profile-mini {
    padding: 0.5rem 0.65rem !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.user-profile-mini:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

.user-avatar-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.8rem !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Navbar - macOS Translucent Titlebar */
.navbar {
    height: 56px !important;
    background-color: rgba(245, 245, 247, 0.82) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: none !important;
}

#page-title {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.018em !important;
    color: var(--apple-text-primary) !important;
}

/* Notification Dropdown Apple Style */
.dropdown-menu {
    border-radius: 16px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: var(--apple-shadow-dropdown) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    border-radius: 8px !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
    transition: background 0.15s ease !important;
}

.dropdown-item:hover {
    background-color: var(--apple-accent-light) !important;
}

/* ==========================================================================
   Apple-Inspired Cards & Widgets
   ========================================================================== */

.card-premium {
    background: var(--apple-card-bg) !important;
    border: 0.5px solid var(--apple-border) !important;
    border-radius: var(--radius-apple-card) !important;
    box-shadow: var(--apple-shadow-card) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease !important;
    overflow: hidden;
}

.card-premium:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--apple-shadow-hover) !important;
    border-color: rgba(0, 0, 0, 0.09) !important;
}

/* Compact Apple Metric Widgets */
.stat-card {
    padding: 1.15rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.stat-label-apple {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--apple-text-tertiary) !important;
    margin-bottom: 0.5rem !important;
}

.stat-number-apple {
    font-size: 1.85rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.1 !important;
    color: var(--apple-text-primary) !important;
}

/* Apple Squircle Glyphs */
.apple-icon-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 11px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.card-premium:hover .apple-icon-box {
    transform: scale(1.05);
}

.apple-icon-green {
    background: linear-gradient(135deg, rgba(30, 95, 70, 0.12) 0%, rgba(52, 199, 89, 0.16) 100%) !important;
    color: #1E5F46 !important;
}

.apple-icon-amber {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12) 0%, rgba(255, 179, 64, 0.18) 100%) !important;
    color: #D97706 !important;
}

.apple-icon-blue {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.12) 0%, rgba(100, 210, 255, 0.16) 100%) !important;
    color: #007AFF !important;
}

/* CTA Card - Apple Hero Tile */
.cta-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #F5FBF8 100%) !important;
    border: 1px dashed rgba(30, 95, 70, 0.3) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.cta-card:hover {
    border-color: var(--apple-accent) !important;
    background: linear-gradient(145deg, #FFFFFF 0%, #EEF7F2 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(30, 95, 70, 0.12) !important;
}

.cta-card .card-body {
    padding: 1.15rem 1.25rem !important;
}

.cta-card h5 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    color: var(--apple-text-primary) !important;
}

/* Card Footers */
.card-footer-apple {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 0.5px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-footer-apple small {
    font-size: 0.72rem !important;
    color: var(--apple-text-tertiary) !important;
}

.overview-metric {
    cursor: pointer;
}

.overview-metric:focus {
    outline: none;
}

.overview-metric:focus-visible {
    box-shadow: 0 0 0 3px rgba(30, 95, 70, 0.18), var(--apple-shadow-hover) !important;
}

.overview-metric-chevron {
    font-size: 0.7rem;
    color: var(--apple-text-quaternary);
    transition: transform 0.18s ease, color 0.18s ease;
}

.overview-metric:hover .overview-metric-chevron {
    transform: translateX(2px);
    color: var(--apple-accent);
}

.overview-view-all {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    color: var(--apple-accent) !important;
}

.overview-view-all:hover {
    color: var(--apple-accent-hover) !important;
}

.fade-in-delay-4 {
    animation-delay: 0.28s;
}

/* ==========================================================================
   Apple-Inspired Buttons & Badges
   ========================================================================== */

/* Primary Apple Pill Button */
.btn-primary-custom {
    background: linear-gradient(180deg, #1E5F46 0%, #164835 100%) !important;
    color: #ffffff !important;
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    padding: 0.45rem 1rem !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-primary-custom:hover {
    background: linear-gradient(180deg, #246F52 0%, #1A543E 100%) !important;
    box-shadow: 0 3px 8px rgba(30, 95, 70, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px) !important;
}

.btn-primary-custom:active {
    transform: scale(0.98) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Outline Apple Pill Button */
.btn-outline-custom {
    background: #FFFFFF !important;
    border: 0.5px solid rgba(0, 0, 0, 0.12) !important;
    color: var(--apple-text-primary) !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: var(--radius-pill) !important;
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-outline-custom:hover {
    background: var(--apple-card-subtle) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: var(--apple-accent) !important;
    transform: translateY(-1px) !important;
}

.btn-outline-custom:active {
    transform: scale(0.98) !important;
}

/* Secondary & Danger Buttons */
.btn-outline-danger {
    border-radius: var(--radius-pill) !important;
    font-size: 0.775rem !important;
    padding: 0.35rem 0.85rem !important;
    font-weight: 500 !important;
}

.btn-danger {
    border-radius: var(--radius-pill) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
}

.btn-light {
    border-radius: var(--radius-pill) !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
}

/* Apple Status Capsule Badges */
.status-badge {
    padding: 0.25rem 0.65rem !important;
    border-radius: var(--radius-badge) !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.status-badge.active {
    background-color: rgba(52, 199, 89, 0.12) !important;
    color: #1B873F !important;
    border: 0.5px solid rgba(52, 199, 89, 0.25);
}

.status-badge.active::before {
    background-color: #34C759 !important;
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6) !important;
}

.status-badge.expired {
    background-color: rgba(255, 59, 48, 0.1) !important;
    color: #D32F2F !important;
    border: 0.5px solid rgba(255, 59, 48, 0.2);
}

.status-badge.trial {
    background-color: rgba(255, 149, 0, 0.12) !important;
    color: #C07000 !important;
    border: 0.5px solid rgba(255, 149, 0, 0.25);
}

/* System Badge Pills */
.badge.bg-light {
    background-color: #F2F2F7 !important;
    color: var(--apple-text-secondary) !important;
    border: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-badge) !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    padding: 0.25rem 0.6rem !important;
}

/* ==========================================================================
   Apple-Inspired Tables
   ========================================================================== */

.table-premium-container {
    background: var(--apple-card-bg) !important;
    border-radius: var(--radius-apple-card) !important;
    border: 0.5px solid var(--apple-border) !important;
    box-shadow: var(--apple-shadow-card) !important;
    overflow: hidden !important;
}

.table-premium thead th {
    background-color: #FAFAFC !important;
    color: var(--apple-text-tertiary) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1.25rem !important;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06) !important;
}

.table-premium tbody td {
    padding: 0.8rem 1.25rem !important;
    font-size: 0.8125rem !important;
    color: var(--apple-text-primary) !important;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.04) !important;
    vertical-align: middle !important;
}

.table-premium tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

.table-premium tbody tr:last-child td {
    border-bottom: none !important;
}

/* ==========================================================================
   Product Cards & Catalog Grid
   ========================================================================== */

#products-grid .card-premium {
    border-radius: var(--radius-apple-card) !important;
}

#products-grid .card-premium > div:first-child {
    height: 140px !important;
    background: #EBEBED !important;
}

#products-grid .card-body {
    padding: 1rem 1.15rem !important;
}

#products-grid .card-title {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 0.35rem !important;
}

#products-grid .card-text {
    font-size: 0.775rem !important;
    color: var(--apple-text-secondary) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.85rem !important;
}

/* ==========================================================================
   Support Cards & Settings Forms
   ========================================================================== */

#support-view .card-premium {
    padding: 1.25rem 1.15rem !important;
    border-radius: var(--radius-apple-card) !important;
}

#support-view .card-premium .stat-icon-bg {
    width: 46px !important;
    height: 46px !important;
    font-size: 1.35rem !important;
    border-radius: 13px !important;
    margin-bottom: 1rem !important;
}

#support-view h5 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.015em !important;
}

#support-view p {
    font-size: 0.775rem !important;
    margin-bottom: 1rem !important;
}

/* Settings Form Controls */
.form-control {
    border-radius: var(--radius-apple-control) !important;
    border: 0.5px solid rgba(0, 0, 0, 0.15) !important;
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.75rem !important;
    background-color: #FFFFFF !important;
    color: var(--apple-text-primary) !important;
    transition: all 0.15s ease !important;
}

.form-control:focus {
    border-color: var(--apple-accent) !important;
    box-shadow: 0 0 0 3px rgba(30, 95, 70, 0.12) !important;
}

.form-label {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    color: var(--apple-text-secondary) !important;
    margin-bottom: 0.35rem !important;
}

/* ==========================================================================
   Modals - Apple Sheet Dialogue
   ========================================================================== */

.modal-content {
    border-radius: 22px !important;
    border: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
}

.modal-backdrop.show {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(0, 0, 0, 0.35) !important;
}

.modal-header h5 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

.modal-body {
    padding: 1.25rem 1.5rem !important;
}

/* Plan options in modal */
#planOptions .btn-outline-custom {
    border-radius: 14px !important;
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
}

#planOptions .btn-outline-custom:hover {
    border-color: var(--apple-accent) !important;
    background-color: rgba(30, 95, 70, 0.04) !important;
}

/* ==========================================================================
   Admin Dashboard Apple Design System Extensions
   ========================================================================== */

/* Apple Icon Box Gradients */
.apple-icon-emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.20) 100%) !important;
    color: #059669 !important;
}

.apple-icon-purple {
    background: linear-gradient(135deg, rgba(88, 86, 214, 0.12) 0%, rgba(175, 82, 222, 0.18) 100%) !important;
    color: #5856D6 !important;
}

.apple-icon-red {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.12) 0%, rgba(255, 69, 58, 0.2) 100%) !important;
    color: #FF3B30 !important;
}

/* Overview Greeting & Status Pill */
.apple-live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-pill);
    background: rgba(52, 199, 89, 0.1);
    border: 0.5px solid rgba(52, 199, 89, 0.25);
    color: #1B873F;
    font-size: 0.72rem;
    font-weight: 500;
}

.apple-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #34C759;
    box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    animation: pulse-green-dot 2s infinite;
}

@keyframes pulse-green-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(52, 199, 89, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 199, 89, 0);
    }
}

/* Quick Action Banner (Apple Hero Tile) */
.apple-hero-banner {
    background: linear-gradient(135deg, #133A2C 0%, #1A4E3B 50%, #0E2A1F 100%) !important;
    border-radius: var(--radius-apple-card) !important;
    padding: 1.35rem 1.75rem !important;
    color: #ffffff !important;
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px -4px rgba(19, 58, 44, 0.25) !important;
    position: relative;
    overflow: hidden;
}

.apple-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(52, 199, 89, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Apple Toolbar & Filter Controls */
.apple-filter-bar {
    background: var(--apple-card-bg) !important;
    border-radius: var(--radius-apple-subcard) !important;
    border: 0.5px solid var(--apple-border) !important;
    box-shadow: var(--apple-shadow-ambient) !important;
    padding: 0.85rem 1.15rem !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.apple-select {
    background-color: #FAFAFC !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.4rem 1.85rem 0.4rem 0.85rem !important;
    font-size: 0.775rem !important;
    font-weight: 500 !important;
    color: var(--apple-text-primary) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236E6E73' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.65rem center !important;
    background-size: 11px 9px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all 0.18s ease !important;
    cursor: pointer;
}

.apple-select:focus {
    border-color: var(--apple-accent) !important;
    box-shadow: 0 0 0 3px rgba(30, 95, 70, 0.12) !important;
    outline: none !important;
    background-color: #FFFFFF !important;
}

.apple-search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.apple-search-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--apple-text-tertiary);
    font-size: 0.8rem;
    pointer-events: none;
}

.apple-search-input {
    background-color: #FAFAFC !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.4rem 0.85rem 0.4rem 2.15rem !important;
    font-size: 0.775rem !important;
    width: 220px !important;
    transition: all 0.18s ease !important;
    color: var(--apple-text-primary) !important;
}

.apple-search-input:focus {
    width: 260px !important;
    background-color: #FFFFFF !important;
    border-color: var(--apple-accent) !important;
    box-shadow: 0 0 0 3px rgba(30, 95, 70, 0.12) !important;
    outline: none !important;
}

/* License Key Chip with Copy Feedback */
.license-key-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F4F4F6;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 0.2rem 0.55rem;
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace !important;
    font-size: 0.75rem !important;
    color: #24292F;
    letter-spacing: -0.01em;
    user-select: all;
    transition: all 0.15s ease;
}

.license-key-chip:hover {
    background: #EBECEF;
    border-color: rgba(0, 0, 0, 0.15);
}

.apple-copy-btn {
    border: none;
    background: none;
    padding: 0;
    color: var(--apple-text-tertiary);
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    transition: all 0.15s ease;
}

.apple-copy-btn:hover {
    color: var(--apple-accent);
    background: rgba(30, 95, 70, 0.1);
}

/* License Inspector — LivingTree greens + neutrals; red only for revoke/errors */
.inspector-hero {
    background: rgba(30, 95, 70, 0.06);
    border: 1px solid rgba(30, 95, 70, 0.15);
}

.inspector-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--apple-text-secondary);
}

.inspector-key {
    background: #F4F4F6;
    color: var(--apple-text-primary);
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.inspector-key .apple-copy-btn {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    color: var(--apple-text-tertiary);
}

.inspector-tile {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.inspector-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(30, 95, 70, 0.08);
    color: #1E5F46;
    border: 1px solid rgba(30, 95, 70, 0.18);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.55rem;
}

.inspector-chip.is-muted {
    background: #F2F2F7;
    color: #6E6E73;
    border-color: rgba(0, 0, 0, 0.08);
}

.inspector-chip.is-negative {
    background: rgba(255, 59, 48, 0.1);
    color: #D32F2F;
    border-color: rgba(255, 59, 48, 0.2);
}

.inspector-log {
    background: #F5F5F7;
    color: var(--apple-text-primary);
    font-family: "SF Mono", Monaco, Menlo, Consolas, monospace;
    font-size: 0.775rem;
    max-height: 180px;
    overflow-y: auto;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    white-space: pre-wrap;
}

.inspector-log-ok {
    color: #1E5F46;
}

.inspector-log-err {
    color: #D32F2F;
}

/* Apple Client Initials Avatar */
.apple-client-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6F4EA 0%, #CEEAD6 100%);
    color: #137333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Status Capsules */
.status-badge {
    padding: 0.22rem 0.65rem !important;
    border-radius: var(--radius-badge) !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.015em !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-badge.active {
    background-color: rgba(52, 199, 89, 0.12) !important;
    color: #177C38 !important;
    border: 0.5px solid rgba(52, 199, 89, 0.25) !important;
}
.status-badge.active::before {
    background-color: #34C759;
}

.status-badge.expiring {
    background-color: rgba(255, 149, 0, 0.12) !important;
    color: #C07000 !important;
    border: 0.5px solid rgba(255, 149, 0, 0.25) !important;
}
.status-badge.expiring::before {
    background-color: #FF9500;
}

.status-badge.expired,
.status-badge.revoked,
.status-badge.suspended {
    background-color: rgba(255, 59, 48, 0.1) !important;
    color: #D32F2F !important;
    border: 0.5px solid rgba(255, 59, 48, 0.2) !important;
}
.status-badge.expired::before,
.status-badge.revoked::before,
.status-badge.suspended::before {
    background-color: #FF3B30;
}

.status-badge.trial {
    background-color: rgba(0, 122, 255, 0.1) !important;
    color: #0062CC !important;
    border: 0.5px solid rgba(0, 122, 255, 0.2) !important;
}
.status-badge.trial::before {
    background-color: #007AFF;
}

.status-badge.admin-gen {
    background-color: rgba(88, 86, 214, 0.1) !important;
    color: #5856D6 !important;
    border: 0.5px solid rgba(88, 86, 214, 0.2) !important;
    font-size: 0.65rem !important;
}

/* Plan Badge Pill */
.badge-plan {
    background: #F2F2F7;
    color: #48484A;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-badge);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.2rem 0.55rem;
}

/* Role Badges */
.role-badge-admin {
    background: rgba(255, 59, 48, 0.12);
    color: #D32F2F;
    border: 0.5px solid rgba(255, 59, 48, 0.25);
    border-radius: var(--radius-badge);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-badge-staff {
    background: rgba(255, 149, 0, 0.12);
    color: #C07000;
    border: 0.5px solid rgba(255, 149, 0, 0.25);
    border-radius: var(--radius-badge);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-badge-user {
    background: #F2F2F7;
    color: #6E6E73;
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-badge);
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Apple 3-Dots Action Button */
.apple-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--apple-text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.apple-action-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--apple-text-primary);
}

/* Apple Product Card Catalog */
.apple-product-card {
    background: var(--apple-card-bg) !important;
    border-radius: var(--radius-apple-card) !important;
    border: 0.5px solid var(--apple-border) !important;
    box-shadow: var(--apple-shadow-card) !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease !important;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.apple-product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--apple-shadow-hover) !important;
}

.apple-product-img-wrap {
    height: 180px;
    background: #F2F2F7;
    overflow: hidden;
    position: relative;
}

.apple-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-product-card:hover .apple-product-img-wrap img {
    transform: scale(1.04);
}

.apple-product-badge-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-badge);
    padding: 0.2rem 0.6rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--apple-text-primary);
}

.apple-pricing-box {
    background: #FAFAFC;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    border: 0.5px solid rgba(0, 0, 0, 0.04);
    margin-top: auto;
}

/* Apple macOS Sheet Style Modals */
.modal-content {
    border-radius: 24px !important;
    border: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden !important;
    background: #FFFFFF !important;
}

.modal-header {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06) !important;
    background: #FAFAFC !important;
}

.modal-header .btn-close {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    padding: 0.5rem;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: all 0.15s ease;
}

.modal-header .btn-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.modal-body {
    padding: 1.5rem !important;
}

.modal-footer {
    padding: 1rem 1.5rem !important;
    border-top: 0.5px solid rgba(0, 0, 0, 0.06) !important;
}

/* Revenue Accordion Apple Style */
.accordion-flush .accordion-item {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.06) !important;
    background: transparent !important;
}

.accordion-button {
    font-size: 0.84rem !important;
    border-radius: 12px !important;
    padding: 0.85rem 1.15rem !important;
    transition: background 0.18s ease !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(30, 95, 70, 0.05) !important;
    color: var(--apple-text-primary) !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: none !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Apple Dynamic Island Toast */
.custom-toast {
    border-radius: 18px !important;
    border: 0.5px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    overflow: hidden;
}

.custom-toast .toast-header {
    background: transparent !important;
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05) !important;
    padding: 0.75rem 1rem !important;
}

.custom-toast .toast-body {
    font-size: 0.8125rem !important;
    padding: 0.75rem 1rem !important;
    color: var(--apple-text-primary) !important;
}

/* Privacy Mode Blur */
.blur-text {
    filter: blur(8px) !important;
    -webkit-filter: blur(8px) !important;
    user-select: none !important;
    transition: filter 0.25s ease !important;
    cursor: default !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #sidebar-wrapper {
        width: 250px;
    }
    
    #page-content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    .stat-number-apple {
        font-size: 1.6rem !important;
    }

    .apple-search-input {
        width: 100% !important;
    }

    .apple-search-input:focus {
        width: 100% !important;
    }
}

