/* ============================================================
   InkCanvas | Digital Signature Capture HTML Template
   Author  : Cubixsol
   Version : 1.2.0 (Consolidated single engine — Safari, Firefox, Chrome)
   Theme   : Dark Navy + Teal + Gold
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Background */
  --bg-page:      #0d0d1a;
  --bg-card:      #ffffff;
  --bg-ctrl:      #faf8f5;
  --bg-card-hdr:  #f8f5f0;

  /* Brand colors */
  --teal:         #2a7c8a;
  --teal-lt:      #45b5c8;
  --teal-dim:     #1a4f58;
  --teal-glow:    rgba(42, 124, 138, 0.35);
  --gold:         #c9a84c;
  --gold-lt:      #e8cc85;

  /* Ink / text */
  --ink:          #1a1a2e;
  --ink-mid:      #3a3a5c;
  --muted:        #8a8799;
  --white:        #ffffff;

  /* Borders */
  --border-dark:  rgba(255, 255, 255, 0.07);
  --border-card:  #ede8e0;

  /* Radii */
  --r-hero:       20px;
  --r-card:       22px;
  --r-md:         12px;
  --r-sm:         8px;

  /* Shadows */
  --shadow-card:  0 32px 80px rgba(0, 0, 0, 0.55),
                  0 8px 24px  rgba(0, 0, 0, 0.3),
                  0 0 0 1px   rgba(42, 124, 138, 0.18);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
     -moz-text-size-adjust: 100%;
          text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ════════════════════════════════════════════════════════════
   AMBIENT BACKGROUND
════════════════════════════════════════════════════════════ */
.bg-grid {
  position: fixed;
  /* Fallback for browsers that don't support inset shorthand (Safari < 14.1, Firefox < 87) */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    -webkit-linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    -webkit-linear-gradient(left, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  -webkit-filter: blur(110px);
          filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: -webkit-radial-gradient(circle, rgba(42, 124, 138, 0.28) 0%, transparent 70%);
  background: radial-gradient(circle, rgba(42, 124, 138, 0.28) 0%, transparent 70%);
  top: -220px;
  left: -200px;
  -webkit-animation: orbDrift1 24s ease-in-out infinite alternate;
          animation: orbDrift1 24s ease-in-out infinite alternate;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: -webkit-radial-gradient(circle, rgba(201, 168, 76, 0.17) 0%, transparent 70%);
  background: radial-gradient(circle, rgba(201, 168, 76, 0.17) 0%, transparent 70%);
  top: 28%;
  right: -180px;
  -webkit-animation: orbDrift2 30s ease-in-out infinite alternate;
          animation: orbDrift2 30s ease-in-out infinite alternate;
}

.orb-3 {
  width: 420px;
  height: 420px;
  background: -webkit-radial-gradient(circle, rgba(42, 124, 138, 0.14) 0%, transparent 70%);
  background: radial-gradient(circle, rgba(42, 124, 138, 0.14) 0%, transparent 70%);
  bottom: 4%;
  left: 14%;
  -webkit-animation: orbDrift3 20s ease-in-out infinite alternate;
          animation: orbDrift3 20s ease-in-out infinite alternate;
}

@-webkit-keyframes orbDrift1 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(60px, 40px) scale(1.12); transform: translate(60px, 40px) scale(1.12); } }
@keyframes orbDrift1 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(60px, 40px) scale(1.12); transform: translate(60px, 40px) scale(1.12); } }

@-webkit-keyframes orbDrift2 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(-45px, 70px) scale(.92); transform: translate(-45px, 70px) scale(.92); } }
@keyframes orbDrift2 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(-45px, 70px) scale(.92); transform: translate(-45px, 70px) scale(.92); } }

@-webkit-keyframes orbDrift3 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(35px, -55px) scale(1.08); transform: translate(35px, -55px) scale(1.08); } }
@keyframes orbDrift3 { from { -webkit-transform: translate(0, 0) scale(1); transform: translate(0, 0) scale(1); } to { -webkit-transform: translate(35px, -55px) scale(1.08); transform: translate(35px, -55px) scale(1.08); } }

