:root {
    --wtm-primary: #6366f1;
    /* Indigo 500 */
    --wtm-primary-hover: #4f46e5;
    /* Indigo 600 */
    --wtm-bg: #f8fafc;
    /* Slate 50 */
    --wtm-surface: #ffffff;
    --wtm-text-main: #1e293b;
    /* Slate 800 */
    --wtm-text-secondary: #64748b;
    /* Slate 500 */
    --wtm-border: #e2e8f0;
    /* Slate 200 */
    --wtm-success: #10b981;
    --wtm-warning: #f59e0b;
    --wtm-danger: #ef4444;
    --wtm-radius-lg: 16px;
    --wtm-radius-md: 12px;
    --wtm-radius-sm: 8px;
    --wtm-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --wtm-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --wtm-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --wtm-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --wtm-font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Reset/Base for WTM Wrapper */
.wtm-tabs-wrapper {
    margin-top: 32px;
    font-family: var(--wtm-font-sans);
    color: var(--wtm-text-main);
}

/* Modern Pill Tabs */
.wtm-tab-nav {
    display: inline-flex;
    list-style: none;
    margin: 0 0 32px 0;
    padding: 6px;
    background: #e2e8f0;
    /* Slate 200 background for the pill container */
    border-radius: 9999px;
    /* Fully rounded pills */
    border: none;
    gap: 4px;
}

.wtm-tab-nav li {
    margin: 0;
    padding: 10px 24px;
    cursor: pointer;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--wtm-text-secondary);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wtm-tab-nav li:hover {
    color: var(--wtm-text-main);
    background: rgba(255, 255, 255, 0.5);
}

.wtm-tab-nav li.active {
    background: var(--wtm-surface);
    color: var(--wtm-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Tab Content Area - Clean & Transparent */
.wtm-tab-content {
    display: none;
    padding: 0;
    background: transparent;
    border: none;
    min-height: 400px;
    animation: fadeIn 0.3s ease-out;
}

.wtm-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tools Grid */
.wtm-tools-hub-sections.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 0;
}

/* Premium Card Design */
.wtm-tools-section.card {
    background: var(--wtm-surface);
    border: 1px solid var(--wtm-border);
    border-radius: var(--wtm-radius-lg);
    padding: 32px;
    box-shadow: var(--wtm-shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.wtm-tools-section.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wtm-shadow-lg);
    border-color: var(--wtm-primary);
}

/* Card Icon */
.wtm-tools-card-icon {
    font-size: 40px;
    color: var(--wtm-primary);
    margin-bottom: 20px;
    display: inline-block;
    padding: 12px;
    background: #e0e7ff;
    /* Indigo 100 */
    border-radius: 12px;
    width: auto;
    height: auto;
    line-height: 1;
}

.wtm-tools-section.card:hover .wtm-tools-card-icon {
    background: var(--wtm-primary);
    color: white;
    transform: rotate(-5deg);
}

/* Card Typography */
.wtm-tools-section.card h2.title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--wtm-text-main);
    letter-spacing: -0.025em;
}

.wtm-tools-section.card p {
    margin: 0 0 24px 0;
    color: var(--wtm-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
}

/* Buttons */
.wtm-btn-secondary,
.wtm-tools-section.card .button {
    background: var(--wtm-surface);
    border: 1px solid var(--wtm-border) !important;
    color: var(--wtm-text-main) !important;
    padding: 10px 20px !important;
    border-radius: var(--wtm-radius-md) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--wtm-shadow-sm) !important;
    margin-top: auto;
    /* Push to bottom */
}

.wtm-btn-secondary:hover,
.wtm-tools-section.card .button:hover {
    background: var(--wtm-primary) !important;
    border-color: var(--wtm-primary) !important;
    color: white !important;
    box-shadow: var(--wtm-shadow-md) !important;
    transform: translateY(-1px);
}

.wtm-btn-secondary .dashicons,
.wtm-tools-section.card .button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: inherit;
}

