* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00ff88;
    --primary-dark: #00cc77;
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --border: #333;
    --text: #e0e0e0;
    --text-dim: #999;
    --danger: #ff4444;
    --warning: #ff8800;
    --success: #00ff88;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Builder Layout */
.builder-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.builder-header {
    background: var(--bg-medium);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.builder-header h1 {
    color: var(--primary);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.builder-main {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Panels */
.panel {
    background: var(--bg-medium);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.components-panel {
    width: 280px;
    padding: 20px;
}

.preview-panel {
    flex: 1;
    padding: 20px;
    background: var(--bg-dark);
    overflow-y: auto;
}

.properties-panel {
    width: 320px;
    padding: 20px;
    border-right: none;
    border-left: 1px solid var(--border);
}

/* Component Categories */
.component-category {
    margin-bottom: 25px;
}

.category-title {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Component Items */
.component-item {
    background: var(--bg-light);
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 8px;
    cursor: move;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.component-item:hover {
    background: #3a3a3a;
    border-color: var(--primary);
    transform: translateX(5px);
}

.component-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.component-icon {
    font-size: 20px;
}

.component-info {
    flex: 1;
}

.component-name {
    font-weight: 500;
    font-size: 14px;
}

.component-desc {
    font-size: 12px;
    color: var(--text-dim);
}

/* Preview Area */
.preview-container {
    background: var(--bg-medium);
    border-radius: 10px;
    padding: 20px;
    min-height: 600px;
}

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

.preview-device-selector {
    display: flex;
    gap: 10px;
}

.device-btn {
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.preview-area {
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: 8px;
    min-height: 500px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.preview-area.drag-over {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.05);
}

.preview-area.mobile {
    max-width: 375px;
    margin: 0 auto;
}

.preview-area.tablet {
    max-width: 768px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    color: var(--text-dim);
    padding: 40px;
}

/* Dropped Components */
.dropped-component {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.dropped-component:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.dropped-component.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.3);
}

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

.component-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.component-actions {
    display: flex;
    gap: 5px;
}

.component-action {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.component-action:hover {
    background: var(--bg-medium);
    color: var(--text);
}

.component-action.delete:hover {
    color: var(--danger);
}

.component-content {
    padding: 20px;
}

/* Component Styles */
.timer-display {
    text-align: center;
    padding: 20px;
}

.timer-time {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    margin: 10px 0;
}

.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.calculator-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calc-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.calc-input {
    flex: 1;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
}

.calc-result {
    text-align: center;
    padding: 20px;
    background: var(--bg-dark);
    border-radius: 8px;
    margin-top: 15px;
}

.calc-result-value {
    font-size: 32px;
    color: var(--primary);
    font-weight: bold;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
}

.resource-name {
    font-weight: 500;
}

.resource-timer {
    color: var(--primary);
    font-family: monospace;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checklist-item:hover {
    background: #333;
}

.checklist-item.completed {
    opacity: 0.6;
}

.checklist-item.completed .checklist-text {
    text-decoration: line-through;
}

.info-card-content {
    padding: 15px;
    background: var(--bg-dark);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    border-left: 3px solid var(--primary);
}

.schedule-time {
    color: var(--primary);
    font-weight: 500;
}

/* Properties Panel */
.properties-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.property-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.property-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.property-input,
.property-select,
.property-textarea {
    width: 100%;
    padding: 10px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    font-family: inherit;
}

.property-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: #3a3a3a;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Mobile App Styles */
.mobile-app {
    min-height: 100vh;
    background: var(--bg-dark);
    padding-bottom: 20px;
}

.mobile-app-header {
    background: var(--bg-medium);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.mobile-app-title {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

.mobile-app-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.mobile-component {
    background: var(--bg-medium);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-component-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-component-content {
    padding: 20px;
}

/* Install Button */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
    display: none;
    z-index: 1000;
    border: none;
    font-size: 16px;
}

.install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: var(--text-dim);
}

.loading::after {
    content: '⚔️';
    font-size: 32px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1200px) {
    .properties-panel {
        width: 280px;
    }
}

@media (max-width: 992px) {
    .builder-main {
        flex-direction: column;
    }
    
    .components-panel,
    .properties-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 200px;
    }
    
    .properties-panel {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .timer-time {
        font-size: 36px;
    }
    
    .calc-result-value {
        font-size: 24px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropped-component {
    animation: fadeIn 0.3s ease;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light);
    color: var(--text);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    border: 1px solid var(--border);
}

.toast.success {
    border-color: var(--success);
    background: rgba(0, 255, 136, 0.1);
}

.toast.error {
    border-color: var(--danger);
    background: rgba(255, 68, 68, 0.1);
}

/* New Component Styles */
.skill-list,
.inventory-categories,
.quest-list,
.stats-list,
.guild-activities {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #333;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-key {
    color: var(--primary);
    font-weight: bold;
    font-family: monospace;
}

.skill-cooldown {
    color: var(--primary);
    font-family: monospace;
    font-weight: 500;
}

.inventory-category {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 15px;
}

.inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--bg-medium);
    border-radius: 4px;
    margin-bottom: 5px;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-controls button {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--text);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-controls button:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.quest-item {
    background: var(--bg-dark);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.quest-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.quest-objectives {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.objective {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.objective:hover {
    background: rgba(255, 255, 255, 0.05);
}

.objective input[type="checkbox"] {
    pointer-events: none;
}

.rotation-display {
    text-align: center;
}

.rotation-sequence {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.rotation-step {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    min-width: 100px;
    transition: all 0.3s ease;
}

.rotation-step.active {
    border-color: var(--primary);
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.05);
}

.step-number {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.step-skill {
    font-weight: 500;
    margin-bottom: 5px;
}

.step-duration {
    color: var(--text-dim);
    font-size: 14px;
}

.rotation-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.stat-item {
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    margin-bottom: 8px;
}

.stat-label {
    font-weight: 500;
    margin-bottom: 5px;
}

.stat-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-medium);
    border-radius: 4px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.guild-activity {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guild-activity:hover {
    background: #333;
}

.activity-icon {
    font-size: 20px;
}

.activity-name {
    flex: 1;
    font-weight: 500;
}

.activity-status {
    color: var(--primary);
    font-weight: 500;
}

/* List Editor Styles */
.list-editor {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-dark);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.list-item {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
}

.item-fields {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-fields input {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px;
    color: var(--text);
    font-size: 14px;
}

.item-fields input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.2);
}

.list-editor .btn {
    font-size: 12px;
    padding: 6px 12px;
}

.list-editor .btn:hover {
    transform: translateY(-1px);
}

/* Template Item Styles */
.template-item {
    position: relative;
}

.template-actions {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    gap: 5px;
}

.template-item:hover .template-actions {
    display: flex;
}

.template-item .component-info {
    margin-right: 100px; /* Make space for buttons */
}

.template-actions .btn {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Multi Timer Styles */
.multi-timer-display {
    padding: 15px;
}

.timer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.timer-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.timer-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.timer-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
}

.timer-time-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.timer-progress-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, var(--bg-light) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-progress-ring::before {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    background: var(--bg-dark);
    border-radius: 50%;
}

.timer-time {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.timer-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.timer-controls .btn {
    padding: 6px 12px;
    font-size: 12px;
}

/* Mobile responsiveness for timers */
@media (max-width: 768px) {
    .timer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .timer-time {
        font-size: 20px;
    }
    
    .timer-progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .timer-progress-ring::before {
        width: 40px;
        height: 40px;
    }
}

/* Economy Tracker Styles */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.price-item:hover {
    border-color: var(--primary);
    background: #2a2a2a;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 500;
    color: var(--text);
}

.location-name {
    font-size: 12px;
    color: var(--text-dim);
}

.price-timestamp {
    font-size: 10px;
    color: var(--text-dim);
}

.price-value {
    font-weight: bold;
    color: var(--primary);
    font-family: monospace;
}

.arbitrage-opportunities {
    margin-top: 15px;
}

.arbitrage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    margin-bottom: 8px;
}

.arbitrage-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trade-route {
    font-size: 12px;
    color: var(--text-dim);
}

.profit-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.profit-amount {
    font-weight: bold;
    color: var(--success);
    font-family: monospace;
}

.profit-percent {
    font-size: 11px;
    color: var(--success);
}

/* Mobile responsiveness for economy tracker */
@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .price-value {
        align-self: flex-end;
    }
    
    .arbitrage-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .profit-info {
        align-items: flex-start;
    }
}

/* Enhanced Resource Tracker Styles */
.resource-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.resource-location {
    font-size: 11px;
    color: var(--text-dim);
}

.resource-quality {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    width: fit-content;
}

.quality-normal {
    background: rgba(200, 200, 200, 0.2);
    color: #c8c8c8;
}

.quality-rich {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
}

.quality-rare {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

.quality-epic {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
}

.resource-efficiency {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
}

/* Update existing resource item for better layout */
.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-dark);
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #333;
    border-color: var(--primary);
}

.resource-name {
    font-weight: 500;
    margin-bottom: 4px;
}

/* Build Planner Styles */
.build-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.build-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
}

.build-name {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}

.build-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-preview {
    background: var(--bg-medium);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.skill-level {
    color: var(--primary);
    font-weight: 500;
}

.build-profile {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.build-header {
    background: var(--bg-medium);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.build-header h5 {
    margin: 0;
    color: var(--primary);
    font-size: 18px;
}

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

.build-content {
    padding: 20px;
}

.build-skills {
    margin-bottom: 20px;
}

.build-skills h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.skill-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.skill-name {
    font-weight: 500;
    color: var(--text);
}

.skill-description {
    font-size: 12px;
    color: var(--text-dim);
}

.skill-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.skill-level {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
}

.skill-priority {
    background: var(--bg-light);
    color: var(--text-dim);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.build-stats {
    margin-bottom: 20px;
}

.build-stats h6 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.stat-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.stat-name {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: capitalize;
}

.stat-value {
    font-weight: 500;
    color: var(--primary);
}

.build-notes {
    margin-bottom: 15px;
}

.build-notes h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.notes-text {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Mobile responsiveness for build planner */
@media (max-width: 768px) {
    .build-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .build-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .skill-meta {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Goal Tracker Styles */
.goal-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.goal-item {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.goal-item:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.goal-item.completed {
    opacity: 0.7;
    background: rgba(0, 255, 136, 0.05);
    border-color: var(--success);
}

.goal-item.completed .goal-name {
    text-decoration: line-through;
}

.goal-item.overdue {
    border-color: var(--danger);
    background: rgba(255, 68, 68, 0.05);
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.goal-info {
    flex: 1;
    margin-right: 15px;
}

.goal-name {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 5px 0;
}

.goal-description {
    color: var(--text-dim);
    font-size: 14px;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.goal-category {
    display: inline-block;
    background: var(--bg-medium);
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.goal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.goal-priority {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-high {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

.priority-medium {
    background: rgba(255, 136, 0, 0.2);
    color: var(--warning);
}

.priority-low {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success);
}

.goal-progress {
    margin-bottom: 10px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.progress-text {
    font-family: monospace;
    font-weight: 500;
    color: var(--text);
}

.progress-percent {
    font-size: 12px;
    color: var(--text-dim);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-medium);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-fill.priority-high {
    background: var(--danger);
}

.progress-fill.priority-medium {
    background: var(--warning);
}

.progress-fill.priority-low {
    background: var(--success);
}

.progress-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.progress-controls .btn {
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.goal-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-medium);
    border-radius: 6px;
    margin-top: 10px;
}

.goal-deadline.overdue {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid var(--danger);
}

.deadline-label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.deadline-date {
    font-size: 12px;
    color: var(--text);
    font-family: monospace;
}

.overdue-indicator {
    font-size: 11px;
    color: var(--danger);
    font-weight: 500;
}

/* Goal List Editor Styles */
.goal-editor {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    background: var(--bg-dark);
}

.goal-editor-item {
    background: var(--bg-medium);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.goal-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.goal-editor-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
}

.goal-editor-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.goal-editor-field label {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
}

.goal-editor-field input,
.goal-editor-field select,
.goal-editor-field textarea {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 8px;
    color: var(--text);
    font-size: 14px;
}

.goal-editor-field.full-width {
    grid-column: 1 / -1;
}

/* Mobile responsiveness for goal tracker */
@media (max-width: 768px) {
    .goal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .goal-actions {
        align-self: stretch;
        justify-content: space-between;
    }
    
    .goal-editor-fields {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Enhanced Mobile Polish - Touch-Friendly Interactions */
@media (max-width: 768px) {
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-sm {
        min-height: 36px;
        min-width: 36px;
        padding: 8px 12px;
        font-size: 14px;
    }
    
    /* Enhanced mobile component interactions */
    .component-item {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    .component-item:hover {
        transform: none; /* Remove hover transforms on mobile */
    }
    
    .component-item:active {
        transform: scale(0.98);
        background: #4a4a4a;
    }
    
    /* Mobile-optimized preview area */
    .preview-area {
        padding: 15px;
        min-height: 400px;
    }
    
    /* Enhanced mobile timer controls */
    .timer-controls .btn {
        min-height: 40px;
        min-width: 60px;
        font-size: 14px;
    }
    
    .timer-item {
        padding: 20px 15px;
        margin-bottom: 15px;
        border-radius: 12px;
    }
    
    .timer-item:active {
        transform: scale(0.98);
    }
    
    /* Mobile-optimized list editors */
    .list-editor {
        padding: 20px;
        border-radius: 12px;
    }
    
    .list-item {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
    }
    
    .item-fields {
        gap: 12px;
        flex-direction: column;
    }
    
    .item-fields input,
    .item-fields select,
    .item-fields textarea {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 8px;
        padding: 12px;
    }
    
    /* Mobile-optimized progress controls */
    .progress-controls .btn {
        min-height: 40px;
        min-width: 40px;
        font-size: 18px;
        border-radius: 8px;
    }
    
    /* Enhanced mobile navigation */
    .builder-header {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile component actions */
    .component-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .component-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile properties panel */
    .properties-panel {
        max-height: 300px;
    }
    
    .property-input,
    .property-select,
    .property-textarea {
        min-height: 44px;
        font-size: 16px;
        border-radius: 8px;
        padding: 12px;
    }
    
    /* Mobile-specific animations */
    .timer-progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .timer-progress-ring::before {
        width: 40px;
        height: 40px;
    }
    
    /* Mobile drag and drop feedback */
    .preview-area.drag-over {
        border-width: 3px;
        border-style: solid;
    }
    
    /* Enhanced mobile typography */
    .mobile-component-header {
        padding: 20px;
    }
    
    .mobile-component-content {
        padding: 20px;
    }
    
    /* Touch-friendly resource items */
    .resource-item {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
        min-height: 60px;
    }
    
    .resource-item:active {
        transform: scale(0.98);
        background: #4a4a4a;
    }
    
    /* Touch-friendly skill items */
    .skill-item {
        padding: 16px;
        margin-bottom: 12px;
        border-radius: 8px;
        min-height: 60px;
    }
    
    .skill-item:active {
        transform: scale(0.98);
        background: #4a4a4a;
    }
    
    /* Enhanced mobile price items */
    .price-item {
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    .price-item:active {
        transform: scale(0.98);
    }
    
    /* Mobile-optimized goal items */
    .goal-item {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .goal-item:active {
        transform: scale(0.98);
    }
    
    /* Mobile build profiles */
    .build-profile {
        border-radius: 12px;
        margin-bottom: 20px;
    }
    
    .build-content {
        padding: 20px;
    }
    
    /* Mobile arbitrage items */
    .arbitrage-item {
        padding: 16px;
        border-radius: 8px;
        margin-bottom: 12px;
    }
    
    /* Improved mobile scrolling */
    .panel {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mobile-optimized device selector */
    .preview-device-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .device-btn {
        padding: 12px;
        border-radius: 8px;
        min-height: 44px;
    }
}

/* Extra small devices (phones in landscape) */
@media (max-width: 480px) {
    .builder-main {
        flex-direction: column;
    }
    
    .components-panel,
    .properties-panel {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .properties-panel {
        border-left: none;
        border-top: 1px solid var(--border);
    }
    
    .preview-panel {
        order: -1; /* Move preview to top on small screens */
    }
    
    .timer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .goal-editor-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .item-fields {
        flex-direction: column;
        align-items: stretch;
    }
    
    .build-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .build-actions {
        flex-direction: column;
        gap: 8px;
    }
}