/* ==========================================================================
   Account Pages — Card-Based Redesign
   Prefix: acct- to avoid collisions with subscription-cards.css
   ========================================================================== */

/* ---------- Back Link ---------- */
.acct-back-link {
    display: inline-block;
    color: #6287a3;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
}
.acct-back-link:hover {
    text-decoration: underline;
}

/* ---------- Page Header ---------- */
.acct-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.acct-page-header h1 {
    margin: 0;
    font-size: 28px;
}

/* ---------- Stat Cards ---------- */
.acct-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.acct-stat-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    border-top: 4px solid #6287a3;
    padding: 20px;
    text-align: center;
}
.acct-stat-card--active {
    background: #347647;
    border-top-color: #347647;
    color: #fff;
}
.acct-stat-card--inactive {
    background: #999;
    border-top-color: #999;
    color: #fff;
}
.acct-stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}
.acct-stat-label {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}
.acct-stat-card--active .acct-stat-label,
.acct-stat-card--inactive .acct-stat-label {
    color: rgba(255,255,255,.85);
}

/* ---------- Action Cards ---------- */
.acct-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.acct-action-card {
    display: block;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, border-color .15s;
}
.acct-action-card:hover {
    border-color: #6287a3;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.acct-action-card__icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #6287a3;
}
.acct-action-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}
.acct-action-card__desc {
    font-size: 13px;
    color: #666;
}

/* ---------- Section Header ---------- */
.acct-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}
.acct-section-header h2 {
    margin: 0;
    font-size: 22px;
}
.acct-section-header a {
    color: #6287a3;
    font-size: 14px;
    text-decoration: none;
}
.acct-section-header a:hover {
    text-decoration: underline;
}

/* ---------- Listing Preview Cards ---------- */
.acct-listing-preview-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.acct-listing-preview {
    text-decoration: none;
    color: inherit;
}
.acct-listing-preview img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.acct-listing-preview__name {
    font-weight: 700;
    margin-top: 8px;
    font-size: 15px;
    color: #333;
}
.acct-listing-preview__price {
    font-size: 14px;
    color: #555;
}
.acct-cta-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}
.acct-cta-card a {
    color: #6287a3;
    font-weight: 600;
    text-decoration: none;
}
.acct-cta-card a:hover {
    text-decoration: underline;
}

/* ---------- Profile Heading (outside card) ---------- */
.acct-profile-heading {
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 12px;
    text-align: left;
}

/* ---------- Profile Card ---------- */
.acct-profile-card {
    background: #f5f3ef;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
    margin-bottom: 32px;
}
.acct-profile-card h2 {
    margin: 0 0 12px;
    font-size: 16px;
}
.acct-profile-card__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 20px;
    font-size: 14px;
    color: #555;
}
.acct-profile-card__label {
    font-weight: 600;
    color: #333;
}
.acct-btn-outline {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 20px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}
.acct-btn-outline:hover {
    background: #f0f0f0;
}
.acct-btn-outline--muted {
    color: #999;
}
.acct-btn-outline--muted:hover {
    background: none;
    color: #666;
}
.acct-inline-form {
    display: inline;
}

