*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,Arial,sans-serif;
    background:#eef3fa;
    color:#111827;
}

.page{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.pay-card{
    width:100%;
    max-width:550px;
    background:#fff;
    border-radius:20px;
    padding:35px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.brand h1{
    font-size:32px;
    margin-bottom:8px;
}

.brand p{
    color:#64748b;
    margin-bottom:25px;
}

.form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.form label{
    font-weight:600;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.form input{
    width:100%;
    height:50px;
    border:1px solid #dbe3ef;
    border-radius:12px;
    padding:0 15px;
    font-size:15px;
}

.form input:focus{
    outline:none;
    border-color:#2563eb;
}

.primary-btn{
    height:52px;
    border:none;
    border-radius:12px;
    background:#2563eb;
    color:#fff;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
}

.primary-btn:hover{
    background:#1d4ed8;
}

a.primary-btn.dashboard-action{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 20px;
    text-decoration:none;
    white-space:nowrap;
}

.alert{
    padding:14px;
    border-radius:10px;
    margin-bottom:15px;
}

.alert.success{
    background:#dcfce7;
    color:#166534;
}

.alert.error{
    background:#fee2e2;
    color:#991b1b;
}

.secure-note{
    margin-top:20px;
    text-align:center;
}

.secure-note a{
    color:#2563eb;
    text-decoration:none;
}

.required{
    color:red;
}

.optional{
    color:#64748b;
    font-size:13px;
}



.dashboard-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px 1fr;
  background:#eef3fa;
}

.sidebar{
  background:#0f172a;
  color:#fff;
  padding:24px;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.side-brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.side-logo{
  width:44px;
  height:44px;
  border-radius:14px;
  background:linear-gradient(135deg,#2563eb,#10b981);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:22px;
}

.side-brand h2{
  font-size:18px;
  margin:0;
}

.side-brand p{
  font-size:12px;
  color:#94a3b8;
  margin:3px 0 0;
}

.side-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.side-nav a,
.side-logout{
  color:#cbd5e1;
  text-decoration:none;
  padding:13px 14px;
  border-radius:14px;
  font-weight:800;
}

.side-nav a.active,
.side-nav a:hover{
  background:#1e293b;
  color:#fff;
}

.side-logout{
  margin-top:auto;
  background:#ef4444;
  color:#fff;
  text-align:center;
}

.dashboard-main{
  padding:32px;
  max-width:1280px;
  width:100%;
}

.dashboard-top{
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:24px;
  padding:24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
  box-shadow:0 16px 40px rgba(15,23,42,.06);
}

.dashboard-top h1{
  margin:0;
  font-size:32px;
  font-weight:900;
}

.dashboard-top p{
  margin:6px 0 0;
  color:#64748b;
}

.merchant-profile-card{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:20px;
}

.merchant-profile-card div{
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 26px rgba(15,23,42,.05);
}

.merchant-profile-card span{
  display:block;
  color:#64748b;
  font-size:13px;
  margin-bottom:6px;
}

.merchant-profile-card strong{
  font-size:14px;
  word-break:break-word;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:26px 0 14px;
}

.section-head h2{
  margin:0;
  font-size:22px;
  font-weight:900;
}

.section-head p{
  margin:5px 0 0;
  color:#64748b;
}

.section-head a{
  background:#2563eb;
  color:#fff;
  text-decoration:none;
  padding:12px 16px;
  border-radius:12px;
  font-weight:900;
}

.premium-table td small{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12px;
}

.badge.approved{
  background:#dcfce7;
  color:#166534;
}

.badge.suspended{
  background:#fee2e2;
  color:#991b1b;
}

@media(max-width:900px){
  .dashboard-shell{
    grid-template-columns:1fr;
  }

  .sidebar{
    position:relative;
  }

  .side-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .dashboard-main{
    padding:16px;
  }

  .dashboard-top,
  .section-head{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }

  .merchant-profile-card{
    grid-template-columns:1fr;
  }
}


.premium-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:22px 0;
}

.premium-stats div{
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:18px;
  padding:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.06);
}

.premium-stats span{
  display:block;
  color:#64748b;
  font-size:14px;
  margin-bottom:8px;
}

.premium-stats b{
  display:block;
  font-size:26px;
  font-weight:900;
  color:#0f172a;
}

.premium-table-box{
  overflow:auto;
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:22px;
  box-shadow:0 14px 35px rgba(15,23,42,.07);
}

.premium-table{
  width:100%;
  min-width:850px;
  border-collapse:collapse;
}

.premium-table th,
.premium-table td{
  padding:15px 16px;
  border-bottom:1px solid #eef2f7;
  text-align:left;
  font-size:14px;
  white-space:nowrap;
}

.premium-table th{
  background:#f8fbff;
  color:#334155;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
}

.empty-row{
  text-align:center!important;
  padding:28px!important;
  color:#64748b;
}

.badge.pending{
  background:#fef3c7;
  color:#92400e;
  padding:7px 11px;
  border-radius:999px;
  font-weight:900;
}

.badge.approved{
  background:#dcfce7;
  color:#166534;
  padding:7px 11px;
  border-radius:999px;
  font-weight:900;
}

.badge.completed{
  background:#dcfce7;
  color:#166534;
  padding:7px 11px;
  border-radius:999px;
  font-weight:900;
}

.badge.failed,
.badge.suspended{
  background:#fee2e2;
  color:#991b1b;
  padding:7px 11px;
  border-radius:999px;
  font-weight:900;
}

@media(max-width:900px){
  .premium-stats{
    grid-template-columns:1fr;
  }
}


.api-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:22px;
}

.api-card{
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:22px;
  padding:22px;
  box-shadow:0 14px 35px rgba(15,23,42,.07);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.api-card span{
  display:block;
  color:#64748b;
  font-size:14px;
  margin-bottom:8px;
}

.api-card strong{
  display:block;
  font-size:15px;
  word-break:break-all;
  color:#0f172a;
}

.api-card small{
  display:block;
  margin-top:8px;
  color:#ef4444;
  font-size:12px;
}

.api-card button{
  border:0;
  background:#2563eb;
  color:#fff;
  padding:11px 14px;
  border-radius:12px;
  font-weight:900;
  cursor:pointer;
}

.api-card.secret{
  border-color:#fed7aa;
  background:#fffaf5;
}

.settings-card{
  background:#fff;
  border:1px solid #e5eefc;
  border-radius:22px;
  padding:24px;
  box-shadow:0 14px 35px rgba(15,23,42,.07);
  margin-bottom:22px;
}

.settings-card h2{
  margin:0;
  font-size:22px;
  font-weight:900;
}

.settings-card p{
  margin:6px 0 18px;
  color:#64748b;
}

.endpoint-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid #eef2f7;
}

.endpoint-row:last-child{
  border-bottom:0;
}

.endpoint-row span{
  font-weight:900;
  color:#334155;
}

.endpoint-row code{
  color:#2563eb;
  word-break:break-all;
}

@media(max-width:900px){
  .api-grid{
    grid-template-columns:1fr;
  }

  .endpoint-row{
    flex-direction:column;
  }
}

.api-card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    border:1px solid #e5eefc;
    box-shadow:0 10px 25px rgba(15,23,42,.06);
}

