/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.5;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-light);
    color: var(--color-text-inverse);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    box-shadow: 0 2px 8px rgba(232, 99, 74, 0.25);
}

.btn-accent:hover:not(:disabled) {
    background: var(--color-accent-hover);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 16px rgba(232, 99, 74, 0.35);
}

.btn-pill {
    border-radius: var(--radius-full);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--color-bg-alt);
    border-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

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

.btn-success:hover:not(:disabled) {
    opacity: 0.9;
    color: var(--color-text-inverse);
}

.btn-danger {
    background: var(--color-danger);
    color: var(--color-text-inverse);
}

.btn-danger:hover:not(:disabled) {
    opacity: 0.9;
    color: var(--color-text-inverse);
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
}

.btn-xs {
    padding: 2px var(--space-sm);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

.btn-block {
    width: 100%;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-label {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
}

.form-input {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 99, 74, 0.15);
}

.form-input--error {
    border-color: var(--color-danger);
}

.form-input--error:focus {
    box-shadow: 0 0 0 3px rgba(194, 59, 34, 0.15);
}

.form-textarea {
    width: 100%;
    resize: vertical;
    min-height: 200px;
    box-sizing: border-box;
}

.form-hint {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.form-error {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-danger);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

select.form-input {
    appearance: auto;
}

/* Alerts */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.alert ul {
    padding-left: var(--space-lg);
    list-style: disc;
}

.alert--error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(194, 59, 34, 0.2);
}

.alert--success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(45, 138, 86, 0.2);
}

.alert--warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(196, 132, 29, 0.2);
}

/* Flash messages */
.flash-container {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-lg);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 400px;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    animation: flashIn 0.3s ease;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.flash--fading {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes flashIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.flash--success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(45, 138, 86, 0.2);
}

.flash--error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(194, 59, 34, 0.2);
}

.flash--warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid rgba(196, 132, 29, 0.2);
}

.flash-close {
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0.6;
    line-height: 1;
    padding: 0;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1.5;
}

.badge--default {
    background: var(--color-bg-alt);
    color: var(--color-text-secondary);
}

.badge--success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge--warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge--danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge--accent {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
}

.table thead {
    border-bottom: 2px solid var(--color-border);
}

.table th {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    font-weight: var(--weight-semibold);
    color: var(--color-text-secondary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--color-surface-hover);
}

.table--compact th,
.table--compact td {
    padding: var(--space-xs) var(--space-sm);
}

.row--muted {
    opacity: 0.5;
}

.actions-cell {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
}

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

/* Podcast cards */
.podcast-card {
    display: block;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    text-decoration: none;
    color: var(--color-text);
}

.podcast-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-warm), var(--shadow-lg);
    color: var(--color-text);
}

.podcast-card-cover {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.podcast-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.podcast-card:hover .podcast-card-cover img {
    transform: scale(1.05);
}

.podcast-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-base);
}

.podcast-card:hover .podcast-card-cover::after {
    background: rgba(0, 0, 0, 0.08);
}

.podcast-card-duration {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
}

.podcast-card-body {
    padding: var(--space-sm) var(--space-md);
}

.podcast-card-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-card-author {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.podcast-card-desc {
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: var(--leading-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Chapter list (podcast detail page) */
.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--color-border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.chapter-list {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chapter-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-surface);
    transition: background var(--transition-fast);
    min-height: 56px;
}

.chapter-item + .chapter-item {
    border-top: 1px solid var(--color-border-light);
}

.chapter-item:hover {
    background: var(--color-surface-hover);
}

.chapter-item__number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.chapter-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chapter-item__title {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapter-item__duration {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.chapter-item--playable {
    cursor: pointer;
}

.chapter-item__play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.chapter-item--playable:hover .chapter-item__play-icon {
    color: var(--color-accent-hover);
}

/* Admin chapter upload list */
.chapter-upload-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-top: var(--space-sm);
}

.chapter-upload-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-sm);
    cursor: grab;
}

.chapter-upload-item--dragging {
    opacity: 0.5;
}

.chapter-upload-handle {
    color: var(--color-text-muted);
    cursor: grab;
    flex-shrink: 0;
    font-size: var(--text-base);
    line-height: 1;
    user-select: none;
}

.chapter-upload-item .chapter-title-input {
    flex: 1;
    min-width: 0;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--text-sm);
}

.chapter-upload-duration {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    flex-shrink: 0;
    min-width: 40px;
    text-align: right;
}

.chapter-remove-btn {
    flex-shrink: 0;
}

/* Upload progress overlay */
.upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 50, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.upload-overlay__card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-xl) var(--space-2xl);
    width: 90%;
    max-width: 440px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.upload-overlay__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    margin: 0;
}

.upload-overlay__bar-wrap {
    width: 100%;
    height: 10px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.upload-overlay__bar {
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    transition: width 200ms ease;
}

.upload-overlay__pct {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text);
}

