/* Sugnext — shared base. Brand colours come from --brand / --brand-dark, set per product in the layout. */
:root { --brand: #4f46e5; --brand-dark: #3730a3; }

body { margin: 0; font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f8fafc; color: #0f172a; }
a { color: var(--brand); }

.hub-nav { background: #fff; border-top: 3px solid var(--brand); border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); position: sticky; top: 0; z-index: 20; }
.hub-nav-inner { max-width: 1600px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 28px; height: 60px; }
.hub-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #0f172a; text-decoration: none; }
.hub-brand img { height: 30px; width: auto; max-width: 140px; object-fit: contain; }
.hub-links { display: flex; gap: 6px; align-self: stretch; }
.hub-links a { display: flex; align-items: center; padding: 0 12px; color: #475569; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; padding-top: 2px; }
.hub-links a:hover { color: var(--brand); }
.hub-links a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.hub-user { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; }
.hub-me { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 4px 12px 4px 4px; font-weight: 600; color: #334155; cursor: pointer; }
.hub-me:hover { border-color: #cbd5e1; background: #f8fafc; }
.hub-me i { font-size: 11px; color: #94a3b8; }
.hub-me-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; object-fit: cover; flex: none; }
.hub-me-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-user .dropdown-item.active, .hub-user .dropdown-item:active { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand-dark); }
.hub-link-btn { background: transparent; border: 0; color: #64748b; padding: 0; cursor: pointer; }
.hub-link-btn:hover { color: var(--brand); }
.hub-login { font-weight: 700; text-decoration: none; }

.hub-home { max-width: 520px; margin: 12vh auto; padding: 0 20px; text-align: center; }
.hub-home h1 { font-weight: 800; }
.hub-home-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hub-home-list a {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 12px; font-weight: 700; color: #0f172a; text-decoration: none; text-align: left;
}
.hub-home-list a i { margin-left: auto; color: #94a3b8; }
.hub-home-list a:hover { box-shadow: 0 6px 18px rgba(15, 23, 42, .1); }
.hub-home-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

@media (max-width: 576px) {
    .hub-nav-inner { gap: 14px; }
    .hub-brand span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .hub-me-name, .hub-me i { display: none; }
    .hub-links { gap: 0; }
    .hub-links a { padding: 0 9px; }
    .hub-me { padding: 3px; }
}

.hub-signup {
    background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; padding: 6px 14px; border-radius: 8px;
}
.hub-signup:hover { background: var(--brand-dark); color: #fff; }

/* Account pages */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 30px 20px;
    background: radial-gradient(700px 360px at 50% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), #f8fafc; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 32px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); }
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: #64748b; margin-bottom: 20px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14px; }
.auth-divider { text-align: center; color: #94a3b8; font-size: 13px; margin: 18px 0 12px; }
.auth-btn {
    background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 12px 24px; font-weight: 600; width: 100%;
    cursor: pointer; display: block; text-align: center; text-decoration: none;
}
.auth-btn:hover { background: var(--brand-dark); color: #fff; }
.auth-btn-outline { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
.auth-btn-outline:hover { background: #f8fafc; color: #0f172a; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-google + .auth-divider { margin: 16px 0; }

/* Product mark: its logo, or an initial on the brand colour */
.hub-brand-initial {
    width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.hub-home-logo { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; flex: 0 0 auto; }
.hub-mark { display: inline-block; flex: 0 0 auto; }

.auth-id { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eef2f7; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #0f172a; text-decoration: none; min-width: 0; }
.auth-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.auth-logo { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; flex: 0 0 auto; }
.auth-initial { width: 32px; height: 32px; font-size: 16px; }
.auth-tag { font-size: 12px; font-weight: 600; color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 11%, #fff); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.auth-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: #94a3b8; }
.auth-foot a { color: #475569; font-weight: 600; text-decoration: none; }
.auth-foot a:hover { color: var(--brand-dark); }


/* "Confirm your email" notice under the customer top bar */
.verify-bar { background: #fffbeb; border-bottom: 1px solid #fde68a; color: #78350f; font-size: 14px; }
.verify-bar-in { max-width: 1600px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verify-bar-btn { margin-left: auto; background: none; border: 1px solid #d97706; color: #92400e; border-radius: 8px; padding: 4px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.verify-bar-btn:hover:not(:disabled) { background: #fef3c7; }
.verify-bar-btn:disabled { opacity: .6; cursor: default; }
