/* Frontend Styles for Chrome Extension License Manager */

.celm-user-licenses,
.celm-reseller-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* WooCommerce My Account Integration */
.woocommerce-MyAccount-content .celm-user-licenses,
.woocommerce-MyAccount-content .celm-reseller-dashboard {
    padding: 0;
    max-width: 100%;
}

.woocommerce-MyAccount-licenses h2,
.woocommerce-MyAccount-reseller h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

/* Adjust license grid for My Account */
.woocommerce-MyAccount-content .celm-licenses-grid {
    margin-top: 15px;
}

.celm-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.celm-license-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.celm-license-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.celm-license-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.celm-license-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.celm-license-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.celm-license-type-pro {
    background: rgba(59, 130, 246, 0.15) !important;
}

.celm-license-type-advance {
    background: rgba(16, 185, 129, 0.15) !important;
}

.celm-license-type-reseller {
    background: rgba(139, 92, 246, 0.15) !important;
}

.celm-license-type-enterprise {
    background: rgba(245, 158, 11, 0.15) !important;
}

.celm-license-body {
    padding: 20px;
}

.celm-license-key {
    margin-bottom: 20px;
}

.celm-license-key label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

.celm-key-display {
    display: flex;
    gap: 10px;
    align-items: center;
}

.celm-key-display code {
    flex: 1;
    background: #f3f4f6;
    padding: 10px;
    border-radius: 4px;
    font-size: 13px;
    word-break: break-all;
}

.celm-copy-key {
    white-space: nowrap;
}

.celm-license-info {
    border-top: 1px solid #e5e7eb;
    padding-top: 15px;
}

.celm-info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.celm-info-item .label {
    font-weight: 600;
    color: #6b7280;
}

.celm-license-activations {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.celm-license-activations h4 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
}

.celm-devices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.celm-devices-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 13px;
}

.celm-devices-list li small {
    color: #6b7280;
    margin-left: 10px;
}

.celm-license-footer {
    padding: 15px 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

/* Reseller Dashboard */
.celm-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.celm-stat-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.celm-stat-box h3 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
}

.celm-stat-box p {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.celm-reseller-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.celm-section-header {
    border-bottom: 2px solid #667eea;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.celm-section-header h3 {
    margin: 0 0 10px;
    color: #111827;
}

.celm-parent-license {
    display: flex;
    align-items: center;
    gap: 10px;
}

.celm-parent-license label {
    font-weight: 600;
    color: #6b7280;
}

.celm-parent-license code {
    background: #f3f4f6;
    padding: 5px 10px;
    border-radius: 4px;
}

.celm-generate-form-wrapper {
    background: #ffffff;
    border: 3px solid #dc2626;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

.celm-generate-form-wrapper h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #111827;
    font-weight: 600;
}

.celm-sublicense-form .form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.celm-sublicense-form .form-group {
    flex: 1;
    min-width: 200px;
}

.celm-sublicense-form .form-group.form-actions {
    display: flex;
    align-items: flex-end;
}

/* Form Grid Styles for Sublicense Form */
.celm-sublicense-form .celm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 0;
}

.celm-sublicense-form .celm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.celm-sublicense-form .celm-form-group.celm-form-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 0;
}

.celm-sublicense-form .celm-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0;
}

