/* ═══════════════════════════════════════════
   1MinuteReel — Account Page Styles
   ═══════════════════════════════════════════ */

.account-page {
    max-width: 760px;
    margin: 0 auto;
}

.account-page-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

/* ── Tabs ── */
.account-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border);
}

.account-tab {
    padding: 8px 20px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-light);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: -1px;
}

.account-tab:hover {
    color: var(--color-text);
}

.account-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-primary);
}

/* ── Tab Panels ── */
.account-tab-panel {
    display: none;
}

.account-tab-panel.active {
    display: block;
}

/* ── Loading ── */
.account-loading {
    padding: var(--space-8);
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

/* ═══════════════════════════════════════════
   Plan Tab
   ═══════════════════════════════════════════ */

.account-plan-card {
    position: relative;
}

.account-plan-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.account-plan-header h3 {
    margin: 0;
}

.account-plan-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: #fff;
    line-height: 1.6;
}

.account-plan-badge--orange { background: #f59e0b; }
.account-plan-badge--purple { background: #8b5cf6; }
.account-plan-badge--blue   { background: #3b82f6; }

.account-plan-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.account-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
}

.account-plan-row:last-child {
    border-bottom: none;
}

.account-plan-label {
    color: var(--color-text-light);
    font-weight: 500;
}

.text-error {
    color: var(--color-error, #ef4444);
    font-weight: 600;
}

.text-success {
    color: var(--color-success);
}

/* ── Preferences toggle ── */
.account-pref-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   Platforms Tab
   ═══════════════════════════════════════════ */

.account-brand-picker {
    max-width: 300px;
}

.account-brand-picker .form-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    display: block;
}

.account-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (max-width: 600px) {
    .account-platform-grid {
        grid-template-columns: 1fr;
    }
}

.account-platform-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    transition: all var(--transition-fast);
}

.account-platform-card.connected {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.account-platform-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.account-platform-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-border-light);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.account-platform-name {
    font-weight: 500;
    font-size: var(--font-size-sm);
    display: block;
}

.account-platform-status {
    display: block;
}

.account-platform-action {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   Storage Tab
   ═══════════════════════════════════════════ */

.account-storage-bar {
    height: 12px;
    background: var(--color-border-light);
    border-radius: 6px;
    overflow: hidden;
}

.account-storage-bar-fill {
    height: 100%;
    background: var(--color-success);
    border-radius: 6px;
    transition: width 0.4s ease;
}

.account-storage-bar-fill.warning {
    background: var(--color-warning);
}

.account-storage-bar-fill.critical {
    background: var(--color-error, #ef4444);
}

.account-storage-numbers {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
}

.account-storage-breakdown {
    border-top: 1px solid var(--color-border-light);
    padding-top: var(--space-3);
}

/* ── Add-on Grid ── */
.account-addon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

@media (max-width: 600px) {
    .account-addon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.account-addon-card {
    padding: var(--space-4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-fast);
}

.account-addon-card.current {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.account-addon-name {
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: var(--space-1);
}

.account-addon-gb {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.account-addon-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
}

.account-addon-current {
    margin-top: var(--space-2);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
}

/* ═══════════════════════════════════════════
   Pricing Section (Plan Tab)
   ═══════════════════════════════════════════ */

.account-pricing-compare-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-3);
}

.account-pricing-struck {
    text-decoration: line-through;
    color: var(--color-text-light);
}

/* Two pricing cards side by side */
.account-pricing-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 640px) {
    .account-pricing-plans {
        grid-template-columns: 1fr;
    }
}

.account-pricing-card {
    position: relative;
    padding: var(--space-5);
}

.account-pricing-card h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-1);
}

.account-pricing-card--featured {
    border: 2px solid var(--color-primary);
}

.account-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.account-pricing-price {
    margin-bottom: var(--space-2);
}

.account-pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.account-pricing-features {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0 0;
    font-size: var(--font-size-sm);
    line-height: 1.8;
}

.account-pricing-features li {
    padding-left: 0;
}

/* ═══════════════════════════════════════════
   Team Tab
   ═══════════════════════════════════════════ */

.account-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.account-team-header h4 {
    margin: 0;
}

.account-seats-badge {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-border-light);
    padding: 2px 10px;
    border-radius: 999px;
}

/* Member rows */
.account-member-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.account-member-row:last-child {
    border-bottom: none;
}

.account-member-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.account-member-name {
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.account-member-email {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-member-role {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-light);
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--color-border-light);
    margin: 0 var(--space-3);
    flex-shrink: 0;
}

.account-member-role--owner {
    color: var(--color-primary);
    background: var(--color-primary-bg);
}

/* Pending invites */
.account-invite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
}

.account-invite-row:last-child {
    border-bottom: none;
}

.account-invite-email {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-invite-date {
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    margin: 0 var(--space-3);
    flex-shrink: 0;
}

/* Invite form */
.account-invite-form {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
}

.account-invite-form .form-input {
    flex: 1;
}

.account-invite-form select {
    width: auto;
    min-width: 100px;
}

@media (max-width: 600px) {
    .account-invite-form {
        flex-direction: column;
        align-items: stretch;
    }

    .account-invite-form select {
        width: 100%;
    }
}

/* Seat management card */
.account-seat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.account-seat-info {
    font-size: var(--font-size-sm);
}

.account-seat-info strong {
    display: block;
    font-size: var(--font-size-base);
}

.account-seat-actions {
    display: flex;
    gap: var(--space-2);
}

/* Invite accept page */
.account-invite-accept {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.account-invite-accept h2 {
    margin-bottom: var(--space-3);
}

.account-invite-accept p {
    color: var(--color-text-light);
    margin-bottom: var(--space-6);
}

.account-invite-accept .btn {
    margin: 0 var(--space-2);
}
