/* AccountShop Channel Manager — Frontend CSS v1.0.0 */

/* ============================================================
   VARIABLES
============================================================ */
.acm-sell-wrapper {
    --acm-blue:    #2563eb;
    --acm-green:   #10b981;
    --acm-text:    #0f172a;
    --acm-muted:   #64748b;
    --acm-border:  #e2e8f0;
    --acm-surface: #f8fafc;
    --acm-white:   #ffffff;
    --acm-radius:  14px;

    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--acm-text);
    padding: 0 16px 60px;
}

/* ============================================================
   PROGRESS BAR
============================================================ */
.acm-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 32px 0 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.acm-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    cursor: pointer;
}
.acm-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--acm-border);
    background: var(--acm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--acm-muted);
    transition: all 0.25s;
}
.acm-step-item.active   .acm-step-circle { background: var(--acm-blue);  border-color: var(--acm-blue);  color: #fff; }
.acm-step-item.complete .acm-step-circle { background: var(--acm-green); border-color: var(--acm-green); color: #fff; }
.acm-step-item span { font-size: 11px; font-weight: 600; color: var(--acm-muted); white-space: nowrap; }
.acm-step-item.active   span { color: var(--acm-blue); }
.acm-step-item.complete span { color: var(--acm-green); }
.acm-step-line { flex: 1; height: 2px; background: var(--acm-border); min-width: 20px; max-width: 60px; }
.acm-step-line.done { background: var(--acm-green); }

.acm-progress-bar { height: 4px; background: var(--acm-border); border-radius: 4px; margin-bottom: 32px; overflow: hidden; }
.acm-progress-fill { height: 100%; background: linear-gradient(90deg, var(--acm-blue), var(--acm-green)); border-radius: 4px; transition: width 0.4s ease; }

/* ============================================================
   STEP PANELS
============================================================ */
.acm-step-panel { display: none; }
.acm-step-panel.active { display: block; animation: acmFadeIn 0.3s ease; }
@keyframes acmFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.acm-step-title { font-size: 26px; font-weight: 900; color: var(--acm-text); margin: 0 0 6px; }
.acm-step-sub   { font-size: 14px; color: var(--acm-muted); margin: 0 0 28px; }

/* ============================================================
   STEP 1: PLATFORM GRID
============================================================ */
.acm-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.acm-platform-card {
    background: var(--acm-white);
    border: 2px solid var(--acm-border);
    border-radius: var(--acm-radius);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.acm-platform-card:hover   { border-color: var(--acm-blue); box-shadow: 0 4px 16px rgba(37,99,235,0.12); }
.acm-platform-card.selected { border-color: var(--acm-blue); background: #eff6ff; }
.acm-platform-icon { font-size: 32px; margin-bottom: 8px; }
.acm-platform-name { font-size: 13px; font-weight: 700; color: var(--acm-text); }

/* ============================================================
   FORM FIELDS
============================================================ */
.acm-field { margin-bottom: 20px; }
.acm-field label { display: block; font-size: 13px; font-weight: 700; color: var(--acm-text); margin-bottom: 6px; }
.acm-field .acm-hint { font-size: 12px; color: var(--acm-muted); margin: -4px 0 8px; }
.acm-req { color: #ef4444; }
.acm-optional { color: var(--acm-muted); font-weight: 500; }

.acm-field input[type="text"],
.acm-field input[type="url"],
.acm-field input[type="email"],
.acm-field input[type="number"],
.acm-field input[type="tel"],
.acm-field select,
.acm-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--acm-border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--acm-text);
    background: var(--acm-white);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.acm-field input:focus,
.acm-field select:focus,
.acm-field textarea:focus {
    outline: none;
    border-color: var(--acm-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.acm-field small { display: block; font-size: 11px; color: var(--acm-muted); margin-top: 4px; }

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

/* URL Fetch Row */
.acm-url-row { display: flex; gap: 8px; align-items: center; }
.acm-url-icon { font-size: 18px; }
.acm-url-row input { flex: 1; }
.acm-fetch-btn {
    width: 42px; height: 42px;
    background: var(--acm-surface); border: 1.5px solid var(--acm-border);
    border-radius: 10px; cursor: pointer; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; flex-shrink: 0;
}
.acm-fetch-btn:hover { border-color: var(--acm-blue); background: #eff6ff; }
.acm-fetch-btn.loading { animation: acmSpin 1s linear infinite; }

/* Channel Preview Card */
.acm-channel-preview {
    display: flex; align-items: center; gap: 12px;
    background: var(--acm-surface); border: 1.5px solid var(--acm-green);
    border-radius: 12px; padding: 12px 16px; margin-top: 10px;
}
.acm-channel-preview img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.acm-ch-info { flex: 1; }
.acm-ch-name { font-weight: 800; font-size: 14px; color: var(--acm-text); }
.acm-ch-subs { font-size: 12px; color: var(--acm-muted); }
.acm-ch-check { color: var(--acm-green); font-size: 20px; font-weight: 900; }

/* ============================================================
   STEP 3: PRICING
============================================================ */
.acm-currency-notice {
    background: #eff6ff; border: 1.5px solid #bfdbfe;
    border-radius: 12px; padding: 14px 16px;
    font-size: 13px; color: #1e40af; margin-bottom: 24px; line-height: 1.6;
}
.acm-advanced-toggle {
    color: var(--acm-blue); font-size: 13px; font-weight: 700;
    cursor: pointer; padding: 12px 16px;
    background: var(--acm-surface); border: 1.5px dashed var(--acm-border);
    border-radius: 10px; margin: 4px 0;
}
.acm-advanced-toggle:hover { background: #eff6ff; }
.acm-advanced-section { background: #fef9c3; border: 1px solid #fde047; border-radius: 10px; padding: 16px; margin-top: 4px; }
.acm-wa-field { background: #f0fdf4; border: 1.5px solid #bbf7d0; border-radius: 12px; padding: 16px; }

/* ============================================================
   STEP 4: VERIFY OWNERSHIP
============================================================ */
.acm-verify-box {
    background: var(--acm-white); border: 1.5px solid var(--acm-border);
    border-radius: 18px; padding: 36px 32px; text-align: center; margin-bottom: 24px;
}
.acm-verify-icon { font-size: 40px; margin-bottom: 12px; }
.acm-verify-box h3 { font-size: 20px; font-weight: 900; margin: 0 0 8px; }
.acm-verify-box p { font-size: 13px; color: var(--acm-muted); margin: 0 0 20px; }
.acm-code-display {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--acm-surface); border: 1.5px solid var(--acm-border);
    border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
    font-size: 22px; font-weight: 900; letter-spacing: 4px; color: var(--acm-text);
}
.acm-copy-btn {
    background: transparent; border: none; cursor: pointer;
    font-size: 13px; color: var(--acm-blue); font-weight: 700;
}
.acm-verify-now-btn {
    background: var(--acm-blue); color: #fff;
    border: none; padding: 14px 32px; border-radius: 10px;
    font-size: 15px; font-weight: 800; cursor: pointer;
    width: 100%; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.acm-verify-now-btn:hover { background: #1d4ed8; }
.acm-spin { display: inline-block; }
.acm-verify-now-btn.loading .acm-spin { animation: acmSpin 1s linear infinite; }
.acm-verify-result { margin-top: 14px; font-size: 13px; font-weight: 700; border-radius: 8px; padding: 10px 14px; }
.acm-verify-result.success { background: #dcfce7; color: #166534; }
.acm-verify-result.warning { background: #fef9c3; color: #854d0e; }
.acm-verify-result.error   { background: #fee2e2; color: #991b1b; }

/* ============================================================
   STEP 5: UPLOAD
============================================================ */
.acm-upload-area {
    border: 2px dashed var(--acm-border); border-radius: 14px;
    padding: 40px 24px; text-align: center; cursor: pointer;
    transition: all 0.2s; margin-bottom: 16px; background: var(--acm-surface);
}
.acm-upload-area:hover { border-color: var(--acm-blue); background: #eff6ff; }
.acm-upload-icon { font-size: 40px; margin-bottom: 12px; }
.acm-upload-text { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.acm-upload-hint { font-size: 12px; color: var(--acm-muted); }

.acm-screenshot-previews { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.acm-screenshot-previews img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--acm-border); }

.acm-terms-check { margin-bottom: 16px; font-size: 13px; color: var(--acm-muted); }
.acm-terms-check label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.acm-terms-check input { margin-top: 2px; flex-shrink: 0; }

/* ============================================================
   NAV BUTTONS
============================================================ */
.acm-step-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.acm-btn-back {
    background: var(--acm-surface); color: var(--acm-text);
    border: 1.5px solid var(--acm-border); padding: 12px 24px;
    border-radius: 10px; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: all 0.2s;
}
.acm-btn-back:hover { background: #f1f5f9; }
.acm-btn-next, .acm-btn-submit {
    background: var(--acm-blue); color: #fff;
    border: none; padding: 12px 28px;
    border-radius: 10px; font-weight: 800; font-size: 14px;
    cursor: pointer; transition: all 0.2s; margin-left: auto;
}
.acm-btn-next:hover, .acm-btn-submit:hover { background: #1d4ed8; }
.acm-btn-submit { background: var(--acm-green); padding: 14px 32px; font-size: 15px; width: 100%; }
.acm-btn-submit:hover { background: #059669; }
.acm-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================================
   SUCCESS
============================================================ */
.acm-success-box { text-align: center; padding: 40px 24px; }
.acm-success-icon { font-size: 64px; margin-bottom: 16px; }
.acm-success-box h2 { font-size: 28px; font-weight: 900; color: var(--acm-green); margin: 0 0 8px; }
.acm-success-verify-reminder {
    background: #fef9c3; border: 1px solid #fde047;
    border-radius: 12px; padding: 20px; margin: 20px 0; text-align: left;
}
.acm-wa-success-btn {
    background: var(--acm-green); color: #fff;
    padding: 14px 28px; border-radius: 10px; font-weight: 800;
    text-decoration: none; display: inline-block;
}

/* ============================================================
   CHANNEL GRID (acm_channel_grid shortcode)
============================================================ */
.acm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.acm-card {
    background: #fff; border: 1.5px solid var(--acm-border);
    border-radius: 16px; overflow: hidden; position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.acm-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.acm-card-badges { display: flex; gap: 6px; padding: 10px 10px 0; flex-wrap: wrap; }
.acm-badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.acm-badge-mono   { background: #dcfce7; color: #166534; }
.acm-badge-pinned { background: #dbeafe; color: #1e40af; }
.acm-badge-hot    { background: #fef9c3; color: #92400e; }
.acm-card-thumb { position: relative; }
.acm-card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.acm-card-price {
    position: absolute; top: 8px; right: 8px;
    background: rgba(15,23,42,0.85); color: #fff;
    font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 20px;
}
.acm-card-body { padding: 14px; }
.acm-card-title { font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.acm-card-title a { color: var(--acm-text); text-decoration: none; }
.acm-card-title a:hover { color: var(--acm-blue); }
.acm-card-listing-code { font-size: 11px; color: var(--acm-muted); margin-bottom: 10px; }
.acm-card-matrix { border: 1.5px solid var(--acm-border); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.acm-matrix-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; font-size: 12px; border-bottom: 1px solid var(--acm-border); }
.acm-matrix-row:last-child { border-bottom: none; }
.acm-matrix-row span { color: var(--acm-muted); }
.acm-matrix-row strong { font-weight: 700; color: var(--acm-text); }
.acm-yes { color: #059669; font-style: normal; }
.acm-no  { color: #dc2626; font-style: normal; }
.acm-buy-btn {
    display: block; background: var(--acm-blue); color: #fff;
    text-align: center; padding: 10px; border-radius: 8px;
    font-weight: 800; font-size: 13px; text-decoration: none;
    transition: background 0.2s;
}
.acm-buy-btn:hover { background: #1d4ed8; color: #fff; }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes acmSpin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
    .acm-platform-grid { grid-template-columns: repeat(2, 1fr); }
    .acm-field-row { grid-template-columns: 1fr; }
    .acm-step-title { font-size: 20px; }
    .acm-verify-box { padding: 24px 16px; }
    .acm-grid { grid-template-columns: 1fr; }
}
