/* Owner account page (/account/) in the same visual language as the opsmio.com marketing site:
   deep navy, Inter, glass cards, blue→cyan primary buttons, cyan focus. Loaded after core.css and
   scoped to body.v2-account, so the admin pages (which share core.css) do not change.
   Markup and behaviour are unchanged: account.js / common.js render the same elements. */
body.v2-account {
  --a-bg: #020817; --a-text: #eef4ff; --a-text-2: rgba(214, 226, 255, .74); --a-text-3: rgba(186, 202, 240, .55);
  --a-line: rgba(120, 170, 255, .16); --a-cyan: #19d6ff; --a-blue: #2f7cff;
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'Inter', system-ui, sans-serif; color: var(--a-text);
  /* The gradient spans the whole page (not the first screen only), so long views have no hard edge. */
  background-color: var(--a-bg);
  background-image:
    radial-gradient(1000px 520px at 50% -10%, rgba(47, 124, 255, .22), transparent 70%),
    radial-gradient(700px 420px at 90% 30%, rgba(124, 92, 246, .10), transparent 70%),
    linear-gradient(180deg, #020818 0%, #031030 45%, #020817 100%);
}
html:has(body.v2-account) { background: #020817; }
.v2-account header { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--a-line); background: rgba(2, 8, 23, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.v2-account header a { font: inherit; letter-spacing: normal; }
.v2-account .brand-logo { display: block; height: 40px; width: auto; }
.v2-account-back { font-size: 15px; color: var(--a-text-2) !important; }
.v2-account-back:hover { color: #fff !important; text-decoration: none !important; }

.v2-account main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 24px) 48px; box-sizing: border-box; }
.v2-account-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #cfe6ff; background: rgba(47, 124, 255, .14); box-shadow: inset 0 0 0 1px rgba(25, 214, 255, .35); }
.v2-account-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--a-cyan); box-shadow: 0 0 8px var(--a-cyan); }
.v2-account h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.v2-account h2 { margin: 0 0 18px; font-size: 20px; font-weight: 650; color: #fff; }
.v2-account .muted { margin: 0; font-size: 16px; line-height: 1.6; color: var(--a-text-2); }
.v2-account p { line-height: 1.6; }

.v2-account header .v2-account-lang { flex: none; width: auto; min-width: 110px; margin-inline-start: 0; height: 38px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 14px; color: #dce7ff; background: rgba(4, 12, 34, .72); border: 1px solid rgba(120, 170, 255, .24); }
.v2-account header { flex-wrap: wrap; gap: 12px 20px; }
/* Sign Out sits with the language choice at the end of the header, in the same compact outline style. */
.v2-account header .v2-account-signout { flex: none; height: 38px; margin: 0; padding: 0 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #dce7ff; background: rgba(4, 12, 34, .72); border: 1px solid rgba(120, 170, 255, .24); box-shadow: none; }
.v2-account header .v2-account-signout:hover { transform: none; color: #fff; border-color: rgba(25, 214, 255, .55); box-shadow: none; }
.v2-account header .v2-account-back { margin-inline-start: auto; }
.v2-account header .v2-account-lang { order: 1; }
.v2-account header .v2-account-signout { order: 2; }
.v2-app-auth.v2-account header .v2-account-signout { display: none; }
.v2-account select { color-scheme: dark; }
/* Check boxes of the forms and the sale terms. */
.v2-account .v2-check { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 14.5px; line-height: 1.55; font-weight: 400; }
.v2-account .v2-check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; padding: 0; }
.v2-account .v2-docs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; }
/* Plans of a product. */
.v2-account .v2-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.v2-account .v2-plan { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid rgba(120, 170, 255, .2); background: rgba(4, 12, 34, .5); }
.v2-account .v2-plan.is-current { border-color: rgba(25, 214, 255, .7); }
.v2-account .v2-plan h3 { margin: 0; font-size: 18px; color: #fff; }
.v2-account .v2-plan ul { margin: 0; padding-inline-start: 18px; color: var(--a-text-2); font-size: 14.5px; line-height: 1.7; }
.v2-account .v2-plan button { margin-top: auto; }
.v2-account .v2-plan-price { margin: 0; color: var(--a-text-2); }
.v2-account .v2-plan-price strong { font-size: 24px; color: #fff; }
.v2-account .v2-plan-current { font-size: 20px; font-weight: 650; color: #fff; margin: 0; }
.v2-account .v2-plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
/* Twelve tabs: on a wide screen every tab is visible. */
@media (min-width: 900px) { .v2-account main > nav[aria-label='Owner account'] { flex-wrap: wrap; overflow: visible; } }
[dir='rtl'] .v2-account th, [dir='rtl'].v2-account th { text-align: right; }

/* Section tabs: the owner tabs, or (signed out) the sign-in tabs rendered into #content. */
.v2-account nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 8px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--a-line); width: fit-content; max-width: 100%; box-sizing: border-box; }
.v2-account nav a { padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--a-text-2); }
.v2-account nav a:hover { color: #fff; text-decoration: none; background: rgba(47, 124, 255, .12); }
/* Signed out: the owner tabs lead nowhere yet, so only the sign-in tabs are shown. */
.v2-account main:has(#content > nav) > nav[aria-label='Owner account'],
.v2-account.v2-auth-view main > nav[aria-label='Owner account'] { display: none; }
.v2-account #content > nav { margin-top: 26px; }

.v2-account #notice { min-height: 24px; margin: 10px 0 0; font-size: 14.5px; color: #7fe6ff; }

/* Cards (forms and app connections) */
.v2-account section { margin: 18px 0; padding: clamp(22px, 4vw, 32px); border-radius: 20px; border: 1px solid rgba(120, 170, 255, .2); background: linear-gradient(180deg, rgba(14, 30, 72, .55), rgba(5, 12, 34, .65)); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05); }
.v2-account form { max-width: 640px; gap: 16px; }
.v2-account label { gap: 8px; font-size: 14px; font-weight: 500; color: #dce7ff; }
.v2-account input, .v2-account select, .v2-account textarea { height: 48px; padding: 0 16px; font-size: 15.5px; border-radius: 12px; background: rgba(4, 12, 34, .72); border: 1px solid rgba(120, 170, 255, .24); color: #fff; transition: border-color .2s, box-shadow .2s; }
.v2-account input:focus { outline: none; border-color: rgba(25, 214, 255, .75); box-shadow: 0 0 0 3px rgba(25, 214, 255, .15); }
.v2-account input:focus-visible { outline: none; }

.v2-account button { height: 48px; margin: 6px 0 0; padding: 0 24px; border: 0; border-radius: 12px; font-size: 15.5px; font-weight: 600; color: #fff; background: linear-gradient(100deg, #2f7cff, #19b8ff); box-shadow: 0 10px 30px -10px rgba(47, 124, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .2s, box-shadow .2s; }
.v2-account button:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(47, 124, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .25); }
.v2-account button:disabled { transform: none; }
.v2-account form button { justify-self: start; }
/* "Sign Out" (outside a form) is secondary */
.v2-account #content > button { background: transparent; color: #dbeaff; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .35); }

.v2-account #content > p, .v2-account section p { color: var(--a-text-2); }
.v2-account #content a:not(nav a), .v2-account section a { font-weight: 600; color: #9fdcff; }

.v2-account-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 22px 16px 28px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 14px; color: var(--a-text-3); }
.v2-account-footer a { color: var(--a-text-2); }
.v2-account-footer a:hover { color: #fff; text-decoration: none; }

@media (max-width: 560px) {
  .v2-account .brand-logo { height: 32px; }
  .v2-account-back { font-size: 14px; }
  .v2-account nav { width: 100%; }
  .v2-account nav a { flex: 1 1 auto; text-align: center; padding-inline: 10px; }
  .v2-account nav[aria-label='Owner account'] a { padding: 9px 12px; font-size: 13.5px; }
  .v2-account form button { justify-self: stretch; }
  .v2-account .cards { grid-template-columns: 1fr; }
  .v2-account td, .v2-account th { padding: 11px 10px; }
}

/* The nine owner tabs stay on one row that scrolls sideways when the page is narrower (no lone tab on a second line). */
.v2-account nav[aria-label='Owner account'] { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v2-account nav[aria-label='Owner account']::-webkit-scrollbar { display: none; }
.v2-account nav[aria-label='Owner account'] a { flex: 0 0 auto; white-space: nowrap; }

/* Customer portal (overview, products, subscriptions, quotations, projects, support), rendered by
   account-portal.js / account-work.js with common.js elements: card grids, tables and product heads. */
.v2-account .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.v2-account .cards section { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.v2-account .cards section h2 { margin: 0; }
.v2-account .cards section p { margin: 0; }
.v2-account .cards section a { margin-top: auto; padding-top: 8px; }
.v2-account #content > h2 { margin: 30px 0 12px; }
.v2-account .product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.v2-account .product-head h2 { margin: 0; }
.v2-account .product-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--a-line); }
.v2-account .table-wrap { margin: 14px 0; border-radius: 16px; border: 1px solid rgba(120, 170, 255, .2); background: rgba(5, 12, 34, .55); overflow: auto; }
.v2-account table { font-size: 14.5px; }
.v2-account th { color: var(--a-text-3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--a-line); }
.v2-account td { color: var(--a-text); border-bottom: 1px solid rgba(120, 170, 255, .1); }
.v2-account tr:last-child td { border-bottom: 0; }
.v2-account .nav-count { background: var(--a-blue); }
.v2-account select { appearance: auto; }
.v2-account textarea { height: auto; padding: 12px 16px; }
.v2-account nav a[aria-current='page'] { color: #fff; background: rgba(47, 124, 255, .22); box-shadow: inset 0 0 0 1px rgba(25, 214, 255, .4); }

/* Return to the product the owner came from (account-return.js): a modal dialog in the same glass style. */
.v2-account dialog.v2-return { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--a-text); overflow: auto; }
.v2-account dialog.v2-return::backdrop { background: rgba(1, 5, 18, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.v2-account .v2-return-box { padding: clamp(24px, 5vw, 36px); border-radius: 22px; border: 1px solid rgba(120, 170, 255, .28); background: linear-gradient(180deg, rgba(16, 34, 82, .97), rgba(5, 12, 34, .98)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
.v2-account .v2-return-icon { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; background: linear-gradient(135deg, #2f7cff, #19d6ff); box-shadow: 0 12px 30px -10px rgba(25, 214, 255, .8); position: relative; }
.v2-account .v2-return-icon::after { content: ''; position: absolute; left: 19px; top: 13px; width: 11px; height: 20px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.v2-account .v2-return-box h2 { margin: 0 0 10px; font-size: clamp(21px, 4.4vw, 25px); line-height: 1.25; letter-spacing: -.01em; }
.v2-account .v2-return-box > p { margin: 0 0 20px; font-size: 15.5px; color: var(--a-text-2); }
.v2-account .v2-return-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.v2-account .v2-return-steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--a-text-3); }
.v2-account .v2-return-steps li::before { content: counter(step); flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--a-line); }
.v2-account .v2-return-steps li.done { color: var(--a-text-2); }
.v2-account .v2-return-steps li.done::before { content: '✓'; color: #031030; background: var(--a-cyan); box-shadow: none; }
.v2-account .v2-return-steps li.current { color: #fff; font-weight: 600; }
.v2-account .v2-return-steps li.current::before { color: #fff; background: rgba(47, 124, 255, .35); box-shadow: inset 0 0 0 1px rgba(25, 214, 255, .7); }
.v2-account .v2-return-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.v2-account .v2-return-actions button { margin: 0; }
.v2-account .v2-return-primary { flex: 1 1 auto; }
.v2-account .v2-return-later { background: transparent; color: #dbeaff; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .35); }
.v2-account .v2-return-later:hover { box-shadow: inset 0 0 0 1px rgba(25, 214, 255, .6); }
.v2-account .v2-return button:focus-visible { outline: 2px solid var(--a-cyan); outline-offset: 3px; }
@media (max-width: 560px) {
  .v2-account .v2-return-actions { flex-direction: column; }
  .v2-account .v2-return-actions button { width: 100%; }
}

/* Billing tab: state badges. */
.v2-account .billing-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(47, 124, 255, .14); white-space: nowrap; }
.v2-account .billing-paid, .v2-account .billing-succeeded, .v2-account .billing-active { background: rgba(34, 197, 94, .18); }
.v2-account .billing-overdue, .v2-account .billing-failed, .v2-account .billing-past_due { background: rgba(248, 113, 113, .2); }
/* Price simulator (estimates only) */
.v2-account .estimate { margin: 18px 0; padding: 16px 18px; border: 1px solid rgba(120, 170, 255, .22); border-radius: 14px; }
.v2-account .estimate h3 { margin-top: 0; }
.v2-account .estimate-controls { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0; }
.v2-account .estimate-controls label { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1 1 200px; }
.v2-account .estimate-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.v2-account .estimate-value { font-weight: 600; }
.v2-account .estimate-source { font-size: 13px; }
/* On the way to a web application of Opsmio (account-authorize.js, surface=web): only the sign-in, no account portal around it. */
.v2-app-auth.v2-account main { max-width: 560px; }
.v2-app-auth.v2-account main > .v2-account-eyebrow, .v2-app-auth.v2-account main > h1, .v2-app-auth.v2-account main > p.muted,
.v2-app-auth.v2-account main > nav[aria-label='Owner account'], .v2-app-auth.v2-account .v2-account-back { display: none; }
.v2-app-auth.v2-account #content > h2 { margin: 0 0 4px; font-size: clamp(24px, 4vw, 32px); }
.v2-account .v2-app-bar button { height: 36px; margin: 0; padding: 0 14px; background: transparent; box-shadow: inset 0 0 0 1px rgba(120, 170, 255, .35); color: #dbeaff; font-size: 14px; }
