/* MeetTie Billing - shadcn-inspired design system (self-contained, no build step) */

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  --success: 142 71% 45%;
  --success-foreground: 0 0% 100%;
  --warning: 38 92% 50%;
  --warning-foreground: 38 92% 12%;
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5% 65%;
  --radius: 0.6rem;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 6% 10%;
    --card-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62% 50%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 17%;
    --input: 240 3.7% 20%;
    --ring: 240 4.9% 45%;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.page { padding: 1.75rem 0 4rem; }
.stack { display: flex; flex-direction: column; }
.gap-1 { gap: .35rem; } .gap-2 { gap: .6rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.mt-2 { margin-top: .6rem; } .mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: .6rem; } .mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.5rem; }
.row { display: flex; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.center { align-items: center; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grow { flex: 1; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: .82rem; }
.strong { font-weight: 650; }
.hidden { display: none !important; }

@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Top navbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: hsl(var(--card) / 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid hsl(var(--border));
}
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 58px; }
.brand { display: flex; align-items: center; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.03em; color: hsl(var(--muted-foreground)); }
.brand-name .grad {
  font-weight: 800;
  background: linear-gradient(90deg, #3b5bdb 0%, #8b3bd6 55%, #16b8c8 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: .15rem; overflow-x: auto; }
.nav-link {
  padding: .4rem .7rem; border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--muted-foreground)); font-weight: 500; white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-link:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.nav-link.active { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }

/* ---------- Profile dropdown ---------- */
.profile { position: relative; }
.profile-trigger {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 38px; padding: 0 .5rem 0 .35rem;
  border: 1px solid transparent; border-radius: calc(var(--radius) - 2px);
  background: transparent; color: hsl(var(--foreground));
  font: inherit; font-weight: 550; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.profile-trigger:hover { background: hsl(var(--accent)); }
.profile-trigger[aria-expanded="true"] { background: hsl(var(--accent)); border-color: hsl(var(--border)); }
.profile-trigger:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: linear-gradient(135deg, #3b5bdb 0%, #8b3bd6 55%, #16b8c8 100%);
}
.avatar-lg { width: 38px; height: 38px; font-size: .9rem; }
.profile-name {
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .85rem;
}
.chevron { width: 15px; height: 15px; color: hsl(var(--muted-foreground)); transition: transform .15s; }
.profile-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.profile-menu {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 50;
  min-width: 244px; padding: .35rem;
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.profile-menu[hidden] { display: none; }
.profile-menu form { margin: 0; }
.profile-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; }
.profile-head-text { display: flex; flex-direction: column; min-width: 0; }
.profile-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: hsl(var(--muted-foreground)); font-weight: 600; }
.profile-fullname { font-size: .9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-role { font-size: .75rem; color: hsl(var(--muted-foreground)); margin-top: .05rem; }
.profile-sep { height: 1px; background: hsl(var(--border)); margin: .3rem 0; }
.profile-item {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .5rem .6rem; border-radius: calc(var(--radius) - 3px);
  font-size: .85rem; font-weight: 500; font-family: inherit; text-align: left;
  color: hsl(var(--foreground)); background: transparent; border: 0; cursor: pointer;
}
.profile-item:hover { background: hsl(var(--accent)); }
.profile-item svg { width: 15px; height: 15px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.profile-item-danger { color: hsl(var(--destructive)); }
.profile-item-danger svg { color: hsl(var(--destructive)); }
.profile-item-danger:hover { background: hsl(var(--destructive) / 0.08); }

@media (max-width: 640px) {
  .profile-name { display: none; }
}

/* ---------- Card ---------- */
.card {
  background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem; }
.card-header { padding: 1.15rem 1.25rem .35rem; }
.card-body { padding: 1.15rem 1.25rem; }
.card-title { font-size: 1.05rem; font-weight: 650; }
.card-desc { color: hsl(var(--muted-foreground)); font-size: .85rem; margin-top: .2rem; }

/* ---------- Stat ---------- */
.stat { padding: 1.1rem 1.25rem; }
.stat-label { color: hsl(var(--muted-foreground)); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat-value { font-size: 1.7rem; font-weight: 720; margin-top: .3rem; letter-spacing: -0.02em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 38px; padding: 0 .95rem; font-size: .875rem; font-weight: 550;
  border-radius: calc(var(--radius) - 2px); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .12s, border-color .12s, opacity .12s, box-shadow .12s;
  background: transparent; color: hsl(var(--foreground)); line-height: 1;
}
.btn:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.btn-sm { height: 32px; padding: 0 .7rem; font-size: .8rem; }
.btn-block { width: 100%; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.btn-outline { border-color: hsl(var(--border)); background: hsl(var(--card)); }
.btn-outline:hover { background: hsl(var(--accent)); }
.btn-ghost:hover { background: hsl(var(--accent)); }
.btn-success { background: hsl(var(--success)); color: hsl(var(--success-foreground)); }
.btn-success:hover { background: hsl(var(--success) / 0.9); }
.btn-destructive { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.btn-destructive:hover { background: hsl(var(--destructive) / 0.9); }
.btn-outline-destructive { border-color: hsl(var(--destructive) / 0.4); color: hsl(var(--destructive)); background: hsl(var(--card)); }
.btn-outline-destructive:hover { background: hsl(var(--destructive) / 0.08); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; }
.label { font-size: .82rem; font-weight: 550; color: hsl(var(--foreground)); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 .7rem; font-size: .875rem; font-family: inherit;
  color: hsl(var(--foreground)); background: hsl(var(--card));
  border: 1px solid hsl(var(--input)); border-radius: calc(var(--radius) - 2px);
  transition: border-color .12s, box-shadow .12s;
}
.textarea { height: auto; min-height: 68px; padding: .55rem .7rem; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.25);
}
.input::placeholder, .textarea::placeholder { color: hsl(var(--muted-foreground)); }
.select { appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat; background-position: right .6rem center; padding-right: 2rem;
}
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; align-items: end; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .col-2, .col-3, .col-4, .col-5, .col-6 { grid-column: span 1; }
}
.checkbox-row { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: hsl(var(--primary)); }

/* ---------- Table ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th {
  text-align: left; font-weight: 600; color: hsl(var(--muted-foreground));
  font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .6rem .75rem; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap;
}
.table td { padding: .7rem .75rem; border-bottom: 1px solid hsl(var(--border)); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: hsl(var(--accent) / 0.5); }
.table .empty { color: hsl(var(--muted-foreground)); font-style: normal; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .2rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; text-transform: capitalize;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-active { background: hsl(var(--success) / 0.12); color: hsl(142 65% 32%); border-color: hsl(var(--success) / 0.25); }
.badge-requested { background: hsl(217 91% 60% / 0.12); color: hsl(217 71% 45%); border-color: hsl(217 91% 60% / 0.25); }
.badge-pending_approval { background: hsl(var(--warning) / 0.14); color: hsl(38 80% 34%); border-color: hsl(var(--warning) / 0.3); }
.badge-rejected { background: hsl(var(--muted)); color: hsl(var(--muted-foreground)); border-color: hsl(var(--border)); }
.badge-cancelled { background: hsl(var(--destructive) / 0.1); color: hsl(var(--destructive)); border-color: hsl(var(--destructive) / 0.25); }

@media (prefers-color-scheme: dark) {
  .badge-active { color: hsl(142 60% 60%); }
  .badge-requested { color: hsl(217 91% 72%); }
  .badge-pending_approval { color: hsl(38 92% 62%); }
}

/* ---------- Alert ---------- */
.alert {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; border-radius: calc(var(--radius) - 2px); font-size: .875rem;
  border: 1px solid transparent; margin-bottom: 1.25rem;
}
.alert-success { background: hsl(var(--success) / 0.1); border-color: hsl(var(--success) / 0.3); color: hsl(142 64% 28%); }
.alert-error { background: hsl(var(--destructive) / 0.08); border-color: hsl(var(--destructive) / 0.3); color: hsl(var(--destructive)); }
.alert .close { background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 1.1rem; line-height: 1; }
.alert .close:hover { opacity: 1; }
@media (prefers-color-scheme: dark) {
  .alert-success { color: hsl(142 60% 65%); }
}

/* ---------- Toasts (top-right flash messages) ---------- */
.toast-container {
  position: fixed; top: 72px; right: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: .6rem;
  width: 340px; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  pointer-events: auto; display: flex; align-items: flex-start; gap: .6rem;
  padding: .8rem .9rem; border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-left: 4px solid hsl(var(--border)); box-shadow: var(--shadow-md);
  font-size: .875rem; animation: toastIn .25s ease;
}
.toast.hide { animation: toastOut .22s ease forwards; }
.toast-success { border-left-color: hsl(var(--success)); }
.toast-error { border-left-color: hsl(var(--destructive)); }
.toast .toast-icon {
  flex: none; width: 18px; height: 18px; border-radius: 999px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; margin-top: 1px;
}
.toast-success .toast-icon { background: hsl(var(--success)); }
.toast-error .toast-icon { background: hsl(var(--destructive)); }
.toast .toast-body { flex: 1; color: hsl(var(--foreground)); line-height: 1.45; }
.toast .close { background: none; border: none; cursor: pointer; color: hsl(var(--muted-foreground)); font-size: 1.1rem; line-height: 1; padding: 0; }
.toast .close:hover { color: hsl(var(--foreground)); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.hide { animation: none; } }

/* ---------- Timeline (status tracking) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.timeline li { position: relative; padding: 0 0 1rem 1.5rem; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 4px; width: 9px; height: 9px;
  border-radius: 999px; background: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
.timeline li::after {
  content: ""; position: absolute; left: 8px; top: 14px; bottom: 0; width: 1px; background: hsl(var(--border));
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .tl-title { font-weight: 600; font-size: .875rem; }
.timeline .tl-meta { color: hsl(var(--muted-foreground)); font-size: .78rem; margin-top: .1rem; }
.timeline .tl-note { font-size: .82rem; margin-top: .25rem; background: hsl(var(--muted)); padding: .4rem .6rem; border-radius: 8px; }
.timeline li.muted-dot::before { background: hsl(var(--muted-foreground)); box-shadow: none; }
.timeline li.reject-dot::before { background: hsl(var(--destructive)); box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.15); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 380px; animation: authRise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: .08s; }
.auth-brand { text-align: center; margin-bottom: 1.25rem; animation: authRise .6s cubic-bezier(.2,.7,.2,1) both; }

/* Animated logo mark (replaces the flat placeholder square) */
.auth-logo {
  width: 60px; height: 60px; border-radius: 17px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, hsl(224 85% 58%), hsl(268 80% 60%) 55%, hsl(190 90% 52%));
  background-size: 200% 200%;
  box-shadow: 0 14px 34px -10px hsl(248 80% 55% / 0.65);
  animation: logoFloat 4.5s ease-in-out infinite, logoHue 9s ease-in-out infinite;
  position: relative;
}
.auth-logo::after {
  content: ""; position: absolute; inset: -6px; border-radius: 22px;
  border: 2px solid hsl(248 80% 60% / 0.4); animation: logoPulse 2.8s ease-out infinite;
}
.auth-logo svg { width: 30px; height: 30px; }

/* Ambient animated background for the login page */
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: hsl(var(--background)); }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(72px); opacity: .55; will-change: transform; animation: blobFloat 20s ease-in-out infinite; }
.auth-bg .b1 { width: 440px; height: 440px; background: hsl(224 85% 60% / .45); top: -140px; left: -90px; }
.auth-bg .b2 { width: 400px; height: 400px; background: hsl(280 80% 64% / .4); bottom: -160px; right: -70px; animation-delay: -7s; }
.auth-bg .b3 { width: 320px; height: 320px; background: hsl(168 75% 52% / .32); top: 42%; left: 52%; animation-delay: -13s; }

@keyframes authRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes logoHue { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes logoPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(44px, -34px) scale(1.12); }
  66% { transform: translate(-32px, 28px) scale(.94); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-brand, .auth-logo, .auth-logo::after, .auth-bg .blob { animation: none !important; }
}

/* ---------- Footer ---------- */
footer.site-footer { color: hsl(var(--muted-foreground)); font-size: .78rem; padding: 2rem 0; text-align: center; }

/* ---------- Confirmation modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 420px; background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 1.5rem; transform: translateY(10px) scale(.97); transition: transform .16s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal-title { font-size: 1.1rem; font-weight: 650; }
.modal-msg { color: hsl(var(--muted-foreground)); font-size: .9rem; margin-top: .5rem; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.5rem; }
@media (prefers-reduced-motion: reduce) { .modal-overlay, .modal { transition: none; } }

.invoice-total { font-size: 1.35rem; font-weight: 720; }
.divider { height: 1px; background: hsl(var(--border)); margin: 1rem 0; border: none; }
.kv { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid hsl(var(--border)); font-size: .875rem; }
.kv:last-child { border-bottom: none; }
