/* SympLink Partners — styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f4f8; color: #1a202c; min-height: 100vh; }

/* ── Layout ── */
.p-navbar { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 0 24px; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.p-logo { font-weight: 700; font-size: 18px; color: #1a56db; text-decoration: none; }
.p-logo span { color: #0d9488; }
.p-nav-links a { margin-left: 20px; color: #4a5568; text-decoration: none; font-size: 14px; }
.p-nav-links a:hover { color: #1a56db; }
.p-nav-links .p-btn-sm { background: #1a56db; color: #fff !important; padding: 6px 14px; border-radius: 6px; }

.p-hero { background: linear-gradient(135deg,#1a56db 0%,#0d9488 100%); color: #fff; padding: 80px 24px; text-align: center; }
.p-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 16px; }
.p-hero p { font-size: 18px; opacity: .9; max-width: 600px; margin: 0 auto 32px; }

.p-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.p-section { padding: 60px 0; }
.p-section-title { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.p-section-sub { color: #718096; margin-bottom: 40px; }

/* ── Cards ── */
.p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; }
.p-card { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-card-icon { font-size: 36px; margin-bottom: 12px; }
.p-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.p-card p { font-size: 14px; color: #718096; line-height: 1.6; }

/* ── Rates ── */
.p-rates { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 500px; }
.p-rate { background: #fff; border-radius: 12px; padding: 28px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.p-rate-amount { font-size: 42px; font-weight: 800; color: #1a56db; }
.p-rate-label { font-size: 14px; color: #718096; margin-top: 4px; }

/* ── Auth forms ── */
.p-auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.p-auth-box { background: #fff; border-radius: 16px; padding: 40px; width: 100%; max-width: 440px; box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.p-auth-box h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.p-auth-box p { color: #718096; margin-bottom: 28px; font-size: 14px; }

/* ── Form fields ── */
.p-field { margin-bottom: 16px; }
.p-field label { display: block; font-size: 13px; font-weight: 600; color: #4a5568; margin-bottom: 6px; }
.p-field input, .p-field select, .p-field textarea { width: 100%; padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 14px; outline: none; transition: border-color .2s; }
.p-field input:focus, .p-field select:focus, .p-field textarea:focus { border-color: #1a56db; }
.p-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Buttons ── */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; transition: all .2s; text-decoration: none; }
.p-btn-primary { background: #1a56db; color: #fff; }
.p-btn-primary:hover { background: #1648c0; }
.p-btn-success { background: #059669; color: #fff; }
.p-btn-success:hover { background: #047857; }
.p-btn-danger { background: #dc2626; color: #fff; }
.p-btn-danger:hover { background: #b91c1c; }
.p-btn-outline { background: #fff; color: #1a56db; border: 1px solid #1a56db; }
.p-btn-outline:hover { background: #eff6ff; }
.p-btn-full { width: 100%; }
.p-btn-lg { padding: 14px 28px; font-size: 16px; }
.p-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Alerts ── */
.p-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none; }
.p-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none; }

/* ── Dashboard layout ── */
.p-dash-layout { display: flex; min-height: 100vh; }
.p-sidebar { width: 220px; background: #1e293b; flex-shrink: 0; padding: 20px 0; }
.p-sidebar-logo { padding: 8px 20px 24px; font-size: 18px; font-weight: 700; color: #fff; }
.p-sidebar-logo span { color: #0d9488; }
.p-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #94a3b8; font-size: 14px; text-decoration: none; transition: all .2s; }
.p-sidebar nav a:hover, .p-sidebar nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.p-sidebar-divider { height: 1px; background: rgba(255,255,255,.1); margin: 12px 0; }

.p-dash-main { flex: 1; overflow: auto; }
.p-dash-header { background: #fff; border-bottom: 1px solid #e2e8f0; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; }
.p-dash-header h1 { font-size: 20px; font-weight: 700; }
.p-dash-body { padding: 28px; }

/* ── Stats grid ── */
.p-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.p-stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.07); }
.p-stat-label { font-size: 12px; color: #718096; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.p-stat-value { font-size: 30px; font-weight: 800; color: #1a202c; }
.p-stat-sub { font-size: 12px; color: #718096; margin-top: 4px; }
.p-stat-green { color: #059669; }
.p-stat-blue  { color: #1a56db; }

/* ── Tables ── */
.p-table-wrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.07); overflow: hidden; }
.p-table-header { padding: 16px 20px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; }
.p-table-title { font-size: 16px; font-weight: 700; }
.p-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.p-table th { padding: 12px 16px; text-align: left; font-size: 12px; font-weight: 600; color: #718096; text-transform: uppercase; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.p-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.p-table tr:last-child td { border-bottom: none; }
.p-table tr:hover td { background: #f8fafc; }

/* ── Badges ── */
.p-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.p-badge-new      { background: #dbeafe; color: #1e40af; }
.p-badge-approved { background: #d1fae5; color: #065f46; }
.p-badge-rejected { background: #fee2e2; color: #991b1b; }
.p-badge-pending  { background: #fef3c7; color: #92400e; }
.p-badge-paid     { background: #d1fae5; color: #065f46; }

/* ── Code box ── */
.p-code-box { background: #1e293b; color: #e2e8f0; border-radius: 8px; padding: 16px; font-family: monospace; font-size: 13px; line-height: 1.6; overflow-x: auto; position: relative; }
.p-code-copy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.1); color: #e2e8f0; border: none; border-radius: 4px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.p-code-copy:hover { background: rgba(255,255,255,.2); }

/* ── Panels ── */
.p-panel { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.07); margin-bottom: 20px; }
.p-panel-title { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* ── Loading ── */
.p-loading { text-align: center; padding: 40px; color: #718096; }
.p-spinner { display: inline-block; width: 28px; height: 28px; border: 3px solid #e2e8f0; border-top-color: #1a56db; border-radius: 50%; animation: p-spin .7s linear infinite; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* ── Payment form ── */
.p-payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.p-method-card { border: 2px solid #e2e8f0; border-radius: 8px; padding: 16px; cursor: pointer; transition: border-color .2s; }
.p-method-card.selected { border-color: #1a56db; background: #eff6ff; }
.p-method-card h4 { font-size: 14px; font-weight: 600; }
.p-method-card p { font-size: 12px; color: #718096; }

@media (max-width: 768px) {
  .p-dash-layout { flex-direction: column; }
  .p-sidebar { width: 100%; }
  .p-hero h1 { font-size: 28px; }
  .p-rates { grid-template-columns: 1fr; max-width: 260px; }
  .p-field-row { grid-template-columns: 1fr; }
  .p-stats { grid-template-columns: 1fr 1fr; }
  .p-payment-methods { grid-template-columns: 1fr; }
}
