/* ============================================
   ERGASE - Components
   ============================================ */

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.card:hover::before {
    opacity: 1;
}

.card-glass {
    background: rgba(18, 18, 26, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(123, 47, 247, 0.15);
}

.card-glow {
    box-shadow: 0 0 15px var(--glow-primary), inset 0 0 15px rgba(123, 47, 247, 0.05);
}

.card-danger {
    border-color: rgba(255, 62, 62, 0.3);
    box-shadow: 0 0 15px var(--glow-danger);
}

.card-success {
    border-color: rgba(0, 255, 136, 0.3);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--glow-primary);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #0099CC);
    color: #000;
    box-shadow: 0 4px 15px var(--glow-accent);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #CC2222);
    color: white;
    box-shadow: 0 4px 15px var(--glow-danger);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: #000;
    box-shadow: 0 4px 15px var(--glow-success);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--primary);
    background: rgba(123, 47, 247, 0.1);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    min-height: 34px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
    min-height: 50px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* --- Inputs --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
    width: 100%;
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow-primary);
}

.input::placeholder {
    color: var(--text-muted);
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888AA' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.input {
    resize: vertical;
    min-height: 80px;
}

/* --- Progress Bars --- */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar .fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

.progress-xp .fill {
    background: linear-gradient(90deg, var(--xp-start), var(--xp-end));
}

.progress-hp .fill {
    background: linear-gradient(90deg, var(--hp-start), var(--hp-end));
}

.progress-mp .fill {
    background: linear-gradient(90deg, var(--mp-start), var(--mp-end));
}

.progress-bar-lg {
    height: 12px;
    border-radius: 6px;
}

.progress-bar-sm {
    height: 4px;
    border-radius: 2px;
}

/* --- Stat Bar (HP/MP/XP inline) --- */
.stat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-bar-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 24px;
    letter-spacing: 1px;
}

.stat-bar-values {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: right;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(123, 47, 247, 0.2);
    color: var(--primary-glow);
    border: 1px solid rgba(123, 47, 247, 0.3);
}

.badge-accent {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-danger {
    background: rgba(255, 62, 62, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 62, 62, 0.3);
}

.badge-success {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge-warning {
    background: rgba(255, 184, 0, 0.15);
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.3);
}

/* --- Tabs --- */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    padding: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 38px;
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(123, 47, 247, 0.1);
}

.tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 10px var(--glow-primary);
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    min-width: 56px;
    position: relative;
}

.nav-item .nav-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--text-secondary);
}

.nav-item.active {
    color: var(--primary-glow);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 10px var(--glow-primary);
}

.nav-item.active .nav-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

/* --- Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 1rem;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 62, 62, 0.2);
    color: var(--danger);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* --- Login Screen --- */
.login-screen {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-screen.active {
    display: flex;
}

.login-box {
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.login-title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--primary-glow);
    text-shadow: 0 0 30px var(--glow-primary);
    margin-bottom: 8px;
    letter-spacing: 4px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-input-wrap {
    position: relative;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-align: center;
    letter-spacing: 3px;
    transition: var(--transition);
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--glow-primary);
}

.login-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    min-height: 20px;
}

.login-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.login-particles span {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-glow);
    border-radius: 50%;
    animation: floatParticle 6s ease-in-out infinite;
}

/* --- Quest Card --- */
.quest-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.quest-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.quest-card.completed {
    opacity: 0.5;
    border-color: rgba(0, 255, 136, 0.2);
    pointer-events: none;
}

.quest-card.completed .quest-icon {
    background: rgba(0, 255, 136, 0.15);
}

