.brand-mark { display: inline-flex; height: 2rem; width: 2rem; align-items: center; justify-content: center; border-radius: .5rem; background: #b91c1c; color: white; font-size: .75rem; font-weight: 700; }
.brand-logo { display: inline-block; height: 2rem; width: 2rem; object-fit: contain; vertical-align: middle; }
.nav-link { display: flex; align-items: center; gap: .75rem; border-radius: .5rem; padding: .7rem .8rem; font-size: .9rem; color: #d6d3d1; transition: background .15s, color .15s; } .nav-link:hover, .nav-link-active { background: #292524; color: white; }
.surface { border: 1px solid #e7e5e4; border-radius: .75rem; background: white; padding: 1.5rem; box-shadow: 0 1px 2px rgb(28 25 23 / 3%); } .metric-card { border: 1px solid #e7e5e4; border-radius: .75rem; background: white; padding: 1.25rem 1.5rem; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; } .section-heading h2, .surface > h2 { font-size: 1.2rem; font-weight: 600; } .eyebrow { color: #b91c1c; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.status-pill { display: inline-flex; border-radius: 999px; padding: .3rem .6rem; font-size: .72rem; font-weight: 600; white-space: nowrap; } .status-green { background: #dcfce7; color: #166534; } .status-blue { background: #dbeafe; color: #1d4ed8; } .status-amber { background: #fef3c7; color: #92400e; } .status-gray { background: #f5f5f4; color: #57534e; } .status-red { background: #fee2e2; color: #991b1b; }
.form-input { width: 100%; border: 1px solid #d6d3d1; border-radius: .5rem; background: #fff; padding: .65rem .75rem; font-size: .9rem; outline: none; transition: border .15s, box-shadow .15s; } .form-input:focus { border-color: #b91c1c; box-shadow: 0 0 0 3px rgb(185 28 28 / 12%); }
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: .5rem; padding: .65rem 1rem; font-size: .875rem; font-weight: 600; } .button-primary { background: #b91c1c; color: white; } .button-primary:hover { background: #991b1b; } .button-secondary { border: 1px solid #d6d3d1; background: white; color: #44403c; }
.empty-state { padding: 1.5rem 0; color: #78716c; font-size: .875rem; } .login-shell { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: radial-gradient(circle at 15% 15%, #fecaca, transparent 32%), #1c1917; padding: 1.5rem; }

/* Icons (Icons8 SF Regular) */
.icon { display: inline-block; width: 1.05rem; height: 1.05rem; vertical-align: -0.2em; object-fit: contain; }
.icon-sm { width: .9rem; height: .9rem; }
.nav-link .icon { filter: invert(80%); } .nav-link:hover .icon, .nav-link-active .icon { filter: invert(100%); }

/* Green connect button + split pill dropdown */
.button-connect { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px 0 0 999px; background: #16a34a; color: #fff; padding: .5rem .9rem; font-size: .8rem; font-weight: 600; transition: background .15s; }
.button-connect:hover { background: #15803d; }
.pill-group { position: relative; display: inline-flex; }
.pill-toggle { display: inline-flex; align-items: center; border-radius: 0 999px 999px 0; background: #16a34a; color: #fff; padding: .5rem .6rem; border-left: 1px solid rgb(255 255 255 / 25%); transition: background .15s; }
.pill-toggle:hover { background: #15803d; }
.pill-menu { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 30; min-width: 13rem; border: 1px solid #e7e5e4; border-radius: .75rem; background: #fff; padding: .4rem; box-shadow: 0 10px 25px rgb(28 25 23 / 12%); }
.pill-menu[hidden] { display: none; }
.pill-menu button, .pill-menu a { display: flex; width: 100%; align-items: center; gap: .55rem; border-radius: .5rem; padding: .55rem .65rem; font-size: .82rem; font-weight: 500; color: #44403c; text-align: left; }
.pill-menu button:hover, .pill-menu a:hover { background: #f5f5f4; }
.pill-menu .danger { color: #b91c1c; } .pill-menu .danger:hover { background: #fef2f2; }

/* Interactive table */
.table-row { transition: background .12s; } .table-row:hover { background: #fafaf9; }
.row-chevron { display: inline-flex; transition: transform .15s; color: #a8a29e; }
.row-chevron.open { transform: rotate(90deg); }
.detail-row > td { background: #fafaf9; border-bottom: 1px solid #f5f5f4; }

/* Neumorphic pill toggle */
.neu-toggle { position: relative; display: inline-flex; align-items: center; border-radius: 999px; background: #e7e5e4; padding: .3rem; box-shadow: inset 2px 2px 5px rgb(28 25 23 / 12%), inset -2px -2px 5px rgb(255 255 255 / 70%); }
.neu-toggle-option { position: relative; z-index: 2; border-radius: 999px; padding: .45rem 1.1rem; font-size: .78rem; font-weight: 600; color: #78716c; transition: color .25s ease; }
.neu-toggle-option.is-active { color: #1c1917; }
.neu-toggle-slider { position: absolute; z-index: 1; top: .3rem; bottom: .3rem; left: 0; border-radius: 999px; background: linear-gradient(145deg, #ffffff, #f5f5f4); box-shadow: 3px 3px 6px rgb(28 25 23 / 14%), -2px -2px 5px rgb(255 255 255 / 80%), inset 0 1px 0 rgb(255 255 255 / 90%); transition: transform .3s cubic-bezier(.4, 0, .2, 1), width .3s cubic-bezier(.4, 0, .2, 1); }

/* Animated row action buttons */
.action-btn { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .4rem .8rem; font-size: .75rem; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgb(28 25 23 / 12%); }
.action-btn:active { transform: translateY(0); box-shadow: none; }
.action-email { background: #eff6ff; color: #1d4ed8; } .action-email:hover { background: #dbeafe; }
.action-billing { background: #f0fdf4; color: #15803d; } .action-billing:hover { background: #dcfce7; }
.action-warn { background: #fffbeb; color: #b45309; } .action-warn:hover { background: #fef3c7; }
.action-slate { background: #334155; color: #fff; } .action-slate:hover { background: #1e293b; }
.action-slate .icon { filter: brightness(0) invert(1); }
.action-btn .icon { width: .8rem; height: .8rem; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgb(51 65 85 / 35%); } 70% { box-shadow: 0 0 0 7px rgb(51 65 85 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(51 65 85 / 0%); } }
.action-attention { animation: pulse-ring 2s infinite; }

/* Tag chips */
.tag-chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; background: #f5f5f4; padding: .25rem .6rem; font-size: .72rem; font-weight: 600; color: #57534e; }
.tag-chip button { color: #a8a29e; font-weight: 700; line-height: 1; } .tag-chip button:hover { color: #b91c1c; }

/* Avatar */
.avatar { display: inline-flex; height: 2.1rem; width: 2.1rem; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 999px; background: linear-gradient(135deg, #b91c1c, #7f1d1d); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }

/* Dashboard hero */
.hero-card { border-radius: 1rem; background: linear-gradient(135deg, #1c1917 0%, #292524 55%, #450a0a 130%); color: #fff; padding: 1.75rem 2rem; position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; right: -4rem; top: -4rem; height: 14rem; width: 14rem; border-radius: 999px; background: radial-gradient(circle, rgb(185 28 28 / 35%), transparent 70%); }
.hero-stat { position: relative; z-index: 1; }
.hero-stat .num { font-size: 2.4rem; font-weight: 700; font-family: var(--headFont); letter-spacing: -0.02em; }
.mini-label { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / 55%); }

/* Metric card hover */
.metric-card { transition: transform .15s ease, box-shadow .15s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgb(28 25 23 / 7%); }

/* Email status dot */
.dot { display: inline-block; height: .5rem; width: .5rem; border-radius: 999px; }
.dot-sent { background: #16a34a; } .dot-pending { background: #d97706; } .dot-failed { background: #dc2626; } .dot-sending { background: #2563eb; }