/* Account page styles — opaque dark surfaces, no decorative gradient/blur/hover transform. */

/* ---------- Account tabs shell ---------- */
.account-tabs-shell {
    display: grid;
    gap: 1rem;
}

.account-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    background: var(--color-surface-1);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
}

.account-tabs button {
    position: relative;
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
}

.account-tabs button:hover {
    color: var(--color-text);
    border-color: var(--color-border);
}

.account-tabs button.active {
    background: var(--color-primary-fill);
    color: var(--color-primary-contrast);
    border-color: var(--color-primary-fill);
}

.account-tabs button .tab-icon {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.account-tabs button .tab-icon .svg-icon {
    width: 100%;
    height: 100%;
}

.tab-label {
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ---------- Profile / address / orders ---------- */
.profile-section {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Profil görünümünde kompakt ve ortalanmış kart görünümü. */
#profile-tab .profile-section {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
}

#profile-tab .profile-card {
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
}

#profile-tab .profile-card > .account-icon {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 0 0.5rem;
    border-radius: var(--radius-md);
}

#profile-tab .profile-card > .account-icon .svg-icon {
    width: 1.35rem;
    height: 1.35rem;
}

#profile-tab .profile-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

#profile-tab .profile-info {
    display: grid;
    gap: 0.35rem;
}

#profile-tab .profile-info p {
    margin: 0;
    line-height: 1.4;
}

#profile-tab .profile-actions {
    margin-top: 0.35rem;
    gap: 0.5rem;
}

#profile-tab .profile-actions button,
#profile-tab .profile-actions .btn {
    min-height: 38px;
    padding: 0.5rem 0.9rem;
    font-size: var(--font-size-sm);
}

.account-address-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.account-address-item {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-address-item:hover {
    border-color: var(--color-border-strong);
}

.account-address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.account-address-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.account-address-badge {
    background: var(--color-primary-fill);
    color: var(--color-primary-contrast);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.account-address-details {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.account-address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* ---------- Orders list ---------- */
.orders-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.order-item {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.order-item:hover {
    border-color: var(--color-border-strong);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.order-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.order-status.pending     { background: var(--color-warning-soft);  color: var(--color-warning); border-color: var(--color-warning-border); }
.order-status.processing  { background: var(--color-info-soft);     color: var(--color-info);    border-color: var(--color-info-border); }
.order-status.shipped     { background: var(--color-info-soft);     color: var(--color-info);    border-color: var(--color-info-border); }
.order-status.delivered,
.order-status.completed   { background: var(--color-success-soft);   color: var(--color-success);  border-color: var(--color-success-border); }
.order-status.cancelled   { background: var(--color-danger-soft);    color: var(--color-danger);   border-color: var(--color-danger-border); }

.order-number-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.order-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.order-item-icon .svg-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.order-details {
    display: grid;
    gap: 0.45rem;
    color: var(--color-text-muted);
    margin: 0.25rem 0 0.5rem;
}

.order-meta-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.order-meta-line .meta-icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-text-subtle);
    flex-shrink: 0;
}

.order-meta-line .meta-icon .svg-icon {
    width: 1rem;
    height: 1rem;
}

.order-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.25rem;
}

.order-total-bar .order-total-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.order-total-bar .order-total-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-family-mono);
}

.order-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
}

.orders-list .btn-group {
    align-items: center;
    margin-top: 0.5rem;
}

.orders-list .btn-group > .btn-small {
    height: 36px;
    min-height: 36px;
    margin: 0;
}

/* ---------- Empty / icon placeholders ---------- */
.account-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.account-empty-state-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
}

.account-empty-state-icon .svg-icon {
    width: 1.75rem;
    height: 1.75rem;
}

.profile-card > .account-icon,
.account-card > .account-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    color: var(--color-text);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    font-size: 0;
}

.profile-card > .account-icon .svg-icon,
.account-card > .account-icon .svg-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.auth-tab-btn .svg-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.address-form-wrapper {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--color-surface-1);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

/* ---------- Inline style replacements for CSP compliance ---------- */
.loading-text {
    text-align: center;
    color: var(--color-text-muted);
}

.address-description {
    color: var(--color-text-soft);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.address-form-title {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.checkbox-label-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.checkbox-label input[type="checkbox"],
.checkbox-label-login input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.checkbox-label span,
.checkbox-label-login span {
    cursor: pointer;
    user-select: none;
}

.crypto-address {
    font-family: var(--font-family-mono);
    word-break: break-all;
    background: var(--color-surface-1);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    user-select: all;
    display: inline-block;
    margin-top: 0.25rem;
}

.payment-hint {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.payment-amount-highlight {
    font-size: 1.1em;
    color: var(--color-accent);
}

.detail-title .svg-icon,
.license-delivery-title .svg-icon,
.payment-hint .svg-icon,
.order-details .svg-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.12em;
    display: inline-block !important;
}

/* success-message / error-message live in css/components/status-notice.css */

.order-total-row {
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.total-amount {
    color: var(--color-accent);
}

.btn-full-width {
    margin-top: 1rem;
    width: 100%;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 9, 17, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.5rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg, 12px);
    width: 100%;
    max-width: 680px;
    max-height: min(90vh, 850px);
    overflow-y: auto;
    padding: 1.75rem;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.1rem;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    flex-shrink: 0;
}

.modal-title-icon .svg-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block !important;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.close-modal:hover {
    background: var(--color-surface-3);
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

/* ---------- Modal Order Summary ---------- */
.modal-order-summary {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.order-summary-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.order-id-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.order-id-label {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.order-id-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.order-id-row .order-number {
    font-family: var(--font-family-mono);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
}

.order-copy-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-surface-3);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-family: var(--font-family-base);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.order-copy-chip:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.order-copy-chip.copied {
    color: var(--color-success);
    border-color: var(--color-success-border);
    background: var(--color-success-soft);
}

.order-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
}

.order-meta-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
}

.order-meta-card .meta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.order-meta-card .meta-icon .svg-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: inline-block !important;
}

.order-meta-card .meta-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.order-meta-card .meta-label {
    font-size: 0.72rem;
    color: var(--color-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}

.order-meta-card .meta-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Detail Section & Items ---------- */
.detail-section {
    margin-bottom: 1.5rem;
}

.detail-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
    color: var(--color-text);
}

.title-icon,
.box-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.title-icon .svg-icon,
.box-title-icon .svg-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-block !important;
}

