/* =====================================================================
   GLOBAL
   ===================================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #050505;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px 40px;
}

/* chat page အတွက် အထူး rule */

/* =====================================================================
   TOPBAR
   ===================================================================== */
/* =====================================================================
   TOPBAR — professional SaaS header
   ===================================================================== */
.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  height: 60px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

/* -------- brand -------- */
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.2px;
  flex-shrink: 0;
}
.topbar .brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background:
    linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  position: relative;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .35);
}
.topbar .brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  border-radius: 2px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}
.topbar .brand-text { color: #0f172a; }

/* -------- nav -------- */
.topbar .main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.topbar .main-nav::-webkit-scrollbar { display: none; }

.topbar .main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.topbar .main-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.topbar .main-nav a.active {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}
.topbar .main-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: #2563eb;
  border-radius: 2px 2px 0 0;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

/* -------- user area -------- */
.topbar .user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-info {
  text-align: right;
  line-height: 1.2;
  padding-right: 10px;
  border-right: 1px solid #e2e8f0;
}
.user-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}
.user-role { font-size: 11.5px; color: #64748b; margin-top: 1px; }
.user-role .credits-line { color: #2563eb; font-weight: 600; }
.user-role .credits-line::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #2563eb;
  margin-right: 5px;
  vertical-align: middle;
}

.vbadge-sm {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

/* -------- icon button (bell) -------- */
.icon-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s, border-color .12s;
}
.icon-btn:hover { background: #f1f5f9; color: #0f172a; }
.icon-btn.on {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #eff6ff;
}
.icon-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* -------- log out button -------- */
.topbar .btn.tiny {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.topbar .btn.tiny:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* -------- mobile -------- */
@media (max-width: 800px) {
  .topbar { gap: 12px; padding: 0 14px; }
  .topbar .brand-text { display: none; }
  .topbar .main-nav a { padding: 8px 10px; font-size: 13px; }
  .user-info { display: none; }
}

/* =====================================================================
   BUTTONS / INPUTS / CARDS
   ===================================================================== */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 8px;
  border: 1px solid #d1d5db; background: #f3f4f6; cursor: pointer;
  font: inherit; text-decoration: none; color: #111827;
  font-weight: 600; font-size: 14px; transition: all .15s;
}
.btn:hover { background: #e5e7eb; }
.btn.tiny { padding: 4px 10px; font-size: 12px; }
.btn.primary {
  background: #1877F2; border-color: #1877F2; color: #fff;
}
.btn.primary:hover { background: #166fe5; border-color: #166fe5; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

label {
  display: block; margin: 12px 0;
  font-weight: 600; font-size: 13px; color: #334155;
}
input, select, textarea {
  display: block; width: 100%; padding: 10px 12px; margin-top: 5px;
  border: 1px solid #cfd5df; border-radius: 8px;
  font: inherit; background: #fff; color: #050505;
}
input:focus, select:focus {
  outline: none; border-color: #1877F2;
  box-shadow: 0 0 0 3px rgba(24,119,242,.15);
}

.card {
  background: #fff; border: 1px solid #e4e6eb; border-radius: 12px;
  padding: 20px; margin: 12px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.stat .k {
  color: #65676b; font-size: 12px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 600;
}
.stat .v {
  font-size: 30px; font-weight: 700; color: #050505; margin-top: 6px;
}

.alert {
  background: #fff3cd; color: #664d03;
  padding: 10px 14px; border-radius: 8px; margin: 10px 0;
  border: 1px solid #ffe69c;
}

.tbl {
  width: 100%; background: #fff; border-collapse: separate;
  border-spacing: 0; border: 1px solid #e4e6eb;
  border-radius: 12px; overflow: hidden;
}
.tbl th, .tbl td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid #f0f2f5; font-size: 13.5px;
}
.tbl th { background: #f7f9fc; font-weight: 700; color: #65676b; }
.tbl tr:last-child td { border-bottom: 0; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.muted { color: #65676b; }
pre.out {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 10px;
  white-space: pre-wrap;
  font-family: ui-monospace, Consolas, monospace;
  margin-top: 10px;
  font-size: 13px;
}
pre.out a { color: #7dd3fc; }

.center {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.login { width: 360px; }
.login h1 { margin: 0 0 6px; font-size: 22px; color: #1877F2; }

.foot {
  text-align: center; color: #8a8d91;
  padding: 24px; font-size: 12px;
}
h1 { margin: 0 0 16px; font-size: 24px; }
h2 { margin: 28px 0 12px; font-size: 18px; }

/* =====================================================================
   MESSENGER CHAT
   ===================================================================== */
.messenger {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  height: calc(100vh - 130px);
  min-height: 560px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* ---------------- SIDEBAR ---------------- */
.msgr-side {
  border-right: 1px solid #e4e6eb;
  display: flex; flex-direction: column;
  background: #fff;
  overflow: hidden;
}
.msgr-side-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f2f5;
}
.msgr-side-head h2 {
  margin: 0 0 10px; font-size: 22px; font-weight: 700;
}
.msgr-search {
  display: flex; align-items: center; gap: 8px;
  background: #f0f2f5; border-radius: 20px;
  padding: 8px 14px;
}
.msgr-search svg { flex-shrink: 0; }
.msgr-search input {
  border: 0; background: transparent; margin: 0; padding: 0;
  font-size: 14px; color: #050505;
}
.msgr-search input:focus { box-shadow: none; }

.msgr-list {
  flex: 1; overflow-y: auto; padding: 6px 8px;
}
.msgr-list::-webkit-scrollbar { width: 8px; }
.msgr-list::-webkit-scrollbar-thumb {
  background: #ccd0d5; border-radius: 4px;
}

.msgr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px; border-radius: 10px;
  color: #050505; text-decoration: none;
  position: relative; transition: background .12s;
}
.msgr-item:hover { background: #f0f2f5; }
.msgr-item.active { background: #e7f3ff; }
.msgr-item-meta { flex: 1; min-width: 0; }
.msgr-item-name {
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msgr-item-sub {
  font-size: 12.5px; color: #65676b; margin-top: 2px;
  display: flex; align-items: center; gap: 5px;
}
.dot-on {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: #31a24c; flex-shrink: 0;
}
.msgr-unread {
  background: #1877F2; color: #fff;
  border-radius: 12px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; min-width: 20px;
  text-align: center; flex-shrink: 0;
}
.msgr-empty {
  padding: 24px 16px; text-align: center;
  color: #8a8d91; font-size: 13px;
}

/* ---------------- AVATARS ---------------- */
.msgr-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #1877F2, #0c5fd6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  flex-shrink: 0; position: relative;
  user-select: none; overflow: visible;
}
.msgr-avatar[data-role="reseller"] {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}
.msgr-avatar[data-role="admin"] {
  background: linear-gradient(135deg, #1877F2, #0c5fd6);
}
.msgr-avatar[data-role="partner"] {
  background: linear-gradient(135deg, #94a3b8, #475569);
}

/* Facebook-style green presence dot on avatar */
.msgr-avatar.online::after {
  content: "";
  position: absolute; right: -1px; bottom: -1px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #31a24c;
  border: 3px solid #fff;
}
.msgr-avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.msgr-avatar.sm.online::after {
  width: 11px; height: 11px; border-width: 2px;
}
.msgr-avatar.ghost { visibility: hidden; }

/* ---------------- MAIN PANEL ---------------- */
.msgr-main {
  display: flex; flex-direction: column;
  background: #fff; min-width: 0;
}

.msgr-head {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid #e4e6eb;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  z-index: 2;
}
.msgr-head-meta { flex: 1; min-width: 0; }
.msgr-head-name {
  font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msgr-head-sub {
  font-size: 12.5px; color: #65676b; margin-top: 1px;
  display: flex; align-items: center; gap: 5px;
}
.msgr-head-actions {
  display: flex; gap: 4px;
}
.msgr-head-actions button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.msgr-head-actions button:hover { background: #f0f2f5; }

/* ---------------- MESSAGE LOG ---------------- */
.msgr-log {
  flex: 1; overflow-y: auto;
  padding: 14px 18px 8px;
  background: #fff;
  display: flex; flex-direction: column;
}
.msgr-log::-webkit-scrollbar { width: 8px; }
.msgr-log::-webkit-scrollbar-thumb {
  background: #ccd0d5; border-radius: 4px;
}

.msgr-day {
  align-self: center;
  font-size: 11px; font-weight: 600;
  color: #65676b; background: #f0f2f5;
  padding: 3px 10px; border-radius: 12px;
  margin: 10px 0;
}

.msgr-msg {
  display: flex; align-items: flex-end;
  gap: 8px; margin: 1px 0;
  max-width: 100%;
}
.msgr-msg.in  { justify-content: flex-start; }
.msgr-msg.out { justify-content: flex-end;   }
.msgr-msg + .msgr-msg.grouped { margin-top: 0; }

.msgr-bubble {
  max-width: 62%;
  padding: 8px 14px;
  border-radius: 18px;
  font-size: 15px; line-height: 1.35;
  word-wrap: break-word; overflow-wrap: anywhere;
  position: relative;
  animation: pop .16s ease-out;
}
@keyframes pop {
  from { transform: translateY(4px); opacity: .25; }
  to   { transform: translateY(0);   opacity: 1;   }
}

.msgr-bubble .txt { white-space: pre-wrap; }

/* Incoming — light gray, tail on lower-left */
.msgr-msg.in .msgr-bubble {
  background: #f0f2f5; color: #050505;
  border-bottom-left-radius: 18px;
}
.msgr-msg.in:not(.grouped) .msgr-bubble {
  border-bottom-left-radius: 6px;
}

/* Outgoing — messenger blue gradient, tail on lower-right */
.msgr-msg.out .msgr-bubble {
  background: linear-gradient(135deg, #1877F2, #0c5fd6);
  color: #fff;
}
.msgr-msg.out:not(.grouped) .msgr-bubble {
  border-bottom-right-radius: 6px;
}

/* Typing bubble */
.msgr-bubble.typing {
  padding: 12px 16px;
  background: #f0f2f5 !important;
  display: inline-flex; gap: 5px; align-items: center;
  border-bottom-left-radius: 6px;
}
.msgr-bubble.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #8a8d91;
  animation: tp 1.2s infinite ease-in-out;
}
.msgr-bubble.typing span:nth-child(2) { animation-delay: .15s; }
.msgr-bubble.typing span:nth-child(3) { animation-delay: .30s; }
@keyframes tp {
  0%, 60%, 100% { transform: translateY(0);    opacity: .45; }
  30%           { transform: translateY(-4px); opacity: 1;   }
}

.msgr-placeholder {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #8a8d91; font-size: 14px;
}

/* ---------------- COMPOSER ---------------- */
.msgr-composer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #e4e6eb;
  background: #fff;
}
.msgr-composer input {
  flex: 1; margin: 0;
  padding: 10px 16px;
  border-radius: 20px;
  border: 0;
  background: #f0f2f5;
  font-size: 15px;
}
.msgr-composer input:focus {
  background: #f0f2f5;
  box-shadow: none;
  outline: none;
}
.composer-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s;
}
.composer-icon:hover { background: #f0f2f5; }
.composer-send {
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: #1877F2;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, transform .08s;
}
.composer-send:hover  { background: #166fe5; }
.composer-send:active { transform: scale(.94); }

/* ---------------- BADGES ---------------- */
.pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  letter-spacing: .3px; text-transform: uppercase;
  line-height: 1.4;
}
.pill-reseller {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}
.vbadge {
  display: inline-flex; align-items: center;
  line-height: 0; flex-shrink: 0;
}
.vbadge svg { display: block; }
#notifyBtn {
  border: 1px solid #cfd5df;
  background: #fff;
  color: #1877F2;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .12s;
}
#notifyBtn:hover { background: #e7f3ff; }
#notifyBtn[disabled] { opacity: .55; cursor: not-allowed; }
/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .messenger { grid-template-columns: 260px 1fr; }
  .msgr-bubble { max-width: 75%; }
}
@media (max-width: 720px) {
  .messenger { grid-template-columns: 1fr; height: auto; }
  .msgr-side  { max-height: 240px; border-right: 0; border-bottom: 1px solid #e4e6eb; }
  .msgr-main  { min-height: 480px; }
  .msgr-bubble { max-width: 82%; }
  .container  { padding: 0 10px 40px; }
}

/* =====================================================================
   CHAT PAGE — dedicated layout (body.page-chat)
   ===================================================================== */
body.page-chat {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.page-chat > .topbar {
  flex: 0 0 auto;
}

/* Chat wrapper fills the rest of the viewport */
body.page-chat .messenger {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;              /* override any previous height */
  margin: 10px;
  display: grid;
  grid-template-columns: 340px 1fr;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

body.page-chat .msgr-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid #e4e6eb;
}

body.page-chat .msgr-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 8px;
}

body.page-chat .msgr-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body.page-chat .msgr-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 18px 8px;
  display: flex;
  flex-direction: column;
}

body.page-chat .msgr-composer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #e4e6eb;
  background: #fff;
}

/* Footer never shows on chat page */
body.page-chat .foot { display: none; }

/* =====================================================================
   FOOTER — stable height, clean, professional
   ===================================================================== */
.site-foot {
  /* Fixed height so every page has identical footer */
  height: 56px;
  min-height: 56px;
  max-height: 56px;

  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Push to bottom when content is short */
  margin-top: auto;

  /* Prevent layout shift */
  box-sizing: border-box;
  flex-shrink: 0;
}

.foot-inner {
  width: 100%;
  max-width: 1200px;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  font-size: 12.5px;
  color: #64748b;
  line-height: 1;
}

.foot-left,
.foot-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Brand text */
.foot-brand {
  color: #0f172a;
  font-weight: 600;
  letter-spacing: -.1px;
}
.foot-meta {
  color: #64748b;
}

/* Middle dot separator */
.foot-sep {
  color: #cbd5e1;
}

/* Link style */
.foot-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color .12s;
}
.foot-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Sticky footer helper — page fills viewport even when content is short */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > .container,
body > main.container {
  flex: 1 0 auto;
}
/* Chat page overrides its own layout, so exclude it */
body.page-chat {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

/* -------- Mobile -------- */
@media (max-width: 640px) {
  .site-foot {
    height: auto;
    min-height: 56px;
    max-height: none;
    padding: 12px 0;
  }
  .foot-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .foot-left,
  .foot-right {
    justify-content: center;
  }
}
/* =====================================================================
   LOGIN / AUTH PAGE
   ===================================================================== */
.auth-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 15% -10%, #eaf2ff 0%, transparent 60%),
    radial-gradient(900px 500px at 110% 110%, #eef2ff 0%, transparent 55%),
    #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
}

.auth-wrap {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 20px 45px -20px rgba(15,23,42,.18);
}

/* -------- left card -------- */
.auth-card {
  padding: 40px 40px 30px;
  display: flex;
  flex-direction: column;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  position: relative;
  box-shadow: 0 1px 2px rgba(37, 99, 235, .35);
}
.auth-brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  border-radius: 2px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}
.auth-brand-text {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  letter-spacing: -.2px;
}

.auth-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.3px;
}
.auth-sub {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.5;
}

/* -------- error -------- */
.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-error svg { flex-shrink: 0; }

/* -------- form -------- */
.auth-form .field { margin-bottom: 14px; }
.auth-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.auth-form input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.auth-form input::placeholder { color: #94a3b8; }
.auth-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* password with show/hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px; }
.pw-toggle {
  position: absolute;
  top: 50%; right: 6px;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .12s, background .12s;
}
.pw-toggle:hover { color: #475569; background: #f1f5f9; }

/* submit */
.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  transition: background .12s, transform .04s;
}
.auth-submit:hover  { background: #1d4ed8; border-color: #1d4ed8; }
.auth-submit:active { transform: translateY(1px); }

/* footer */
.auth-foot {
  margin-top: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

/* -------- right panel -------- */
.auth-side {
  position: relative;
  background:
    linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #2563eb 100%);
  color: #fff;
  padding: 40px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(255,255,255,.15) 0%, transparent 60%),
    radial-gradient(500px 300px at -10% 100%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.auth-side-inner { position: relative; max-width: 320px; }

.auth-side-mark {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  position: relative;
  margin-bottom: 22px;
}
.auth-side-mark::after {
  content: "";
  position: absolute;
  inset: 12px 13px;
  border-radius: 3px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}

.auth-side h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}
.auth-side p {
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
}

.auth-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.auth-features li {
  font-size: 13.5px;
  color: rgba(255,255,255,.92);
  padding-left: 24px;
  position: relative;
}
.auth-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.45);
}
.auth-features li::after {
  content: "";
  position: absolute;
  left: 4px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.auth-side-foot {
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.auth-side-foot strong { color: #fff; font-weight: 600; }

/* -------- mobile -------- */
@media (max-width: 780px) {
  .auth-wrap { grid-template-columns: 1fr; max-width: 460px; }
  .auth-side { display: none; }
  .auth-card { padding: 32px 26px 24px; }
}

/* =====================================================================
   PAGE TRANSITION ANIMATIONS
   ===================================================================== */

/* -------- page entrance (login + dashboard) -------- */
body {
  opacity: 0;
  transition: opacity .35s ease;
}
body.page-ready {
  opacity: 1;
}

/* Page head fade-up on every page load */
.page-head,
.container > h1,
.container > h2,
.dash-grid,
.lic-summary,
.tbl-wrap,
.card,
.section-head {
  animation: fadeUp .42s cubic-bezier(.22, .8, .28, 1) both;
}

.container > h1        { animation-delay: .02s; }
.page-head             { animation-delay: .02s; }
.dash-grid             { animation-delay: .08s; }
.container > h2        { animation-delay: .10s; }
.section-head          { animation-delay: .12s; }
.card                  { animation-delay: .06s; }
.lic-summary           { animation-delay: .06s; }
.tbl-wrap              { animation-delay: .14s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ---------- Login page leaving animation ---------- */
.auth-body.leaving {
  opacity: 1; /* keep visible while children animate */
}

.auth-card.card-leaving {
  animation: cardOut .5s cubic-bezier(.4, 0, .2, 1) forwards;
}

.auth-side.side-leaving {
  animation: sideOut .5s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes cardOut {
  from { opacity: 1; transform: translateY(0)   scale(1);    }
  to   { opacity: 0; transform: translateY(-6px) scale(.98); }
}

@keyframes sideOut {
  from { opacity: 1; transform: translateX(0)  scale(1);    }
  to   { opacity: 0; transform: translateX(8px) scale(.99); }
}

/* optional: whole wrap pulse */
.auth-wrap {
  animation: wrapIn .5s cubic-bezier(.22, .8, .28, 1) both;
}
@keyframes wrapIn {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* -------- Spinner inside submit button -------- */
.auth-submit.loading {
  cursor: progress;
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.auth-submit .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
  
  
}

/* =====================================================================
   USER MENU (header dropdown)
   ===================================================================== */
.user-menu { position: relative; }

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.user-trigger:hover { background: #f1f5f9; border-color: #e2e8f0; }

.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.user-avatar[data-role="reseller"] {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.user-trigger-info {
  display: flex; flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.user-trigger-info .user-name {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: #0f172a;
}
.user-trigger-info .user-role {
  font-size: 11.5px; color: #64748b;
}
.user-caret {
  color: #94a3b8;
  transition: transform .15s;
}
.user-dropdown.open ~ .user-caret,
.user-menu:has(.user-dropdown.open) .user-caret {
  transform: rotate(180deg);
}

/* -------- dropdown panel -------- */
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 12px 32px -12px rgba(15,23,42,.20);
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 100;
}
.user-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #334155;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dropdown-item:hover { background: #f1f5f9; color: #0f172a; }
.dropdown-item.danger { color: #b91c1c; }
.dropdown-item.danger:hover { background: #fef2f2; color: #991b1b; }
.dropdown-item svg { flex-shrink: 0; }
.dropdown-sep {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 4px;
}

/* =====================================================================
   MODAL (change password)
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);

  opacity: 0;
  transition: opacity .22s ease;
}
.modal-backdrop.open { opacity: 1; }

.modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 1px 2px rgba(15,23,42,.05),
    0 24px 60px -20px rgba(15,23,42,.35);

  transform: translateY(12px) scale(.97);
  opacity: 0;
  transition: opacity .22s ease, transform .22s cubic-bezier(.22,.8,.28,1);
}
.modal-backdrop.open .modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.modal-close {
  width: 32px; height: 32px;
  border: 0; background: transparent;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, color .12s;
}
.modal-close:hover { background: #f1f5f9; color: #0f172a; }

.modal-body { padding: 16px 20px 20px; }
.modal-body .field { margin-bottom: 14px; }
.modal-body label {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.modal-body input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  transition: border-color .12s, box-shadow .12s;
}
.modal-body input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.modal-body .hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
}

.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 4px 0 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.modal-actions .btn.primary .spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 6px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-actions .btn.primary.success {
  background: #16a34a;
  border-color: #16a34a;
}

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .user-trigger-info { display: none; }
  .user-trigger { padding: 4px; }
  .modal { max-width: 100%; }
}
/* =====================================================================
   USER MENU + MODAL — clean working version
   ===================================================================== */

/* Make sure topbar is not clipping the dropdown */
.topbar {
  overflow: visible !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* -------- user area -------- */
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* -------- user menu wrapper -------- */
.user-menu {
  position: relative;
}

/* -------- trigger button -------- */
.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .12s, border-color .12s;
}
.user-trigger:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.user-avatar[data-role="reseller"] {
  background: linear-gradient(135deg, #a855f7, #7e22ce);
}

.user-trigger-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}
.user-trigger-info .user-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
}
.user-trigger-info .user-role {
  font-size: 11.5px;
  color: #64748b;
}
.user-caret {
  color: #94a3b8;
  transition: transform .15s;
}
.user-trigger[aria-expanded="true"] .user-caret {
  transform: rotate(180deg);
}

/* -------- dropdown -------- */
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 6px;
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 12px 32px -12px rgba(15,23,42,.25);
  display: none;
  z-index: 9999;
}
.user-dropdown.open {
  display: block;
  animation: dropIn .14s ease-out;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  color: #334155;
  font: inherit;
  font-size: 13.5px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.dropdown-item.danger {
  color: #b91c1c;
}
.dropdown-item.danger:hover {
  background: #fef2f2;
  color: #991b1b;
}
.dropdown-item svg {
  flex-shrink: 0;
}
.dropdown-sep {
  height: 1px;
  background: #e2e8f0;
  margin: 6px 4px;
}

/* -------- bell button -------- */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s, color .12s;
}
.icon-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* =====================================================================
   CHANGE PASSWORD MODAL
   ===================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal-backdrop.open {
  opacity: 1;
}
.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px -20px rgba(15,23,42,.35);
  transform: translateY(12px) scale(.97);
  transition: transform .2s cubic-bezier(.22,.8,.28,1);
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-body {
  padding: 16px 20px 20px;
}
.modal-body .field {
  margin-bottom: 14px;
}
.modal-body label {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.modal-body input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
}
.modal-body input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.modal-body .hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
}

.modal-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 4px 0 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
.modal-actions .btn.primary.success {
  background: #16a34a;
  border-color: #16a34a;
}

body.modal-open {
  overflow: hidden;
}
/* =====================================================================
   HEADER — RESPONSIVE
   ===================================================================== */

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #334155;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}
.nav-toggle:hover { background: #f1f5f9; }
.nav-toggle[aria-expanded="true"] {
  background: #eff6ff;
  color: #1d4ed8;
}
.nav-toggle-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}

/* backdrop (mobile drawer) */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 90;
}

/* ---------- Desktop: normal layout ---------- */
@media (min-width: 901px) {
  .main-nav { display: flex; }
}

/* =====================================================================
   MOBILE  (<= 900px)
   ===================================================================== */
@media (max-width: 900px) {

  /* show hamburger, hide inline nav */
  .nav-toggle { display: inline-flex; }
  .main-nav   { display: none; }

  /* topbar: tighter padding, allow toggle on left */
  .topbar {
    padding: 0 12px;
    gap: 10px;
  }

  /* brand: shrink text, keep the mark */
  .brand-text {
    font-size: 14px;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* user area: only avatar + bell on mobile */
  .user-trigger-info { display: none; }
  .user-trigger      { padding: 4px; }
  .user-caret        { display: none; }
  .user-avatar       { width: 32px; height: 32px; font-size: 13px; }

  /* icon button a bit smaller */
  .icon-btn { width: 36px; height: 36px; }

  /* ---------- Drawer ---------- */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82%;
    max-width: 320px;

    background: #fff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 4px 0 24px -8px rgba(15,23,42,.25);

    padding: 68px 12px 16px; /* space for the topbar */
    gap: 4px;

    z-index: 95;
    overflow-y: auto;

    animation: drawerIn .22s cubic-bezier(.22,.8,.28,1);
  }

  .main-nav.open a {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
  }
  .main-nav.open a:hover {
    background: #f1f5f9;
    color: #0f172a;
  }
  .main-nav.open a.active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
  }
  .main-nav.open a.active::after { display: none; }

  /* badges inside drawer */
  .main-nav.open .nav-badge {
    position: static;
    margin-left: 8px;
  }

  .nav-backdrop:not([hidden]) { display: block; }
}

@keyframes drawerIn {
  from { transform: translateX(-100%); opacity: .6; }
  to   { transform: translateX(0);     opacity: 1;  }
}

/* lock scroll when drawer is open */
body.nav-open {
  overflow: hidden;
}

/* =====================================================================
   EXTRA SMALL  (<= 480px)
   ===================================================================== */
@media (max-width: 480px) {
  .brand-text { max-width: 110px; font-size: 13px; }
  .user-avatar { width: 30px; height: 30px; font-size: 12px; }
  .icon-btn    { width: 34px; height: 34px; }

  .main-nav.open { width: 90%; }
}

/* =====================================================================
   MAIN CONTAINER on mobile
   ===================================================================== */
@media (max-width: 900px) {
  .container {
    padding: 0 14px 32px;
    margin-top: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px 28px;
  }
}