/* ================================
   SWAPCIRCLE — COMPLETE STYLESHEET
   All SwapCircle front-end styles
================================= */

/* --------------------------------
   SELLER BADGES
--------------------------------- */
.sc-seller-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
}

.sc-seller-badges--moved {
    margin: 10px 0 14px !important;
}

.sc-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.sc-seller-badge-icon {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.sc-badge-phone { background: #dcfce7; color: #15803d; }
.sc-badge-phone .sc-seller-badge-icon { background: #16a34a; color: #fff; }
.sc-badge-id { background: #eff6ff; color: #2563eb; }
.sc-badge-id .sc-seller-badge-icon { background: #2563eb; color: #fff; }
.sc-badge-trusted { background: #fff7ed; color: #f97316; }
.sc-badge-trusted .sc-seller-badge-icon { background: #f97316; color: #fff; }

/* --------------------------------
   PUBLIC STATE BANNER
--------------------------------- */
.sc-public-state-banner-wrap {
    margin: 12px 0;
}

.sc-public-state-banner {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.5;
}

.sc-public-state-banner--sold {
    background: #fee2e2;
    color: #b91c1c;
}

.sc-public-state-banner--reserved {
    background: #fff7ed;
    color: #c2410c;
}

/* --------------------------------
   ACTION BUTTONS ON LISTING
--------------------------------- */
.sc-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.sc-btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-align: center;
    color: #fff;
    transition: opacity 0.2s;
}

.sc-btn:hover {
    opacity: 0.88;
}

.sc-btn--offer {
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
}

.sc-btn--buynow {
    background: #1B99FF;
}

.sc-btn--pay {
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
}

.sc-btn--confirm-receipt {
    background: #16a34a;
}

.sc-btn--raise-dispute {
    background: #ef4444;
}

.sc-btn--accept {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.sc-btn--counter {
    background: #f59e0b;
}

.sc-btn--reject {
    background: #ef4444;
}

.sc-btn--outline {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.sc-btn--primary {
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    color: #fff;
}

.sc-btn.loading {
    background: #999 !important;
    cursor: not-allowed;
}

/* --------------------------------
   NEGOTIATION STATE BOXES
--------------------------------- */
.sc-negotiation-state {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 4px;
}

.sc-negotiation-state--accepted { background: #dcfce7; color: #15803d; }
.sc-negotiation-state--waiting  { background: #eff6ff; color: #2563eb; }
.sc-negotiation-state--counter  { background: #fff7ed; color: #c2410c; }
.sc-negotiation-state--rejected { background: #fee2e2; color: #b91c1c; }

.sc-seller-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

/* --------------------------------
   MODALS
--------------------------------- */
.sc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

@media (min-width: 601px) {
    .sc-modal-overlay {
        align-items: center;
    }
}

.sc-modal {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px;
    padding: 22px 18px;
    box-sizing: border-box;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
}

.sc-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px;
}

.sc-modal-title--center { text-align: center; }

.sc-modal-label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111827;
}

.sc-modal-input,
.sc-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 12px;
    outline: none;
}

.sc-modal-input:focus,
.sc-modal-textarea:focus {
    border-color: #2B21ED;
    box-shadow: 0 0 0 3px rgba(43,33,237,.12);
}

.sc-modal-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 18px;
}

.sc-modal-text--center { text-align: center; }

.sc-modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
    line-height: 1;
    padding: 0;
}

.sc-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 480px) {
    .sc-modal-actions {
        flex-direction: row;
        justify-content: flex-end;
    }
}

/* --------------------------------
   PAYMENT OPTIONS IN MODAL
--------------------------------- */
.sc-payment-option {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sc-payment-option:hover {
    border-color: #2B21ED;
}

.sc-payment-option-title {
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
}

.sc-payment-option-text {
    font-size: 13px;
    color: #64748b;
}

.sc-payment-option-summary {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.6;
    color: #2B21ED;
}

.sc-payment-method-option {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    transition: border-color 0.2s, background 0.2s;
}

.sc-payment-method-option:hover {
    border-color: #2B21ED;
    background: #f5f3ff;
}

/* --------------------------------
   MY TRANSACTIONS DASHBOARD
--------------------------------- */
.sc-dashboard {
    max-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
}

.sc-dashboard h2 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 18px;
}

.sc-transaction-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.sc-transaction-tab {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
    white-space: nowrap;
}

.sc-transaction-tab.active,
.sc-transaction-tab:hover {
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    color: #fff;
    border-color: transparent;
}

.sc-dashboard-section { display: none; }

.sc-dashboard-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    box-sizing: border-box;
}

.sc-dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.sc-dashboard-card-header h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
}

.sc-dashboard-meta {
    font-size: 12px;
    color: #94a3b8;
}

.sc-dashboard-status {
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    background: #f1f5f9;
    color: #64748b;
}

.sc-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.sc-dashboard-grid div {
    background: #f8fafc;
    border-radius: 10px;
    padding: 11px 13px;
}

.sc-dashboard-grid strong {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sc-dashboard-grid span {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.sc-dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.sc-dashboard-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    color: #fff !important;
    transition: opacity 0.2s;
}

.sc-dashboard-btn:hover { opacity: 0.85; }

.sc-dashboard-btn--secondary {
    background: #f1f5f9;
    color: #374151 !important;
}

.sc-dashboard-complete { color: #16a34a; font-weight: 800; font-size: 14px; }
.sc-dashboard-muted    { color: #94a3b8;  font-weight: 700; font-size: 14px; }
.sc-dashboard-warning  { color: #d97706;  font-weight: 800; font-size: 14px; }

/* --------------------------------
   TIMELINE
--------------------------------- */
.sc-timeline-wrap {
    margin-top: 16px;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
}

.sc-timeline-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    font-weight: 800;
    color: #2B21ED;
}

.sc-timeline-toggle:hover { opacity: 0.75; }

.sc-timeline-count {
    background: #eff6ff;
    color: #2563eb;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 900;
}

.sc-timeline { margin-top: 14px; }

.sc-timeline-empty {
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

.sc-timeline-list {
    display: flex;
    flex-direction: column;
}

.sc-timeline-event {
    display: flex;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

.sc-timeline-event:last-child { padding-bottom: 0; }

.sc-timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.sc-timeline-event:not(:last-child) .sc-timeline-dot::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 5px;
    width: 2px;
    height: calc(100% + 6px);
    background: #e2e8f0;
}

.sc-timeline-body { flex: 1; }

.sc-timeline-label {
    font-weight: 800;
    font-size: 14px;
    color: #111827;
}

.sc-timeline-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.sc-timeline-status-change {
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sc-status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 11px;
}

.sc-status-pill--old { background: #f1f5f9; color: #64748b; }
.sc-status-pill--new { background: #dcfce7; color: #15803d; }

.sc-timeline-note {
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* --------------------------------
   VERIFICATION PAGES
--------------------------------- */
.sc-phone-verify-wrap,
.sc-id-verify-wrap {
    max-width: 760px;
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(15,23,42,.08);
}

.sc-id-verify-wrap { margin-top: 26px; }

/* --------------------------------
   ADMIN PAYOUT QUEUE
--------------------------------- */
.sc-admin-payouts { max-width: 1150px; }

.sc-admin-payout-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sc-admin-payout-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sc-admin-payout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.sc-admin-payout-grid div {
    background: #f6f7f7;
    border-radius: 10px;
    padding: 12px;
}

.sc-admin-payout-grid strong {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 5px;
}

.sc-admin-payout-grid span {
    display: block;
    font-weight: 700;
    word-break: break-word;
}

.sc-admin-payout-actions {
    display: flex;
    justify-content: flex-end;
}

.sc-btn--mark-paid {
    background: #2B21ED;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.sc-payout-blocked {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    text-align: right;
    color: #b91c1c;
    font-weight: 700;
}

.sc-payout-blocked strong {
    background: #fee2e2;
    color: #b91c1c;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-block;
}

.sc-payout-blocked span {
    color: #7f1d1d;
    font-size: 13px;
    max-width: 320px;
}

/* --------------------------------
   RESPONSIVE
--------------------------------- */
@media (max-width: 768px) {
    .sc-admin-payout-grid,
    .sc-review-grid,
    .sc-admin-id-grid {
        grid-template-columns: 1fr !important;
    }

    .sc-admin-payout-actions,
    .sc-review-actions,
    .sc-admin-id-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

@media (max-width: 480px) {
    .sc-dashboard-grid { grid-template-columns: 1fr; }
    .sc-timeline-status-change { flex-direction: column; align-items: flex-start; }
    .sc-timeline-label { font-size: 13px; }
}

@media (max-width: 600px) {
    .sc-phone-verify-wrap,
    .sc-id-verify-wrap {
        padding: 18px 14px !important;
        border-radius: 14px !important;
    }
}


/* --------------------------------
   OFFER SUBMIT BUTTON IN MODAL
--------------------------------- */
.sc-btn--offer-submit {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 8px;
}

.sc-btn--offer-submit:hover {
    opacity: 0.88;
}

/* --------------------------------
   MARK PAYOUT AS PAID BUTTON
--------------------------------- */
.sc-btn--mark-paid {
    background: linear-gradient(135deg, #2B21ED, #B21FFF);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.sc-btn--mark-paid:hover {
    opacity: 0.88;
    color: #fff;
}

/* --------------------------------
   MODAL NOTICE VARIANTS
--------------------------------- */
.sc-modal--notice .sc-notice-icon-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.sc-notice-icon {
    font-size: 36px;
    color: #f59e0b;
}

.sc-modal--confirm .sc-modal-title--center,
.sc-modal--notice .sc-modal-title {
    text-align: center;
}


/* --------------------------------
   PAYMENT OPTION SELECTED STATE
--------------------------------- */
.sc-payment-option--secure:hover,
.sc-payment-option--meetup:hover {
    border-color: #2B21ED;
    background: #f5f3ff;
}

/* --------------------------------
   ADMIN REVIEW QUEUE
--------------------------------- */
.sc-review-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sc-review-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.sc-review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.sc-review-grid div {
    background: #f6f7f7;
    border-radius: 10px;
    padding: 12px;
}

.sc-review-grid strong {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 5px;
}

.sc-review-grid span {
    display: block;
    font-weight: 700;
    word-break: break-word;
}

.sc-review-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.sc-review-badge {
    background: #fff7ed;
    color: #f59e0b;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 800;
}

/* --------------------------------
   ADMIN ID VERIFICATION QUEUE
--------------------------------- */
.sc-admin-id-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.sc-admin-id-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.sc-admin-id-grid div {
    background: #f6f7f7;
    border-radius: 10px;
    padding: 13px;
}

.sc-admin-id-grid strong {
    display: block;
    font-size: 12px;
    color: #646970;
    margin-bottom: 6px;
}

.sc-admin-id-approve {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

.sc-admin-id-reject {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}


/* HIDE CLASSIMA DEFAULT ICONS FOR SWAPCIRCLE MENU ITEMS */
.rtcl-account-navigation li a[data-sc-icon-done] > span:not([style*="display: none"]),
.rtcl-account-navigation li a[data-sc-icon-done] > i {
    display: none !important;
}

a[data-sc-icon-done] img {
    display: none !important;
}

/* HIDE CLASSIMA DEFAULT GREY SQUARE ON SWAPCIRCLE MENU ITEMS */
a[href*="swapcircle-transactions"] > span:not(svg *),
a[href*="swapcircle-transactions"] > img,
a[href*="swapcircle-verification"] > span:not(svg *),
a[href*="swapcircle-verification"] > img {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

a[href*="swapcircle-transactions"]::before,
a[href*="swapcircle-transactions"]::after,
a[href*="swapcircle-verification"]::before,
a[href*="swapcircle-verification"]::after {
    display: none !important;
    content: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* SWAPCIRCLE MENU ICON ALIGNMENT */
a[href*="swapcircle-transactions"],
a[href*="swapcircle-verification"] {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

a[href*="swapcircle-transactions"] svg,
a[href*="swapcircle-verification"] svg {
    flex-shrink: 0 !important;
    position: static !important;
    top: auto !important;
    vertical-align: middle !important;
}

/* ALIGN SWAPCIRCLE MENU ITEMS WITH REST OF CLASSIMA MENU */
.rtcl-account-navigation li a[href*="swapcircle-transactions"],
.rtcl-account-navigation li a[href*="swapcircle-verification"] {
    display: flex !important;
    align-items: center !important;
    padding-left: 0 !important;
}

.rtcl-account-navigation li a[href*="swapcircle-transactions"] svg,
.rtcl-account-navigation li a[href*="swapcircle-verification"] svg {
    min-width: 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 10px !important;
    flex-shrink: 0 !important;
}


/* FIX SWAPCIRCLE MENU ITEM INDENTATION */
.rtcl-MyAccount-navigation-link--swapcircle-transactions a,
.rtcl-MyAccount-navigation-link--swapcircle-verification a {
    display: flex !important;
    align-items: center !important;
    padding-left: 25px !important;
}

.rtcl-MyAccount-navigation-link--swapcircle-transactions a svg,
.rtcl-MyAccount-navigation-link--swapcircle-verification a svg {
    min-width: 20px !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
}