:root {
  --bg: #000000;
  --panel: #000000;
  --panel-soft: #f7fbffc2;
  --border: #ffffff78;
  --text: #ffffff;
  --muted: #ffffffbe;
  --brand: #1d9bf0;
  --brand-dark: #ffffffbd;
  --danger: #dc2626;
  --ok: #15803d;
  --shadow: 0 10px 24px rgba(11, 40, 66, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  /* font-family: "sans serif","Segoe UI", "SF Pro Text", "Helvetica Neue", sans-serif; */
  /* background: radial-gradient(
    circle at 20% 0%,
    #1f1f1f 0%,
    var(--bg) 35%,
    #1f1f1f 100%
  ); */
  background-color: black;
  color: var(--text);
}

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

a:hover {
  text-decoration: underline;
}

.page-shell {
  max-width: 2000px;
  margin: 0 auto;
  padding: 20px 14px 28px;
}

.logo {
  width: 100%;
  /* height: 100%; */
}

.logo img {
  width: 100px;
  height: 100%;
  border-radius: 50%;
}

.topbar {
  max-width: 2000px;
  margin: 0 auto 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(217, 231, 243, 0.533);
}

.topbar-brand {
  font-weight: 800;
  font-size: 18px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mobile-bottom-nav {
  display: none;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  /* border-radius: var(--radius); */
  padding: 24px;
}

.brand-mark {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 6px;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.email-templet {
  background-color: #00000051;
  border: 1px solid rgba(255, 255, 255, 0.323);
  border-radius: 20px;
  margin: 15px;
  padding: 10px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid #c5d8ea;
  background: #1f1f1f;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 14px;
  color: var(--text);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: 2px solid rgba(29, 155, 240, 0.25);
  border-color: var(--brand);
}

.textarea {
  min-height: 86px;
  resize: vertical;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  color: #000000;
  background-color: rgba(255, 255, 255, 0.862);
}

.btn-primary:hover {
  background-color: rgb(255, 255, 255);
}

.btn-soft {
  color: black;
  background-color: rgba(255, 255, 255, 0.862);
  border: 1px solid #cfe4f5;
}

.btn-danger:hover {
  color: #fff;
  background: #ff2525;
}

.btn-danger {
  font-size: 8px;
  font-weight: 600;
  color: #fff;
  background: #ef4444;
}

.inline-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

.error {
  border-radius: 10px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 14px;
}

.success {
  border-radius: 10px;
  padding: 10px 12px;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 14px;
}

.app-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 300px;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.left-nav {
  padding: 14px;
  position: sticky;
  top: 14px;
  height: fit-content;
}

.left-nav h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.nav-links {
  display: grid;
  gap: 8px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: #000000;
}

.main-feed {
  padding: 0;
  overflow: hidden;
}

.feed-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  background: #000000;
}

.composer {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.tweet-card {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.tweet-card:last-child {
  border-bottom: 0;
}

.tweet-author {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tweet-author-profile-img {
  width: 5%;
  height: 5%;
  object-fit: cover;
  background: #ffffff64;
  border-radius: 999px;

}

.tweet-user {
  font-weight: 700;
}

.tweet-handle,
.tweet-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.tweet-content {
  margin: 8px 0px 10px 2px;
  padding-left: 10px;
  line-height: 1.45;
  /* display: flex; */
  /* flex-wrap: wrap; */
  word-break: break-all;
  /* white-space: pre-wrap; */
  /* overflow: auto; */


  /* border: 2px solid rgba(255, 255, 255, 0.155); */
}

.material-icons {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24,

}

.like {
  color: hwb(0 100% 0% / 0.549);
}

.tweet-media {
  width: 50%;
  border-radius: 16px;
  /* border: 1px solid #c9dcec; */
  max-height: 340px;
  object-fit: cover;
}

.tweet-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.right-rail {
  padding: 14px;
  position: sticky;
  top: 14px;
  height: fit-content;
}

.stat {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.cover {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid #000000;
}

.avatar {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 999px;
  border: 4px solid #fff;
  margin-top: -48px;
  background: #e2e8f0;
}

.profile-tabs {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  border-radius: 0;
  border: 0px solid;
  border-bottom: 1px solid rgba(255, 255, 255, 0.291);
  border-top: 1px solid rgba(255, 255, 255, 0.291);
  margin-bottom: 10px;
  height: 25px;

}

.profile-tabs a {
  cursor: pointer;
  /* background-color: #1e1e1e; */
  border-radius: 10px;

}

.search-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.search-item:last-child {
  border-bottom: 0;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 12px;
  }

  .topbar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    position: static;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 45;
    padding: 10px 12px 12px;
    background: rgba(243, 248, 252, 0.96);
    border-top: 1px solid rgba(217, 231, 243, 0.8);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    text-align: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: #000000;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 600;
  }

  .app-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .left-nav,
  .right-rail {
    position: static;
  }

  .left-nav {
    order: 1;
  }

  .main-feed {
    order: 2;
  }
}


/*
  new css
 */


/* html,
body {
    margin: 0;
    padding: 0;
} */

* {
  /* border: 1px solid white; */
  box-sizing: border-box;
}

.container {
  height: 100vh;
  color: white;
  background-color: black;
}

.wrapper {
  display: grid;
  height: 100vh;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  column-gap: 5px;
}

.wrapper>* {
  grid-column: 1/13;
}

.nav {}

.main {}

.aside-search {}



.wrapper-header {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid #cfe4f5c7;
  padding: 15px;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  height: 100%;
  justify-content: center;
  align-items: flex-end;
  border-right: 1px solid #cfe4f5c7;
  padding: 15px;
}

.wrapper-footer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer {
  display: flex;
  flex-direction: row;
}

@media (min-width:768px) {
  .header {
    grid-column: 1/13;
    grid-row: 1/2;
  }

  .nav {
    grid-column: 1/4;
    grid-row: 2/11;
    overflow: auto;
  }

  .main {
    grid-column: 4/10;
    grid-row: 2/11;
    overflow: auto;
  }

  .aside-search {
    grid-column: 10/13;
    grid-row: 2/11;
  }

  .footer {
    grid-column: 1/13;
    grid-row: 11/13;
    display: flex;
    flex-direction: row;
  }

}