/* ── Agency Portal CSS ── */
.gap-wrap { max-width: 800px; margin: 40px auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1a1d2e; }

/* Notice */
.gap-notice { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.gap-notice-success { background: #d4f5e0; color: #0a5c2a; border-left: 4px solid #16a34a; }
.gap-notice-error   { background: #fde8e8; color: #9b1c1c; border-left: 4px solid #dc2626; }

/* Login */
.gap-login-wrap  { display: flex; justify-content: center; padding: 40px 0; }
.gap-login-box   { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 40px 36px; width: 100%; max-width: 420px; }
.gap-login-logo  { font-size: 40px; text-align: center; margin-bottom: 12px; }
.gap-login-title { font-size: 22px; font-weight: 700; text-align: center; margin: 0 0 6px; }
.gap-login-sub   { font-size: 14px; color: #6b7280; text-align: center; margin: 0 0 24px; }

/* Fields */
.gap-field { margin-bottom: 16px; }
.gap-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.gap-field input  { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: 14px; box-sizing: border-box; transition: border .2s; }
.gap-field input:focus { outline: none; border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.12); }

/* Buttons */
.gap-btn          { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.gap-btn-primary  { background: #2271b1; color: #fff; }
.gap-btn-primary:hover  { background: #1a5a8f; }
.gap-btn-outline  { background: transparent; color: #374151; border: 1.5px solid #d1d5db; }
.gap-btn-outline:hover  { background: #f9fafb; }
.gap-btn-danger   { background: #fde8e8; color: #dc2626; border: 1px solid #fecaca; }
.gap-btn-danger:hover   { background: #fecaca; }
.gap-btn-sm       { padding: 5px 12px; font-size: 12px; }
.gap-btn-full     { width: 100%; justify-content: center; margin-top: 8px; }

/* Header */
.gap-header       { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.gap-dashboard-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.gap-dashboard-sub   { font-size: 14px; color: #6b7280; margin: 0; }

/* Stats */
.gap-stats        { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.gap-stat-card    { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 20px; display: flex; align-items: center; gap: 16px; }
.gap-stat-icon    { font-size: 28px; }
.gap-stat-label   { font-size: 12px; color: #888; margin-bottom: 4px; }
.gap-stat-value   { font-size: 24px; font-weight: 700; line-height: 1; }

/* Card */
.gap-card         { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.06); padding: 24px 28px; }
.gap-card-title   { font-size: 16px; font-weight: 700; margin: 0 0 16px; }

/* Table */
.gap-table-wrap   { overflow-x: auto; }
.gap-table        { width: 100%; border-collapse: collapse; font-size: 13px; }
.gap-table th     { text-align: left; padding: 10px 12px; background: #f9fafb; border-bottom: 2px solid #e5e7eb; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; word-spacing: 2px; color: #6b7280; font-weight: 700; }
.gap-table td     { padding: 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.gap-table tr:last-child td { border-bottom: none; }
.gap-table tr:hover td { background: #fafafa; }

/* Badge */
.gap-badge        { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.gap-badge-active { background: #d4f5e0; color: #0a5c2a; }
.gap-badge-unused { background: #f3f4f6; color: #6b7280; }

/* Code + Copy */
.gap-code         { background: #f0f4f8; padding: 3px 8px; border-radius: 4px; font-size: 12px; letter-spacing: .5px; }
.gap-copy-btn     { background: none; border: none; cursor: pointer; font-size: 14px; padding: 2px 4px; margin-left: 4px; opacity: .6; transition: opacity .2s; }
.gap-copy-btn:hover { opacity: 1; }

/* Responsive */
@media (max-width: 600px) {
    .gap-wrap { margin: 20px 16px; }
    .gap-login-box { padding: 28px 20px; }
    .gap-card { padding: 18px 16px; }
    .gap-stats { grid-template-columns: 1fr 1fr; }
    .gap-stat-value { font-size: 20px; }
}