.accent-bar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  z-index: 20;
  background: -webkit-linear-gradient(top, var(--teal-lt) 0%, var(--teal-dim) 100%);
  background: linear-gradient(180deg, var(--teal-lt) 0%, var(--teal-dim) 100%);
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   PAGE WRAPPER & CONTAINER LAYOUTS
════════════════════════════════════════════════════════════ */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 30px 84px 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 60px;
}

.main-layout-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 48px;
  width: 100%;
}

/* ════════════════════════════════════════════════════════════
   HERO HEADER COLUMN (LEFT CONTENT DIV)
════════════════════════════════════════════════════════════ */
.hero {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 42%;
          flex: 0 0 42%;
  width: 42%;
  max-width: 460px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-animation: slideUp 0.7s cubic-bezier(0.22, 0.68, 0, 1.15) both;
          animation: slideUp 0.7s cubic-bezier(0.22, 0.68, 0, 1.15) both;
}

.hero-main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 28px;
}

.hero-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 20px;
}

.hero-brand::before {
  content: '';
  display: block;
  width: 120px;
  height: 4px;
  background-color: var(--teal-lt);
  border-radius: 2px;
}

.hero-logo {
  width: 64px;
  height: 64px;
  background: -webkit-linear-gradient(135deg, var(--teal) 0%, var(--teal-dim) 100%);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dim) 100%);
  border-radius: 14px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 24px;
  color: var(--white);
  -webkit-box-shadow: 0 4px 16px rgba(42, 124, 138, 0.3);
          box-shadow: 0 4px 16px rgba(42, 124, 138, 0.3);
}

.hero-copy {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}

.hero-eyebrow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 9px;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 5px;
}

.eyebrow-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-lt);
  -webkit-box-shadow: 0 0 10px var(--teal-lt);
          box-shadow: 0 0 10px var(--teal-lt);
  -webkit-animation: pulsate 2s ease-in-out infinite;
          animation: pulsate 2s ease-in-out infinite;
}

@-webkit-keyframes pulsate {
  0%, 100% { -webkit-box-shadow: 0 0 6px  var(--teal-lt); box-shadow: 0 0 6px  var(--teal-lt); }
  50%       { -webkit-box-shadow: 0 0 18px var(--teal-lt); box-shadow: 0 0 18px var(--teal-lt); }
}
@keyframes pulsate {
  0%, 100% { -webkit-box-shadow: 0 0 6px  var(--teal-lt); box-shadow: 0 0 6px  var(--teal-lt); }
  50%       { -webkit-box-shadow: 0 0 18px var(--teal-lt); box-shadow: 0 0 18px var(--teal-lt); }
}

.hero-title {
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 7px;
}

.hero-teal { color: var(--teal-lt); }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.hero-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.hero-list li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #a5b3cc;
}

.hero-list li i {
  color: var(--gold);
  font-size: 1rem;
}

