/* Digi SEO Tools - member area theme (in-house, no encoded code) */
:root {
  --dst-navy: #0b2559;
  --dst-navy-2: #14357a;
  --dst-blue: #2563eb;
  --dst-green: #22c55e;
  --dst-green-d: #16a34a;
  --dst-orange: #f59e0b;
  --dst-bg: #f3f6fb;
  --dst-card: #ffffff;
  --dst-line: #e3e8f2;
  --dst-text: #0f172a;
  --dst-muted: #64748b;
  --dst-radius: 14px;
  --dst-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --dst-shadow-h: 0 2px 4px rgba(15, 23, 42, .08), 0 12px 32px rgba(37, 99, 235, .16);
}

/* ---------- base ---------- */
html, body { background: var(--dst-bg); }
.am-common,
.am-body-content input, .am-body-content textarea, .am-body-content select, .am-body-content button,
.am-popup input, .am-popup textarea, .am-popup select, .am-popup button {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
.am-common { color: var(--dst-text); font-size: 15px; }
.am-common a { color: var(--dst-blue); }
.am-common h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; color: var(--dst-navy); margin-bottom: .8em; }
.am-common h2 { font-size: 1.05rem; font-weight: 700; color: var(--dst-navy); }
.am-main { max-width: 1160px; padding-left: 24px; padding-right: 24px; }