.api-card strong{
    display:block;
    margin-top:8px;
    font-size:15px;
    line-height:1.6;
    word-break:break-all;
}

.api-card button{
    min-width:90px;
}

.settings-card{
    background:#fff;
    border-radius:20px;
    padding:24px;
    border:1px solid #e5eefc;
    box-shadow:0 10px 25px rgba(15,23,42,.06);
}

.settings-card form{
    margin-top:15px;
}

.settings-card input{
    width:100%;
    height:52px;
    border:1px solid #dbe3ef;
    border-radius:12px;
    padding:0 15px;
    margin-top:8px;
}

.endpoint-row{
    align-items:center;
}

.endpoint-row code{
    background:#f8fafc;
    padding:8px 12px;
    border-radius:10px;
    border:1px solid #e2e8f0;
}

select{
    width:100%;
    height:50px;
    border:1px solid #dbe3ef;
    border-radius:12px;
    padding:0 15px;
    background:#fff;
}


.mini-btn{
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    font-weight:700;
}

.mini-btn.approve{
    background:#16a34a;
    color:#fff;
}

.mini-btn.pending{
    background:#2563eb;
    color:#fff;
}

.mini-btn.suspend{
    background:#dc2626;
    color:#fff;
}

.inline-actions{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
}

.webhook-table code{
  overflow-wrap:anywhere;
  white-space:normal;
}
