/* ============================================================
   ReviewsWidgets — auth.css
   - Nav account button (Sign in / My account)
   - Pricing 3-tier grid + Premium accent
   - My Account page layout
   ============================================================ */

/* ---- Nav account button ---------------------------------- */
.nav-cta {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.btn-account {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    width: auto !important;
    min-width: max-content;
    height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--line-strong, #d4d4d4);
    background: #fff;
    color: var(--ink, #0a0a0a);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1 !important;
    white-space: nowrap;
    vertical-align: middle;
    box-sizing: border-box;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.btn-account:hover {
    background: var(--bg-tint, #f5f5f5);
    border-color: var(--ink, #0a0a0a);
    opacity: 1;
}

.btn-account.is-loading { visibility: hidden; }

.btn-account.is-signed-in {
    background: var(--ink, #0a0a0a);
    color: #fff !important;
    border-color: var(--ink, #0a0a0a);
}

.btn-account.is-signed-in:hover {
    background: #1f1f1f;
    border-color: #1f1f1f;
    color: #fff !important;
}

/* Keep icon + text inline and vertically centered */
.btn-account svg,
.btn-account img,
.btn-account i,
.btn-account span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    vertical-align: middle;
}

.btn-account svg,
.btn-account img {
    width: 20px;
    height: 20px;
}

.btn-account .account-text,
.btn-account .btn-account-text,
.btn-account span:last-child {
    line-height: 1;
}

/* White account icon/text on black My account button */
.btn-account.is-signed-in,
.btn-account.is-signed-in span,
.btn-account.is-signed-in i {
    color: #fff !important;
}

.btn-account.is-signed-in svg {
    color: #fff !important;
    fill: currentColor;
}

.btn-account.is-signed-in svg path,
.btn-account.is-signed-in svg circle,
.btn-account.is-signed-in svg rect {
    fill: currentColor;
    stroke: currentColor;
}

/* In the mobile drawer, account button takes full width */
@media (max-width: 720px) {
    .nav-cta { width: 100%; padding-top: .5rem; }
    .btn-account { width: 100% !important; justify-content: center !important; }
}

/* ---- Pricing: 3-tier grid + Premium accent --------------- */
.pricing-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 1100px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card.is-premium {
    position: relative;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #ffd166 0%, #ef476f 50%, #6c5ce7 100%) border-box;
    border: 2px solid transparent;
    box-shadow: 0 8px 32px rgba(108, 92, 231, .12);
}
.price-card.is-premium .badge.badge-premium {
    background: linear-gradient(135deg, #ef476f 0%, #6c5ce7 100%);
    color: #fff;
}

.btn-premium {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 1px solid #1a1a1a;
}
.btn-premium:hover {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
}

.pricing-quota-note {
    text-align: center;
    margin: 2rem auto 0;
    max-width: 60ch;
    color: var(--ink-muted, #737373);
    font-size: .92rem;
    padding: .75rem 1rem;
    border: 1px dashed var(--line, #e5e5e5);
    border-radius: var(--radius, 12px);
    background: var(--bg-soft, #fafafa);
}
.pricing-quota-note a { color: var(--ink, #0a0a0a); text-decoration: underline; }

/* ---- My Account page ------------------------------------- */
.account-shell {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line, #e5e5e5);
    margin-bottom: 2rem;
}
.account-header h1 { margin: 0; font-size: 1.6rem; }
.account-header .account-meta { color: var(--ink-muted, #737373); font-size: .9rem; }
.account-header .account-meta strong { color: var(--ink, #0a0a0a); }
.account-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.account-actions .btn { font-size: .85rem; padding: .55rem .9rem; }

.account-section { margin-bottom: 3rem; }
.account-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}
.account-section-head h2 { margin: 0; font-size: 1.15rem; }
.account-section-head .count {
    color: var(--ink-muted, #737373);
    font-size: .85rem;
    font-weight: 500;
}

.account-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid var(--line, #e5e5e5);
    border-radius: var(--radius, 12px);
    overflow: hidden;
}
.account-table th,
.account-table td {
    padding: .85rem 1rem;
    text-align: left;
    font-size: .9rem;
    border-bottom: 1px solid var(--line, #e5e5e5);
    vertical-align: middle;
}
.account-table th {
    background: var(--bg-soft, #fafafa);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-muted, #737373);
}
.account-table tbody tr:last-child td { border-bottom: 0; }

.account-table .bz-name {
    font-weight: 600;
    color: var(--ink, #0a0a0a);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.account-table .bz-name small {
    color: var(--ink-muted, #737373);
    font-weight: 400;
    font-size: .78rem;
}
.account-table code.bz-code {
    font-family: 'SF Mono', Menlo, Consolas, Monaco, monospace;
    background: var(--bg-tint, #f5f5f5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .78rem;
    color: var(--ink-soft, #404040);
}
.account-table .row-actions {
    display: flex;
    gap: .35rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.account-table .row-actions .btn {
    font-size: .78rem;
    padding: .4rem .7rem;
}

.empty-state {
    background: #fff;
    border: 1px dashed var(--line-strong, #d4d4d4);
    border-radius: var(--radius, 12px);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-muted, #737373);
}
.empty-state h3 { color: var(--ink, #0a0a0a); margin: 0 0 .35rem; font-size: 1.05rem; }
.empty-state p  { margin: 0 0 1rem; font-size: .92rem; }

.tag-pro,
.tag-premium,
.tag-basic {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.tag-basic   { background: var(--bg-tint, #f5f5f5); color: var(--ink-soft, #404040); }
.tag-pro     { background: #0a0a0a; color: #fff; }
.tag-premium { background: linear-gradient(135deg, #ef476f, #6c5ce7); color: #fff; }

/* Mobile: stack the table into cards */
@media (max-width: 640px) {
    .account-table thead { display: none; }
    .account-table, .account-table tbody, .account-table tr, .account-table td {
        display: block; width: 100%;
    }
    .account-table tr {
        padding: .75rem 1rem;
    }
    .account-table td {
        border-bottom: 0;
        padding: .25rem 0;
    }
    .account-table td::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--ink-muted, #737373);
        margin-bottom: 2px;
    }
    .account-table .row-actions { justify-content: flex-start; padding-top: .5rem; }
}