/* ---------- Listing Cards (My Horses) ---------- */
.acct-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.acct-listing-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    overflow: hidden;
}
.acct-listing-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.acct-listing-card__body {
    padding: 14px;
    text-align: center;
}
.acct-listing-card__name {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-bottom: 6px;
}
.acct-listing-card__sold {
    color: #ff0000;
    font-weight: 700;
    font-size: 13px;
}
.acct-listing-card__stats {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}
.acct-listing-card__expiry {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}
.acct-listing-card__actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}
.acct-listing-card__actions a,
.acct-listing-card__actions button {
    color: #6287a3;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}
.acct-listing-card__actions a:hover,
.acct-listing-card__actions button:hover {
    text-decoration: underline;
}
.acct-listing-card__package {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

/* Create New Listing button */
.acct-btn-primary {
    display: inline-block;
    padding: 10px 22px;
    background: #001F27;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}
.acct-btn-primary:hover {
    background: #003040;
}

/* Checkout button for unpaid */
.acct-checkout-row {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* ---------- Messages ---------- */
.acct-info-banner {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}
.acct-message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.acct-message-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 16px;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}
.acct-message-card--unread {
    border-left: 4px solid #6287a3;
    font-weight: bold;
}
.acct-message-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ccc;
    flex-shrink: 0;
}
.acct-message-card__content {
    flex: 1;
    min-width: 0;
}
.acct-message-card__sender {
    font-size: 15px;
    color: #333;
}
.acct-message-card__preview {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}
.acct-message-card__meta {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.acct-message-card__date {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
}
.acct-message-card__delete {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 16px;
    padding: 0;
}
.acct-message-card__delete:hover {
    color: #c00;
}

/* ---------- Edit Profile 2-Column ---------- */
.acct-form-card {
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 32px;
}
.acct-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}
.acct-form-grid .acct-form-field {
    display: flex;
    flex-direction: column;
}
.acct-form-grid .acct-form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.acct-form-grid .acct-form-field input,
.acct-form-grid .acct-form-field select,
.acct-form-grid .acct-form-field textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}
.acct-form-grid .acct-form-field input:focus,
.acct-form-grid .acct-form-field select:focus,
.acct-form-grid .acct-form-field textarea:focus {
    border-color: #6287a3;
    outline: none;
}
.acct-form-full {
    grid-column: 1 / -1;
}
.acct-form-section-title {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.acct-form-checkbox {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.acct-form-submit {
    grid-column: 1 / -1;
    margin-top: 8px;
}

/* ---------- Wizard Step Indicator ---------- */
.acct-wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    padding: 20px 0;
}
.acct-wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
}
.acct-wizard-step__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #999;
    background: #fff;
    flex-shrink: 0;
}
.acct-wizard-step.active .acct-wizard-step__circle {
    background: #6287a3;
    border-color: #6287a3;
    color: #fff;
}
.acct-wizard-step.active {
    color: #333;
    font-weight: 600;
}
.acct-wizard-step.completed .acct-wizard-step__circle {
    background: #6287a3;
    border-color: #6287a3;
    color: #fff;
}
.acct-wizard-step.completed .acct-wizard-step__circle::after {
    content: "✓";
}
.acct-wizard-step button {
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    color: inherit;
    padding: 0;
}
.acct-wizard-step__connector {
    width: 40px;
    height: 2px;
    background: #ccc;
    margin: 0 8px;
}
.acct-wizard-step.completed + .acct-wizard-step__connector {
    background: #6287a3;
}

/* ---------- Account Dropdown ---------- */
.acct-dropdown-wrap {
    position: relative;
    display: inline-block;
}
.acct-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
}
.acct-dropdown.show {
    display: block;
}
.acct-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}
.acct-dropdown a:hover {
    background: #f5f5f5;
}
.acct-dropdown__separator {
    height: 1px;
    background: #e0e0e0;
    margin: 6px 0;
}
.acct-dropdown a.acct-dropdown__secondary {
    font-size: 12px;
    color: #777;
    padding: 7px 20px;
}

/* ---------- Subscription full-width overrides ---------- */
.acct-subscriptions .subscription-cards-container {
    max-width: 100%;
}
.acct-subscriptions .subscription-history-table {
    width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
    .acct-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .acct-action-grid {
        grid-template-columns: 1fr;
    }
    .acct-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .acct-listing-preview-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 719px) {
    .acct-wizard-steps {
        padding: 16px 8px;
        gap: 0;
    }
    .acct-wizard-step {
        font-size: 11px;
        gap: 4px;
    }
    .acct-wizard-step__circle {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .acct-wizard-step__connector {
        width: 20px;
        margin: 0 4px;
    }
    .acct-stat-row {
        grid-template-columns: 1fr;
    }
    .acct-listing-grid {
        grid-template-columns: 1fr;
    }
    .acct-listing-preview-row {
        grid-template-columns: 1fr;
    }
    .acct-form-grid {
        grid-template-columns: 1fr;
    }
    .acct-form-full {
        grid-column: 1;
    }
    .acct-form-section-title,
    .acct-form-checkbox,
    .acct-form-submit {
        grid-column: 1;
    }
    .acct-message-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .acct-message-card__meta {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
    .acct-page-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Mobile compact cards ---------- */
@media (max-width: 767px) {
    .acct-stat-card {
        padding: 12px 8px;
    }
    .acct-stat-number {
        font-size: 24px;
    }
    .acct-stat-label {
        font-size: 11px;
    }
    .acct-action-card {
        padding: 16px 12px;
    }
    .acct-action-card__icon {
        font-size: 24px;
        margin-bottom: 4px;
    }
    .acct-action-card__title {
        font-size: 14px;
        margin-bottom: 2px;
    }
    .acct-action-card__desc {
        font-size: 11px;
    }
}
