/* ===============================================
   ACCOUNT PAGES - SHARED STYLESHEET
   ===============================================
   Used by all standalone account pages:
   dashboard, settings, my-listings, my-reviews,
   edit-listing, login, verify, advertise, domains
   =============================================== */

/* === RESET & BASE === */
* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4f4f5;
    margin: 0;
    padding: 0;
    color: #1a1a1a;
}

/* === ACCOUNT HEADER (green gradient bar) === */
.acct-header {
    background: linear-gradient(135deg, #2d5a45, #1a3a2a);
    color: #fff;
    padding: 1.5rem 2rem;
}

.acct-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acct-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.acct-header a {
    color: #fff;
    text-decoration: none;
}

/* === ACCOUNT HEADER (white bar variant) === */
.acct-header-white {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
}

.acct-header-white .acct-header-inner {
    max-width: 800px;
}

.acct-header-white h1 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.acct-header-white a {
    color: #6b7280;
    text-decoration: none;
    font-size: .875rem;
}

.acct-header-white a:hover {
    color: #1a1a1a;
}

/* === CONTAINER === */
.acct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.acct-container.narrow {
    max-width: 800px;
}

.acct-container.extra-narrow {
    max-width: 1000px;
}

/* === MESSAGES & ALERTS === */
.acct-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.acct-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.acct-message.error {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.acct-message.info {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.acct-alert {
    padding: .75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: .875rem;
}

.acct-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.acct-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.acct-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* === SECTIONS / CARDS === */
.acct-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.acct-section h2 {
    margin: 0 0 1.5rem;
    font-size: 1.3rem;
    color: #166534;
    padding-bottom: .5rem;
    border-bottom: 2px solid #dcfce7;
}

.acct-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.acct-card-header {
    padding: .875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acct-card-header h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: #1a1a1a;
}

.acct-card-header p {
    margin: .25rem 0 0;
    font-size: .8rem;
    color: #9ca3af;
}

.acct-card-body {
    padding: 1rem 1.25rem;
}

/* === FORMS === */
.acct-form-group {
    margin-bottom: 1.5rem;
}

.acct-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: .5rem;
}

.acct-form-group input[type="text"],
.acct-form-group input[type="email"],
.acct-form-group input[type="tel"],
.acct-form-group input[type="url"],
.acct-form-group textarea,
.acct-form-group select {
    width: 100%;
    padding: .75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color .2s;
}

.acct-form-group input:focus,
.acct-form-group textarea:focus,
.acct-form-group select:focus {
    outline: none;
    border-color: #166534;
}

.acct-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.acct-form-group .hint {
    font-size: .8rem;
    color: #9ca3af;
    margin-bottom: .4rem;
}

/* === BUTTONS === */
.acct-btn {
    padding: .75rem 1.5rem;
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}

.acct-btn:hover {
    background: #14532d;
    color: #fff;
    text-decoration: none;
}

.acct-btn-outline {
    padding: .35rem .75rem;
    background: #fff;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 500;
    border: 1px solid #d1d5db;
    cursor: pointer;
    transition: background .1s;
    display: inline-block;
}

.acct-btn-outline:hover {
    background: #f3f4f6;
}

.acct-btn-primary {
    background: #166534;
    color: #fff;
    border-color: #166534;
}

.acct-btn-primary:hover {
    background: #14532d;
}

.acct-btn-secondary {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.acct-btn-full {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #166534 0%, #14532d 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.acct-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,101,52,.3);
    color: #fff;
    text-decoration: none;
}

.acct-btn-delete {
    display: inline-block;
    padding: .4rem .8rem;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    text-decoration: none;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
}

.acct-btn-delete:hover {
    background: #fecaca;
}

/* === INFO ROWS === */
.acct-info-row {
    display: flex;
    justify-content: space-between;
    padding: .75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.acct-info-row:last-child {
    border-bottom: none;
}

.acct-info-label {
    color: #6b7280;
    font-weight: 500;
}

.acct-info-value {
    color: #111827;
    font-weight: 600;
}

/* === STATS === */
.acct-stats-bar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acct-stats-bar .stat {
    text-align: center;
}

.acct-stats-bar .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #166534;
}

.acct-stats-bar .stat-label {
    color: #6b7280;
    font-size: .9rem;
    margin-top: .25rem;
}

.acct-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

/* === TIER & STATUS BADGES === */
.acct-tier-badge {
    display: inline-block;
    padding: .4rem .8rem;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    font-size: .85rem;
}

.acct-status-badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 600;
}

.acct-status-approved {
    background: #dcfce7;
    color: #166534;
}

.acct-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.acct-status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* === TIER WARNING === */
.acct-tier-note {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: .875rem 1.25rem;
    font-size: .85rem;
    color: #78350f;
}

.acct-info-box {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.acct-warning-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #166534;
}

/* === SUBDOMAIN FORM === */
.acct-sub-form {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: .5rem;
}

.acct-sub-input {
    flex: 1;
    padding: .4rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: monospace;
    font-size: .85rem;
}

.acct-sub-input:focus {
    outline: none;
    border-color: #2563eb;
}

.acct-sub-suffix {
    color: #9ca3af;
    font-family: monospace;
    font-size: .85rem;
}

.acct-subdomain-status {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.acct-subdomain-status.claimed {
    background: #dcfce7;
    color: #166534;
}

.acct-subdomain-status.available {
    background: #fef3c7;
    color: #92400e;
}

.acct-subdomain-rules {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: .9rem;
    color: #6b7280;
}

.acct-subdomain-rules ul {
    margin: .5rem 0 0 1.5rem;
    padding: 0;
}

.acct-subdomain-rules li {
    margin: .25rem 0;
}

/* === NAV LIST (Dashboard) === */
.acct-nav-list {
    display: flex;
    flex-direction: column;
}

.acct-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background .1s;
}

.acct-nav-item:last-child {
    border-bottom: none;
}

.acct-nav-item:hover {
    background: #f9fafb;
}

.acct-nav-item-label {
    font-weight: 500;
    font-size: .9rem;
    color: #1a1a1a;
}

.acct-nav-item-desc {
    font-size: .8rem;
    color: #9ca3af;
    margin-top: .1rem;
}

.acct-nav-item-arrow {
    color: #d1d5db;
    font-size: .9rem;
}

/* === LISTING ROWS === */
.acct-listing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.acct-listing-row:last-child {
    border-bottom: none;
}

.acct-listing-name {
    font-weight: 500;
    font-size: .9rem;
    color: #1a1a1a;
}

.acct-listing-meta {
    font-size: .8rem;
    color: #9ca3af;
    margin-top: .1rem;
}

.acct-listing-actions {
    display: flex;
    gap: .4rem;
}

/* === ORDER ROWS === */
.acct-order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: .85rem;
}

.acct-order-row:last-child {
    border-bottom: none;
}

/* === SMALL BADGES === */
.acct-badge {
    display: inline-block;
    padding: .15rem .4rem;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 600;
}

.acct-badge-success {
    background: #dcfce7;
    color: #166534;
}

.acct-badge-warn {
    background: #fef3c7;
    color: #92400e;
}

.acct-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.acct-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* === EMPTY STATES === */
.acct-empty {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    padding: 4rem 2rem;
    text-align: center;
}

.acct-empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* === UPGRADE BANNER === */
.acct-upgrade-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: .875rem;
}

