/* =========================
   GLOBAL
========================= */
:root {
  --bg-dark: #0b0f1a;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
  --input-bg: rgba(0,0,0,0.25);
  --input-border: rgba(255,255,255,0.12);
  --text-main: #eaf0ff;
  --accent: #6ee7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   LAYOUT
========================= */
.wrap {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
}

/* =========================
   LOGO
========================= */
.logo {
  text-align: center;
  margin-bottom: 12px;
}

.logo img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

/* =========================
   FORMS
========================= */
input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  margin: 6px 0 12px;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #001018;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

label {
  font-size: 13px;
  opacity: 0.9;
}

.hint {
  font-size: 12px;
  opacity: 0.8;
  line-height: 1.35;
}

.err {
  color: #ffb4b4;
  margin-top: 8px;
}

/* =========================
   PROFILE PAGE
========================= */
.profile {
  text-align: center;
  padding: 18px 12px 12px;
}

.avatar{
  width:88px;
  height:88px;
  border-radius:999px;
  margin:0 auto 10px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);

  /* new */
  display:flex;
  align-items:center;
  justify-content:center;
}

.avatar img{
  /* new */
  width:100%;
  height:100%;
  object-fit:cover;        /* fills circle without distortion */
  object-position:center;  /* centers the crop */
  display:block;
}

h1 {
  margin: 6px 0;
  font-size: 22px;
}

.bio {
  max-width: 46ch;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.35;
}

/* =========================
   SOCIAL ICONS
========================= */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.socials a {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
}

/* =========================
   LINKS
========================= */
.links {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.link {
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  text-align: center;
  font-weight: 600;
  transition: transform 0.06s ease, border-color 0.06s ease;
}

.link:hover {
  transform: translateY(-1px);
  border-color: rgba(110,231,255,0.45);
}

.featured {
  border-color: rgba(110,231,255,0.45);
  box-shadow: 0 0 0 2px rgba(110,231,255,0.07) inset;
}

/* =========================
   ADS
========================= */
.ad {
  margin-top: 14px;
}

.ad iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
  height: 90px;
}

/* =========================
   DASHBOARD
========================= */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 820px) {
  .row {
    grid-template-columns: 1fr;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px;
  font-size: 14px;
  text-align: left;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
}