.quest-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(123, 47, 247, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.quest-info {
    flex: 1;
    min-width: 0;
}

.quest-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.quest-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quest-rewards {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.quest-reward {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.quest-check {
    width: 26px;
    height: 26px;
    border: 2px solid rgba(42, 42, 58, 0.6);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    font-size: 0;
    background: transparent;
}

.quest-card:hover .quest-check {
    border-color: var(--primary);
}

.quest-card.completed .quest-check {
    background: var(--success);
    border-color: var(--success);
    color: #000;
    font-size: 0.8rem;
}

.quest-card.completed .quest-check::after {
    content: '✓';
}

/* --- Muscle Group Cards --- */
.muscle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.muscle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.muscle-card:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.muscle-card.selected {
    border-color: var(--primary);
    background: rgba(123, 47, 247, 0.1);
    box-shadow: 0 0 15px var(--glow-primary);
}

.muscle-card .muscle-icon {
    font-size: 1.8rem;
}

.muscle-card .muscle-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* --- Exercise Row --- */
.exercise-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.set-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    margin-top: 4px;
}

.set-row .input {
    width: 60px;
    text-align: center;
    padding: 6px;
    min-height: 34px;
    font-size: 0.9rem;
}

.set-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 50px;
}

/* --- Section Header --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .section-action {
    font-size: 0.8rem;
    color: var(--primary-glow);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.section-header .section-action:hover {
    color: var(--accent);
}

/* --- Status Header (Dashboard) --- */
.status-header {
    background: linear-gradient(135deg, rgba(18, 18, 26, 0.9), rgba(18, 18, 26, 0.7));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.status-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.player-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.player-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px var(--glow-primary);
}

.player-meta {
    flex: 1;
}

.player-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.player-title-badge {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.5px;
}

.player-rank-badge {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid;
    letter-spacing: 1px;
}

.level-display {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.bars-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- Stats Radar Replace: Simple Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-name {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stat-item.has-points {
    border-color: var(--primary);
    cursor: pointer;
}

.stat-item.has-points:hover {
    background: rgba(123, 47, 247, 0.1);
}

/* --- Notification Toast --- */
.notification-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.notification-toast {
    background: rgba(18, 18, 26, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease, fadeOut 0.4s ease forwards;
    animation-delay: 0s, 3s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-primary);
    pointer-events: auto;
}

.notification-toast.success {
    border-color: var(--success);
}

.notification-toast.danger {
    border-color: var(--danger);
}

.notification-toast.warning {
    border-color: var(--warning);
}

.notification-toast .notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-toast .notif-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
}

.notification-toast .notif-label {
    font-family: var(--font-display);
    font-size: 0.6rem;
    color: var(--primary-glow);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 2px;
}

/* --- Streak Badge --- */
.streak-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 184, 0, 0.1);
    border: 1px solid rgba(255, 184, 0, 0.2);
    border-radius: 20px;
}

.streak-display .streak-fire {
    font-size: 1rem;
}

.streak-display .streak-count {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--warning);
}

.streak-display .streak-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Restriction Banner --- */
.restriction-banner {
    background: rgba(255, 62, 62, 0.1);
    border: 1px solid rgba(255, 62, 62, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    animation: pulse-danger 2s ease-in-out infinite;
}

.restriction-banner .restrict-icon {
    font-size: 1.3rem;
}

.restriction-banner .restrict-text {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--danger);
}

.restriction-banner .restrict-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Penalty Zone Overlay --- */
.penalty-zone-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 0, 0, 0.95);
    z-index: 250;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    animation: penaltyFlash 0.5s ease;
}

.penalty-zone-overlay.active {
    display: flex;
}

.penalty-zone-overlay h1 {
    font-size: 2.5rem;
    color: var(--danger);
    text-shadow: 0 0 30px var(--glow-danger);
    animation: glitch 1s ease-in-out infinite;
    letter-spacing: 6px;
}

.penalty-zone-overlay p {
    color: var(--text-secondary);
    margin-top: 12px;
    max-width: 300px;
}

/* --- Inventory Grid --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.inventory-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.inventory-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.inventory-item .item-icon {
    font-size: 1.5rem;
}

.inventory-item .item-qty {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

.inventory-item .item-name {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
}

/* --- Shop Item Card --- */
.shop-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.shop-card:hover {
    border-color: var(--border-light);
    background: var(--bg-card-hover);
}

.shop-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 47, 247, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.shop-info {
    flex: 1;
    min-width: 0;
}

.shop-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.shop-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.shop-price {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--warning);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* --- Achievement Card --- */
.achievement-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.achievement-card.locked {
    opacity: 0.5;
    filter: grayscale(0.5);
}

.achievement-card.unlocked {
    border-color: rgba(255, 184, 0, 0.3);
}

.achievement-icon {
    font-size: 1.6rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 184, 0, 0.1);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.achievement-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 0.9rem;
}

/* --- Category Header --- */
.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-top: 12px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* --- Training Timer --- */
.training-timer {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 20px var(--glow-accent);
    text-align: center;
    padding: 20px;
    letter-spacing: 4px;
}

/* --- Gold Display --- */
.gold-display {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--warning);
}

/* --- Toggle Switch --- */
.toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text-secondary);
    border-radius: 50%;
    transition: var(--transition);
}

.toggle input:checked+.toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(22px);
    background: white;
}

/* --- Divider --- */
.divider {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}