.main-content {
    display: grid;
    grid-template-columns: 1fr 280px 280px;
    gap: 24px;
    min-height: calc(100vh - 160px);
}

.btn-delete {
    background: var(--accent-red);
    color: #ffffff;
    border: none;
}

.btn-delete:hover {
    background: #c40010;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-input-section {
    width: 100%;
    max-width: 300px;
    margin-bottom: 24px;
}

.user-input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.user-input-section input {
    font-size: 16px;
}

.wheel-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin-bottom: 24px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(0, 133, 208, 0.3);
}

.pointer {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 30px solid var(--accent-red);
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pointer::after {
    content: '';
    position: absolute;
    bottom: -38px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 8px solid rgba(230, 0, 18, 0.5);
}

.btn-large {
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

.hint-text {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 8px;
}

.middle-panel,
.right-panel {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.panel-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.panel-header .panel-title {
    margin: 0;
    padding: 0;
    border: none;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.prize-list {
    flex: 1;
    overflow-y: auto;
}

.prize-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
    cursor: pointer;
}

.prize-item:hover {
    background: var(--primary-light);
}

.prize-item-icon {
    font-size: 28px;
    margin-right: 12px;
}

.prize-item-info {
    flex: 1;
}

.prize-item-name {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.prize-item-stock {
    font-size: 12px;
    color: var(--text-light);
}

.prize-item-stock.low {
    color: var(--accent-orange);
}

.prize-item-stock.empty {
    color: var(--accent-red);
}

.prize-item-edit {
    padding: 4px 8px;
    font-size: 11px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.prize-item-edit:hover {
    background: var(--primary-dark);
}

.history-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    position: relative;
}

.history-item {
    padding: 12px;
    margin-bottom: 8px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-info {
    flex: 1;
}

.history-item-time {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.history-item-phone {
    font-size: 13px;
    color: var(--text-medium);
    font-family: monospace;
}

.history-item-prize {
    font-weight: 500;
    color: var(--primary-dark);
    margin-left: 12px;
    white-space: nowrap;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 40px 20px;
}

.wheel.spinning {
    animation: spin 3s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(var(--spin-degrees, 1800deg));
    }
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .left-panel {
        order: 1;
    }

    .middle-panel {
        order: 2;
    }

    .right-panel {
        order: 3;
    }

    .wheel-container {
        width: 280px;
        height: 280px;
    }
}