.hero-tech-strip {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-tech-strip span {
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}

.hero-tech-strip span:hover {
  background: rgba(42, 124, 138, 0.15);
  border-color: var(--teal-lt);
}

.hero-footer-meta {
  margin-top: 24px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ════════════════════════════════════════════════════════════
   SIGNATURE CARD WORKSPACE COLUMN (RIGHT)
════════════════════════════════════════════════════════════ */
.sig-card {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 53%;
          flex: 0 0 53%;
  width: 53%;
  min-width: 500px;
  background: var(--bg-card);
  border-radius: var(--r-card);
  -webkit-box-shadow: var(--shadow-card);
          box-shadow: var(--shadow-card);
  overflow: hidden;
  /* fit-content with vendor prefixes for Safari < 12 and Firefox < 94 */
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  -webkit-animation: slideUp 0.7s 0.1s cubic-bezier(0.22, 0.68, 0, 1.15) both;
          animation: slideUp 0.7s 0.1s cubic-bezier(0.22, 0.68, 0, 1.15) both;
}

@-webkit-keyframes slideUp {
  from { opacity: 0; -webkit-transform: translateY(32px) scale(0.98); transform: translateY(32px) scale(0.98); }
  to   { opacity: 1; -webkit-transform: translateY(0)    scale(1);    transform: translateY(0)    scale(1);    }
}
@keyframes slideUp {
  from { opacity: 0; -webkit-transform: translateY(32px) scale(0.98); transform: translateY(32px) scale(0.98); }
  to   { opacity: 1; -webkit-transform: translateY(0)    scale(1);    transform: translateY(0)    scale(1);    }
}

.sig-card-topbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: -webkit-linear-gradient(135deg, var(--bg-card-hdr) 0%, var(--white) 100%);
  background: linear-gradient(135deg, var(--bg-card-hdr) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border-card);
}

.sig-card-topbar-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
}

.sig-icon-box {
  width: 44px;
  height: 44px;
  background: -webkit-linear-gradient(135deg, var(--teal), var(--teal-dim));
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  border-radius: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 16px;
  color: var(--white);
  -webkit-box-shadow: 0 4px 12px rgba(42, 124, 138, 0.3);
          box-shadow: 0 4px 12px rgba(42, 124, 138, 0.3);
}

.sig-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.sig-card-subtitle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.sig-status-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sig-status-badge.active {
  background: #edf8ed;
  border-color: #a8d8a8;
  color: #2e7d2e;
}

.sig-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
  display: inline-block;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.sig-status-badge.active .sig-status-dot {
  background: #5cb85c;
  -webkit-box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.28);
          box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.28);
}

.canvas-region {
  padding: 24px 32px 10px;
  background: #fdfcfb;
}

.sig-pad-shell {
  position: relative;
  width: 100%;
  height: 280px;
  border: 2px solid #e0dbd3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: crosshair;
  /* Prevent iOS long-press callout and text selection on the pad */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.sig-pad-shell:hover {
  border-color: var(--teal);
  -webkit-box-shadow: 0 0 0 4px rgba(42, 124, 138, 0.12);
          box-shadow: 0 0 0 4px rgba(42, 124, 138, 0.12);
}

.sig-pad-inner {
  position: absolute;
  /* Fallback for browsers that don't support inset shorthand (Safari < 14.1, Firefox < 87) */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sig-pad-inner canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* Prevent callout menu on iOS long press */
  -webkit-touch-callout: none;
  /* Prevent text selection while drawing on all browsers */
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  /* Tap highlight removal on Android/iOS */
  -webkit-tap-highlight-color: transparent;
}

.sig-pad-hint {
  position: absolute;
  /* Fallback for browsers that don't support inset shorthand (Safari < 14.1, Firefox < 87) */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 10px;
  color: #ccc5bc;
  font-size: 0.84rem;
  pointer-events: none;
  z-index: 1;
  -webkit-transition: opacity 0.2s;
          transition: opacity 0.2s;
}

.sig-pad-hint i { font-size: 1.9rem; opacity: 0.42; }

.canvas-x-mark {
  text-align: center;
  font-size: 0.64rem;
  color: #ccc;
  letter-spacing: 0.55em;
  margin-top: 12px;
  padding-bottom: 4px;
}

.controls-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: start;
      -ms-flex-pack: start;
          justify-content: flex-start;
  gap: 32px;
  padding: 20px 32px;
  border-top: 1px solid var(--border-card);
  background: var(--bg-ctrl);
}

.ctrl-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
}

.ctrl-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.ctrl-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.thk-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e0dbd3;
  background: var(--white);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.thk-btn:hover { border-color: var(--teal); }
.thk-btn.active {
  border-color: var(--teal);
  background: rgba(42, 124, 138, 0.08);
}

