/* ChainPay Admin CSS — chainpay.store */
:root{--cp-ink:#0a0f1e;--cp-accent:#ff6b2b;--cp-green:#059669;--cp-red:#dc2626;--cp-blue:#2563eb;--cp-gold:#f59e0b;--cp-border:#e5e7eb;--cp-mist:#f8fafc;}

.cp-wrap{max-width:1100px;margin:20px auto 0;padding:0 16px;}

/* Header */
.cp-header{display:flex;align-items:center;gap:12px;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid var(--cp-border);}
.cp-logo{width:36px;height:36px;background:var(--cp-ink);border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:17px;color:#fff;flex-shrink:0;}
.cp-header-title{font-size:18px;font-weight:800;color:var(--cp-ink);}
.cp-header-sub{font-size:12px;color:#9ca3af;margin-top:1px;}
.cp-header-badge{margin-left:auto;background:var(--cp-ink);color:#fff;border-radius:20px;padding:4px 12px;font-size:11px;font-weight:700;}
.cp-header-badge.pro{background:var(--cp-accent);}

/* Tabs */
.cp-tabs-nav{display:flex;gap:0;border-bottom:2px solid var(--cp-border);margin-bottom:24px;}
.cp-tab-link{padding:10px 20px;font-size:13px;font-weight:700;color:#6b7280;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-2px;transition:all .15s;}
.cp-tab-link:hover{color:var(--cp-ink);}
.cp-tab-link.active{color:var(--cp-accent);border-bottom-color:var(--cp-accent);}

/* Section card */
.cp-section{background:#fff;border:1.5px solid var(--cp-border);border-radius:14px;padding:22px;margin-bottom:18px;}
.cp-section-title{font-size:14px;font-weight:800;color:var(--cp-ink);margin-bottom:4px;}
.cp-section-sub{font-size:12px;color:#9ca3af;margin-bottom:16px;}

/* Form */
.cp-field{margin-bottom:16px;}
.cp-label{display:block;font-size:12px;font-weight:700;color:#374151;margin-bottom:5px;text-transform:uppercase;letter-spacing:.4px;}
.cp-input{width:100%;padding:9px 13px;border:1.5px solid var(--cp-border);border-radius:8px;font-size:13px;color:var(--cp-ink);font-family:inherit;outline:none;transition:border-color .2s;}
.cp-input:focus{border-color:var(--cp-accent);box-shadow:0 0 0 3px rgba(255,107,43,.1);}
.cp-input.mono{font-family:'Courier New',Courier,monospace;font-size:12px;}
.cp-input-wrap{position:relative;}
.cp-select{width:100%;padding:9px 13px;border:1.5px solid var(--cp-border);border-radius:8px;font-size:13px;color:var(--cp-ink);font-family:inherit;outline:none;cursor:pointer;background:#fff;}
.cp-select:focus{border-color:var(--cp-accent);}
.cp-help{font-size:11px;color:#9ca3af;margin-top:4px;}
.cp-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.cp-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;}

/* Toggle */
.cp-toggle-row{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--cp-border);}
.cp-toggle-row:last-child{border-bottom:none;}
.cp-toggle-label{font-size:13px;font-weight:700;color:var(--cp-ink);}
.cp-toggle-desc{font-size:11px;color:#9ca3af;margin-top:2px;}
.cp-switch{position:relative;display:inline-block;width:40px;height:22px;flex-shrink:0;}
.cp-switch input{opacity:0;width:0;height:0;}
.cp-slider{position:absolute;inset:0;background:#ddd;border-radius:22px;cursor:pointer;transition:background .2s;}
.cp-slider::before{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;left:3px;top:3px;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.2);}
.cp-switch input:checked+.cp-slider{background:var(--cp-accent);}
.cp-switch input:checked+.cp-slider::before{transform:translateX(18px);}

/* Buttons */
.cp-btn{display:inline-flex;align-items:center;gap:6px;padding:9px 18px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;border:none;font-family:inherit;transition:all .15s;text-decoration:none;}
.cp-btn-primary{background:var(--cp-accent);color:#fff;box-shadow:0 2px 10px rgba(255,107,43,.25);}
.cp-btn-primary:hover{background:#e85d1f;transform:translateY(-1px);}
.cp-btn-secondary{background:#fff;color:var(--cp-ink);border:1.5px solid var(--cp-border);}
.cp-btn-secondary:hover{background:var(--cp-mist);}
.cp-btn-danger{background:rgba(220,38,38,.08);color:var(--cp-red);border:1.5px solid rgba(220,38,38,.2);}
.cp-btn-danger:hover{background:var(--cp-red);color:#fff;}
.cp-btn-green{background:rgba(5,150,105,.08);color:var(--cp-green);border:1.5px solid rgba(5,150,105,.2);}
.cp-btn-green:hover{background:var(--cp-green);color:#fff;}
.cp-btn-sm{padding:5px 12px;font-size:11px;}

/* Notice */
.cp-notice{border-radius:8px;padding:11px 14px;font-size:13px;margin-bottom:14px;display:flex;align-items:flex-start;gap:8px;}
.cp-notice.ok{background:rgba(5,150,105,.08);border:1px solid rgba(5,150,105,.2);color:#065f46;}
.cp-notice.err{background:rgba(220,38,38,.07);border:1px solid rgba(220,38,38,.2);color:#991b1b;}
.cp-notice.info{background:rgba(37,99,235,.07);border:1px solid rgba(37,99,235,.15);color:#1e3a8a;}
.cp-notice.warn{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.2);color:#78350f;}

/* Copy field */
.cp-copy-row{display:flex;align-items:center;gap:8px;background:var(--cp-mist);border:1.5px solid var(--cp-border);border-radius:8px;padding:8px 12px;}
.cp-copy-val{flex:1;font-family:'Courier New',Courier,monospace;font-size:12px;color:var(--cp-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cp-copy-btn{flex-shrink:0;background:#fff;border:1.5px solid var(--cp-border);border-radius:6px;padding:3px 10px;font-size:11px;font-weight:700;cursor:pointer;font-family:inherit;transition:all .12s;}
.cp-copy-btn:hover{background:var(--cp-ink);color:#fff;}

/* Stats */
.cp-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;}
.cp-stat{background:#fff;border:1.5px solid var(--cp-border);border-radius:12px;padding:16px;text-align:center;}
.cp-stat-val{font-size:24px;font-weight:800;color:var(--cp-ink);margin-bottom:4px;}
.cp-stat-lbl{font-size:11px;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;}

/* Table */
.cp-table-wrap{overflow-x:auto;border-radius:10px;border:1.5px solid var(--cp-border);}
.cp-table{width:100%;border-collapse:collapse;font-size:12px;}
.cp-table th{padding:9px 14px;background:var(--cp-mist);font-size:10px;font-weight:800;color:#9ca3af;text-transform:uppercase;letter-spacing:.6px;border-bottom:1.5px solid var(--cp-border);text-align:left;white-space:nowrap;}
.cp-table td{padding:10px 14px;border-bottom:1px solid var(--cp-border);color:#374151;vertical-align:middle;}
.cp-table tr:last-child td{border-bottom:none;}
.cp-table tr:hover td{background:var(--cp-mist);}
.cp-mono{font-family:'Courier New',Courier,monospace;font-size:11px;}

/* Badge */
.cp-badge{display:inline-flex;align-items:center;gap:3px;border-radius:20px;padding:2px 9px;font-size:10px;font-weight:800;}
.cp-badge.green{background:rgba(5,150,105,.1);color:var(--cp-green);}
.cp-badge.orange{background:rgba(255,107,43,.1);color:var(--cp-accent);}
.cp-badge.blue{background:rgba(37,99,235,.1);color:var(--cp-blue);}
.cp-badge.gold{background:rgba(245,158,11,.1);color:var(--cp-gold);}
.cp-badge.gray{background:#f1f5f9;color:#6b7280;}
.cp-badge.red{background:rgba(220,38,38,.1);color:var(--cp-red);}

/* License card */
.cp-lic-card{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.cp-lic-icon{width:52px;height:52px;background:var(--cp-mist);border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0;}
.cp-lic-info{flex:1;}
.cp-lic-status{font-size:16px;font-weight:800;color:var(--cp-ink);margin-bottom:4px;}
.cp-lic-detail{font-size:12px;color:#9ca3af;}

/* Coin grid */
.cp-coin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}
.cp-coin-item{background:var(--cp-mist);border:1.5px solid var(--cp-border);border-radius:10px;padding:12px;display:flex;align-items:center;gap:10px;transition:all .15s;}
.cp-coin-item:hover{border-color:#d1d5db;background:#fff;}
.cp-coin-item.locked{opacity:.6;}
.cp-coin-ico{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:900;color:#fff;flex-shrink:0;}
.cp-coin-name{font-size:12px;font-weight:700;color:var(--cp-ink);}
.cp-coin-sym{font-size:10px;color:#9ca3af;}

/* Spinner */
.cp-spin{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,107,43,.25);border-top-color:var(--cp-accent);border-radius:50%;animation:cpspin .7s linear infinite;vertical-align:middle;margin-right:5px;}
@keyframes cpspin{to{transform:rotate(360deg);}}

/* Responsive */
@media(max-width:900px){.cp-grid,.cp-grid-3{grid-template-columns:1fr;}.cp-stats{grid-template-columns:1fr 1fr;}.cp-coin-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){.cp-stats{grid-template-columns:1fr;}.cp-coin-grid{grid-template-columns:1fr;}}

/* v1.1.0 additions — new plan system */
.cp-notice-info{background:rgba(37,99,235,.07);border:1px solid rgba(37,99,235,.15);color:#1e3a8a;}
.cp-notice-warn{background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.2);color:#78350f;}
.cp-notice-ok  {background:rgba(5,150,105,.08);border:1px solid rgba(5,150,105,.2);color:#065f46;}
.cp-notice-err {background:rgba(220,38,38,.07);border:1px solid rgba(220,38,38,.2);color:#991b1b;}
.cp-badge-gold{background:rgba(245,158,11,.1);color:#b45309;}
.cp-badge-gray{background:#f1f5f9;color:#6b7280;}
.cp-coin-item-locked{opacity:.6;cursor:not-allowed;}
.cp-mono{font-family:'Courier New',Courier,monospace;font-size:12px;}
.cp-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;}
@media(max-width:700px){.cp-grid-3{grid-template-columns:1fr;}}
