/* Hide WordPress theme page header / title on this page */
.page-header,
.entry-title,
.page-title,
.post-title,
.post-header {
    display: none !important;
}


.hp-add-tool {
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #0f172a;
    background-color: #ffffff;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px 60px;
    box-sizing: border-box;
}

.hp-add-tool * {
    box-sizing: border-box;
}

/* Hero Banner */
.hp-add-tool-hero {
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    padding: 60px 20px 50px;
    border-radius: 0;
    margin-bottom: 40px;
    box-sizing: border-box;
}
.hp-add-tool-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
}
.hp-add-tool-hero p {
    font-size: 15px;
    color: #cbd5e1;
    margin: 0;
}
.hp-add-tool-hero a.hp-submit-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    color: #facc15;
    text-decoration: underline;
}

/* Stepper */
.hp-add-tool-stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.hp-add-tool-step {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}
.hp-add-tool-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.hp-add-tool-step.active .step-num,
.hp-add-tool-step.completed .step-num {
    background: #1e3a5f;
    color: #ffffff;
}
.hp-add-tool-step .step-label {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.3s ease;
}
.hp-add-tool-step.active .step-label {
    color: #0f172a;
    font-weight: 600;
}

/* Form Card */
.hp-add-tool-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 36px 40px;
    min-height: 350px;
    margin-bottom: 20px;
}

/* Form Fields */
.hp-add-tool-field {
    margin-bottom: 24px;
}
.hp-add-tool-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.hp-add-tool-field label .required {
    color: #ef4444;
    margin-left: 2px;
}
.hp-add-tool-field input[type="text"],
.hp-add-tool-field input[type="url"],
.hp-add-tool-field input[type="email"],
.hp-add-tool-field input[type="tel"],
.hp-add-tool-field select,
.hp-add-tool-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.hp-add-tool-field input::placeholder,
.hp-add-tool-field textarea::placeholder {
    color: #94a3b8;
}
.hp-add-tool-field input:focus,
.hp-add-tool-field select:focus,
.hp-add-tool-field textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}
.hp-add-tool-field textarea {
    min-height: 110px;
    resize: vertical;
}
.hp-add-tool-field .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Image Upload Dropzone */
.hp-add-tool-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}
.hp-add-tool-dropzone:hover {
    border-color: #1e3a5f;
    background: #f8fafc;
}
.hp-add-tool-dropzone .dz-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.hp-add-tool-dropzone .dz-text {
    font-size: 14px;
    color: #64748b;
}
.hp-add-tool-dropzone .dz-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.hp-add-tool-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.hp-add-tool-dropzone .preview-images {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.hp-add-tool-dropzone .preview-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Pricing Step Fields */
.hp-pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 10px;
    margin-bottom: 30px;
    width: 100%;
}
@media (max-width: 900px) {
    .hp-pricing-cards {
        grid-template-columns: 1fr;
    }
}
.hp-pricing-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
}
.hp-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.hp-pricing-card.selected {
    border-color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.hp-pricing-card.pro-card {
    background: #eef2ff;
    border: 2px solid #3b82f6;
}
.hp-pricing-card.pro-card.selected {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
}
.hp-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #facc15;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}
.hp-plan-header {
    margin-bottom: 20px;
}
.hp-plan-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.hp-plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}
.hp-currency {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}
.hp-amount {
    font-size: 48px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}