.thk-dot {
  border-radius: 50%;
  background: var(--ink);
  display: block;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  -webkit-transition: -webkit-transform 0.15s;
          transition: transform 0.15s;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  cursor: pointer;
}

.color-swatch:hover { -webkit-transform: scale(1.15); transform: scale(1.15); }
.color-swatch.swatch-active {
  border-color: var(--ink);
  -webkit-box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
          box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}

/* Custom Color Picker Rainbow Swatch */
.swatch-rainbow {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: -webkit-linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  cursor: pointer;
  border: 2px solid transparent;
  -webkit-transition: -webkit-transform 0.15s;
          transition: transform 0.15s;
  overflow: hidden;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.swatch-rainbow:hover { -webkit-transform: scale(1.15); transform: scale(1.15); }
.swatch-rainbow.swatch-active {
  border-color: var(--ink);
  -webkit-box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
          box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}
.swatch-rainbow input[type="color"] {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 34px;
  height: 34px;
  opacity: 0;
  cursor: pointer;
  /* Ensure color input is clickable on all browsers */
  border: none;
  padding: 0;
}

.txt-act-btn {
  background: #f2f0eb;
  border: none;
  padding: 0 14px;
  height: 36px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  /* Firefox normalizes button padding */
  line-height: 1;
}

.txt-act-btn.btn-undo:hover { background: #e6e3dc; }
.txt-act-btn.btn-clear { background: #fdf0f0; color: #a03535; }
.txt-act-btn.btn-clear:hover { background: #fce3e3; }

.act-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 16px;
  height: 36px;
  border-radius: 6px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.btn-save {
  background: -webkit-linear-gradient(135deg, var(--teal), #1e6570);
  background: linear-gradient(135deg, var(--teal), #1e6570);
  color: var(--white);
}
.btn-save:hover {
  background: -webkit-linear-gradient(135deg, var(--teal-lt), var(--teal));
  background: linear-gradient(135deg, var(--teal-lt), var(--teal));
}

.card-mini-strip {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  border-top: 1px solid var(--border-card);
}

.mini-feat {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  gap: 6px;
  padding: 14px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #666;
  border-right: 1px solid var(--border-card);
  text-align: center;
}

.mini-feat:last-child { border-right: none; }
.mini-feat i { font-size: 0.95rem; color: var(--teal); }

/* ── Toast notification ─────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 34px;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(20px);
          transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--white);
  font-size: 0.82rem;
  padding: 11px 28px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
          transition: opacity 0.3s, transform 0.3s;
  z-index: 9999;
  border: 1px solid rgba(42, 124, 138, 0.4);
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.toast.visible {
  opacity: 1;
  -webkit-transform: translateX(-50%) translateY(0);
          transform: translateX(-50%) translateY(0);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.footer-brand {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  font-size: 0.79rem;
  color: #4a7a85;
}

.footer-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--teal);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.footer-meta { font-size: 0.71rem; color: #3a6a75; }

/* ── Responsive breakpoints ────────────────────────────────── */
@media (max-width: 1024px) {
  .main-layout-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 44px;
  }
  .hero { width: 100%; max-width: 600px; text-align: center; -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
  .hero-brand { -webkit-box-align: center; -ms-flex-align: center; align-items: center; }
  .hero-brand::before { margin: 0 auto; }
  .hero-list { -webkit-box-align: start; -ms-flex-align: start; align-items: flex-start; margin: 0 auto; }
  .hero-tech-strip { -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; }
  .sig-card { width: 100%; max-width: 650px; min-width: unset; }
}

@media (max-width: 640px) {
  .page-wrapper { padding: 40px 15px; }
  .controls-toolbar {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }
  .card-mini-strip {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
  .mini-feat {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 50%;
            flex: 0 0 50%;
    max-width: 50%;
  }
  .mini-feat:nth-child(2) { border-right: none; }
  .mini-feat:nth-child(1),
  .mini-feat:nth-child(2) { border-bottom: 1px solid var(--border-card); }
  .site-footer {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
