/* ============================================================
   SMM.chat — Place Order Modern Dark Wizard v1.0
   Namespaced .smm-po-*
   Matches Services Hub dark theme.
   ============================================================ */

.smm-po-wizard {
    padding: 20px 16px 40px;
    max-width: 960px;
    margin: 0 auto;
    color: #e8ebf7;
}

/* ── Header ── */
.smm-po-header {
    text-align: center;
    padding: 12px 0 8px;
}
.smm-po-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.smm-po-subtitle {
    font-size: 0.85rem;
    color: #8b92b7;
}

/* ── Progress Bar ── */
.smm-po-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 20px 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.smm-po-step-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #5e6487;
    cursor: pointer;
    transition: color .2s;
    white-space: nowrap;
}
.smm-po-step-indicator.active { color: #a29bfe; font-weight: 700; }
.smm-po-step-indicator.done { color: #00cec9; }
.smm-po-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700;
    background: rgba(99,112,165,0.1);
    color: #5e6487;
    flex-shrink: 0;
}
.smm-po-step-indicator.active .smm-po-step-num { background: #6c5ce7; color: #fff; }
.smm-po-step-indicator.done .smm-po-step-num { background: rgba(0,206,201,0.15); color: #00cec9; }
.smm-po-step-arrow {
    margin: 0 6px;
    color: #3a3f5c;
    font-size: 0.7rem;
    user-select: none;
}

/* ── Step Container ── */
.smm-po-step {
    display: none;
}
.smm-po-step.active {
    display: block;
}

/* ── Glass Panel ── */
.smm-po-panel {
    background: rgba(24,30,51,0.5);
    border: 1px solid rgba(99,112,165,0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}
.smm-po-panel h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #e8ebf7;
}
.smm-po-panel p {
    font-size: 0.85rem;
    color: #8b92b7;
    margin: 0 0 14px;
}

/* ── Platform Grid (reuses .smm-services-grid style) ── */
.smm-po-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* ── Platform Card (compact for wizard) ── */
.smm-po-platform-card {
    display: block;
    text-decoration: none !important;
    background: rgba(24,30,51,0.5);
    border: 1px solid rgba(99,112,165,0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.smm-po-platform-card:hover {
    border-color: rgba(108,92,231,0.3);
    transform: translateY(-2px);
}
.smm-po-platform-card.selected {
    border-color: #6c5ce7;
    box-shadow: 0 0 16px rgba(108,92,231,0.12);
}
.smm-po-platform-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.8rem; color: #fff;
    background: var(--platform-accent, #6c5ce7);
    margin-bottom: 10px;
}
.smm-po-platform-name {
    font-size: 0.9rem; font-weight: 600; color: #e8ebf7;
    text-transform: capitalize; margin-bottom: 4px;
}
.smm-po-platform-count {
    font-size: 0.72rem; color: #5e6487;
}

/* ── Service Grid ── */
.smm-po-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
}
.smm-po-service-card {
    background: rgba(24,30,51,0.4);
    border: 1px solid rgba(99,112,165,0.07);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}
.smm-po-service-card:hover {
    border-color: rgba(108,92,231,0.25);
    transform: translateY(-1px);
}
.smm-po-service-card.selected {
    border-color: #6c5ce7;
}
.smm-po-service-name {
    font-size: 0.84rem; font-weight: 600; color: #e8ebf7;
    margin-bottom: 6px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.smm-po-service-meta {
    font-size: 0.72rem; color: #8b92b7;
    display: flex; gap: 10px; margin-bottom: 6px;
}
.smm-po-service-price {
    font-size: 0.85rem; font-weight: 700; color: #00cec9;
}

/* ── Search ── */
.smm-po-search {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(99,112,165,0.15);
    background: #0a0e1a;
    color: #e8ebf7;
    font-size: 0.85rem;
    outline: none;
    margin-bottom: 14px;
}
.smm-po-search:focus { border-color: #6c5ce7; }
.smm-po-search::placeholder { color: #5e6487; }

/* ── Back Button ── */
.smm-po-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(99,112,165,0.15);
    color: #8b92b7;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    margin-bottom: 14px;
    transition: color .2s, border-color .2s;
}
.smm-po-back:hover { color: #e8ebf7; border-color: rgba(108,92,231,0.3); }

/* ── Navigation Buttons ── */
.smm-po-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}
.smm-po-btn {
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .2s, opacity .2s;
}
.smm-po-btn-primary {
    background: #6c5ce7;
    color: #fff;
}
.smm-po-btn-primary:hover { background: #5a4bd1; }
.smm-po-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.smm-po-btn-secondary {
    background: transparent;
    border: 1px solid rgba(99,112,165,0.2);
    color: #8b92b7;
}
.smm-po-btn-secondary:hover { color: #e8ebf7; border-color: rgba(108,92,231,0.3); }

/* ── Step 3: Selected Service ── */
.smm-po-selected-service {
    background: rgba(108,92,231,0.06);
    border: 1px solid rgba(108,92,231,0.12);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.smm-po-selected-service h3 {
    font-size: 0.95rem; font-weight: 600; color: #e8ebf7;
    margin: 0 0 4px;
}
.smm-po-selected-service .smm-po-meta-row {
    font-size: 0.78rem; color: #8b92b7;
    display: flex; gap: 12px; flex-wrap: wrap;
}
.smm-po-selected-service .smm-po-rate-row {
    font-size: 0.9rem; font-weight: 700; color: #00cec9;
    margin-top: 6px;
}

/* ── Step 3/4: Inputs ── */
.smm-po-field {
    margin-bottom: 14px;
}
.smm-po-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #8b92b7;
    margin-bottom: 5px;
}
.smm-po-field input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(99,112,165,0.15);
    background: #0a0e1a;
    color: #e8ebf7;
    font-size: 0.9rem;
    outline: none;
    box-sizing: border-box;
}
.smm-po-field input:focus { border-color: #6c5ce7; }
.smm-po-field .smm-po-error {
    font-size: 0.72rem; color: #fd79a8;
    margin-top: 4px;
    display: none;
}

/* ── Step 4: Review Card ── */
.smm-po-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 0.85rem;
}
.smm-po-review-label { color: #8b92b7; }
.smm-po-review-value { color: #e8ebf7; font-weight: 600; }
.smm-po-review-total {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(99,112,165,0.15);
    padding-top: 10px;
    margin-top: 6px;
    font-size: 1rem; font-weight: 700; color: #00cec9;
}

/* ── Skeleton ── */
.smm-po-skeleton {
    background: rgba(24,30,51,0.4);
    border: 1px solid rgba(99,112,165,0.05);
    border-radius: 14px;
    padding: 16px;
    animation: smm-shimmer 1.5s ease-in-out infinite;
}
.smm-po-skeleton-line {
    height: 10px; border-radius: 5px;
    background: rgba(99,112,165,0.08);
    margin-bottom: 8px;
}
.smm-po-skeleton-line:first-child { width: 65%; height: 14px; }
.smm-po-skeleton-line:nth-child(2) { width: 40%; }
.smm-po-skeleton-line:nth-child(3) { width: 55%; }
.smm-po-skeleton-line:last-child { width: 30%; margin-bottom: 0; }
@keyframes smm-shimmer { 0%{opacity:.35} 50%{opacity:.7} 100%{opacity:.35} }

/* ── Empty / Error ── */
.smm-po-empty {
    text-align: center; padding: 40px 16px; color: #5e6487;
}
.smm-po-empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: 0.5; }
.smm-po-empty-title { font-size: 0.95rem; font-weight: 600; color: #8b92b7; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .smm-po-wizard { padding: 12px 8px 30px; }
    .smm-po-platform-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .smm-po-service-grid { grid-template-columns: 1fr; }
    .smm-po-step-indicator { font-size: 0.68rem; }
    .smm-po-step-arrow { margin: 0 3px; }
    .smm-po-review-grid { grid-template-columns: 1fr; }
}
