/* WooCommerce Affiliate Engine - Frontend Hub Styles */

.woc-hub-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    max-width: 960px;
    margin: 0 auto;
}

.woc-hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.woc-hub-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    letter-spacing: -0.02em;
}

.woc-hub-subtext {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.woc-badge-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.woc-badge-status.approved {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Stat Cards Grid */
.woc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.woc-stat-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.woc-stat-box.woc-stat-highlight {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.woc-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woc-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 6px 0;
    line-height: 1.1;
}

.woc-stat-box.woc-stat-highlight .woc-stat-value {
    color: #059669;
}

.woc-stat-footer {
    font-size: 12px;
    color: #94a3b8;
}

/* 2-column Action Grid */
.woc-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
}

.woc-action-grid > .woc-card-modern {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 768px) {
    .woc-action-grid {
        grid-template-columns: 1fr;
    }
}

/* Modern Card */
.woc-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.woc-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.woc-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* Copy Box */
.woc-copy-box {
    display: flex;
    gap: 8px;
}

.woc-copy-input {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.woc-btn-primary {
    background: #213c92 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #213c92 !important;
    border-radius: 8px !important;
    padding: 13px 25px !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: none !important;
}

.woc-btn-primary:hover {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

.woc-btn-primary:active {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

.woc-btn-secondary {
    background: #213c92 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: 2px solid #213c92 !important;
    border-radius: 8px !important;
    padding: 13px 25px !important;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    box-shadow: none !important;
}

.woc-btn-secondary:hover {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

.woc-btn-secondary:active {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

.woc-btn-emerald {
    background: #059669;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.woc-btn-emerald:hover:not(:disabled) {
    background: #047857;
}

.woc-payout-threshold-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 6px;
}

.woc-progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.woc-progress-bar-fill {
    height: 100%;
    background: #059669;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Tabs */
.woc-hub-tabs {
    display: flex;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 20px;
    gap: 8px;
    overflow-x: auto;
}

.woc-hub-tab-btn {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: none !important;
}

.woc-hub-tab-btn:hover {
    background: transparent !important;
    color: #213c92 !important;
}

.woc-hub-tab-btn.active {
    color: #0f172a !important;
    border-bottom-color: #213c92 !important;
}

.woc-hub-tab-content {
    display: none;
}

.woc-hub-tab-content.active {
    display: block;
}

/* Tables */
.woc-table-responsive {
    overflow-x: auto;
}

.woc-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.woc-frontend-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
}

.woc-frontend-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.woc-btn-sm {
    background: #213c92 !important;
    background-image: none !important;
    border: 2px solid #213c92 !important;
    border-radius: 8px !important;
    padding: 13px 25px !important;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff !important;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: none !important;
}

.woc-btn-sm:hover {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

.woc-btn-sm:active {
    background: #ffffff !important;
    color: #213c92 !important;
    border-color: #213c92 !important;
}

/* Forms */
.woc-field-group {
    margin-bottom: 16px;
}

.woc-field-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #0f172a;
}

.woc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .woc-form-row {
        grid-template-columns: 1fr;
    }
}

.woc-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
}

.woc-input:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.woc-app-hero {
    text-align: center;
    padding-bottom: 10px;
}

.woc-app-hero-badge {
    display: inline-flex;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Modal Backdrops */
.woc-fe-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
}

.woc-fe-modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: wocFeModalIn 0.2s ease-out;
}

@keyframes wocFeModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.woc-fe-modal-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.woc-fe-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.woc-fe-modal-close, .woc-fe-lightbox-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
}

.woc-fe-modal-body {
    padding: 20px;
}

.woc-fe-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.woc-fe-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.woc-fe-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.woc-fe-lightbox-caption {
    color: #ffffff;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.woc-fe-lightbox-close {
    position: absolute;
    top: -36px;
    right: 0;
    color: #ffffff;
    font-size: 28px;
}


/* Custom CSS */

.woc-copy-box {
	margin-top: 40px!important;
}