:root {
  --brand: #2f5fed;
  --brand-dark: #1f3fb8;
  --bg: #f5f7fb;
  --card-bg: #46fde581;
  --text: #000000;
  --muted: #000000;
  --border: #e5e8f0;
  --success: #1a9e5c;
  --error: #d64545;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
}

* { box-sizing: border-box; }

nav{

    width:100%;

    padding:20px 7%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    position:fixed;

    top:0;

    left:0;

    backdrop-filter:blur(18px);

    background:rgba(255,255,255,.75);

    border-bottom:1px solid rgba(255,255,255,.25);

    z-index:999;

}

.logo-area{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo{

    width:60px;

    height:60px;

    object-fit:cover;

    border-radius:50%;

    box-shadow:0 12px 35px rgba(0,0,0,.18);

    border:4px solid #fff;

}

.logo-area h2{

    font-size:30px;

    color:var(--primary);

    font-weight:700;

}
nav ul{

    display:flex;

    gap:35px;

    align-items:center;

    list-style:none;

}

nav ul li a{

    text-decoration:none;

    color:#333;

    font-weight:500;

    transition:.3s;

}

nav ul li a:hover{

    color:var(--primary);

}

.btn-nav{

    background:var(--primary);

    color:white!important;

    padding:12px 28px;

    border-radius:50px;

    transition:.3s;

}

.btn-nav:hover{

    background:var(--primary-dark);

}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 320px);
  color: var(--text);
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brand-dark);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.wrap {
  max-width: 460px;
  margin: 30px auto 60px;
  padding: 0 18px;
}

.wrap.wide { max-width: 1080px; }

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}

h1 {
  font-size: 1.35rem;
  margin: 0 0 4px;
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 22px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--text);
}

input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  background: #fbfcfe;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 95, 237, 0.14);
  background: #fff;
}

textarea { resize: vertical; min-height: 110px; font-family: inherit; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-top: 20px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  background: #eef1f8;
  color: var(--text);
}
.btn-secondary:hover { background: #e2e6f2; }

.btn-danger { background: var(--error); }
.btn-danger:hover { background: #b93636; }

.toggle-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.toggle-option {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  user-select: none;
}

.toggle-option.active {
  background: rgba(47, 95, 237, 0.1);
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.msg {
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-top: 14px;
}

.msg.error { background: #fdecec; color: var(--error); }
.msg.success { background: #e9f9f0; color: var(--success); }
.msg.hidden { display: none; }

.credit-balance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f4f6fb;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.credit-balance strong { color: var(--brand-dark); font-size: 1.05rem; }

.amount-preview {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  margin-top: 14px;
  font-size: 0.95rem;
}

.amount-preview strong { font-size: 1.15rem; }

.step { display: none; }
.step.active { display: block; }

.link-row {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
}

.link-row a { color: var(--brand); text-decoration: none; font-weight: 600; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:hover td { background: #fafbff; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge.new { background: #fdecec; color: var(--error); }
.badge.read { background: #eef1f8; color: var(--muted); }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tab {
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.tab.active { color: var(--brand-dark); border-color: var(--brand); }

.mini-input {
  width: 64px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.row-actions { display: flex; gap: 6px; align-items: center; }

.top-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