.upload-overlay__file {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upload-overlay__stats {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.upload-overlay__loaded {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.upload-overlay__cancel {
    align-self: center;
}

.upload-overlay__spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: uploadSpin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes uploadSpin {
    to { transform: rotate(360deg); }
}

/* Category badges */
.category-badge {
    display: inline-block;
    padding: 2px var(--space-sm);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1.6;
    text-decoration: none;
    white-space: nowrap;
}

.category-badge--sm {
    font-size: 0.65rem;
    padding: 1px 6px;
}

.podcast-categories {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
}

.podcast-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--space-xs);
}

/* Category filter pills (catalog) */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
}

.category-filter-pill {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.category-filter-pill:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.category-filter-pill--active {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    border-color: var(--color-accent);
}

/* Category checkboxes in podcast form */
.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.category-checkbox-item {
    cursor: pointer;
}

.category-checkbox-item input[type="checkbox"] {
    margin-right: 4px;
}

/* Analytics dashboard */
.analytics-period-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.analytics-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.analytics-chart-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.analytics-chart-card h3 {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    font-weight: var(--weight-semibold);
}

.analytics-chart-card--wide {
    grid-column: 1 / -1;
}

.analytics-chart-card canvas {
    max-height: 300px;
}

/* Stats grid (shared across admin, account, analytics) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stats-grid--compact {
    margin-bottom: var(--space-lg);
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
}

.stat-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* User top categories (account page) */
.user-top-categories {
    margin-top: var(--space-lg);
}

.user-top-categories h3 {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.category-rank-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.category-rank-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.category-rank-number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    min-width: 20px;
    text-align: center;
}

.category-rank-count {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-left: auto;
}

.user-monthly-chart {
    margin-top: var(--space-lg);
}

.user-monthly-chart h3 {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.user-monthly-chart canvas {
    max-height: 180px;
}

/* Year-in-Review page */
.review-page {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.review-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.review-card h2 {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.review-card--hero {
    background: linear-gradient(135deg, #e8634a, #f08c6e, #f5a88a);
    color: white;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
}

.review-card--hero h1 {
    font-size: var(--text-xl);
    margin-top: var(--space-sm);
}

.review-year {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: var(--weight-bold);
    line-height: 1;
    opacity: 0.9;
}

.review-subtitle {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-top: var(--space-xs);
}

.review-card--highlight {
    text-align: center;
}

.review-big-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    line-height: 1.1;
}

.review-big-number--sm {
    font-size: var(--text-2xl);
}

.review-big-label {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

.review-muted {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.review-top-podcast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.review-cover {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.review-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.review-category-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.review-mini-chart {
    margin-top: var(--space-md);
}

.review-mini-chart canvas {
    max-height: 200px;
}

.review-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    text-align: center;
}

.review-style-value {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
}

.review-ranked-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.review-ranked-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.review-ranked-item:hover {
    background: var(--color-surface-hover);
    color: var(--color-text);
}

.review-rank {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
    min-width: 28px;
    text-align: center;
}

.review-ranked-cover {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.review-ranked-info {
    flex: 1;
    min-width: 0;
}

.review-ranked-info strong {
    display: block;
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-ranked-count {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Responsive: analytics charts */
@media (max-width: 767px) {
    .analytics-charts {
        grid-template-columns: 1fr;
    }

    .review-style-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pricing Page */
.pricing-page {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-header h1 {
    margin-bottom: var(--space-sm);
}

.pricing-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-section {
    margin-bottom: var(--space-2xl);
}

.pricing-section h2 {
    margin-bottom: var(--space-sm);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.pricing-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-2px);
}

.pricing-card--featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-warm);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    padding: 2px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card__name {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.pricing-card__price {
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
}

.pricing-card__period {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    text-align: left;
    font-size: var(--text-sm);
}

.pricing-card__features li {
    padding: var(--space-xs) 0;
    color: var(--color-text-muted);
}

.pricing-card__features li::before {
    content: "\2713 ";
    color: var(--color-success, #22c55e);
    font-weight: bold;
    margin-right: var(--space-xs);
}

.pricing-card__btn {
    width: 100%;
}

/* Purchase badge on podcast detail */
.purchase-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-success, #22c55e);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.subscription-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--color-accent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.credit-cost-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

/* My Library section on account page */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-md);
}

.library-item {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.library-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-warm);
}

.library-item__cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.library-item__info {
    flex: 1;
    min-width: 0;
}

.library-item__title {
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.library-item__meta {
    color: var(--color-text-muted);
    font-size: var(--text-xs);
}

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


/* ── Utility classes ─────────────────────────────── */

/* Spacing */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0  { margin-bottom: 0; }

/* Text */
.text-secondary { color: var(--color-text-secondary); }
.text-success   { color: var(--color-success); }
.text-error     { color: var(--color-danger); }
.text-accent    { color: var(--color-accent); }
.font-semibold  { font-weight: var(--weight-semibold); }

/* Auth button (login/register full-width submit) */
.btn-auth {
    padding: 0.85rem;
    font-size: var(--text-base);
}