.celm-sublicense-form .celm-form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.celm-sublicense-form label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.celm-sublicense-form select,
.celm-sublicense-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.celm-sublicense-form select:focus,
.celm-sublicense-form input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.celm-sublicense-form button[type="submit"],
.celm-sublicense-form .celm-btn-generate {
    background: linear-gradient(135deg, #8b5cf6 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
    height: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.celm-sublicense-form button[type="submit"]:hover,
.celm-sublicense-form .celm-btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.celm-sublicense-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.celm-sublicense-result {
    margin-top: 15px;
}

.celm-success {
    background: #d1fae5;
    border: 1px solid #065f46;
    color: #065f46;
    padding: 15px;
    border-radius: 4px;
}

.celm-error {
    background: #fee2e2;
    border: 1px solid #991b1b;
    color: #991b1b;
    padding: 15px;
    border-radius: 4px;
}

.celm-sublicenses-list {
    margin-top: 25px;
}

.celm-sublicenses-list h4 {
    margin-bottom: 15px;
}

.celm-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.celm-table thead {
    background: #f9fafb;
}

.celm-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.celm-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.celm-table code {
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.celm-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.celm-status-active {
    background: #d1fae5;
    color: #065f46;
}

.celm-status-inactive {
    background: #f3f4f6;
    color: #374151;
}

/* ========================================
   REDESIGNED LICENSE PAGE STYLES
   ======================================== */

/* Main Wrapper */
.celm-user-licenses-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.celm-licenses-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.celm-licenses-header h2 {
    margin: 0;
    font-size: 28px;
    color: #111827;
    font-weight: 700;
}

.celm-licenses-header .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
}

/* Empty State */
.celm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.celm-empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celm-empty-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #9ca3af;
}

.celm-empty-state h3 {
    font-size: 22px;
    color: #374151;
    margin: 0 0 10px;
}

.celm-empty-state p {
    color: #6b7280;
    margin: 0 0 25px;
}

.celm-empty-state .celm-upgrade-button {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.celm-empty-state .celm-upgrade-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.celm-empty-state .celm-upgrade-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===============================
   PRODUCT HUB & DETAIL PAGES
   =============================== */

.celm-product-hub-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.celm-product-hub-header h2 {
    font-size: 28px;
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.celm-product-section {
    margin-bottom: 40px;
}

.celm-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.celm-product-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.2s ease;
}

.celm-product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    transform: translateY(-2px);
}

.celm-product-card-header {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
}

.celm-product-header-content {
    flex: 1;
    min-width: 0;
}

.celm-product-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.celm-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.celm-product-card-body {
    padding: 16px 20px 18px;
}

.celm-product-description {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 14px;
}

.celm-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.celm-product-status-purchased {
    font-size: 13px;
    color: #065f46;
    background: #d1fae5;
    border-radius: 999px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.celm-product-status-purchased .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-product-manage-button,
.celm-product-buy-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.celm-product-manage-button .dashicons,
.celm-product-buy-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-product-detail-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.celm-product-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.celm-product-detail-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.celm-product-detail-description {
    margin: 0;
    font-size: 14px;
    color: #4b5563;
}

.celm-product-detail-meta {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.celm-product-detail-price {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.celm-product-detail-content {
    /* Stack video and manager vertically so manager sits under video */
    display: block;
}

.celm-video-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.celm-video-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.celm-video-header .dashicons {
    width: 32px;
    height: 32px;
    font-size: 28px;
    color: #667eea;
}

.celm-video-header h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.celm-video-header p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.celm-video-frame {
    background: #f9fafb;
    border-radius: 10px;
    border: 1px dashed #d1d5db;
    padding: 40px 20px;
    text-align: center;
}

.celm-video-placeholder .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.celm-video-placeholder p {
    margin: 0;
    color: #6b7280;
}

.celm-product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    margin-bottom: 16px;
    justify-content: center;
}

.celm-product-tabs-nav .button {
    border-radius: 999px;
    padding: 10px 22px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #ec4899; /* pink outline */
    background: #ffffff;
    color: #ec4899;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.celm-product-tabs-nav .button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-product-tabs-nav .button:hover {
    background: #fdf2f8;
    color: #db2777;
    border-color: #db2777;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.25);
    transform: translateY(-1px);
}

/* Active tab */
.celm-product-tabs-nav .button.button-primary {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.45);
}

.celm-product-tabs-nav .button.button-primary:hover {
    background: linear-gradient(135deg, #db2777 0%, #7c3aed 100%);
}

.celm-product-detail-tabs {
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.celm-tab-panel {
    display: none;
}

.celm-tab-panel.celm-tab-panel-active {
    display: block;
}

.celm-product-license-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.celm-product-license-item {
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
}

.celm-product-license-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.celm-product-license-expiry {
    font-weight: 500;
}

@media (max-width: 900px) {
    .celm-product-detail-meta {
        align-items: flex-start;
        text-align: left;
    }
}

/* Responsive Product Grid */
@media (max-width: 1200px) {
    .celm-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .celm-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }
    
    .celm-product-hub-wrapper {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .celm-product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* Statistics Grid */
.celm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.celm-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.celm-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.celm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.celm-stat-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.celm-icon-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.celm-icon-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.celm-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.celm-icon-expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.celm-stat-content {
    flex: 1;
}

.celm-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.celm-stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Controls Section */
.celm-licenses-controls {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

/* Filter Tabs */
.celm-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.celm-filter-btn {
    padding: 10px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.celm-filter-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.celm-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-color: #667eea;
}

.celm-filter-btn .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
}

.celm-filter-btn.active .count {
    background: rgba(255, 255, 255, 0.2);
}

/* Search Box */
.celm-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.celm-search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.celm-search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.celm-search-box .dashicons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

/* Licenses Grid - Redesigned */
.celm-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

/* License Card - Collapsible Design */
.celm-license-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.celm-license-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.celm-license-card.celm-card-expanded {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Card Header */
.celm-card-header {
    padding: 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.celm-card-title-section {
    display: flex;
    gap: 15px;
    flex: 1;
    align-items: flex-start;
}

.celm-extension-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.celm-extension-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #fff;
}

.celm-card-title-info {
    flex: 1;
    min-width: 0;
}

.celm-extension-name {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.celm-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.celm-license-badge,
.celm-status-badge,
.celm-warning-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-badge-pro {
    background: #dbeafe;
    color: #1e40af;
}

.celm-badge-advance {
    background: #d1fae5;
    color: #065f46;
}

.celm-badge-reseller {
    background: #ede9fe;
    color: #6b21a8;
}

.celm-status-active {
    background: #d1fae5;
    color: #065f46;
}

.celm-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.celm-status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.celm-warning-badge {
    background: #fef3c7;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.celm-warning-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Toggle Button */
.celm-toggle-details {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.celm-toggle-details:hover {
    background: #e5e7eb;
}

.celm-toggle-details .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

/* Quick Info */
.celm-card-quick-info {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 24px;
}

.celm-quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.celm-quick-stat .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.celm-stat-text {
    font-weight: 600;
    color: #374151;
}

/* Expandable Details */
.celm-card-details {
    padding: 20px;
    background: #fafafa;
}

.celm-details-section {
    margin-bottom: 20px;
}

.celm-details-section:last-child {
    margin-bottom: 0;
}

.celm-details-section h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* License Key Display */
.celm-card-details .celm-key-display {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.celm-card-details .celm-key-display code {
    flex: 1;
    background: transparent;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    word-break: break-all;
}

.celm-copy-btn {
    background: #667eea;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.celm-copy-btn:hover {
    background: #5568d3;
}

.celm-copy-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Details Grid */
.celm-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.celm-detail-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.celm-detail-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.celm-detail-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.celm-detail-value a {
    color: #667eea;
    text-decoration: none;
}

.celm-detail-value a:hover {
    text-decoration: underline;
}

/* Devices List */
.celm-devices-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.celm-device-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.celm-device-info {
    display: flex;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.celm-device-info > .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #9ca3af;
    flex-shrink: 0;
}

.celm-device-details {
    flex: 1;
    min-width: 0;
}

.celm-device-id {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

.celm-device-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

.celm-remove-device {
    background: #fee2e2;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.celm-remove-device:hover {
    background: #fecaca;
}

.celm-remove-device .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #dc2626;
}

/* Card Actions */
.celm-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.celm-action-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.celm-btn-upgrade {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    border: none;
}

.celm-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.celm-btn-reseller {
    background: #fff;
    color: #667eea !important;
    border: 2px solid #667eea;
}

.celm-btn-reseller:hover {
    background: #f3f4f6;
}

.celm-action-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* No Results */
.celm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.celm-no-results .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    opacity: 0.5;
    margin-bottom: 15px;
}

.celm-no-results p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
/* ===================================
   RESELLER DASHBOARD - MODERN UI
   =================================== */

.celm-reseller-dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #f9fafb;
}

.celm-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.celm-dashboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.celm-header-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Reseller Licenses Grid - 3 columns */
.celm-reseller-licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.celm-reseller-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.celm-reseller-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.celm-reseller-card.celm-card-expanded {
    grid-column: span 3;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

/* Compact Card View */
.celm-reseller-card-compact {
    padding: 20px;
}

.celm-card-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.celm-extension-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.celm-extension-icon .dashicons {
    color: #ffffff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.celm-extension-info {
    flex: 1;
    min-width: 0;
}

.celm-extension-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    word-wrap: break-word;
}

.celm-license-badge-small {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-badge-reseller-small {
    background: #ede9fe;
    color: #6d28d9;
}

/* Compact Stats */
.celm-compact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.celm-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.celm-stat-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    flex-shrink: 0;
}

.celm-stat-icon.celm-icon-success {
    color: #10b981;
}

.celm-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.celm-stat-text {
    flex: 1;
    min-width: 0;
}

.celm-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.celm-stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Compact Capacity */
.celm-compact-capacity {
    margin-bottom: 16px;
}

.celm-capacity-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.celm-capacity-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.celm-capacity-value {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.celm-progress-bar-compact {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.celm-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Expand Button */
.celm-expand-btn {
    width: 100%;
    padding: 10px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.celm-expand-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

.celm-expand-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Expanded Card Details */
.celm-card-details-expanded {
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

/* License Key Section */
.celm-license-key-section {
    padding: 20px;
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
}

.celm-key-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.celm-license-key-display-full {
    display: flex;
    align-items: center;
    gap: 12px;
}

.celm-license-key-text-full {
    flex: 1;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1f2937;
    word-break: break-all;
    border: 1px solid #e5e7eb;
}

.celm-copy-btn-full {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #8b5cf6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.celm-copy-btn-full:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.celm-copy-btn-full.celm-copied {
    background: #10b981;
}

.celm-copy-btn-full .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Generate Section */
.celm-generate-section {
    padding: 24px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.celm-section-title {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.celm-section-title .dashicons {
    color: #8b5cf6;
}

.celm-count-badge {
    background: #8b5cf6;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.celm-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.celm-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.celm-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.celm-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

.celm-logo-preview {
    margin-top: 10px;
    padding: 8px;
    background: #f9fafb;
    border-radius: 6px;
    display: inline-block;
}

.celm-logo-preview img {
    max-width: 48px;
    max-height: 48px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    display: block;
}

.celm-form-group .required {
    color: #ef4444;
}

.celm-form-group .optional {
    font-weight: 400;
    color: #9ca3af;
}

.celm-form-group select,
.celm-form-group input[type="email"] {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.celm-form-group select:focus,
.celm-form-group input[type="email"]:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.celm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.celm-btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
}

.celm-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.celm-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.celm-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Sub-licenses Section */
.celm-sublicenses-section {
    padding: 24px;
}

.celm-sublicenses-table-wrapper {
    overflow-x: auto;
    margin-top: 16px;
}

.celm-sublicenses-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.celm-sublicenses-table thead {
    background: #f9fafb;
}

.celm-sublicenses-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.celm-sublicenses-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
}

.celm-sublicenses-table tbody tr:last-child td {
    border-bottom: none;
}

.celm-sublicenses-table tbody tr:hover {
    background: #f9fafb;
}

.celm-license-key-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.celm-license-key-cell code {
    background: #f3f4f6;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #374151;
}

.celm-copy-btn-small {
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.celm-copy-btn-small:hover {
    color: #8b5cf6;
    background: #f3f4f6;
}

.celm-copy-btn-small.celm-copied {
    color: #10b981;
}

.celm-copy-btn-small .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Type and Status Badges */
.celm-type-badge,
.celm-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-type-pro {
    background: #dbeafe;
    color: #1e40af;
}

.celm-type-advance {
    background: #d1fae5;
    color: #065f46;
}

.celm-type-freemium {
    background: #e0e7ff;
    color: #3730a3;
}

.celm-type-standard {
    background: #dbeafe;
    color: #1e40af;
}

.celm-type-enhanced {
    background: #d1fae5;
    color: #065f46;
}

.celm-type-ultimate {
    background: #fce7f3;
    color: #9f1239;
}

.celm-type-giveaway {
    background: #fef3c7;
    color: #92400e;
}

.celm-type-reseller {
    background: #e9d5ff;
    color: #6b21a8;
}

.celm-status-active {
    background: #d1fae5;
    color: #065f46;
}

.celm-status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.celm-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.celm-activation-count {
    font-weight: 600;
    color: #374151;
}

/* Customer Info */
.celm-customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.celm-customer-email {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.celm-customer-name {
    font-size: 12px;
    color: #6b7280;
}

/* Activation Info */
.celm-activation-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.celm-activation-user {
    margin-bottom: 2px;
}

.celm-activation-email {
    color: #374151;
    font-weight: 500;
}

.celm-activation-date,
.celm-activation-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 11px;
}

.celm-activation-date .dashicons,
.celm-activation-location .dashicons {
    color: #9ca3af;
}

.celm-date {
    color: #6b7280;
    font-size: 13px;
}

/* Success and Error Messages */
.celm-success-message,
.celm-error-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

.celm-success-message {
    background: #d1fae5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.celm-error-message {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.celm-success-message .dashicons,
.celm-error-message .dashicons {
    flex-shrink: 0;
}

.celm-generated-key {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.celm-generated-key code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
}

/* Spinning Animation */
.celm-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Campaigns Section */
.celm-campaigns-section {
    margin-top: 30px;
    padding: 30px 24px;
    border-top: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.celm-campaigns-section .celm-section-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.celm-campaigns-section .celm-section-title .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.celm-campaign-limit-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.celm-campaign-limit-info p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    line-height: 1.6;
}

.celm-campaign-limit-info strong {
    font-weight: 700;
    font-size: 16px;
}

.celm-campaign-actions-frontend {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.celm-campaign-actions-frontend .celm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.celm-campaign-actions-frontend .celm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.celm-campaign-actions-frontend .celm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.celm-campaign-actions-frontend .celm-btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.celm-campaign-actions-frontend .celm-btn-secondary:hover {
    background: #667eea;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.celm-campaign-actions-frontend .celm-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-btn-tertiary {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.celm-btn-tertiary .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-btn-tertiary:hover {
    background: #e5e7eb;
    color: #111827;
}

.celm-campaigns-list {
    margin-top: 20px;
}

.celm-campaigns-list h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-campaign-selection-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    padding: 10px 12px;
    background: #eef2ff;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    color: #3730a3;
    font-size: 13px;
    font-weight: 500;
}

.celm-selection-clear {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.celm-selection-clear:hover {
    text-decoration: underline;
}

.celm-campaigns-extra {
    margin-top: 12px;
}

.celm-campaign-items-extra {
    margin-top: 12px;
}

.celm-campaign-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.celm-campaign-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    position: relative;
}

.celm-campaign-select {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.celm-campaign-select input {
    position: absolute;
    inset: 0;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.celm-campaign-select-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
}

.celm-campaign-select-indicator::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.celm-campaign-select input:checked + .celm-campaign-select-indicator {
    background: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.celm-campaign-select input:checked + .celm-campaign-select-indicator::after {
    opacity: 1;
}

.celm-campaign-item.celm-selected {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    background: #f8faff;
}

.celm-campaign-info {
    flex: 1;
    min-width: 0;
}

.celm-campaign-action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.celm-campaign-btn-icon {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.celm-campaign-btn-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.celm-campaign-btn-icon:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.celm-btn-stop {
    color: #dc2626;
}

.celm-btn-stop:hover {
    background: #fee2e2;
    color: #dc2626;
}

.celm-btn-resume {
    color: #16a34a;
}

.celm-btn-resume:hover {
    background: #dcfce7;
    color: #16a34a;
}

.celm-btn-stats {
    color: #2563eb;
}

.celm-btn-stats:hover {
    background: #dbeafe;
    color: #2563eb;
}

.celm-btn-delete {
    color: #dc2626;
}

.celm-btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.celm-campaign-info {
    flex: 1;
    min-width: 0;
}

.celm-campaign-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transform: translateX(4px);
}

.celm-campaign-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.celm-campaign-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

/* Stats Modal */
.celm-stats-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.celm-stats-modal-overlay[style*="display: block"],
.celm-stats-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.celm-stats-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

.celm-stats-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.celm-stats-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.celm-stats-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.celm-stats-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.celm-stats-modal-body {
    padding: 24px;
}

.celm-stats-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.celm-stats-loading .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.celm-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.celm-stat-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.celm-stat-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.celm-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.celm-stats-campaign-list {
    margin-top: 24px;
}

.celm-stats-campaign-list h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.celm-stats-campaign-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
}

.celm-stats-campaign-name {
    font-weight: 500;
    color: #111827;
}

.celm-stats-campaign-count {
    font-weight: 600;
    color: #667eea;
}

.celm-stats-campaign-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.celm-stats-campaign-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

.celm-stats-urls-section {
    margin-top: 24px;
}

.celm-stats-urls-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.celm-stats-urls-list {
    max-height: 300px;
    overflow-y: auto;
}

.celm-stats-url-item {
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.celm-stats-url-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.celm-stats-url-link {
    margin-bottom: 8px;
}

.celm-stats-url-link a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    word-break: break-all;
}

.celm-stats-url-link a:hover {
    text-decoration: underline;
}

.celm-stats-url-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6b7280;
}

.celm-stats-url-count {
    font-weight: 600;
    color: #667eea;
}

.celm-stats-no-urls {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.celm-stats-no-urls p {
    margin: 0;
}

.celm-campaign-menu-wrapper {
    position: relative;
    display: inline-block;
}

.celm-btn-campaign-menu {
    position: relative;
}

.celm-menu-arrow {
    font-size: 12px !important;
    width: 12px !important;
    height: 12px !important;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.celm-btn-campaign-menu.active .celm-menu-arrow {
    transform: rotate(180deg);
}

.celm-campaign-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 100;
    margin-top: 8px;
    overflow: hidden;
}

.celm-campaign-dropdown-menu .celm-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.celm-campaign-dropdown-menu .celm-menu-item:focus {
    outline: none;
    background: #f3f4f6;
}

.celm-campaign-dropdown-menu .celm-menu-item:last-child {
    border-bottom: none;
}

.celm-campaign-dropdown-menu .celm-menu-item:hover {
    background: #f9fafb;
    color: #667eea;
}

.celm-campaign-dropdown-menu .celm-menu-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-menu-item-stop,
.celm-menu-item-stop-item {
    color: #dc2626;
}

.celm-menu-item-stop:hover,
.celm-menu-item-stop-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.celm-menu-item-delete,
.celm-menu-item-delete-item {
    color: #dc2626;
}

.celm-menu-item-delete:hover,
.celm-menu-item-delete-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.celm-menu-item-resume,
.celm-menu-item-resume-item {
    color: #16a34a;
}

.celm-menu-item-resume:hover,
.celm-menu-item-resume-item:hover {
    background: #f0fdf4;
    color: #16a34a;
}

.celm-campaign-date {
    font-size: 12px;
    color: #6b7280;
}

.celm-state-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-state-active {
    background: #d1fae5;
    color: #065f46;
}

.celm-state-paused {
    background: #fef3c7;
    color: #92400e;
}

.celm-state-stopped {
    background: #fee2e2;
    color: #991b1b;
}

.celm-state-completed {
    background: #dbeafe;
    color: #1e40af;
}

/* Rebranding Section */
.celm-rebranding-section {
    margin-top: 30px;
    padding: 30px 24px;
    border-top: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.celm-rebranding-section .celm-section-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.celm-rebranding-section .celm-section-title .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.celm-rebranding-form-wrapper {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.celm-rebranding-form-frontend .celm-form-group {
    margin-bottom: 20px;
}

.celm-rebranding-form-frontend label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.celm-rebranding-form-frontend input[type="text"],
.celm-rebranding-form-frontend input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.celm-rebranding-form-frontend input[type="text"]:focus,
.celm-rebranding-form-frontend input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.celm-rebranding-form-frontend button[type="submit"] {
    margin-top: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.celm-rebranding-form-frontend button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.celm-rebranding-form-frontend button[type="submit"] .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.celm-rebranding-result {
    margin-top: 15px;
}

.celm-success-message,
.celm-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.celm-success-message {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.celm-error-message {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.celm-empty-message {
    color: #6b7280;
    font-style: italic;
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    margin-top: 10px;
}

/* Modal Styles */
.celm-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.celm-modal-overlay[style*="display: block"] {
    display: flex !important;
}

.celm-modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.celm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.celm-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.celm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.celm-modal-close:hover {
    color: #111827;
}

.celm-modal-body {
    padding: 20px;
}

.celm-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* Purple Create Campaign Button with Checkmark */
.celm-btn-create-campaign {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2) !important;
}

.celm-btn-create-campaign:hover {
    background: #6d28d9 !important;
    border-color: #6d28d9 !important;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.3) !important;
    transform: translateY(-1px);
}

.celm-btn-create-campaign:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2) !important;
}

.celm-btn-create-campaign:disabled {
    background: #a78bfa !important;
    border-color: #a78bfa !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.celm-checkmark-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.celm-campaign-form-frontend .celm-form-group {
    margin-bottom: 15px;
}

.celm-campaign-form-frontend label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #374151;
}

.celm-campaign-form-frontend input[type="text"],
.celm-campaign-form-frontend input[type="url"],
.celm-campaign-form-frontend select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.celm-campaign-form-frontend small {
    display: block;
    margin-top: 5px;
    color: #6b7280;
    font-size: 12px;
}

.celm-campaign-result {
    margin-top: 15px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESELLER DASHBOARD - COMPACT GRID
   =================================== */

.celm-reseller-dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    background: #f9fafb;
}

.celm-dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.celm-dashboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px 0;
}

.celm-header-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Grid Layout - 3 columns */
.celm-reseller-licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.celm-reseller-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.celm-reseller-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #8b5cf6;
    transform: translateY(-2px);
}

.celm-reseller-card.celm-card-expanded {
    grid-column: span 3;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
    border-color: #8b5cf6;
}

/* Compact Card View */
.celm-reseller-card-compact {
    padding: 20px;
}

.celm-card-header-compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.celm-extension-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.celm-extension-icon .dashicons {
    color: #ffffff;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.celm-extension-info {
    flex: 1;
    min-width: 0;
}

.celm-extension-name {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    word-wrap: break-word;
}

.celm-license-badge-small {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-badge-reseller-small {
    background: #ede9fe;
    color: #6d28d9;
}

/* Compact Stats */
.celm-compact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.celm-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
}

.celm-stat-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5cf6;
    flex-shrink: 0;
}

.celm-stat-icon.celm-icon-success {
    color: #10b981;
}

.celm-stat-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.celm-stat-text {
    flex: 1;
    min-width: 0;
}

.celm-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.celm-stat-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Compact Capacity */
.celm-compact-capacity {
    margin-bottom: 16px;
}

.celm-capacity-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.celm-capacity-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.celm-capacity-value {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.celm-progress-bar-compact {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.celm-progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* Expand Button */
.celm-expand-btn {
    width: 100%;
    padding: 10px 16px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.celm-expand-btn:hover {
    background: #8b5cf6;
    border-color: #8b5cf6;
    color: #ffffff;
}

.celm-expand-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Expanded Details */
.celm-card-details-expanded {
    border-top: 2px solid #e5e7eb;
    background: #f9fafb;
}

.celm-license-key-section {
    padding: 20px;
    background: #ffffff;
    border-bottom: 2px solid #e5e7eb;
}

.celm-key-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
}

.celm-license-key-display-full {
    display: flex;
    align-items: center;
    gap: 12px;
}

.celm-license-key-text-full {
    flex: 1;
    background: #f3f4f6;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #1f2937;
    word-break: break-all;
    border: 1px solid #e5e7eb;
}

.celm-copy-btn-full {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #8b5cf6;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.celm-copy-btn-full:hover {
    background: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.celm-copy-btn-full.celm-copied {
    background: #10b981;
}

.celm-copy-btn-full .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Responsive - Reseller Dashboard */
@media (max-width: 1200px) {
    .celm-reseller-licenses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .celm-reseller-card.celm-card-expanded {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .celm-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .celm-sublicense-form .celm-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .celm-form-actions,
    .celm-sublicense-form .celm-form-actions {
        grid-column: span 2;
    }
    
    .celm-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .celm-reseller-dashboard-wrapper {
        padding: 15px;
    }
    
    .celm-dashboard-header h2 {
        font-size: 24px;
    }
    
    .celm-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .celm-reseller-licenses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .celm-reseller-card.celm-card-expanded {
        grid-column: span 1;
    }
    
    .celm-form-grid {
        grid-template-columns: 1fr;
    }
    
    .celm-form-actions {
        grid-column: span 1;
    }
    
    .celm-sublicenses-table {
        font-size: 12px;
    }
    
    .celm-sublicenses-table th,
    .celm-sublicenses-table td {
        padding: 10px 8px;
    }
    
    .celm-license-key-cell {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .celm-license-key-display-full {
        flex-direction: column;
        align-items: stretch;
    }
    
    .celm-copy-btn-full {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .celm-user-licenses-wrapper {
        padding: 15px;
    }
    
    .celm-licenses-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .celm-licenses-header .button-primary {
        width: 100%;
        justify-content: center;
    }
    
    .celm-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .celm-licenses-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .celm-filter-tabs {
        flex-wrap: wrap;
    }
    
    .celm-search-box {
        max-width: 100%;
    }
    
    .celm-licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .celm-card-header {
        flex-wrap: wrap;
    }
    
    .celm-card-quick-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .celm-details-grid {
        grid-template-columns: 1fr;
    }
    
    .celm-card-actions {
        flex-direction: column;
    }
    
    .celm-action-btn {
        min-width: 100%;
    }
    
    .celm-sublicense-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .celm-sublicense-form .form-group {
        min-width: 100%;
    }
    
    .celm-sublicense-form .form-group.form-actions {
        width: 100%;
    }
    
    .celm-sublicense-form .celm-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .celm-sublicense-form .celm-form-actions {
        grid-column: span 1;
    }
    
    .celm-sublicense-form button[type="submit"],
    .celm-sublicense-form .celm-btn-generate {
        width: 100%;
    }
    
    .celm-table {
        font-size: 12px;
    }
    
    .celm-table th,
    .celm-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .celm-extension-name {
        font-size: 16px;
    }
    
    .celm-stat-value {
        font-size: 24px;
    }
    
    .celm-filter-btn {
        flex: 1;
        min-width: calc(50% - 4px);
    }
    
    .celm-campaign-actions-frontend {
        flex-direction: column;
    }
    
    .celm-campaign-actions-frontend .celm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .celm-campaign-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .celm-campaign-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .celm-rebranding-form-wrapper {
        padding: 16px;
    }
    
    .celm-campaign-limit-info {
        padding: 12px 16px;
    }
    
    .celm-campaign-limit-info p {
        font-size: 13px;
    }
}

/* Sub-license Action Buttons */
.celm-sublicense-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.celm-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.celm-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.celm-btn-small:active {
    transform: translateY(0);
}

.celm-btn-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.celm-btn-delete-sublicense {
    background: #dc2626;
    color: #fff;
}

.celm-btn-delete-sublicense:hover {
    background: #b91c1c;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.celm-btn-deactivate-sublicense {
    background: #f59e0b;
    color: #fff;
}

.celm-btn-deactivate-sublicense:hover {
    background: #d97706;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.celm-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
}

.celm-spin {
    animation: celm-spin 1s linear infinite;
}

@keyframes celm-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Berrycast Video Wrapper */
.celm-berrycast-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    min-height: 400px;
}

.celm-berrycast-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Video Embed Container */
.celm-video-embed {
    width: 100%;
    margin: 0 auto;
}

.celm-video-embed iframe,
.celm-video-embed video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.celm-video-frame {
    width: 100%;
    min-height: 400px;
}

/* Product Detail Page - License Display with Email and Sub-licenses */
.celm-product-license-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.celm-product-license-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.celm-product-license-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.celm-product-license-item.celm-sublicense-item {
    border-left: 4px solid #8b5cf6;
    background: #faf5ff;
    position: relative;
}

.celm-product-license-item.celm-sublicense-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #764ba2 100%);
    border-radius: 8px 0 0 8px;
}

/* Sub-license Header */
.celm-sublicense-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f3e8ff;
    border-radius: 6px;
    border: 1px solid #e9d5ff;
}

.celm-sublicense-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6b21a8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-sublicense-indicator .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #8b5cf6;
}

.celm-parent-license-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    flex: 1;
}

.celm-parent-license-info .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

.celm-license-key-display-full {
    margin-bottom: 12px;
}

.celm-license-key-text-full {
    display: inline-block;
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Monaco', 'Courier New', monospace;
    color: #374151;
    word-break: break-all;
}

.celm-product-license-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.celm-license-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-badge-reseller {
    background: #e9d5ff;
    color: #6b21a8;
}

.celm-badge-sublicense {
    background: #fef3c7;
    color: #92400e;
}

.celm-badge-sublicense-prominent {
    background: #f3e8ff !important;
    color: #6b21a8 !important;
    border: 1px solid #e9d5ff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.celm-badge-sublicense-prominent .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.celm-badge-freemium {
    background: #e0e7ff;
    color: #3730a3;
}

.celm-badge-giveaway {
    background: #fef3c7;
    color: #92400e;
}

.celm-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.celm-status-active {
    background: #d1fae5;
    color: #065f46;
}

.celm-status-inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.celm-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.celm-license-email {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #374151;
}

.celm-license-email .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #6b7280;
}

.celm-license-email a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.celm-license-email a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.celm-product-license-expiry {
    font-size: 12px;
    color: #6b7280;
}

/* Sub-licenses Section */
.celm-sublicenses-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.celm-sublicenses-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.celm-sublicenses-count {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.celm-sublicenses-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.celm-sublicense-item {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #8b5cf6;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.celm-sublicense-item:last-child {
    margin-bottom: 0;
}

.celm-sublicense-item .celm-license-key-display-full {
    margin-bottom: 8px;
}

.celm-sublicense-item .celm-product-license-meta {
    margin-top: 8px;
}

/* Berrycast Video Wrapper */
.celm-berrycast-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    min-height: 400px;
    width: 100%;
}

.celm-berrycast-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Video Embed Container */
.celm-video-embed {
    width: 100%;
    margin: 0 auto;
}

.celm-video-embed iframe,
.celm-video-embed video {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
}

.celm-video-frame {
    width: 100%;
    min-height: 400px;
}

.celm-video-fallback {
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
}

.celm-video-fallback p {
    margin-bottom: 15px;
    color: #6b7280;
}