/* ---------- header ---------- */
.am-header { background: linear-gradient(120deg, var(--dst-navy) 0%, var(--dst-navy-2) 60%, #1d4ed8 100%); }
.am-header .am-header-content-wrapper { background: none; border: 0; }
.am-header .am-header-content { padding: 14px 0; display: flex; align-items: center; gap: 1em; overflow: visible; }
.am-header .am-header-content-logo { max-height: 44px; width: auto; float: none; margin: 0; }
.am-header-line { height: 0; border: 0; background: none; }
.dst-brand { display: inline-flex; align-items: center; gap: .6em; text-decoration: none !important; color: #fff !important; }
.dst-brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--dst-green); color: var(--dst-navy); font-weight: 800; font-size: 20px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.dst-brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.dst-brand-text b { color: var(--dst-green); font-weight: 800; }
.am-header .am-header-content-content { margin-left: auto; color: #cbd5e1; }
.am-header-menu a { color: #fff; }

/* ---------- body ---------- */
.am-body { background: var(--dst-bg); }
.am-body .am-body-content-wrapper { background: transparent; border: 0; padding-top: 28px; padding-bottom: 56px; }

/* account toolbar + tabs */
.am-account-toolbar { margin-bottom: 1.2em; }
.am-account-toolbar .am-account-toolbar-items { background: transparent; }
.am-user-identity-block { color: var(--dst-muted); }
.am-user-identity-block_login { color: var(--dst-text); font-weight: 600; }

ul.am-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; overflow: visible;
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: 12px;
  padding: 6px; box-shadow: var(--dst-shadow);
}
ul.am-tabs > li { float: none; background: none; border-radius: 8px; }
ul.am-tabs a { border: 0 !important; color: #334155; font-weight: 500; padding: .5em 1em; border-radius: 8px; }
ul.am-tabs li.active, ul.am-tabs li.normal:hover { background: none; }
ul.am-tabs li.active > a { background: var(--dst-navy); color: #fff; }
ul.am-tabs li.normal:hover > a { background: #eef2ff; color: var(--dst-navy); }
ul.am-tabs #menu-member { width: auto; }
ul.am-tabs #menu-member::before { display: none; }
ul.am-tabs li ul {
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: 10px;
  box-shadow: var(--dst-shadow); padding: 4px;
}
ul.am-tabs li ul li a { color: #334155; }
ul.am-tabs li ul li a:hover { background: #eef2ff; }

/* ---------- dashboard: stacked full-width cards ---------- */
.am-layout-two-coll { background: none !important; border: 0; box-shadow: none; }
.am-layout-two-coll .am-layout-two-coll-top,
.am-layout-two-coll .am-layout-two-coll-bottom { display: none; }
.am-layout-two-coll .am-coll-left,
.am-layout-two-coll .am-coll-right { float: none; width: auto; }
.am-layout-two-coll .am-coll-left .am-coll-content,
.am-layout-two-coll .am-coll-right .am-coll-content { margin: 0; }

.am-widget {
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: var(--dst-radius);
  box-shadow: var(--dst-shadow); padding: 20px 22px; margin-bottom: 20px;
}
.am-widget > h2 {
  display: flex; align-items: center; gap: .5em;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dst-muted);
  margin: 0 0 14px;
}
.am-widget .am-block { border: 0; box-shadow: none; padding: 0; background: transparent; }
.am-widget > h2::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dst-green);
}

/* subscriptions */
ul.am-list-subscriptions li {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em;
  padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--dst-line); border-radius: 10px; background: #fbfcfe;
}
.am-list-subscriptions .am-list-subscriptions-title { font-weight: 700; color: var(--dst-navy); }
.am-list-subscriptions .am-list-subscriptions-title:after { content: none; }
.am-list-subscriptions .am-list-subscriptions-title a { color: var(--dst-navy); text-decoration: none; }
.am-list-subscriptions-date > span {
  display: inline-block; font-size: .8rem; font-weight: 600; padding: .2em .7em; border-radius: 999px;
  background: #dcfce7; color: #166534;
}
.am-list-subscriptions-date_rebill, .am-list-subscriptions-date_future { background: #dbeafe !important; color: #1e40af !important; }
.am-list-subscriptions-link { margin-left: auto; font-size: .85rem; }
.am-list-subscriptions .am-list-subscriptions-desc { flex-basis: 100%; color: var(--dst-muted); opacity: 1; }
.member-subscriptions-no { text-align: center; padding: 12px 0; }

/* ---------- tool cards ---------- */
.dst-tools-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dst-search {
  flex: 1 1 260px; display: flex; align-items: center; gap: .6em;
  background: var(--dst-bg); border: 1px solid var(--dst-line); border-radius: 10px; padding: 0 12px;
}
.dst-search i { color: var(--dst-muted); }
.am-body-content .dst-search input[type=search] {
  flex: 1; border: 0; background: transparent; box-shadow: none; outline: none;
  padding: 10px 0; font-size: .95rem; width: 100%;
}
.dst-search:focus-within { border-color: var(--dst-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.dst-tools-count { color: var(--dst-muted); font-size: .85rem; font-weight: 600; }

ul.dst-tool-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px;
}
/* content-image plugin injects a background per li id - neutralise it just in case */
#member-resources li.dst-tool { background-image: none !important; padding-left: 0 !important; min-height: 0 !important; }
.dst-tool {
  position: relative; display: flex; flex-direction: column; margin: 0 !important;
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: 12px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dst-tool:hover { transform: translateY(-3px); box-shadow: var(--dst-shadow-h); border-color: #bfd3fb; }
.dst-tool[hidden] { display: none; }
.dst-tool-media {
  aspect-ratio: 16 / 9; background: #eef2f8; display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--dst-line);
}
.dst-tool-media img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.dst-tool-initial {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--dst-navy); color: #fff; font-size: 26px; font-weight: 800;
}
.dst-tool-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dst-tool-title { font-weight: 700; font-size: .98rem; line-height: 1.3; word-break: break-word; }
.dst-tool-title a { color: var(--dst-text) !important; text-decoration: none; }
.dst-tool-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.dst-tool-desc { color: var(--dst-muted); font-size: .85rem; line-height: 1.45; }
.dst-tool-cta { margin-top: auto; padding-top: 6px; font-size: .82rem; font-weight: 700; color: var(--dst-green-d); }
.dst-tool-cta i { transition: transform .18s ease; }
.dst-tool:hover .dst-tool-cta i { transform: translateX(3px); }
.dst-tools-empty { color: var(--dst-muted); text-align: center; padding: 20px 0; }

/* ---------- forms & buttons ---------- */
.am-body-content input[type=text], .am-body-content input[type=email], .am-body-content input[type=password],
.am-body-content input[type=number], .am-body-content select, .am-body-content textarea {
  border: 1px solid #cfd8e6; border-radius: 8px; padding: .55em .75em; background: #fff; box-shadow: none;
}
.am-body-content input:focus, .am-body-content select:focus, .am-body-content textarea:focus {
  border-color: var(--dst-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); outline: none;
}
.am-body-content a.button, .am-body-content button, .am-body-content input[type=button], .am-body-content input[type=submit],
.am-popup a.button, .am-popup button, .am-popup input[type=button], .am-popup input[type=submit] {
  background: var(--dst-green); border: 0; border-radius: 8px; color: #04220f; font-weight: 700;
  padding: .6em 1.3em; box-shadow: none; text-shadow: none; cursor: pointer;
}
.am-body-content a.button:hover, .am-body-content button:hover, .am-body-content input[type=button]:hover, .am-body-content input[type=submit]:hover,
.am-popup a.button:hover, .am-popup button:hover, .am-popup input[type=button]:hover, .am-popup input[type=submit]:hover {
  background: var(--dst-green-d); color: #fff;
}
.am-form fieldset, .am-form .am-fieldset {
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: var(--dst-radius); box-shadow: var(--dst-shadow);
}
.am-form fieldset legend { font-weight: 700; color: var(--dst-navy); }
.am-grid table, table.am-grid { border-radius: 10px; overflow: hidden; }

/* ---------- login page ---------- */
.am-page-login .am-body .am-body-content-wrapper, .am-login-form-wrapper { max-width: 460px; margin: 0 auto; }

/* ---------- footer ---------- */
.am-footer { height: auto; color: #94a3b8; }
.am-footer .am-footer-content-wrapper { background: var(--dst-navy); height: auto; padding: 14px 24px; }
.am-footer .am-footer-content { padding: 0; }
.am-footer .am-footer-content a { color: #cbd5e1; }
.am-footer .am-credits { display: none; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .am-main { padding-left: 16px; padding-right: 16px; }
  .am-widget { padding: 16px; }
  ul.dst-tool-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .dst-brand-text { font-size: 1.05rem; }
}

/* =====================================================================
   Auth pages (login / signup / password) - split layout
   ===================================================================== */
body.dst-auth-page { background: var(--dst-bg); }
.dst-auth.am-layout { background: none; max-width: none; width: auto; }
.dst-auth { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }

/* brand side */
.dst-auth-side {
  position: relative; overflow: hidden; color: #dbe5f7;
  background:
    radial-gradient(600px 400px at 110% -10%, rgba(34, 197, 94, .28), transparent 60%),
    radial-gradient(500px 500px at -20% 110%, rgba(37, 99, 235, .45), transparent 60%),
    linear-gradient(160deg, #0a1f4d 0%, var(--dst-navy) 45%, #12306e 100%);
}
.dst-auth-side::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 32px 32px;
}
.dst-auth-side-inner {
  position: relative; z-index: 1; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; padding: 40px 48px;
}
.dst-auth-pitch { margin: auto 0; max-width: 460px; padding: 32px 0; }
.am-common .dst-auth-pitch h2 {
  color: #fff; font-size: 2.1rem; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px;
}
.dst-auth-pitch h2 span { color: var(--dst-green); }
.am-common .dst-auth-pitch p { color: #b8c6e3; font-size: 1.02rem; padding: 0; margin: 0 0 24px; }
.dst-auth-points { list-style: none; margin: 0 0 28px; padding: 0; }
.dst-auth-points li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: #e2e8f5; }
.dst-auth-points i { color: var(--dst-green); margin-top: 3px; }
.dst-auth-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dst-auth-chips span {
  font-size: .8rem; font-weight: 600; color: #fff; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.dst-auth-side-foot { font-size: .8rem; color: #8a9bc0; }

/* form side */
.dst-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.dst-auth-main-top, .dst-auth-main-foot { display: none; }
.dst-auth-card.am-body { background: none; width: 100%; max-width: 460px; }
.dst-auth-page.am-page-signup .dst-auth-card.am-body { max-width: 520px; }
.dst-auth-card .am-body-content-top h1 { font-size: 1.75rem; margin: 0 0 6px; }
.dst-auth-page.am-page-signup .dst-auth-card .am-body-content-top h1::after {
  content: "Fill in your details to get started."; display: block; margin-top: 8px;
  font-size: .95rem; font-weight: 400; color: var(--dst-muted); letter-spacing: 0;
}
.dst-auth-card .am-body-content-top { margin-bottom: 18px; }

/* card around every auth form */
.dst-auth .am-form form,
.dst-auth .am-login-form form, .dst-auth .am-sendpass-form form {
  background: var(--dst-card); border: 1px solid var(--dst-line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 20px 48px rgba(15, 23, 42, .08);
  padding: 28px;
}
.dst-auth .am-form fieldset { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
.dst-auth .am-form fieldset legend {
  display: block; width: 100%; float: none; padding: 0; margin: 0 0 20px; background: none; border: 0;
  font-size: 1.5rem; font-weight: 800; color: var(--dst-navy); text-align: left; letter-spacing: -.01em;
}
.dst-auth .am-login-form-wrapper, .dst-auth .am-sendpass-form-wrapper { max-width: none; margin: 0; }

/* stacked label-above-field rows */
.dst-auth .am-form .am-row {
  display: block; padding: 0; margin: 0 0 16px; border: 0; background: none; overflow: visible;
}
.dst-auth .am-form .am-row::after { content: none; }
.dst-auth .am-form .am-row .am-element-title,
.dst-auth .am-form .am-row .am-element {
  float: none; width: auto; margin: 0; padding: 0; text-align: left; box-sizing: border-box;
}
.dst-auth .am-form .am-row .am-element-title { margin-bottom: 6px; }
.dst-auth .am-form .am-element-title label { font-weight: 600; font-size: .9rem; color: #1e293b; }
.dst-auth .am-form .am-element-title .required { color: #ef4444; }
.dst-auth .am-form .am-element-title .comment {
  display: block; margin-top: 2px; font-size: .78rem; line-height: 1.4; color: var(--dst-muted); text-align: left;
}
.dst-auth .am-form input[type=text], .dst-auth .am-form input[type=email],
.dst-auth .am-form input[type=password], .dst-auth .am-form select {
  width: 100%; max-width: none; box-sizing: border-box; font-size: .98rem;
  padding: .75em .9em; border-radius: 10px; background: #f8fafc; border: 1px solid #d6deea;
}
.dst-auth .am-form input:focus, .dst-auth .am-form select:focus { background: #fff; }
.dst-auth .am-form .am-element.group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dst-auth .am-form .am-element.group > input[type=text] { min-width: 0; margin: 0; }
.dst-auth .am-pass-indicator-wrap { display: block; width: 100%; }
.dst-auth .am-pass-indicator-bar { margin-top: 6px; border-radius: 4px; overflow: hidden; }
.dst-auth .am-row-recaptcha { display: none; }

/* buttons row */
.dst-auth .am-form .am-row-buttons .am-element,
.dst-auth .am-form #row-buttons .am-element { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.dst-auth .am-form input[type=submit] {
  width: 100%; padding: .85em 1em; font-size: 1rem; border-radius: 10px;
  background: var(--dst-green); color: #04220f;
  box-shadow: 0 6px 18px rgba(34, 197, 94, .28);
}
.dst-auth .am-form input[type=submit]:hover { background: var(--dst-green-d); color: #fff; }
.dst-auth .am-form-login-switch-wrapper { text-align: center; font-size: .9rem; }
.dst-auth .am-form-login-switch { border: 0; text-decoration: none; font-weight: 600; }

/* notices + links */
.dst-auth .am-info, .dst-auth .am-login-text {
  background: #eef4ff; border: 1px solid #d3e1fb; color: #1e3a8a; border-radius: 12px;
  padding: 12px 14px; margin: 0 0 16px; font-size: .9rem;
}
.dst-auth .am-login-text a { font-weight: 700; border: 0; }
.dst-auth .am-signup-link { text-align: center; margin-top: 20px; color: var(--dst-muted); }
.dst-auth .am-signup-link a { font-weight: 700; color: var(--dst-blue); }
.dst-auth .am-errors, .dst-auth ul.errors, .dst-auth .am-form .error {
  border-radius: 10px;
}
.dst-auth .am-body-content-content { padding: 0; }
.dst-auth .am-account-toolbar { display: none; }

@media (max-width: 900px) {
  .dst-auth { grid-template-columns: 1fr; }
  .dst-auth-side { display: none; }
  .dst-auth-main { justify-content: flex-start; padding: 0 16px 32px; }
  .dst-auth-main-top {
    display: flex; justify-content: center; width: calc(100% + 32px); margin: 0 -16px 28px; padding: 16px;
    background: linear-gradient(120deg, var(--dst-navy) 0%, var(--dst-navy-2) 60%, #1d4ed8 100%);
  }
  .dst-auth-main-foot { display: block; margin-top: 28px; font-size: .8rem; color: var(--dst-muted); }
  .dst-auth .am-form form { padding: 20px; }
}