.acct-upgrade-banner strong {
    color: #92400e;
}

.acct-upgrade-banner p {
    margin: .35rem 0 0;
    color: #78350f;
}

/* === LIMIT WARNING === */
.acct-limit-warning {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #92400e;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .acct-container {
        padding: 1rem;
    }

    .acct-stats-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .acct-listing-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }

    .acct-order-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .25rem;
    }

    .acct-sub-form {
        flex-direction: column;
        align-items: stretch;
    }

    .acct-info-row {
        flex-direction: column;
        gap: .25rem;
    }
}

/* === SETTINGS: SUBDOMAIN INPUT === */
.subdomain-input-wrapper {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1rem 0;
}
.subdomain-input {
    flex: 1;
    padding: .75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: monospace;
}
.subdomain-input:focus {
    outline: none;
    border-color: #166534;
}
@media (max-width: 768px) {
    .subdomain-input-wrapper { flex-direction: column; align-items: stretch; }
}

/* === SETTINGS: IDENTITY VERIFICATION === */
.verify-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    transition: border-color .2s;
}
.verify-item.is-verified {
    border-color: #86efac;
    background: #f0fdf4;
}
.verify-item-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}
.verify-item-header svg {
    flex-shrink: 0;
    color: #6b7280;
}
.verify-item.is-verified .verify-item-header svg {
    color: #166534;
}
.verify-item-header .platform-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a1a;
    flex: 1;
}
.verify-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
}
.verify-status-badge.verified {
    background: #dcfce7;
    color: #166534;
}
.verify-status-badge.unverified {
    background: #f3f4f6;
    color: #9ca3af;
}
.verify-input-row {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}
.verify-input-row input[type="text"] {
    flex: 1;
    padding: .6rem .75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: .95rem;
    font-family: inherit;
    transition: border-color .2s;
}
.verify-input-row input[type="text"]:focus {
    outline: none;
    border-color: #166534;
}
.verify-btn {
    padding: .6rem 1.25rem;
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    white-space: nowrap;
    transition: background .2s;
}
.verify-btn:hover {
    background: #14532d;
}
.verify-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}
.verify-instructions-text {
    font-size: .85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: .5rem;
}
.verify-token-display {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: .5rem .75rem;
    margin: .5rem 0;
    font-family: monospace;
    font-size: .85rem;
    word-break: break-all;
}
.verify-token-display code {
    flex: 1;
    color: #1a1a1a;
}
.btn-copy-token {
    padding: .25rem .6rem;
    background: #e5e7eb;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .75rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}
.btn-copy-token:hover {
    background: #d1d5db;
}
.verify-result-msg {
    padding: .5rem .75rem;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    margin-top: .5rem;
    display: none;
}
.verify-result-msg.success {
    background: #dcfce7;
    color: #166534;
    display: block;
}
.verify-result-msg.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}
.verify-timestamp {
    font-size: .75rem;
    color: #9ca3af;
    margin-top: .35rem;
}
.verify-link {
    color: #166534;
    text-decoration: none;
    font-size: .85rem;
}
.verify-link:hover {
    text-decoration: underline;
}
.verify-section-intro {
    color: #6b7280;
    font-size: .9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .verify-input-row { flex-direction: column; }
    .verify-btn { width: 100%; }
}