/* Coming Soon List */
.coming-soon {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.coming-soon li {
    padding: 10px 0;
    color: var(--wtm-text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--wtm-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.coming-soon li:last-child {
    border-bottom: none;
}

.coming-soon li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--wtm-warning);
    border-radius: 50%;
}

/* Upgrade Banner - Modern Glassmorphism */
.wtm-upgrade-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 24px 32px;
    border-radius: var(--wtm-radius-lg);
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    gap: 20px;
}

.wtm-upgrade-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.wtm-upgrade-content {
    z-index: 1;
    flex: 1;
}

.wtm-upgrade-banner h3 {
    margin: 0 0 8px 0;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.wtm-upgrade-banner p {
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}

.wtm-upgrade-link {
    background: white !important;
    color: #4f46e5 !important;
    padding: 12px 28px !important;
    border-radius: 9999px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    z-index: 1;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wtm-upgrade-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    color: #4338ca !important;
}

/* Comparison Table */
.wp-team-comparison-wrapper {
    background: var(--wtm-surface);
    border-radius: var(--wtm-radius-lg);
    box-shadow: var(--wtm-shadow-sm);
    overflow: hidden;
    border: 1px solid var(--wtm-border);
}

.wp-team-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.wp-team-comparison-table th {
    background: #f8fafc;
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: var(--wtm-text-main);
    border-bottom: 2px solid var(--wtm-border);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.wp-team-comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--wtm-border);
    color: var(--wtm-text-secondary);
}

.wp-team-comparison-table tr:last-child td {
    border-bottom: none;
}

.wp-team-comparison-table tr:hover td {
    background: #f8fafc;
}

/* Footer */
.wtm-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--wtm-border);
    text-align: center;
    color: var(--wtm-text-secondary);
    font-size: 14px;
}

.wtm-footer a {
    color: var(--wtm-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Feature Grid (Recommended & Getting Started) */
/* Feature Grid (Recommended & Getting Started) */
.wtm-feature-grid,
.wp-team-doc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.wtm-feature-box {
    background: var(--wtm-surface);
    border: 1px solid var(--wtm-border);
    border-radius: var(--wtm-radius-lg);
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-shadow: var(--wtm-shadow-sm);
    position: relative;
    overflow: hidden;
}

.wtm-feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--wtm-shadow-lg);
    border-color: var(--wtm-primary);
}

.wtm-feature-icon {
    font-size: 32px;
    margin-bottom: 20px;
    display: flex !important;
    /* Changed from inline-flex to flex */
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    background: #f1f5f9 !important;
    /* Slate 100 */
    border-radius: 16px !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.wtm-feature-box:hover .wtm-feature-icon {
    background: #e0e7ff !important;
    /* Indigo 100 */
    transform: scale(1.1) rotate(-5deg);
}

.wtm-feature-box h4 {
    margin: 0 0 12px 0;
    color: var(--wtm-text-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.wtm-feature-box p {
    margin: 0 !important;
    /* Remove all margins */
    color: var(--wtm-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    /* Pushes button to bottom */
    padding-bottom: 24px;
    /* Use padding instead of margin for spacing */
}

.wtm-feature-box .button-secondary {
    background: #ffffff !important;
    /* Force white background */
    border: 1px solid var(--wtm-border) !important;
    color: var(--wtm-text-main) !important;
    /* Force dark text */
    padding: 10px 20px !important;
    border-radius: var(--wtm-radius-md) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--wtm-shadow-sm) !important;
    margin-top: auto;
    /* Ensure button stays at bottom */
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex !important;
    text-decoration: none !important;
    height: auto !important;
    line-height: normal !important;
    min-height: 40px !important;
    align-items: center !important;
}

.wtm-feature-box .button-secondary:hover {
    background: var(--wtm-primary) !important;
    border-color: var(--wtm-primary) !important;
    color: white !important;
    box-shadow: var(--wtm-shadow-md) !important;
    transform: translateY(-1px);
}

.wtm-feature-box .button-secondary:focus {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--wtm-primary) !important;
    outline: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .wtm-tab-nav {
        flex-direction: column;
        width: 100%;
        border-radius: var(--wtm-radius-md);
    }

    .wtm-tab-nav li {
        width: 100%;
        justify-content: center;
    }

    .wtm-tools-hub-sections.grid {
        grid-template-columns: 1fr;
    }
}