/* Customer account area — pairs with storefront.css (Inter, navy #113257 / teal #1f8a8a). */

.account,
.account-auth {
    max-width: 1080px;
    margin: 0 auto;
    padding: 48px 20px 72px;
}

.account-auth {
    max-width: 460px;
}

.account-head {
    margin-bottom: 28px;
}

.account-head h1 {
    font-size: 28px;
    font-weight: 800;
    color: #113257;
    margin: 0 0 4px;
}

.account-muted {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* Cards */

.account-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #113257;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 1px 3px rgba(17, 50, 87, 0.08);
}

.account-card h1 {
    font-size: 24px;
    font-weight: 800;
    color: #113257;
    margin: 0 0 6px;
}

.account-empty {
    text-align: center;
}

.account-empty p {
    margin: 0 0 18px;
    color: #475569;
}

/* Forms */

.account-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-form label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.account-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.account-form input:focus {
    outline: none;
    border-color: #1f8a8a;
    box-shadow: 0 0 0 3px rgba(31, 138, 138, 0.15);
}

.account-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 20px;
    background: #113257;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.account-btn:hover {
    background: #0c2542;
}

.account-error {
    color: #dc2626;
    font-size: 13px;
}

.account-note {
    border-radius: 8px;
    padding: 16px;
    margin: 4px 0 12px;
}

.account-note--ok {
    background: #f0f7f7;
    border: 1px solid #cce5e5;
}

.account-note p {
    margin: 0 0 6px;
    font-size: 14px;
    color: #334155;
}

.account-note p:last-child {
    margin-bottom: 0;
}

.account-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
}

/* License list */

.lic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    align-items: start;
}

/* License detail: summary full-width on top, then Download + Your sites side by side. */
.lic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.lic-grid .lic-card + .lic-card { margin-top: 0; }

@media (max-width: 760px) {
    .lic-grid { grid-template-columns: 1fr; }
}

.lic-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px 24px;
    box-shadow: 0 1px 3px rgba(17, 50, 87, 0.06);
}

.lic-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.lic-name {
    font-size: 18px;
    font-weight: 700;
    color: #113257;
    margin: 0 0 6px;
}

.lic-tier {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2f6;
    color: #334155;
}

.lic-tier--pro { background: #e6f4ea; color: #1f7a3d; }
.lic-tier--business { background: #fdf0e3; color: #9a5b16; }
.lic-tier--starter { background: #e7f0fb; color: #1f5b9a; }

.lic-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.lic-badge--ok { background: #e6f4ea; color: #1f7a3d; }
.lic-badge--warn { background: #fdeaea; color: #b42318; }

.lic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin: 18px 0 0;
}

.lic-meta dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.lic-meta dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.lic-key {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.lic-key code {
    font-family: 'SFMono-Regular', Consolas, Menlo, monospace;
    font-size: 14px;
    color: #113257;
    letter-spacing: 0.04em;
    word-break: break-all;
    flex: 1;
}

.lic-copy {
    flex: none;
    padding: 6px 14px;
    background: #1f8a8a;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.lic-copy:hover { background: #197070; }

.lic-keynote {
    margin-top: 16px;
}

/* License detail (Phase 2) */

.account-back {
    display: inline-block;
    margin-bottom: 16px;
    color: #64748b;
    font-size: .9rem;
}

.account-back:hover { color: #113257; }

.account .lic-card + .lic-card { margin-top: 18px; }

.lic-manage {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1f8a8a;
}

.lic-manage:hover { color: #197070; }

.lic-section {
    font-size: 16px;
    font-weight: 700;
    color: #113257;
    margin: 0 0 12px;
}

.lic-section-sub {
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-left: 8px;
}

.lic-hint { margin-top: 12px; font-size: 13px; }

.site-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.site-row--muted { background: #fff; }

.site-domain { font-weight: 600; color: #1e293b; }

.site-meta {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.site-deactivate {
    flex: none;
    padding: 6px 14px;
    background: #fff;
    color: #b42318;
    border: 1px solid #f1c4c0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.site-deactivate:hover { background: #fdeaea; }

.site-past { margin-top: 14px; }

.site-past summary {
    cursor: pointer;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.account-note--warn { background: #fff7ed; border: 1px solid #fed7aa; }

.lic-renew {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef2f6;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.account-btn--sm { margin-top: 0; padding: 9px 16px; font-size: 14px; }

.lic-renew-note { font-size: 13px; }

.renew-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 18px;
    padding: 14px 0;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    font-size: 1.05rem;
}

.renew-line strong { font-size: 1.4rem; color: #113257; letter-spacing: -.02em; }

.header-signout {
    display: inline;
    margin: 0;
}

/* The sign-out is a <button>, not an <a>; keep the storefront's brand-button
   look (background + colour come from .header-signin) and only neutralise the
   native button defaults. (A previous reset removed the background, leaving
   white text on the white header — i.e. an invisible button.) */
.header-signout button.header-signin {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
