/* DWC Subscription — Checkout Page */

:root {
    --dwc-blue:    #1a56db;
    --dwc-blue-lt: #eff6ff;
    --dwc-border:  #e2e8f0;
    --dwc-radius:  10px;
    --dwc-font:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dwc-checkout-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 16px 0 48px;
    font-family: var(--dwc-font);
    color: #111827;
}

/* Notices */
.dwc-notice {
    padding: 14px 18px;
    border-radius: var(--dwc-radius);
    margin-bottom: 24px;
    font-size: .95rem;
    line-height: 1.5;
}
.dwc-notice-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.dwc-notice-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }

/* Header */
.dwc-checkout-header { margin-bottom: 28px; text-align: center; }
.dwc-checkout-header h2 { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; }
.dwc-checkout-header p  { color: #6b7280; margin: 0; }

/* Plan selector */
.dwc-plan-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.dwc-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 22px 16px;
    border: 2px solid var(--dwc-border);
    border-radius: var(--dwc-radius);
    cursor: pointer;
    min-width: 130px;
    transition: border-color .15s, box-shadow .15s, transform .1s;
    background: #fff;
    user-select: none;
}
.dwc-plan-card:hover { border-color: var(--dwc-blue); transform: translateY(-2px); }
.dwc-plan-card-active { border-color: var(--dwc-blue); background: var(--dwc-blue-lt); }
.dwc-plan-badge {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    background: var(--dwc-blue);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.dwc-plan-card-label  { font-weight: 700; font-size: .95rem; }
.dwc-plan-card-price  { font-size: 1.25rem; font-weight: 800; color: var(--dwc-blue); }
.dwc-plan-card-period { font-size: .74rem; color: #9ca3af; }

/* Payment form */
.dwc-payment-form { background: #fff; border: 1px solid var(--dwc-border); border-radius: 14px; padding: 32px; }

.dwc-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dwc-border);
}
.dwc-section-title + .dwc-field-row { margin-top: 0; }

.dwc-field-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.dwc-field {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dwc-field label { font-size: .875rem; font-weight: 600; color: #374151; }
.dwc-field input {
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
}
.dwc-field input:focus {
    outline: none;
    border-color: var(--dwc-blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.required { color: #e53e3e; }

/* Method selector */
.dwc-method-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.dwc-method-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--dwc-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: #374151;
    transition: border-color .15s, background .15s;
    user-select: none;
}
.dwc-method-active,
.dwc-method-btn:hover {
    border-color: var(--dwc-blue);
    background: var(--dwc-blue-lt);
    color: var(--dwc-blue);
}

.dwc-method-note {
    font-size: .88rem;
    color: #6b7280;
    margin: 0 0 20px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 7px;
    border: 1px solid var(--dwc-border);
}

/* Buttons */
.dwc-btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background .15s, transform .1s;
}
.dwc-btn-primary {
    background: var(--dwc-blue);
    color: #fff;
    width: 100%;
    margin-top: 20px;
    font-size: 1.05rem;
}
.dwc-btn-primary:hover { background: #1447b0; transform: translateY(-1px); }
.dwc-btn-primary:active { transform: translateY(0); }
.dwc-btn-ghost {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid var(--dwc-border);
    padding: 10px 22px;
    font-size: .9rem;
}
.dwc-btn-ghost:hover { border-color: #9ca3af; color: #374151; }

.dwc-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .82rem;
    color: #9ca3af;
    margin: 12px 0 0;
}

/* Mobile money pending */
.dwc-mm-pending {
    text-align: center;
    padding: 48px 32px;
    background: #fff;
    border: 1px solid var(--dwc-border);
    border-radius: 14px;
}
.dwc-mm-pending h3 { font-size: 1.3rem; margin: 20px 0 8px; }
.dwc-mm-pending p  { color: #6b7280; margin: 0 0 12px; }
.dwc-mm-checking { font-size: .85rem; color: #9ca3af; }

/* Section sub-text */
.dwc-section-sub {
    font-size: .88rem;
    color: #6b7280;
    margin: -10px 0 16px;
}
.dwc-hint { font-weight: 400; color: #9ca3af; font-size: .8rem; }

/* "Already a member?" link in form */
.dwc-already-member {
    font-size: .88rem;
    color: #6b7280;
    margin: -4px 0 20px;
}
.dwc-already-member a { color: var(--dwc-blue); font-weight: 600; text-decoration: none; }
.dwc-already-member a:hover { text-decoration: underline; }

/* Mobile money timer */
.dwc-mm-timer { font-size: .85rem; color: #9ca3af; font-variant-numeric: tabular-nums; }

/* Spinner — large (MM pending screen) */
@keyframes dwc-spin { to { transform: rotate(360deg); } }
.dwc-spinner-ring {
    display: inline-block;
    width: 48px; height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--dwc-blue);
    border-radius: 50%;
    animation: dwc-spin .8s linear infinite;
    margin: 0 auto 4px;
}

/* Spinner — inline (button) */
.dwc-spinner-inline {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dwc-spin .7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