.hp-period {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}
.hp-plan-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    min-height: 40px;
}
.hp-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hp-plan-features li {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.hp-feature-check {
    font-weight: 700;
    flex-shrink: 0;
}
.hp-feature-check.blue {
    color: #3b82f6;
}
.hp-feature-check.yellow {
    color: #eab308;
}
.hp-plan-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
.hp-btn-outline {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f172a;
}
.hp-btn-outline:hover {
    background: #f8fafc;
}
.hp-pricing-card.selected .hp-btn-outline {
    background: #0f172a;
    color: #ffffff;
}
.hp-btn-solid {
    background: #facc15;
    color: #0f172a;
    border: none;
}
.hp-btn-solid:hover {
    background: #eab308;
}

/* Buttons */
.hp-add-tool-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}
.hp-add-tool-btn {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.hp-add-tool-btn-back {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #d1d5db;
}
.hp-add-tool-btn-back:hover {
    background: #f1f5f9;
}
.hp-add-tool-btn-next,
.hp-add-tool-btn-submit {
    background: #facc15;
    color: #1e293b;
    font-weight: 700;
}
.hp-add-tool-btn-next:hover,
.hp-add-tool-btn-submit:hover {
    background: #eab308;
}
.hp-add-tool-btn-submit {
    padding: 14px 40px;
    font-size: 15px;
}

/* Success / Error Messages */
.hp-add-tool-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}
.hp-add-tool-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}
.hp-add-tool-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block;
}
.hp-add-tool-field .field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Step 3 empty state */
.hp-add-tool-empty-note {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .hp-add-tool-card {
        padding: 24px 20px;
    }
    .hp-add-tool-field .field-row {
        grid-template-columns: 1fr;
    }
    .hp-add-tool-stepper {
        gap: 10px;
    }
    .hp-add-tool-step .step-label {
        font-size: 12px;
    }
    .hp-add-tool-hero h1 {
        font-size: 26px;
    }
}

/* Image Upload Realtime Styles */
.hp-upload-preview-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}
.hp-upload-preview-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.hp-upload-spinner {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.hp-upload-spinner::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #1e3a5f;
    border-radius: 50%;
    animation: hp-spin 0.6s linear infinite;
}
@keyframes hp-spin {
    to { transform: rotate(360deg); }
}
.hp-upload-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Listing Preview Redesign */
.hp-preview-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 36px;
}
.hp-preview-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-preview-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.hp-preview-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hp-preview-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    padding: 24px;
    color: #ffffff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.hp-preview-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}
.hp-preview-badge-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.hp-preview-badge {
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hp-preview-badge-category {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.hp-preview-badge-region {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}
.hp-preview-badge-plan {
    background: #facc15;
    color: #0f172a;
}
.hp-preview-badge-trial {
    background: #10b981;
    color: #ffffff;
}
.hp-preview-company {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #ffffff;
}
.hp-preview-website {
    font-size: 13px;
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}
.hp-preview-website:hover {
    color: #ffffff;
}
.hp-preview-body {
    padding: 28px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
}
@media (max-width: 768px) {
    .hp-preview-body {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
.hp-preview-info-sec {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hp-preview-info-sec h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hp-preview-desc-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}
.hp-preview-desc-short {
    font-style: italic;
    font-weight: 500;
    color: #334155;
    border-left: 3px solid #1e3a5f;
    padding-left: 12px;
    margin-bottom: 12px;
}
.hp-preview-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hp-preview-detail-item {
    display: flex;
    font-size: 13px;
    line-height: 1.4;
}
.hp-preview-detail-label {
    width: 110px;
    font-weight: 600;
    color: #64748b;
    flex-shrink: 0;
}
.hp-preview-detail-value {
    color: #1e293b;
    word-break: break-all;
}

/* Gallery Section */
.hp-preview-gallery {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}
.hp-preview-gallery-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.hp-preview-gallery-grid img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.hp-preview-gallery-grid img:hover {
    transform: scale(1.05);
    border-color: #1e3a5f;
}

/* Verification Code Panel Redesign */
.hp-verification-card {
    text-align: center;
    max-width: 540px !important;
    margin: 0 auto;
    padding: 48px 40px !important;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.hp-verification-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    color: #1e3a5f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    box-shadow: 0 8px 16px -4px rgba(30, 58, 95, 0.1);
}
.hp-verification-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    margin-top: 0;
}
.hp-verification-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 30px;
    margin-top: 0;
}
.hp-verification-code-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.hp-verification-code-container input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.hp-verification-code-container input:focus {
    border-color: #1e3a5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
    outline: none;
}
.hp-verification-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.hp-verification-actions .hp-add-tool-btn {
    width: 100%;
}
