/* Dashboard Layout */

.dashboard-container {
    padding: var(--space-xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

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

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* Stats Cards */
.stat-card {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.stat-info h3 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
}

/* Drafts List */
.draft-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.draft-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.plan-item {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.plan-top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    align-items: center;
    margin-bottom: 10px;
}

.plan-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.plan-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.status-badge {
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    padding: 4px 10px;
    white-space: nowrap;
}

.status-badge.pending {
    color: #f8cf66;
}

.status-badge.yes {
    color: #6ff2a1;
}

.status-badge.no {
    color: #ff9c9c;
}

.status-badge.disabled {
    color: #ffb78b;
}

.plan-response {
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.plan-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.draft-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.draft-title {
    font-weight: 600;
}

.draft-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Wizard Modal */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

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

.wizard-content {
    width: 100%;
    max-width: 600px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: var(--space-md);
}

#closeWizard {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wizard-body {
    flex: 1;
    overflow-y: auto;
    padding-right: var(--space-sm);
}

.wizard-save-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.wizard-step.active {
    display: block;
}

.wizard-footer {
    padding-top: var(--space-md);
    border-top: 1px solid var(--glass-border);
    margin-top: var(--space-md);
    display: flex;
    justify-content: space-between;
}

/* Coin Store */
.coin-pack {
    text-align: center;
    padding: var(--space-lg);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s, border-color 0.2s;
}

.coin-pack:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.coin-pack.best-value {
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(0, 0, 0, 0));
    border-color: var(--accent-hot);
}

.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
}

.overlay-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease-smooth);
}

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

.overlay-content {
    width: min(560px, 100%);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.overlay-close {
    color: var(--text-muted);
    font-size: 1.8rem;
    line-height: 1;
}

.qr-image {
    width: min(320px, 100%);
    height: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    display: block;
    margin: 0 auto 12px auto;
}

.share-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
