/* Setup Wizard — Full-Screen Experience */

#adminmenuwrap,
#adminmenuback,
#wpadminbar,
#wpfooter,
#screen-meta,
#screen-meta-links,
.notice:not(#wahrb-setup-notice),
.update-nag {
    display: none !important;
}

html.wp-toolbar {
    padding-top: 0 !important;
}

#wpcontent {
    margin-left: 0 !important;
}

#wpbody {
    padding-top: 0 !important;
}

#wpbody-content {
    float: none !important;
    padding-bottom: 0 !important;
    min-height: 100vh;
    background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 50%, #f1f5f9 100%);
}

.wahrb-setup-wrap,
.wahrb-setup-wrap * {
    box-sizing: border-box;
}

.wahrb-setup-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
}

.wahrb-setup-wrap a {
    text-decoration: none;
}

.wahrb-setup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.wahrb-logo-icon {
    font-size: 28px;
}

.wahrb-logo-text {
    font-size: 18px;
    font-weight: 700;
}

.wahrb-setup-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 42px;
}

.wahrb-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wahrb-step-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}

.wahrb-step-item.active .wahrb-step-dot {
    border-color: #f05025;
    background: #f05025;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(240, 80, 37, 0.16);
}

.wahrb-step-item.done .wahrb-step-dot {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
}

.wahrb-step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 700;
}

.wahrb-step-item.active .wahrb-step-label {
    color: #f05025;
}

.wahrb-step-item.done .wahrb-step-label {
    color: #059669;
}

.wahrb-step-connector {
    width: 64px;
    height: 2px;
    margin: 20px 10px 0;
    border-radius: 2px;
    background: #e2e8f0;
}

.wahrb-step-connector.done {
    background: #059669;
}

.wahrb-setup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06), 0 10px 30px rgba(15, 23, 42, 0.05);
}

.wahrb-setup-card-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 8px;
}

.wahrb-setup-card h2 {
    margin: 0 0 8px;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.wahrb-setup-desc {
    margin: 0 0 28px;
    text-align: center;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.wahrb-setup-subtitle {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.wahrb-setup-card-welcome {
    overflow: hidden;
}

.wahrb-setup-card-header-gradient {
    padding: 50px 40px 38px;
    text-align: center;
    background: linear-gradient(135deg, #f05025 0%, #e8401b 50%, #d63315 100%);
    position: relative;
}

.wahrb-setup-card-header-gradient::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 36px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
}

.wahrb-setup-card-header-gradient .wahrb-setup-card-icon {
    margin-bottom: 12px;
    font-size: 56px;
    filter: brightness(10) saturate(0);
}

.wahrb-setup-card-header-gradient h2 {
    color: #ffffff;
}

.wahrb-setup-card-body {
    padding: 36px 40px 40px;
}

.wahrb-setup-mode-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: 14px;
}

.wahrb-setup-mode-badge.dokan {
    border: 1px solid #c4b5fd;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
}

.wahrb-setup-mode-badge.solo {
    border: 1px solid #6ee7b7;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.wahrb-mode-icon {
    font-size: 34px;
}

.wahrb-mode-text strong {
    display: block;
    margin-bottom: 2px;
}

.wahrb-mode-text span {
    color: #475569;
}

.wahrb-setup-timeline h3 {
    margin: 0 0 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.wahrb-timeline-items {
    position: relative;
}

.wahrb-timeline-items::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: #e2e8f0;
}

.wahrb-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}

.wahrb-timeline-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fed7aa;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.wahrb-timeline-marker span {
    color: #f05025;
    font-weight: 800;
}

.wahrb-timeline-content {
    padding-top: 4px;
}

.wahrb-timeline-content strong {
    display: block;
    margin-bottom: 2px;
}

.wahrb-timeline-content span {
    color: #64748b;
}

.wahrb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: all 0.2s ease;
}

.wahrb-btn-primary {
    background: #f05025;
    color: #ffffff !important;
}

.wahrb-btn-primary:hover {
    background: #d93e15;
    transform: translateY(-1px);
}

.wahrb-btn-outline {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #475569 !important;
}

.wahrb-btn-outline:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.wahrb-btn-ghost {
    background: transparent;
    color: #64748b !important;
    font-size: 13px;
}

.wahrb-btn-lg {
    padding: 13px 30px;
    font-size: 15px;
    border-radius: 12px;
}

.wahrb-setup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 32px;
}

.wahrb-setup-actions:has(.wahrb-btn-ghost) {
    flex-direction: column;
}

.wahrb-setup-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.wahrb-setup-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 14px 18px;
    background: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wahrb-setup-cat-card:hover {
    border-color: #fda68a;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.wahrb-setup-cat-card.checked {
    border-color: #f05025;
    background: #fff7ed;
    box-shadow: 0 0 0 3px rgba(240, 80, 37, 0.08);
}

