.admin-shell .api-card { margin-top: 18px; padding: 23px; }
.admin-shell .api-connect { margin-top: 0; }
.api-section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.api-section-heading h2 { margin: 0 0 5px; color: #172236; font-size: 17px; }
.api-section-heading p, .api-guide p { margin: 0; color: #64748b; font-size: 13px; line-height: 1.6; }
.api-connect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.api-connect-step { display: flex; align-items: flex-start; gap: 13px; min-width: 0; border: 1px solid #e5eaf0; border-radius: 4px; padding: 16px; background: #fbfcfd; }
.api-connect-step > div { flex: 1; min-width: 0; }
.api-step-number { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; background: #e8f5f2; color: #0f766e; font-size: 13px; font-weight: 700; }
.api-connect-step strong { display: block; color: #172236; font-size: 13px; }
.api-connect-step p { margin: 5px 0 11px; color: #64748b; font-size: 12px; line-height: 1.55; }
.api-connect-step small { display: block; margin-top: 9px; color: #a65313; font-size: 11px; line-height: 1.5; }
.api-copy-row { display: flex; align-items: stretch; gap: 8px; min-width: 0; }
.api-copy-row code { display: flex; align-items: center; flex: 1; min-width: 0; overflow-wrap: anywhere; border: 1px solid #dce4ec; border-radius: 4px; padding: 8px 10px; background: #fff; color: #334155; font-size: 12px; direction: ltr; text-align: left; }
.admin-shell .api-copy-row button { flex: none; min-height: 38px; }
.admin-shell .api-setup-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 13px; text-decoration: none; }
.api-client-list, .api-webhook-list { display: grid; gap: 10px; }
.api-account-list { display: grid; gap: 9px; }
.api-account-card { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; border: 1px solid #e5eaf0; border-radius: 4px; padding: 13px; }
.api-account-card > strong { min-width: 150px; flex: 1; color: #172236; font-size: 13px; }
.api-account-card > span:not(.pill) { color: #64748b; font-size: 12px; }
.api-account-card .api-setup-link { margin-inline-start: auto; }
.api-payment-flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.api-payment-flow > label { display: flex; align-items: flex-start; gap: 11px; min-width: 0; margin: 0; padding: 16px; border: 1px solid #dce4ec; border-radius: 8px; cursor: pointer; }
.api-payment-flow > label:has(input:checked) { border-color: #533afd; background: #f7f6ff; }
.admin-shell .api-payment-flow input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; border-radius: 50%; accent-color: #533afd; }
.api-payment-flow > label > span { flex: 1; min-width: 0; }
.api-payment-flow strong, .api-payment-flow small { display: block; }
.api-payment-flow strong { color: #172236; font-size: 14px; }
.api-payment-flow small { margin-top: 5px; color: #64748b; font-size: 12px; line-height: 1.55; }
.api-payment-flow .api-actions { grid-column: 1 / -1; align-items: center; }
.api-product-info { display: grid; gap: 16px; }
.api-product-info-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.api-product-info-choices > label { display: flex; align-items: flex-start; gap: 11px; margin: 0; padding: 16px; border: 1px solid #dce4ec; border-radius: 8px; cursor: pointer; }
.api-product-info-choices > label:has(input:checked) { border-color: #533afd; background: #f7f6ff; }
.admin-shell .api-product-info-choices input[type="radio"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: #533afd; }
.api-product-info-choices strong, .api-product-info-choices small { display: block; }
.api-product-info-choices strong { color: #172236; font-size: 14px; }
.api-product-info-choices small, .api-product-info-fields small { margin-top: 5px; color: #64748b; font-size: 12px; line-height: 1.55; }
.api-product-info-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.api-product-info-fields > label { display: block; min-width: 0; }
.api-product-info-fields input, .api-product-info-fields textarea { display: block; margin-top: 7px; }
.api-product-info-fields textarea { min-height: 72px; }
.api-product-info-fields small { display: block; }
.api-product-preview { border: 1px solid #e5eaf0; border-radius: 8px; overflow: hidden; }
.api-product-preview-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 15px; background: #f8fafc; color: #334155; font-size: 13px; }
.api-product-preview-head label { display: flex; align-items: center; gap: 9px; margin: 0; color: #64748b; font-size: 12px; }
.admin-shell .api-product-preview-head input { width: 110px; min-height: 34px; padding: 6px 9px; }
.api-product-preview-body { padding: 15px; min-height: 78px; color: #172236; }
.api-product-preview-body strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.api-product-preview-body p { margin: 5px 0 0; color: #64748b; font-size: 13px; overflow-wrap: anywhere; }
.api-client, .api-webhook { display: grid; gap: 12px; border: 1px solid #e5eaf0; border-radius: 4px; padding: 15px; }
.api-client-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-client-head strong { font-size: 14px; }
.api-client-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.api-client-meta span { min-width: 0; overflow-wrap: anywhere; color: #475569; font-size: 12px; }
.api-client-meta small { display: block; margin-bottom: 4px; color: #64748b; }
.api-client-warning { margin: 0; padding: 9px 11px; border: 1px solid #f1d49b; border-radius: 4px; background: #fff9ed; color: #784b10; font-size: 12px; line-height: 1.5; }
.api-client-actions, .api-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.api-client-actions button { min-height: 34px; border: 1px solid #d7e0e9; border-radius: 4px; background: #fff; color: #334155; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.api-client-actions button:hover { background: #f8fafc; }
.api-client-actions .danger { color: #a3363a; }
.api-form { margin-top: 0; }
.api-form h3 { margin: 0 0 16px; font-size: 15px; }
.api-form-grid, .api-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 17px; }
.api-form label, .api-filters label, .api-key-result label { margin: 0; min-width: 0; }
.api-form label input, .api-form label select, .api-form label textarea, .api-filters input, .api-filters select, .api-key-result input { margin-top: 7px; }
.api-form textarea { min-height: 72px; }
.api-advanced { margin: 16px 0; border: 1px solid #e5eaf0; border-radius: 4px; }
.api-advanced summary { padding: 13px 15px; color: #0f766e; cursor: pointer; font-size: 12px; font-weight: 700; }
.api-advanced[open] summary { border-bottom: 1px solid #e5eaf0; }
.api-advanced > .api-form-grid { padding: 16px 15px 0; }
.api-advanced .api-scopes { margin: 16px 15px; }
.api-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid #e5eaf0; }
.api-list-heading h3 { margin: 0; color: #172236; font-size: 15px; }
.api-list-heading span { color: #64748b; font-size: 12px; }
.api-scopes { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0; border: 1px solid #e5eaf0; border-radius: 4px; padding: 14px; }
.api-scopes legend { color: #475569; font-size: 12px; font-weight: 700; }
.admin-shell .api-scopes label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.admin-shell .api-scopes input { width: 15px; min-height: 15px; height: 15px; margin: 0; accent-color: #0f766e; }
.api-key-result { margin-top: 18px; border: 1px solid #b7e2d2; border-radius: 4px; background: #f0faf5; padding: 16px; }
.api-key-result strong { display: block; margin-bottom: 13px; color: #146c4a; font-size: 13px; }
.api-key-result label { display: block; margin-bottom: 11px; }
.api-key-result input { direction: ltr; text-align: left; font-family: ui-monospace, monospace; }
.api-result-base { margin-bottom: 15px; }
.api-result-base > span { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 650; color: #334155; }
.api-result-base small { display: block; margin-top: 8px; color: #a65313; font-size: 11px; }
.api-webhook { grid-template-columns: minmax(150px, 1fr) minmax(230px, 2fr) auto; align-items: end; }
.api-webhook > div { min-width: 0; }
.api-webhook p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.api-webhook code { display: block; margin-top: 7px; color: #475569; font-size: 11px; overflow-wrap: anywhere; }
.api-webhook label { margin: 0; }
.api-webhook input { margin-top: 6px; }
.api-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.api-filters label { font-size: 12px; }
.api-table-scroll { overflow-x: auto; }
.api-table { width: 100%; border-collapse: collapse; text-align: start; font-size: 12px; white-space: nowrap; }
.api-table th, .api-table td { border-bottom: 1px solid #e5eaf0; padding: 11px 10px; text-align: start; }
.api-table th { background: #f8fafc; color: #64748b; font-weight: 700; }
.api-table td { color: #334155; }
.api-table td:first-child { font-weight: 700; }
.api-table .status { border-radius: 4px; padding: 4px 7px; background: #eef2f6; font-weight: 700; }
.api-table .status.paid { color: #147449; background: #e8f7ee; }
.api-table .status.failed, .api-table .status.disputed { color: #a3363a; background: #fff0f0; }
.api-guide summary { color: #172236; cursor: pointer; font-size: 14px; font-weight: 700; }
.api-guide-content { display: grid; gap: 12px; margin-top: 14px; }
.api-guide code { display: block; overflow-wrap: anywhere; border: 1px solid #e5eaf0; border-radius: 4px; background: #f8fafc; padding: 10px; color: #334155; }
@media(max-width: 1000px) { .api-connect-grid { grid-template-columns: 1fr; } .api-client-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 700px) { .api-form-grid, .api-filters, .api-payment-flow, .api-product-info-choices, .api-product-info-fields { grid-template-columns: 1fr; } .api-webhook { grid-template-columns: 1fr; } }
@media(max-width: 540px) { .admin-shell .api-card { padding: 17px; } .api-client-meta { grid-template-columns: 1fr; } .api-section-heading { display: block; } .api-section-heading button { margin-top: 12px; } .api-connect-step { padding: 12px; } .api-copy-row { flex-direction: column; } .api-copy-row code, .api-copy-row button { width: 100%; } .api-account-card .api-setup-link { width: 100%; } }