.order-items-table {
    display: grid;
    gap: 0.75rem;
}

.item-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: grid;
    gap: 0.6rem;
}

.item-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.item-card-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
}

.item-variation-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-xs, 3px);
    background: var(--color-surface-3);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 500;
}

.item-card-price-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.item-qty-price {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-family: var(--font-family-mono);
}

.item-total-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    font-family: var(--font-family-mono);
}

/* ---------- License / Crypto box ---------- */
.license-box {
    background: var(--color-surface-1);
    border: 1px solid var(--color-border);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.license-delivery-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.license-delivery-content {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.crypto-box {
    background: var(--color-surface-2);
    border-color: var(--color-border);
}

.crypto-meta-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.crypto-meta-label {
    color: var(--color-text-subtle);
    font-size: 0.85rem;
    min-width: 105px;
}

.crypto-meta-value {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.crypto-address-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.crypto-equiv {
    color: var(--color-text-muted);
    font-weight: 400;
}

.crypto-rate {
    color: var(--color-text-subtle);
}

.license-key {
    font-family: var(--font-family-mono);
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-success);
    margin: 0.25rem 0;
    display: block;
}

.license-entry {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.license-entry .license-key {
    margin: 0;
}

.license-copy-btn,
.download-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    border: 1px solid var(--color-border);
    background: var(--color-surface-2);
    color: var(--color-text);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.license-copy-btn:hover,
.download-action-btn:hover {
    background: var(--color-surface-3);
    border-color: var(--color-border-strong);
}

.license-meta {
    display: block;
    width: 100%;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ---------- Total & Actions ---------- */
.order-total-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
}

.order-total-card .order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    margin: 0;
    padding: 0;
}

.order-total-card .total-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.order-total-card .total-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-accent);
    font-family: var(--font-family-mono);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.modal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.modal-action-btn .btn-icon {
    display: inline-flex;
    align-items: center;
}

.modal-action-btn .btn-icon .svg-icon {
    width: 1rem;
    height: 1rem;
    display: inline-block !important;
}

.btn-danger-ghost {
    background: var(--color-danger-soft);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
    cursor: pointer;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-danger-ghost:hover {
    background: rgba(145, 64, 76, 0.4);
    border-color: var(--color-danger);
    color: #fff;
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 768px) {
    .account-tabs {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.5rem;
        padding: 0.4rem;
        border-radius: var(--radius-md);
    }

    .account-tabs::-webkit-scrollbar {
        display: none;
    }

    .account-tabs button {
        flex: 0 0 auto;
        width: auto;
        padding: 0.65rem 1rem;
        justify-content: center;
        font-size: 0.875rem;
        border-radius: var(--radius-sm);
    }

    .profile-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .account-address-list,
    .orders-list {
        gap: 0.75rem;
    }

    .account-address-item,
    .order-item {
        padding: 1rem;
    }

    .account-address-header,
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .account-address-actions,
    .btn-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .account-address-actions button,
    .btn-group button {
        width: 100%;
        padding: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .modal {
        align-items: flex-end;
        padding: 0.75rem;
    }

    .modal-content {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        padding: 1.25rem;
    }

    .modal-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .item-row,
    .order-total-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

/* ---------- Helpers ---------- */
.btn-flex {
    flex: 1;
}

.cancel-order-wrapper {
    margin-top: 1rem;
    text-align: right;
}

.pagination {
    /* In-page list pagination (orders/addresses). Differs from the global
       prev/next .pagination in css/components/navigation.css. */
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.page-button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface-1);
    color: var(--color-text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-button:hover {
    border-color: var(--color-border-strong);
}

.page-button.active {
    background: var(--color-primary-fill);
    color: var(--color-primary-contrast);
    border-color: var(--color-primary-fill);
}

/* ---------- Auth tabs (login / register) ---------- */
.auth-tab-nav {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 2rem;
    background: var(--color-surface-1);
    padding: 0.35rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-tab-btn {
    flex: 1;
    padding: 0.65rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-tab-btn.active {
    background: var(--color-primary-fill);
    color: var(--color-primary-contrast);
    border-color: var(--color-primary-fill);
}

.auth-tab-btn:not(.active):hover {
    color: var(--color-text);
    border-color: var(--color-border);
}

/* Auth form: tek kart görünümünde genişlik sınırla, ortala */
.account-grid:has(.auth-form-card) {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.auth-form-card {
    transition: border-color var(--transition-base);
}

.auth-form-card[hidden],
.tab-content[hidden] {
    display: none !important;
}