.wahrb-setup-cat-card input[type=checkbox] {
    position: absolute;
    opacity: 0;
}

.wahrb-cat-check-circle {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #ffffff;
}

.wahrb-setup-cat-card.checked .wahrb-cat-check-circle {
    border-color: #f05025;
    background: #f05025;
    color: #ffffff;
}

.wahrb-cat-emoji {
    font-size: 36px;
}

.wahrb-cat-desc {
    min-height: 30px;
    color: #64748b;
    font-size: 11px;
}

.wahrb-cat-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.wahrb-cat-mode-tag {
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

.wahrb-setup-fieldset {
    margin: 0 0 24px;
    padding: 24px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fafbfc;
}

.wahrb-setup-fieldset legend {
    font-size: 15px;
    font-weight: 700;
    padding: 0 8px;
}

.wahrb-setup-fieldset-hint {
    margin: -4px 0 18px;
    font-size: 13px;
    color: #94a3b8;
}

.wahrb-setup-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
}

.wahrb-setup-field {
    flex: 1;
    min-width: 180px;
}

.wahrb-setup-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.wahrb-setup-field input[type=number] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    background: #ffffff;
}

.wahrb-setup-field input[type=number]:focus {
    border-color: #f05025;
    box-shadow: 0 0 0 3px rgba(240, 80, 37, 0.1);
    outline: none;
}

.wahrb-field-hint {
    margin-top: 4px;
    font-size: 11px;
    color: #94a3b8;
}

.wahrb-setup-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.wahrb-setup-toggle input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #f05025;
}

.wahrb-setup-card > .wahrb-setup-card-icon,
.wahrb-setup-card > h2,
.wahrb-setup-card > .wahrb-setup-desc,
.wahrb-setup-card > .wahrb-setup-categories,
.wahrb-setup-card > .wahrb-setup-fieldset,
.wahrb-setup-card > .wahrb-setup-actions {
    margin-left: 40px;
    margin-right: 40px;
}

.wahrb-setup-card > .wahrb-setup-card-icon {
    padding-top: 40px;
}

.wahrb-setup-card > .wahrb-setup-actions {
    padding-bottom: 40px;
}

.wahrb-setup-card-success {
    border-color: #bbf7d0;
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 50%);
}

.wahrb-setup-card-success h2,
.wahrb-setup-card-success .wahrb-setup-desc {
    margin-left: 40px;
    margin-right: 40px;
}

.wahrb-setup-success-anim {
    text-align: center;
    margin-bottom: 14px;
    padding-top: 42px;
}

.wahrb-success-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    box-shadow: 0 4px 18px rgba(5, 150, 105, 0.18);
    animation: wahrb-pop 0.45s ease-out;
}

@keyframes wahrb-pop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.wahrb-setup-next-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 40px 40px;
}

.wahrb-setup-next-card {
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    background: #ffffff;
    color: #1e293b !important;
    transition: all 0.2s ease;
}

.wahrb-setup-next-card:hover {
    border-color: #f05025;
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.wahrb-setup-next-card.wahrb-next-primary {
    border-color: #f05025;
    background: #fff7ed;
}

.wahrb-next-icon {
    font-size: 28px;
}

.wahrb-next-arrow {
    margin-left: auto;
    color: #cbd5e1;
}

.wahrb-setup-next-card:hover .wahrb-next-arrow {
    color: #f05025;
}

.wahrb-setup-footer {
    margin-top: 28px;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
}

@media (max-width: 700px) {
    .wahrb-setup-wrap {
        padding: 24px 12px 16px;
    }

    .wahrb-setup-card {
        border-radius: 16px;
    }

    .wahrb-setup-card-header-gradient {
        padding: 32px 24px 28px;
    }

    .wahrb-setup-card-body {
        padding: 24px 20px 28px;
    }

    .wahrb-setup-card > .wahrb-setup-card-icon,
    .wahrb-setup-card > h2,
    .wahrb-setup-card > .wahrb-setup-desc,
    .wahrb-setup-card > .wahrb-setup-categories,
    .wahrb-setup-card > .wahrb-setup-fieldset,
    .wahrb-setup-card > .wahrb-setup-actions {
        margin-left: 20px;
        margin-right: 20px;
    }

    .wahrb-setup-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .wahrb-setup-field-row {
        flex-direction: column;
        gap: 12px;
    }

    .wahrb-step-connector {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .wahrb-setup-categories {
        grid-template-columns: 1fr;
    }

    .wahrb-setup-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wahrb-step-connector {
        width: 18px;
    }

    .wahrb-setup-next-card {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}
